@graypark/ralph-codex 0.5.1 → 0.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graypark/ralph-codex",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "description": "Ralph Loop for Codex CLI & Claude Code — iterative dev loops with multi-agent orchestration, interactive interview, and stop hooks",
6
6
  "license": "MIT",
@@ -268,10 +268,10 @@ To cancel at any time: `/ralph-loop:cancel-ralph`
268
268
  If the user includes phrases like "run immediately", "just do it", "run it", "바로 실행", "바로 시작", or "--run" in their initial message:
269
269
 
270
270
  1. Conduct the interview as normal (skip if enough context is provided).
271
- 2. Generate the command blocks.
272
- 3. For multi-phase: write state file with queue via Bash.
273
- 4. Show the generated command briefly.
274
- 5. Immediately call the Skill tool with skill="ralph-loop:ralph-loop" and the Phase 1 args. Do NOT wait for user confirmation.
271
+ 2. Generate the command blocks. Show them briefly.
272
+ 3. For multi-phase: write state file with queue via Bash tool.
273
+ 4. Make the Skill tool call: skill="ralph-loop:ralph-loop", args=Phase 1 prompt+flags.
274
+ Do NOT stop after step 3. You MUST proceed to step 4.
275
275
 
276
276
  ### Post-Generation Action
277
277
 
@@ -298,23 +298,44 @@ After generating all command blocks, ALWAYS end with this prompt:
298
298
  - **edit** / **수정** → Tell me what to change
299
299
  ```
300
300
 
301
- ### Execution Modes
301
+ ### Execution — MANDATORY TOOL CALL
302
302
 
303
- IMPORTANT: When the user confirms execution, you MUST actually start the loop by calling the Skill tool with skill "ralph-loop:ralph-loop" and the generated args. Do NOT just write a state file or print the command. The Skill tool invocation is what triggers the real loop.
303
+ When the user confirms with "y", "yes", "step", "run", "바로 실행", etc., you MUST perform an actual Skill tool call. This is NON-NEGOTIABLE.
304
304
 
305
- **Pipeline mode (default for "y"):**
305
+ WRONG (do NOT do this):
306
306
 
307
- 1. For multi-phase: write the state file with queue via Bash
308
- 2. Call the Skill tool: skill="ralph-loop:ralph-loop", args="<Phase 1 prompt> --max-iterations N --completion-promise PROMISE"
309
- 3. The stop hook handles phase transitions automatically
307
+ - Printing the /ralph-loop command as text
308
+ - Writing a state file and saying "ready"
309
+ - Telling the user to copy-paste
310
+ - Saying "Phase 1 is set up"
311
+
312
+ RIGHT (you MUST do this):
313
+
314
+ - Use the Skill tool to invoke "ralph-loop:ralph-loop" with args
315
+
316
+ The exact tool call you must make:
317
+
318
+ ```
319
+ Use the Skill tool with:
320
+ skill: "ralph-loop:ralph-loop"
321
+ args: "<the full prompt>" --max-iterations <N> --completion-promise "<PROMISE>"
322
+ ```
323
+
324
+ This is the same as if the user had typed `/ralph-loop:ralph-loop "..." --max-iterations N --completion-promise "X"` themselves. You are doing it on their behalf.
325
+
326
+ **Pipeline mode ("y"):**
327
+
328
+ 1. For multi-phase: first write state file with queue via Bash tool
329
+ 2. Then IMMEDIATELY make the Skill tool call for Phase 1
330
+ 3. Stop hook handles the rest
310
331
 
311
332
  **Manual mode ("step"):**
312
333
 
313
- 1. Call the Skill tool: skill="ralph-loop:ralph-loop", args="<Phase 1 prompt> --max-iterations N --completion-promise PROMISE"
314
- 2. When Phase 1 completes, ask user before calling Skill tool again for Phase 2
334
+ 1. IMMEDIATELY make the Skill tool call for Phase 1
335
+ 2. After it completes, ask before making the next Skill tool call
315
336
 
316
337
  **Single-phase ("y"):**
317
338
 
318
- 1. Call the Skill tool: skill="ralph-loop:ralph-loop", args="<prompt> --max-iterations N --completion-promise PROMISE"
339
+ 1. IMMEDIATELY make the Skill tool call
319
340
 
320
- After the user says "y", "yes", or similar, you MUST immediately use the Skill tool. Do not just describe what would happen. Do not tell the user to copy-paste. Actually invoke the skill.
341
+ If you do not make the Skill tool call, the loop will not start. Writing a state file alone does nothing.