flight-rules 0.13.1 → 0.13.3
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/ralph.js +6 -0
- package/package.json +1 -1
- package/payload/AGENTS.md +1 -1
package/dist/commands/ralph.js
CHANGED
|
@@ -104,9 +104,11 @@ async function isClaudeCliAvailable() {
|
|
|
104
104
|
async function runClaudeWithPrompt(promptContent, verbose) {
|
|
105
105
|
return new Promise((resolve, reject) => {
|
|
106
106
|
// Use --output-format stream-json for real-time streaming output
|
|
107
|
+
// Note: Claude CLI requires --verbose when using stream-json with -p
|
|
107
108
|
const claude = spawn('claude', [
|
|
108
109
|
'--dangerously-skip-permissions',
|
|
109
110
|
'-p',
|
|
111
|
+
'--verbose',
|
|
110
112
|
'--output-format',
|
|
111
113
|
'stream-json',
|
|
112
114
|
], {
|
|
@@ -134,6 +136,10 @@ async function runClaudeWithPrompt(promptContent, verbose) {
|
|
|
134
136
|
else if (parsed.type === 'content_block_delta' && parsed.delta?.text) {
|
|
135
137
|
process.stdout.write(parsed.delta.text);
|
|
136
138
|
}
|
|
139
|
+
else if (parsed.type === 'content_block_stop') {
|
|
140
|
+
// Add newline after each content block ends
|
|
141
|
+
process.stdout.write('\n');
|
|
142
|
+
}
|
|
137
143
|
}
|
|
138
144
|
catch {
|
|
139
145
|
// Not valid JSON or incomplete line, skip
|
package/package.json
CHANGED