@odla-ai/cli 0.46.10 → 0.46.11
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/bin.cjs +19 -7
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-QI2UJSSB.js → chunk-J6GIGX6T.js} +20 -8
- package/dist/chunk-J6GIGX6T.js.map +1 -0
- package/dist/{cli-URBPUBP5.js → cli-BI26ENP4.js} +2 -2
- package/dist/index.cjs +19 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-QI2UJSSB.js.map +0 -1
- /package/dist/{cli-URBPUBP5.js.map → cli-BI26ENP4.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -172,7 +172,7 @@ function absoluteEntryPath(entryPath) {
|
|
|
172
172
|
|
|
173
173
|
// src/bin.ts
|
|
174
174
|
var argv = process.argv.slice(2);
|
|
175
|
-
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-
|
|
175
|
+
requireCurrentCliForProvision(argv).then(() => requireCoherentProvisionRuntime(argv)).then(async () => (await import("./cli-BI26ENP4.js")).runCli()).catch((err) => {
|
|
176
176
|
console.error(redactSecrets(`odla-ai: ${err instanceof Error ? err.message : String(err)}`));
|
|
177
177
|
process.exitCode = exitCodeFor(err);
|
|
178
178
|
});
|
|
@@ -6319,7 +6319,7 @@ async function stageWorkspacePair(baselineSource, workspaceSource, options = {})
|
|
|
6319
6319
|
}
|
|
6320
6320
|
}
|
|
6321
6321
|
|
|
6322
|
-
// ../harness/dist/chunk-
|
|
6322
|
+
// ../harness/dist/chunk-J7XU5QB7.js
|
|
6323
6323
|
import { createHash as createHash3 } from "crypto";
|
|
6324
6324
|
import { readFile as readFile2, readdir as readdir2 } from "fs/promises";
|
|
6325
6325
|
import { relative as relative4, resolve as resolve10 } from "path";
|
|
@@ -6656,7 +6656,7 @@ function validateSnapshot(snapshot, limits) {
|
|
|
6656
6656
|
}
|
|
6657
6657
|
}
|
|
6658
6658
|
|
|
6659
|
-
// ../harness/dist/chunk-
|
|
6659
|
+
// ../harness/dist/chunk-J7XU5QB7.js
|
|
6660
6660
|
import { spawn as spawn4 } from "child_process";
|
|
6661
6661
|
import { lstat as lstat2 } from "fs/promises";
|
|
6662
6662
|
import { resolve as resolve23, sep as sep3 } from "path";
|
|
@@ -6963,7 +6963,7 @@ function looksLikeDestination(value2) {
|
|
|
6963
6963
|
return /^(?:[a-z][a-z0-9+.-]*:\/\/|\/|\\\\)/i.test(text4) || /^[\w.-]+\.[a-z]{2,}(?:[/:]|$)/i.test(text4);
|
|
6964
6964
|
}
|
|
6965
6965
|
|
|
6966
|
-
// ../harness/dist/chunk-
|
|
6966
|
+
// ../harness/dist/chunk-J7XU5QB7.js
|
|
6967
6967
|
import { readFile as readFile4, stat as stat2 } from "fs/promises";
|
|
6968
6968
|
import { readFile as readFile3 } from "fs/promises";
|
|
6969
6969
|
import { join as join33 } from "path";
|
|
@@ -7231,7 +7231,7 @@ async function buildCodeGraph(input) {
|
|
|
7231
7231
|
return builder.build();
|
|
7232
7232
|
}
|
|
7233
7233
|
|
|
7234
|
-
// ../harness/dist/chunk-
|
|
7234
|
+
// ../harness/dist/chunk-J7XU5QB7.js
|
|
7235
7235
|
import { createHash as createHash32 } from "crypto";
|
|
7236
7236
|
async function digestStagedWorkspace(root, limits) {
|
|
7237
7237
|
const files = [];
|
|
@@ -7399,12 +7399,14 @@ async function runCodeRuntimeHeartbeatLoop(options) {
|
|
|
7399
7399
|
} while (!options.signal?.aborted);
|
|
7400
7400
|
}
|
|
7401
7401
|
var CodeRuntimeReconciler = class {
|
|
7402
|
-
constructor(control, engine) {
|
|
7402
|
+
constructor(control, engine, onDiagnostic) {
|
|
7403
7403
|
this.control = control;
|
|
7404
7404
|
this.engine = engine;
|
|
7405
|
+
this.onDiagnostic = onDiagnostic;
|
|
7405
7406
|
}
|
|
7406
7407
|
control;
|
|
7407
7408
|
engine;
|
|
7409
|
+
onDiagnostic;
|
|
7408
7410
|
results = /* @__PURE__ */ new Map();
|
|
7409
7411
|
async reconcile(snapshot) {
|
|
7410
7412
|
for (const command of snapshot.commands) {
|
|
@@ -7422,7 +7424,13 @@ var CodeRuntimeReconciler = class {
|
|
|
7422
7424
|
}
|
|
7423
7425
|
await this.control.acknowledge(command.commandId, completed.result);
|
|
7424
7426
|
if (!completed.notified) {
|
|
7425
|
-
|
|
7427
|
+
try {
|
|
7428
|
+
await this.engine.acknowledged?.(command, completed.result);
|
|
7429
|
+
} catch (error) {
|
|
7430
|
+
this.onDiagnostic?.(
|
|
7431
|
+
`command ${command.commandId} acknowledged handling failed \xB7 ${error instanceof Error ? error.message : String(error)}`
|
|
7432
|
+
);
|
|
7433
|
+
}
|
|
7426
7434
|
completed.notified = true;
|
|
7427
7435
|
}
|
|
7428
7436
|
}
|
|
@@ -10586,7 +10594,11 @@ async function runCodeRuntime(input) {
|
|
|
10586
10594
|
localSource: input.localSource,
|
|
10587
10595
|
onDiagnostic: (message2) => input.stdout.error(`Theseus runtime failed \xB7 ${message2}`)
|
|
10588
10596
|
});
|
|
10589
|
-
const reconciler = new CodeRuntimeReconciler(
|
|
10597
|
+
const reconciler = new CodeRuntimeReconciler(
|
|
10598
|
+
control,
|
|
10599
|
+
commandEngine,
|
|
10600
|
+
(message2) => input.stdout.error(`Theseus runtime \xB7 ${message2}`)
|
|
10601
|
+
);
|
|
10590
10602
|
try {
|
|
10591
10603
|
await runCodeRuntimeHeartbeatLoop({
|
|
10592
10604
|
control,
|
|
@@ -16424,4 +16436,4 @@ export {
|
|
|
16424
16436
|
isTerminalHostedSecurityStatus,
|
|
16425
16437
|
runCli
|
|
16426
16438
|
};
|
|
16427
|
-
//# sourceMappingURL=chunk-
|
|
16439
|
+
//# sourceMappingURL=chunk-J6GIGX6T.js.map
|