@litmers/cursorflow-orchestrator 0.1.3 → 0.1.6

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 (90) hide show
  1. package/CHANGELOG.md +17 -7
  2. package/README.md +33 -2
  3. package/commands/cursorflow-doctor.md +24 -0
  4. package/commands/cursorflow-signal.md +19 -0
  5. package/dist/cli/clean.d.ts +5 -0
  6. package/dist/cli/clean.js +57 -0
  7. package/dist/cli/clean.js.map +1 -0
  8. package/dist/cli/doctor.d.ts +15 -0
  9. package/dist/cli/doctor.js +139 -0
  10. package/dist/cli/doctor.js.map +1 -0
  11. package/dist/cli/index.d.ts +6 -0
  12. package/dist/cli/index.js +125 -0
  13. package/dist/cli/index.js.map +1 -0
  14. package/dist/cli/init.d.ts +7 -0
  15. package/dist/cli/init.js +302 -0
  16. package/dist/cli/init.js.map +1 -0
  17. package/dist/cli/monitor.d.ts +8 -0
  18. package/dist/cli/monitor.js +210 -0
  19. package/dist/cli/monitor.js.map +1 -0
  20. package/dist/cli/resume.d.ts +5 -0
  21. package/dist/cli/resume.js +128 -0
  22. package/dist/cli/resume.js.map +1 -0
  23. package/dist/cli/run.d.ts +5 -0
  24. package/dist/cli/run.js +128 -0
  25. package/dist/cli/run.js.map +1 -0
  26. package/dist/cli/setup-commands.d.ts +23 -0
  27. package/dist/cli/setup-commands.js +234 -0
  28. package/dist/cli/setup-commands.js.map +1 -0
  29. package/dist/cli/signal.d.ts +7 -0
  30. package/dist/cli/signal.js +99 -0
  31. package/dist/cli/signal.js.map +1 -0
  32. package/dist/core/orchestrator.d.ts +47 -0
  33. package/dist/core/orchestrator.js +192 -0
  34. package/dist/core/orchestrator.js.map +1 -0
  35. package/dist/core/reviewer.d.ts +60 -0
  36. package/dist/core/reviewer.js +239 -0
  37. package/dist/core/reviewer.js.map +1 -0
  38. package/dist/core/runner.d.ts +51 -0
  39. package/dist/core/runner.js +499 -0
  40. package/dist/core/runner.js.map +1 -0
  41. package/dist/utils/config.d.ts +31 -0
  42. package/dist/utils/config.js +198 -0
  43. package/dist/utils/config.js.map +1 -0
  44. package/dist/utils/cursor-agent.d.ts +61 -0
  45. package/dist/utils/cursor-agent.js +263 -0
  46. package/dist/utils/cursor-agent.js.map +1 -0
  47. package/dist/utils/doctor.d.ts +63 -0
  48. package/dist/utils/doctor.js +280 -0
  49. package/dist/utils/doctor.js.map +1 -0
  50. package/dist/utils/git.d.ts +131 -0
  51. package/dist/utils/git.js +272 -0
  52. package/dist/utils/git.js.map +1 -0
  53. package/dist/utils/logger.d.ts +68 -0
  54. package/dist/utils/logger.js +158 -0
  55. package/dist/utils/logger.js.map +1 -0
  56. package/dist/utils/state.d.ts +65 -0
  57. package/dist/utils/state.js +216 -0
  58. package/dist/utils/state.js.map +1 -0
  59. package/dist/utils/types.d.ts +118 -0
  60. package/dist/utils/types.js +6 -0
  61. package/dist/utils/types.js.map +1 -0
  62. package/examples/README.md +155 -0
  63. package/examples/demo-project/README.md +262 -0
  64. package/examples/demo-project/_cursorflow/tasks/demo-test/01-create-utils.json +18 -0
  65. package/examples/demo-project/_cursorflow/tasks/demo-test/02-add-tests.json +18 -0
  66. package/examples/demo-project/_cursorflow/tasks/demo-test/README.md +109 -0
  67. package/package.json +71 -61
  68. package/scripts/ai-security-check.js +11 -4
  69. package/scripts/local-security-gate.sh +76 -0
  70. package/src/cli/{clean.js → clean.ts} +11 -5
  71. package/src/cli/doctor.ts +127 -0
  72. package/src/cli/{index.js → index.ts} +27 -16
  73. package/src/cli/{init.js → init.ts} +26 -18
  74. package/src/cli/{monitor.js → monitor.ts} +57 -44
  75. package/src/cli/resume.ts +119 -0
  76. package/src/cli/run.ts +109 -0
  77. package/src/cli/{setup-commands.js → setup-commands.ts} +38 -18
  78. package/src/cli/signal.ts +89 -0
  79. package/src/core/{orchestrator.js → orchestrator.ts} +44 -26
  80. package/src/core/{reviewer.js → reviewer.ts} +36 -29
  81. package/src/core/{runner.js → runner.ts} +125 -76
  82. package/src/utils/{config.js → config.ts} +17 -25
  83. package/src/utils/{cursor-agent.js → cursor-agent.ts} +38 -47
  84. package/src/utils/doctor.ts +312 -0
  85. package/src/utils/{git.js → git.ts} +70 -56
  86. package/src/utils/{logger.js → logger.ts} +170 -178
  87. package/src/utils/{state.js → state.ts} +30 -38
  88. package/src/utils/types.ts +134 -0
  89. package/src/cli/resume.js +0 -31
  90. package/src/cli/run.js +0 -51
