@sylphx/flow 0.2.13 → 1.0.1

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 (158) hide show
  1. package/CHANGELOG.md +318 -0
  2. package/LOOP_MODE.md +446 -0
  3. package/dist/index.d.ts +10 -0
  4. package/dist/index.js +59398 -698
  5. package/dist/lancedb.linux-x64-gnu-b7f0jgsz.node +0 -0
  6. package/dist/lancedb.linux-x64-musl-tgcv22rx.node +0 -0
  7. package/dist/shared/chunk-25dwp0dp.js +89 -0
  8. package/dist/shared/chunk-3pjb6063.js +208 -0
  9. package/dist/shared/chunk-4d6ydpw7.js +2854 -0
  10. package/dist/shared/chunk-4wjcadjk.js +225 -0
  11. package/dist/shared/chunk-5j4w74t6.js +30 -0
  12. package/dist/shared/chunk-5j8m3dh3.js +58 -0
  13. package/dist/shared/chunk-5thh3qem.js +91 -0
  14. package/dist/shared/chunk-6g9xy73m.js +252 -0
  15. package/dist/shared/chunk-7eq34c42.js +23 -0
  16. package/dist/shared/chunk-c2gwgx3r.js +115 -0
  17. package/dist/shared/chunk-cjd3mk4c.js +1320 -0
  18. package/dist/shared/chunk-g5cv6703.js +368 -0
  19. package/dist/shared/chunk-hpkhykhq.js +574 -0
  20. package/dist/shared/chunk-m2322pdk.js +122 -0
  21. package/dist/shared/chunk-nd5fdvaq.js +26 -0
  22. package/dist/shared/chunk-pgd3m6zf.js +108 -0
  23. package/dist/shared/chunk-qk8n91hw.js +494 -0
  24. package/dist/shared/chunk-rkkn8szp.js +16855 -0
  25. package/dist/shared/chunk-t16rfxh0.js +61 -0
  26. package/dist/shared/chunk-t4fbfa5v.js +19 -0
  27. package/dist/shared/chunk-t77h86w6.js +276 -0
  28. package/dist/shared/chunk-v0ez4aef.js +71 -0
  29. package/dist/shared/chunk-v29j2r3s.js +32051 -0
  30. package/dist/shared/chunk-vfbc6ew5.js +765 -0
  31. package/dist/shared/chunk-vmeqwm1c.js +204 -0
  32. package/dist/shared/chunk-x66eh37x.js +137 -0
  33. package/package.json +45 -93
  34. package/README.md +0 -625
  35. package/assets/agents/coder.md +0 -32
  36. package/assets/agents/orchestrator.md +0 -36
  37. package/assets/agents/reviewer.md +0 -30
  38. package/assets/agents/writer.md +0 -30
  39. package/assets/knowledge/data/sql.md +0 -216
  40. package/assets/knowledge/guides/saas-template.md +0 -85
  41. package/assets/knowledge/guides/system-prompt.md +0 -344
  42. package/assets/knowledge/guides/tech-stack.md +0 -92
  43. package/assets/knowledge/guides/ui-ux.md +0 -44
  44. package/assets/knowledge/stacks/nextjs-app.md +0 -165
  45. package/assets/knowledge/stacks/node-api.md +0 -220
  46. package/assets/knowledge/stacks/react-app.md +0 -232
  47. package/assets/knowledge/universal/deployment.md +0 -109
  48. package/assets/knowledge/universal/performance.md +0 -121
  49. package/assets/knowledge/universal/security.md +0 -79
  50. package/assets/knowledge/universal/testing.md +0 -111
  51. package/assets/output-styles/silent.md +0 -23
  52. package/assets/rules/core.md +0 -197
  53. package/assets/slash-commands/commit.md +0 -23
  54. package/assets/slash-commands/context.md +0 -112
  55. package/assets/slash-commands/explain.md +0 -35
  56. package/assets/slash-commands/mep.md +0 -63
  57. package/assets/slash-commands/review.md +0 -39
  58. package/assets/slash-commands/test.md +0 -30
  59. package/dist/assets/agents/coder.md +0 -32
  60. package/dist/assets/agents/orchestrator.md +0 -36
  61. package/dist/assets/agents/reviewer.md +0 -30
  62. package/dist/assets/agents/writer.md +0 -30
  63. package/dist/assets/knowledge/data/sql.md +0 -216
  64. package/dist/assets/knowledge/guides/saas-template.md +0 -85
  65. package/dist/assets/knowledge/guides/system-prompt.md +0 -344
  66. package/dist/assets/knowledge/guides/tech-stack.md +0 -92
  67. package/dist/assets/knowledge/guides/ui-ux.md +0 -44
  68. package/dist/assets/knowledge/stacks/nextjs-app.md +0 -165
  69. package/dist/assets/knowledge/stacks/node-api.md +0 -220
  70. package/dist/assets/knowledge/stacks/react-app.md +0 -232
  71. package/dist/assets/knowledge/universal/deployment.md +0 -109
  72. package/dist/assets/knowledge/universal/performance.md +0 -121
  73. package/dist/assets/knowledge/universal/security.md +0 -79
  74. package/dist/assets/knowledge/universal/testing.md +0 -111
  75. package/dist/assets/output-styles/silent.md +0 -23
  76. package/dist/assets/rules/core.md +0 -197
  77. package/dist/assets/slash-commands/commit.md +0 -23
  78. package/dist/assets/slash-commands/context.md +0 -112
  79. package/dist/assets/slash-commands/explain.md +0 -35
  80. package/dist/assets/slash-commands/mep.md +0 -63
  81. package/dist/assets/slash-commands/review.md +0 -39
  82. package/dist/assets/slash-commands/test.md +0 -30
  83. package/dist/chunk-01gv4qey.js +0 -4
  84. package/dist/chunk-01gv4qey.js.map +0 -11
  85. package/dist/chunk-1e8xf3f6.js +0 -27
  86. package/dist/chunk-1e8xf3f6.js.map +0 -23
  87. package/dist/chunk-3m9whg4q.js +0 -4
  88. package/dist/chunk-3m9whg4q.js.map +0 -9
  89. package/dist/chunk-3qxj0zy3.js +0 -23
  90. package/dist/chunk-3qxj0zy3.js.map +0 -11
  91. package/dist/chunk-3w6pd43t.js +0 -25
  92. package/dist/chunk-3w6pd43t.js.map +0 -61
  93. package/dist/chunk-4e5g3df9.js +0 -105
  94. package/dist/chunk-4e5g3df9.js.map +0 -27
  95. package/dist/chunk-4nm4ere4.js +0 -4
  96. package/dist/chunk-4nm4ere4.js.map +0 -11
  97. package/dist/chunk-4vrj3f8r.js +0 -26
  98. package/dist/chunk-4vrj3f8r.js.map +0 -75
  99. package/dist/chunk-5njgv5k5.js +0 -161
  100. package/dist/chunk-5njgv5k5.js.map +0 -83
  101. package/dist/chunk-67n29s4q.js +0 -7
  102. package/dist/chunk-67n29s4q.js.map +0 -10
  103. package/dist/chunk-7yyg008s.js +0 -27
  104. package/dist/chunk-7yyg008s.js.map +0 -14
  105. package/dist/chunk-86ce45n6.js +0 -3
  106. package/dist/chunk-86ce45n6.js.map +0 -10
  107. package/dist/chunk-99pz5wm0.js +0 -75
  108. package/dist/chunk-99pz5wm0.js.map +0 -12
  109. package/dist/chunk-cv1nhr27.js +0 -2
  110. package/dist/chunk-cv1nhr27.js.map +0 -9
  111. package/dist/chunk-g4baca7p.js +0 -10
  112. package/dist/chunk-g4baca7p.js.map +0 -23
  113. package/dist/chunk-gc66xe7z.js +0 -4
  114. package/dist/chunk-gc66xe7z.js.map +0 -11
  115. package/dist/chunk-hj6qtsqp.js +0 -15
  116. package/dist/chunk-hj6qtsqp.js.map +0 -10
  117. package/dist/chunk-jbd95k1f.js +0 -14
  118. package/dist/chunk-jbd95k1f.js.map +0 -20
  119. package/dist/chunk-jk1ebfqn.js +0 -23
  120. package/dist/chunk-jk1ebfqn.js.map +0 -132
  121. package/dist/chunk-kn908zkk.js +0 -4
  122. package/dist/chunk-kn908zkk.js.map +0 -10
  123. package/dist/chunk-mw13a082.js +0 -4
  124. package/dist/chunk-mw13a082.js.map +0 -10
  125. package/dist/chunk-n8vzewr3.js +0 -4
  126. package/dist/chunk-n8vzewr3.js.map +0 -12
  127. package/dist/chunk-nke51f3c.js +0 -4
  128. package/dist/chunk-nke51f3c.js.map +0 -10
  129. package/dist/chunk-ns5atzyz.js +0 -3
  130. package/dist/chunk-ns5atzyz.js.map +0 -10
  131. package/dist/chunk-q4nh3vst.js +0 -54
  132. package/dist/chunk-q4nh3vst.js.map +0 -53
  133. package/dist/chunk-q5gqgs0p.js +0 -4
  134. package/dist/chunk-q5gqgs0p.js.map +0 -10
  135. package/dist/chunk-qpej66sh.js +0 -6
  136. package/dist/chunk-qpej66sh.js.map +0 -11
  137. package/dist/chunk-s9bsh0gp.js +0 -4
  138. package/dist/chunk-s9bsh0gp.js.map +0 -10
  139. package/dist/chunk-waemzsf4.js +0 -4
  140. package/dist/chunk-waemzsf4.js.map +0 -10
  141. package/dist/chunk-wnhhwtsy.js +0 -19
  142. package/dist/chunk-wnhhwtsy.js.map +0 -11
  143. package/dist/chunk-xs370t8p.js +0 -119
  144. package/dist/chunk-xs370t8p.js.map +0 -26
  145. package/dist/chunk-xtrn4wn0.js +0 -3
  146. package/dist/chunk-xtrn4wn0.js.map +0 -10
  147. package/dist/index.js.map +0 -920
  148. package/drizzle/0000_wooden_lady_bullseye.sql +0 -52
  149. package/drizzle/0001_material_pyro.sql +0 -85
  150. package/drizzle/0002_lyrical_random.sql +0 -2
  151. package/drizzle/0003_romantic_lockjaw.sql +0 -4
  152. package/drizzle/0004_blushing_meteorite.sql +0 -6
  153. package/drizzle/meta/0000_snapshot.json +0 -310
  154. package/drizzle/meta/0001_snapshot.json +0 -906
  155. package/drizzle/meta/0002_snapshot.json +0 -920
  156. package/drizzle/meta/0003_snapshot.json +0 -920
  157. package/drizzle/meta/0004_snapshot.json +0 -921
  158. package/drizzle/meta/_journal.json +0 -41
