@cortexkit/aft 0.58.1 → 0.58.2
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 +20 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -445,6 +445,9 @@ var init_command_timeouts = __esm(() => {
|
|
|
445
445
|
PASSIVE_COMMANDS = new Set(["status"]);
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
+
// ../aft-bridge/dist/transport.js
|
|
449
|
+
var WORKER_SESSION_FIELD = "worker_session";
|
|
450
|
+
|
|
448
451
|
// ../aft-bridge/dist/bridge.js
|
|
449
452
|
import { homedir as homedir2 } from "node:os";
|
|
450
453
|
import { join as join2 } from "node:path";
|
|
@@ -859,9 +862,11 @@ var init_bridge = __esm(() => {
|
|
|
859
862
|
params.edit_slot_survives = editSlotSurvives;
|
|
860
863
|
this.logHashlineRegistrationCarrier("tool_call", sessionId, editSlotSurvives);
|
|
861
864
|
}
|
|
862
|
-
const { preview, ...sendOptions } = options ?? {};
|
|
865
|
+
const { preview, workerSession, ...sendOptions } = options ?? {};
|
|
863
866
|
if (preview === true)
|
|
864
867
|
params.preview = true;
|
|
868
|
+
if (workerSession === true)
|
|
869
|
+
params[WORKER_SESSION_FIELD] = true;
|
|
865
870
|
return await this.send("tool_call", params, Object.keys(sendOptions).length > 0 ? sendOptions : undefined);
|
|
866
871
|
}
|
|
867
872
|
async sendWithVersionMismatchRetry(command, params, options, canRetryAfterVersionSwap) {
|
|
@@ -930,7 +935,7 @@ var init_bridge = __esm(() => {
|
|
|
930
935
|
if (command === "cancel_request" || Object.hasOwn(params, "command") || Object.hasOwn(params, "method")) {
|
|
931
936
|
const nested = { ...params };
|
|
932
937
|
const reserved = {};
|
|
933
|
-
for (const key of ["session_id", "lsp_hints"]) {
|
|
938
|
+
for (const key of ["session_id", "lsp_hints", WORKER_SESSION_FIELD]) {
|
|
934
939
|
if (Object.hasOwn(nested, key)) {
|
|
935
940
|
reserved[key] = nested[key];
|
|
936
941
|
delete nested[key];
|
|
@@ -4133,6 +4138,9 @@ async function downloadOnnxRuntime(info, targetDir) {
|
|
|
4133
4138
|
copyOnnxLibraries(info, extractedDir, stagedInstallDir, realFiles, symlinks);
|
|
4134
4139
|
const libPath = join10(stagedInstallDir, info.libName);
|
|
4135
4140
|
const libHash = sha256File2(libPath);
|
|
4141
|
+
if (libHash !== info.librarySha256) {
|
|
4142
|
+
throw new Error(`onnx runtime library hash mismatch at ${libPath}: sha256 ${libHash}, ` + `expected the pinned ${info.librarySha256} for ${info.assetName}`);
|
|
4143
|
+
}
|
|
4136
4144
|
writeOnnxInstalledMeta(stagedInstallDir, ORT_VERSION, libHash, archiveSha256);
|
|
4137
4145
|
publishOnnxRuntime(stagedInstallDir, targetDir);
|
|
4138
4146
|
rmSync2(tmpDir, { recursive: true, force: true });
|
|
@@ -4400,31 +4408,36 @@ var init_onnx_runtime = __esm(() => {
|
|
|
4400
4408
|
arm64: {
|
|
4401
4409
|
assetName: `onnxruntime-osx-arm64-${ORT_VERSION}`,
|
|
4402
4410
|
libName: "libonnxruntime.dylib",
|
|
4403
|
-
archiveType: "tgz"
|
|
4411
|
+
archiveType: "tgz",
|
|
4412
|
+
librarySha256: "872533f130f1839a5bc01788ddb4f75c83a189763441ba1178788ed965449289"
|
|
4404
4413
|
}
|
|
4405
4414
|
},
|
|
4406
4415
|
linux: {
|
|
4407
4416
|
x64: {
|
|
4408
4417
|
assetName: `onnxruntime-linux-x64-${ORT_VERSION}`,
|
|
4409
4418
|
libName: "libonnxruntime.so",
|
|
4410
|
-
archiveType: "tgz"
|
|
4419
|
+
archiveType: "tgz",
|
|
4420
|
+
librarySha256: "d132535d051344ff5c64c9c200004150559049a81ed330eb4422c1962fb6b7e4"
|
|
4411
4421
|
},
|
|
4412
4422
|
arm64: {
|
|
4413
4423
|
assetName: `onnxruntime-linux-aarch64-${ORT_VERSION}`,
|
|
4414
4424
|
libName: "libonnxruntime.so",
|
|
4415
|
-
archiveType: "tgz"
|
|
4425
|
+
archiveType: "tgz",
|
|
4426
|
+
librarySha256: "52b2a0e75e79468404284fec38ad5ee1a7a996232274f5e1b84f3e793fb07554"
|
|
4416
4427
|
}
|
|
4417
4428
|
},
|
|
4418
4429
|
win32: {
|
|
4419
4430
|
x64: {
|
|
4420
4431
|
assetName: `onnxruntime-win-x64-${ORT_VERSION}`,
|
|
4421
4432
|
libName: "onnxruntime.dll",
|
|
4422
|
-
archiveType: "zip"
|
|
4433
|
+
archiveType: "zip",
|
|
4434
|
+
librarySha256: "b95efb2113b603bbbf3f191061c5516a871ed546893c820e4f3b7b6c358dbf2a"
|
|
4423
4435
|
},
|
|
4424
4436
|
arm64: {
|
|
4425
4437
|
assetName: `onnxruntime-win-arm64-${ORT_VERSION}`,
|
|
4426
4438
|
libName: "onnxruntime.dll",
|
|
4427
|
-
archiveType: "zip"
|
|
4439
|
+
archiveType: "zip",
|
|
4440
|
+
librarySha256: "724d81ac50b11bfaa01ab3ce01b99fb6734a4b762259a8be4395ca662ce99fe6"
|
|
4428
4441
|
}
|
|
4429
4442
|
}
|
|
4430
4443
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified CLI for Agent File Tools (AFT) — setup, one-shot index snapshots, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@clack/core": "^1.4.2",
|
|
27
27
|
"@clack/prompts": "^1.6.0",
|
|
28
|
-
"@cortexkit/aft-bridge": "0.58.
|
|
28
|
+
"@cortexkit/aft-bridge": "0.58.2",
|
|
29
29
|
"comment-json": "^4.6.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|