claude-flow 3.30.3 → 3.30.5

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.
@@ -0,0 +1,43 @@
1
+ ' hidden-hook.vbs — Windowless launcher for Claude Code hooks on Windows.
2
+ '
3
+ ' Workaround for anthropics/claude-code#14828 / #70200 — Claude Code's
4
+ ' child_process.spawn for hook commands is missing windowsHide/CREATE_NO_WINDOW,
5
+ ' so every hook fire flashes a visible cmd.exe window. This shim is invoked via
6
+ ' wscript.exe (a GUI-subsystem host with no console), so Claude Code's outer
7
+ ' spawn attaches no console. Internally it runs node hidden via
8
+ ' WScript.Shell.Run(cmd, 0, True).
9
+ '
10
+ ' Usage from settings.local.json:
11
+ ' "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs pre-bash"
12
+ '
13
+ ' TRADE-OFF: wscript.exe has no stdin. Claude Code sends hook event data as
14
+ ' JSON via stdin, so hooks routed through this shim run WITHOUT their event
15
+ ' payload. Most ruflo hooks (env-var driven) still work; hooks like `route`
16
+ ' that need the user's prompt will have reduced context.
17
+ '
18
+ ' Exit code from the wrapped node process is propagated back to Claude Code.
19
+
20
+ Option Explicit
21
+
22
+ If WScript.Arguments.Count < 1 Then
23
+ WScript.Quit 2
24
+ End If
25
+
26
+ Dim shell, cmd, i, arg
27
+ Set shell = CreateObject("WScript.Shell")
28
+
29
+ ' Resolve helpers dir from this script's own path (avoids env-var dependency)
30
+ Dim scriptDir
31
+ scriptDir = Left(WScript.ScriptFullName, InStrRev(WScript.ScriptFullName, "\"))
32
+
33
+ ' First arg is the hook-handler script name (e.g. "hook-handler.cjs"),
34
+ ' remaining args are passed through to node.
35
+ cmd = "node """ & scriptDir & WScript.Arguments(0) & """"
36
+ For i = 1 To WScript.Arguments.Count - 1
37
+ arg = WScript.Arguments(i)
38
+ arg = Replace(arg, """", "\""")
39
+ cmd = cmd & " """ & arg & """"
40
+ Next
41
+
42
+ ' 0 = SW_HIDE, True = wait for completion (propagates exit code synchronously)
43
+ WScript.Quit shell.Run(cmd, 0, True)
@@ -1,6 +1,5 @@
1
1
  {
2
- "model": "claude-opus-4-7",
3
- "_comment_skillListingBudgetFraction": "#1834 — repo has 367 SKILL.md files (5x duplicates of common skills) across .agents/skills, .claude/skills, archive/v2/.claude/skills, v3/@claude-flow/{cli,mcp}/.claude/skills. With Claude Code's default 1% budget, ~378 descriptions get truncated. Bumping to 6% covers the actual usage (5.5%). Long-term fix is to prune the duplicates and archive paths (see #1834).",
2
+ "model": "claude-sonnet-5",
4
3
  "skillListingBudgetFraction": 0.06,
5
4
  "customInstructions": "Follow the project's CLAUDE.md guidelines. Use concurrent execution for all operations. Prioritize v3 implementation with security-first development, 15-agent swarm coordination, phased performance optimization, and cross-platform helper automation.",
6
5
  "env": {
@@ -166,7 +165,7 @@
166
165
  "version": "3.6.11",
167
166
  "enabled": true,
168
167
  "modelPreferences": {
169
- "default": "claude-opus-4-7",
168
+ "default": "claude-sonnet-5",
170
169
  "routing": "claude-haiku-4-5-20251001"
171
170
  },
172
171
  "agentTeams": {
@@ -0,0 +1,78 @@
1
+ {
2
+ "_comment": "Windows-only override — routes HOOKS through wscript.exe hidden-hook.vbs to work around anthropics/claude-code#14828 / #70200 (missing windowsHide/CREATE_NO_WINDOW on hook spawns). Gitignored; delete or empty to restore normal .claude/settings.json behavior. Trade-offs: (1) wscript has no stdin/stdout, so hooks routed through here run without their JSON event payload and cannot print output back to Claude Code — most ruflo hooks tolerate this. (2) statusLine is NOT overridden here because it requires stdout; it falls back to .claude/settings.json's direct node invocation, which will still flash on Windows until Claude Code adds windowsHide to its statusLine spawn. See .claude/helpers/hidden-hook.vbs.",
3
+ "hooks": {
4
+ "PreToolUse": [
5
+ {
6
+ "matcher": "Bash",
7
+ "hooks": [
8
+ {
9
+ "type": "command",
10
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs pre-bash",
11
+ "timeout": 5000
12
+ }
13
+ ]
14
+ }
15
+ ],
16
+ "PostToolUse": [
17
+ {
18
+ "matcher": "Write|Edit|MultiEdit",
19
+ "hooks": [
20
+ {
21
+ "type": "command",
22
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs post-edit",
23
+ "timeout": 10000
24
+ }
25
+ ]
26
+ }
27
+ ],
28
+ "UserPromptSubmit": [
29
+ {
30
+ "hooks": [
31
+ {
32
+ "type": "command",
33
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs route",
34
+ "timeout": 10000
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "SessionStart": [
40
+ {
41
+ "hooks": [
42
+ {
43
+ "type": "command",
44
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs session-restore",
45
+ "timeout": 15000
46
+ },
47
+ {
48
+ "type": "command",
49
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" auto-memory-hook.mjs import",
50
+ "timeout": 8000
51
+ }
52
+ ]
53
+ }
54
+ ],
55
+ "SessionEnd": [
56
+ {
57
+ "hooks": [
58
+ {
59
+ "type": "command",
60
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" hook-handler.cjs session-end",
61
+ "timeout": 10000
62
+ }
63
+ ]
64
+ }
65
+ ],
66
+ "Stop": [
67
+ {
68
+ "hooks": [
69
+ {
70
+ "type": "command",
71
+ "command": "wscript.exe \"${CLAUDE_PROJECT_DIR}\\.claude\\helpers\\hidden-hook.vbs\" auto-memory-hook.mjs sync",
72
+ "timeout": 10000
73
+ }
74
+ ]
75
+ }
76
+ ]
77
+ }
78
+ }
package/package.json CHANGED
@@ -1,185 +1,185 @@
1
- {
2
- "name": "claude-flow",
3
- "version": "3.30.3",
4
- "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "bin": {
8
- "claude-flow": "./bin/cli.js"
9
- },
10
- "homepage": "https://github.com/ruvnet/claude-flow#readme",
11
- "bugs": {
12
- "url": "https://github.com/ruvnet/claude-flow/issues",
13
- "email": "support@ruv.io"
14
- },
15
- "funding": {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/ruvnet"
18
- },
19
- "files": [
20
- "bin/**",
21
- "v3/@claude-flow/cli/bin/**",
22
- "v3/@claude-flow/cli/dist/**/*.js",
23
- "v3/@claude-flow/cli/dist/**/*.d.ts",
24
- "!v3/@claude-flow/cli/dist/**/*.map",
25
- "v3/@claude-flow/cli/package.json",
26
- "v3/@claude-flow/cli/catalog-manifest.json",
27
- "v3/@claude-flow/shared/dist/**/*.js",
28
- "v3/@claude-flow/shared/dist/**/*.d.ts",
29
- "!v3/@claude-flow/shared/dist/**/*.map",
30
- "v3/@claude-flow/shared/package.json",
31
- "v3/@claude-flow/guidance/dist/**/*.js",
32
- "v3/@claude-flow/guidance/dist/**/*.d.ts",
33
- "!v3/@claude-flow/guidance/dist/**/*.map",
34
- "v3/@claude-flow/guidance/package.json",
35
- ".claude-plugin/**",
36
- ".claude/**",
37
- "!.claude/**/*.db",
38
- "!.claude/**/*.map",
39
- "!.claude/worktrees/**",
40
- "!.claude/projects/**",
41
- "!.claude/scheduled_tasks.lock",
42
- "!.claude/sessions/**",
43
- "README.md",
44
- "LICENSE"
45
- ],
46
- "scripts": {
47
- "dev": "tsx watch src/index.ts",
48
- "build": "tsc",
49
- "build:ts": "cd v3/@claude-flow/cli && npm run build || true",
50
- "test": "vitest",
51
- "test:ui": "vitest --ui",
52
- "test:security": "vitest run v3/__tests__/security/",
53
- "lint": "cd v3/@claude-flow/cli && npm run lint || true",
54
- "security:audit": "npm audit --audit-level high",
55
- "security:fix": "npm audit fix",
56
- "security:test": "npm run test:security",
57
- "v3:domains": "npm run build:domains",
58
- "v3:swarm": "npm run start:swarm",
59
- "v3:security": "npm run security:audit && npm run security:test"
60
- },
61
- "dependencies": {
62
- "@claude-flow/cli-core": "3.7.0-alpha.5",
63
- "@claude-flow/mcp": "3.0.0-alpha.9",
64
- "@claude-flow/neural": "3.0.0-alpha.9",
65
- "@claude-flow/shared": "3.0.0-alpha.8",
66
- "@noble/ed25519": "2.3.0",
67
- "@ruvector/rabitq-wasm": "0.1.0",
68
- "semver": "7.7.3",
69
- "zod": "3.25.76"
70
- },
71
- "optionalDependencies": {
72
- "@claude-flow/codex": "^3.0.0-alpha.8",
73
- "@claude-flow/plugin-gastown-bridge": "^0.1.3",
74
- "@ruvector/attention": "^0.1.3",
75
- "@ruvector/core": "^0.1.30",
76
- "@ruvector/router": "^0.1.30",
77
- "@ruvector/router-linux-x64-gnu": "^0.1.30",
78
- "@ruvector/sona": "^0.1.5",
79
- "agentdb": "^3.0.0-alpha.17",
80
- "agentic-flow": "^2.0.14"
81
- },
82
- "overrides": {
83
- "ruvector": "^0.2.27",
84
- "better-sqlite3": ">=12.8.0",
85
- "js-yaml": ">=4.3.0",
86
- "hono": ">=4.12.25",
87
- "@ruvector/rvf-wasm": "0.1.5",
88
- "@hono/node-server": ">=1.19.14",
89
- "flatted": ">=3.4.0",
90
- "tar": ">=7.5.11",
91
- "picomatch": ">=4.0.3",
92
- "path-to-regexp": ">=8.2.1",
93
- "undici": ">=8.5.0",
94
- "minimatch": ">=10.0.0",
95
- "@isaacs/brace-expansion": ">=5.0.1",
96
- "cacache": ">=20.0.0",
97
- "make-fetch-happen": ">=15.0.0",
98
- "express-rate-limit": ">=8.4.1",
99
- "express": ">=4.22.2",
100
- "qs": ">=6.15.2",
101
- "protobufjs": ">=8.2.0",
102
- "uuid": ">=14.0.0",
103
- "@opentelemetry/core": ">=2.8.0",
104
- "@opentelemetry/resources": ">=2.8.0",
105
- "@opentelemetry/sdk-trace-base": ">=2.8.0",
106
- "@opentelemetry/sdk-node": ">=0.220.0",
107
- "@opentelemetry/auto-instrumentations-node": ">=0.75.0",
108
- "@opentelemetry/exporter-prometheus": ">=0.220.0",
109
- "@opentelemetry/exporter-trace-otlp-grpc": ">=0.220.0",
110
- "@opentelemetry/exporter-trace-otlp-http": ">=0.220.0",
111
- "@opentelemetry/exporter-trace-otlp-proto": ">=0.220.0",
112
- "@opentelemetry/otlp-exporter-base": ">=0.220.0",
113
- "@opentelemetry/otlp-grpc-exporter-base": ">=0.220.0",
114
- "@opentelemetry/otlp-transformer": ">=0.220.0",
115
- "axios": ">=1.13.2",
116
- "fast-uri": ">=3.1.0",
117
- "vite": ">=8.0.16",
118
- "ws": ">=8.21.0",
119
- "@grpc/grpc-js": ">=1.14.4",
120
- "form-data": ">=4.0.6",
121
- "http-proxy-middleware": ">=3.0.7",
122
- "@ruvector/ruvllm": ">=2.6.0"
123
- },
124
- "devDependencies": {
125
- "@openai/codex": "^0.98.0",
126
- "@types/bcrypt": "^5.0.2",
127
- "@types/node": "^20.0.0",
128
- "eslint": "^8.0.0",
129
- "tsx": "^4.21.0",
130
- "typescript": "^5.0.0",
131
- "vitest": "^3.2.6"
132
- },
133
- "engines": {
134
- "node": ">=20.0.0"
135
- },
136
- "repository": {
137
- "type": "git",
138
- "url": "https://github.com/ruvnet/claude-flow.git"
139
- },
140
- "keywords": [
141
- "ruvflow",
142
- "claude",
143
- "claude-code",
144
- "anthropic",
145
- "ai",
146
- "ai-agents",
147
- "multi-agent",
148
- "agent-orchestration",
149
- "swarm-intelligence",
150
- "swarm",
151
- "mcp",
152
- "model-context-protocol",
153
- "llm",
154
- "large-language-model",
155
- "gpt",
156
- "chatgpt",
157
- "automation",
158
- "workflow",
159
- "orchestration",
160
- "cli",
161
- "developer-tools",
162
- "devtools",
163
- "coding-assistant",
164
- "code-generation",
165
- "enterprise",
166
- "vector-database",
167
- "embeddings",
168
- "machine-learning",
169
- "neural-network",
170
- "hive-mind",
171
- "distributed-systems",
172
- "consensus",
173
- "self-learning"
174
- ],
175
- "author": {
176
- "name": "RuvNet",
177
- "email": "ruv@ruv.io",
178
- "url": "https://ruv.io"
179
- },
180
- "license": "MIT",
181
- "publishConfig": {
182
- "access": "public",
183
- "tag": "latest"
184
- }
185
- }
1
+ {
2
+ "name": "claude-flow",
3
+ "version": "3.30.5",
4
+ "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "claude-flow": "./bin/cli.js"
9
+ },
10
+ "homepage": "https://github.com/ruvnet/claude-flow#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/ruvnet/claude-flow/issues",
13
+ "email": "support@ruv.io"
14
+ },
15
+ "funding": {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/ruvnet"
18
+ },
19
+ "files": [
20
+ "bin/**",
21
+ "v3/@claude-flow/cli/bin/**",
22
+ "v3/@claude-flow/cli/dist/**/*.js",
23
+ "v3/@claude-flow/cli/dist/**/*.d.ts",
24
+ "!v3/@claude-flow/cli/dist/**/*.map",
25
+ "v3/@claude-flow/cli/package.json",
26
+ "v3/@claude-flow/cli/catalog-manifest.json",
27
+ "v3/@claude-flow/shared/dist/**/*.js",
28
+ "v3/@claude-flow/shared/dist/**/*.d.ts",
29
+ "!v3/@claude-flow/shared/dist/**/*.map",
30
+ "v3/@claude-flow/shared/package.json",
31
+ "v3/@claude-flow/guidance/dist/**/*.js",
32
+ "v3/@claude-flow/guidance/dist/**/*.d.ts",
33
+ "!v3/@claude-flow/guidance/dist/**/*.map",
34
+ "v3/@claude-flow/guidance/package.json",
35
+ ".claude-plugin/**",
36
+ ".claude/**",
37
+ "!.claude/**/*.db",
38
+ "!.claude/**/*.map",
39
+ "!.claude/worktrees/**",
40
+ "!.claude/projects/**",
41
+ "!.claude/scheduled_tasks.lock",
42
+ "!.claude/sessions/**",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "scripts": {
47
+ "dev": "tsx watch src/index.ts",
48
+ "build": "tsc",
49
+ "build:ts": "cd v3/@claude-flow/cli && npm run build || true",
50
+ "test": "vitest",
51
+ "test:ui": "vitest --ui",
52
+ "test:security": "vitest run v3/__tests__/security/",
53
+ "lint": "cd v3/@claude-flow/cli && npm run lint || true",
54
+ "security:audit": "npm audit --audit-level high",
55
+ "security:fix": "npm audit fix",
56
+ "security:test": "npm run test:security",
57
+ "v3:domains": "npm run build:domains",
58
+ "v3:swarm": "npm run start:swarm",
59
+ "v3:security": "npm run security:audit && npm run security:test"
60
+ },
61
+ "dependencies": {
62
+ "@claude-flow/cli-core": "3.7.0-alpha.5",
63
+ "@claude-flow/mcp": "3.0.0-alpha.9",
64
+ "@claude-flow/neural": "3.0.0-alpha.9",
65
+ "@claude-flow/shared": "3.0.0-alpha.8",
66
+ "@noble/ed25519": "2.3.0",
67
+ "@ruvector/rabitq-wasm": "0.1.0",
68
+ "semver": "7.7.3",
69
+ "zod": "3.25.76"
70
+ },
71
+ "optionalDependencies": {
72
+ "@claude-flow/codex": "^3.0.0-alpha.8",
73
+ "@claude-flow/plugin-gastown-bridge": "^0.1.3",
74
+ "@ruvector/attention": "^0.1.3",
75
+ "@ruvector/core": "^0.1.30",
76
+ "@ruvector/router": "^0.1.30",
77
+ "@ruvector/router-linux-x64-gnu": "^0.1.30",
78
+ "@ruvector/sona": "^0.1.5",
79
+ "agentdb": "^3.0.0-alpha.17",
80
+ "agentic-flow": "^2.0.14"
81
+ },
82
+ "overrides": {
83
+ "ruvector": "^0.2.27",
84
+ "better-sqlite3": ">=12.8.0",
85
+ "js-yaml": ">=4.3.0",
86
+ "hono": ">=4.12.25",
87
+ "@ruvector/rvf-wasm": "0.1.5",
88
+ "@hono/node-server": ">=1.19.14",
89
+ "flatted": ">=3.4.0",
90
+ "tar": ">=7.5.11",
91
+ "picomatch": ">=4.0.3",
92
+ "path-to-regexp": ">=8.2.1",
93
+ "undici": ">=8.5.0",
94
+ "minimatch": ">=10.0.0",
95
+ "@isaacs/brace-expansion": ">=5.0.1",
96
+ "cacache": ">=20.0.0",
97
+ "make-fetch-happen": ">=15.0.0",
98
+ "express-rate-limit": ">=8.4.1",
99
+ "express": ">=4.22.2",
100
+ "qs": ">=6.15.2",
101
+ "protobufjs": ">=8.2.0",
102
+ "uuid": ">=14.0.0",
103
+ "@opentelemetry/core": ">=2.8.0",
104
+ "@opentelemetry/resources": ">=2.8.0",
105
+ "@opentelemetry/sdk-trace-base": ">=2.8.0",
106
+ "@opentelemetry/sdk-node": ">=0.220.0",
107
+ "@opentelemetry/auto-instrumentations-node": ">=0.75.0",
108
+ "@opentelemetry/exporter-prometheus": ">=0.220.0",
109
+ "@opentelemetry/exporter-trace-otlp-grpc": ">=0.220.0",
110
+ "@opentelemetry/exporter-trace-otlp-http": ">=0.220.0",
111
+ "@opentelemetry/exporter-trace-otlp-proto": ">=0.220.0",
112
+ "@opentelemetry/otlp-exporter-base": ">=0.220.0",
113
+ "@opentelemetry/otlp-grpc-exporter-base": ">=0.220.0",
114
+ "@opentelemetry/otlp-transformer": ">=0.220.0",
115
+ "axios": ">=1.13.2",
116
+ "fast-uri": ">=3.1.0",
117
+ "vite": ">=8.0.16",
118
+ "ws": ">=8.21.0",
119
+ "@grpc/grpc-js": ">=1.14.4",
120
+ "form-data": ">=4.0.6",
121
+ "http-proxy-middleware": ">=3.0.7",
122
+ "@ruvector/ruvllm": ">=2.6.0"
123
+ },
124
+ "devDependencies": {
125
+ "@openai/codex": "^0.98.0",
126
+ "@types/bcrypt": "^5.0.2",
127
+ "@types/node": "^20.0.0",
128
+ "eslint": "^8.0.0",
129
+ "tsx": "^4.21.0",
130
+ "typescript": "^5.0.0",
131
+ "vitest": "^3.2.6"
132
+ },
133
+ "engines": {
134
+ "node": ">=20.0.0"
135
+ },
136
+ "repository": {
137
+ "type": "git",
138
+ "url": "https://github.com/ruvnet/claude-flow.git"
139
+ },
140
+ "keywords": [
141
+ "ruvflow",
142
+ "claude",
143
+ "claude-code",
144
+ "anthropic",
145
+ "ai",
146
+ "ai-agents",
147
+ "multi-agent",
148
+ "agent-orchestration",
149
+ "swarm-intelligence",
150
+ "swarm",
151
+ "mcp",
152
+ "model-context-protocol",
153
+ "llm",
154
+ "large-language-model",
155
+ "gpt",
156
+ "chatgpt",
157
+ "automation",
158
+ "workflow",
159
+ "orchestration",
160
+ "cli",
161
+ "developer-tools",
162
+ "devtools",
163
+ "coding-assistant",
164
+ "code-generation",
165
+ "enterprise",
166
+ "vector-database",
167
+ "embeddings",
168
+ "machine-learning",
169
+ "neural-network",
170
+ "hive-mind",
171
+ "distributed-systems",
172
+ "consensus",
173
+ "self-learning"
174
+ ],
175
+ "author": {
176
+ "name": "RuvNet",
177
+ "email": "ruv@ruv.io",
178
+ "url": "https://ruv.io"
179
+ },
180
+ "license": "MIT",
181
+ "publishConfig": {
182
+ "access": "public",
183
+ "tag": "latest"
184
+ }
185
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "generation": 1,
4
- "generatedAt": "2026-07-15T14:20:02.545Z",
5
- "gitSha": "38d60790",
4
+ "generatedAt": "2026-07-15T15:21:59.884Z",
5
+ "gitSha": "9dd999c9",
6
6
  "catalog": {
7
7
  "agents": 164,
8
8
  "tools": 387,
@@ -52,8 +52,8 @@ export function generateSettings(options) {
52
52
  };
53
53
  }
54
54
  // Note: Claude Code expects 'model' to be a string, not an object
55
- // Model preferences are stored in claudeFlow settings instead
56
- // settings.model = 'claude-sonnet-4-5-20250929'; // Uncomment if you want to set a default model
55
+ // Additional ruflo-specific model preferences live in claudeFlow.modelPreferences below
56
+ settings.model = 'claude-sonnet-5';
57
57
  // Add Agent Teams configuration (experimental feature)
58
58
  settings.env = {
59
59
  // Enable Claude Code Agent Teams for multi-agent coordination
@@ -74,7 +74,7 @@ export function generateSettings(options) {
74
74
  shell: platform.shell,
75
75
  },
76
76
  modelPreferences: {
77
- default: 'claude-opus-4-8',
77
+ default: 'claude-sonnet-5',
78
78
  routing: 'claude-haiku-4-5-20251001',
79
79
  },
80
80
  agentTeams: {
@@ -33,7 +33,7 @@ export interface AgentRecord {
33
33
  openrouterModel?: string;
34
34
  lastResult?: Record<string, unknown>;
35
35
  }
36
- export declare const DEFAULT_ANTHROPIC_MODEL = "claude-sonnet-4-6";
36
+ export declare const DEFAULT_ANTHROPIC_MODEL = "claude-sonnet-5";
37
37
  export declare function modelRejectsSamplingParams(model: string): boolean;
38
38
  export interface AnthropicCallInput {
39
39
  prompt: string;
@@ -35,25 +35,27 @@ function saveAgentStore(store) {
35
35
  // #1906/#2232 — Current model ids (Claude 4.x family):
36
36
  // Opus 4.8 → claude-opus-4-8 (current, the `opus` alias)
37
37
  // Opus 4.7 → claude-opus-4-7 (prior pin, reachable via `opus-4.7`)
38
- // Sonnet 4.6 → claude-sonnet-4-6
38
+ // Sonnet 5 → claude-sonnet-5 (current, the `sonnet` alias)
39
+ // Sonnet 4.6 → claude-sonnet-4-6 (prior pin, reachable via `sonnet-4.6`)
39
40
  // Haiku 4.5 → claude-haiku-4-5-20251001
40
- // `inherit` and the various defaults below all map to Sonnet 4.6.
41
- export const DEFAULT_ANTHROPIC_MODEL = 'claude-sonnet-4-6';
41
+ // `inherit` and the various defaults below all map to Sonnet 5.
42
+ export const DEFAULT_ANTHROPIC_MODEL = 'claude-sonnet-5';
42
43
  const MODEL_MAP = {
43
44
  haiku: 'claude-haiku-4-5-20251001',
44
- sonnet: 'claude-sonnet-4-6',
45
+ sonnet: 'claude-sonnet-5',
46
+ 'sonnet-4.6': 'claude-sonnet-4-6',
45
47
  opus: 'claude-opus-4-8',
46
48
  'opus-4.7': 'claude-opus-4-7',
47
49
  inherit: DEFAULT_ANTHROPIC_MODEL,
48
50
  };
49
- // #2357 — the adaptive-thinking family (Fable 5, Opus 4.8, Opus 4.7) removed
50
- // the sampling parameters (temperature/top_p/top_k); the Anthropic API
51
+ // #2357 — the adaptive-thinking family (Fable 5, Opus 4.8, Opus 4.7, Sonnet 5)
52
+ // removed the sampling parameters (temperature/top_p/top_k); the Anthropic API
51
53
  // returns 400 "Extra inputs are not permitted" when any is present.
52
54
  // Prefix-match so dated snapshots (e.g. claude-opus-4-8-YYYYMMDD) are
53
55
  // covered. Applies only to the direct Anthropic path — the Ollama/OpenRouter
54
56
  // OpenAI-compat paths accept temperature and are unchanged.
55
57
  export function modelRejectsSamplingParams(model) {
56
- return /^claude-(fable-5|opus-4-8|opus-4-7)/.test(model);
58
+ return /^claude-(fable-5|opus-4-8|opus-4-7|sonnet-5)/.test(model);
57
59
  }
58
60
  /**
59
61
  * Generic Anthropic Messages API call. No agent registry coupling — used
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.30.3",
3
+ "version": "3.30.5",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",