@odla-ai/cli 0.16.0 → 0.16.1
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/README.md +2 -2
- package/dist/bin.cjs +15 -7
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-S3OYXHDG.js → chunk-FRDIQURT.js} +16 -8
- package/dist/chunk-FRDIQURT.js.map +1 -0
- package/dist/index.cjs +15 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/skills/odla-migrate/references/phase-2-db.md +2 -2
- package/dist/chunk-S3OYXHDG.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2593,7 +2593,7 @@ async function stageWorkspacePair(baselineSource, workspaceSource, options = {})
|
|
|
2593
2593
|
}
|
|
2594
2594
|
}
|
|
2595
2595
|
|
|
2596
|
-
// ../harness/dist/chunk-
|
|
2596
|
+
// ../harness/dist/chunk-5E2R3LHE.js
|
|
2597
2597
|
var import_crypto = require("crypto");
|
|
2598
2598
|
var import_promises5 = require("fs/promises");
|
|
2599
2599
|
var import_path5 = require("path");
|
|
@@ -2930,7 +2930,7 @@ function validateSnapshot(snapshot, limits) {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
|
|
2933
|
-
// ../harness/dist/chunk-
|
|
2933
|
+
// ../harness/dist/chunk-5E2R3LHE.js
|
|
2934
2934
|
var import_child_process4 = require("child_process");
|
|
2935
2935
|
var import_promises6 = require("fs/promises");
|
|
2936
2936
|
var import_path6 = require("path");
|
|
@@ -3223,7 +3223,7 @@ function looksLikeDestination(value) {
|
|
|
3223
3223
|
return /^(?:[a-z][a-z0-9+.-]*:\/\/|\/|\\\\)/i.test(text) || /^[\w.-]+\.[a-z]{2,}(?:[/:]|$)/i.test(text);
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
|
-
// ../harness/dist/chunk-
|
|
3226
|
+
// ../harness/dist/chunk-5E2R3LHE.js
|
|
3227
3227
|
var import_crypto4 = require("crypto");
|
|
3228
3228
|
async function digestStagedWorkspace(root, limits) {
|
|
3229
3229
|
const files = [];
|
|
@@ -3338,9 +3338,13 @@ function createCodeRuntimeControlClient(options) {
|
|
|
3338
3338
|
if (!Number.isSafeInteger(requestTimeoutMs) || requestTimeoutMs < 1e3 || requestTimeoutMs > 12e4) {
|
|
3339
3339
|
throw new TypeError("requestTimeoutMs must be an integer from 1000 to 120000");
|
|
3340
3340
|
}
|
|
3341
|
+
const modelRequestTimeoutMs = options.modelRequestTimeoutMs ?? 15 * 6e4;
|
|
3342
|
+
if (!Number.isSafeInteger(modelRequestTimeoutMs) || modelRequestTimeoutMs < 3e4 || modelRequestTimeoutMs > 30 * 6e4) {
|
|
3343
|
+
throw new TypeError("modelRequestTimeoutMs must be an integer from 30000 to 1800000");
|
|
3344
|
+
}
|
|
3341
3345
|
const request = options.fetch ?? fetch;
|
|
3342
|
-
const call = async (path, body) => {
|
|
3343
|
-
const timeout = AbortSignal.timeout(
|
|
3346
|
+
const call = async (path, body, timeoutMs = requestTimeoutMs) => {
|
|
3347
|
+
const timeout = AbortSignal.timeout(timeoutMs);
|
|
3344
3348
|
const signal = options.signal ? AbortSignal.any([options.signal, timeout]) : timeout;
|
|
3345
3349
|
let response2;
|
|
3346
3350
|
try {
|
|
@@ -3379,14 +3383,18 @@ function createCodeRuntimeControlClient(options) {
|
|
|
3379
3383
|
await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/source`, {})
|
|
3380
3384
|
),
|
|
3381
3385
|
infer: async (sessionId, inference) => {
|
|
3382
|
-
const value = record3(await call(
|
|
3386
|
+
const value = record3(await call(
|
|
3387
|
+
`/registry/code/runtime/sessions/${validSessionId(sessionId)}/inference`,
|
|
3388
|
+
inference,
|
|
3389
|
+
modelRequestTimeoutMs
|
|
3390
|
+
));
|
|
3383
3391
|
if (!value || value.requestId !== inference.requestId || !record3(value.response) || !record3(value.receipt)) {
|
|
3384
3392
|
throw new CodeRuntimeControlError("invalid Code inference response", 502, "invalid_response");
|
|
3385
3393
|
}
|
|
3386
3394
|
return value;
|
|
3387
3395
|
},
|
|
3388
3396
|
review: async (sessionId, review) => parseReview(
|
|
3389
|
-
await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/review`, review)
|
|
3397
|
+
await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/review`, review, modelRequestTimeoutMs)
|
|
3390
3398
|
),
|
|
3391
3399
|
submitCandidate: async (sessionId, checkpointId, verification) => {
|
|
3392
3400
|
if (!/^cpoint_[0-9a-f]{32}$/.test(checkpointId)) throw new TypeError("invalid Code checkpoint id");
|