@cortexkit/aft-opencode 0.55.0 → 0.55.1
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/dist/index.js +19 -6
- package/dist/tools/inspect.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -15362,6 +15362,10 @@ function pathValue(record, property) {
|
|
|
15362
15362
|
return value;
|
|
15363
15363
|
}
|
|
15364
15364
|
function normalizeAliasPair(record, canonical, legacy, required) {
|
|
15365
|
+
if (isNullOrEmptyString(record[canonical]))
|
|
15366
|
+
delete record[canonical];
|
|
15367
|
+
if (isNullOrEmptyString(record[legacy]))
|
|
15368
|
+
delete record[legacy];
|
|
15365
15369
|
const hasCanonical = hasOwn(record, canonical);
|
|
15366
15370
|
const hasLegacy = hasOwn(record, legacy);
|
|
15367
15371
|
if (!hasCanonical && !hasLegacy) {
|
|
@@ -15393,8 +15397,13 @@ function normalizeAliasPair(record, canonical, legacy, required) {
|
|
|
15393
15397
|
delete record[legacy];
|
|
15394
15398
|
}
|
|
15395
15399
|
function validateOptionalCanonicalPath(record, property) {
|
|
15396
|
-
if (hasOwn(record, property))
|
|
15397
|
-
|
|
15400
|
+
if (!hasOwn(record, property))
|
|
15401
|
+
return;
|
|
15402
|
+
if (isNullOrEmptyString(record[property])) {
|
|
15403
|
+
delete record[property];
|
|
15404
|
+
return;
|
|
15405
|
+
}
|
|
15406
|
+
pathValue(record, property);
|
|
15398
15407
|
}
|
|
15399
15408
|
function normalizeZoomTargets(record) {
|
|
15400
15409
|
if (!hasOwn(record, "targets"))
|
|
@@ -15550,6 +15559,10 @@ function prepareCanonicalEditArguments(toolName, rawArguments) {
|
|
|
15550
15559
|
return record;
|
|
15551
15560
|
}
|
|
15552
15561
|
function normalizeEditPathAlias(record) {
|
|
15562
|
+
if (isNullOrEmptyString(record.path))
|
|
15563
|
+
delete record.path;
|
|
15564
|
+
if (isNullOrEmptyString(record.filePath))
|
|
15565
|
+
delete record.filePath;
|
|
15553
15566
|
const hasCanonical = hasOwn(record, "path");
|
|
15554
15567
|
const hasLegacy = hasOwn(record, "filePath");
|
|
15555
15568
|
if (!hasCanonical && !hasLegacy)
|
|
@@ -15575,7 +15588,7 @@ function normalizeEditPathAlias(record) {
|
|
|
15575
15588
|
}
|
|
15576
15589
|
}
|
|
15577
15590
|
function validateEditPath(record) {
|
|
15578
|
-
if (!hasOwn(record, "path")) {
|
|
15591
|
+
if (!hasOwn(record, "path") || isNullOrEmptyString(record.path)) {
|
|
15579
15592
|
throw new InvalidRequestError("'path' is required");
|
|
15580
15593
|
}
|
|
15581
15594
|
pathValue(record, "path");
|
|
@@ -39355,12 +39368,12 @@ function createInspectTier2IdleScheduler(options) {
|
|
|
39355
39368
|
}
|
|
39356
39369
|
function inspectTools(ctx) {
|
|
39357
39370
|
const inspectTool = {
|
|
39358
|
-
description: "Blocking-fresh codebase health inspection. Each call completes current analysis and produces exactly one terminal result: FRESH includes a wait-stamp and completed phases; INTERRUPTED and PHASE-FAILED retain completed phases, with PHASE-FAILED also reporting its phase attribution and failure reason. `sections` selects drill-down detail, not the categories verified.\n\n" + "Use `scope=` to narrow returned results. Scope filters rendered diagnostics; it does not
|
|
39371
|
+
description: "Blocking-fresh codebase health inspection. Each call completes current analysis and produces exactly one terminal result: FRESH includes a wait-stamp and completed phases; INTERRUPTED and PHASE-FAILED retain completed phases, with PHASE-FAILED also reporting its phase attribution and failure reason. `sections` selects drill-down detail, not the categories verified.\n\n" + "Use `scope=` to narrow returned results. Scope filters rendered diagnostics and limits Rust LSP startup to Cargo workspaces owning the scoped paths; it does not trigger per-file collection work. Scoped files no producer has authoritatively analyzed are reported as named gaps (complete: false). Passive health changes use the alert channel; do not infer inspect completion from that channel.\n\n" + `Use when: starting work on unfamiliar code, after multi-edit batches to check diagnostics, before a refactor, before review, or to verify cleanup completeness.
|
|
39359
39372
|
|
|
39360
39373
|
` + "Treat `dead_code` as a hint, not proof: reachability is call-based, so symbols reached only via method dispatch or referenced only in type position may be false positives — verify before deleting.",
|
|
39361
39374
|
args: {
|
|
39362
39375
|
sections: arg(z10.union([z10.string(), z10.array(z10.string())]).optional().describe("Categories to include in detailed drill-down (e.g. 'todos' or ['todos', 'dead_code', 'cycles']). Use 'all' for every active category. Omit for summary-only mode. `sections` changes detail, not the categories verified.")),
|
|
39363
|
-
scope: arg(z10.union([z10.string(), z10.array(z10.string())]).optional().describe("Restrict returned results to paths under this scope (file or directory, absolute or relative to project root). `scope=` narrows results; it does not
|
|
39376
|
+
scope: arg(z10.union([z10.string(), z10.array(z10.string())]).optional().describe("Restrict returned results to paths under this scope (file or directory, absolute or relative to project root). `scope=` narrows results and limits Rust LSP startup to owning Cargo workspaces; it does not trigger per-file diagnostic collection. Scoped files no producer has authoritatively analyzed are reported as named gaps (complete: false), never as a clean empty result.")),
|
|
39364
39377
|
topK: arg(z10.number().int().positive().max(100).optional().describe("Max drill-down items per category. Default 20, max 100."))
|
|
39365
39378
|
},
|
|
39366
39379
|
execute: async (args, context) => {
|
|
@@ -40390,7 +40403,7 @@ var PLUGIN_VERSION = (() => {
|
|
|
40390
40403
|
return "0.0.0";
|
|
40391
40404
|
}
|
|
40392
40405
|
})();
|
|
40393
|
-
var ANNOUNCEMENT_VERSION = "0.55.
|
|
40406
|
+
var ANNOUNCEMENT_VERSION = "0.55.1";
|
|
40394
40407
|
var ANNOUNCEMENT_FEATURES = [
|
|
40395
40408
|
"Callgraph stays consistent under load: edits arriving mid-rebuild can no longer be silently lost from navigation results.",
|
|
40396
40409
|
"aft_zoom handles real-world .jsonc: files with comment banners above the opening brace now resolve, and not-found errors point at the segment that actually failed (thanks @iceteaSA).",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../src/tools/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG1D,OAAO,KAAK,EAAE,aAAa,EAAE,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MAAM,CAAC;QAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAE5E;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAI5E;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEjD,MAAM,WAAW,gCAAgC;IAC/C,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACtC,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,WAAW,CAAC;IAClE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC3C;AAED,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,gCAAgC;0BAiB1D,MAAM,KAAG,IAAI;uBAZhB,MAAM,KAAG,IAAI;oBAOlB,IAAI;EAsB1B;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAuD/E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-opencode",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.1",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@clack/prompts": "^1.6.0",
|
|
37
|
-
"@cortexkit/aft-bridge": "0.55.
|
|
37
|
+
"@cortexkit/aft-bridge": "0.55.1",
|
|
38
38
|
"@opentui/core": "0.4.3",
|
|
39
39
|
"@opentui/solid": "0.4.3",
|
|
40
40
|
"comment-json": "^4.6.2",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"zod": "^4.4.3"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"@cortexkit/aft-darwin-arm64": "0.55.
|
|
47
|
-
"@cortexkit/aft-darwin-x64": "0.55.
|
|
48
|
-
"@cortexkit/aft-linux-arm64": "0.55.
|
|
49
|
-
"@cortexkit/aft-linux-x64": "0.55.
|
|
50
|
-
"@cortexkit/aft-win32-arm64": "0.55.
|
|
51
|
-
"@cortexkit/aft-win32-x64": "0.55.
|
|
46
|
+
"@cortexkit/aft-darwin-arm64": "0.55.1",
|
|
47
|
+
"@cortexkit/aft-darwin-x64": "0.55.1",
|
|
48
|
+
"@cortexkit/aft-linux-arm64": "0.55.1",
|
|
49
|
+
"@cortexkit/aft-linux-x64": "0.55.1",
|
|
50
|
+
"@cortexkit/aft-win32-arm64": "0.55.1",
|
|
51
|
+
"@cortexkit/aft-win32-x64": "0.55.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@opencode-ai/plugin": "^1.17.11",
|