@sylphx/flow 2.2.0 → 2.3.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 +15 -0
- package/assets/agents/coder.md +3 -2
- package/assets/output-styles/silent.md +1 -20
- package/assets/rules/core.md +8 -0
- package/package.json +1 -1
- package/src/commands/flow/execute-v2.ts +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 2.3.0 (2025-12-02)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **prompts:** add doc update requirements to coder modes ([c489f71](https://github.com/SylphxAI/flow/commit/c489f716d7415f1f077c9318f9cc5fc72fd097ed))
|
|
8
|
+
- **prompts:** add mode transition announcement to core rules ([19b18b0](https://github.com/SylphxAI/flow/commit/19b18b0adc49c6eb9da80e61ccdb2a8ce04ac425))
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **cli:** save provider selection to prevent repeated prompts ([757a6c9](https://github.com/SylphxAI/flow/commit/757a6c90620cc475f381d0c0a37bf20f1be32438))
|
|
13
|
+
|
|
14
|
+
### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- **prompts:** remove silent execution constraint from output style ([6fe64d3](https://github.com/SylphxAI/flow/commit/6fe64d322ac1f670f7fbb3a4d80d5b5ed2186267))
|
|
17
|
+
|
|
3
18
|
## 2.2.0 (2025-12-01)
|
|
4
19
|
|
|
5
20
|
### ✨ Features
|
package/assets/agents/coder.md
CHANGED
|
@@ -43,7 +43,7 @@ You write and modify code. You execute, test, fix, and deliver working solutions
|
|
|
43
43
|
- [ ] Know all files to modify
|
|
44
44
|
- [ ] Understand why current code is structured this way
|
|
45
45
|
|
|
46
|
-
**Exit when:** Full context gathered + clear implementation plan (solution describable in <3 sentences)
|
|
46
|
+
**Exit when:** Full context gathered + clear implementation plan (solution describable in <3 sentences) + relevant docs updated
|
|
47
47
|
|
|
48
48
|
---
|
|
49
49
|
|
|
@@ -67,10 +67,11 @@ You write and modify code. You execute, test, fix, and deliver working solutions
|
|
|
67
67
|
- Run tests → verify pass
|
|
68
68
|
- Commit immediately (don't wait)
|
|
69
69
|
- Refactor NOW (not later)
|
|
70
|
+
- **Track progress**: Update progress-related docs as you complete each step
|
|
70
71
|
- Update documentation
|
|
71
72
|
- Commit docs if separate change
|
|
72
73
|
|
|
73
|
-
**Exit when:** Tests pass + docs updated + all changes committed + no TODOs
|
|
74
|
+
**Exit when:** Tests pass + docs updated + progress tracked + all changes committed + no TODOs
|
|
74
75
|
|
|
75
76
|
---
|
|
76
77
|
|
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Silent
|
|
3
|
-
description:
|
|
3
|
+
description: Structured completion reports
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Silent Execution Style
|
|
7
7
|
|
|
8
|
-
## During Execution
|
|
9
|
-
|
|
10
|
-
Use tool calls only. No text responses.
|
|
11
|
-
|
|
12
|
-
User sees work through:
|
|
13
|
-
- Tool call executions
|
|
14
|
-
- File modifications
|
|
15
|
-
- Test results
|
|
16
|
-
- Commits
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
8
|
## At Completion
|
|
21
9
|
|
|
22
10
|
Report what was accomplished. Structured, comprehensive, reviewable.
|
|
@@ -162,13 +150,6 @@ Users need to:
|
|
|
162
150
|
|
|
163
151
|
## Never
|
|
164
152
|
|
|
165
|
-
Don't narrate during execution.
|
|
166
|
-
|
|
167
|
-
<example>
|
|
168
|
-
❌ "Now I'm going to search for the authentication logic..."
|
|
169
|
-
✅ [Uses Grep tool silently]
|
|
170
|
-
</example>
|
|
171
|
-
|
|
172
153
|
Don't create report files (ANALYSIS.md, FINDINGS.md, REPORT.md).
|
|
173
154
|
|
|
174
155
|
Report directly to user at completion.
|
package/assets/rules/core.md
CHANGED
|
@@ -213,6 +213,14 @@ When stuck:
|
|
|
213
213
|
|
|
214
214
|
## Communication
|
|
215
215
|
|
|
216
|
+
**Mode Transition**: When entering a new working mode, briefly state the mode and its key focus. Aligns expectations for user and yourself.
|
|
217
|
+
|
|
218
|
+
<example>
|
|
219
|
+
"Entering Design Mode - investigating existing patterns before implementation."
|
|
220
|
+
"Switching to Debug Mode - reproducing issue first, then tracing root cause."
|
|
221
|
+
"Implementation Mode - design complete, writing code with TDD approach."
|
|
222
|
+
</example>
|
|
223
|
+
|
|
216
224
|
**Output Style**: Concise and direct. No fluff, no apologies, no hedging. Show, don't tell. Code examples over explanations. One clear statement over three cautious ones.
|
|
217
225
|
|
|
218
226
|
**Task Completion**: Report accomplishments using structured format.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "One CLI to rule them all. Unified orchestration layer for Claude Code, OpenCode, Cursor and all AI development tools. Auto-detection, auto-installation, auto-upgrade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -59,7 +59,7 @@ async function selectProvider(configService: GlobalConfigService): Promise<void>
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Ask user which provider to use for this session
|
|
62
|
-
const { selectedProvider } = await inquirer.prompt([
|
|
62
|
+
const { selectedProvider, rememberChoice } = await inquirer.prompt([
|
|
63
63
|
{
|
|
64
64
|
type: 'list',
|
|
65
65
|
name: 'selectedProvider',
|
|
@@ -71,8 +71,21 @@ async function selectProvider(configService: GlobalConfigService): Promise<void>
|
|
|
71
71
|
],
|
|
72
72
|
default: 'default',
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
type: 'confirm',
|
|
76
|
+
name: 'rememberChoice',
|
|
77
|
+
message: 'Remember this choice?',
|
|
78
|
+
default: true,
|
|
79
|
+
},
|
|
74
80
|
]);
|
|
75
81
|
|
|
82
|
+
// Save choice if user wants to remember
|
|
83
|
+
if (rememberChoice) {
|
|
84
|
+
providerConfig.claudeCode.defaultProvider = selectedProvider;
|
|
85
|
+
await configService.saveProviderConfig(providerConfig);
|
|
86
|
+
console.log(chalk.dim(' (Saved to settings)\n'));
|
|
87
|
+
}
|
|
88
|
+
|
|
76
89
|
// Configure environment variables based on selection
|
|
77
90
|
if (selectedProvider === 'kimi' || selectedProvider === 'zai') {
|
|
78
91
|
const provider = providerConfig.claudeCode.providers[selectedProvider];
|