@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.
- package/CHANGELOG.md +55 -0
- package/README.md +113 -319
- package/commands/cursorflow-clean.md +24 -135
- package/commands/cursorflow-doctor.md +74 -18
- package/commands/cursorflow-init.md +33 -50
- package/commands/cursorflow-models.md +51 -0
- package/commands/cursorflow-monitor.md +56 -118
- package/commands/cursorflow-prepare.md +410 -108
- package/commands/cursorflow-resume.md +51 -148
- package/commands/cursorflow-review.md +38 -202
- package/commands/cursorflow-run.md +208 -86
- package/commands/cursorflow-signal.md +38 -12
- package/dist/cli/clean.d.ts +3 -1
- package/dist/cli/clean.js +145 -8
- package/dist/cli/clean.js.map +1 -1
- package/dist/cli/doctor.js +14 -1
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/index.js +32 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.js +5 -4
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/models.d.ts +7 -0
- package/dist/cli/models.js +104 -0
- package/dist/cli/models.js.map +1 -0
- package/dist/cli/monitor.js +56 -1
- package/dist/cli/monitor.js.map +1 -1
- package/dist/cli/prepare.d.ts +7 -0
- package/dist/cli/prepare.js +748 -0
- package/dist/cli/prepare.js.map +1 -0
- package/dist/cli/resume.js +56 -0
- package/dist/cli/resume.js.map +1 -1
- package/dist/cli/run.js +30 -1
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/signal.js +18 -0
- package/dist/cli/signal.js.map +1 -1
- package/dist/core/runner.d.ts +9 -1
- package/dist/core/runner.js +139 -23
- package/dist/core/runner.js.map +1 -1
- package/dist/utils/cursor-agent.d.ts +4 -0
- package/dist/utils/cursor-agent.js +58 -10
- package/dist/utils/cursor-agent.js.map +1 -1
- package/dist/utils/doctor.d.ts +10 -0
- package/dist/utils/doctor.js +581 -1
- package/dist/utils/doctor.js.map +1 -1
- package/dist/utils/types.d.ts +11 -0
- package/examples/README.md +114 -59
- package/examples/demo-project/README.md +61 -79
- package/examples/demo-project/_cursorflow/tasks/demo-test/01-create-utils.json +17 -6
- package/examples/demo-project/_cursorflow/tasks/demo-test/02-add-tests.json +17 -6
- package/examples/demo-project/_cursorflow/tasks/demo-test/README.md +66 -25
- package/package.json +1 -1
- package/scripts/patches/test-cursor-agent.js +203 -0
- package/src/cli/clean.ts +156 -9
- package/src/cli/doctor.ts +18 -2
- package/src/cli/index.ts +33 -21
- package/src/cli/init.ts +6 -4
- package/src/cli/models.ts +83 -0
- package/src/cli/monitor.ts +60 -1
- package/src/cli/prepare.ts +844 -0
- package/src/cli/resume.ts +66 -0
- package/src/cli/run.ts +36 -2
- package/src/cli/signal.ts +22 -0
- package/src/core/runner.ts +164 -23
- package/src/utils/cursor-agent.ts +62 -10
- package/src/utils/doctor.ts +633 -5
- 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
|
[](https://opensource.org/licenses/MIT)
|
|
10
10
|
[](https://nodejs.org/)
|
|
11
11
|
|
|
12
|
-
## Key Features
|
|
12
|
+
## 🚀 Key Features
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
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
|
-
###
|
|
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
|
-
#
|
|
114
|
-
cursorflow
|
|
38
|
+
# Simple task (single implement task)
|
|
39
|
+
cursorflow prepare FixBug --prompt "Fix the login validation bug in auth.ts"
|
|
115
40
|
|
|
116
|
-
#
|
|
117
|
-
cursorflow
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
162
|
-
|
|
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
|
-
|
|
168
|
-
|
|
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
|
-
|
|
175
|
-
|
|
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
|
-
|
|
182
|
-
```bash
|
|
183
|
-
cursorflow monitor [run-dir] [options]
|
|
184
|
-
--watch Live monitoring
|
|
185
|
-
--interval <sec> Refresh interval
|
|
186
|
-
```
|
|
62
|
+
## 📋 Preset Templates
|
|
187
63
|
|
|
188
|
-
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
|
|
207
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
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
|
-
##
|
|
84
|
+
## 🎮 Dashboard Controls
|
|
218
85
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
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
|
|
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/
|
|
279
|
-
"
|
|
280
|
-
"
|
|
281
|
-
"
|
|
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
|
-
"
|
|
288
|
-
|
|
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
|
-
|
|
120
|
+
### Key Options
|
|
298
121
|
|
|
299
|
-
|
|
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
|
-
|
|
302
|
-
# 1. Prepare tasks
|
|
303
|
-
cursorflow prepare AddUserAuth --lanes 1
|
|
130
|
+
## 🔗 Task Dependencies
|
|
304
131
|
|
|
305
|
-
|
|
306
|
-
# _cursorflow/tasks/2512191830_AddUserAuth/01-task.json
|
|
132
|
+
Define dependencies between lanes. Dependent lanes wait for parents and auto-merge:
|
|
307
133
|
|
|
308
|
-
|
|
309
|
-
|
|
134
|
+
```bash
|
|
135
|
+
# Create 3 sequential lanes (1 → 2 → 3)
|
|
136
|
+
cursorflow prepare Pipeline --lanes 3 --sequential --preset complex
|
|
310
137
|
|
|
311
|
-
#
|
|
312
|
-
cursorflow
|
|
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
|
-
|
|
143
|
+
## 🩺 Pre-flight Checks
|
|
316
144
|
|
|
317
|
-
|
|
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
|
-
|
|
325
|
-
cursorflow
|
|
147
|
+
```bash
|
|
148
|
+
cursorflow doctor --tasks-dir _cursorflow/tasks/my-feature
|
|
326
149
|
|
|
327
|
-
#
|
|
328
|
-
|
|
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
|
-
##
|
|
158
|
+
## 📚 Commands Reference
|
|
332
159
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
- [
|
|
368
|
-
- [
|
|
369
|
-
- [
|
|
370
|
-
- [
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
###
|
|
187
|
+
### For Users
|
|
188
|
+
Update and refresh commands:
|
|
387
189
|
```bash
|
|
388
|
-
|
|
389
|
-
|
|
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**
|