@sylphx/flow 3.5.0 → 3.6.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,11 @@
1
1
  # @sylphx/flow
2
2
 
3
+ ## 3.6.0 (2026-01-28)
4
+
5
+ ### ✨ Features
6
+
7
+ - add /sweep command for propagating improvements ([ba58697](https://github.com/SylphxAI/flow/commit/ba58697eddabb4b851f7d46bf56cb83930d9a3c5))
8
+
3
9
  ## 3.5.0 (2026-01-28)
4
10
 
5
11
  ### ✨ Features
@@ -0,0 +1,116 @@
1
+ ---
2
+ name: sweep
3
+ description: Find and fix all similar patterns across the project
4
+ ---
5
+
6
+ # Sweep: Propagate Excellence Across the Codebase
7
+
8
+ You just did something — fixed a bug, improved code, optimized something, or established a pattern.
9
+
10
+ Now **sweep** through the entire project and apply the same improvement everywhere it's relevant.
11
+
12
+ ## Mindset
13
+
14
+ > "If I fixed this here, where else does the same issue exist?"
15
+ > "If I improved this pattern, where else should it be applied?"
16
+ > "Don't just fix the symptom — eliminate the entire class of problems."
17
+
18
+ **Proactive, not reactive.** One fix should trigger a comprehensive sweep.
19
+
20
+ ## Process
21
+
22
+ ### 1. Identify What Was Just Done
23
+ - What did you fix, improve, or create?
24
+ - What pattern or principle does it represent?
25
+ - What was wrong with the old approach?
26
+
27
+ ### 2. Define the Search Pattern
28
+ - What does "similar" look like?
29
+ - What code patterns indicate the same issue?
30
+ - What files/modules are likely affected?
31
+
32
+ ### 3. Sweep the Codebase
33
+ Search systematically:
34
+ ```
35
+ - Same file type (*.tsx, *.ts, etc.)
36
+ - Same directory/module
37
+ - Same pattern (hooks, components, utils, etc.)
38
+ - Same anti-pattern being fixed
39
+ ```
40
+
41
+ ### 4. Apply the Improvement Everywhere
42
+ For each similar case found:
43
+ - Apply the same fix/improvement
44
+ - Ensure consistency with the original
45
+ - Adapt as needed for context
46
+
47
+ ### 5. Verify Completeness
48
+ - Did you catch everything?
49
+ - Run one more search to confirm
50
+ - No stragglers left behind
51
+
52
+ ## Examples
53
+
54
+ ### Bug Fix Sweep
55
+ ```
56
+ Fixed: Null check missing in UserProfile
57
+ Sweep: Find all components accessing user data without null checks
58
+ Result: Fixed 12 similar issues across 8 files
59
+ ```
60
+
61
+ ### Pattern Improvement Sweep
62
+ ```
63
+ Improved: Converted callback to async/await in fetchData
64
+ Sweep: Find all callback-style async code
65
+ Result: Modernized 23 functions to async/await
66
+ ```
67
+
68
+ ### Type Safety Sweep
69
+ ```
70
+ Fixed: Added proper TypeScript types to API response
71
+ Sweep: Find all `any` types in API layer
72
+ Result: Added proper types to 15 API functions
73
+ ```
74
+
75
+ ### Component Pattern Sweep
76
+ ```
77
+ Created: Reusable ErrorBoundary with retry
78
+ Sweep: Find all try-catch error handling in components
79
+ Result: Replaced 8 ad-hoc error handlers with ErrorBoundary
80
+ ```
81
+
82
+ ### Performance Optimization Sweep
83
+ ```
84
+ Optimized: Added useMemo to expensive calculation
85
+ Sweep: Find all expensive calculations in render
86
+ Result: Memoized 6 similar calculations
87
+ ```
88
+
89
+ ## Output
90
+
91
+ ### Sweep Summary
92
+ ```
93
+ Original Work: [what was done]
94
+ Pattern Identified: [what to look for]
95
+ Files Scanned: [count]
96
+ Similar Cases Found: [count]
97
+ Cases Fixed: [count]
98
+ ```
99
+
100
+ ### Changes Made
101
+ | File | Change | Status |
102
+ |------|--------|--------|
103
+ | ... | ... | ✅ Fixed |
104
+
105
+ ### Verification
106
+ - [ ] All similar patterns addressed
107
+ - [ ] No regressions introduced
108
+ - [ ] Consistency maintained
109
+
110
+ ## Remember
111
+
112
+ * **One fix = comprehensive sweep** — never leave similar issues behind
113
+ * **Think in patterns** — what class of problem did you just solve?
114
+ * **Be thorough** — check everywhere, including tests and docs
115
+ * **Maintain consistency** — all similar code should look similar
116
+ * **This is how you reach State of the Art** — excellence everywhere, not just in spots
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/flow",
3
- "version": "3.5.0",
3
+ "version": "3.6.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": {