@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
@@ -1,5 +1,11 @@
1
1
  # @sylphx/flow
2
2
 
3
+ ## 2.18.0 (2025-12-18)
4
+
5
+ ### ✨ Features
6
+
7
+ - **cli:** show skills count in attach summary ([a02c422](https://github.com/SylphxAI/flow/commit/a02c42239e79af1cfc891bb4554e9fac7c2a7f9b))
8
+
3
9
  ## 2.17.0 (2025-12-18)
4
10
 
5
11
  ### ✨ Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/flow",
3
- "version": "2.17.0",
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<{ joined: boolean; agents?: number; commands?: number; mcp?: number }> {
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
  */