flight-rules 0.13.2 → 0.13.4

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.
@@ -136,6 +136,10 @@ async function runClaudeWithPrompt(promptContent, verbose) {
136
136
  else if (parsed.type === 'content_block_delta' && parsed.delta?.text) {
137
137
  process.stdout.write(parsed.delta.text);
138
138
  }
139
+ else if (parsed.type === 'content_block_stop') {
140
+ // Add newline after each content block ends
141
+ process.stdout.write('\n');
142
+ }
139
143
  }
140
144
  catch {
141
145
  // Not valid JSON or incomplete line, skip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flight-rules",
3
- "version": "0.13.2",
3
+ "version": "0.13.4",
4
4
  "description": "An opinionated framework for AI-assisted software development",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/payload/AGENTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Flight Rules – Agent Guidelines
2
2
 
3
- flight_rules_version: 0.13.2
3
+ flight_rules_version: 0.13.4
4
4
 
5
5
  This file defines how agents (Claude Code, Cursor, etc.) should work on software projects using the Flight Rules system.
6
6
 
@@ -11,9 +11,11 @@ You are an autonomous coding agent implementing Flight Rules task groups.
11
11
  - If ALL tasks across ALL task groups are ✅ Complete, proceed to step 2
12
12
  - Otherwise, proceed to step 3
13
13
 
14
- 2. **If All Complete**
14
+ 2. **If ALL Tasks in ALL Task Groups Are Complete**
15
+ - ONLY output the completion signal when you have verified that EVERY task in EVERY task group is ✅ Complete
15
16
  - Output exactly: `<ralph-signal>COMPLETE</ralph-signal>`
16
17
  - Stop immediately - do not output anything else after this
18
+ - **IMPORTANT**: Do NOT output this signal just because the current task group is done. The loop will automatically continue to the next iteration.
17
19
 
18
20
  3. **If Task Group Found**
19
21
  - Read the Task Group file completely
@@ -33,6 +35,7 @@ You are an autonomous coding agent implementing Flight Rules task groups.
33
35
  git add -A
34
36
  git commit -m "feat: [Task Group ID] - [Task Group Title]"
35
37
  ```
38
+ - **STOP HERE** - Do NOT output the completion signal. The loop will automatically start the next iteration to find more task groups.
36
39
 
37
40
  5. **Quality Checks (Run Before Every Commit)**
38
41
  First, read `package.json` to discover available scripts. Then run the relevant ones:
@@ -84,11 +87,13 @@ Create verbose logs for each Ralph session. After completing a task group (or wh
84
87
  ## Rules
85
88
 
86
89
  - Work on ONE task group per iteration
90
+ - NEVER output the COMPLETE signal unless ALL tasks in ALL task groups are ✅ Complete
87
91
  - NEVER ask for human input - work autonomously
88
92
  - NEVER skip quality checks
89
93
  - If blocked after 3 attempts on the same issue, document it and move on
90
94
  - Commit after completing each task group, not after each individual task
91
95
  - Keep commits atomic and CI-friendly
96
+ - After committing a task group, just STOP - the loop will automatically continue
92
97
 
93
98
  ## Status Legend
94
99