@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
|
@@ -1530,12 +1530,24 @@ async function materializeCommandWorkspace(input) {
|
|
|
1530
1530
|
resume
|
|
1531
1531
|
});
|
|
1532
1532
|
if (command.payload.sourceSet) {
|
|
1533
|
-
|
|
1534
|
-
if (selected.repository !== metadata.repository || selected.commitSha !== metadata.baseCommitSha || selected.treeDigest !== metadata.sourceTreeDigest) {
|
|
1533
|
+
if (prepared.trustedBaseDigest !== metadata.sourceTreeDigest) {
|
|
1535
1534
|
await prepared.workspace.cleanup();
|
|
1536
1535
|
throw new TypeError("Code local source does not match the selected GitHub primary source");
|
|
1537
1536
|
}
|
|
1538
|
-
|
|
1537
|
+
const set = command.payload.sourceSet && typeof command.payload.sourceSet === "object" && !Array.isArray(command.payload.sourceSet) ? command.payload.sourceSet : null;
|
|
1538
|
+
const references = set?.references;
|
|
1539
|
+
if (!Array.isArray(references)) {
|
|
1540
|
+
await prepared.workspace.cleanup();
|
|
1541
|
+
throw new TypeError("Code selected source set is invalid");
|
|
1542
|
+
}
|
|
1543
|
+
if (references.length) {
|
|
1544
|
+
const selected = await input.control.source(command.sessionId);
|
|
1545
|
+
if (selected.repository !== metadata.repository || selected.commitSha !== metadata.baseCommitSha || selected.treeDigest !== metadata.sourceTreeDigest) {
|
|
1546
|
+
await prepared.workspace.cleanup();
|
|
1547
|
+
throw new TypeError("Code local source does not match the selected GitHub primary source");
|
|
1548
|
+
}
|
|
1549
|
+
await attachCodeRuntimeReferences(prepared.workspace, selected.references ?? []);
|
|
1550
|
+
}
|
|
1539
1551
|
}
|
|
1540
1552
|
return {
|
|
1541
1553
|
workspace: prepared.workspace,
|