@cortexkit/aft-pi 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 +27 -14
- package/dist/tools/inspect.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -15752,6 +15752,10 @@ function pathValue(record, property) {
|
|
|
15752
15752
|
return value;
|
|
15753
15753
|
}
|
|
15754
15754
|
function normalizeAliasPair(record, canonical, legacy, required) {
|
|
15755
|
+
if (isNullOrEmptyString(record[canonical]))
|
|
15756
|
+
delete record[canonical];
|
|
15757
|
+
if (isNullOrEmptyString(record[legacy]))
|
|
15758
|
+
delete record[legacy];
|
|
15755
15759
|
const hasCanonical = hasOwn(record, canonical);
|
|
15756
15760
|
const hasLegacy = hasOwn(record, legacy);
|
|
15757
15761
|
if (!hasCanonical && !hasLegacy) {
|
|
@@ -15783,8 +15787,13 @@ function normalizeAliasPair(record, canonical, legacy, required) {
|
|
|
15783
15787
|
delete record[legacy];
|
|
15784
15788
|
}
|
|
15785
15789
|
function validateOptionalCanonicalPath(record, property) {
|
|
15786
|
-
if (hasOwn(record, property))
|
|
15787
|
-
|
|
15790
|
+
if (!hasOwn(record, property))
|
|
15791
|
+
return;
|
|
15792
|
+
if (isNullOrEmptyString(record[property])) {
|
|
15793
|
+
delete record[property];
|
|
15794
|
+
return;
|
|
15795
|
+
}
|
|
15796
|
+
pathValue(record, property);
|
|
15788
15797
|
}
|
|
15789
15798
|
function normalizeZoomTargets(record) {
|
|
15790
15799
|
if (!hasOwn(record, "targets"))
|
|
@@ -15940,6 +15949,10 @@ function prepareCanonicalEditArguments(toolName, rawArguments) {
|
|
|
15940
15949
|
return record;
|
|
15941
15950
|
}
|
|
15942
15951
|
function normalizeEditPathAlias(record) {
|
|
15952
|
+
if (isNullOrEmptyString(record.path))
|
|
15953
|
+
delete record.path;
|
|
15954
|
+
if (isNullOrEmptyString(record.filePath))
|
|
15955
|
+
delete record.filePath;
|
|
15943
15956
|
const hasCanonical = hasOwn(record, "path");
|
|
15944
15957
|
const hasLegacy = hasOwn(record, "filePath");
|
|
15945
15958
|
if (!hasCanonical && !hasLegacy)
|
|
@@ -15965,7 +15978,7 @@ function normalizeEditPathAlias(record) {
|
|
|
15965
15978
|
}
|
|
15966
15979
|
}
|
|
15967
15980
|
function validateEditPath(record) {
|
|
15968
|
-
if (!hasOwn(record, "path")) {
|
|
15981
|
+
if (!hasOwn(record, "path") || isNullOrEmptyString(record.path)) {
|
|
15969
15982
|
throw new InvalidRequestError("'path' is required");
|
|
15970
15983
|
}
|
|
15971
15984
|
pathValue(record, "path");
|
|
@@ -17818,7 +17831,7 @@ import {
|
|
|
17818
17831
|
// package.json
|
|
17819
17832
|
var package_default = {
|
|
17820
17833
|
name: "@cortexkit/aft-pi",
|
|
17821
|
-
version: "0.55.
|
|
17834
|
+
version: "0.55.1",
|
|
17822
17835
|
type: "module",
|
|
17823
17836
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
17824
17837
|
main: "dist/index.js",
|
|
@@ -17841,19 +17854,19 @@ var package_default = {
|
|
|
17841
17854
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
17842
17855
|
},
|
|
17843
17856
|
dependencies: {
|
|
17844
|
-
"@cortexkit/aft-bridge": "0.55.
|
|
17857
|
+
"@cortexkit/aft-bridge": "0.55.1",
|
|
17845
17858
|
"comment-json": "^5.0.0",
|
|
17846
17859
|
diff: "^8.0.4",
|
|
17847
17860
|
typebox: "1.1.38",
|
|
17848
17861
|
zod: "^4.4.3"
|
|
17849
17862
|
},
|
|
17850
17863
|
optionalDependencies: {
|
|
17851
|
-
"@cortexkit/aft-darwin-arm64": "0.55.
|
|
17852
|
-
"@cortexkit/aft-darwin-x64": "0.55.
|
|
17853
|
-
"@cortexkit/aft-linux-arm64": "0.55.
|
|
17854
|
-
"@cortexkit/aft-linux-x64": "0.55.
|
|
17855
|
-
"@cortexkit/aft-win32-arm64": "0.55.
|
|
17856
|
-
"@cortexkit/aft-win32-x64": "0.55.
|
|
17864
|
+
"@cortexkit/aft-darwin-arm64": "0.55.1",
|
|
17865
|
+
"@cortexkit/aft-darwin-x64": "0.55.1",
|
|
17866
|
+
"@cortexkit/aft-linux-arm64": "0.55.1",
|
|
17867
|
+
"@cortexkit/aft-linux-x64": "0.55.1",
|
|
17868
|
+
"@cortexkit/aft-win32-arm64": "0.55.1",
|
|
17869
|
+
"@cortexkit/aft-win32-x64": "0.55.1"
|
|
17857
17870
|
},
|
|
17858
17871
|
devDependencies: {
|
|
17859
17872
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
@@ -38008,7 +38021,7 @@ var InspectParams = Type8.Object({
|
|
|
38008
38021
|
description: "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."
|
|
38009
38022
|
})),
|
|
38010
38023
|
scope: Type8.Optional(Type8.Union([Type8.String(), Type8.Array(Type8.String())], {
|
|
38011
|
-
description: "Restrict returned results to paths under this scope (file or directory, absolute or relative to project root). `scope=` narrows results; it does not
|
|
38024
|
+
description: "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."
|
|
38012
38025
|
})),
|
|
38013
38026
|
topK: Type8.Optional(Type8.Integer({
|
|
38014
38027
|
minimum: 1,
|
|
@@ -38320,7 +38333,7 @@ function registerInspectTool(pi, ctx) {
|
|
|
38320
38333
|
pi.registerTool({
|
|
38321
38334
|
name: "aft_inspect",
|
|
38322
38335
|
label: "inspect",
|
|
38323
|
-
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
|
|
38336
|
+
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.
|
|
38324
38337
|
|
|
38325
38338
|
` + "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.",
|
|
38326
38339
|
parameters: InspectParams,
|
|
@@ -39582,7 +39595,7 @@ var PLUGIN_VERSION = (() => {
|
|
|
39582
39595
|
return "0.0.0";
|
|
39583
39596
|
}
|
|
39584
39597
|
})();
|
|
39585
|
-
var ANNOUNCEMENT_VERSION = "0.55.
|
|
39598
|
+
var ANNOUNCEMENT_VERSION = "0.55.1";
|
|
39586
39599
|
var ANNOUNCEMENT_FEATURES = [
|
|
39587
39600
|
"Callgraph stays consistent under load: edits arriving mid-rebuild can no longer be silently lost from navigation results.",
|
|
39588
39601
|
"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;;GAEG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EAEZ,KAAK,EACN,MAAM,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5E;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAoDlF;AAaD,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CA6B5F;AAmGD,wCAAwC;AACxC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAkC7E;AAED,wCAAwC;AACxC,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,OAAO,aAAa,CAAC,EAClC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,yCAe3B;AAED,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,EAC1B,OAAO,GAAE,uBAA4C,sFAqBtD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAoC9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.55.
|
|
3
|
+
"version": "0.55.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cortexkit/aft-bridge": "0.55.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.55.1",
|
|
27
27
|
"comment-json": "^5.0.0",
|
|
28
28
|
"diff": "^8.0.4",
|
|
29
29
|
"typebox": "1.1.38",
|
|
30
30
|
"zod": "^4.4.3"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@cortexkit/aft-darwin-arm64": "0.55.
|
|
34
|
-
"@cortexkit/aft-darwin-x64": "0.55.
|
|
35
|
-
"@cortexkit/aft-linux-arm64": "0.55.
|
|
36
|
-
"@cortexkit/aft-linux-x64": "0.55.
|
|
37
|
-
"@cortexkit/aft-win32-arm64": "0.55.
|
|
38
|
-
"@cortexkit/aft-win32-x64": "0.55.
|
|
33
|
+
"@cortexkit/aft-darwin-arm64": "0.55.1",
|
|
34
|
+
"@cortexkit/aft-darwin-x64": "0.55.1",
|
|
35
|
+
"@cortexkit/aft-linux-arm64": "0.55.1",
|
|
36
|
+
"@cortexkit/aft-linux-x64": "0.55.1",
|
|
37
|
+
"@cortexkit/aft-win32-arm64": "0.55.1",
|
|
38
|
+
"@cortexkit/aft-win32-x64": "0.55.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|