@sylphx/flow 3.9.1 → 3.11.0

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @sylphx/flow
2
2
 
3
+ ## 3.11.0 (2026-02-03)
4
+
5
+ ### ✨ Features
6
+
7
+ - **builder:** add build-time migration verification with push --dry-run ([3a6b609](https://github.com/SylphxAI/flow/commit/3a6b609e8554ebd1be917f683a7f6be1626de2e9))
8
+
9
+ ### 🔧 Chores
10
+
11
+ - trigger release ([919ccd0](https://github.com/SylphxAI/flow/commit/919ccd0833b0122627732095efe24c85c5a2ff27))
12
+
13
+ ## 3.10.0 (2026-02-03)
14
+
15
+ ### ✨ Features
16
+
17
+ - **builder:** improve BUILDER prompt - CLAUDE.md limits, error handling, migrations ([f484831](https://github.com/SylphxAI/flow/commit/f484831b30b558330539fac8a9a5e0169217b12a))
18
+
19
+ ### 🐛 Bug Fixes
20
+
21
+ - **builder:** CLAUDE.md - add back what to write ([d6f2f77](https://github.com/SylphxAI/flow/commit/d6f2f7772727f9226ae81728922823aa96d3ea95))
22
+
23
+ ### ♻️ Refactoring
24
+
25
+ - **builder:** CLAUDE.md - methodology over limitation ([b1ea52d](https://github.com/SylphxAI/flow/commit/b1ea52d83c7a77136708be42726ddb2f6ac8d496))
26
+
3
27
  ## 3.9.1 (2026-02-02)
4
28
 
5
29
  Simplify BUILDER system prompt guidelines:
@@ -108,13 +108,11 @@ Vercel CLI, Neon CLI, Modal CLI, GitHub CLI — use directly, install if missing
108
108
 
109
109
  **Todos.** Track what needs to be done next. This is your memory of what to do.
110
110
 
111
- **CLAUDE.md** — Your persistent memory file. Write to it when you discover:
112
- - Project-specific commands (build, test, deploy, lint)
113
- - Environment setup (env vars, prerequisites, dependencies)
114
- - Architecture decisions and their reasoning
115
- - Common patterns and conventions used in this codebase
116
- - Gotchas, workarounds, or non-obvious behaviors
117
- - Frequently referenced paths, configs, or resources
111
+ **CLAUDE.md** — Your persistent memory file.
112
+
113
+ What: commands, env setup, architecture decisions, patterns, gotchas.
114
+
115
+ How: Read first. Summarize, don't append. Remove resolved. Consolidate duplicates.
118
116
 
119
117
  **Recovery:**
120
118
  - Lost context? → Check `git log` for history
@@ -144,22 +142,25 @@ Vercel CLI, Neon CLI, Modal CLI, GitHub CLI — use directly, install if missing
144
142
  * Recoverability — systems must be swiftly restorable without data loss
145
143
  * If automation exists for a task, manual execution is prohibited
146
144
 
145
+ ## Error Handling
146
+
147
+ **Fail loud.** If something unexpected happens, throw — don't log and continue.
148
+
149
+ Assume no one reads logs. If it's worth logging, it's worth throwing.
150
+
147
151
  ## Database Migrations (Drizzle)
148
152
 
149
- **Workflow:** Generate locally, migrate automatically.
153
+ **Source of truth = migration SQL, not schema.**
154
+
155
+ Write migration SQL directly. Update `_journal.json`. Skip `drizzle-kit generate` — it's not AI-friendly.
156
+
157
+ **Build-time verification:**
150
158
 
151
- 1. Modify `schema.ts`
152
- 2. Run `drizzle-kit generate` (manual, local)
153
- 3. Review generated SQL migration file
154
- 4. Commit migration files to git
155
- 5. Deploy → `drizzle-kit migrate` runs in Vercel build step
159
+ ```bash
160
+ drizzle-kit migrate && drizzle-kit push --dry-run
161
+ ```
156
162
 
157
- **Principles:**
158
- - Generate = manual (may prompt for decisions like rename vs drop+add)
159
- - Migrate = automatic (in build step, before app starts)
160
- - Migration files = committed to git (version controlled, reviewable)
161
- - Backward compatible migrations only (old code must work with new schema during deploy)
162
- - Preview deployments use Neon branching (isolated DB per PR)
163
+ After `migrate`, run `push --dry-run` to verify DB matches schema.ts. If there's any diff, migration is incomplete — fail the build.
163
164
 
164
165
  ## Architecture Principles
165
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/flow",
3
- "version": "3.9.1",
3
+ "version": "3.11.0",
4
4
  "description": "One CLI to rule them all. Unified orchestration layer for AI coding assistants. Auto-detection, auto-installation, auto-upgrade.",
5
5
  "type": "module",
6
6
  "bin": {