@odla-ai/harness 0.11.17 → 0.11.18
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-RDCU4PIP.js → chunk-O47JCUGI.js} +5 -5
- package/dist/chunk-O47JCUGI.js.map +1 -0
- package/dist/code-runtime-cli.cjs +4 -4
- package/dist/code-runtime-cli.cjs.map +1 -1
- package/dist/code-runtime-cli.js +1 -1
- package/dist/node.cjs +4 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +15 -6
- package/dist/node.d.ts +15 -6
- package/dist/node.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RDCU4PIP.js.map +0 -1
|
@@ -362,7 +362,7 @@ var CodeRuntimeReconciler = class {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
// src/code-runtime.ts
|
|
365
|
-
var CODE_RUNTIME_PROTOCOL_VERSION =
|
|
365
|
+
var CODE_RUNTIME_PROTOCOL_VERSION = 4;
|
|
366
366
|
async function runCodeRuntimeHeartbeatLoop(options) {
|
|
367
367
|
const heartbeatMs = options.heartbeatMs ?? 15e3;
|
|
368
368
|
if (!Number.isSafeInteger(heartbeatMs) || heartbeatMs < 1e3 || heartbeatMs > 3e5) {
|
|
@@ -1689,13 +1689,13 @@ function codeCommandMetadata(payload, resume) {
|
|
|
1689
1689
|
const title = payload.title;
|
|
1690
1690
|
const prompt = payload.prompt;
|
|
1691
1691
|
const maxTokensPerInteraction = payload.maxTokensPerInteraction ?? 32e3;
|
|
1692
|
-
if (role !== "coding" && role !== "review" || typeof title !== "string" || typeof prompt !== "string") {
|
|
1692
|
+
if (role !== "coding" && role !== "review" && role !== "planning" || typeof title !== "string" || typeof prompt !== "string") {
|
|
1693
1693
|
throw new TypeError(`invalid Code ${resume ? "resume" : "start"} metadata`);
|
|
1694
1694
|
}
|
|
1695
1695
|
if (payload.readOnly !== void 0 && typeof payload.readOnly !== "boolean") {
|
|
1696
1696
|
throw new TypeError(`invalid Code ${resume ? "resume" : "start"} read-only capability`);
|
|
1697
1697
|
}
|
|
1698
|
-
const readOnly = role
|
|
1698
|
+
const readOnly = role !== "coding" || payload.readOnly === true;
|
|
1699
1699
|
const planning = trusted?.planningInputDigest;
|
|
1700
1700
|
const attestation = trusted?.attestationDigest;
|
|
1701
1701
|
const repository = trusted?.repository;
|
|
@@ -3666,7 +3666,7 @@ function createCodeRuntimeToolBroker(input, lease, role) {
|
|
|
3666
3666
|
"sandbox.who_touches",
|
|
3667
3667
|
"sandbox.run_recipe"
|
|
3668
3668
|
]);
|
|
3669
|
-
return role
|
|
3669
|
+
return role !== "review" ? broker : { execute: (context, request) => reviewTools.has(request.tool) ? broker.execute(context, request) : Promise.resolve({ requestId: request.requestId, ok: false, content: "review sessions are read-only" }) };
|
|
3670
3670
|
}
|
|
3671
3671
|
|
|
3672
3672
|
// src/code-runtime-engine-report.ts
|
|
@@ -4259,4 +4259,4 @@ export {
|
|
|
4259
4259
|
withProofRecipes,
|
|
4260
4260
|
TheseusRuntimeEngine
|
|
4261
4261
|
};
|
|
4262
|
-
//# sourceMappingURL=chunk-
|
|
4262
|
+
//# sourceMappingURL=chunk-O47JCUGI.js.map
|