@cortexkit/aft-pi 0.14.0 → 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/dist/index.js +1163 -45
- package/dist/tools/ast.d.ts +27 -1
- package/dist/tools/ast.d.ts.map +1 -1
- package/dist/tools/conflicts.d.ts +9 -0
- package/dist/tools/conflicts.d.ts.map +1 -1
- package/dist/tools/diff-format.d.ts +24 -0
- package/dist/tools/diff-format.d.ts.map +1 -0
- package/dist/tools/fs.d.ts +15 -1
- package/dist/tools/fs.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts +37 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/imports.d.ts +21 -1
- package/dist/tools/imports.d.ts.map +1 -1
- package/dist/tools/lsp.d.ts +16 -1
- package/dist/tools/lsp.d.ts.map +1 -1
- package/dist/tools/navigate.d.ts +17 -1
- package/dist/tools/navigate.d.ts.map +1 -1
- package/dist/tools/reading.d.ts +27 -1
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/refactor.d.ts +22 -1
- package/dist/tools/refactor.d.ts.map +1 -1
- package/dist/tools/render-helpers.d.ts +36 -0
- package/dist/tools/render-helpers.d.ts.map +1 -0
- package/dist/tools/safety.d.ts +16 -1
- package/dist/tools/safety.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts +14 -1
- package/dist/tools/semantic.d.ts.map +1 -1
- package/dist/tools/structure.d.ts +26 -1
- package/dist/tools/structure.d.ts.map +1 -1
- package/package.json +12 -9
package/dist/tools/ast.d.ts
CHANGED
|
@@ -2,11 +2,37 @@
|
|
|
2
2
|
* ast_grep_search + ast_grep_replace — AST-aware pattern search/rewrite.
|
|
3
3
|
* 6 languages: typescript, tsx, javascript, python, rust, go.
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const SearchParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
pattern: import("@sinclair/typebox").TString;
|
|
11
|
+
lang: import("@sinclair/typebox").TUnsafe<"go" | "typescript" | "tsx" | "javascript" | "python" | "rust">;
|
|
12
|
+
paths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
13
|
+
globs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
14
|
+
contextLines: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
15
|
+
}>;
|
|
16
|
+
declare const ReplaceParams: import("@sinclair/typebox").TObject<{
|
|
17
|
+
pattern: import("@sinclair/typebox").TString;
|
|
18
|
+
rewrite: import("@sinclair/typebox").TString;
|
|
19
|
+
lang: import("@sinclair/typebox").TUnsafe<"go" | "typescript" | "tsx" | "javascript" | "python" | "rust">;
|
|
20
|
+
paths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
21
|
+
globs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
22
|
+
dryRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
23
|
+
}>;
|
|
7
24
|
export interface AstSurface {
|
|
8
25
|
astSearch: boolean;
|
|
9
26
|
astReplace: boolean;
|
|
10
27
|
}
|
|
28
|
+
/** Exported for renderer unit tests. */
|
|
29
|
+
export declare function buildAstSearchSections(payload: unknown, theme: Theme): string[];
|
|
30
|
+
/** Exported for renderer unit tests. */
|
|
31
|
+
export declare function buildAstReplaceSections(payload: unknown, theme: Theme): string[];
|
|
32
|
+
/** Exported for renderer unit tests. */
|
|
33
|
+
export declare function renderAstCall(toolName: "ast_grep_search" | "ast_grep_replace", args: Static<typeof SearchParams> | Static<typeof ReplaceParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
34
|
+
/** Exported for renderer unit tests. */
|
|
35
|
+
export declare function renderAstResult(toolName: "ast_grep_search" | "ast_grep_replace", result: AgentToolResult<unknown>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
11
36
|
export declare function registerAstTools(pi: ExtensionAPI, ctx: PluginContext, surface: AstSurface): void;
|
|
37
|
+
export {};
|
|
12
38
|
//# sourceMappingURL=ast.d.ts.map
|
package/dist/tools/ast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/tools/ast.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/tools/ast.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EASL,KAAK,iBAAiB,EAMvB,MAAM,qBAAqB,CAAC;AAM7B,QAAA,MAAM,YAAY;;;;;;EAehB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;;;EAOjB,CAAC;AAEH,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wCAAwC;AACxC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAgD/E;AAED,wCAAwC;AACxC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAiDhF;AAED,wCAAwC;AACxC,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,iBAAiB,GAAG,kBAAkB,EAChD,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG,MAAM,CAAC,OAAO,aAAa,CAAC,EAChE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAa3B;AAED,wCAAwC;AACxC,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,iBAAiB,GAAG,kBAAkB,EAChD,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAiB3B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI,CAsEhG"}
|
|
@@ -3,5 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
5
|
import type { PluginContext } from "../types.js";
|
|
6
|
+
import { type RenderContextLike, renderErrorResult, renderToolCall } from "./render-helpers.js";
|
|
7
|
+
/** Exported for renderer unit tests. */
|
|
8
|
+
export declare function renderConflictCall(theme: Parameters<typeof renderToolCall>[2], context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
9
|
+
/** Exported for renderer unit tests. */
|
|
10
|
+
export declare function buildConflictSections(text: string): string[];
|
|
11
|
+
/** Exported for renderer unit tests. */
|
|
12
|
+
export declare function renderConflictResult(text: string, theme: Parameters<typeof renderToolCall>[2], context: RenderContextLike): import("@mariozechner/pi-tui").Container;
|
|
13
|
+
/** Exported for renderer unit tests. */
|
|
14
|
+
export declare function renderConflictToolResult(result: Parameters<typeof renderErrorResult>[0], theme: Parameters<typeof renderToolCall>[2], context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
6
15
|
export declare function registerConflictsTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
7
16
|
//# sourceMappingURL=conflicts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflicts.d.ts","sourceRoot":"","sources":["../../src/tools/conflicts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"conflicts.d.ts","sourceRoot":"","sources":["../../src/tools/conflicts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAEL,KAAK,iBAAiB,EACtB,iBAAiB,EAEjB,cAAc,EACf,MAAM,qBAAqB,CAAC;AAI7B,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,EAC3C,OAAO,EAAE,iBAAiB,uCAG3B;AAED,wCAAwC;AACxC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAe5D;AAED,wCAAwC;AACxC,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,EAC3C,OAAO,EAAE,iBAAiB,4CAM3B;AAED,wCAAwC;AACxC,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAC/C,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,EAC3C,OAAO,EAAE,iBAAiB,kFAI3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAmBhF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diff formatting helpers for Pi hoisted tool renderers.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the output shape Pi's built-in `renderDiff` expects:
|
|
5
|
+
* "+NN content" for added lines
|
|
6
|
+
* "-NN content" for removed lines
|
|
7
|
+
* " NN content" for context lines
|
|
8
|
+
* " NN ..." for context truncation markers
|
|
9
|
+
*
|
|
10
|
+
* We don't re-export Pi's internal `generateDiffString` because it isn't
|
|
11
|
+
* public. Reimplementing it as a thin wrapper around the `diff` npm package
|
|
12
|
+
* (also used by Pi itself) is ~40 lines and keeps us decoupled from Pi's
|
|
13
|
+
* private internals.
|
|
14
|
+
*/
|
|
15
|
+
export interface FormattedDiff {
|
|
16
|
+
diff: string;
|
|
17
|
+
firstChangedLine: number | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Generate a line-numbered diff string suitable for Pi's `renderDiff`.
|
|
21
|
+
* Matches the format of Pi's built-in edit tool result.
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatDiffForPi(oldContent: string, newContent: string, contextLines?: number): FormattedDiff;
|
|
24
|
+
//# sourceMappingURL=diff-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff-format.d.ts","sourceRoot":"","sources":["../../src/tools/diff-format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,SAAwB,GACnC,aAAa,CAsGf"}
|
package/dist/tools/fs.d.ts
CHANGED
|
@@ -2,11 +2,25 @@
|
|
|
2
2
|
* aft_delete + aft_move — filesystem ops with per-file backup.
|
|
3
3
|
* Both go through Rust so backups and checkpoint rollback work the same way.
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const DeleteParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
filePath: import("@sinclair/typebox").TString;
|
|
11
|
+
}>;
|
|
12
|
+
declare const MoveParams: import("@sinclair/typebox").TObject<{
|
|
13
|
+
filePath: import("@sinclair/typebox").TString;
|
|
14
|
+
destination: import("@sinclair/typebox").TString;
|
|
15
|
+
}>;
|
|
7
16
|
export interface FsSurface {
|
|
8
17
|
delete: boolean;
|
|
9
18
|
move: boolean;
|
|
10
19
|
}
|
|
20
|
+
/** Exported for renderer unit tests. */
|
|
21
|
+
export declare function renderFsCall(toolName: "aft_delete" | "aft_move", args: Static<typeof DeleteParams> | Static<typeof MoveParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
22
|
+
/** Exported for renderer unit tests. */
|
|
23
|
+
export declare function renderFsResult(toolName: "aft_delete" | "aft_move", args: Static<typeof DeleteParams> | Static<typeof MoveParams>, result: AgentToolResult<unknown>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
11
24
|
export declare function registerFsTools(pi: ExtensionAPI, ctx: PluginContext, surface: FsSurface): void;
|
|
25
|
+
export {};
|
|
12
26
|
//# sourceMappingURL=fs.d.ts.map
|
package/dist/tools/fs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/tools/fs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/tools/fs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAEL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,YAAY;;EAEhB,CAAC;AAEH,QAAA,MAAM,UAAU;;;EAGd,CAAC;AAEH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wCAAwC;AACxC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,YAAY,GAAG,UAAU,EACnC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,EAC7D,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAkB3B;AAED,wCAAwC;AACxC,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,YAAY,GAAG,UAAU,EACnC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,EAC7D,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAsB3B;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAyD9F"}
|
package/dist/tools/hoisted.d.ts
CHANGED
|
@@ -2,8 +2,21 @@
|
|
|
2
2
|
* Hoisted tool overrides — replace Pi's built-in read/write/edit/grep with
|
|
3
3
|
* AFT-backed Rust implementations. Registering a tool with the same name as
|
|
4
4
|
* a built-in replaces the built-in entirely.
|
|
5
|
+
*
|
|
6
|
+
* Each tool provides:
|
|
7
|
+
* - `promptSnippet` / `promptGuidelines`: teach the model our argument shape
|
|
8
|
+
* in Pi's system prompt (Pi's built-ins use generic one-liners otherwise).
|
|
9
|
+
* - `renderCall` / `renderResult` for `write` and `edit`: without these,
|
|
10
|
+
* Pi's ToolExecutionComponent falls back to the *built-in* renderer for
|
|
11
|
+
* same-named tools, which reads `path` and `edits[]` and garbles our
|
|
12
|
+
* `filePath` / `oldString` / `newString` output (issue #15).
|
|
13
|
+
* - Structured `details: { diff, firstChangedLine }` so the rendered diff
|
|
14
|
+
* also ends up in the agent's message stream, matching Pi's convention.
|
|
15
|
+
*
|
|
16
|
+
* `read` and `grep` keep the default text-only result rendering because our
|
|
17
|
+
* payload (`path`, `pattern`) already aligns with Pi's built-in arg shape.
|
|
5
18
|
*/
|
|
6
|
-
import type
|
|
19
|
+
import { type AgentToolResult, type ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
7
20
|
import type { PluginContext } from "../types.js";
|
|
8
21
|
export interface ToolSurfaceFlags {
|
|
9
22
|
hoistRead: boolean;
|
|
@@ -11,5 +24,28 @@ export interface ToolSurfaceFlags {
|
|
|
11
24
|
hoistEdit: boolean;
|
|
12
25
|
hoistGrep: boolean;
|
|
13
26
|
}
|
|
27
|
+
/** Details surfaced to both renderer and agent message stream. */
|
|
28
|
+
interface FileMutationDetails {
|
|
29
|
+
diff?: string;
|
|
30
|
+
firstChangedLine?: number;
|
|
31
|
+
additions: number;
|
|
32
|
+
deletions: number;
|
|
33
|
+
replacements?: number;
|
|
34
|
+
diagnostics?: unknown[];
|
|
35
|
+
/**
|
|
36
|
+
* True when Rust returned `diff.truncated = true` — the before/after strings
|
|
37
|
+
* were omitted because the file exceeded the diff size cap, so we have no
|
|
38
|
+
* line-level diff to render. Both the agent-facing text and the TUI renderer
|
|
39
|
+
* surface this explicitly rather than silently showing a summary.
|
|
40
|
+
*/
|
|
41
|
+
truncated?: boolean;
|
|
42
|
+
}
|
|
14
43
|
export declare function registerHoistedTools(pi: ExtensionAPI, ctx: PluginContext, surface: ToolSurfaceFlags): void;
|
|
44
|
+
/**
|
|
45
|
+
* Shape the bridge `edit_match` / `write` response into an `AgentToolResult`
|
|
46
|
+
* Pi can render. Exported for unit tests covering truncation and diagnostics
|
|
47
|
+
* behavior without spinning up a real bridge.
|
|
48
|
+
*/
|
|
49
|
+
export declare function buildMutationResult(filePath: string, response: Record<string, unknown>): AgentToolResult<FileMutationDetails>;
|
|
50
|
+
export {};
|
|
15
51
|
//# sourceMappingURL=hoisted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hoisted.d.ts","sourceRoot":"","sources":["../../src/tools/hoisted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAGlB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAqDjD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,kEAAkE;AAClE,UAAU,mBAAmB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,YAAY,EAChB,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,gBAAgB,GACxB,IAAI,CA8IN;AAMD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,eAAe,CAAC,mBAAmB,CAAC,CA6DtC"}
|
package/dist/tools/imports.d.ts
CHANGED
|
@@ -2,7 +2,27 @@
|
|
|
2
2
|
* aft_import — language-aware import add/remove/organize.
|
|
3
3
|
* Supports TS, JS, TSX, Python, Rust, Go.
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const ImportParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
op: import("@sinclair/typebox").TUnsafe<"add" | "remove" | "organize">;
|
|
11
|
+
filePath: import("@sinclair/typebox").TString;
|
|
12
|
+
module: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
names: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
14
|
+
defaultImport: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
removeName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
typeOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
17
|
+
dryRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
18
|
+
validate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"syntax" | "full">>;
|
|
19
|
+
}>;
|
|
20
|
+
/** Exported for renderer unit tests. */
|
|
21
|
+
export declare function buildImportSections(args: Static<typeof ImportParams>, payload: unknown, theme: Theme): string[];
|
|
22
|
+
/** Exported for renderer unit tests. */
|
|
23
|
+
export declare function renderImportCall(args: Static<typeof ImportParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
24
|
+
/** Exported for renderer unit tests. */
|
|
25
|
+
export declare function renderImportResult(result: AgentToolResult<unknown>, args: Static<typeof ImportParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
7
26
|
export declare function registerImportTools(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
27
|
+
export {};
|
|
8
28
|
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/tools/imports.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/tools/imports.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAOL,KAAK,iBAAiB,EAIvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,YAAY;;;;;;;;;;EAoBhB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CA8CV;AAED,wCAAwC;AACxC,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAU3B;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAK3B;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CA0C9E"}
|
package/dist/tools/lsp.d.ts
CHANGED
|
@@ -3,7 +3,22 @@
|
|
|
3
3
|
* Edit/write flows already inject diagnostics inline; this tool is for
|
|
4
4
|
* explicit checks on a file or directory.
|
|
5
5
|
*/
|
|
6
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
7
|
+
import { type Static } from "@sinclair/typebox";
|
|
7
8
|
import type { PluginContext } from "../types.js";
|
|
9
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
10
|
+
declare const LspDiagnosticsParams: import("@sinclair/typebox").TObject<{
|
|
11
|
+
filePath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
directory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
severity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"error" | "all" | "warning" | "information" | "hint">>;
|
|
14
|
+
waitMs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
15
|
+
}>;
|
|
16
|
+
/** Exported for renderer unit tests. */
|
|
17
|
+
export declare function buildDiagnosticsSections(payload: unknown, theme: Theme): string[];
|
|
18
|
+
/** Exported for renderer unit tests. */
|
|
19
|
+
export declare function renderDiagnosticsCall(args: Static<typeof LspDiagnosticsParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
20
|
+
/** Exported for renderer unit tests. */
|
|
21
|
+
export declare function renderDiagnosticsResult(result: AgentToolResult<unknown>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
8
22
|
export declare function registerLspTools(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
23
|
+
export {};
|
|
9
24
|
//# sourceMappingURL=lsp.d.ts.map
|
package/dist/tools/lsp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lsp.d.ts","sourceRoot":"","sources":["../../src/tools/lsp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"lsp.d.ts","sourceRoot":"","sources":["../../src/tools/lsp.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EASL,KAAK,iBAAiB,EAMvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,oBAAoB;;;;;EAmBxB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAyCjF;AAED,wCAAwC;AACxC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,OAAO,oBAAoB,CAAC,EACzC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAU3B;AAED,wCAAwC;AACxC,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAI3B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAqC3E"}
|
package/dist/tools/navigate.d.ts
CHANGED
|
@@ -2,7 +2,23 @@
|
|
|
2
2
|
* aft_navigate — call-graph navigation across files.
|
|
3
3
|
* Ops: call_tree, callers, trace_to, impact, trace_data.
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const NavigateParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
op: import("@sinclair/typebox").TUnsafe<"call_tree" | "callers" | "trace_to" | "impact" | "trace_data">;
|
|
11
|
+
filePath: import("@sinclair/typebox").TString;
|
|
12
|
+
symbol: import("@sinclair/typebox").TString;
|
|
13
|
+
depth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
14
|
+
expression: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
}>;
|
|
16
|
+
/** Exported for renderer unit tests. */
|
|
17
|
+
export declare function buildNavigateSections(args: Static<typeof NavigateParams>, payload: unknown, theme: Theme): string[];
|
|
18
|
+
/** Exported for renderer unit tests. */
|
|
19
|
+
export declare function renderNavigateCall(args: Static<typeof NavigateParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
20
|
+
/** Exported for renderer unit tests. */
|
|
21
|
+
export declare function renderNavigateResult(result: AgentToolResult<unknown>, args: Static<typeof NavigateParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
7
22
|
export declare function registerNavigateTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
23
|
+
export {};
|
|
8
24
|
//# sourceMappingURL=navigate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/tools/navigate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/tools/navigate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAQL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,cAAc;;;;;;EAUlB,CAAC;AAgCH,wCAAwC;AACxC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CA0FV;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAU3B;AAED,wCAAwC;AACxC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAO3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAmC/E"}
|
package/dist/tools/reading.d.ts
CHANGED
|
@@ -2,11 +2,37 @@
|
|
|
2
2
|
* AFT reading tools: aft_outline + aft_zoom.
|
|
3
3
|
* Structural overview and symbol/section inspection.
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const OutlineParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
filePath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
files: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
12
|
+
directory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
}>;
|
|
14
|
+
declare const ZoomParams: import("@sinclair/typebox").TObject<{
|
|
15
|
+
filePath: import("@sinclair/typebox").TString;
|
|
16
|
+
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
symbols: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
18
|
+
contextLines: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
19
|
+
}>;
|
|
7
20
|
export interface ReadingSurface {
|
|
8
21
|
outline: boolean;
|
|
9
22
|
zoom: boolean;
|
|
10
23
|
}
|
|
24
|
+
/** Exported for renderer unit tests. */
|
|
25
|
+
export declare function buildOutlineSections(text: string, theme: Theme): string[];
|
|
26
|
+
/** Exported for renderer unit tests. */
|
|
27
|
+
export declare function buildZoomSections(args: Static<typeof ZoomParams>, payload: unknown, theme: Theme): string[];
|
|
28
|
+
/** Exported for renderer unit tests. */
|
|
29
|
+
export declare function renderOutlineCall(args: Static<typeof OutlineParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
30
|
+
/** Exported for renderer unit tests. */
|
|
31
|
+
export declare function renderOutlineResult(result: AgentToolResult<unknown>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
32
|
+
/** Exported for renderer unit tests. */
|
|
33
|
+
export declare function renderZoomCall(args: Static<typeof ZoomParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
34
|
+
/** Exported for renderer unit tests. */
|
|
35
|
+
export declare function renderZoomResult(result: AgentToolResult<unknown>, args: Static<typeof ZoomParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
11
36
|
export declare function registerReadingTools(pi: ExtensionAPI, ctx: PluginContext, surface: ReadingSurface): void;
|
|
37
|
+
export {};
|
|
12
38
|
//# sourceMappingURL=reading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reading.d.ts","sourceRoot":"","sources":["../../src/tools/reading.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"reading.d.ts","sourceRoot":"","sources":["../../src/tools/reading.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAOL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,aAAa;;;;EAYjB,CAAC;AAEH,QAAA,MAAM,UAAU;;;;;EAWd,CAAC;AAEH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wCAAwC;AACxC,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAOzE;AAED,wCAAwC;AACxC,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,OAAO,UAAU,CAAC,EAC/B,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CA4DV;AAED,wCAAwC;AACxC,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,CAAC,OAAO,aAAa,CAAC,EAClC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAU3B;AAED,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAI3B;AAED,wCAAwC;AACxC,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,CAAC,OAAO,UAAU,CAAC,EAC/B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAQ3B;AAED,wCAAwC;AACxC,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,UAAU,CAAC,EAC/B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAI3B;AAED,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,YAAY,EAChB,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,cAAc,GACtB,IAAI,CA+GN"}
|
package/dist/tools/refactor.d.ts
CHANGED
|
@@ -2,7 +2,28 @@
|
|
|
2
2
|
* aft_refactor — workspace-wide refactoring.
|
|
3
3
|
* Ops: move (symbol across files), extract (lines → function), inline (call site).
|
|
4
4
|
*/
|
|
5
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const RefactorParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
op: import("@sinclair/typebox").TUnsafe<"move" | "extract" | "inline">;
|
|
11
|
+
filePath: import("@sinclair/typebox").TString;
|
|
12
|
+
symbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
destination: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
16
|
+
startLine: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
17
|
+
endLine: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18
|
+
callSiteLine: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
19
|
+
dryRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
20
|
+
}>;
|
|
21
|
+
/** Exported for renderer unit tests. */
|
|
22
|
+
export declare function buildRefactorSections(args: Static<typeof RefactorParams>, payload: unknown, theme: Theme): string[];
|
|
23
|
+
/** Exported for renderer unit tests. */
|
|
24
|
+
export declare function renderRefactorCall(args: Static<typeof RefactorParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
25
|
+
/** Exported for renderer unit tests. */
|
|
26
|
+
export declare function renderRefactorResult(result: AgentToolResult<unknown>, args: Static<typeof RefactorParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
7
27
|
export declare function registerRefactorTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
28
|
+
export {};
|
|
8
29
|
//# sourceMappingURL=refactor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refactor.d.ts","sourceRoot":"","sources":["../../src/tools/refactor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"refactor.d.ts","sourceRoot":"","sources":["../../src/tools/refactor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAOL,KAAK,iBAAiB,EAMvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,cAAc;;;;;;;;;;;EAWlB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CAiDV;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAU3B;AAED,wCAAwC;AACxC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,cAAc,CAAC,EACnC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAO3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CA0C/E"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Pi TUI rendering helpers for AFT-backed tools.
|
|
3
|
+
*/
|
|
4
|
+
import { type AgentToolResult, type Theme } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import { type Component, Container, Text } from "@mariozechner/pi-tui";
|
|
6
|
+
export interface RenderContextLike<TArgs = unknown> {
|
|
7
|
+
args: TArgs;
|
|
8
|
+
lastComponent: Component | undefined;
|
|
9
|
+
isError: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function reuseText(last: Component | undefined): Text;
|
|
12
|
+
export declare function reuseContainer(last: Component | undefined): Container;
|
|
13
|
+
export declare function shortenPath(path: string): string;
|
|
14
|
+
export declare function renderToolCall(toolName: string, summary: string | undefined, theme: Theme, context: RenderContextLike): Text;
|
|
15
|
+
export declare function accentPath(theme: Theme, path: string | undefined): string;
|
|
16
|
+
export declare function collectTextContent(result: AgentToolResult<unknown>): string;
|
|
17
|
+
export declare function extractStructuredPayload(result: AgentToolResult<unknown>): unknown;
|
|
18
|
+
export declare function renderErrorResult(result: AgentToolResult<unknown>, fallback: string, theme: Theme, context: RenderContextLike): Text;
|
|
19
|
+
export declare function renderTextResult(textValue: string, context: RenderContextLike): Text;
|
|
20
|
+
export declare function renderSections(sections: string[], context: RenderContextLike): Container;
|
|
21
|
+
export declare function asRecord(value: unknown): Record<string, unknown> | undefined;
|
|
22
|
+
export declare function asRecords(value: unknown): Record<string, unknown>[];
|
|
23
|
+
export declare function asString(value: unknown): string | undefined;
|
|
24
|
+
export declare function asNumber(value: unknown): number | undefined;
|
|
25
|
+
export declare function asBoolean(value: unknown): boolean | undefined;
|
|
26
|
+
export declare function joinNonEmpty(parts: Array<string | undefined>, separator?: string): string;
|
|
27
|
+
export declare function indentBlock(text: string, spaces?: number): string;
|
|
28
|
+
export declare function formatValue(value: unknown): string;
|
|
29
|
+
export declare function groupByFile<T>(items: T[], getFile: (item: T) => string | undefined): Map<string, T[]>;
|
|
30
|
+
export declare function distinctCount(values: Array<string | undefined>): number;
|
|
31
|
+
export declare function severityBadge(theme: Theme, severity: string): string;
|
|
32
|
+
export declare function formatLineRange(startLine?: number, endLine?: number): string | undefined;
|
|
33
|
+
export declare function formatTimestamp(value: unknown): string | undefined;
|
|
34
|
+
export declare function formatUnifiedDiffForPi(unifiedDiff: string): string;
|
|
35
|
+
export declare function renderUnifiedDiff(unifiedDiff: string): string;
|
|
36
|
+
//# sourceMappingURL=render-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-helpers.d.ts","sourceRoot":"","sources":["../../src/tools/render-helpers.ts"],"names":[],"mappings":"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"}
|
package/dist/tools/safety.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* aft_safety — per-file undo, named checkpoints, restore, list, history.
|
|
3
3
|
*/
|
|
4
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
4
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import { type Static } from "@sinclair/typebox";
|
|
5
6
|
import type { PluginContext } from "../types.js";
|
|
7
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
8
|
+
declare const SafetyParams: import("@sinclair/typebox").TObject<{
|
|
9
|
+
op: import("@sinclair/typebox").TUnsafe<"undo" | "history" | "checkpoint" | "restore" | "list">;
|
|
10
|
+
filePath: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
files: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
13
|
+
}>;
|
|
14
|
+
/** Exported for renderer unit tests. */
|
|
15
|
+
export declare function buildSafetySections(args: Static<typeof SafetyParams>, payload: unknown, theme: Theme): string[];
|
|
16
|
+
/** Exported for renderer unit tests. */
|
|
17
|
+
export declare function renderSafetyCall(args: Static<typeof SafetyParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
18
|
+
/** Exported for renderer unit tests. */
|
|
19
|
+
export declare function renderSafetyResult(result: AgentToolResult<unknown>, args: Static<typeof SafetyParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
6
20
|
export declare function registerSafetyTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
21
|
+
export {};
|
|
7
22
|
//# sourceMappingURL=safety.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../src/tools/safety.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../src/tools/safety.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAQL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,YAAY;;;;;EAahB,CAAC;AAEH,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,MAAM,EAAE,CAsEV;AAED,wCAAwC;AACxC,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAO3B;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,kFAO3B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAwD7E"}
|
package/dist/tools/semantic.d.ts
CHANGED
|
@@ -3,7 +3,20 @@
|
|
|
3
3
|
* Only registered when config.experimental_semantic_search is enabled AND
|
|
4
4
|
* the ONNX runtime / configured backend is available.
|
|
5
5
|
*/
|
|
6
|
-
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
7
|
+
import { type Static } from "@sinclair/typebox";
|
|
7
8
|
import type { PluginContext } from "../types.js";
|
|
9
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
10
|
+
declare const SearchParams: import("@sinclair/typebox").TObject<{
|
|
11
|
+
query: import("@sinclair/typebox").TString;
|
|
12
|
+
topK: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
13
|
+
}>;
|
|
14
|
+
/** Exported for renderer unit tests. */
|
|
15
|
+
export declare function buildSemanticSections(args: Static<typeof SearchParams>, payload: unknown, theme: Theme): string[];
|
|
16
|
+
/** Exported for renderer unit tests. */
|
|
17
|
+
export declare function renderSemanticCall(args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
18
|
+
/** Exported for renderer unit tests. */
|
|
19
|
+
export declare function renderSemanticResult(result: AgentToolResult<unknown>, args: Static<typeof SearchParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
8
20
|
export declare function registerSemanticTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
21
|
+
export {};
|
|
9
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,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
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,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAOL,KAAK,iBAAiB,EAKvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,YAAY;;;EAKhB,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,CA6CV;AAED,wCAAwC;AACxC,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,OAAO,YAAY,CAAC,EACjC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAG3B;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,kFAO3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CA2B/E"}
|
|
@@ -2,7 +2,32 @@
|
|
|
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 { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
5
|
+
import type { AgentToolResult, ExtensionAPI, Theme } from "@mariozechner/pi-coding-agent";
|
|
6
|
+
import { type Static } from "@sinclair/typebox";
|
|
6
7
|
import type { PluginContext } from "../types.js";
|
|
8
|
+
import { type RenderContextLike } from "./render-helpers.js";
|
|
9
|
+
declare const TransformParams: import("@sinclair/typebox").TObject<{
|
|
10
|
+
op: import("@sinclair/typebox").TUnsafe<"add_member" | "add_derive" | "wrap_try_catch" | "add_decorator" | "add_struct_tags">;
|
|
11
|
+
filePath: import("@sinclair/typebox").TString;
|
|
12
|
+
container: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
|
+
code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
14
|
+
target: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
+
derives: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
16
|
+
catchBody: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
decorator: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
|
+
field: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
tag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
|
+
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
position: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
|
+
dryRun: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
23
|
+
validate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"syntax" | "full">>;
|
|
24
|
+
}>;
|
|
25
|
+
/** Exported for renderer unit tests. */
|
|
26
|
+
export declare function buildTransformSections(args: Static<typeof TransformParams>, payload: unknown, theme: Theme): string[];
|
|
27
|
+
/** Exported for renderer unit tests. */
|
|
28
|
+
export declare function renderTransformCall(args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text;
|
|
29
|
+
/** Exported for renderer unit tests. */
|
|
30
|
+
export declare function renderTransformResult(result: AgentToolResult<unknown>, args: Static<typeof TransformParams>, theme: Theme, context: RenderContextLike): import("@mariozechner/pi-tui").Text | import("@mariozechner/pi-tui").Container;
|
|
7
31
|
export declare function registerStructureTool(pi: ExtensionAPI, ctx: PluginContext): void;
|
|
32
|
+
export {};
|
|
8
33
|
//# 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,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
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,+BAA+B,CAAC;AAC1F,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAKL,KAAK,iBAAiB,EAIvB,MAAM,qBAAqB,CAAC;AAE7B,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;EAiCnB,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,CAwBV;AAED,wCAAwC;AACxC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,OAAO,eAAe,CAAC,EACpC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,iBAAiB,uCAW3B;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,kFAO3B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,aAAa,GAAG,IAAI,CAuChF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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,29 +15,32 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "bun build src/index.ts --outdir dist --target node --format esm --external @mariozechner/pi-coding-agent --external @mariozechner/pi-ai --external @mariozechner/pi-tui --external @sinclair/typebox && tsc --emitDeclarationOnly",
|
|
18
|
+
"build": "bun build src/index.ts --outdir dist --target node --format esm --external @mariozechner/pi-coding-agent --external @mariozechner/pi-ai --external @mariozechner/pi-tui --external @sinclair/typebox --external diff && tsc --emitDeclarationOnly",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
20
|
"test": "bun test src/__tests__/",
|
|
21
21
|
"prepublishOnly": "bun run build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@sinclair/typebox": "^0.34.33"
|
|
24
|
+
"@sinclair/typebox": "^0.34.33",
|
|
25
|
+
"diff": "^8.0.4"
|
|
25
26
|
},
|
|
26
27
|
"optionalDependencies": {
|
|
27
|
-
"@cortexkit/aft-darwin-arm64": "0.
|
|
28
|
-
"@cortexkit/aft-darwin-x64": "0.
|
|
29
|
-
"@cortexkit/aft-linux-arm64": "0.
|
|
30
|
-
"@cortexkit/aft-linux-x64": "0.
|
|
31
|
-
"@cortexkit/aft-win32-x64": "0.
|
|
28
|
+
"@cortexkit/aft-darwin-arm64": "0.15.0",
|
|
29
|
+
"@cortexkit/aft-darwin-x64": "0.15.0",
|
|
30
|
+
"@cortexkit/aft-linux-arm64": "0.15.0",
|
|
31
|
+
"@cortexkit/aft-linux-x64": "0.15.0",
|
|
32
|
+
"@cortexkit/aft-win32-x64": "0.15.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@mariozechner/pi-coding-agent": "*",
|
|
35
36
|
"@mariozechner/pi-ai": "*",
|
|
37
|
+
"@mariozechner/pi-tui": "*",
|
|
36
38
|
"@types/node": "^22.0.0",
|
|
37
39
|
"typescript": "^5.8.0"
|
|
38
40
|
},
|
|
39
41
|
"peerDependencies": {
|
|
40
|
-
"@mariozechner/pi-coding-agent": "*"
|
|
42
|
+
"@mariozechner/pi-coding-agent": "*",
|
|
43
|
+
"@mariozechner/pi-tui": "*"
|
|
41
44
|
},
|
|
42
45
|
"exports": {
|
|
43
46
|
".": {
|