@sylphx/flow 2.17.0 → 2.18.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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": {
|
|
@@ -15,7 +15,7 @@ import { GlobalConfigService } from '../../services/global-config.js';
|
|
|
15
15
|
import { TargetInstaller } from '../../services/target-installer.js';
|
|
16
16
|
import type { RunCommandOptions } from '../../types.js';
|
|
17
17
|
import { extractAgentInstructions, loadAgentContent } from '../../utils/agent-enhancer.js';
|
|
18
|
-
import { showHeader } from '../../utils/display/banner.js';
|
|
18
|
+
import { showAttachSummary, showHeader } from '../../utils/display/banner.js';
|
|
19
19
|
import { CLIError } from '../../utils/error-handler.js';
|
|
20
20
|
import { UserCancelledError } from '../../utils/errors.js';
|
|
21
21
|
import { ensureTargetInstalled, promptForTargetSelection } from '../../utils/target-selection.js';
|
|
@@ -263,6 +263,9 @@ export async function executeFlowV2(
|
|
|
263
263
|
merge: options.merge || false,
|
|
264
264
|
});
|
|
265
265
|
|
|
266
|
+
// Show attach summary
|
|
267
|
+
showAttachSummary(attachResult);
|
|
268
|
+
|
|
266
269
|
const targetId = selectedTargetId;
|
|
267
270
|
|
|
268
271
|
// Provider selection (Claude Code only, silent unless prompting)
|
|
@@ -55,7 +55,13 @@ export class FlowExecutor {
|
|
|
55
55
|
async execute(
|
|
56
56
|
projectPath: string,
|
|
57
57
|
options: FlowExecutorOptions = {}
|
|
58
|
-
): Promise<{
|
|
58
|
+
): Promise<{
|
|
59
|
+
joined: boolean;
|
|
60
|
+
agents?: number;
|
|
61
|
+
commands?: number;
|
|
62
|
+
skills?: number;
|
|
63
|
+
mcp?: number;
|
|
64
|
+
}> {
|
|
59
65
|
// Initialize Flow directories
|
|
60
66
|
await this.projectManager.initialize();
|
|
61
67
|
|
|
@@ -12,6 +12,40 @@ export function showHeader(version: string, target: string): void {
|
|
|
12
12
|
console.log(`\n${chalk.cyan('flow')} ${chalk.dim(version)} ${chalk.dim('→')} ${target}\n`);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Show attach summary: ✓ Attached {n} agents, {n} commands, {n} skills, {n} MCP
|
|
17
|
+
*/
|
|
18
|
+
export function showAttachSummary(result: {
|
|
19
|
+
joined: boolean;
|
|
20
|
+
agents?: number;
|
|
21
|
+
commands?: number;
|
|
22
|
+
skills?: number;
|
|
23
|
+
mcp?: number;
|
|
24
|
+
}): void {
|
|
25
|
+
if (result.joined) {
|
|
26
|
+
// Joining existing session - no summary needed
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const parts: string[] = [];
|
|
31
|
+
if (result.agents && result.agents > 0) {
|
|
32
|
+
parts.push(`${result.agents} agents`);
|
|
33
|
+
}
|
|
34
|
+
if (result.commands && result.commands > 0) {
|
|
35
|
+
parts.push(`${result.commands} commands`);
|
|
36
|
+
}
|
|
37
|
+
if (result.skills && result.skills > 0) {
|
|
38
|
+
parts.push(`${result.skills} skills`);
|
|
39
|
+
}
|
|
40
|
+
if (result.mcp && result.mcp > 0) {
|
|
41
|
+
parts.push(`${result.mcp} MCP`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (parts.length > 0) {
|
|
45
|
+
console.log(`${chalk.green('✓')} Attached ${parts.join(', ')}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
15
49
|
/**
|
|
16
50
|
* @deprecated Use showHeader instead
|
|
17
51
|
*/
|