claude-overnight 1.57.0 → 1.57.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/dist/bin/evolve.js +3 -1
- package/dist/core/_version.d.ts +1 -1
- package/dist/core/_version.js +1 -1
- package/dist/prompt-evolution/evaluator.js +19 -4
- package/dist/prompt-evolution/transport-batch.js +5 -2
- package/package.json +1 -1
- package/plugins/claude-overnight/.claude-plugin/plugin.json +1 -1
package/dist/bin/evolve.js
CHANGED
|
@@ -293,7 +293,9 @@ async function evolveOne(opts) {
|
|
|
293
293
|
cases = cases.concat(generated);
|
|
294
294
|
}
|
|
295
295
|
catch (err) {
|
|
296
|
-
|
|
296
|
+
const msg = err.message ?? String(err);
|
|
297
|
+
console.log(`\n ⚠ case generation failed: ${msg.slice(0, 500)}`);
|
|
298
|
+
console.log(` Falling back to the existing ${cases.length} case(s). Try --gen-model with an Anthropic-compatible JSON-reliable model (e.g. claude-haiku-4-5) if this persists.\n`);
|
|
297
299
|
}
|
|
298
300
|
}
|
|
299
301
|
}
|
package/dist/core/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.57.
|
|
1
|
+
export declare const VERSION = "1.57.1";
|
package/dist/core/_version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by build — do not edit manually.
|
|
2
|
-
export const VERSION = "1.57.
|
|
2
|
+
export const VERSION = "1.57.1";
|
|
@@ -44,10 +44,7 @@ export async function buildMatrix(variants, cases, opts) {
|
|
|
44
44
|
// batch=false — work-stealing pool: keep `concurrency` jobs in flight so
|
|
45
45
|
// a slow call doesn't block the others in its slice.
|
|
46
46
|
const rawByKey = new Map();
|
|
47
|
-
|
|
48
|
-
await runBatchPath(jobs, opts, rawByKey);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
47
|
+
const runOnlinePool = async () => {
|
|
51
48
|
let done = 0;
|
|
52
49
|
let next = 0;
|
|
53
50
|
const worker = async () => {
|
|
@@ -65,6 +62,24 @@ export async function buildMatrix(variants, cases, opts) {
|
|
|
65
62
|
}
|
|
66
63
|
};
|
|
67
64
|
await Promise.all(Array.from({ length: Math.min(concurrency, jobs.length) }, worker));
|
|
65
|
+
};
|
|
66
|
+
if (opts.batch) {
|
|
67
|
+
try {
|
|
68
|
+
await runBatchPath(jobs, opts, rawByKey);
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
// Batch submission failed (Kimi's /v1/files doesn't match OpenAI,
|
|
72
|
+
// OpenRouter has no batch at all, transient provider error, etc.).
|
|
73
|
+
// Fall back to the online pool so the whole run doesn't die — losing
|
|
74
|
+
// the 50% batch discount is better than losing the run.
|
|
75
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
76
|
+
opts.onBatchProgress?.(`batch path failed, falling back to online: ${msg.slice(0, 200)}`);
|
|
77
|
+
rawByKey.clear(); // discard any partial state
|
|
78
|
+
await runOnlinePool();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
await runOnlinePool();
|
|
68
83
|
}
|
|
69
84
|
// Adaptive sampling: for cells where any score-dim σ exceeds threshold,
|
|
70
85
|
// add one more rep and rerun — up to `cap` total reps. Converges on a
|
|
@@ -136,8 +136,11 @@ async function runOpenAIBatch(jobs, opts) {
|
|
|
136
136
|
form.append("purpose", "batch");
|
|
137
137
|
form.append("file", new Blob([jsonl], { type: "application/jsonl" }), "batch-input.jsonl");
|
|
138
138
|
const fileRes = await fetch(`${baseUrl}/v1/files`, { method: "POST", headers: authHeaders, body: form });
|
|
139
|
-
if (!fileRes.ok)
|
|
140
|
-
|
|
139
|
+
if (!fileRes.ok) {
|
|
140
|
+
const body = await fileRes.text().catch(() => "");
|
|
141
|
+
throw new Error(`Batch file-upload failed: HTTP ${fileRes.status} at ${baseUrl}/v1/files. ` +
|
|
142
|
+
`This provider may not support OpenAI-compatible batch. Response: ${body.slice(0, 300)}`);
|
|
143
|
+
}
|
|
141
144
|
const fileData = await fileRes.json();
|
|
142
145
|
const createRes = await fetch(`${baseUrl}/v1/batches`, {
|
|
143
146
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-overnight",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.1",
|
|
4
4
|
"description": "Overnight parallel coding agents in git worktrees, with a self-curating skill memory that improves while the run is going. Mix Claude Opus as planner, Kimi 2.6 or Cursor composer-2 as cheap fast worker, Gemini or Qwen for bulk implementation. Multi-wave autonomous loop that plans, executes, reviews, and steers itself until the objective is met. Crash-safe resume, rate-limit aware, usage cap preserves headroom for your interactive Claude Code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-overnight",
|
|
3
|
-
"version": "1.57.
|
|
3
|
+
"version": "1.57.1",
|
|
4
4
|
"description": "Claude Code skill for understanding, installing, and inspecting claude-overnight runs: overnight parallel coding agents in git worktrees with a self-curating skill memory, multi-wave steering, three-layer review, and crash-safe resume. Mix Opus planner with Kimi 2.6, Cursor composer-2, Gemini, Qwen, or any Anthropic-compatible worker.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Francesco Fornace"
|