package/CHANGELOG.md ADDED
@@ -0,0 +1,318 @@
1
+ # @sylphx/flow
2
+
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 2ee21db: 🎉 **Sylphx Flow v1.0.0 - Production Release**
8
+
9
+ Major release with autonomous loop mode, auto-initialization, and production-ready features.
10
+
11
+ ## 🚀 Major Features
12
+
13
+ ### Loop Mode - Autonomous Continuous Execution
14
+
15
+ - **Revolutionary autonomous AI** that keeps working until you stop it
16
+ - Zero wait time by default (task execution time is natural interval)
17
+ - Optional wait time for polling scenarios: `--loop [seconds]`
18
+ - Max runs limit: `--max-runs <count>`
19
+ - Smart configuration: Saves provider/agent preferences automatically
20
+ - **Platform Support**: Claude Code (full support), OpenCode (coming soon)
21
+
22
+ ```bash
23
+ # Continuous autonomous work
24
+ sylphx-flow "process all github issues" --loop --target claude-code
25
+
26
+ # With wait time and limits
27
+ sylphx-flow "check for updates" --loop 300 --max-runs 20
28
+ ```
29
+
30
+ ### Auto-Initialization
31
+
32
+ - **Zero configuration required** - setup happens automatically on first use
33
+ - Smart platform detection (Claude Code, OpenCode)
34
+ - Intelligent defaults that learn from your choices
35
+ - Manual setup still available: `sylphx-flow --init-only`
36
+
37
+ ### Template Synchronization
38
+
39
+ - New `--sync` flag to synchronize with latest Flow templates
40
+ - Updates agents, rules, output styles, and slash commands
41
+ - Safe sync: Won't overwrite user customizations
42
+ - Platform-specific sync: `--sync --target opencode`
43
+
44
+ ### File Input Support
45
+
46
+ - Load prompts from files: `sylphx-flow "@task.txt"`
47
+ - No shell escaping issues
48
+ - Perfect for complex, reusable instructions
49
+ - Works with loop mode: `sylphx-flow "@prompt.md" --loop`
50
+
51
+ ## ✨ Enhancements
52
+
53
+ ### CLI Improvements
54
+
55
+ - Simplified command structure - direct execution without subcommands
56
+ - Better error messages and validation
57
+ - Improved verbose output for debugging
58
+ - Command printing in headless/loop mode
59
+
60
+ ### Platform Support
61
+
62
+ - **Claude Code**: Full support with headless execution
63
+ - **OpenCode**: Full support (loop mode coming soon due to TTY requirements)
64
+ - Auto-detection of target platform
65
+ - Manual override: `--target claude-code` or `--target opencode`
66
+
67
+ ### Branding & Documentation
68
+
69
+ - Modern flow infinity symbol icon system
70
+ - Comprehensive documentation with VitePress
71
+ - Clear platform support matrix
72
+ - Updated examples and guides
73
+
74
+ ## 🐛 Bug Fixes
75
+
76
+ - Fix targetId undefined in loop mode initialization
77
+ - Remove problematic flags from OpenCode headless mode
78
+ - Resolve init command never executing - agents now install properly
79
+ - Fix ConfigDirectoryTypoError by cleaning up old 'commands' directory
80
+
81
+ ## 📦 Package Configuration
82
+
83
+ - Configured for npm publishing
84
+ - Proper entry points and exports
85
+ - Type definitions included
86
+ - MIT license
87
+
88
+ ## 🔄 Breaking Changes
89
+
90
+ - Loop mode default interval changed from 60s to 0s (no wait time)
91
+ - Command structure simplified (subcommands still work but not required)
92
+ - Init/run commands consolidated into flow command
93
+
94
+ ## 📚 Documentation
95
+
96
+ - Complete rewrite emphasizing auto-initialization
97
+ - Loop mode clearly marked as Claude Code only
98
+ - New --sync flag documentation
99
+ - Simplified getting started guide
100
+ - Updated CLI commands reference
101
+
102
+ ## 🙏 Migration Guide
103
+
104
+ ### From pre-1.0 versions:
105
+
106
+ ```bash
107
+ # Old way
108
+ sylphx-flow init
109
+ sylphx-flow run "task"
110
+ sylphx-flow run "task" --loop
111
+
112
+ # New way (auto-initializes)
113
+ sylphx-flow "task"
114
+ sylphx-flow "task" --loop --target claude-code
115
+ ```
116
+
117
+ ### Loop mode interval:
118
+
119
+ ```bash
120
+ # Old default: 60s wait time
121
+ sylphx-flow "task" --loop
122
+
123
+ # New default: 0s wait time (immediate)
124
+ sylphx-flow "task" --loop
125
+
126
+ # If you want wait time, specify explicitly:
127
+ sylphx-flow "task" --loop 60
128
+ ```
129
+
130
+ ## 🔗 Links
131
+
132
+ - [Documentation](https://flow.sylphx.ai)
133
+ - [GitHub Repository](https://github.com/sylphxltd/flow)
134
+ - [Getting Started Guide](https://flow.sylphx.ai/guide/getting-started)
135
+
136
+ ## 1.0.0
137
+
138
+ ### Major Changes
139
+
140
+ - # 1.0.0 - Major Release
141
+
142
+ Sylphx Flow 1.0.0 is a complete reimagination of AI-powered development workflow automation. This release represents months of refinement, optimization, and user feedback integration.
143
+
144
+ ## 🚀 Major Features
145
+
146
+ ### Loop Mode - Autonomous Continuous Execution
147
+
148
+ Revolutionary loop mode that enables truly autonomous AI agents:
149
+
150
+ - **Continuous execution** with automatic context preservation
151
+ - **Zero wait time default** - task execution is the natural interval
152
+ - **Smart continue mode** - auto-enables from 2nd iteration
153
+ - **Graceful shutdown** - Ctrl+C handling with summaries
154
+ - **Configurable wait times** for rate limiting or polling scenarios
155
+
156
+ ```bash
157
+ # Continuous autonomous work
158
+ sylphx-flow "process all github issues" --loop
159
+
160
+ # With wait time for polling
161
+ sylphx-flow "check for new commits" --loop 300 --max-runs 20
162
+ ```
163
+
164
+ ### File Input Support
165
+
166
+ Load prompts from files for complex, reusable instructions:
167
+
168
+ - **@file syntax** - `@prompt.txt` or `@/path/to/prompt.txt`
169
+ - **No shell escaping issues** - write natural language prompts
170
+ - **Version control friendly** - commit prompts alongside code
171
+ - **Works seamlessly with loop mode**
172
+
173
+ ```bash
174
+ # Use file input
175
+ sylphx-flow "@task.txt" --loop --max-runs 10
176
+ ```
177
+
178
+ ### Smart Configuration System
179
+
180
+ Intelligent defaults that learn from your choices:
181
+
182
+ - **Auto-saves preferences** - provider, agent, target selections
183
+ - **Smart defaults** - uses saved preferences automatically
184
+ - **Selective override** - `--select-provider` / `--select-agent` flags
185
+ - **Inline API key setup** - configure keys when selecting providers
186
+ - **No repeated prompts** - set once, use forever
187
+
188
+ ### OpenCode Integration
189
+
190
+ Full support for OpenCode (Claude Code alternative):
191
+
192
+ - **Auto-detection** of OpenCode installation
193
+ - **Target-aware component checking**
194
+ - **JSONC config parsing** for OpenCode's commented configs
195
+ - **Directory structure adaptation** (singular vs plural naming)
196
+ - **Automatic migration** from old directory structures
197
+
198
+ ## 🔧 Major Improvements
199
+
200
+ ### Flow Orchestrator Architecture
201
+
202
+ Complete refactor for separation of concerns:
203
+
204
+ - **Modular design** - clean separation of init/setup/launch phases
205
+ - **State-driven decisions** - smart detection of project state
206
+ - **Positive logic patterns** - explicit conditions instead of negative flags
207
+ - **Component integrity** - automatic detection and repair of missing components
208
+
209
+ ### Performance Optimizations
210
+
211
+ - **Loop mode optimization** - setup once, execute repeatedly (no redundant checks)
212
+ - **Parallel execution** - concurrent independent operations
213
+ - **Smart caching** - reuse configuration across runs
214
+ - **Reduced overhead** - streamlined initialization flow
215
+
216
+ ### Developer Experience
217
+
218
+ - **Better error messages** - actionable feedback with suggestions
219
+ - **Progress indicators** - clear feedback during long operations
220
+ - **Dry-run mode** - preview commands before execution
221
+ - **Verbose mode** - detailed output for debugging
222
+ - **Headless mode** - `-p` for non-interactive execution
223
+
224
+ ## 🐛 Bug Fixes
225
+
226
+ ### Critical Fixes
227
+
228
+ - **Init command execution** - fixed Commander.js action() misuse that prevented initialization
229
+ - **State detection timing** - only check components after target is known
230
+ - **MCP detection** - proper JSONC parsing for OpenCode configs
231
+ - **Directory naming** - fixed OpenCode command/commands mismatch
232
+ - **Continue flag logic** - proper handling of conversation context
233
+
234
+ ### OpenCode Specific
235
+
236
+ - **YAML field compatibility** - removed unsupported fields (name, mode, rules)
237
+ - **Automatic cleanup** - removes legacy directories to prevent crashes
238
+ - **Config validation** - proper error handling for invalid configurations
239
+
240
+ ### Memory & Settings
241
+
242
+ - **Persistent settings** - fixed "re-prompt every run" issue
243
+ - **Target-specific configs** - separate settings per platform
244
+ - **Environment variables** - proper inheritance to spawned processes
245
+
246
+ ## 📚 Documentation
247
+
248
+ ### Comprehensive Guides
249
+
250
+ - **LOOP_MODE.md** - Complete loop mode documentation (English)
251
+ - **Updated help text** - clearer, more descriptive option descriptions
252
+ - **Inline examples** - usage examples in help output
253
+ - **Consistent terminology** - "wait time" instead of mixed "interval/cooldown"
254
+
255
+ ### API Reference
256
+
257
+ - Clear parameter descriptions
258
+ - Recommended values for all options
259
+ - When to use each feature
260
+ - Troubleshooting guides
261
+
262
+ ## ⚠️ Breaking Changes
263
+
264
+ ### Configuration File Rename
265
+
266
+ - Old: `.sylphx-flow/config.json`
267
+ - New: `.sylphx-flow/settings.json`
268
+ - Migration: Automatic on first run
269
+
270
+ ### Default Behavior Changes
271
+
272
+ - **Loop interval default**: 60s → 0s (immediate execution)
273
+ - **Init logic**: Negative logic → Positive logic (explicit conditions)
274
+ - **Provider selection**: Opt-in defaults → Smart defaults (auto-use saved)
275
+
276
+ ### Removed Features
277
+
278
+ - **Deprecated commands**: Old separate init/run commands (use integrated `flow` command)
279
+ - **Complex loop strategies**: Removed over-engineered exit conditions (until-success, until-stable)
280
+
281
+ ## 🔄 Migration Guide
282
+
283
+ ### From 0.x to 1.0
284
+
285
+ 1. **Update package**:
286
+
287
+ ```bash
288
+ bun update @sylphx/flow
289
+ ```
290
+
291
+ 2. **Config auto-migrates** on first run - no manual steps needed
292
+
293
+ 3. **Loop mode users**: If you were using `--loop 60`, consider removing the number for faster continuous execution:
294
+
295
+ ```bash
296
+ # Before (0.x)
297
+ sylphx-flow "task" --loop 60
298
+
299
+ # After (1.0 - faster)
300
+ sylphx-flow "task" --loop
301
+
302
+ # Or keep wait time if needed
303
+ sylphx-flow "task" --loop 60
304
+ ```
305
+
306
+ 4. **Provider/Agent selection**: No longer need `--use-defaults` - it's automatic now
307
+
308
+ ## 🙏 Acknowledgments
309
+
310
+ This release incorporates extensive user feedback and addresses real-world usage patterns. Thank you to all contributors and early adopters who helped shape this release.
311
+
312
+ ## 📊 Stats
313
+
314
+ - **50+ commits** since 0.3.0
315
+ - **15+ major features** added
316
+ - **20+ bug fixes**
317
+ - **Full OpenCode support**
318
+ - **10x faster loop execution** (setup overhead removed)