@cortexkit/aft-pi 0.51.0 → 0.51.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.js +39 -15
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -8754,6 +8754,20 @@ class BinaryBridge {
|
|
|
8754
8754
|
isAlive() {
|
|
8755
8755
|
return this.process !== null && this.process.exitCode === null && !this.process.killed;
|
|
8756
8756
|
}
|
|
8757
|
+
invalidateTransportProcess(error2) {
|
|
8758
|
+
const proc = this.process;
|
|
8759
|
+
if (!proc)
|
|
8760
|
+
return;
|
|
8761
|
+
this.process = null;
|
|
8762
|
+
this.spawnedBinaryFingerprint = null;
|
|
8763
|
+
if (proc.exitCode === null && !proc.killed) {
|
|
8764
|
+
proc.kill("SIGKILL");
|
|
8765
|
+
}
|
|
8766
|
+
this.clearRestartResetTimer();
|
|
8767
|
+
this.configured = false;
|
|
8768
|
+
this.outstandingBackgroundTaskIds.clear();
|
|
8769
|
+
this.rejectAllPending(error2);
|
|
8770
|
+
}
|
|
8757
8771
|
hasPendingRequests() {
|
|
8758
8772
|
return this.pending.size > 0;
|
|
8759
8773
|
}
|
|
@@ -8919,6 +8933,7 @@ class BinaryBridge {
|
|
|
8919
8933
|
`;
|
|
8920
8934
|
const keepBridgeOnTimeout = passive || options?.keepBridgeOnTimeout === true;
|
|
8921
8935
|
let requestSentAt = Date.now();
|
|
8936
|
+
const child = this.process;
|
|
8922
8937
|
const response = await new Promise((resolve2, reject) => {
|
|
8923
8938
|
const timer = setTimeout(() => {
|
|
8924
8939
|
const entry = this.pending.get(id);
|
|
@@ -8955,21 +8970,27 @@ class BinaryBridge {
|
|
|
8955
8970
|
this.handleTimeout(requestSessionId);
|
|
8956
8971
|
}, effectiveTimeoutMs);
|
|
8957
8972
|
this.pending.set(id, { resolve: resolve2, reject, timer, onProgress: options?.onProgress, command });
|
|
8958
|
-
if (!
|
|
8973
|
+
if (!child?.stdin?.writable) {
|
|
8959
8974
|
this.pending.delete(id);
|
|
8960
8975
|
clearTimeout(timer);
|
|
8961
|
-
|
|
8976
|
+
const error2 = new BridgeTransportUnavailableError(`${this.errorPrefix} stdin not writable for command "${command}"`);
|
|
8977
|
+
reject(error2);
|
|
8978
|
+
if (this.process === child)
|
|
8979
|
+
this.invalidateTransportProcess(error2);
|
|
8962
8980
|
return;
|
|
8963
8981
|
}
|
|
8964
8982
|
requestSentAt = Date.now();
|
|
8965
|
-
|
|
8983
|
+
child.stdin.write(line, (err) => {
|
|
8966
8984
|
if (err) {
|
|
8985
|
+
const error2 = new BridgeTransportUnavailableError(`${this.errorPrefix} Failed to write to stdin: ${err.message}`, { cause: err });
|
|
8967
8986
|
const entry = this.pending.get(id);
|
|
8968
8987
|
if (entry) {
|
|
8969
8988
|
this.pending.delete(id);
|
|
8970
8989
|
clearTimeout(entry.timer);
|
|
8971
|
-
entry.reject(
|
|
8990
|
+
entry.reject(error2);
|
|
8972
8991
|
}
|
|
8992
|
+
if (this.process === child)
|
|
8993
|
+
this.invalidateTransportProcess(error2);
|
|
8973
8994
|
}
|
|
8974
8995
|
});
|
|
8975
8996
|
});
|
|
@@ -9129,8 +9150,11 @@ class BinaryBridge {
|
|
|
9129
9150
|
});
|
|
9130
9151
|
}
|
|
9131
9152
|
ensureSpawned(triggeringSessionId) {
|
|
9132
|
-
if (this.isAlive())
|
|
9153
|
+
if (this.isAlive() && this.process?.stdin?.writable)
|
|
9133
9154
|
return;
|
|
9155
|
+
if (this.process !== null) {
|
|
9156
|
+
this.invalidateTransportProcess(new BridgeTransportUnavailableError(`${this.errorPrefix} Child stdin is not writable`));
|
|
9157
|
+
}
|
|
9134
9158
|
this.spawnProcess(triggeringSessionId);
|
|
9135
9159
|
}
|
|
9136
9160
|
spawnProcess(triggeringSessionId) {
|
|
@@ -17953,7 +17977,7 @@ import {
|
|
|
17953
17977
|
// package.json
|
|
17954
17978
|
var package_default = {
|
|
17955
17979
|
name: "@cortexkit/aft-pi",
|
|
17956
|
-
version: "0.51.
|
|
17980
|
+
version: "0.51.1",
|
|
17957
17981
|
type: "module",
|
|
17958
17982
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
17959
17983
|
main: "dist/index.js",
|
|
@@ -17976,19 +18000,19 @@ var package_default = {
|
|
|
17976
18000
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
17977
18001
|
},
|
|
17978
18002
|
dependencies: {
|
|
17979
|
-
"@cortexkit/aft-bridge": "0.51.
|
|
18003
|
+
"@cortexkit/aft-bridge": "0.51.1",
|
|
17980
18004
|
"comment-json": "^5.0.0",
|
|
17981
18005
|
diff: "^8.0.4",
|
|
17982
18006
|
typebox: "1.1.38",
|
|
17983
18007
|
zod: "^4.4.3"
|
|
17984
18008
|
},
|
|
17985
18009
|
optionalDependencies: {
|
|
17986
|
-
"@cortexkit/aft-darwin-arm64": "0.51.
|
|
17987
|
-
"@cortexkit/aft-darwin-x64": "0.51.
|
|
17988
|
-
"@cortexkit/aft-linux-arm64": "0.51.
|
|
17989
|
-
"@cortexkit/aft-linux-x64": "0.51.
|
|
17990
|
-
"@cortexkit/aft-win32-arm64": "0.51.
|
|
17991
|
-
"@cortexkit/aft-win32-x64": "0.51.
|
|
18010
|
+
"@cortexkit/aft-darwin-arm64": "0.51.1",
|
|
18011
|
+
"@cortexkit/aft-darwin-x64": "0.51.1",
|
|
18012
|
+
"@cortexkit/aft-linux-arm64": "0.51.1",
|
|
18013
|
+
"@cortexkit/aft-linux-x64": "0.51.1",
|
|
18014
|
+
"@cortexkit/aft-win32-arm64": "0.51.1",
|
|
18015
|
+
"@cortexkit/aft-win32-x64": "0.51.1"
|
|
17992
18016
|
},
|
|
17993
18017
|
devDependencies: {
|
|
17994
18018
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|
|
@@ -38880,7 +38904,7 @@ var SearchParams2 = Type13.Object({
|
|
|
38880
38904
|
description: "Include test files (*.test.*, *_test.rs, __tests__/, …) plus test-support, fixture, mock, snapshot, and corpus files. Defaults to false."
|
|
38881
38905
|
})),
|
|
38882
38906
|
path: Type13.Optional(Type13.String({
|
|
38883
|
-
description: "
|
|
38907
|
+
description: "Only set this to search a different Git project (absolute or ~ path). Omit it for the current configured workspace, including non-Git workspace roots; this is not a subdirectory filter. Unindexed external projects use a bounded lexical fallback."
|
|
38884
38908
|
}))
|
|
38885
38909
|
});
|
|
38886
38910
|
function buildSemanticSections(args, payload, theme) {
|
|
@@ -39251,7 +39275,7 @@ var PLUGIN_VERSION = (() => {
|
|
|
39251
39275
|
return "0.0.0";
|
|
39252
39276
|
}
|
|
39253
39277
|
})();
|
|
39254
|
-
var ANNOUNCEMENT_VERSION = "0.51.
|
|
39278
|
+
var ANNOUNCEMENT_VERSION = "0.51.1";
|
|
39255
39279
|
var ANNOUNCEMENT_FEATURES = [
|
|
39256
39280
|
"Callgraph stays consistent under load: edits arriving mid-rebuild can no longer be silently lost from navigation results.",
|
|
39257
39281
|
"aft_zoom handles real-world .jsonc: files with comment banners above the opening brace now resolve, and not-found errors point at the segment that actually failed (thanks @iceteaSA).",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.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,19 +23,19 @@
|
|
|
23
23
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cortexkit/aft-bridge": "0.51.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.51.1",
|
|
27
27
|
"comment-json": "^5.0.0",
|
|
28
28
|
"diff": "^8.0.4",
|
|
29
29
|
"typebox": "1.1.38",
|
|
30
30
|
"zod": "^4.4.3"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@cortexkit/aft-darwin-arm64": "0.51.
|
|
34
|
-
"@cortexkit/aft-darwin-x64": "0.51.
|
|
35
|
-
"@cortexkit/aft-linux-arm64": "0.51.
|
|
36
|
-
"@cortexkit/aft-linux-x64": "0.51.
|
|
37
|
-
"@cortexkit/aft-win32-arm64": "0.51.
|
|
38
|
-
"@cortexkit/aft-win32-x64": "0.51.
|
|
33
|
+
"@cortexkit/aft-darwin-arm64": "0.51.1",
|
|
34
|
+
"@cortexkit/aft-darwin-x64": "0.51.1",
|
|
35
|
+
"@cortexkit/aft-linux-arm64": "0.51.1",
|
|
36
|
+
"@cortexkit/aft-linux-x64": "0.51.1",
|
|
37
|
+
"@cortexkit/aft-win32-arm64": "0.51.1",
|
|
38
|
+
"@cortexkit/aft-win32-x64": "0.51.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@earendil-works/pi-coding-agent": "^0.80.2",
|