@cortexkit/aft-pi 0.35.0 → 0.35.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/config.d.ts.map +1 -1
- package/dist/index.js +69 -19
- package/package.json +8 -8
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEX,MAAM,MAAM,OAAO,GACf,KAAK,GACL,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,OAAO,GACP,IAAI,GACJ,aAAa,GACb,MAAM,CAAC;AAEX,gFAAgF;AAChF,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,mBAAmB,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAC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,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,kBAAkB,CAsEvE;AAgED,eAAO,MAAM,eAAe;;;;;;;;;iBAE1B,CAAC;AAwFH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiCjB,CAAC;AAMZ,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,SAAS,GAAG,qBAAqB,CAuDrF;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,SAAS,GAChB,8BAA8B,CAsBhC;AAED,KAAK,MAAM,GAAG;IACZ,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAyKF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,MAAM,GAAE,MAAsB,GAC7B;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAgD1C;AA4UD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CA4CjE"}
|
package/dist/index.js
CHANGED
|
@@ -12823,6 +12823,20 @@ function compressionSavingsPercent(original, compressed) {
|
|
|
12823
12823
|
const saved = Math.max(0, original - compressed);
|
|
12824
12824
|
return Math.round(saved / original * 100);
|
|
12825
12825
|
}
|
|
12826
|
+
// ../aft-bridge/dist/jsonc.js
|
|
12827
|
+
function stripJsoncSymbols(value) {
|
|
12828
|
+
if (Array.isArray(value)) {
|
|
12829
|
+
return value.map((item) => stripJsoncSymbols(item));
|
|
12830
|
+
}
|
|
12831
|
+
if (value !== null && typeof value === "object") {
|
|
12832
|
+
const out = {};
|
|
12833
|
+
for (const [key, val] of Object.entries(value)) {
|
|
12834
|
+
out[key] = stripJsoncSymbols(val);
|
|
12835
|
+
}
|
|
12836
|
+
return out;
|
|
12837
|
+
}
|
|
12838
|
+
return value;
|
|
12839
|
+
}
|
|
12826
12840
|
// ../aft-bridge/dist/migration.js
|
|
12827
12841
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
12828
12842
|
import { existsSync as existsSync4, mkdirSync as mkdirSync4 } from "node:fs";
|
|
@@ -12881,7 +12895,7 @@ function markAnnouncementSeen(storageRoot, harness, currentVersion) {
|
|
|
12881
12895
|
|
|
12882
12896
|
// ../aft-bridge/dist/resolver.js
|
|
12883
12897
|
import { execSync } from "node:child_process";
|
|
12884
|
-
import { chmodSync as chmodSync2, copyFileSync as copyFileSync2, existsSync as existsSync3, mkdirSync as mkdirSync3, renameSync as renameSync3, unlinkSync as unlinkSync2 } from "node:fs";
|
|
12898
|
+
import { chmodSync as chmodSync2, closeSync as closeSync2, copyFileSync as copyFileSync2, existsSync as existsSync3, mkdirSync as mkdirSync3, openSync as openSync2, readSync, renameSync as renameSync3, unlinkSync as unlinkSync2 } from "node:fs";
|
|
12885
12899
|
import { createRequire as createRequire2 } from "node:module";
|
|
12886
12900
|
import { homedir as homedir3 } from "node:os";
|
|
12887
12901
|
import { join as join4 } from "node:path";
|
|
@@ -12962,6 +12976,37 @@ function probeBinaryCandidate(binaryPath, source, expectedVersion) {
|
|
|
12962
12976
|
function parsePathLookupOutput(output) {
|
|
12963
12977
|
return output.split(/\r?\n/).map((candidate) => candidate.trim()).filter(Boolean);
|
|
12964
12978
|
}
|
|
12979
|
+
function isNativeExecutable(binaryPath) {
|
|
12980
|
+
let fd = null;
|
|
12981
|
+
try {
|
|
12982
|
+
fd = openSync2(binaryPath, "r");
|
|
12983
|
+
const buf = Buffer.alloc(4);
|
|
12984
|
+
const read = readSync(fd, buf, 0, 4, 0);
|
|
12985
|
+
if (read < 2)
|
|
12986
|
+
return false;
|
|
12987
|
+
const b0 = buf[0];
|
|
12988
|
+
const b1 = buf[1];
|
|
12989
|
+
if (b0 === 35 && b1 === 33)
|
|
12990
|
+
return false;
|
|
12991
|
+
const m32 = buf.readUInt32BE(0);
|
|
12992
|
+
const machO = new Set([4277009102, 4277009103, 3472551422, 3489328638, 3405691582]);
|
|
12993
|
+
if (read >= 4 && machO.has(m32))
|
|
12994
|
+
return true;
|
|
12995
|
+
if (read >= 4 && m32 === 2135247942)
|
|
12996
|
+
return true;
|
|
12997
|
+
if (b0 === 77 && b1 === 90)
|
|
12998
|
+
return true;
|
|
12999
|
+
return false;
|
|
13000
|
+
} catch {
|
|
13001
|
+
return false;
|
|
13002
|
+
} finally {
|
|
13003
|
+
if (fd !== null) {
|
|
13004
|
+
try {
|
|
13005
|
+
closeSync2(fd);
|
|
13006
|
+
} catch {}
|
|
13007
|
+
}
|
|
13008
|
+
}
|
|
13009
|
+
}
|
|
12965
13010
|
function platformKey(platform = process.platform, arch = process.arch) {
|
|
12966
13011
|
const archMap = PLATFORM_ARCH_MAP[platform];
|
|
12967
13012
|
if (!archMap) {
|
|
@@ -13015,6 +13060,10 @@ function findBinarySync(expectedVersion) {
|
|
|
13015
13060
|
stdio: ["pipe", "pipe", "pipe"]
|
|
13016
13061
|
}).trim();
|
|
13017
13062
|
for (const candidate of parsePathLookupOutput(result)) {
|
|
13063
|
+
if (!isNativeExecutable(candidate)) {
|
|
13064
|
+
warn(`PATH binary at ${candidate} is not a native executable (script shim?); skipping`);
|
|
13065
|
+
continue;
|
|
13066
|
+
}
|
|
13018
13067
|
const usable = probeBinaryCandidate(candidate, "PATH", expectedVersion);
|
|
13019
13068
|
if (usable)
|
|
13020
13069
|
return usable;
|
|
@@ -13164,7 +13213,7 @@ async function ensureStorageMigrated(opts) {
|
|
|
13164
13213
|
// ../aft-bridge/dist/onnx-runtime.js
|
|
13165
13214
|
import { execFileSync } from "node:child_process";
|
|
13166
13215
|
import { createHash as createHash2 } from "node:crypto";
|
|
13167
|
-
import { chmodSync as chmodSync3, closeSync as
|
|
13216
|
+
import { chmodSync as chmodSync3, closeSync as closeSync3, copyFileSync as copyFileSync3, createWriteStream as createWriteStream2, existsSync as existsSync5, lstatSync, mkdirSync as mkdirSync5, openSync as openSync3, readdirSync, readFileSync as readFileSync3, readlinkSync, realpathSync, rmSync as rmSync2, statSync as statSync2, symlinkSync, unlinkSync as unlinkSync3, writeFileSync as writeFileSync2 } from "node:fs";
|
|
13168
13217
|
import { basename, dirname as dirname3, isAbsolute, join as join6, relative, resolve, win32 } from "node:path";
|
|
13169
13218
|
import { Readable as Readable2 } from "node:stream";
|
|
13170
13219
|
import { pipeline as pipeline2 } from "node:stream/promises";
|
|
@@ -13736,13 +13785,13 @@ function sha256File(path) {
|
|
|
13736
13785
|
function acquireLock(lockPath) {
|
|
13737
13786
|
const tryClaim = () => {
|
|
13738
13787
|
try {
|
|
13739
|
-
const fd =
|
|
13788
|
+
const fd = openSync3(lockPath, "wx");
|
|
13740
13789
|
try {
|
|
13741
13790
|
writeFileSync2(fd, `${process.pid}
|
|
13742
13791
|
${new Date().toISOString()}
|
|
13743
13792
|
`);
|
|
13744
13793
|
} finally {
|
|
13745
|
-
|
|
13794
|
+
closeSync3(fd);
|
|
13746
13795
|
}
|
|
13747
13796
|
return true;
|
|
13748
13797
|
} catch (err) {
|
|
@@ -14774,7 +14823,7 @@ import {
|
|
|
14774
14823
|
// package.json
|
|
14775
14824
|
var package_default = {
|
|
14776
14825
|
name: "@cortexkit/aft-pi",
|
|
14777
|
-
version: "0.35.
|
|
14826
|
+
version: "0.35.1",
|
|
14778
14827
|
type: "module",
|
|
14779
14828
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
14780
14829
|
main: "dist/index.js",
|
|
@@ -14797,7 +14846,7 @@ var package_default = {
|
|
|
14797
14846
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
14798
14847
|
},
|
|
14799
14848
|
dependencies: {
|
|
14800
|
-
"@cortexkit/aft-bridge": "0.35.
|
|
14849
|
+
"@cortexkit/aft-bridge": "0.35.1",
|
|
14801
14850
|
"@xterm/headless": "^5.5.0",
|
|
14802
14851
|
"comment-json": "^5.0.0",
|
|
14803
14852
|
diff: "^8.0.4",
|
|
@@ -14805,12 +14854,12 @@ var package_default = {
|
|
|
14805
14854
|
zod: "^4.1.8"
|
|
14806
14855
|
},
|
|
14807
14856
|
optionalDependencies: {
|
|
14808
|
-
"@cortexkit/aft-darwin-arm64": "0.35.
|
|
14809
|
-
"@cortexkit/aft-darwin-x64": "0.35.
|
|
14810
|
-
"@cortexkit/aft-linux-arm64": "0.35.
|
|
14811
|
-
"@cortexkit/aft-linux-x64": "0.35.
|
|
14812
|
-
"@cortexkit/aft-win32-arm64": "0.35.
|
|
14813
|
-
"@cortexkit/aft-win32-x64": "0.35.
|
|
14857
|
+
"@cortexkit/aft-darwin-arm64": "0.35.1",
|
|
14858
|
+
"@cortexkit/aft-darwin-x64": "0.35.1",
|
|
14859
|
+
"@cortexkit/aft-linux-arm64": "0.35.1",
|
|
14860
|
+
"@cortexkit/aft-linux-x64": "0.35.1",
|
|
14861
|
+
"@cortexkit/aft-win32-arm64": "0.35.1",
|
|
14862
|
+
"@cortexkit/aft-win32-x64": "0.35.1"
|
|
14814
14863
|
},
|
|
14815
14864
|
devDependencies: {
|
|
14816
14865
|
"@earendil-works/pi-coding-agent": "*",
|
|
@@ -15456,10 +15505,10 @@ function registerStatusCommand(pi, ctx) {
|
|
|
15456
15505
|
}
|
|
15457
15506
|
|
|
15458
15507
|
// src/config.ts
|
|
15459
|
-
var import_comment_json = __toESM(require_src2(), 1);
|
|
15460
15508
|
import { existsSync as existsSync6, readFileSync as readFileSync4, renameSync as renameSync4, unlinkSync as unlinkSync4, writeFileSync as writeFileSync3 } from "node:fs";
|
|
15461
15509
|
import { homedir as homedir6 } from "node:os";
|
|
15462
15510
|
import { join as join8 } from "node:path";
|
|
15511
|
+
var import_comment_json = __toESM(require_src2(), 1);
|
|
15463
15512
|
|
|
15464
15513
|
// ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
15465
15514
|
var exports_external = {};
|
|
@@ -29396,14 +29445,15 @@ function loadConfigFromPath(configPath) {
|
|
|
29396
29445
|
return null;
|
|
29397
29446
|
}
|
|
29398
29447
|
migrateRawConfig(rawConfig, configPath, { log: log2, warn: warn2 });
|
|
29399
|
-
const
|
|
29448
|
+
const cleanConfig = stripJsoncSymbols(rawConfig);
|
|
29449
|
+
const result = AftConfigSchema.safeParse(cleanConfig);
|
|
29400
29450
|
if (result.success) {
|
|
29401
29451
|
log2(`Config loaded from ${configPath}`);
|
|
29402
29452
|
return result.data;
|
|
29403
29453
|
}
|
|
29404
29454
|
const errorMsg = result.error.issues.map((i) => `${i.path.join(".")}: ${i.message}`).join(", ");
|
|
29405
29455
|
warn2(`Config validation error in ${configPath}: ${errorMsg}`);
|
|
29406
|
-
return parseConfigPartially(
|
|
29456
|
+
return parseConfigPartially(cleanConfig);
|
|
29407
29457
|
} catch (err) {
|
|
29408
29458
|
const errorMsg = err instanceof Error ? err.message : String(err);
|
|
29409
29459
|
error2(`Error loading config from ${configPath}: ${errorMsg}`);
|
|
@@ -29631,9 +29681,9 @@ import { join as join11 } from "node:path";
|
|
|
29631
29681
|
|
|
29632
29682
|
// src/lsp-cache.ts
|
|
29633
29683
|
import {
|
|
29634
|
-
closeSync as
|
|
29684
|
+
closeSync as closeSync4,
|
|
29635
29685
|
mkdirSync as mkdirSync6,
|
|
29636
|
-
openSync as
|
|
29686
|
+
openSync as openSync4,
|
|
29637
29687
|
readFileSync as readFileSync5,
|
|
29638
29688
|
statSync as statSync3,
|
|
29639
29689
|
unlinkSync as unlinkSync5,
|
|
@@ -29726,13 +29776,13 @@ function acquireInstallLock(lockKey) {
|
|
|
29726
29776
|
const lock = lockPath(lockKey);
|
|
29727
29777
|
const tryClaim = () => {
|
|
29728
29778
|
try {
|
|
29729
|
-
const fd =
|
|
29779
|
+
const fd = openSync4(lock, "wx");
|
|
29730
29780
|
try {
|
|
29731
29781
|
writeFileSync4(fd, `${process.pid}
|
|
29732
29782
|
${new Date().toISOString()}
|
|
29733
29783
|
`);
|
|
29734
29784
|
} finally {
|
|
29735
|
-
|
|
29785
|
+
closeSync4(fd);
|
|
29736
29786
|
}
|
|
29737
29787
|
return true;
|
|
29738
29788
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.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,7 +23,7 @@
|
|
|
23
23
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cortexkit/aft-bridge": "0.35.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.35.1",
|
|
27
27
|
"@xterm/headless": "^5.5.0",
|
|
28
28
|
"comment-json": "^5.0.0",
|
|
29
29
|
"diff": "^8.0.4",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"zod": "^4.1.8"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@cortexkit/aft-darwin-arm64": "0.35.
|
|
35
|
-
"@cortexkit/aft-darwin-x64": "0.35.
|
|
36
|
-
"@cortexkit/aft-linux-arm64": "0.35.
|
|
37
|
-
"@cortexkit/aft-linux-x64": "0.35.
|
|
38
|
-
"@cortexkit/aft-win32-arm64": "0.35.
|
|
39
|
-
"@cortexkit/aft-win32-x64": "0.35.
|
|
34
|
+
"@cortexkit/aft-darwin-arm64": "0.35.1",
|
|
35
|
+
"@cortexkit/aft-darwin-x64": "0.35.1",
|
|
36
|
+
"@cortexkit/aft-linux-arm64": "0.35.1",
|
|
37
|
+
"@cortexkit/aft-linux-x64": "0.35.1",
|
|
38
|
+
"@cortexkit/aft-win32-arm64": "0.35.1",
|
|
39
|
+
"@cortexkit/aft-win32-x64": "0.35.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@earendil-works/pi-coding-agent": "*",
|