@litmers/cursorflow-orchestrator 0.1.8 → 0.1.12

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +113 -319
  3. package/commands/cursorflow-clean.md +24 -135
  4. package/commands/cursorflow-doctor.md +74 -18
  5. package/commands/cursorflow-init.md +33 -50
  6. package/commands/cursorflow-models.md +51 -0
  7. package/commands/cursorflow-monitor.md +56 -118
  8. package/commands/cursorflow-prepare.md +410 -108
  9. package/commands/cursorflow-resume.md +51 -148
  10. package/commands/cursorflow-review.md +38 -202
  11. package/commands/cursorflow-run.md +208 -86
  12. package/commands/cursorflow-signal.md +38 -12
  13. package/dist/cli/clean.d.ts +3 -1
  14. package/dist/cli/clean.js +145 -8
  15. package/dist/cli/clean.js.map +1 -1
  16. package/dist/cli/doctor.js +14 -1
  17. package/dist/cli/doctor.js.map +1 -1
  18. package/dist/cli/index.js +32 -21
  19. package/dist/cli/index.js.map +1 -1
  20. package/dist/cli/init.js +5 -4
  21. package/dist/cli/init.js.map +1 -1
  22. package/dist/cli/models.d.ts +7 -0
  23. package/dist/cli/models.js +104 -0
  24. package/dist/cli/models.js.map +1 -0
  25. package/dist/cli/monitor.js +56 -1
  26. package/dist/cli/monitor.js.map +1 -1
  27. package/dist/cli/prepare.d.ts +7 -0
  28. package/dist/cli/prepare.js +748 -0
  29. package/dist/cli/prepare.js.map +1 -0
  30. package/dist/cli/resume.js +56 -0
  31. package/dist/cli/resume.js.map +1 -1
  32. package/dist/cli/run.js +30 -1
  33. package/dist/cli/run.js.map +1 -1
  34. package/dist/cli/signal.js +18 -0
  35. package/dist/cli/signal.js.map +1 -1
  36. package/dist/core/runner.d.ts +9 -1
  37. package/dist/core/runner.js +139 -23
  38. package/dist/core/runner.js.map +1 -1
  39. package/dist/utils/cursor-agent.d.ts +4 -0
  40. package/dist/utils/cursor-agent.js +58 -10
  41. package/dist/utils/cursor-agent.js.map +1 -1
  42. package/dist/utils/doctor.d.ts +10 -0
  43. package/dist/utils/doctor.js +581 -1
  44. package/dist/utils/doctor.js.map +1 -1
  45. package/dist/utils/types.d.ts +11 -0
  46. package/examples/README.md +114 -59
  47. package/examples/demo-project/README.md +61 -79
  48. package/examples/demo-project/_cursorflow/tasks/demo-test/01-create-utils.json +17 -6
  49. package/examples/demo-project/_cursorflow/tasks/demo-test/02-add-tests.json +17 -6
  50. package/examples/demo-project/_cursorflow/tasks/demo-test/README.md +66 -25
  51. package/package.json +1 -1
  52. package/scripts/patches/test-cursor-agent.js +203 -0
  53. package/src/cli/clean.ts +156 -9
  54. package/src/cli/doctor.ts +18 -2
  55. package/src/cli/index.ts +33 -21
  56. package/src/cli/init.ts +6 -4
  57. package/src/cli/models.ts +83 -0
  58. package/src/cli/monitor.ts +60 -1
  59. package/src/cli/prepare.ts +844 -0
  60. package/src/cli/resume.ts +66 -0
  61. package/src/cli/run.ts +36 -2
  62. package/src/cli/signal.ts +22 -0
  63. package/src/core/runner.ts +164 -23
  64. package/src/utils/cursor-agent.ts +62 -10
  65. package/src/utils/doctor.ts +633 -5
  66. package/src/utils/types.ts +11 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,61 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.12] - 2025-12-21