@@ -0,0 +1,155 @@
1
+ # CursorFlow Examples
2
+
3
+ This directory contains example projects and configurations to help you get started with CursorFlow.
4
+
5
+ ## 📁 Available Examples
6
+
7
+ ### 1. Demo Project (`demo-project/`)
8
+
9
+ A complete demonstration of CursorFlow's core features.
10
+
11
+ **What it includes:**
12
+ - 2 parallel tasks (create utils + add tests)
13
+ - Real LLM execution with Claude 3.5 Sonnet
14
+ - Complete documentation
15
+ - Expected time: ~2-4 minutes
16
+
17
+ **Best for:**
18
+ - First-time users
19
+ - Understanding the basics
20
+ - Testing your setup
21
+
22
+ **Quick start:**
23
+ ```bash
24
+ # See demo-project/README.md for detailed instructions
25
+ cd your-project
26
+ cursorflow init
27
+ cp -r path/to/cursorflow/examples/demo-project/_cursorflow/tasks/demo-test _cursorflow/tasks/
28
+ cursorflow run _cursorflow/tasks/demo-test/
29
+ ```
30
+
31
+ ## 🎯 How to Use Examples
32
+
33
+ ### Option 1: Copy to Your Project
34
+
35
+ 1. Initialize CursorFlow in your project:
36
+ ```bash
37
+ cd your-project
38
+ cursorflow init
39
+ ```
40
+
41
+ 2. Copy example tasks:
42
+ ```bash
43
+ cp -r examples/demo-project/_cursorflow/tasks/demo-test _cursorflow/tasks/
44
+ ```
45
+
46
+ 3. Run the example:
47
+ ```bash
48
+ cursorflow run _cursorflow/tasks/demo-test/
49
+ ```
50
+
51
+ ### Option 2: Use as Reference
52
+
53
+ Browse the example files to understand:
54
+ - Task JSON structure
55
+ - Prompt engineering best practices
56
+ - Configuration options
57
+ - Expected outcomes
58
+
59
+ ## 📚 Example Structure
60
+
61
+ Each example includes:
62
+
63
+ - **Task configurations** (`*.json`) - Defines what the AI will do
64
+ - **README.md** - Detailed instructions and explanations
65
+ - **Expected results** - What you should see after running
66
+
67
+ ## 🔍 What's in a Task File?
68
+
69
+ ```json
70
+ {
71
+ "baseBranch": "main",
72
+ "branchPrefix": "cursorflow/demo-",
73
+ "executor": "cursor-agent",
74
+ "dependencyPolicy": {
75
+ "allowDependencyChange": false,
76
+ "lockfileReadOnly": true
77
+ },
78
+ "tasks": [
79
+ {
80
+ "name": "task-name",
81
+ "model": "claude-3.5-sonnet",
82
+ "prompt": "Detailed instructions for the AI..."
83
+ }
84
+ ]
85
+ }
86
+ ```
87
+
88
+ ## 🚀 Prerequisites
89
+
90
+ Before running examples:
91
+
92
+ 1. **Install CursorFlow**
93
+ ```bash
94
+ npm install -g @litmers/cursorflow-orchestrator
95
+ ```
96
+
97
+ 2. **Install cursor-agent**
98
+ ```bash
99
+ npm install -g @cursor/agent
100
+ ```
101
+
102
+ 3. **Authenticate Cursor**
103
+ - Open Cursor IDE
104
+ - Sign in to your account
105
+ - Verify AI features work
106
+
107
+ 4. **Check authentication** (optional)
108
+ ```bash
109
+ node test-auth.js
110
+ ```
111
+
112
+ ## 💡 Tips
113
+
114
+ - **Start with demo-project** - It's the simplest example
115
+ - **Monitor execution** - Use `cursorflow monitor --watch` to see real-time progress
116
+ - **Check logs** - Inspect `_cursorflow/logs/` after execution
117
+ - **Experiment** - Modify prompts to test different scenarios
118
+ - **Clean up** - Remove worktrees and branches after testing
119
+
120
+ ## 📖 Learn More
121
+
122
+ - **Main Documentation**: [README.md](../README.md)
123
+ - **Configuration Guide**: Check `cursorflow.config.js` in your project
124
+ - **Task Format**: See individual example task files
125
+ - **Monitoring**: [Monitor Command](../commands/cursorflow-monitor.md)
126
+
127
+ ## 🐛 Troubleshooting
128
+
129
+ If you encounter issues:
130
+
131
+ 1. Check prerequisites are installed
132
+ 2. Verify Cursor authentication
133
+ 3. Ensure you're in a Git repository
134
+ 4. Check you have at least one commit
135
+ 5. See example README for specific troubleshooting
136
+
137
+ ## 🤝 Contributing Examples
138
+
139
+ Have a useful example? Contributions are welcome!
140
+
141
+ Please include:
142
+ - Complete task configurations
143
+ - Detailed README
144
+ - Expected results documentation
145
+ - Troubleshooting tips
146
+
147
+ ## 📝 Notes
148
+
149
+ - Examples use real LLM API calls
150
+ - Small API usage will occur
151
+ - Internet connection required
152
+ - Make sure you have Cursor subscription active
153
+
154
+ Happy learning! 🎉
155
+
@@ -0,0 +1,262 @@
1
+ # CursorFlow Demo Project
2
+
3
+ A complete example project demonstrating CursorFlow's capabilities with real LLM execution.
4
+
5
+ ## 🎯 Purpose
6
+
7
+ This demo project shows how to use CursorFlow to orchestrate parallel AI tasks, including:
8
+ - Task creation and configuration
9
+ - Git worktree management
10
+ - LLM agent execution
11
+ - Real-time monitoring
12
+ - Complete log capture
13
+
14
+ ## 📦 Setup
15
+
16
+ ### 1. Prerequisites
17
+
18
+ - **Node.js** >= 18.0.0
19
+ - **Git** with worktree support
20
+ - **cursor-agent** CLI: `npm install -g @cursor/agent`
21
+ - **Cursor IDE** with valid authentication
22
+
23
+ ### 2. Initialize Your Project
24
+
25
+ ```bash
26
+ # Create a new project
27
+ mkdir my-cursorflow-test
28
+ cd my-cursorflow-test
29
+ git init
30
+ git config user.email "you@example.com"
31
+ git config user.name "Your Name"
32
+
33
+ # Create initial files
34
+ echo '{"name":"my-test","version":"1.0.0"}' > package.json
35
+ echo "# My Test Project" > README.md
36
+ git add .
37
+ git commit -m "Initial commit"
38
+
39
+ # Rename branch to main (if needed)
40
+ git branch -m main
41
+ ```
42
+
43
+ ### 3. Initialize CursorFlow
44
+
45
+ ```bash
46
+ # Install cursorflow globally (if not already)
47
+ npm install -g @litmers/cursorflow-orchestrator
48
+
49
+ # Initialize in your project
50
+ cursorflow init
51
+ ```
52
+
53
+ ### 4. Copy Demo Tasks
54
+
55
+ Copy the `_cursorflow/tasks/demo-test/` directory from this example to your project:
56
+
57
+ ```bash
58
+ # From the cursorflow repository
59
+ cp -r examples/demo-project/_cursorflow/tasks/demo-test your-project/_cursorflow/tasks/
60
+ ```
61
+
62
+ ## 🚀 Running the Demo
63
+
64
+ ### Run the Tasks
65
+
66
+ ```bash
67
+ cursorflow run _cursorflow/tasks/demo-test/
68
+ ```
69
+
70
+ ### Monitor in Real-Time
71
+
72
+ In a separate terminal:
73
+
74
+ ```bash
75
+ # Single check
76
+ cursorflow monitor
77
+
78
+ # Watch mode (updates every 2 seconds)
79
+ cursorflow monitor --watch --interval 2
80
+ ```
81
+
82
+ ## 📋 Demo Tasks
83
+
84
+ This demo includes 2 tasks that run in parallel:
85
+
86
+ ### Task 1: Create Utils (`01-create-utils.json`)
87
+ - **Goal**: Create `src/utils.js` with utility functions
88
+ - **Functions**: capitalize, sum, unique
89
+ - **Model**: Sonnet 4.5
90
+ - **Time**: ~1-2 minutes
91
+
92
+ ### Task 2: Add Tests (`02-add-tests.json`)
93
+ - **Goal**: Create `src/utils.test.js` with simple tests
94
+ - **Tests**: Manual console.log tests for all utils
95
+ - **Model**: Sonnet 4.5
96
+ - **Time**: ~1-2 minutes
97
+
98
+ ## 📊 Expected Results
99
+
100
+ After completion, you'll see:
101
+
102
+ ### 1. Source Files
103
+ ```
104
+ src/
105
+ ├── utils.js # Created by Task 1
106
+ └── utils.test.js # Created by Task 2
107
+ ```
108
+
109
+ ### 2. Git Branches
110
+ ```bash
111
+ git branch | grep cursorflow
112
+ # cursorflow/demo-XXXXX--01-create-utils
113
+ # cursorflow/demo-XXXXX--02-add-tests
114
+ ```
115
+
116
+ ### 3. Logs
117
+ ```
118
+ _cursorflow/logs/runs/run-XXXXX/
119
+ └── lanes/
120
+ ├── 01-create-utils/
121
+ │ ├── state.json
122
+ │ ├── conversation.jsonl
123
+ │ └── terminal.log
124
+ └── 02-add-tests/
125
+ ├── state.json
126
+ ├── conversation.jsonl
127
+ └── terminal.log
128
+ ```
129
+
130
+ ### 4. Monitor Output
131
+ ```
132
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
133
+ 📊 Run: run-1234567890123
134
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
135
+
136
+ Lane Status Progress Tasks
137
+ ─────────────── ──────────────── ──────── ──────────
138
+ 01-create-utils ✅ completed 100% 1/1
139
+ 02-add-tests ✅ completed 100% 1/1
140
+ ```
141
+
142
+ ## 🔍 Inspecting Results
143
+
144
+ ### View Conversation Logs
145
+ ```bash
146
+ cat _cursorflow/logs/runs/run-*/lanes/01-create-utils/conversation.jsonl
147
+ ```
148
+
149
+ ### View Terminal Output
150
+ ```bash
151
+ cat _cursorflow/logs/runs/run-*/lanes/01-create-utils/terminal.log
152
+ ```
153
+
154
+ ### View Lane State
155
+ ```bash
156
+ cat _cursorflow/logs/runs/run-*/lanes/01-create-utils/state.json
157
+ ```
158
+
159
+ ### View Branch Changes
160
+ ```bash
161
+ # List branches
162
+ git branch | grep cursorflow
163
+
164
+ # View commits
165
+ git log cursorflow/demo-XXXXX--01-create-utils
166
+
167
+ # View diff
168
+ git diff main cursorflow/demo-XXXXX--01-create-utils
169
+ ```
170
+
171
+ ## 🧹 Cleanup
172
+
173
+ After testing, clean up the worktrees and branches:
174
+
175
+ ```bash
176
+ # Remove worktrees
177
+ git worktree list | grep cursorflow | awk '{print $1}' | xargs -I {} git worktree remove {} --force
178
+
179
+ # Delete branches
180
+ git branch | grep cursorflow | xargs -I {} git branch -D {}
181
+ ```
182
+
183
+ Or use the clean command (if available):
184
+
185
+ ```bash
186
+ cursorflow clean branches --all
187
+ cursorflow clean worktrees --all
188
+ ```
189
+
190
+ ## 🐛 Troubleshooting
191
+
192
+ ### Authentication Failed
193
+ ```
194
+ Error: Cursor authentication failed
195
+ ```
196
+
197
+ **Solution**:
198
+ 1. Open Cursor IDE
199
+ 2. Sign in to your account
200
+ 3. Verify AI features work
201
+ 4. Run `node test-auth.js` to check authentication
202
+
203
+ ### cursor-agent Not Found
204
+ ```
205
+ Error: cursor-agent CLI not found
206
+ ```
207
+
208
+ **Solution**:
209
+ ```bash
210
+ npm install -g @cursor/agent
211
+ ```
212
+
213
+ ### Timeout Errors
214
+ ```
215
+ Error: cursor-agent timed out
216
+ ```
217
+
218
+ **Solution**:
219
+ - Check internet connection
220
+ - Verify Cursor IDE is signed in
221
+ - Check if firewall/VPN is blocking
222
+
223
+ ### Worktree Creation Failed
224
+ ```
225
+ Error: failed to create worktree
226
+ ```
227
+
228
+ **Solution**:
229
+ - Ensure you have at least one commit: `git log`
230
+ - Check you're on the main branch: `git branch`
231
+
232
+ ## 📖 Learn More
233
+
234
+ - **CursorFlow Documentation**: [Main README](../../README.md)
235
+ - **Task Configuration**: See task JSON files for structure
236
+ - **Configuration Options**: Check `cursorflow.config.js`
237
+
238
+ ## 💡 Next Steps
239
+
240
+ After running this demo:
241
+
242
+ 1. **Examine the logs** to understand execution flow
243
+ 2. **Check the branches** to see what the LLM created
244
+ 3. **Modify prompts** to test different scenarios
245
+ 4. **Create your own tasks** for real projects
246
+ 5. **Explore parallel execution** with more complex workflows
247
+
248
+ ## ⏱️ Timing
249
+
250
+ - Setup: ~5 minutes
251
+ - Task execution: ~2-4 minutes
252
+ - Total: ~10 minutes
253
+
254
+ ## ⚠️ Notes
255
+
256
+ - Real LLM API calls will be made
257
+ - Small API usage will occur (~2 requests)
258
+ - Internet connection required
259
+ - Cursor authentication required
260
+
261
+ Happy testing! 🚀
262
+
@@ -0,0 +1,18 @@
1
+ {
2
+ "baseBranch": "main",
3
+ "branchPrefix": "cursorflow/demo-",
4
+ "executor": "cursor-agent",
5
+ "autoCreatePr": false,
6
+ "pollInterval": 10,
7
+ "dependencyPolicy": {
8
+ "allowDependencyChange": false,
9
+ "lockfileReadOnly": true
10
+ },
11
+ "tasks": [
12
+ {
13
+ "name": "create-utils",
14
+ "model": "sonnet-4.5",
15
+ "prompt": "# Task: Create a simple utility module\n\n## Goal\nCreate a `src/utils.js` file with basic utility functions.\n\n## Requirements\n1. Create `src/` directory if it doesn't exist\n2. Create `src/utils.js` with the following functions:\n - `capitalize(str)`: Capitalizes the first letter of a string\n - `sum(arr)`: Returns the sum of an array of numbers\n - `unique(arr)`: Returns unique elements from an array\n\n## Steps\n1. Create the src directory\n2. Write the utils.js file with proper JSDoc comments\n3. Add module.exports at the end\n4. Commit with message: \"feat: add utility functions\"\n\n## Important\n- Use modern JavaScript (ES6+)\n- Add JSDoc comments for each function\n- Make sure all functions are exported\n"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "baseBranch": "main",
3
+ "branchPrefix": "cursorflow/demo-",
4
+ "executor": "cursor-agent",
5
+ "autoCreatePr": false,
6
+ "pollInterval": 10,
7
+ "dependencyPolicy": {
8
+ "allowDependencyChange": false,
9
+ "lockfileReadOnly": true
10
+ },
11
+ "tasks": [
12
+ {
13
+ "name": "add-tests",
14
+ "model": "sonnet-4.5",
15
+ "prompt": "# Task: Add simple tests for utility functions\n\n## Goal\nCreate a `src/utils.test.js` file with basic tests.\n\n## Requirements\n1. Create `src/utils.test.js`\n2. Add simple manual tests (no testing framework needed)\n3. Test all three utility functions:\n - Test `capitalize()` with a few examples\n - Test `sum()` with different arrays\n - Test `unique()` with arrays containing duplicates\n\n## Steps\n1. Create the test file\n2. Import the utils module\n3. Write simple console.log tests that show expected vs actual\n4. Add a success message at the end if all tests pass\n5. Commit with message: \"test: add basic tests for utils\"\n\n## Example Format\n```javascript\nconst utils = require('./utils');\n\nconsole.log('Testing capitalize...');\nconst result1 = utils.capitalize('hello');\nconsole.log('Expected: Hello, Got:', result1);\nconsole.log(result1 === 'Hello' ? '✓ Pass' : '✗ Fail');\n```\n"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,109 @@
1
+ # CursorFlow Demo Test
2
+
3
+ This directory contains test tasks for demonstrating CursorFlow with real LLM execution.
4
+
5
+ ## Tasks Overview
6
+
7
+ ### 01-create-utils.json
8
+ Creates a utility module with basic functions:
9
+ - capitalize(str)
10
+ - sum(arr)
11
+ - unique(arr)
12
+
13
+ **Model**: sonnet-4.5
14
+ **Estimated time**: 1-2 minutes
15
+
16
+ ### 02-add-tests.json
17
+ Adds simple tests for the utility functions without requiring any testing framework.
18
+
19
+ **Model**: sonnet-4.5
20
+ **Estimated time**: 1-2 minutes
21
+
22
+ ## Running the Demo
23
+
24
+ ### Prerequisites
25
+ - cursor-agent CLI installed (`npm install -g @cursor/agent`)
26
+ - Valid Cursor API key configured
27
+
28
+ ### Run the test
29
+
30
+ ```bash
31
+ # From your project directory (after cursorflow init)
32
+ cursorflow run _cursorflow/tasks/demo-test/
33
+ ```
34
+
35
+ ### Monitor execution
36
+
37
+ In a separate terminal:
38
+ ```bash
39
+ # Watch mode (updates every 2 seconds)
40
+ cursorflow monitor --watch --interval 2
41
+ ```
42
+
43
+ ### Check results
44
+
45
+ After completion:
46
+ ```bash
47
+ # View the logs
48
+ ls -la _cursorflow/logs/runs/
49
+
50
+ # Check the latest run
51
+ cursorflow monitor
52
+ ```
53
+
54
+ ## What to Expect
55
+
56
+ 1. **Orchestrator** will create 2 lanes (one per task)
57
+ 2. **Each lane** will:
58
+ - Create a Git worktree
59
+ - Create a branch (`cursorflow/demo-XXXXX--01-create-utils`, etc.)
60
+ - Execute the LLM agent with the prompt
61
+ - Commit changes
62
+ - Push the branch
63
+ 3. **Monitor** will show:
64
+ - Lane status (running, completed, failed)
65
+ - Progress (current task / total tasks)
66
+ - Real-time updates in watch mode
67
+
68
+ ## Expected Output Structure
69
+
70
+ ```
71
+ _cursorflow/
72
+ ├── logs/
73
+ │ └── runs/
74
+ │ └── run-XXXXX/
75
+ │ └── lanes/
76
+ │ ├── 01-create-utils/
77
+ │ │ ├── state.json
78
+ │ │ ├── conversation.jsonl
79
+ │ │ └── terminal.log
80
+ │ └── 02-add-tests/
81
+ │ ├── state.json
82
+ │ ├── conversation.jsonl
83
+ │ └── terminal.log
84
+ └── tasks/
85
+ └── demo-test/
86
+ ├── 01-create-utils.json
87
+ ├── 02-add-tests.json
88
+ └── README.md (this file)
89
+ ```
90
+
91
+ ## Troubleshooting
92
+
93
+ ### If cursor-agent is not found
94
+ ```bash
95
+ npm install -g @cursor/agent
96
+ ```
97
+
98
+ ### If API key is missing
99
+ Check your Cursor IDE settings and ensure you're authenticated.
100
+
101
+ ### If worktree creation fails
102
+ Make sure you're in a Git repository with at least one commit.
103
+
104
+ ## Notes
105
+
106
+ - These tasks are designed to be simple and quick
107
+ - No external dependencies required
108
+ - All operations are Git-safe (branches only, no main changes)
109
+ - Logs are preserved for inspection
package/package.json CHANGED
@@ -1,61 +1,71 @@
1
- {
2
- "name": "@litmers/cursorflow-orchestrator",
3
- "version": "0.1.3",
4
- "description": "Git worktree-based parallel AI agent orchestration system for Cursor",
5
- "main": "src/cli/index.js",
6
- "bin": {
7
- "cursorflow": "src/cli/index.js",
8
- "cursorflow-setup": "src/cli/setup-commands.js"
9
- },
10
- "scripts": {
11
- "postinstall": "node scripts/postinstall.js",
12
- "prepublishOnly": "npm run validate",
13
- "validate": "npm pack --dry-run",
14
- "release": "scripts/release.sh",
15
- "release:patch": "scripts/release.sh patch",
16
- "release:minor": "scripts/release.sh minor",
17
- "release:major": "scripts/release.sh major",
18
- "security:check": "npm audit && node scripts/ai-security-check.js",
19
- "security:audit": "npm audit",
20
- "security:audit:fix": "npm audit fix",
21
- "security:setup": "scripts/setup-security.sh"
22
- },
23
- "keywords": [
24
- "cursor",
25
- "cursor-ide",
26
- "ai-agent",
27
- "orchestration",
28
- "git-worktree",
29
- "parallel-execution",
30
- "code-review",
31
- "automation",
32
- "devops",
33
- "ci-cd"
34
- ],
35
- "author": "Eugene Jin <eungjin.cigro@gmail.com>",
36
- "license": "MIT",
37
- "repository": {
38
- "type": "git",
39
- "url": "git+https://github.com/eungjin-cigro/cursorflow.git"
40
- },
41
- "bugs": {
42
- "url": "https://github.com/eungjin-cigro/cursorflow/issues"
43
- },
44
- "homepage": "https://github.com/eungjin-cigro/cursorflow#readme",
45
- "engines": {
46
- "node": ">=18.0.0"
47
- },
48
- "dependencies": {},
49
- "devDependencies": {},
50
- "peerDependencies": {},
51
- "files": [
52
- "src/",
53
- "scripts/",
54
- "commands/",
55
- "templates/",
56
- "examples/",
57
- "README.md",
58
- "LICENSE",
59
- "CHANGELOG.md"
60
- ]
61
- }
1
+ {
2
+ "name": "@litmers/cursorflow-orchestrator",
3
+ "version": "0.1.6",
4
+ "description": "Git worktree-based parallel AI agent orchestration system for Cursor",
5
+ "main": "dist/cli/index.js",
6
+ "bin": {
7
+ "cursorflow": "dist/cli/index.js",
8
+ "cursorflow-setup": "dist/cli/setup-commands.js"
9
+ },
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "watch": "tsc -w",
13
+ "test": "jest",
14
+ "prepublishOnly": "npm run build && npm run validate",
15
+ "postinstall": "node scripts/postinstall.js",
16
+ "validate": "npm pack --dry-run",
17
+ "release": "scripts/release.sh",
18
+ "release:patch": "scripts/release.sh patch",
19
+ "release:minor": "scripts/release.sh minor",
20
+ "release:major": "scripts/release.sh major",
21
+ "security:check": "scripts/local-security-gate.sh",
22
+ "security:audit": "npm audit",
23
+ "security:audit:fix": "npm audit fix",
24
+ "security:setup": "scripts/setup-security.sh",
25
+ "prepare": "husky"
26
+ },
27
+ "keywords": [
28
+ "cursor",
29
+ "cursor-ide",
30
+ "ai-agent",
31
+ "orchestration",
32
+ "git-worktree",
33
+ "parallel-execution",
34
+ "code-review",
35
+ "automation",
36
+ "devops",
37
+ "ci-cd"
38
+ ],
39
+ "author": "Eugene Jin <eungjin.cigro@gmail.com>",
40
+ "license": "MIT",
41
+ "repository": {
42
+ "type": "git",
43
+ "url": "git+https://github.com/eungjin-cigro/cursorflow.git"
44
+ },
45
+ "bugs": {
46
+ "url": "https://github.com/eungjin-cigro/cursorflow/issues"
47
+ },
48
+ "homepage": "https://github.com/eungjin-cigro/cursorflow#readme",
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ },
52
+ "devDependencies": {
53
+ "@types/jest": "^30.0.0",
54
+ "@types/node": "^25.0.3",
55
+ "husky": "^9.1.7",
56
+ "jest": "^30.2.0",
57
+ "ts-jest": "^29.4.6",
58
+ "typescript": "^5.9.3"
59
+ },
60
+ "files": [
61
+ "dist/",
62
+ "src/",
63
+ "scripts/",
64
+ "commands/",
65
+ "templates/",
66
+ "examples/",
67
+ "README.md",
68
+ "LICENSE",
69
+ "CHANGELOG.md"
70
+ ]
71
+ }