@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.cjs
CHANGED
|
@@ -8236,7 +8236,7 @@ var init_code2 = __esm({
|
|
|
8236
8236
|
}
|
|
8237
8237
|
});
|
|
8238
8238
|
|
|
8239
|
-
// ../harness/dist/chunk-
|
|
8239
|
+
// ../harness/dist/chunk-J7XU5QB7.js
|
|
8240
8240
|
async function digestStagedWorkspace(root, limits) {
|
|
8241
8241
|
const files = [];
|
|
8242
8242
|
const walk = async (directory) => {
|
|
@@ -10641,8 +10641,8 @@ function codeRuntimeAcknowledgementGate(signal) {
|
|
|
10641
10641
|
return { ready, release };
|
|
10642
10642
|
}
|
|
10643
10643
|
var import_crypto, import_promises5, import_path5, import_child_process4, import_promises6, import_path6, import_child_process5, import_process2, import_crypto2, import_crypto3, import_fs2, import_promises7, import_path7, import_promises8, import_os3, import_path8, import_ai4, import_ai5, import_child_process6, import_promises9, import_path9, import_promises10, import_promises11, import_path10, import_crypto4, CODE_RUNTIME_PROTOCOL_VERSION, CodeRuntimeReconciler, CodeRuntimeControlError, record5, invalid, RESERVED, SECRET, PATH, FORBIDDEN, ARTIFACT_PATH, PRIVATE_ARTIFACT_PART, SHA3, DIGEST3, ID3, RULE, DEFAULT_PREFIXES, DEFAULT_SUFFIXES, message, CodeRuntimeCheckpointManager, record22, SOURCE_LIMITS, RESERVED2, SECRET2, SOURCE_MAX_FILES, SOURCE_MAX_BYTES, SOURCE_SET_MAX_BYTES, V1_SYSTEM_PROMPT, V2_SYSTEM_PROMPT, V3_SYSTEM_PROMPT, SYSTEM_PROMPT_FOR, DEFAULT_MAX_FILES, DEFAULT_MAX_RESULTS, DEFAULT_MAX_FILE_BYTES, MAX_NATIVE_ARG_BYTES, DESTINATIONS, READ, LIST, SEARCH, GRAPH, PATCH, RECIPE, cache, shortId, GRAPH_TOOLS, MAX_MEMORY_BODY, POSITIVE, digestRuntimeValue, runtimeErrorMessage, text3, integer2, record32, excerpt, paths, TheseusRuntimeEngine;
|
|
10644
|
-
var
|
|
10645
|
-
"../harness/dist/chunk-
|
|
10644
|
+
var init_chunk_J7XU5QB7 = __esm({
|
|
10645
|
+
"../harness/dist/chunk-J7XU5QB7.js"() {
|
|
10646
10646
|
"use strict";
|
|
10647
10647
|
init_cjs_shims();
|
|
10648
10648
|
init_chunk_CR6RE3A2();
|
|
@@ -10681,12 +10681,14 @@ var init_chunk_NG7AYYH3 = __esm({
|
|
|
10681
10681
|
import_crypto4 = require("crypto");
|
|
10682
10682
|
CODE_RUNTIME_PROTOCOL_VERSION = 1;
|
|
10683
10683
|
CodeRuntimeReconciler = class {
|
|
10684
|
-
constructor(control, engine) {
|
|
10684
|
+
constructor(control, engine, onDiagnostic) {
|
|
10685
10685
|
this.control = control;
|
|
10686
10686
|
this.engine = engine;
|
|
10687
|
+
this.onDiagnostic = onDiagnostic;
|
|
10687
10688
|
}
|
|
10688
10689
|
control;
|
|
10689
10690
|
engine;
|
|
10691
|
+
onDiagnostic;
|
|
10690
10692
|
results = /* @__PURE__ */ new Map();
|
|
10691
10693
|
async reconcile(snapshot) {
|
|
10692
10694
|
for (const command of snapshot.commands) {
|
|
@@ -10704,7 +10706,13 @@ var init_chunk_NG7AYYH3 = __esm({
|
|
|
10704
10706
|
}
|
|
10705
10707
|
await this.control.acknowledge(command.commandId, completed.result);
|
|
10706
10708
|
if (!completed.notified) {
|
|
10707
|
-
|
|
10709
|
+
try {
|
|
10710
|
+
await this.engine.acknowledged?.(command, completed.result);
|
|
10711
|
+
} catch (error) {
|
|
10712
|
+
this.onDiagnostic?.(
|
|
10713
|
+
`command ${command.commandId} acknowledged handling failed \xB7 ${error instanceof Error ? error.message : String(error)}`
|
|
10714
|
+
);
|
|
10715
|
+
}
|
|
10708
10716
|
completed.notified = true;
|
|
10709
10717
|
}
|
|
10710
10718
|
}
|
|
@@ -11210,7 +11218,7 @@ var init_node = __esm({
|
|
|
11210
11218
|
"../harness/dist/node.js"() {
|
|
11211
11219
|
"use strict";
|
|
11212
11220
|
init_cjs_shims();
|
|
11213
|
-
|
|
11221
|
+
init_chunk_J7XU5QB7();
|
|
11214
11222
|
init_chunk_CR6RE3A2();
|
|
11215
11223
|
MEASURED_PREMIUM = Object.freeze({
|
|
11216
11224
|
/** 3 racers vs pure depth at equal budget: 21,044 / 7,936. */
|
|
@@ -11601,7 +11609,11 @@ async function runCodeRuntime(input) {
|
|
|
11601
11609
|
localSource: input.localSource,
|
|
11602
11610
|
onDiagnostic: (message2) => input.stdout.error(`Theseus runtime failed \xB7 ${message2}`)
|
|
11603
11611
|
});
|
|
11604
|
-
const reconciler = new CodeRuntimeReconciler(
|
|
11612
|
+
const reconciler = new CodeRuntimeReconciler(
|
|
11613
|
+
control,
|
|
11614
|
+
commandEngine,
|
|
11615
|
+
(message2) => input.stdout.error(`Theseus runtime \xB7 ${message2}`)
|
|
11616
|
+
);
|
|
11605
11617
|
try {
|
|
11606
11618
|
await runCodeRuntimeHeartbeatLoop({
|
|
11607
11619
|
control,
|