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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flight-rules",
3
- "version": "0.13.1",
3
+ "version": "0.13.3",
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.1
3
+ flight_rules_version: 0.13.3
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