@cortexkit/aft-pi 0.22.0 → 0.22.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.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
* - /aft-status Status dialog (index states, LSP servers, storage dir)
|
|
31
31
|
*/
|
|
32
32
|
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
|
33
|
-
import { loadAftConfig } from "./config.js";
|
|
33
|
+
import { type AftConfig, loadAftConfig } from "./config.js";
|
|
34
|
+
declare function shouldPrepareOnnxRuntime(config: Pick<AftConfig, "semantic_search" | "semantic">): boolean;
|
|
34
35
|
declare function handleConfigureWarningsForSession(context: {
|
|
35
36
|
projectRoot: string;
|
|
36
37
|
sessionId?: string | null;
|
|
@@ -78,6 +79,7 @@ export default function (pi: ExtensionAPI): Promise<void>;
|
|
|
78
79
|
export declare const __test__: {
|
|
79
80
|
resolveToolSurface: typeof resolveToolSurface;
|
|
80
81
|
handleConfigureWarningsForSession: typeof handleConfigureWarningsForSession;
|
|
82
|
+
shouldPrepareOnnxRuntime: typeof shouldPrepareOnnxRuntime;
|
|
81
83
|
};
|
|
82
84
|
export {};
|
|
83
85
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAaH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAQlE,OAAO,EACL,aAAa,EAGd,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;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ACnB,CAiEA;AAED;;;;GAIG;AACH,yBAA+B,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmY9D;AAED,eAAO,MAAM,QAAQ;;;;CAIpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -51447,6 +51447,10 @@ function drainPendingEagerWarnings(projectRoot) {
|
|
|
51447
51447
|
pendingEagerWarnings.delete(projectRoot);
|
|
51448
51448
|
return pending;
|
|
51449
51449
|
}
|
|
51450
|
+
function shouldPrepareOnnxRuntime(config2) {
|
|
51451
|
+
const isFastembedSemanticBackend = (config2.semantic?.backend ?? "fastembed") === "fastembed";
|
|
51452
|
+
return config2.semantic_search === true && isFastembedSemanticBackend;
|
|
51453
|
+
}
|
|
51450
51454
|
async function handleConfigureWarningsForSession(context) {
|
|
51451
51455
|
const validWarnings = coerceConfigureWarnings(context.warnings);
|
|
51452
51456
|
if (!context.sessionId) {
|
|
@@ -51550,7 +51554,7 @@ async function src_default(pi) {
|
|
|
51550
51554
|
const config2 = loadAftConfig(process.cwd());
|
|
51551
51555
|
const storageDir = resolveStorageDir();
|
|
51552
51556
|
let onnxRuntimePromise = null;
|
|
51553
|
-
if (config2
|
|
51557
|
+
if (shouldPrepareOnnxRuntime(config2)) {
|
|
51554
51558
|
onnxRuntimePromise = ensureOnnxRuntime(storageDir).catch((err) => {
|
|
51555
51559
|
warn2(`Failed to prepare ONNX Runtime: ${err instanceof Error ? err.message : String(err)}`);
|
|
51556
51560
|
return null;
|
|
@@ -51781,7 +51785,11 @@ ${lines}
|
|
|
51781
51785
|
});
|
|
51782
51786
|
log2(`AFT extension ready (surface=${config2.tool_surface ?? "recommended"})`);
|
|
51783
51787
|
}
|
|
51784
|
-
var __test__2 = {
|
|
51788
|
+
var __test__2 = {
|
|
51789
|
+
resolveToolSurface,
|
|
51790
|
+
handleConfigureWarningsForSession,
|
|
51791
|
+
shouldPrepareOnnxRuntime
|
|
51792
|
+
};
|
|
51785
51793
|
export {
|
|
51786
51794
|
src_default as default,
|
|
51787
51795
|
__test__2 as __test__
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.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",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"prepublishOnly": "bun run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cortexkit/aft-bridge": "0.22.
|
|
25
|
+
"@cortexkit/aft-bridge": "0.22.1",
|
|
26
26
|
"@sinclair/typebox": "^0.34.33",
|
|
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.22.
|
|
33
|
-
"@cortexkit/aft-darwin-x64": "0.22.
|
|
34
|
-
"@cortexkit/aft-linux-arm64": "0.22.
|
|
35
|
-
"@cortexkit/aft-linux-x64": "0.22.
|
|
36
|
-
"@cortexkit/aft-win32-x64": "0.22.
|
|
32
|
+
"@cortexkit/aft-darwin-arm64": "0.22.1",
|
|
33
|
+
"@cortexkit/aft-darwin-x64": "0.22.1",
|
|
34
|
+
"@cortexkit/aft-linux-arm64": "0.22.1",
|
|
35
|
+
"@cortexkit/aft-linux-x64": "0.22.1",
|
|
36
|
+
"@cortexkit/aft-win32-x64": "0.22.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@mariozechner/pi-coding-agent": "*",
|