Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,773 changes: 2,612 additions & 11,161 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 1 addition & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -904,13 +904,6 @@
"category": "Db2 for i",
"icon": "$(trash)"
},
{
"command": "vscode-db2i.jobManager.focusContinue",
"title": "Register Continue Provider",
"category": "Db2 for i",
"icon": "$(star-full)",
"enablement": "vscode-db2i:continueExtensionActive"
},
{
"command": "vscode-db2i.self.refresh",
"title": "Refresh SELF Codes View",
Expand Down Expand Up @@ -959,13 +952,6 @@
"category": "Db2 for i",
"icon": "$(info)"
},
{
"command": "vscode-db2i.self.explainSelf",
"title": "Explain SELF Code with continue",
"category": "Db2 for i",
"icon": "$(debug-alt)",
"enablement": "vscode-db2i:continueExtensionActive"
},
{
"command": "vscode-db2i.self.help",
"title": "Open SELF Documentation",
Expand Down Expand Up @@ -1565,11 +1551,6 @@
"when": "view == vscode-db2i.self.nodes && viewItem == selfCodeNode",
"group": "navigation"
},
{
"command": "vscode-db2i.self.explainSelf",
"when": "view == vscode-db2i.self.nodes && viewItem == selfCodeNode && vscode-db2i:continueExtensionActive",
"group": "navigation"
},
{
"command": "vscode-db2i.examples.edit",
"when": "view == exampleBrowser && viewItem == example.custom",
Expand Down Expand Up @@ -1912,7 +1893,6 @@
]
},
"devDependencies": {
"@continuedev/core": "^1.0.13",
"@halcyontech/vscode-ibmi-types": "^3.0.9",
"@ibm/mapepire-js": "^0.5.0",
"@types/glob": "^7.1.3",
Expand All @@ -1937,4 +1917,4 @@
"showdown": "^2.1.0",
"sql-formatter": "^14.0.0"
}
}
}
28 changes: 0 additions & 28 deletions src/aiProviders/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ContextItem } from "@continuedev/core";
import { JobManager } from "../config";
import Schemas, { AllSQLTypes } from "../database/schemas";
import Statement from "../database/statement";
Expand Down Expand Up @@ -277,33 +276,6 @@ export function refsToMarkdown(refs: TableRefs): MarkdownRef[] {
return markdownRefs;
}

export function createContinueContextItems(refs: MarkdownRef[]) {
const contextItems: ContextItem[] = [];
const job = JobManager.getSelection();
if (job) {
if (refs.length === 0) {
contextItems.push({
name: `SYSTEM PROMPT`,
description: `system prompt context`,
content: DB2_SYSTEM_PROMPT + `\n\nNo references found`,
});
} else {
for (const tableRef of refs) {
let prompt = `Table: ${tableRef.TABLE_NAME} (Schema: ${tableRef.SCHMEA}) Column Information:\n`;
prompt += `Format: column_name (column_text) type(length:precision) is_identity is_nullable\n`;
prompt += `${tableRef.COLUMN_INFO}`;
contextItems.push({
name: `${job.name}-${tableRef.SCHMEA}-${tableRef.TABLE_NAME}`,
description: `Column information for ${tableRef.TABLE_NAME}`,
content: DB2_SYSTEM_PROMPT + prompt,
});
}
}
}

return contextItems;
}

export async function getSystemStatus(): Promise<string> {
const sqlStatment = `SELECT * FROM TABLE(QSYS2.SYSTEM_STATUS(RESET_STATISTICS=>'YES',DETAILED_INFO=>'ALL')) X`;
const result = await JobManager.runSQL(sqlStatment, undefined);
Expand Down
193 changes: 0 additions & 193 deletions src/aiProviders/continue/continueContextProvider.ts

This file was deleted.

Loading
Loading