9
+
10
+ ### Added
11
+ - **Preset Templates**: Three built-in task templates for common patterns:
12
+ - `--preset complex`: plan → implement → test (saves plan to `_cursorflow/PLAN_lane-{N}.md`)
13
+ - `--preset simple`: implement → test
14
+ - `--preset merge`: merge → test (auto-applied for dependent lanes)
15
+ - **Plan Document Integration**: Complex preset saves implementation plans to dedicated files, which are referenced by subsequent tasks
16
+ - **Single Task Mode**: Create simple tasks with just `--prompt` without specifying a preset
17
+ - **Branch Validation in Doctor**:
18
+ - Detects branch prefix collisions between lanes
19
+ - Warns about existing branches that may conflict
20
+ - Suggests consistent naming conventions
21
+ - **Pre-resume Validation**: `cursorflow resume` now runs doctor checks before resuming (use `--skip-doctor` to bypass)
22
+ - **Models Command**: `cursorflow models` to list available AI models
23
+ - **Incremental Lane/Task Addition**:
24
+ - `--add-lane` to add new lanes to existing task directories
25
+ - `--add-task` to append tasks to existing lane files
26
+
27
+ ### Changed
28
+ - All documentation updated to English
29
+ - Improved task generation with better prompts and acceptance criteria
30
+ - Enhanced error messages for branch and dependency issues
31
+
32
+ ## [0.1.9] - 2025-12-21
33
+
34
+ ### Added
35
+ - **Configurable Timeout**: Support for `timeout` field in task JSON to handle complex tasks.
36
+ - **Improved Stdio Handling**: Optimized child process spawning with `ignore` stdin by default to prevent buffering issues.
37
+ - **Task Validation**: Robust pre-flight validation of task JSON configurations with helpful error messages.
38
+ - **Heartbeat Monitoring**: Real-time progress logging (elapsed time and bytes received) for long-running tasks.
39
+ - **Diagnostic Tools**: Added `scripts/patches/test-cursor-agent.js` for direct agent testing and `_cursorflow/tasks/minimal-test/` for isolation.
40
+ - **Enhanced Documentation**: New `docs/API.md` and `docs/TROUBLESHOOTING.md` with detailed configuration guides.
41
+
42
+ ### Fixed
43
+ - **Intervention Stability**: Redesigned intervention to be optional (`enableIntervention: true`) to ensure maximum stability for default runs.
44
+ - **Environment Safety**: Smarter `NODE_OPTIONS` handling that preserves user settings while removing problematic debugging flags.
45
+
46
+ ## [0.1.8] - 2025-12-21
47
+
48
+ ### Added
49
+ - **Interactive Dashboard**: Full-screen interactive terminal monitor with lane navigation.
50
+ - **Live Terminal Streaming**: Real-time streaming of `cursor-agent` output with scrollback support.
51
+ - **Human Intervention**: UI for sending manual prompts to running agents via `I` key.
52
+ - **PID Control**: Tracking of process IDs and force-kill (`K` key) functionality for stuck agents.
53
+ - **Improved Visualization**: Color-coded logs and "Next Action" status in monitor.
54
+
55
+ ## [0.1.7] - 2025-12-21
56
+
57
+ ### Added
58
+ - **Task Dependencies**: Implemented DAG (Directed Acyclic Graph) scheduler for complex workflows.
59
+ - **Automatic Branch Merging**: Dependent lanes now automatically merge their parents' branches before starting.
60
+ - **Deadlock Detection**: Prevention of circular task dependencies at startup.
61
+ - **Concurrency Control**: `maxConcurrentLanes` support in orchestrator.
62
+
8
63
  ## [0.1.6] - 2025-12-21
9
64
 
10
65
  ### Added
