@sylphx/flow 3.17.1 → 3.17.2
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 +12 -0
- package/package.json +1 -1
- package/src/commands/flow/execute-v2.ts +18 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 3.17.2 (2026-02-05)
|
|
4
|
+
|
|
5
|
+
Fix target selection persistence and optimize startup flow
|
|
6
|
+
|
|
7
|
+
### 🐛 Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **flow:** persist target selection on first run ([923f48d](https://github.com/SylphxAI/flow/commit/923f48d6a8472ffe4197705ba078c246b76fea5b))
|
|
10
|
+
|
|
11
|
+
### ⚡️ Performance
|
|
12
|
+
|
|
13
|
+
- **flow:** optimize startup flow ([cc012bd](https://github.com/SylphxAI/flow/commit/cc012bd003c577f121b134241a0cd05a1324bf35))
|
|
14
|
+
|
|
3
15
|
## 3.17.1 (2026-02-05)
|
|
4
16
|
|
|
5
17
|
Add Hono RPC patterns and declarative engineering principles
|
package/package.json
CHANGED
|
@@ -151,10 +151,11 @@ export async function executeFlowV2(
|
|
|
151
151
|
const configService = new GlobalConfigService();
|
|
152
152
|
const targetInstaller = new TargetInstaller(projectPath);
|
|
153
153
|
|
|
154
|
-
const [, installedTargets, settings] = await Promise.all([
|
|
154
|
+
const [, installedTargets, settings, version] = await Promise.all([
|
|
155
155
|
configService.initialize(),
|
|
156
156
|
targetInstaller.detectInstalledTargets(),
|
|
157
157
|
configService.loadSettings(),
|
|
158
|
+
getFlowVersion(),
|
|
158
159
|
]);
|
|
159
160
|
|
|
160
161
|
let selectedTargetId: string | null = null;
|
|
@@ -181,10 +182,14 @@ export async function executeFlowV2(
|
|
|
181
182
|
process.exit(1);
|
|
182
183
|
}
|
|
183
184
|
} else if (hasNoSetting) {
|
|
184
|
-
// No setting - use auto-detection
|
|
185
|
+
// No setting - use auto-detection or prompt
|
|
185
186
|
if (installedTargets.length === 1) {
|
|
187
|
+
// Single target: auto-select and save silently
|
|
186
188
|
selectedTargetId = installedTargets[0];
|
|
189
|
+
settings.defaultTarget = selectedTargetId as 'claude-code' | 'opencode';
|
|
190
|
+
await configService.saveSettings(settings);
|
|
187
191
|
} else {
|
|
192
|
+
// Multiple targets: prompt and ask to remember
|
|
188
193
|
selectedTargetId = await promptForTargetSelection(
|
|
189
194
|
installedTargets,
|
|
190
195
|
'Select AI CLI:',
|
|
@@ -200,6 +205,16 @@ export async function executeFlowV2(
|
|
|
200
205
|
if (!installed) {
|
|
201
206
|
process.exit(1);
|
|
202
207
|
}
|
|
208
|
+
|
|
209
|
+
const rememberChoice = await promptConfirm({
|
|
210
|
+
message: 'Remember this choice?',
|
|
211
|
+
initialValue: true,
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
if (rememberChoice) {
|
|
215
|
+
settings.defaultTarget = selectedTargetId as 'claude-code' | 'opencode';
|
|
216
|
+
await configService.saveSettings(settings);
|
|
217
|
+
}
|
|
203
218
|
}
|
|
204
219
|
} else if (hasSpecificTarget) {
|
|
205
220
|
// User has a specific target preference
|
|
@@ -217,8 +232,7 @@ export async function executeFlowV2(
|
|
|
217
232
|
}
|
|
218
233
|
}
|
|
219
234
|
|
|
220
|
-
// Get
|
|
221
|
-
const version = await getFlowVersion();
|
|
235
|
+
// Get target name for header
|
|
222
236
|
const targetInstallation = targetInstaller.getInstallationInfo(selectedTargetId);
|
|
223
237
|
const targetName = targetInstallation?.name || selectedTargetId;
|
|
224
238
|
|