@cortexkit/aft 0.29.0 → 0.29.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 +7 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12505,7 +12505,7 @@ async function findBinary(expectedVersion) {
|
|
|
12505
12505
|
return syncResult;
|
|
12506
12506
|
}
|
|
12507
12507
|
log("Binary not found locally, attempting auto-download...");
|
|
12508
|
-
const downloaded = await
|
|
12508
|
+
const downloaded = await ensureBinaryForResolver(expectedVersion);
|
|
12509
12509
|
if (downloaded)
|
|
12510
12510
|
return downloaded;
|
|
12511
12511
|
throw new Error([
|
|
@@ -12527,10 +12527,12 @@ async function findBinary(expectedVersion) {
|
|
|
12527
12527
|
].join(`
|
|
12528
12528
|
`));
|
|
12529
12529
|
}
|
|
12530
|
+
var ensureBinaryForResolver;
|
|
12530
12531
|
var init_resolver = __esm(() => {
|
|
12531
12532
|
init_active_logger();
|
|
12532
12533
|
init_downloader();
|
|
12533
12534
|
init_platform();
|
|
12535
|
+
ensureBinaryForResolver = ensureBinary;
|
|
12534
12536
|
});
|
|
12535
12537
|
|
|
12536
12538
|
// ../aft-bridge/dist/migration.js
|
|
@@ -12607,7 +12609,7 @@ async function ensureStorageMigrated(opts) {
|
|
|
12607
12609
|
|
|
12608
12610
|
`);
|
|
12609
12611
|
} catch {}
|
|
12610
|
-
const result =
|
|
12612
|
+
const result = spawnSyncForMigration(binaryPath, [
|
|
12611
12613
|
"migrate-storage",
|
|
12612
12614
|
"--from",
|
|
12613
12615
|
legacyRoot,
|
|
@@ -12640,7 +12642,7 @@ async function ensureStorageMigrated(opts) {
|
|
|
12640
12642
|
async function getMigrationStatus(opts) {
|
|
12641
12643
|
const newRoot = resolveCortexKitStorageRoot();
|
|
12642
12644
|
const binaryPath = opts.binaryPath ?? await findBinary();
|
|
12643
|
-
const result =
|
|
12645
|
+
const result = spawnSyncForMigration(binaryPath, ["migrate-storage", "--status", "--to", newRoot, "--harness", opts.harness], {
|
|
12644
12646
|
encoding: "utf8",
|
|
12645
12647
|
stdio: ["ignore", "pipe", "pipe"],
|
|
12646
12648
|
timeout: DEFAULT_TIMEOUT_MS
|
|
@@ -12657,9 +12659,10 @@ async function getMigrationStatus(opts) {
|
|
|
12657
12659
|
throw new Error(`AFT storage migration status returned invalid JSON: ${err instanceof Error ? err.message : String(err)}`);
|
|
12658
12660
|
}
|
|
12659
12661
|
}
|
|
12660
|
-
var TARGET_MARKER = ".migrated_from_legacy", DEFAULT_TIMEOUT_MS;
|
|
12662
|
+
var spawnSyncForMigration, TARGET_MARKER = ".migrated_from_legacy", DEFAULT_TIMEOUT_MS;
|
|
12661
12663
|
var init_migration = __esm(() => {
|
|
12662
12664
|
init_resolver();
|
|
12665
|
+
spawnSyncForMigration = spawnSync5;
|
|
12663
12666
|
DEFAULT_TIMEOUT_MS = 30 * 60 * 1000;
|
|
12664
12667
|
});
|
|
12665
12668
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/aft",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Unified CLI for Agent File Tools (AFT) — setup, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@clack/prompts": "^1.2.0",
|
|
26
|
-
"@cortexkit/aft-bridge": "0.29.
|
|
26
|
+
"@cortexkit/aft-bridge": "0.29.1",
|
|
27
27
|
"comment-json": "^4.6.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|