steroids-cli 0.8.33 → 0.8.34
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/commands/loop-phases.d.ts +6 -2
- package/dist/commands/loop-phases.d.ts.map +1 -1
- package/dist/commands/loop-phases.js +42 -2
- package/dist/commands/loop-phases.js.map +1 -1
- package/dist/commands/merge.d.ts.map +1 -1
- package/dist/commands/merge.js +13 -1
- package/dist/commands/merge.js.map +1 -1
- package/dist/commands/runners-parallel.d.ts +1 -0
- package/dist/commands/runners-parallel.d.ts.map +1 -1
- package/dist/commands/runners-parallel.js +93 -6
- package/dist/commands/runners-parallel.js.map +1 -1
- package/dist/commands/workspaces.d.ts.map +1 -1
- package/dist/commands/workspaces.js +38 -4
- package/dist/commands/workspaces.js.map +1 -1
- package/dist/config/loader.d.ts +9 -0
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +9 -0
- package/dist/config/loader.js.map +1 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +45 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/database/queries.d.ts.map +1 -1
- package/dist/database/queries.js +15 -1
- package/dist/database/queries.js.map +1 -1
- package/dist/database/schema.d.ts +2 -2
- package/dist/database/schema.d.ts.map +1 -1
- package/dist/database/schema.js +9 -0
- package/dist/database/schema.js.map +1 -1
- package/dist/orchestrator/coder.js +1 -1
- package/dist/orchestrator/coder.js.map +1 -1
- package/dist/orchestrator/coordinator.d.ts.map +1 -1
- package/dist/orchestrator/coordinator.js +5 -3
- package/dist/orchestrator/coordinator.js.map +1 -1
- package/dist/orchestrator/fallback-handler.d.ts +2 -1
- package/dist/orchestrator/fallback-handler.d.ts.map +1 -1
- package/dist/orchestrator/fallback-handler.js +36 -20
- package/dist/orchestrator/fallback-handler.js.map +1 -1
- package/dist/orchestrator/post-reviewer.d.ts.map +1 -1
- package/dist/orchestrator/post-reviewer.js +18 -23
- package/dist/orchestrator/post-reviewer.js.map +1 -1
- package/dist/orchestrator/reviewer.d.ts +1 -1
- package/dist/orchestrator/reviewer.d.ts.map +1 -1
- package/dist/orchestrator/reviewer.js +19 -16
- package/dist/orchestrator/reviewer.js.map +1 -1
- package/dist/parallel/clone.d.ts +13 -0
- package/dist/parallel/clone.d.ts.map +1 -1
- package/dist/parallel/clone.js +40 -0
- package/dist/parallel/clone.js.map +1 -1
- package/dist/parallel/merge-conflict-attempts.d.ts +8 -0
- package/dist/parallel/merge-conflict-attempts.d.ts.map +1 -0
- package/dist/parallel/merge-conflict-attempts.js +68 -0
- package/dist/parallel/merge-conflict-attempts.js.map +1 -0
- package/dist/parallel/merge-conflict-invoke.d.ts +2 -0
- package/dist/parallel/merge-conflict-invoke.d.ts.map +1 -0
- package/dist/parallel/merge-conflict-invoke.js +41 -0
- package/dist/parallel/merge-conflict-invoke.js.map +1 -0
- package/dist/parallel/merge-conflict-prompts.d.ts +23 -0
- package/dist/parallel/merge-conflict-prompts.d.ts.map +1 -0
- package/dist/parallel/merge-conflict-prompts.js +40 -0
- package/dist/parallel/merge-conflict-prompts.js.map +1 -0
- package/dist/parallel/merge-conflict-task.d.ts +3 -0
- package/dist/parallel/merge-conflict-task.d.ts.map +1 -0
- package/dist/parallel/merge-conflict-task.js +59 -0
- package/dist/parallel/merge-conflict-task.js.map +1 -0
- package/dist/parallel/merge-conflict.d.ts +7 -7
- package/dist/parallel/merge-conflict.d.ts.map +1 -1
- package/dist/parallel/merge-conflict.js +91 -135
- package/dist/parallel/merge-conflict.js.map +1 -1
- package/dist/parallel/merge-errors.d.ts +2 -0
- package/dist/parallel/merge-errors.d.ts.map +1 -1
- package/dist/parallel/merge-errors.js +2 -0
- package/dist/parallel/merge-errors.js.map +1 -1
- package/dist/parallel/merge-git.d.ts.map +1 -1
- package/dist/parallel/merge-git.js +4 -1
- package/dist/parallel/merge-git.js.map +1 -1
- package/dist/parallel/merge-lock.d.ts +4 -2
- package/dist/parallel/merge-lock.d.ts.map +1 -1
- package/dist/parallel/merge-lock.js +51 -18
- package/dist/parallel/merge-lock.js.map +1 -1
- package/dist/parallel/merge-progress.d.ts +3 -1
- package/dist/parallel/merge-progress.d.ts.map +1 -1
- package/dist/parallel/merge-progress.js +9 -4
- package/dist/parallel/merge-progress.js.map +1 -1
- package/dist/parallel/merge.d.ts +4 -0
- package/dist/parallel/merge.d.ts.map +1 -1
- package/dist/parallel/merge.js +222 -17
- package/dist/parallel/merge.js.map +1 -1
- package/dist/prompts/prompt-helpers.d.ts +1 -1
- package/dist/prompts/prompt-helpers.d.ts.map +1 -1
- package/dist/prompts/prompt-helpers.js +10 -7
- package/dist/prompts/prompt-helpers.js.map +1 -1
- package/dist/prompts/reviewer.d.ts.map +1 -1
- package/dist/prompts/reviewer.js +48 -21
- package/dist/prompts/reviewer.js.map +1 -1
- package/dist/runners/global-db.d.ts +32 -0
- package/dist/runners/global-db.d.ts.map +1 -1
- package/dist/runners/global-db.js +403 -2
- package/dist/runners/global-db.js.map +1 -1
- package/dist/runners/orchestrator-loop.d.ts.map +1 -1
- package/dist/runners/orchestrator-loop.js +50 -3
- package/dist/runners/orchestrator-loop.js.map +1 -1
- package/dist/runners/wakeup.d.ts +1 -0
- package/dist/runners/wakeup.d.ts.map +1 -1
- package/dist/runners/wakeup.js +363 -29
- package/dist/runners/wakeup.js.map +1 -1
- package/migrations/012_add_merge_lock_epoch.sql +15 -0
- package/migrations/013_add_merge_progress_applied_commit_sha.sql +15 -0
- package/migrations/manifest.json +17 -1
- package/package.json +1 -1
package/dist/prompts/reviewer.js
CHANGED
|
@@ -63,7 +63,7 @@ ${lines.join('\n')}
|
|
|
63
63
|
*/
|
|
64
64
|
/**
|
|
65
65
|
* Format coordinator guidance for the reviewer
|
|
66
|
-
* Makes coordinator decisions visible
|
|
66
|
+
* Makes coordinator decisions visible as advisory context for the reviewer
|
|
67
67
|
*/
|
|
68
68
|
function formatCoordinatorGuidance(guidance, decision) {
|
|
69
69
|
if (!guidance)
|
|
@@ -87,11 +87,14 @@ A coordinator has reviewed the rejection history for this task and made the foll
|
|
|
87
87
|
|
|
88
88
|
${guidance}
|
|
89
89
|
|
|
90
|
-
**
|
|
91
|
-
- If the coordinator decided **override_reviewer**:
|
|
92
|
-
- If the coordinator decided **narrow_scope**:
|
|
93
|
-
- If the coordinator decided **guide_coder**: the coder
|
|
94
|
-
- You may
|
|
90
|
+
**Use this as advisory context, not an approval gate:**
|
|
91
|
+
- If the coordinator decided **override_reviewer**: treat it as a scope hint, but still verify correctness, security, and spec compliance in the actual diff.
|
|
92
|
+
- If the coordinator decided **narrow_scope**: prioritize the narrowed scope for disputed points, but still review for any blocking defects.
|
|
93
|
+
- If the coordinator decided **guide_coder**: check whether the coder followed the guidance, then continue full independent review.
|
|
94
|
+
- You may reject for any blocking issue, including new or previously missed issues.
|
|
95
|
+
- Never auto-approve because coordinator guidance was followed.
|
|
96
|
+
- If coordinator guidance conflicts with clear spec/security/correctness requirements, follow those requirements and explain the conflict.
|
|
97
|
+
- If you disagree with coordinator scope advice, explicitly state why in your rejection notes so the next coordinator pass can converge.
|
|
95
98
|
|
|
96
99
|
`;
|
|
97
100
|
}
|
|
@@ -224,49 +227,73 @@ ${getTestCoverageInstructions(config, modifiedFiles)}
|
|
|
224
227
|
|
|
225
228
|
## Your Decision
|
|
226
229
|
|
|
227
|
-
|
|
230
|
+
Your first non-empty line MUST be an explicit decision token in this exact format:
|
|
231
|
+
- \`DECISION: APPROVE\`
|
|
232
|
+
- \`DECISION: REJECT\`
|
|
233
|
+
- \`DECISION: DISPUTE\`
|
|
234
|
+
- \`DECISION: SKIP\`
|
|
235
|
+
|
|
236
|
+
After the decision token, include the matching details below.
|
|
228
237
|
|
|
229
238
|
### APPROVE (implementation is correct)
|
|
230
239
|
If the code correctly implements the specification:
|
|
231
|
-
**Output:**
|
|
240
|
+
**Output:**
|
|
241
|
+
\`\`\`
|
|
242
|
+
DECISION: APPROVE
|
|
243
|
+
APPROVE - Implementation meets all requirements
|
|
244
|
+
\`\`\`
|
|
232
245
|
|
|
233
246
|
### APPROVE WITH NOTE (minor issues, not blocking)
|
|
234
247
|
If you have minor concerns but the implementation is acceptable:
|
|
235
|
-
**Output:**
|
|
248
|
+
**Output:**
|
|
249
|
+
\`\`\`
|
|
250
|
+
DECISION: APPROVE
|
|
251
|
+
APPROVE - <your feedback here>
|
|
252
|
+
\`\`\`
|
|
236
253
|
|
|
237
254
|
### SKIP (external setup required)
|
|
238
255
|
If the coder requested a SKIP and it's legitimate:
|
|
239
256
|
1. **Verify** the spec section says SKIP, MANUAL, or requires external action
|
|
240
257
|
2. **Verify** the skip notes explain WHAT human action is needed
|
|
241
258
|
3. If valid:
|
|
242
|
-
**Output:**
|
|
259
|
+
**Output:**
|
|
260
|
+
\`\`\`
|
|
261
|
+
DECISION: SKIP
|
|
262
|
+
SKIP - Verified: spec says SKIP. Human must [action]. Approved to unblock pipeline.
|
|
263
|
+
\`\`\`
|
|
243
264
|
|
|
244
265
|
### REJECT (needs changes)
|
|
245
266
|
If there are issues that must be fixed:
|
|
246
|
-
**Output:**
|
|
267
|
+
**Output:** \`DECISION: REJECT\` followed by specific feedback
|
|
247
268
|
|
|
248
269
|
**CRITICAL: Format rejection feedback with checkboxes for EACH actionable item:**
|
|
249
270
|
|
|
250
271
|
\`\`\`
|
|
251
|
-
- [ ] Fix type error in src/foo.ts:42 - change \`string\` to \`number\`
|
|
252
|
-
- [ ]
|
|
253
|
-
- [ ] Add unit test for the new \`processItem()\` function
|
|
254
|
-
- [ ] Remove unused import on line 3
|
|
272
|
+
- [ ] [NEW] Fix type error in src/foo.ts:42 - change \`string\` to \`number\`
|
|
273
|
+
- [ ] [UNRESOLVED] src/bar.ts:15 still dereferences \`.data\` without null check (same issue from prior review; verified in current diff)
|
|
274
|
+
- [ ] [NEW] Add unit test for the new \`processItem()\` function
|
|
275
|
+
- [ ] [NEW] Remove unused import on line 3
|
|
255
276
|
\`\`\`
|
|
256
277
|
|
|
257
278
|
**Why checkboxes?** The coder will use these to verify they've addressed EVERY issue before resubmitting. Each checkbox = one specific action.
|
|
258
279
|
|
|
259
280
|
**Rules for rejection notes:**
|
|
260
281
|
1. One checkbox per actionable item (not paragraphs of prose)
|
|
261
|
-
2.
|
|
262
|
-
3.
|
|
263
|
-
4.
|
|
282
|
+
2. Start each checkbox with \`[NEW]\` or \`[UNRESOLVED]\`
|
|
283
|
+
3. For each \`[UNRESOLVED]\` item, include evidence of what remains broken now (file:line or concrete behavior)
|
|
284
|
+
4. Include file:line references where applicable
|
|
285
|
+
5. Be specific about WHAT to change, not just WHAT is wrong
|
|
286
|
+
6. Group related items logically
|
|
264
287
|
|
|
265
288
|
This will be rejection #${task.rejection_count + 1}.
|
|
266
289
|
|
|
267
290
|
### DISPUTE (fundamental disagreement)
|
|
268
291
|
Only if there's a genuine specification or architecture conflict:
|
|
269
|
-
**Output:**
|
|
292
|
+
**Output:**
|
|
293
|
+
\`\`\`
|
|
294
|
+
DECISION: DISPUTE
|
|
295
|
+
DISPUTE - <explanation>
|
|
296
|
+
\`\`\`
|
|
270
297
|
|
|
271
298
|
Use sparingly. Most issues should be resolved via reject/fix cycle.
|
|
272
299
|
|
|
@@ -279,7 +306,7 @@ Use sparingly. Most issues should be resolved via reject/fix cycle.
|
|
|
279
306
|
1. **NEVER modify code yourself** - only review it
|
|
280
307
|
2. **Be specific in rejection notes** - vague feedback wastes cycles
|
|
281
308
|
3. **Approve if it works** - don't reject for style preferences
|
|
282
|
-
4. **You MUST
|
|
309
|
+
4. **You MUST include an explicit decision token** (\`DECISION: APPROVE|REJECT|DISPUTE|SKIP\`)
|
|
283
310
|
5. **Verify coder's claims** - if coder says work exists in a commit, CHECK IT before rejecting
|
|
284
311
|
6. **Empty diff ≠ no work** - work may exist in earlier commits the coder referenced
|
|
285
312
|
7. **SKIP requests are valid** - if spec says SKIP/manual, approve the skip to unblock the pipeline
|
|
@@ -304,7 +331,7 @@ Simply include these as notes in your decision output. They will be logged for h
|
|
|
304
331
|
|
|
305
332
|
## Review Now
|
|
306
333
|
|
|
307
|
-
Examine the diff above, then
|
|
334
|
+
Examine the diff above, then output your explicit decision token first, followed by any notes.
|
|
308
335
|
The orchestrator will parse your decision and update task status accordingly.
|
|
309
336
|
`;
|
|
310
337
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../src/prompts/reviewer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;
|
|
1
|
+
{"version":3,"file":"reviewer.js","sourceRoot":"","sources":["../../src/prompts/reviewer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAyJH,wDAoNC;AAiBD,kEA8GC;AAxeD,2DAAuG;AAiBvG;;GAEG;AACH,SAAS,sBAAsB,CAAC,UAA6B;IAC3D,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3C,OAAO;;;;;;CAMV,CAAC;IACA,CAAC;IAED,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QAC/B,MAAM,SAAS,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,IAAI,qBAAqB,CAAC;QAC/C,OAAO,kBAAkB,CAAC,CAAC,gBAAgB,GAAG,SAAS;EACzD,KAAK;CACN,CAAC;IACA,CAAC,CAAC,CAAC;IAEH,yEAAyE;IACzE,MAAM,YAAY,GAAG;;;;;;;mGAO4E,CAAC;IAElG,MAAM,oBAAoB,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC;;0CAEd,UAAU,CAAC,MAAM;;;;;CAK1D,CAAC,CAAC,CAAC,EAAE,CAAC;IAEL,OAAO;;;wBAGe,UAAU,CAAC,MAAM;EACvC,oBAAoB;;;;;;EA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C,CAAC,mBAAmB,CAAC;IAExB,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO;;4DAEmD,WAAW;;;;cAIzD,WAAW;mBACN,KAAK,CAAC,MAAM;eAChB,WAAW;;;;;;EAMxB,SAAS;;;;;;;EAOT,WAAW;;;;;;;EAOX,kBAAkB;;;EAGlB,2BAA2B,CAAC,MAAM,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgClD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;CAmB5D,CAAC;AACF,CAAC"}
|
|
@@ -7,6 +7,24 @@ export interface GlobalDatabaseConnection {
|
|
|
7
7
|
db: Database.Database;
|
|
8
8
|
close: () => void;
|
|
9
9
|
}
|
|
10
|
+
export type ParallelSessionStatus = 'running' | 'merging' | 'cleanup_pending' | 'cleanup_draining' | 'blocked_conflict' | 'blocked_recovery' | 'blocked_validation' | 'completed' | 'failed' | 'aborted';
|
|
11
|
+
export interface ParallelSessionRunner {
|
|
12
|
+
id: string;
|
|
13
|
+
pid: number | null;
|
|
14
|
+
}
|
|
15
|
+
export interface ValidationEscalationRecord {
|
|
16
|
+
id: string;
|
|
17
|
+
session_id: string;
|
|
18
|
+
project_path: string;
|
|
19
|
+
workspace_path: string;
|
|
20
|
+
validation_command: string;
|
|
21
|
+
error_message: string;
|
|
22
|
+
stdout_snippet: string | null;
|
|
23
|
+
stderr_snippet: string | null;
|
|
24
|
+
status: 'open' | 'resolved';
|
|
25
|
+
created_at: string;
|
|
26
|
+
resolved_at: string | null;
|
|
27
|
+
}
|
|
10
28
|
/**
|
|
11
29
|
* Get the path to the global steroids directory.
|
|
12
30
|
* Respects STEROIDS_HOME env var for test isolation (Jest's ESM VM context
|
|
@@ -30,4 +48,18 @@ export declare function openGlobalDatabase(): GlobalDatabaseConnection;
|
|
|
30
48
|
* Get global schema version
|
|
31
49
|
*/
|
|
32
50
|
export declare function getGlobalSchemaVersion(db: Database.Database): string | null;
|
|
51
|
+
export declare function updateParallelSessionStatus(sessionId: string, status: ParallelSessionStatus, markCompletedAt?: boolean): void;
|
|
52
|
+
export declare function revokeWorkstreamLeasesForSession(sessionId: string): number;
|
|
53
|
+
export declare function listParallelSessionRunners(sessionId: string): ParallelSessionRunner[];
|
|
54
|
+
export declare function removeParallelSessionRunner(runnerId: string): void;
|
|
55
|
+
export declare function recordValidationEscalation(input: {
|
|
56
|
+
sessionId: string;
|
|
57
|
+
projectPath: string;
|
|
58
|
+
workspacePath: string;
|
|
59
|
+
validationCommand: string;
|
|
60
|
+
errorMessage: string;
|
|
61
|
+
stdoutSnippet?: string | null;
|
|
62
|
+
stderrSnippet?: string | null;
|
|
63
|
+
}): ValidationEscalationRecord;
|
|
64
|
+
export declare function resolveValidationEscalationsForSession(sessionId: string): number;
|
|
33
65
|
//# sourceMappingURL=global-db.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-db.d.ts","sourceRoot":"","sources":["../../src/runners/global-db.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"global-db.d.ts","sourceRoot":"","sources":["../../src/runners/global-db.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAStC,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,QAAQ,CAAC,QAAQ,CAAC;IACtB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,MAAM,MAAM,qBAAqB,GAC7B,SAAS,GACT,SAAS,GACT,iBAAiB,GACjB,kBAAkB,GAClB,kBAAkB,GAClB,kBA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