@cortexkit/aft-pi 0.35.2 → 0.35.4
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/bg-notifications.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +165 -115
- package/dist/lsp-auto-install.d.ts +19 -0
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/shared/status.d.ts +23 -0
- package/dist/shared/status.d.ts.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bg-notifications.d.ts","sourceRoot":"","sources":["../src/bg-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAG3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CA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uBAAuB,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;IACnE,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiChB;AAED;;;;;;;;GAQG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,GAAG;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB,CAwEA;AAED;;;;GAIG;AACH,yBAA+B,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAqd9D;AAED,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11943,6 +11943,9 @@ class BinaryBridge {
|
|
|
11943
11943
|
hasPendingRequests() {
|
|
11944
11944
|
return this.pending.size > 0;
|
|
11945
11945
|
}
|
|
11946
|
+
getCwd() {
|
|
11947
|
+
return this.cwd;
|
|
11948
|
+
}
|
|
11946
11949
|
getCachedStatus() {
|
|
11947
11950
|
return this.cachedStatus;
|
|
11948
11951
|
}
|
|
@@ -12140,7 +12143,6 @@ class BinaryBridge {
|
|
|
12140
12143
|
if (!snapshot || typeof snapshot !== "object" || Array.isArray(snapshot))
|
|
12141
12144
|
return;
|
|
12142
12145
|
this.cachedStatus = snapshot;
|
|
12143
|
-
this.logVia("Received status_changed push frame; cached AFT status snapshot");
|
|
12144
12146
|
for (const listener of this.statusListeners) {
|
|
12145
12147
|
this.deliverStatusSnapshot(listener, this.cachedStatus);
|
|
12146
12148
|
}
|
|
@@ -12287,6 +12289,7 @@ class BinaryBridge {
|
|
|
12287
12289
|
const remaining = stdoutDecoder.end();
|
|
12288
12290
|
if (remaining)
|
|
12289
12291
|
this.onStdoutData(remaining);
|
|
12292
|
+
this.flushStdoutBuffer();
|
|
12290
12293
|
});
|
|
12291
12294
|
const stderrDecoder = new StringDecoder("utf8");
|
|
12292
12295
|
child.stderr?.on("data", (chunk) => {
|
|
@@ -12309,6 +12312,7 @@ class BinaryBridge {
|
|
|
12309
12312
|
return;
|
|
12310
12313
|
if (this._shuttingDown)
|
|
12311
12314
|
return;
|
|
12315
|
+
this.flushStdoutBuffer();
|
|
12312
12316
|
this.logVia(`Process exited: code=${code}, signal=${signal}`);
|
|
12313
12317
|
if (signal === "SIGTERM" || signal === "SIGKILL" || signal === "SIGHUP" || signal === "SIGINT") {
|
|
12314
12318
|
this.process = null;
|
|
@@ -12377,71 +12381,81 @@ class BinaryBridge {
|
|
|
12377
12381
|
this.stdoutBuffer = this.stdoutBuffer.slice(newlineIdx + 1);
|
|
12378
12382
|
if (!line)
|
|
12379
12383
|
continue;
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
|
|
12397
|
-
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
this.onBashCompletion?.(response, this);
|
|
12408
|
-
continue;
|
|
12409
|
-
}
|
|
12410
|
-
if (response.type === "bash_long_running") {
|
|
12411
|
-
this.onBashLongRunning?.(response, this);
|
|
12412
|
-
continue;
|
|
12413
|
-
}
|
|
12414
|
-
if (response.type === "bash_pattern_match") {
|
|
12415
|
-
this.onBashPatternMatch?.(response, this);
|
|
12416
|
-
continue;
|
|
12417
|
-
}
|
|
12418
|
-
if (response.type === "configure_warnings") {
|
|
12419
|
-
this.handleConfigureWarningsFrame(response).catch((err) => {
|
|
12420
|
-
this.warnVia(`configure warning delivery failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
12421
|
-
});
|
|
12422
|
-
continue;
|
|
12423
|
-
}
|
|
12424
|
-
if (response.type === "status_changed") {
|
|
12425
|
-
this.handleStatusChangedFrame(response);
|
|
12426
|
-
continue;
|
|
12427
|
-
}
|
|
12428
|
-
const id = response.id;
|
|
12429
|
-
if (id && this.pending.has(id)) {
|
|
12430
|
-
const entry = this.pending.get(id);
|
|
12431
|
-
if (!entry)
|
|
12432
|
-
continue;
|
|
12433
|
-
this.pending.delete(id);
|
|
12384
|
+
this.processStdoutLine(line);
|
|
12385
|
+
}
|
|
12386
|
+
}
|
|
12387
|
+
flushStdoutBuffer() {
|
|
12388
|
+
const line = this.stdoutBuffer.trim();
|
|
12389
|
+
this.stdoutBuffer = "";
|
|
12390
|
+
if (!line)
|
|
12391
|
+
return;
|
|
12392
|
+
this.processStdoutLine(line);
|
|
12393
|
+
}
|
|
12394
|
+
processStdoutLine(line) {
|
|
12395
|
+
try {
|
|
12396
|
+
const response = JSON.parse(line);
|
|
12397
|
+
this.lastChildActivityAt = Date.now();
|
|
12398
|
+
if (response.type === "progress") {
|
|
12399
|
+
const requestId = response.request_id;
|
|
12400
|
+
const entry = requestId ? this.pending.get(requestId) : undefined;
|
|
12401
|
+
const kind = response.kind === "stderr" ? "stderr" : "stdout";
|
|
12402
|
+
const text = typeof response.chunk === "string" ? response.chunk : "";
|
|
12403
|
+
entry?.onProgress?.({ kind, text });
|
|
12404
|
+
return;
|
|
12405
|
+
}
|
|
12406
|
+
if (response.type === "permission_ask") {
|
|
12407
|
+
const requestId = response.request_id;
|
|
12408
|
+
const entry = requestId ? this.pending.get(requestId) : undefined;
|
|
12409
|
+
if (requestId && entry) {
|
|
12410
|
+
this.pending.delete(requestId);
|
|
12434
12411
|
clearTimeout(entry.timer);
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12412
|
+
entry.resolve({
|
|
12413
|
+
success: false,
|
|
12414
|
+
code: "permission_required",
|
|
12415
|
+
message: "bash command requires permission",
|
|
12416
|
+
asks: response.asks
|
|
12417
|
+
});
|
|
12441
12418
|
}
|
|
12442
|
-
|
|
12443
|
-
|
|
12419
|
+
return;
|
|
12420
|
+
}
|
|
12421
|
+
if (response.type === "bash_completed") {
|
|
12422
|
+
this.onBashCompletion?.(response, this);
|
|
12423
|
+
return;
|
|
12424
|
+
}
|
|
12425
|
+
if (response.type === "bash_long_running") {
|
|
12426
|
+
this.onBashLongRunning?.(response, this);
|
|
12427
|
+
return;
|
|
12428
|
+
}
|
|
12429
|
+
if (response.type === "bash_pattern_match") {
|
|
12430
|
+
this.onBashPatternMatch?.(response, this);
|
|
12431
|
+
return;
|
|
12432
|
+
}
|
|
12433
|
+
if (response.type === "configure_warnings") {
|
|
12434
|
+
this.handleConfigureWarningsFrame(response).catch((err) => {
|
|
12435
|
+
this.warnVia(`configure warning delivery failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
12436
|
+
});
|
|
12437
|
+
return;
|
|
12438
|
+
}
|
|
12439
|
+
if (response.type === "status_changed") {
|
|
12440
|
+
this.handleStatusChangedFrame(response);
|
|
12441
|
+
return;
|
|
12444
12442
|
}
|
|
12443
|
+
const id = response.id;
|
|
12444
|
+
if (id && this.pending.has(id)) {
|
|
12445
|
+
const entry = this.pending.get(id);
|
|
12446
|
+
if (!entry)
|
|
12447
|
+
return;
|
|
12448
|
+
this.pending.delete(id);
|
|
12449
|
+
clearTimeout(entry.timer);
|
|
12450
|
+
this.consecutiveRequestTimeouts = 0;
|
|
12451
|
+
this.scheduleRestartCountReset();
|
|
12452
|
+
this.captureStatusBar(response);
|
|
12453
|
+
entry.resolve(response);
|
|
12454
|
+
} else if (typeof response.type === "string") {
|
|
12455
|
+
this.logVia(`Ignoring unknown stdout push frame type: ${response.type}`);
|
|
12456
|
+
}
|
|
12457
|
+
} catch (_err) {
|
|
12458
|
+
this.warnVia(`Failed to parse stdout line: ${line}`);
|
|
12445
12459
|
}
|
|
12446
12460
|
}
|
|
12447
12461
|
captureStatusBar(response) {
|
|
@@ -14437,13 +14451,7 @@ function consumeBgCompletion(sessionID, taskId) {
|
|
|
14437
14451
|
state.consumedTaskIds.delete(evicted);
|
|
14438
14452
|
}
|
|
14439
14453
|
}
|
|
14440
|
-
|
|
14441
|
-
clearTimeout(state.debounceTimer);
|
|
14442
|
-
state.debounceTimer = null;
|
|
14443
|
-
state.firstCompletionAt = null;
|
|
14444
|
-
state.scheduledFireAt = null;
|
|
14445
|
-
state.scheduledCompletionCount = 0;
|
|
14446
|
-
}
|
|
14454
|
+
clearWakeTimerIfNoPending(state);
|
|
14447
14455
|
}
|
|
14448
14456
|
async function markBgCompletionDelivered(drainContext, taskId) {
|
|
14449
14457
|
await ackCompletions(drainContext, [
|
|
@@ -14602,16 +14610,11 @@ async function appendToolResultBgCompletions(drainContext, content) {
|
|
|
14602
14610
|
}
|
|
14603
14611
|
state.pendingLongRunning = [];
|
|
14604
14612
|
state.pendingPatternMatches = [];
|
|
14613
|
+
state.retryDelayMs = null;
|
|
14605
14614
|
state.wakeRetryAttempts = 0;
|
|
14606
14615
|
state.wakeHardStopped = false;
|
|
14607
14616
|
await ackCompletions(drainContext, completionAcks);
|
|
14608
|
-
|
|
14609
|
-
clearTimeout(state.debounceTimer);
|
|
14610
|
-
state.debounceTimer = null;
|
|
14611
|
-
state.firstCompletionAt = null;
|
|
14612
|
-
state.scheduledFireAt = null;
|
|
14613
|
-
state.scheduledCompletionCount = 0;
|
|
14614
|
-
}
|
|
14617
|
+
clearWakeTimerIfNoPending(state);
|
|
14615
14618
|
return [...content, { type: "text", text: reminder }];
|
|
14616
14619
|
}
|
|
14617
14620
|
async function handleTurnEndBgCompletions(drainContext) {
|
|
@@ -14723,13 +14726,18 @@ function wakeEligibleCompletions(state, includeDeferredCompletions) {
|
|
|
14723
14726
|
return state.pendingCompletions.filter((completion) => !state.wakeDeferredTaskIds.has(completion.task_id));
|
|
14724
14727
|
}
|
|
14725
14728
|
function clearWakeTimerIfNoPending(state) {
|
|
14726
|
-
if (state.pendingCompletions.length
|
|
14727
|
-
|
|
14728
|
-
state.debounceTimer = null;
|
|
14729
|
-
state.firstCompletionAt = null;
|
|
14730
|
-
state.scheduledFireAt = null;
|
|
14731
|
-
state.scheduledCompletionCount = 0;
|
|
14729
|
+
if (state.pendingCompletions.length > 0 || state.pendingLongRunning.length > 0 || state.pendingPatternMatches.length > 0) {
|
|
14730
|
+
return;
|
|
14732
14731
|
}
|
|
14732
|
+
if (state.debounceTimer)
|
|
14733
|
+
clearTimeout(state.debounceTimer);
|
|
14734
|
+
state.debounceTimer = null;
|
|
14735
|
+
state.firstCompletionAt = null;
|
|
14736
|
+
state.scheduledFireAt = null;
|
|
14737
|
+
state.scheduledCompletionCount = 0;
|
|
14738
|
+
state.retryDelayMs = null;
|
|
14739
|
+
state.wakeRetryAttempts = 0;
|
|
14740
|
+
state.wakeHardStopped = false;
|
|
14733
14741
|
}
|
|
14734
14742
|
function scheduleWake(state, sendWake, onSendFailure, includeDeferredCompletions = true) {
|
|
14735
14743
|
if (state.wakeHardStopped)
|
|
@@ -14966,7 +14974,7 @@ import {
|
|
|
14966
14974
|
// package.json
|
|
14967
14975
|
var package_default = {
|
|
14968
14976
|
name: "@cortexkit/aft-pi",
|
|
14969
|
-
version: "0.35.
|
|
14977
|
+
version: "0.35.4",
|
|
14970
14978
|
type: "module",
|
|
14971
14979
|
description: "Pi coding agent extension for Agent File Tools (AFT) — tree-sitter and LSP-powered code analysis",
|
|
14972
14980
|
main: "dist/index.js",
|
|
@@ -14989,7 +14997,7 @@ var package_default = {
|
|
|
14989
14997
|
"test:unit": "bun test src/__tests__ --path-ignore-patterns 'src/__tests__/e2e/**'"
|
|
14990
14998
|
},
|
|
14991
14999
|
dependencies: {
|
|
14992
|
-
"@cortexkit/aft-bridge": "0.35.
|
|
15000
|
+
"@cortexkit/aft-bridge": "0.35.4",
|
|
14993
15001
|
"@xterm/headless": "^5.5.0",
|
|
14994
15002
|
"comment-json": "^5.0.0",
|
|
14995
15003
|
diff: "^8.0.4",
|
|
@@ -14997,12 +15005,12 @@ var package_default = {
|
|
|
14997
15005
|
zod: "^4.1.8"
|
|
14998
15006
|
},
|
|
14999
15007
|
optionalDependencies: {
|
|
15000
|
-
"@cortexkit/aft-darwin-arm64": "0.35.
|
|
15001
|
-
"@cortexkit/aft-darwin-x64": "0.35.
|
|
15002
|
-
"@cortexkit/aft-linux-arm64": "0.35.
|
|
15003
|
-
"@cortexkit/aft-linux-x64": "0.35.
|
|
15004
|
-
"@cortexkit/aft-win32-arm64": "0.35.
|
|
15005
|
-
"@cortexkit/aft-win32-x64": "0.35.
|
|
15008
|
+
"@cortexkit/aft-darwin-arm64": "0.35.4",
|
|
15009
|
+
"@cortexkit/aft-darwin-x64": "0.35.4",
|
|
15010
|
+
"@cortexkit/aft-linux-arm64": "0.35.4",
|
|
15011
|
+
"@cortexkit/aft-linux-x64": "0.35.4",
|
|
15012
|
+
"@cortexkit/aft-win32-arm64": "0.35.4",
|
|
15013
|
+
"@cortexkit/aft-win32-x64": "0.35.4"
|
|
15006
15014
|
},
|
|
15007
15015
|
devDependencies: {
|
|
15008
15016
|
"@earendil-works/pi-coding-agent": "*",
|
|
@@ -15065,6 +15073,20 @@ function readCompression(value) {
|
|
|
15065
15073
|
session: readCompressionAggregate(compression.session)
|
|
15066
15074
|
};
|
|
15067
15075
|
}
|
|
15076
|
+
function readStatusBar(value) {
|
|
15077
|
+
if (typeof value !== "object" || value === null)
|
|
15078
|
+
return;
|
|
15079
|
+
const bar = asRecord(value);
|
|
15080
|
+
return {
|
|
15081
|
+
errors: readNumber(bar.errors),
|
|
15082
|
+
warnings: readNumber(bar.warnings),
|
|
15083
|
+
dead_code: readNumber(bar.dead_code),
|
|
15084
|
+
unused_exports: readNumber(bar.unused_exports),
|
|
15085
|
+
duplicates: readNumber(bar.duplicates),
|
|
15086
|
+
todos: readNumber(bar.todos),
|
|
15087
|
+
tier2_stale: readBoolean(bar.tier2_stale)
|
|
15088
|
+
};
|
|
15089
|
+
}
|
|
15068
15090
|
function formatFlag(enabled) {
|
|
15069
15091
|
return enabled ? "enabled" : "disabled";
|
|
15070
15092
|
}
|
|
@@ -15156,7 +15178,8 @@ function coerceAftStatus(response) {
|
|
|
15156
15178
|
tracked_files: readNumber(session.tracked_files),
|
|
15157
15179
|
checkpoints: readNumber(session.checkpoints)
|
|
15158
15180
|
},
|
|
15159
|
-
compression: readCompression(response.compression)
|
|
15181
|
+
compression: readCompression(response.compression),
|
|
15182
|
+
status_bar: readStatusBar(response.status_bar)
|
|
15160
15183
|
};
|
|
15161
15184
|
}
|
|
15162
15185
|
function formatStatusDialogMessage(status) {
|
|
@@ -15194,6 +15217,10 @@ function formatStatusDialogMessage(status) {
|
|
|
15194
15217
|
lines.push(`- dimension: ${formatCount(status.semantic_index.dimension)}`);
|
|
15195
15218
|
}
|
|
15196
15219
|
lines.push("", "Disk usage", `- trigram index: ${formatBytes(status.disk.trigram_disk_bytes)}`, `- semantic index: ${formatBytes(status.disk.semantic_disk_bytes)}`, "", "Runtime", `- LSP servers: ${formatCount(status.lsp_servers)}`, `- symbol cache: ${formatCount(status.symbol_cache.local_entries)} local / ${formatCount(status.symbol_cache.warm_entries)} warm`);
|
|
15220
|
+
if (status.status_bar) {
|
|
15221
|
+
const sb = status.status_bar;
|
|
15222
|
+
lines.push("", `Code Health${sb.tier2_stale ? " (~ stale)" : ""}`, `- errors: ${formatCount(sb.errors)}`, `- warnings: ${formatCount(sb.warnings)}`, `- duplicates: ${formatCount(sb.duplicates)}`, `- todos: ${formatCount(sb.todos)}`);
|
|
15223
|
+
}
|
|
15197
15224
|
if (status.storage_dir ?? status.disk.storage_dir) {
|
|
15198
15225
|
lines.push(`- storage dir: ${status.storage_dir ?? status.disk.storage_dir}`);
|
|
15199
15226
|
}
|
|
@@ -29819,7 +29846,16 @@ function loadAftConfig(projectDirectory) {
|
|
|
29819
29846
|
// src/lsp-auto-install.ts
|
|
29820
29847
|
import { spawn as spawn2 } from "node:child_process";
|
|
29821
29848
|
import { createHash as createHash3 } from "node:crypto";
|
|
29822
|
-
import {
|
|
29849
|
+
import {
|
|
29850
|
+
createReadStream,
|
|
29851
|
+
existsSync as existsSync8,
|
|
29852
|
+
mkdirSync as mkdirSync7,
|
|
29853
|
+
readFileSync as readFileSync7,
|
|
29854
|
+
renameSync as renameSync5,
|
|
29855
|
+
rmSync as rmSync3,
|
|
29856
|
+
statSync as statSync5,
|
|
29857
|
+
writeFileSync as writeFileSync5
|
|
29858
|
+
} from "node:fs";
|
|
29823
29859
|
import { join as join12 } from "node:path";
|
|
29824
29860
|
|
|
29825
29861
|
// src/lsp-cache.ts
|
|
@@ -30394,6 +30430,17 @@ async function resolveTargetVersion(spec, config2, fetchImpl = fetch) {
|
|
|
30394
30430
|
writeVersionCheck(spec.npm, probe.version);
|
|
30395
30431
|
return { version: probe.version, pinned: false, probe };
|
|
30396
30432
|
}
|
|
30433
|
+
function ensureInstallAnchor(cwd) {
|
|
30434
|
+
try {
|
|
30435
|
+
const stub = join12(cwd, "package.json");
|
|
30436
|
+
if (!existsSync8(stub)) {
|
|
30437
|
+
writeFileSync5(stub, `${JSON.stringify({ name: "aft-lsp-cache", version: "0.0.0", private: true })}
|
|
30438
|
+
`);
|
|
30439
|
+
}
|
|
30440
|
+
} catch (err) {
|
|
30441
|
+
warn2(`[lsp] could not write package.json stub in ${cwd}: ${err}`);
|
|
30442
|
+
}
|
|
30443
|
+
}
|
|
30397
30444
|
function runInstall(spec, version2, cwd, signal) {
|
|
30398
30445
|
return new Promise((resolve2) => {
|
|
30399
30446
|
const target = `${spec.npm}@${version2}`;
|
|
@@ -30409,6 +30456,7 @@ function runInstall(spec, version2, cwd, signal) {
|
|
|
30409
30456
|
resolve2(false);
|
|
30410
30457
|
return;
|
|
30411
30458
|
}
|
|
30459
|
+
ensureInstallAnchor(cwd);
|
|
30412
30460
|
const child = spawn2(npm.command, ["install", "--no-save", "--ignore-scripts", "--silent", target], {
|
|
30413
30461
|
stdio: ["ignore", "pipe", "pipe"],
|
|
30414
30462
|
cwd,
|
|
@@ -30661,7 +30709,7 @@ import {
|
|
|
30661
30709
|
copyFileSync as copyFileSync4,
|
|
30662
30710
|
createReadStream as createReadStream2,
|
|
30663
30711
|
createWriteStream as createWriteStream3,
|
|
30664
|
-
existsSync as
|
|
30712
|
+
existsSync as existsSync9,
|
|
30665
30713
|
lstatSync as lstatSync2,
|
|
30666
30714
|
mkdirSync as mkdirSync8,
|
|
30667
30715
|
readdirSync as readdirSync4,
|
|
@@ -30672,7 +30720,7 @@ import {
|
|
|
30672
30720
|
rmSync as rmSync4,
|
|
30673
30721
|
statSync as statSync6,
|
|
30674
30722
|
unlinkSync as unlinkSync6,
|
|
30675
|
-
writeFileSync as
|
|
30723
|
+
writeFileSync as writeFileSync6
|
|
30676
30724
|
} from "node:fs";
|
|
30677
30725
|
import { dirname as dirname5, join as join13, relative as relative2, resolve as resolve2 } from "node:path";
|
|
30678
30726
|
import { Readable as Readable3 } from "node:stream";
|
|
@@ -30823,7 +30871,7 @@ function writeGithubInstalledMetaIn(installDir, version2, binarySha256, archiveS
|
|
|
30823
30871
|
binarySha256,
|
|
30824
30872
|
...archiveSha256 ? { archiveSha256 } : {}
|
|
30825
30873
|
};
|
|
30826
|
-
|
|
30874
|
+
writeFileSync6(join13(installDir, INSTALLED_META_FILE2), JSON.stringify(meta3), "utf8");
|
|
30827
30875
|
} catch (err) {
|
|
30828
30876
|
warn2(`[lsp] failed to write github installed metadata in ${installDir}: ${err}`);
|
|
30829
30877
|
}
|
|
@@ -31292,7 +31340,7 @@ async function downloadAndInstall(spec, tag, assets, platform, arch, fetchImpl,
|
|
|
31292
31340
|
} catch {}
|
|
31293
31341
|
}
|
|
31294
31342
|
const innerBinaryPath = join13(extractDir, spec.binaryPathInArchive(platform, arch, version2));
|
|
31295
|
-
if (!
|
|
31343
|
+
if (!existsSync9(innerBinaryPath)) {
|
|
31296
31344
|
error2(`[lsp] ${spec.id}: extracted binary not found at ${innerBinaryPath}`);
|
|
31297
31345
|
return null;
|
|
31298
31346
|
}
|
|
@@ -31376,7 +31424,7 @@ function runGithubAutoInstall(relevantServers, config2, fetchImpl = fetch) {
|
|
|
31376
31424
|
if (!host) {
|
|
31377
31425
|
for (const spec of GITHUB_LSP_TABLE) {
|
|
31378
31426
|
try {
|
|
31379
|
-
if (
|
|
31427
|
+
if (existsSync9(ghBinDir(spec))) {
|
|
31380
31428
|
cachedBinDirs.push(ghBinDir(spec));
|
|
31381
31429
|
}
|
|
31382
31430
|
} catch {}
|
|
@@ -32768,6 +32816,13 @@ var BashWriteParams = Type4.Object({
|
|
|
32768
32816
|
description: "Either a string of verbatim bytes (e.g. 'print(1)\\n') OR an array mixing strings " + "and { key: '<name>' } objects for atomic text+key sequences. " + "Example: [ 'iHello', { key: 'esc' }, ':wq', { key: 'enter' } ]. " + "Allowed key names: enter, return, tab, space, backspace, esc, escape, up, down, " + "left, right, home, end, page-up, page-down, delete, insert, f1..f12, ctrl-a..ctrl-z."
|
|
32769
32817
|
})
|
|
32770
32818
|
});
|
|
32819
|
+
async function callBashBridge(bridge, command, params = {}, extCtx, options) {
|
|
32820
|
+
return await callBridge(bridge, command, params, extCtx, {
|
|
32821
|
+
transportTimeoutMs: BASH_TRANSPORT_TIMEOUT_MS,
|
|
32822
|
+
...options,
|
|
32823
|
+
keepBridgeOnTimeout: true
|
|
32824
|
+
});
|
|
32825
|
+
}
|
|
32771
32826
|
function truncateToVisualLines(text, maxLines) {
|
|
32772
32827
|
const lines = text.split(`
|
|
32773
32828
|
`);
|
|
@@ -32820,7 +32875,7 @@ function registerBashTool(pi, ctx) {
|
|
|
32820
32875
|
}
|
|
32821
32876
|
}
|
|
32822
32877
|
let streamed = "";
|
|
32823
|
-
const response = await
|
|
32878
|
+
const response = await callBashBridge(bridge, "bash", {
|
|
32824
32879
|
command: spawnContext.command,
|
|
32825
32880
|
timeout,
|
|
32826
32881
|
workdir: spawnContext.cwd ?? params.workdir,
|
|
@@ -32833,8 +32888,6 @@ function registerBashTool(pi, ctx) {
|
|
|
32833
32888
|
pty_rows: ptyRows,
|
|
32834
32889
|
pty_cols: ptyCols
|
|
32835
32890
|
}, extCtx, {
|
|
32836
|
-
transportTimeoutMs: BASH_TRANSPORT_TIMEOUT_MS,
|
|
32837
|
-
keepBridgeOnTimeout: true,
|
|
32838
32891
|
onProgress: ({ text }) => {
|
|
32839
32892
|
streamed += text;
|
|
32840
32893
|
const displayText = truncateToVisualLines(streamed, 100);
|
|
@@ -32860,7 +32913,7 @@ function registerBashTool(pi, ctx) {
|
|
|
32860
32913
|
const waitTimeoutMs = timeout !== undefined ? Math.min(timeout, foregroundWaitMs) : foregroundWaitMs;
|
|
32861
32914
|
const startedAt = Date.now();
|
|
32862
32915
|
while (true) {
|
|
32863
|
-
const status = await
|
|
32916
|
+
const status = await callBashBridge(bridge, "bash_status", { task_id: taskId }, extCtx);
|
|
32864
32917
|
if (status.success === false) {
|
|
32865
32918
|
throw new Error(status.message ?? "bash_status failed");
|
|
32866
32919
|
}
|
|
@@ -32874,7 +32927,7 @@ function registerBashTool(pi, ctx) {
|
|
|
32874
32927
|
});
|
|
32875
32928
|
}
|
|
32876
32929
|
if (Date.now() - startedAt >= waitTimeoutMs) {
|
|
32877
|
-
const promoted = await
|
|
32930
|
+
const promoted = await callBashBridge(bridge, "bash_promote", { task_id: taskId }, extCtx);
|
|
32878
32931
|
if (promoted.success === false) {
|
|
32879
32932
|
throw new Error(promoted.message ?? "bash_promote failed");
|
|
32880
32933
|
}
|
|
@@ -32991,7 +33044,7 @@ function createBashWatchTool(ctx) {
|
|
|
32991
33044
|
markExplicitControl(sessionId, params.task_id, false);
|
|
32992
33045
|
let registered;
|
|
32993
33046
|
try {
|
|
32994
|
-
registered = await
|
|
33047
|
+
registered = await callBashBridge(bridge, "bash_notify", notifyParams, extCtx);
|
|
32995
33048
|
} catch (err) {
|
|
32996
33049
|
unmarkExplicitControl(sessionId, params.task_id);
|
|
32997
33050
|
throw err;
|
|
@@ -33001,7 +33054,6 @@ function createBashWatchTool(ctx) {
|
|
|
33001
33054
|
const message = String(registered.message ?? "bash_notify failed");
|
|
33002
33055
|
throw new Error(`${String(registered.code ?? "invalid_request")}: ${message}`);
|
|
33003
33056
|
}
|
|
33004
|
-
markExplicitControl(sessionId, params.task_id);
|
|
33005
33057
|
const watchDetails = { registered: true, watchId: registered.watch_id };
|
|
33006
33058
|
return textResult(`Watch registered: ${registered.watch_id} on task ${params.task_id}
|
|
33007
33059
|
A notification will fire when the pattern matches or the task exits.`, watchDetails);
|
|
@@ -33021,7 +33073,7 @@ function createBashWriteTool(ctx) {
|
|
|
33021
33073
|
parameters: BashWriteParams,
|
|
33022
33074
|
async execute(_toolCallId, params, _signal, _onUpdate, extCtx) {
|
|
33023
33075
|
const bridge = bridgeFor(ctx, extCtx.cwd);
|
|
33024
|
-
const data = await
|
|
33076
|
+
const data = await callBashBridge(bridge, "bash_write", { task_id: params.task_id, input: params.input }, extCtx);
|
|
33025
33077
|
return textResult(JSON.stringify({ bytes_written: data.bytes_written }, null, 2), data);
|
|
33026
33078
|
}
|
|
33027
33079
|
};
|
|
@@ -33035,7 +33087,7 @@ function createBashKillTool(ctx) {
|
|
|
33035
33087
|
parameters: BashTaskParams,
|
|
33036
33088
|
async execute(_toolCallId, params, _signal, _onUpdate, extCtx) {
|
|
33037
33089
|
const bridge = bridgeFor(ctx, extCtx.cwd);
|
|
33038
|
-
const data = await
|
|
33090
|
+
const data = await callBashBridge(bridge, "bash_kill", { task_id: params.task_id }, extCtx);
|
|
33039
33091
|
if (data.success === false) {
|
|
33040
33092
|
throw new Error(data.message ?? "bash_kill failed");
|
|
33041
33093
|
}
|
|
@@ -33074,7 +33126,7 @@ function bashKillResult(output, details) {
|
|
|
33074
33126
|
};
|
|
33075
33127
|
}
|
|
33076
33128
|
async function bashStatusSnapshot(bridge, extCtx, taskId, outputMode, options) {
|
|
33077
|
-
return await
|
|
33129
|
+
return await callBashBridge(bridge, "bash_status", { task_id: taskId, output_mode: outputMode }, extCtx, options);
|
|
33078
33130
|
}
|
|
33079
33131
|
async function waitForBashStatus(ctx, bridge, extCtx, taskId, outputMode, waitFor, waitForExit, effectiveWaitMs) {
|
|
33080
33132
|
const startedAt = Date.now();
|
|
@@ -35361,14 +35413,12 @@ var PLUGIN_VERSION = (() => {
|
|
|
35361
35413
|
return "0.0.0";
|
|
35362
35414
|
}
|
|
35363
35415
|
})();
|
|
35364
|
-
var ANNOUNCEMENT_VERSION = "0.35.
|
|
35416
|
+
var ANNOUNCEMENT_VERSION = "0.35.3";
|
|
35365
35417
|
var ANNOUNCEMENT_FEATURES = [
|
|
35366
|
-
"
|
|
35367
|
-
"
|
|
35368
|
-
"
|
|
35369
|
-
"
|
|
35370
|
-
"`npx @cortexkit/aft --version` reports CLI, binary, and per-harness versions; `doctor --issue` can scope its report to a single session.",
|
|
35371
|
-
"New SCSS support and `.inc` files parsed as PHP."
|
|
35418
|
+
"Code Health in `/aft-status`: live LSP errors and warnings plus duplicate and TODO counts.",
|
|
35419
|
+
"The semantic index now recovers on its own from a transient embedding-backend blip (a restarted local server, or a model still loading) instead of getting stuck on `failed`.",
|
|
35420
|
+
"Fixed a background codebase-scan crash on very deep or minified files.",
|
|
35421
|
+
"More reliable LSP auto-install when a parent directory has its own `package.json`."
|
|
35372
35422
|
];
|
|
35373
35423
|
var ANNOUNCEMENT_FOOTER = "Join us on Discord: https://discord.gg/DSa65w8wuf";
|
|
35374
35424
|
var ALL_ONLY_TOOLS = new Set([
|
|
@@ -71,6 +71,25 @@ export interface AutoInstallResult {
|
|
|
71
71
|
installsComplete: Promise<void>;
|
|
72
72
|
}
|
|
73
73
|
export declare function abortInFlightAutoInstalls(): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Spawn `npm install --no-save <pkg>@<version>` in the cache dir.
|
|
76
|
+
*
|
|
77
|
+
* Uses `--ignore-scripts` to neutralize lifecycle hooks (the v0.16 audit
|
|
78
|
+
* hardening). Output goes to plugin log.
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* Anchor an `npm install --no-save` to `cwd` by writing a minimal package.json.
|
|
82
|
+
*
|
|
83
|
+
* Without a package.json in `cwd`, npm walks UP the directory tree; if any
|
|
84
|
+
* ancestor (e.g. ~/package.json) has one, npm installs into THAT package's
|
|
85
|
+
* node_modules instead, leaving our cache dir's node_modules/<server> missing
|
|
86
|
+
* while still exiting 0. The result is a silent install failure and a recurring
|
|
87
|
+
* lsp_binary_missing warning. The old `bun add` flow created this package.json
|
|
88
|
+
* implicitly; npm needs it written explicitly. GitHub #92.
|
|
89
|
+
*
|
|
90
|
+
* Idempotent: only writes when absent. Failures are non-fatal (logged).
|
|
91
|
+
*/
|
|
92
|
+
export declare function ensureInstallAnchor(cwd: string): void;
|
|
74
93
|
/**
|
|
75
94
|
* Top-level entry point. Returns the list of bin directories that already
|
|
76
95
|
* have an installed binary AND kicks off background installs for missing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lsp-auto-install.d.ts","sourceRoot":"","sources":["../src/lsp-auto-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;
|
|
1
|
+
{"version":3,"file":"lsp-auto-install.d.ts","sourceRoot":"","sources":["../src/lsp-auto-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAsCH,+DAA+D;AAC/D,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,WAAW,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3C,kGAAkG;IAClG,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,mFAAmF;IACnF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B;;;;;;;OAOG;IACH,OAAO,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C;;;;;;;;;OASG;IACH,gBAAgB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AA8DD,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC,CAM/D;AAyDD;;;;;GAKG;AACH;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAYrD;AA+SD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,iBAAiB,EACzB,SAAS,GAAE,OAAO,KAAa,GAC9B,iBAAiB,CA0EnB"}
|
package/dist/shared/status.d.ts
CHANGED
|
@@ -8,6 +8,23 @@ export interface StatusCompression {
|
|
|
8
8
|
project: StatusCompressionAggregate;
|
|
9
9
|
session: StatusCompressionAggregate;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The agent status-bar glance — `[AFT E· W· | D· U· C· | T·]`. `errors`/
|
|
13
|
+
* `warnings` are live LSP diagnostics for files touched this session; the
|
|
14
|
+
* Tier-2 trio (`dead_code`/`unused_exports`/`duplicates`) plus `todos` come
|
|
15
|
+
* from the last completed background scan. `tier2_stale` marks those Tier-2
|
|
16
|
+
* counts as predating the latest edit. Null in the snapshot until the Tier-2
|
|
17
|
+
* cache is populated at least once (no fabricated zeros).
|
|
18
|
+
*/
|
|
19
|
+
export interface StatusBar {
|
|
20
|
+
errors: number;
|
|
21
|
+
warnings: number;
|
|
22
|
+
dead_code: number;
|
|
23
|
+
unused_exports: number;
|
|
24
|
+
duplicates: number;
|
|
25
|
+
todos: number;
|
|
26
|
+
tier2_stale: boolean;
|
|
27
|
+
}
|
|
11
28
|
export interface AftStatusSnapshot {
|
|
12
29
|
version: string;
|
|
13
30
|
project_root: string | null;
|
|
@@ -59,6 +76,12 @@ export interface AftStatusSnapshot {
|
|
|
59
76
|
};
|
|
60
77
|
/** Compression aggregate passthrough; rendering is added separately. */
|
|
61
78
|
compression?: StatusCompression;
|
|
79
|
+
/**
|
|
80
|
+
* Agent status-bar counts (E/W/D/U/C/T). Undefined until the Tier-2 cache
|
|
81
|
+
* is populated at least once — the overlay hides the Code Health section
|
|
82
|
+
* until then so it never shows fabricated zeros.
|
|
83
|
+
*/
|
|
84
|
+
status_bar?: StatusBar;
|
|
62
85
|
/**
|
|
63
86
|
* Set on synthetic "not_initialized" snapshots when no bridge has spawned
|
|
64
87
|
* yet. Renderers display this in place of empty status rows.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/shared/status.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BA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AAgB,CAAC,WAC9B,WAAW,GAAG,SAAS,aACrB,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,UACrE,gBAAgB;EAc7B;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa;;;;;;;;;;;;;;yBASnC,MAAM,UACX,MAAM,CAAC,OAAO,eAAe,CAAC,WAC7B,WAAW,GAAG,SAAS,aACrB,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,UACpE,gBAAgB;EA2D7B;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa;;;;;;;;;;;yBAanC,MAAM,UACX,MAAM,CAAC,OAAO,eAAe,CAAC,WAC7B,WAAW,GAAG,SAAS,aACrB,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,UACpE,gBAAgB;EAe7B;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa;;;;;;;;yBASlC,MAAM,UACX,MAAM,CAAC,OAAO,cAAc,CAAC,WAC5B,WAAW,GAAG,SAAS,aACrB,CAAC,CAAC,MAAM,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,UACnE,gBAAgB;EAe7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft-pi",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.4",
|
|
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.4",
|
|
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.4",
|
|
35
|
+
"@cortexkit/aft-darwin-x64": "0.35.4",
|
|
36
|
+
"@cortexkit/aft-linux-arm64": "0.35.4",
|
|
37
|
+
"@cortexkit/aft-linux-x64": "0.35.4",
|
|
38
|
+
"@cortexkit/aft-win32-arm64": "0.35.4",
|
|
39
|
+
"@cortexkit/aft-win32-x64": "0.35.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@earendil-works/pi-coding-agent": "*",
|