@cortexkit/aft-opencode 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -10
- package/dist/cli/cache.d.ts +0 -14
- package/dist/cli/cache.d.ts.map +0 -1
- package/dist/cli/config-paths.d.ts +0 -11
- package/dist/cli/config-paths.d.ts.map +0 -1
- package/dist/cli/diagnostics.d.ts +0 -49
- package/dist/cli/diagnostics.d.ts.map +0 -1
- package/dist/cli/doctor.d.ts +0 -5
- package/dist/cli/doctor.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/logs.d.ts +0 -16
- package/dist/cli/logs.d.ts.map +0 -1
- package/dist/cli/opencode-helpers.d.ts +0 -4
- package/dist/cli/opencode-helpers.d.ts.map +0 -1
- package/dist/cli/prompts.d.ts +0 -14
- package/dist/cli/prompts.d.ts.map +0 -1
- package/dist/cli/setup.d.ts +0 -2
- package/dist/cli/setup.d.ts.map +0 -1
- package/dist/cli.js +0 -10184
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode plugin for Agent File Tools (AFT) — tree-sitter and lsp powered code analysis",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"aft-opencode": "dist/cli.js"
|
|
10
|
-
},
|
|
11
8
|
"license": "MIT",
|
|
12
9
|
"repository": {
|
|
13
10
|
"type": "git",
|
|
@@ -20,7 +17,7 @@
|
|
|
20
17
|
"README.md"
|
|
21
18
|
],
|
|
22
19
|
"scripts": {
|
|
23
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @opencode-ai/plugin && bun build src/tui/index.tsx --outfile dist/tui.js --target bun --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opentui/solid --external solid-js &&
|
|
20
|
+
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @opencode-ai/plugin && bun build src/tui/index.tsx --outfile dist/tui.js --target bun --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opentui/solid --external solid-js && tsc --emitDeclarationOnly",
|
|
24
21
|
"typecheck": "tsc --noEmit",
|
|
25
22
|
"pretest": "cd ../.. && cargo build",
|
|
26
23
|
"test": "bun test",
|
|
@@ -35,11 +32,11 @@
|
|
|
35
32
|
"zod": "^4.1.8"
|
|
36
33
|
},
|
|
37
34
|
"optionalDependencies": {
|
|
38
|
-
"@cortexkit/aft-darwin-arm64": "0.
|
|
39
|
-
"@cortexkit/aft-darwin-x64": "0.
|
|
40
|
-
"@cortexkit/aft-linux-arm64": "0.
|
|
41
|
-
"@cortexkit/aft-linux-x64": "0.
|
|
42
|
-
"@cortexkit/aft-win32-x64": "0.
|
|
35
|
+
"@cortexkit/aft-darwin-arm64": "0.15.0",
|
|
36
|
+
"@cortexkit/aft-darwin-x64": "0.15.0",
|
|
37
|
+
"@cortexkit/aft-linux-arm64": "0.15.0",
|
|
38
|
+
"@cortexkit/aft-linux-x64": "0.15.0",
|
|
39
|
+
"@cortexkit/aft-win32-x64": "0.15.0"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
42
|
"@types/node": "^22.0.0",
|
package/dist/cli/cache.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function clearPluginCache(force?: boolean): Promise<{
|
|
2
|
-
action: "cleared" | "up_to_date" | "not_found" | "error";
|
|
3
|
-
path: string;
|
|
4
|
-
cached?: string;
|
|
5
|
-
latest?: string;
|
|
6
|
-
error?: string;
|
|
7
|
-
}>;
|
|
8
|
-
export declare function getBinaryCacheInfo(): {
|
|
9
|
-
versions: string[];
|
|
10
|
-
activeVersion: string | null;
|
|
11
|
-
totalSize: number;
|
|
12
|
-
path: string;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=cache.d.ts.map
|
package/dist/cli/cache.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cli/cache.ts"],"names":[],"mappings":"AAoGA,wBAAsB,gBAAgB,CAAC,KAAK,UAAQ,GAAG,OAAO,CAAC;IAC7D,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAiCD;AAED,wBAAgB,kBAAkB,IAAI;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAmCA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface ConfigPaths {
|
|
2
|
-
configDir: string;
|
|
3
|
-
opencodeConfig: string;
|
|
4
|
-
opencodeConfigFormat: "json" | "jsonc" | "none";
|
|
5
|
-
aftConfig: string;
|
|
6
|
-
aftConfigFormat: "json" | "jsonc" | "none";
|
|
7
|
-
tuiConfig: string;
|
|
8
|
-
tuiConfigFormat: "json" | "jsonc" | "none";
|
|
9
|
-
}
|
|
10
|
-
export declare function detectConfigPaths(): ConfigPaths;
|
|
11
|
-
//# sourceMappingURL=config-paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-paths.d.ts","sourceRoot":"","sources":["../../src/cli/config-paths.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAC5C;AA+BD,wBAAgB,iBAAiB,IAAI,WAAW,CAe/C"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { getBinaryCacheInfo } from "./cache.js";
|
|
2
|
-
import { type ConfigPaths } from "./config-paths.js";
|
|
3
|
-
export interface DiagnosticReport {
|
|
4
|
-
timestamp: string;
|
|
5
|
-
platform: string;
|
|
6
|
-
arch: string;
|
|
7
|
-
nodeVersion: string;
|
|
8
|
-
pluginVersion: string;
|
|
9
|
-
binaryVersion: string | null;
|
|
10
|
-
opencodeInstalled: boolean;
|
|
11
|
-
opencodeVersion: string | null;
|
|
12
|
-
configPaths: ConfigPaths;
|
|
13
|
-
opencodeConfigHasPlugin: boolean;
|
|
14
|
-
aftConfig: {
|
|
15
|
-
exists: boolean;
|
|
16
|
-
parseError?: string;
|
|
17
|
-
flags: Record<string, unknown>;
|
|
18
|
-
};
|
|
19
|
-
binaryCache: ReturnType<typeof getBinaryCacheInfo>;
|
|
20
|
-
pluginCache: {
|
|
21
|
-
cached?: string;
|
|
22
|
-
latest?: string;
|
|
23
|
-
path: string;
|
|
24
|
-
};
|
|
25
|
-
storageDir: {
|
|
26
|
-
path: string;
|
|
27
|
-
exists: boolean;
|
|
28
|
-
indexSize: number;
|
|
29
|
-
semanticSize: number;
|
|
30
|
-
backupsSize: number;
|
|
31
|
-
urlCacheSize: number;
|
|
32
|
-
onnxruntimeSize: number;
|
|
33
|
-
};
|
|
34
|
-
onnxRuntime: {
|
|
35
|
-
required: boolean;
|
|
36
|
-
systemPath: string | null;
|
|
37
|
-
cachedPath: string | null;
|
|
38
|
-
platform: string;
|
|
39
|
-
installHint: string;
|
|
40
|
-
};
|
|
41
|
-
logFile: {
|
|
42
|
-
path: string;
|
|
43
|
-
exists: boolean;
|
|
44
|
-
sizeKb: number;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export declare function collectDiagnostics(): Promise<DiagnosticReport>;
|
|
48
|
-
export declare function renderDiagnosticsMarkdown(report: DiagnosticReport): string;
|
|
49
|
-
//# sourceMappingURL=diagnostics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/cli/diagnostics.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,mBAAmB,CAAC;AAOxE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE;QACT,MAAM,EAAE,OAAO,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC,CAAC;IACF,WAAW,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACnD,WAAW,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QACX,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAgND,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAgDpE;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA2C1E"}
|
package/dist/cli/doctor.d.ts
DELETED
package/dist/cli/doctor.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA4QA,wBAAsB,SAAS,CAC7B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACjD,OAAO,CAAC,MAAM,CAAC,CAsIjB"}
|
package/dist/cli/index.d.ts
DELETED
package/dist/cli/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
|
package/dist/cli/logs.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { DiagnosticReport } from "./diagnostics.js";
|
|
2
|
-
/**
|
|
3
|
-
* Strip personally identifiable path segments from arbitrary text.
|
|
4
|
-
* Used on both log contents and the full doctor --issue body so diagnostic
|
|
5
|
-
* reports never leak usernames or home directory paths.
|
|
6
|
-
*/
|
|
7
|
-
export declare function sanitizeContent(content: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Use sanitizeContent. Kept as an alias for backward compatibility.
|
|
10
|
-
*/
|
|
11
|
-
export declare const sanitizeLogContent: typeof sanitizeContent;
|
|
12
|
-
export declare function bundleIssueReport(report: DiagnosticReport, description: string, _title: string): Promise<{
|
|
13
|
-
path: string;
|
|
14
|
-
bodyMarkdown: string;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=logs.d.ts.map
|
package/dist/cli/logs.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/cli/logs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOzD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBvD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,wBAAkB,CAAC;AAelD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,gBAAgB,EACxB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CA0CjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"opencode-helpers.d.ts","sourceRoot":"","sources":["../../src/cli/opencode-helpers.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,IAAI,OAAO,CAO7C;AAED,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAMlD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAOvC"}
|
package/dist/cli/prompts.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { intro, log, note, outro, spinner } from "@clack/prompts";
|
|
2
|
-
export { intro, log, note, outro, spinner };
|
|
3
|
-
export declare function confirm(message: string, defaultYes?: boolean): Promise<boolean>;
|
|
4
|
-
export declare function selectOne(message: string, options: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
recommended?: boolean;
|
|
8
|
-
}[]): Promise<string>;
|
|
9
|
-
export declare function text(message: string, options?: {
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
validate?: (value: string) => string | Error | undefined;
|
|
13
|
-
}): Promise<string>;
|
|
14
|
-
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/cli/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEL,GAAG,EACH,IAAI,EACJ,KAAK,EAEL,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAS5C,wBAAsB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,UAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAOlF;AAED,wBAAsB,SAAS,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,GACjE,OAAO,CAAC,MAAM,CAAC,CAWjB;AAED,wBAAsB,IAAI,CACxB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACrD,GACL,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
package/dist/cli/setup.d.ts
DELETED
package/dist/cli/setup.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAgDA,wBAAsB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CA+DhD"}
|