@cortexkit/aft-pi 0.48.1 → 0.49.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.d.ts +3 -32
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +701 -284
- package/dist/tool-registration.d.ts +33 -0
- package/dist/tool-registration.d.ts.map +1 -0
- package/dist/tools/_shared.d.ts +5 -3
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/ast.d.ts +1 -1
- package/dist/tools/ast.d.ts.map +1 -1
- package/dist/tools/conflicts.d.ts.map +1 -1
- package/dist/tools/fs.d.ts +1 -1
- package/dist/tools/fs.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts +2 -2
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/imports.d.ts +1 -1
- package/dist/tools/imports.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tools/navigate.d.ts +2 -2
- package/dist/tools/navigate.d.ts.map +1 -1
- package/dist/tools/reading.d.ts +4 -4
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/refactor.d.ts +1 -1
- package/dist/tools/refactor.d.ts.map +1 -1
- package/dist/tools/safety.d.ts +1 -1
- package/dist/tools/safety.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts +0 -1
- package/dist/tools/semantic.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
* - /aft-status Status dialog (index states, LSP servers, storage dir)
|
|
30
30
|
*/
|
|
31
31
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
32
|
-
import { type AftConfig, getConfigLoadErrors
|
|
32
|
+
import { type AftConfig, getConfigLoadErrors } from "./config.js";
|
|
33
|
+
import { resolvePiToolSurface } from "./tool-registration.js";
|
|
33
34
|
type VersionMismatchPool = {
|
|
34
35
|
replaceBinary(path: string): Promise<string>;
|
|
35
36
|
};
|
|
@@ -47,36 +48,6 @@ declare function handleConfigureWarningsForSession(context: {
|
|
|
47
48
|
storageDir: string;
|
|
48
49
|
pluginVersion: string;
|
|
49
50
|
}): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Tool surface mirrors opencode-plugin: navigate/delete/move/transform/refactor
|
|
52
|
-
* are all-only. recommended exposes hoisted + read/safety/import/ast/lsp/conflicts
|
|
53
|
-
* + experimental search/semantic when enabled.
|
|
54
|
-
*
|
|
55
|
-
* Returns the set of AFT tool names that should be registered given the
|
|
56
|
-
* configured surface + disabled_tools filter. Pi's built-in tools are always
|
|
57
|
-
* present; registering an AFT tool with the same name replaces them.
|
|
58
|
-
*/
|
|
59
|
-
declare function resolveToolSurface(config: ReturnType<typeof loadAftConfig>): {
|
|
60
|
-
hoistBash: boolean;
|
|
61
|
-
hoistRead: boolean;
|
|
62
|
-
hoistWrite: boolean;
|
|
63
|
-
hoistEdit: boolean;
|
|
64
|
-
hoistGrep: boolean;
|
|
65
|
-
restrictToProjectRoot: boolean;
|
|
66
|
-
outline: boolean;
|
|
67
|
-
zoom: boolean;
|
|
68
|
-
semantic: boolean;
|
|
69
|
-
inspect: boolean;
|
|
70
|
-
navigate: boolean;
|
|
71
|
-
conflicts: boolean;
|
|
72
|
-
importTool: boolean;
|
|
73
|
-
safety: boolean;
|
|
74
|
-
delete: boolean;
|
|
75
|
-
move: boolean;
|
|
76
|
-
astSearch: boolean;
|
|
77
|
-
astReplace: boolean;
|
|
78
|
-
refactor: boolean;
|
|
79
|
-
};
|
|
80
51
|
/**
|
|
81
52
|
* Pi extension default export.
|
|
82
53
|
*
|
|
@@ -86,7 +57,7 @@ export default function (pi: ExtensionAPI): Promise<void>;
|
|
|
86
57
|
export declare const __test__: {
|
|
87
58
|
enqueueConfigParseWarnings: typeof enqueueConfigParseWarnings;
|
|
88
59
|
bridgeDirectoryFromCallback: typeof bridgeDirectoryFromCallback;
|
|
89
|
-
resolveToolSurface: typeof
|
|
60
|
+
resolveToolSurface: typeof resolvePiToolSurface;
|
|
90
61
|
handleConfigureWarningsForSession: typeof handleConfigureWarningsForSession;
|
|
91
62
|
shouldPrepareOnnxRuntime: typeof shouldPrepareOnnxRuntime;
|
|
92
63
|
createVersionMismatchHandler: typeof createVersionMismatchHandler;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAgBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAUpE,OAAO,EACL,KAAK,SAAS,EAGd,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAgBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAUpE,OAAO,EACL,KAAK,SAAS,EAGd,mBAAmB,EAIpB,MAAM,aAAa,CAAC;AA2BrB,OAAO,EAAyB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AA4BrF,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,iBAAS,4BAA4B,CACnC,OAAO,EAAE,MAAM,mBAAmB,GAAG,SAAS,EAC9C,sBAAsB,GAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAgB,IAOrE,eAAe,MAAM,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyCjF;AAyED,iBAAS,0BAA0B,CACjC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,GAC7C,IAAI,CAUN;AAED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