@cortexkit/aft-pi 0.22.1 → 0.24.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/dist/bg-notifications.d.ts +0 -1
- package/dist/bg-notifications.d.ts.map +1 -1
- package/dist/commands/aft-status.d.ts +5 -4
- package/dist/commands/aft-status.d.ts.map +1 -1
- package/dist/dialogs/status-dialog.d.ts +19 -0
- package/dist/dialogs/status-dialog.d.ts.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +454 -58
- package/dist/shared/status.d.ts +10 -0
- package/dist/shared/status.d.ts.map +1 -1
- package/dist/tools/_shared.d.ts +1 -1
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/ast.d.ts +17 -17
- package/dist/tools/ast.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +8 -8
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/conflicts.d.ts +4 -4
- package/dist/tools/conflicts.d.ts.map +1 -1
- package/dist/tools/fs.d.ts +9 -9
- package/dist/tools/fs.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts +1 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/imports.d.ts +13 -13
- package/dist/tools/imports.d.ts.map +1 -1
- package/dist/tools/lsp.d.ts +9 -9
- package/dist/tools/lsp.d.ts.map +1 -1
- package/dist/tools/navigate.d.ts +10 -10
- package/dist/tools/navigate.d.ts.map +1 -1
- package/dist/tools/reading.d.ts +14 -14
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/refactor.d.ts +14 -14
- package/dist/tools/refactor.d.ts.map +1 -1
- package/dist/tools/render-helpers.d.ts +2 -2
- package/dist/tools/render-helpers.d.ts.map +1 -1
- package/dist/tools/safety.d.ts +9 -9
- package/dist/tools/safety.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts +7 -7
- package/dist/tools/semantic.d.ts.map +1 -1
- package/dist/tools/structure.d.ts +18 -18
- package/dist/tools/structure.d.ts.map +1 -1
- package/dist/workflow-hints.d.ts +1 -1
- package/dist/workflow-hints.d.ts.map +1 -1
- package/package.json +14 -14
package/dist/tools/semantic.d.ts
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
* Only registered when config.semantic_search is enabled AND
|
|
4
4
|
* the ONNX runtime / configured backend is available.
|
|
5
5
|
*/
|
|
6
|
-
import type { AgentToolResult, ExtensionAPI, Theme } from "@
|
|
7
|
-
import { type Static } from "
|
|
6
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@earendil-works/pi-coding-agent";
|
|
7
|
+
import { type Static, Type } from "typebox";
|
|
8
8
|
import type { PluginContext } from "../types.js";
|
|
9
9
|
import { type RenderContextLike } from "./render-helpers.js";
|
|
10
|
-
declare const SearchParams:
|
|
11
|
-
query:
|
|
12
|
-
topK:
|
|
10
|
+
declare const SearchParams: Type.TObject<{
|
|
11
|
+
query: Type.TString;
|
|
12
|
+
topK: Type.TOptional<Type.TNumber>;
|
|
13
13
|
}>;
|
|
14
14
|
/** Exported for renderer unit tests. */
|
|
15
15
|
export declare function buildSemanticSections(args: Static<typeof SearchParams>, payload: unknown, theme: Theme): string[];
|
|
16
16
|
/** Exported for renderer unit tests. */
|
|
17
|
-
export declare function renderSemanticCall(args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@
|
|
17
|
+
export declare function renderSemanticCall(args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@earendil-works/pi-tui").Text;
|
|
18
18
|
/** Exported for renderer unit tests. */
|
|
19
|
-
export declare function renderSemanticResult(result: AgentToolResult<unknown>, args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@
|
|
19
|
+
export declare function renderSemanticResult(result: AgentToolResult<unknown>, args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@earendil-works/pi-tui").Container | import("@earendil-works/pi-tui").Text;
|
|
20
20
|
export declare function registerSemanticTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=semantic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../../src/tools/semantic.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"semantic.d.ts","sourceRoot":"","sources":["../../src/tools/semantic.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAOL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,YAAY;;;EAQhB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CAwDV;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,yCAG3B;AAED,wCAAwC;AACxC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,sFAO3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CA0C/E"}
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
* aft_transform — scope-aware structural code transformations.
|
|
3
3
|
* Ops: add_member, add_derive, wrap_try_catch, add_decorator, add_struct_tags.
|
|
4
4
|
*/
|
|
5
|
-
import type { AgentToolResult, ExtensionAPI, Theme } from "@
|
|
6
|
-
import { type Static } from "
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@earendil-works/pi-coding-agent";
|
|
6
|
+
import { type Static, Type } from "typebox";
|
|
7
7
|
import type { PluginContext } from "../types.js";
|
|
8
8
|
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
-
declare const TransformParams:
|
|
10
|
-
op:
|
|
11
|
-
filePath:
|
|
12
|
-
container:
|
|
13
|
-
code:
|
|
14
|
-
target:
|
|
15
|
-
derives:
|
|
16
|
-
catchBody:
|
|
17
|
-
decorator:
|
|
18
|
-
field:
|
|
19
|
-
tag:
|
|
20
|
-
value:
|
|
21
|
-
position:
|
|
22
|
-
validate:
|
|
9
|
+
declare const TransformParams: Type.TObject<{
|
|
10
|
+
op: Type.TUnsafe<"add_member" | "add_derive" | "wrap_try_catch" | "add_decorator" | "add_struct_tags">;
|
|
11
|
+
filePath: Type.TString;
|
|
12
|
+
container: Type.TOptional<Type.TString>;
|
|
13
|
+
code: Type.TOptional<Type.TString>;
|
|
14
|
+
target: Type.TOptional<Type.TString>;
|
|
15
|
+
derives: Type.TOptional<Type.TArray<Type.TString>>;
|
|
16
|
+
catchBody: Type.TOptional<Type.TString>;
|
|
17
|
+
decorator: Type.TOptional<Type.TString>;
|
|
18
|
+
field: Type.TOptional<Type.TString>;
|
|
19
|
+
tag: Type.TOptional<Type.TString>;
|
|
20
|
+
value: Type.TOptional<Type.TString>;
|
|
21
|
+
position: Type.TOptional<Type.TString>;
|
|
22
|
+
validate: Type.TOptional<Type.TUnsafe<"syntax" | "full">>;
|
|
23
23
|
}>;
|
|
24
24
|
/** Exported for renderer unit tests. */
|
|
25
25
|
export declare function buildTransformSections(args: Static<typeof TransformParams>, payload: unknown, theme: Theme): string[];
|
|
26
26
|
/** Exported for renderer unit tests. */
|
|
27
|
-
export declare function renderTransformCall(args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@
|
|
27
|
+
export declare function renderTransformCall(args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@earendil-works/pi-tui").Text;
|
|
28
28
|
/** Exported for renderer unit tests. */
|
|
29
|
-
export declare function renderTransformResult(result: AgentToolResult<unknown>, args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@
|
|
29
|
+
export declare function renderTransformResult(result: AgentToolResult<unknown>, args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@earendil-works/pi-tui").Container | import("@earendil-works/pi-tui").Text;
|
|
30
30
|
export declare function registerStructureTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=structure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/tools/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"structure.d.ts","sourceRoot":"","sources":["../../src/tools/structure.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC5F,OAAO,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAKL,KAAK,iBAAiB,EAIvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,eAAe;;;;;;;;;;;;;;EAgCnB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,EACpC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CAiBV;AAED,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,EACpC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,yCAW3B;AAED,wCAAwC;AACxC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,EACpC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,sFAO3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAwChF"}
|
package/dist/workflow-hints.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtensionAPI } from "@
|
|
1
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import type { AftConfig } from "./config.js";
|
|
3
3
|
export interface WorkflowHintsOpts {
|
|
4
4
|
toolSurface: "minimal" | "recommended" | "all";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-hints.d.ts","sourceRoot":"","sources":["../src/workflow-hints.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"workflow-hints.d.ts","sourceRoot":"","sources":["../src/workflow-hints.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,SAAS,GAAG,aAAa,GAAG,KAAK,CAAC;IAC/C,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kEAAkE;IAClE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC1B;AAID,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA2DzE;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,EACxB,aAAa,EAAE,OAAO,GACrB,MAAM,GAAG,IAAI,CAQf;AAMD,UAAU,gBAAgB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,gBAAgB,GACxB,IAAI,CA8BN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
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",
|
|
@@ -15,36 +15,36 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "bun build src/index.ts --outdir dist --target node --format esm --external @
|
|
18
|
+
"build": "bun build src/index.ts --outdir dist --target node --format esm --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --external @earendil-works/pi-tui --external typebox --external diff && tsc --emitDeclarationOnly",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
20
|
"test": "bun test src/__tests__/",
|
|
21
21
|
"lint": "biome check src",
|
|
22
22
|
"prepublishOnly": "bun run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cortexkit/aft-bridge": "0.
|
|
26
|
-
"
|
|
25
|
+
"@cortexkit/aft-bridge": "0.24.0",
|
|
26
|
+
"typebox": "^1.1.24",
|
|
27
27
|
"comment-json": "^5.0.0",
|
|
28
28
|
"diff": "^8.0.4",
|
|
29
29
|
"zod": "^4.1.8"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@cortexkit/aft-darwin-arm64": "0.
|
|
33
|
-
"@cortexkit/aft-darwin-x64": "0.
|
|
34
|
-
"@cortexkit/aft-linux-arm64": "0.
|
|
35
|
-
"@cortexkit/aft-linux-x64": "0.
|
|
36
|
-
"@cortexkit/aft-win32-x64": "0.
|
|
32
|
+
"@cortexkit/aft-darwin-arm64": "0.24.0",
|
|
33
|
+
"@cortexkit/aft-darwin-x64": "0.24.0",
|
|
34
|
+
"@cortexkit/aft-linux-arm64": "0.24.0",
|
|
35
|
+
"@cortexkit/aft-linux-x64": "0.24.0",
|
|
36
|
+
"@cortexkit/aft-win32-x64": "0.24.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
39
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
40
|
+
"@earendil-works/pi-ai": "*",
|
|
41
|
+
"@earendil-works/pi-tui": "*",
|
|
42
42
|
"@types/node": "^22.0.0",
|
|
43
43
|
"typescript": "^5.8.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
46
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
47
|
+
"@earendil-works/pi-tui": "*"
|
|
48
48
|
},
|
|
49
49
|
"exports": {
|
|
50
50
|
".": {
|