@odla-ai/harness 0.9.2 → 0.9.3
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/{chunk-Q4NL5XO3.js → chunk-AEAISFY3.js} +16 -4
- package/dist/chunk-AEAISFY3.js.map +1 -0
- package/dist/code-runtime-cli.cjs +15 -3
- package/dist/code-runtime-cli.cjs.map +1 -1
- package/dist/code-runtime-cli.js +1 -1
- package/dist/node.cjs +15 -3
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-Q4NL5XO3.js.map +0 -1
|
@@ -1266,12 +1266,24 @@ async function materializeCommandWorkspace(input) {
|
|
|
1266
1266
|
resume
|
|
1267
1267
|
});
|
|
1268
1268
|
if (command.payload.sourceSet) {
|
|
1269
|
-
|
|
1270
|
-
if (selected.repository !== metadata.repository || selected.commitSha !== metadata.baseCommitSha || selected.treeDigest !== metadata.sourceTreeDigest) {
|
|
1269
|
+
if (prepared.trustedBaseDigest !== metadata.sourceTreeDigest) {
|
|
1271
1270
|
await prepared.workspace.cleanup();
|
|
1272
1271
|
throw new TypeError("Code local source does not match the selected GitHub primary source");
|
|
1273
1272
|
}
|
|
1274
|
-
|
|
1273
|
+
const set = command.payload.sourceSet && typeof command.payload.sourceSet === "object" && !Array.isArray(command.payload.sourceSet) ? command.payload.sourceSet : null;
|
|
1274
|
+
const references = set?.references;
|
|
1275
|
+
if (!Array.isArray(references)) {
|
|
1276
|
+
await prepared.workspace.cleanup();
|
|
1277
|
+
throw new TypeError("Code selected source set is invalid");
|
|
1278
|
+
}
|
|
1279
|
+
if (references.length) {
|
|
1280
|
+
const selected = await input.control.source(command.sessionId);
|
|
1281
|
+
if (selected.repository !== metadata.repository || selected.commitSha !== metadata.baseCommitSha || selected.treeDigest !== metadata.sourceTreeDigest) {
|
|
1282
|
+
await prepared.workspace.cleanup();
|
|
1283
|
+
throw new TypeError("Code local source does not match the selected GitHub primary source");
|
|
1284
|
+
}
|
|
1285
|
+
await attachCodeRuntimeReferences(prepared.workspace, selected.references ?? []);
|
|
1286
|
+
}
|
|
1275
1287
|
}
|
|
1276
1288
|
return {
|
|
1277
1289
|
workspace: prepared.workspace,
|
|
@@ -3121,4 +3133,4 @@ export {
|
|
|
3121
3133
|
runGoal,
|
|
3122
3134
|
TheseusRuntimeEngine
|
|
3123
3135
|
};
|
|
3124
|
-
//# sourceMappingURL=chunk-
|
|
3136
|
+
//# sourceMappingURL=chunk-AEAISFY3.js.map
|