@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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "./chunk-QI2UJSSB.js";
4
+ } from "./chunk-J6GIGX6T.js";
5
5
  import {
6
6
  exitCodeFor
7
7
  } from "./chunk-5MEO3BVF.js";
@@ -9,4 +9,4 @@ export {
9
9
  exitCodeFor,
10
10
  runCli
11
11
  };
12
- //# sourceMappingURL=cli-URBPUBP5.js.map
12
+ //# sourceMappingURL=cli-BI26ENP4.js.map
package/dist/index.cjs CHANGED
@@ -6495,7 +6495,7 @@ async function stageWorkspacePair(baselineSource, workspaceSource, options = {})
6495
6495
  }
6496
6496
  }
6497
6497
 
6498
- // ../harness/dist/chunk-NG7AYYH3.js
6498
+ // ../harness/dist/chunk-J7XU5QB7.js
6499
6499
  var import_crypto = require("crypto");
6500
6500
  var import_promises5 = require("fs/promises");
6501
6501
  var import_path5 = require("path");
@@ -6832,7 +6832,7 @@ function validateSnapshot(snapshot, limits) {
6832
6832
  }
6833
6833
  }
6834
6834
 
6835
- // ../harness/dist/chunk-NG7AYYH3.js
6835
+ // ../harness/dist/chunk-J7XU5QB7.js
6836
6836
  var import_child_process4 = require("child_process");
6837
6837
  var import_promises6 = require("fs/promises");
6838
6838
  var import_path6 = require("path");
@@ -7136,7 +7136,7 @@ function looksLikeDestination(value2) {
7136
7136
  return /^(?:[a-z][a-z0-9+.-]*:\/\/|\/|\\\\)/i.test(text4) || /^[\w.-]+\.[a-z]{2,}(?:[/:]|$)/i.test(text4);
7137
7137
  }
7138
7138
 
7139
- // ../harness/dist/chunk-NG7AYYH3.js
7139
+ // ../harness/dist/chunk-J7XU5QB7.js
7140
7140
  var import_promises10 = require("fs/promises");
7141
7141
  var import_promises11 = require("fs/promises");
7142
7142
  var import_path10 = require("path");
@@ -7404,7 +7404,7 @@ async function buildCodeGraph(input) {
7404
7404
  return builder.build();
7405
7405
  }
7406
7406
 
7407
- // ../harness/dist/chunk-NG7AYYH3.js
7407
+ // ../harness/dist/chunk-J7XU5QB7.js
7408
7408
  var import_crypto4 = require("crypto");
7409
7409
  async function digestStagedWorkspace(root, limits) {
7410
7410
  const files = [];
@@ -7572,12 +7572,14 @@ async function runCodeRuntimeHeartbeatLoop(options) {
7572
7572
  } while (!options.signal?.aborted);
7573
7573
  }
7574
7574
  var CodeRuntimeReconciler = class {
7575
- constructor(control, engine) {
7575
+ constructor(control, engine, onDiagnostic) {
7576
7576
  this.control = control;
7577
7577
  this.engine = engine;
7578
+ this.onDiagnostic = onDiagnostic;
7578
7579
  }
7579
7580
  control;
7580
7581
  engine;
7582
+ onDiagnostic;
7581
7583
  results = /* @__PURE__ */ new Map();
7582
7584
  async reconcile(snapshot) {
7583
7585
  for (const command of snapshot.commands) {
@@ -7595,7 +7597,13 @@ var CodeRuntimeReconciler = class {
7595
7597
  }
7596
7598
  await this.control.acknowledge(command.commandId, completed.result);
7597
7599
  if (!completed.notified) {
7598
- await this.engine.acknowledged?.(command, completed.result);
7600
+ try {
7601
+ await this.engine.acknowledged?.(command, completed.result);
7602
+ } catch (error) {
7603
+ this.onDiagnostic?.(
7604
+ `command ${command.commandId} acknowledged handling failed \xB7 ${error instanceof Error ? error.message : String(error)}`
7605
+ );
7606
+ }
7599
7607
  completed.notified = true;
7600
7608
  }
7601
7609
  }
@@ -10759,7 +10767,11 @@ async function runCodeRuntime(input) {
10759
10767
  localSource: input.localSource,
10760
10768
  onDiagnostic: (message2) => input.stdout.error(`Theseus runtime failed \xB7 ${message2}`)
10761
10769
  });
10762
- const reconciler = new CodeRuntimeReconciler(control, commandEngine);
10770
+ const reconciler = new CodeRuntimeReconciler(
10771
+ control,
10772
+ commandEngine,
10773
+ (message2) => input.stdout.error(`Theseus runtime \xB7 ${message2}`)
10774
+ );
10763
10775
  try {
10764
10776
  await runCodeRuntimeHeartbeatLoop({
10765
10777
  control,