package/README.md CHANGED
@@ -9,398 +9,192 @@
9
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
10
10
  [![Node.js](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg)](https://nodejs.org/)
11
11
 
12
- ## Key Features
12
+ ## 🚀 Key Features
13
13
 
14
- - 🚀 **Parallel execution**: Run multiple lanes concurrently with Git worktrees
15
- - 🔍 **Automatic review**: AI-powered code review with iterative feedback
16
- - 📝 **Detailed logging**: Capture conversations, commits, and Git operations
17
- - 🔀 **Dependency management**: Automatic dependency gating and resume support
18
- - 🎯 **Per-lane ports**: Unique dev server ports for each lane
19
- - 💻 **Cursor integration**: Manage workflows directly inside the IDE with custom commands
20
- - 🛠️ **Config-driven**: Flexible project-specific configuration
21
- - 🔒 **Security-first**: Multi-layer automated security scanning before deployment
14
+ - **Parallel Execution**: Run multiple AI agents concurrently using isolated Git worktrees.
15
+ - 🔗 **Task Dependencies (DAG)**: Define complex workflows where tasks wait for and merge their dependencies automatically.
16
+ - 📋 **Preset Templates**: Built-in templates for common patterns (complex, simple, merge).
17
+ - 📊 **Interactive Dashboard**: A powerful terminal-based monitor to track all lanes, progress, and dependencies in real-time.
18
+ - 📺 **Live Terminal Streaming**: Watch the AI agent's output as it happens with scrollable history.
19
+ - 🙋 **Human Intervention**: Send direct messages to running agents to guide them or fix issues on the fly.
20
+ - 🔍 **Automatic Review**: AI-powered code review with iterative feedback loops.
21
+ - 🔀 **Smart Merging**: Automatically merge completed feature branches into subsequent dependent lanes.
22
+ - 🔒 **Security-First**: Automated security scanning and dependency policy enforcement.
22
23
 
23
- ## Quick Start
24
+ ## 🛠️ Quick Start
24
25
 
25
- ### Install
26
+ ### 1. Install
26
27
 
27
28
  ```bash
28
- # npm
29
29
  npm install -g @litmers/cursorflow-orchestrator
30
-
31
- # pnpm (recommended)
32
- pnpm add -g @litmers/cursorflow-orchestrator
33
-
34
- # yarn
35
- yarn global add @litmers/cursorflow-orchestrator
36
30
  ```
37
31
 
38
- ### Requirements
39
-
40
- - **Node.js** >= 18.0.0
41
- - **Git** with worktree support
42
- - **cursor-agent CLI**: `npm install -g @cursor/agent`
43
-
44
- ### Initialize a project
32
+ ### 2. Initialize & Prepare Tasks
45
33
 
46
34
  ```bash
47
35
  cd your-project
48
- cursorflow init --example
49
- ```
50
-
51
- This command:
52
- 1. Creates the `cursorflow.config.js` config file
53
- 2. Creates `_cursorflow/tasks/` and `_cursorflow/logs/` directories
54
- 3. Installs Cursor IDE commands
55
- 4. Generates example tasks when `--example` is provided
56
-
57
- ### Run the example
58
-
59
- ```bash
60
- # Run example tasks
61
- cursorflow run _cursorflow/tasks/example/
62
-
63
- # Monitor from another terminal
64
- cursorflow monitor --watch
65
- ```
66
-
67
- ## 🧪 Testing CursorFlow
68
-
69
- A complete demo project is included for testing with real LLM execution.
70
-
71
- ### Quick Test
72
-
73
- ```bash
74
- # From the CursorFlow repository root
75
- ./test-cursorflow.sh setup # Verify prerequisites
76
- ./test-cursorflow.sh run # Run demo with LLM
77
- ./test-cursorflow.sh watch # Monitor in real-time
78
- ./test-cursorflow.sh clean # Clean up after test
79
- ```
80
-
81
- ### What Gets Tested
82
-
83
- - ✅ Task orchestration with 2 parallel lanes
84
- - ✅ Git worktree creation and management
85
- - ✅ Real LLM execution (Claude Sonnet 4.5 via cursor-agent)
86
- - ✅ Branch creation and commits
87
- - ✅ Real-time monitoring with status updates
88
- - ✅ Complete log capture (conversation + terminal)
89
-
90
- ### Demo Tasks
91
-
92
- 1. **create-utils**: Creates `src/utils.js` with utility functions
93
- 2. **add-tests**: Creates `src/utils.test.js` with simple tests
94
-
95
- Each task runs ~1-2 minutes, demonstrating the full CursorFlow workflow.
96
-
97
- **See**: `test-projects/demo-project/README.md` for detailed documentation.
98
-
99
- ## 📚 Examples
100
-
101
- Ready-to-use examples are included in the `examples/` directory.
102
-
103
- ### Demo Project
104
-
105
- A complete example demonstrating CursorFlow's core features:
106
-
107
- ```bash
108
- # Copy example tasks to your project
109
- cd your-project
110
36
  cursorflow init
111
- cp -r /path/to/cursorflow/examples/demo-project/_cursorflow/tasks/demo-test _cursorflow/tasks/
112
37
 
113
- # Run the demo
114
- cursorflow run _cursorflow/tasks/demo-test/
38
+ # Simple task (single implement task)
39
+ cursorflow prepare FixBug --prompt "Fix the login validation bug in auth.ts"
115
40
 
116
- # Monitor in real-time
117
- cursorflow monitor --watch
118
- ```
119
-
120
- **Includes:**
121
- - 2 parallel tasks with real LLM execution
122
- - Complete documentation and setup instructions
123
- - Expected results and troubleshooting guide
124
-
125
- **See**: `examples/demo-project/README.md` for detailed instructions.
126
-
127
- **Browse more examples**: `examples/README.md`
128
-
129
- ## Cursor IDE Integration
41
+ # Complex feature (plan → implement → test)
42
+ cursorflow prepare AuthSystem --preset complex --prompt "Build user authentication with JWT"
130
43
 
131
- CursorFlow ships custom commands that are available directly inside Cursor IDE.
132
-
133
- ### Install commands
134
-
135
- ```bash
136
- # Installed automatically during init
137
- cursorflow init
138
-
139
- # Or install manually
140
- npx cursorflow-setup
44
+ # Multiple parallel lanes
45
+ cursorflow prepare FullStack --lanes 3 --sequential --preset complex \
46
+ --prompt "Build your layer of the full-stack feature"
141
47
  ```
142
48
 
143
- ### Usage
144
-
145
- Type `/` in Cursor chat and use:
146
-
147
- - `/cursorflow-init` - initialize a project
148
- - `/cursorflow-prepare` - prepare tasks
149
- - `/cursorflow-run` - run orchestration
150
- - `/cursorflow-monitor` - monitor runs
151
- - `/cursorflow-clean` - clean resources
152
- - `/cursorflow-resume` - resume a lane
153
- - `/cursorflow-doctor` - verify environment
154
- - `/cursorflow-signal` - intervene in a lane
155
- - `/cursorflow-review` - configure or check reviews
49
+ ### 3. Validate & Run
156
50
 
157
- ## CLI Commands
158
-
159
- ### Init
160
51
  ```bash
161
- cursorflow init [options]
162
- --example Create example tasks
163
- --with-commands Install Cursor commands (default: true)
164
- --config-only Generate config file only
165
- ```
52
+ # Check for issues before running
53
+ cursorflow doctor --tasks-dir _cursorflow/tasks/2412211530_AuthSystem
166
54
 
167
- ### Prepare tasks
168
- ```bash
169
- cursorflow prepare <feature> [options]
170
- --lanes <number> Number of lanes
171
- --template <path> Template file path
172
- ```
55
+ # Start orchestration
56
+ cursorflow run _cursorflow/tasks/2412211530_AuthSystem
173
57
 
174
- ### Run
175
- ```bash
176
- cursorflow run <tasks-dir> [options]
177
- --dry-run Show the execution plan only
178
- --executor <type> cursor-agent | cloud
58
+ # Open the interactive dashboard
59
+ cursorflow monitor latest
179
60
  ```
180
61
 
181
- ### Monitor
182
- ```bash
183
- cursorflow monitor [run-dir] [options]
184
- --watch Live monitoring
185
- --interval <sec> Refresh interval
186
- ```
62
+ ## 📋 Preset Templates
187
63
 
188
- ### Clean
189
- ```bash
190
- cursorflow clean <type> [options]
191
- branches Clean branches
192
- worktrees Clean worktrees
193
- logs Clean logs
194
- all Clean everything
195
- ```
64
+ CursorFlow provides built-in task templates:
196
65
 
197
- ### Resume
198
- ```bash
199
- cursorflow resume <lane> [options]
200
- --run-dir <path> Specify run directory
201
- --restart Restart from task 1
202
- ```
66
+ | Preset | Tasks | Use Case |
67
+ |--------|-------|----------|
68
+ | `--preset complex` | plan → implement → test | Complex features (saves plan to `_cursorflow/PLAN_lane-{N}.md`) |
69
+ | `--preset simple` | implement → test | Simple changes, bug fixes |
70
+ | `--preset merge` | merge → test | Integration lanes (auto-applied with `--depends-on`) |
71
+ | *(none)* | implement | Quick single task |
203
72
 
204
- ### Doctor
205
73
  ```bash
206
- cursorflow doctor [options]
207
- --tasks-dir <path> Validate specific lane tasks
208
- --json Output in JSON format
209
- ```
74
+ # Complex: Creates plan document that subsequent tasks reference
75
+ cursorflow prepare Feature --preset complex --prompt "Build user dashboard"
210
76
 
211
- ### Signal (Intervention)
212
- ```bash
213
- cursorflow signal <lane> <message>
214
- --run-dir <path> Specify run directory
77
+ # Simple: Just implement and test
78
+ cursorflow prepare BugFix --preset simple --prompt "Fix null pointer in auth.ts"
79
+
80
+ # Single task: Just the prompt
81
+ cursorflow prepare QuickFix --prompt "Update README.md"
215
82
  ```
216
83
 
217
- ## 🚀 Deployment & Updates
84
+ ## 🎮 Dashboard Controls
218
85
 
219
- ### For Maintainers
220
- To release a new version to NPM:
221
- 1. Ensure your working directory is clean on the `main` branch.
222
- 2. Run the release script:
223
- ```bash
224
- ./scripts/release.sh [patch|minor|major]
225
- ```
226
- 3. The script will bump the version, update CHANGELOG, and push a tag to trigger GitHub Actions.
86
+ Within the `cursorflow monitor` dashboard:
87
+ - `↑/↓`: Navigate between lanes or scroll through logs.
88
+ - `→ / Enter`: Enter detailed lane view.
89
+ - `← / Esc`: Go back.
90
+ - `F`: Toggle **Dependency Flow** view.
91
+ - `T`: Open **Live Terminal Streaming**.
92
+ - `I`: **Intervene** (send a message to the agent).
93
+ - `K`: **Kill** the current agent process.
94
+ - `Q`: Quit monitor.
227
95
 
228
- ### For Users
229
- To update to the latest version and refresh IDE commands:
230
- 1. Update the package: `npm install -g @litmers/cursorflow-orchestrator`
231
- 2. Refresh Cursor commands: `cursorflow-setup --force`
232
-
233
- ## Configuration
234
-
235
- ### Config file (cursorflow.config.js)
236
-
237
- ```javascript
238
- module.exports = {
239
- // Directories
240
- tasksDir: '_cursorflow/tasks',
241
- logsDir: '_cursorflow/logs',
242
-
243
- // Git settings
244
- baseBranch: 'main',
245
- branchPrefix: 'feature/',
246
-
247
- // Run settings
248
- executor: 'cursor-agent', // 'cursor-agent' | 'cloud'
249
- pollInterval: 60,
250
-
251
- // Dependency management
252
- allowDependencyChange: false,
253
- lockfileReadOnly: true,
254
-
255
- // Review settings
256
- enableReview: true,
257
- reviewModel: 'sonnet-4.5-thinking',
258
- maxReviewIterations: 3,
259
-
260
- // Default lane settings
261
- defaultLaneConfig: {
262
- devPort: 3001,
263
- autoCreatePr: false,
264
- },
265
-
266
- // Logging
267
- logLevel: 'info',
268
- verboseGit: false,
269
- };
270
- ```
96
+ ## ⚙️ Configuration
271
97
 
272
- ### Task file (JSON)
98
+ ### Task Configuration Schema
273
99
 
274
100
  ```json
275
101
  {
276
- "repository": "https://github.com/your-org/your-repo",
277
102
  "baseBranch": "main",
278
- "branchPrefix": "feature/my-",
279
- "executor": "cursor-agent",
280
- "laneNumber": 1,
281
- "devPort": 3001,
103
+ "branchPrefix": "feature/lane-1-",
104
+ "timeout": 300000,
105
+ "enableIntervention": false,
106
+ "dependsOn": ["01-lane-1"],
282
107
  "enableReview": true,
108
+ "reviewModel": "sonnet-4.5-thinking",
283
109
  "tasks": [
284
110
  {
285
111
  "name": "implement",
286
112
  "model": "sonnet-4.5",
287
- "acceptanceCriteria": [
288
- "No build errors",
289
- "Key features implemented"
290
- ],
291
- "prompt": "Implementation instructions..."
113
+ "prompt": "Implement the user authentication...",
114
+ "acceptanceCriteria": ["Code complete", "Tests pass"]
292
115
  }
293
116
  ]
294
117
  }
295
118
  ```
296
119
 
297
- ## Usage Examples
120
+ ### Key Options
298
121
 
299
- ### Single feature development
122
+ | Option | Type | Default | Description |
123
+ |--------|------|---------|-------------|
124
+ | `timeout` | number | 300000 | Task timeout in milliseconds (5 min) |
125
+ | `enableIntervention` | boolean | false | Enable stdin piping for intervention |
126
+ | `model` | string | "sonnet-4.5" | AI model to use |
127
+ | `dependsOn` | string[] | [] | Lane dependencies |
128
+ | `enableReview` | boolean | true | Enable AI code review |
300
129
 
301
- ```bash
302
- # 1. Prepare tasks
303
- cursorflow prepare AddUserAuth --lanes 1
130
+ ## 🔗 Task Dependencies
304
131
 
305
- # 2. Edit the task JSON
306
- # _cursorflow/tasks/2512191830_AddUserAuth/01-task.json
132
+ Define dependencies between lanes. Dependent lanes wait for parents and auto-merge:
307
133
 
308
- # 3. Run
309
- cursorflow run _cursorflow/tasks/2512191830_AddUserAuth/
134
+ ```bash
135
+ # Create 3 sequential lanes (1 → 2 → 3)
136
+ cursorflow prepare Pipeline --lanes 3 --sequential --preset complex
310
137
 
311
- # 4. Monitor
312
- cursorflow monitor --watch
138
+ # Add a merge lane that depends on multiple lanes
139
+ cursorflow prepare --add-lane _cursorflow/tasks/2412211530_Pipeline \
140
+ --depends-on "01-lane-1,02-lane-2"
313
141
  ```
314
142
 
315
- ### Multi-domain parallel development
143
+ ## 🩺 Pre-flight Checks
316
144
 
317
- ```bash
318
- # 1. Prepare tasks (5 lanes)
319
- cursorflow prepare AdminDashboard --lanes 5
320
-
321
- # 2. Configure each lane
322
- # 01-dashboard.json, 02-clients.json, ...
145
+ Doctor validates your configuration before running:
323
146
 
324
- # 3. Run in parallel
325
- cursorflow run _cursorflow/tasks/2512191830_AdminDashboard/
147
+ ```bash
148
+ cursorflow doctor --tasks-dir _cursorflow/tasks/my-feature
326
149
 
327
- # 4. Live monitor
328
- cursorflow monitor --watch --interval 5
150
+ # Checks performed:
151
+ # Git repository and remote
152
+ # ✓ Branch prefix collisions
153
+ # ✓ Task structure validation
154
+ # ✓ Circular dependency detection (DAG)
155
+ # ✓ Existing branch conflicts
329
156
  ```
330
157
 
331
- ## Architecture
158
+ ## 📚 Commands Reference
332
159
 
333
- ```
334
- ┌─────────────────────────────────────────────────────────┐
335
- CursorFlow CLI │
336
- └──────────────────┬──────────────────────────────────────┘
337
-
338
- ┌──────────┴──────────┐
339
- │ │
340
- ┌────▼────┐ ┌────▼────┐
341
- Config │ │ Core │
342
- System │ │ Engine │
343
- └────┬────┘ └────┬────┘
344
- │ │
345
- │ ┌──────────┼──────────┐
346
- │ │ │ │
347
- ┌────▼────┐ ┌─▼──┐ ┌────▼────┐ ┌─▼─────┐
348
- │ Git │ │Run │ │ Monitor │ │Review │
349
- │ Utils │ │ner │ │ │ │ │
350
- └─────────┘ └─┬──┘ └─────────┘ └───────┘
351
-
352
- ┌────────┼────────┐
353
- │ │ │
354
- ┌────▼───┐ ┌─▼──────┐ │
355
- │Worktree│ │ Cursor │ │
356
- │ │ │ Agent │ │
357
- └────────┘ └────────┘ │
358
-
359
- ┌────▼────┐
360
- │ Logs │
361
- │ State │
362
- └─────────┘
363
- ```
160
+ | Command | Description |
161
+ |---------|-------------|
162
+ | `cursorflow init` | Initialize CursorFlow in project |
163
+ | `cursorflow prepare` | Generate task files (with presets) |
164
+ | `cursorflow doctor` | Validate environment and tasks |
165
+ | `cursorflow run` | Execute task orchestration |
166
+ | `cursorflow monitor` | Interactive dashboard |
167
+ | `cursorflow resume` | Resume interrupted lane |
168
+ | `cursorflow clean` | Clean branches/worktrees |
169
+ | `cursorflow signal` | Send message to running agent |
170
+ | `cursorflow models` | List available AI models |
364
171
 
365
- ## Documentation
172
+ ## 📖 Documentation
366
173
 
367
- - [📖 User Guide](docs/GUIDE.md) - Detailed usage instructions
368
- - [📋 API Reference](docs/API.md) - CLI and config API
369
- - [🎨 Command Guide](docs/COMMANDS.md) - Cursor command usage
370
- - [🏗️ Architecture](docs/ARCHITECTURE.md) - System structure
371
- - [🔧 Troubleshooting](docs/TROUBLESHOOTING.md) - Issue resolution
174
+ - [📋 Prepare Command](commands/cursorflow-prepare.md) - Task generation with presets
175
+ - [🏃 Run Command](commands/cursorflow-run.md) - Execution options
176
+ - [🩺 Doctor Command](commands/cursorflow-doctor.md) - Validation details
177
+ - [📊 Monitor Command](commands/cursorflow-monitor.md) - Dashboard usage
372
178
  - [📦 Examples](examples/) - Practical examples
373
179
 
374
- ## Roadmap
375
-
376
- - [ ] v1.0: Core features and base docs
377
- - [ ] v1.1: Enhanced review system
378
- - [ ] v1.2: Improved cloud execution
379
- - [ ] v1.3: Plugin system
380
- - [ ] v2.0: GUI tool
381
-
382
- ## Contributing
180
+ ## 🚀 Deployment & Updates
383
181
 
384
- Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
182
+ ### For Maintainers
183
+ To release a new version to NPM:
184
+ 1. Run the release script: `./scripts/release.sh [patch|minor|major]`
185
+ 2. The script handles versioning, changelog, and triggers GitHub Actions.
385
186
 
386
- ### Set up dev environment
187
+ ### For Users
188
+ Update and refresh commands:
387
189
  ```bash
388
- git clone https://github.com/eungjin-cigro/cursorflow.git
389
- cd cursorflow
390
- pnpm install
391
- pnpm test
190
+ npm install -g @litmers/cursorflow-orchestrator
191
+ cursorflow-setup --force
392
192
  ```
393
193
 
394
194
  ## License
395
195
 
396
196
  MIT © Eugene Jin
397
197
 
398
- ## Support
399
-
400
- - 🐛 [Issue Tracker](https://github.com/eungjin-cigro/cursorflow/issues)
401
- - 💬 [Discussions](https://github.com/eungjin-cigro/cursorflow/discussions)
402
- - 📧 Email: eungjin.cigro@gmail.com
403
-
404
198
  ---
405
199
 
406
200
  **Made with ❤️ for Cursor IDE users**