@sylphx/flow 3.21.1 → 3.23.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 +14 -0
- package/package.json +1 -1
- package/src/commands/flow/execute-v2.ts +1 -0
- package/src/commands/flow/types.ts +1 -0
- package/src/commands/flow-command.ts +1 -0
- package/src/config/servers.ts +12 -0
- package/src/index.ts +1 -0
- package/src/targets/claude-code.ts +13 -1
- package/src/types/cli.types.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 3.23.0 (2026-02-14)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **flow:** add --resume flag to resume Claude Code sessions ([17e4189](https://github.com/SylphxAI/flow/commit/17e41893275c7fff8f43f63d2353294bfc333c6f))
|
|
8
|
+
|
|
9
|
+
## 3.22.0 (2026-02-09)
|
|
10
|
+
|
|
11
|
+
Add fal.ai MCP server for generative AI models (image, video, audio)
|
|
12
|
+
|
|
13
|
+
### ✨ Features
|
|
14
|
+
|
|
15
|
+
- **flow:** add fal.ai MCP server to registry ([f931207](https://github.com/SylphxAI/flow/commit/f931207e0ed36df22b60a7075623c4130c6b0eec))
|
|
16
|
+
|
|
3
17
|
## 3.21.1 (2026-02-08)
|
|
4
18
|
|
|
5
19
|
### 🐛 Bug Fixes
|
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ export const flowCommand = new Command('flow')
|
|
|
27
27
|
.option('--dry-run', 'Show what would be done without making changes')
|
|
28
28
|
.option('-p, --print', 'Headless print mode (output only, no interactive)')
|
|
29
29
|
.option('-c, --continue', 'Continue previous conversation (requires print mode)')
|
|
30
|
+
.option('-r, --resume [session-id]', 'Resume a previous Claude Code session')
|
|
30
31
|
.option('--merge', 'Merge Flow settings with existing settings (default: replace all)')
|
|
31
32
|
|
|
32
33
|
// Prompt argument
|
package/src/config/servers.ts
CHANGED
|
@@ -189,6 +189,18 @@ export const MCP_SERVER_REGISTRY: Record<string, MCPServerDefinition> = {
|
|
|
189
189
|
category: 'core',
|
|
190
190
|
defaultInInit: true,
|
|
191
191
|
},
|
|
192
|
+
|
|
193
|
+
fal: {
|
|
194
|
+
id: 'fal',
|
|
195
|
+
name: 'fal',
|
|
196
|
+
description: 'fal.ai MCP server for generative AI models (image, video, audio)',
|
|
197
|
+
config: {
|
|
198
|
+
type: 'http' as const,
|
|
199
|
+
url: 'https://docs.fal.ai/mcp',
|
|
200
|
+
},
|
|
201
|
+
category: 'ai',
|
|
202
|
+
defaultInInit: true,
|
|
203
|
+
},
|
|
192
204
|
};
|
|
193
205
|
|
|
194
206
|
/**
|
package/src/index.ts
CHANGED
|
@@ -58,6 +58,7 @@ export function createCLI(): Command {
|
|
|
58
58
|
.option('--dry-run', 'Show what would be done without making changes')
|
|
59
59
|
.option('-p, --print', 'Headless print mode (output only, no interactive)')
|
|
60
60
|
.option('-c, --continue', 'Continue previous conversation (requires print mode)')
|
|
61
|
+
.option('-r, --resume [session-id]', 'Resume a previous Claude Code session')
|
|
61
62
|
.option('--merge', 'Merge Flow settings with existing settings (default: replace all)')
|
|
62
63
|
|
|
63
64
|
.action(async (prompt, options) => {
|
|
@@ -199,7 +199,7 @@ export const claudeCodeTarget: Target = {
|
|
|
199
199
|
async executeCommand(
|
|
200
200
|
systemPrompt: string,
|
|
201
201
|
userPrompt: string,
|
|
202
|
-
options: { verbose?: boolean; dryRun?: boolean; print?: boolean; continue?: boolean } = {}
|
|
202
|
+
options: { verbose?: boolean; dryRun?: boolean; print?: boolean; continue?: boolean; resume?: string | boolean } = {}
|
|
203
203
|
): Promise<void> {
|
|
204
204
|
// Sanitize and validate inputs
|
|
205
205
|
const sanitizedSystemPrompt = sanitize.yamlContent(systemPrompt);
|
|
@@ -220,6 +220,12 @@ Please begin your response with a comprehensive summary of all the instructions
|
|
|
220
220
|
if (options.continue) {
|
|
221
221
|
dryRunArgs.push('-c');
|
|
222
222
|
}
|
|
223
|
+
if (options.resume) {
|
|
224
|
+
dryRunArgs.push('--resume');
|
|
225
|
+
if (typeof options.resume === 'string') {
|
|
226
|
+
dryRunArgs.push(options.resume);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
223
229
|
dryRunArgs.push('--system-prompt', '"<agent content>"');
|
|
224
230
|
if (sanitizedUserPrompt.trim() !== '') {
|
|
225
231
|
dryRunArgs.push(`"${sanitizedUserPrompt}"`);
|
|
@@ -247,6 +253,12 @@ Please begin your response with a comprehensive summary of all the instructions
|
|
|
247
253
|
if (options.continue) {
|
|
248
254
|
args.push('-c');
|
|
249
255
|
}
|
|
256
|
+
if (options.resume) {
|
|
257
|
+
args.push('--resume');
|
|
258
|
+
if (typeof options.resume === 'string') {
|
|
259
|
+
args.push(options.resume);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
250
262
|
|
|
251
263
|
args.push('--system-prompt', enhancedSystemPrompt);
|
|
252
264
|
if (options.verbose) {
|