@claude-flow/cli 3.1.0-alpha.9 → 3.5.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/.claude/agents/core/coder.md +1 -1
- package/.claude/agents/core/planner.md +2 -2
- package/.claude/agents/core/researcher.md +1 -1
- package/.claude/agents/core/reviewer.md +1 -1
- package/.claude/agents/core/tester.md +1 -1
- package/.claude/agents/data/data-ml-model.md +4 -4
- package/.claude/agents/development/dev-backend-api.md +4 -4
- package/.claude/agents/documentation/docs-api-openapi.md +4 -4
- package/.claude/agents/github/code-review-swarm.md +2 -2
- package/.claude/agents/github/issue-tracker.md +2 -2
- package/.claude/agents/github/pr-manager.md +2 -2
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/workflow-automation.md +2 -2
- package/.claude/agents/sparc/architecture.md +3 -3
- package/.claude/agents/sparc/pseudocode.md +2 -2
- package/.claude/agents/sparc/refinement.md +3 -3
- package/.claude/agents/sparc/specification.md +2 -2
- package/.claude/agents/swarm/adaptive-coordinator.md +1 -1
- package/.claude/agents/swarm/hierarchical-coordinator.md +1 -1
- package/.claude/agents/swarm/mesh-coordinator.md +1 -1
- package/.claude/agents/templates/base-template-generator.md +3 -3
- package/.claude/agents/templates/sparc-coordinator.md +3 -3
- package/.claude/helpers/auto-memory-hook.mjs +350 -0
- package/.claude/helpers/hook-handler.cjs +232 -0
- package/.claude/helpers/intelligence.cjs +916 -0
- package/.claude/helpers/session.js +8 -0
- package/.claude/helpers/statusline.cjs +96 -28
- package/.claude/settings.json +86 -141
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +2 -2
- package/.claude/skills/swarm-orchestration/SKILL.md +1 -1
- package/README.md +910 -475
- package/bin/preinstall.cjs +2 -0
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +45 -2
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +292 -82
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +48 -4
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/init/executor.d.ts +8 -2
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +315 -43
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +18 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +498 -0
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts +0 -1
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +32 -16
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +138 -95
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +16 -8
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +506 -930
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +8 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +7 -0
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts.map +1 -1
- package/dist/src/mcp-client.js +4 -0
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
- package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agentdb-tools.js +557 -0
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +184 -32
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +32 -27
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/memory/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +34 -6
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +407 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/dist/src/memory/memory-bridge.js +1493 -0
- package/dist/src/memory/memory-bridge.js.map +1 -0
- package/dist/src/memory/memory-initializer.d.ts +3 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -1
- package/dist/src/memory/memory-initializer.js +125 -1
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -1
- package/dist/src/ruvector/enhanced-model-router.js +25 -15
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -1
- package/dist/src/services/agentic-flow-bridge.d.ts +50 -0
- package/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
- package/dist/src/services/agentic-flow-bridge.js +95 -0
- package/dist/src/services/agentic-flow-bridge.js.map +1 -0
- package/dist/src/services/ruvector-training.d.ts +2 -1
- package/dist/src/services/ruvector-training.d.ts.map +1 -1
- package/dist/src/services/ruvector-training.js +1 -2
- package/dist/src/services/ruvector-training.js.map +1 -1
- package/dist/src/update/validator.js +1 -1
- package/dist/src/update/validator.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-generator.d.ts","sourceRoot":"","sources":["../../../src/init/settings-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,YAAY,CAAC;AAE3D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"settings-generator.d.ts","sourceRoot":"","sources":["../../../src/init/settings-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,YAAY,CAAC;AAE3D;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CA+I7D;AA0MD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAGjE"}
|
|
@@ -17,15 +17,16 @@ export function generateSettings(options) {
|
|
|
17
17
|
}
|
|
18
18
|
// Add permissions
|
|
19
19
|
settings.permissions = {
|
|
20
|
-
// Auto-allow claude-flow MCP tools
|
|
21
|
-
// Note: Use ":*" for prefix matching (not just "*")
|
|
22
20
|
allow: [
|
|
23
|
-
'Bash(npx claude-flow
|
|
24
|
-
'Bash(npx
|
|
21
|
+
'Bash(npx @claude-flow*)',
|
|
22
|
+
'Bash(npx claude-flow*)',
|
|
23
|
+
'Bash(node .claude/*)',
|
|
25
24
|
'mcp__claude-flow__:*',
|
|
26
25
|
],
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
deny: [
|
|
27
|
+
'Read(./.env)',
|
|
28
|
+
'Read(./.env.*)',
|
|
29
|
+
],
|
|
29
30
|
};
|
|
30
31
|
// Add claude-flow attribution for git commits and PRs
|
|
31
32
|
settings.attribution = {
|
|
@@ -35,6 +36,14 @@ export function generateSettings(options) {
|
|
|
35
36
|
// Note: Claude Code expects 'model' to be a string, not an object
|
|
36
37
|
// Model preferences are stored in claudeFlow settings instead
|
|
37
38
|
// settings.model = 'claude-sonnet-4-5-20250929'; // Uncomment if you want to set a default model
|
|
39
|
+
// Add Agent Teams configuration (experimental feature)
|
|
40
|
+
settings.env = {
|
|
41
|
+
// Enable Claude Code Agent Teams for multi-agent coordination
|
|
42
|
+
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: '1',
|
|
43
|
+
// Claude Flow specific environment
|
|
44
|
+
CLAUDE_FLOW_V3_ENABLED: 'true',
|
|
45
|
+
CLAUDE_FLOW_HOOKS_ENABLED: 'true',
|
|
46
|
+
};
|
|
38
47
|
// Add V3-specific settings
|
|
39
48
|
settings.claudeFlow = {
|
|
40
49
|
version: '3.0.0',
|
|
@@ -43,6 +52,30 @@ export function generateSettings(options) {
|
|
|
43
52
|
default: 'claude-opus-4-6',
|
|
44
53
|
routing: 'claude-haiku-4-5-20251001',
|
|
45
54
|
},
|
|
55
|
+
agentTeams: {
|
|
56
|
+
enabled: true,
|
|
57
|
+
teammateMode: 'auto', // 'auto' | 'in-process' | 'tmux'
|
|
58
|
+
taskListEnabled: true,
|
|
59
|
+
mailboxEnabled: true,
|
|
60
|
+
coordination: {
|
|
61
|
+
autoAssignOnIdle: true, // Auto-assign pending tasks when teammate is idle
|
|
62
|
+
trainPatternsOnComplete: true, // Train neural patterns when tasks complete
|
|
63
|
+
notifyLeadOnComplete: true, // Notify team lead when tasks complete
|
|
64
|
+
sharedMemoryNamespace: 'agent-teams', // Memory namespace for team coordination
|
|
65
|
+
},
|
|
66
|
+
hooks: {
|
|
67
|
+
teammateIdle: {
|
|
68
|
+
enabled: true,
|
|
69
|
+
autoAssign: true,
|
|
70
|
+
checkTaskList: true,
|
|
71
|
+
},
|
|
72
|
+
taskCompleted: {
|
|
73
|
+
enabled: true,
|
|
74
|
+
trainPatterns: true,
|
|
75
|
+
notifyLead: true,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
46
79
|
swarm: {
|
|
47
80
|
topology: options.runtime.topology,
|
|
48
81
|
maxAgents: options.runtime.maxAgents,
|
|
@@ -50,6 +83,9 @@ export function generateSettings(options) {
|
|
|
50
83
|
memory: {
|
|
51
84
|
backend: options.runtime.memoryBackend,
|
|
52
85
|
enableHNSW: options.runtime.enableHNSW,
|
|
86
|
+
learningBridge: { enabled: options.runtime.enableLearningBridge ?? true },
|
|
87
|
+
memoryGraph: { enabled: options.runtime.enableMemoryGraph ?? true },
|
|
88
|
+
agentScopes: { enabled: options.runtime.enableAgentScopes ?? true },
|
|
53
89
|
},
|
|
54
90
|
neural: {
|
|
55
91
|
enabled: options.runtime.enableNeural,
|
|
@@ -107,181 +143,188 @@ export function generateSettings(options) {
|
|
|
107
143
|
}
|
|
108
144
|
/**
|
|
109
145
|
* Generate statusLine configuration for Claude Code
|
|
110
|
-
*
|
|
146
|
+
* Uses local helper script for cross-platform compatibility (no npx cold-start)
|
|
111
147
|
*/
|
|
112
|
-
function generateStatusLineConfig(
|
|
113
|
-
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
// Falls back to local helper script or simple "V3" if CLI not available
|
|
117
|
-
// Default: full multi-line statusline with progress bars, metrics, and architecture status
|
|
118
|
-
const statuslineCommand = 'npx @claude-flow/cli@latest hooks statusline 2>/dev/null || node .claude/helpers/statusline.cjs 2>/dev/null || echo "▊ Claude Flow V3"';
|
|
148
|
+
function generateStatusLineConfig(_options) {
|
|
149
|
+
// Claude Code pipes JSON session data to the script via stdin.
|
|
150
|
+
// Valid fields: type, command, padding (optional).
|
|
151
|
+
// The script runs after each assistant message (debounced 300ms).
|
|
119
152
|
return {
|
|
120
|
-
// Type must be "command" for Claude Code validation
|
|
121
153
|
type: 'command',
|
|
122
|
-
|
|
123
|
-
command: statuslineCommand,
|
|
124
|
-
// Refresh interval in milliseconds (5 seconds default)
|
|
125
|
-
refreshMs: config.refreshInterval,
|
|
126
|
-
// Enable the statusline
|
|
127
|
-
enabled: config.enabled,
|
|
154
|
+
command: 'node .claude/helpers/statusline.cjs',
|
|
128
155
|
};
|
|
129
156
|
}
|
|
130
157
|
/**
|
|
131
158
|
* Generate hooks configuration
|
|
159
|
+
* Uses local hook-handler.cjs for cross-platform compatibility.
|
|
160
|
+
* All hooks delegate to `node .claude/helpers/hook-handler.cjs <command>`
|
|
161
|
+
* which works identically on Windows, macOS, and Linux without
|
|
162
|
+
* shell-specific syntax (no bash 2>/dev/null, no PowerShell 2>$null).
|
|
132
163
|
*/
|
|
133
164
|
function generateHooksConfig(config) {
|
|
134
165
|
const hooks = {};
|
|
135
|
-
//
|
|
166
|
+
// Node.js scripts handle errors internally via try/catch.
|
|
167
|
+
// No shell-level error suppression needed (2>/dev/null || true breaks Windows).
|
|
168
|
+
// PreToolUse — validate commands before execution
|
|
136
169
|
if (config.preToolUse) {
|
|
137
170
|
hooks.PreToolUse = [
|
|
138
|
-
// File edit hooks with intelligence routing
|
|
139
171
|
{
|
|
140
|
-
matcher: '
|
|
172
|
+
matcher: 'Bash',
|
|
141
173
|
hooks: [
|
|
142
174
|
{
|
|
143
175
|
type: 'command',
|
|
144
|
-
command: '
|
|
176
|
+
command: 'node .claude/helpers/hook-handler.cjs pre-bash',
|
|
145
177
|
timeout: config.timeout,
|
|
146
|
-
continueOnError: true,
|
|
147
178
|
},
|
|
148
179
|
],
|
|
149
180
|
},
|
|
150
|
-
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
// PostToolUse — record edits for session metrics / learning
|
|
184
|
+
if (config.postToolUse) {
|
|
185
|
+
hooks.PostToolUse = [
|
|
151
186
|
{
|
|
152
|
-
matcher: '
|
|
187
|
+
matcher: 'Write|Edit|MultiEdit',
|
|
153
188
|
hooks: [
|
|
154
189
|
{
|
|
155
190
|
type: 'command',
|
|
156
|
-
command: '
|
|
157
|
-
timeout:
|
|
158
|
-
continueOnError: true,
|
|
191
|
+
command: 'node .claude/helpers/hook-handler.cjs post-edit',
|
|
192
|
+
timeout: 10000,
|
|
159
193
|
},
|
|
160
194
|
],
|
|
161
195
|
},
|
|
162
|
-
|
|
196
|
+
];
|
|
197
|
+
}
|
|
198
|
+
// UserPromptSubmit — intelligent task routing
|
|
199
|
+
if (config.userPromptSubmit) {
|
|
200
|
+
hooks.UserPromptSubmit = [
|
|
163
201
|
{
|
|
164
|
-
matcher: '^Task$',
|
|
165
202
|
hooks: [
|
|
166
203
|
{
|
|
167
204
|
type: 'command',
|
|
168
|
-
command: '
|
|
169
|
-
timeout:
|
|
170
|
-
continueOnError: true,
|
|
205
|
+
command: 'node .claude/helpers/hook-handler.cjs route',
|
|
206
|
+
timeout: 10000,
|
|
171
207
|
},
|
|
172
208
|
],
|
|
173
209
|
},
|
|
174
210
|
];
|
|
175
211
|
}
|
|
176
|
-
//
|
|
177
|
-
if (config.
|
|
178
|
-
hooks.
|
|
179
|
-
// File edit hooks with neural pattern training
|
|
212
|
+
// SessionStart — restore session state + import auto memory
|
|
213
|
+
if (config.sessionStart) {
|
|
214
|
+
hooks.SessionStart = [
|
|
180
215
|
{
|
|
181
|
-
matcher: '^(Write|Edit|MultiEdit)$',
|
|
182
216
|
hooks: [
|
|
183
217
|
{
|
|
184
218
|
type: 'command',
|
|
185
|
-
command: '
|
|
186
|
-
timeout:
|
|
187
|
-
continueOnError: true,
|
|
219
|
+
command: 'node .claude/helpers/hook-handler.cjs session-restore',
|
|
220
|
+
timeout: 15000,
|
|
188
221
|
},
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
// Bash command hooks with metrics tracking
|
|
192
|
-
{
|
|
193
|
-
matcher: '^Bash$',
|
|
194
|
-
hooks: [
|
|
195
222
|
{
|
|
196
223
|
type: 'command',
|
|
197
|
-
command: '
|
|
198
|
-
timeout:
|
|
199
|
-
continueOnError: true,
|
|
224
|
+
command: 'node .claude/helpers/auto-memory-hook.mjs import',
|
|
225
|
+
timeout: 8000,
|
|
200
226
|
},
|
|
201
227
|
],
|
|
202
228
|
},
|
|
203
|
-
|
|
229
|
+
];
|
|
230
|
+
}
|
|
231
|
+
// SessionEnd — persist session state
|
|
232
|
+
if (config.sessionStart) {
|
|
233
|
+
hooks.SessionEnd = [
|
|
204
234
|
{
|
|
205
|
-
matcher: '^Task$',
|
|
206
235
|
hooks: [
|
|
207
236
|
{
|
|
208
237
|
type: 'command',
|
|
209
|
-
command: '
|
|
210
|
-
timeout:
|
|
211
|
-
continueOnError: true,
|
|
238
|
+
command: 'node .claude/helpers/hook-handler.cjs session-end',
|
|
239
|
+
timeout: 10000,
|
|
212
240
|
},
|
|
213
241
|
],
|
|
214
242
|
},
|
|
215
243
|
];
|
|
216
244
|
}
|
|
217
|
-
//
|
|
218
|
-
if (config.
|
|
219
|
-
hooks.
|
|
245
|
+
// Stop — sync auto memory on exit
|
|
246
|
+
if (config.stop) {
|
|
247
|
+
hooks.Stop = [
|
|
220
248
|
{
|
|
221
249
|
hooks: [
|
|
222
250
|
{
|
|
223
251
|
type: 'command',
|
|
224
|
-
command: '
|
|
225
|
-
timeout:
|
|
226
|
-
continueOnError: true,
|
|
252
|
+
command: 'node .claude/helpers/auto-memory-hook.mjs sync',
|
|
253
|
+
timeout: 10000,
|
|
227
254
|
},
|
|
228
255
|
],
|
|
229
256
|
},
|
|
230
257
|
];
|
|
231
258
|
}
|
|
232
|
-
//
|
|
233
|
-
if (config.
|
|
234
|
-
hooks.
|
|
259
|
+
// PreCompact — preserve context before compaction
|
|
260
|
+
if (config.preCompact) {
|
|
261
|
+
hooks.PreCompact = [
|
|
235
262
|
{
|
|
263
|
+
matcher: 'manual',
|
|
236
264
|
hooks: [
|
|
237
265
|
{
|
|
238
266
|
type: 'command',
|
|
239
|
-
command: '
|
|
240
|
-
timeout: 5000,
|
|
241
|
-
continueOnError: true,
|
|
267
|
+
command: 'node .claude/helpers/hook-handler.cjs compact-manual',
|
|
242
268
|
},
|
|
243
269
|
{
|
|
244
270
|
type: 'command',
|
|
245
|
-
command: '
|
|
246
|
-
timeout:
|
|
247
|
-
continueOnError: true,
|
|
271
|
+
command: 'node .claude/helpers/hook-handler.cjs session-end',
|
|
272
|
+
timeout: 5000,
|
|
248
273
|
},
|
|
249
274
|
],
|
|
250
275
|
},
|
|
251
|
-
];
|
|
252
|
-
}
|
|
253
|
-
// Stop hooks for task evaluation - always return ok by default
|
|
254
|
-
// The hook outputs JSON that Claude Code validates
|
|
255
|
-
if (config.stop) {
|
|
256
|
-
hooks.Stop = [
|
|
257
276
|
{
|
|
277
|
+
matcher: 'auto',
|
|
258
278
|
hooks: [
|
|
259
279
|
{
|
|
260
280
|
type: 'command',
|
|
261
|
-
command: '
|
|
262
|
-
timeout: 1000,
|
|
281
|
+
command: 'node .claude/helpers/hook-handler.cjs compact-auto',
|
|
263
282
|
},
|
|
264
|
-
],
|
|
265
|
-
},
|
|
266
|
-
];
|
|
267
|
-
}
|
|
268
|
-
// Notification hooks - store notifications in memory for swarm awareness
|
|
269
|
-
if (config.notification) {
|
|
270
|
-
hooks.Notification = [
|
|
271
|
-
{
|
|
272
|
-
hooks: [
|
|
273
283
|
{
|
|
274
284
|
type: 'command',
|
|
275
|
-
command: '
|
|
276
|
-
timeout:
|
|
277
|
-
continueOnError: true,
|
|
285
|
+
command: 'node .claude/helpers/hook-handler.cjs session-end',
|
|
286
|
+
timeout: 6000,
|
|
278
287
|
},
|
|
279
288
|
],
|
|
280
289
|
},
|
|
281
290
|
];
|
|
282
291
|
}
|
|
283
|
-
//
|
|
284
|
-
|
|
292
|
+
// SubagentStart — status update
|
|
293
|
+
hooks.SubagentStart = [
|
|
294
|
+
{
|
|
295
|
+
hooks: [
|
|
296
|
+
{
|
|
297
|
+
type: 'command',
|
|
298
|
+
command: 'node .claude/helpers/hook-handler.cjs status',
|
|
299
|
+
timeout: 3000,
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
},
|
|
303
|
+
];
|
|
304
|
+
// TeammateIdle — auto-assign pending tasks to idle teammates
|
|
305
|
+
hooks.TeammateIdle = [
|
|
306
|
+
{
|
|
307
|
+
hooks: [
|
|
308
|
+
{
|
|
309
|
+
type: 'command',
|
|
310
|
+
command: 'node .claude/helpers/hook-handler.cjs post-task',
|
|
311
|
+
timeout: 5000,
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
},
|
|
315
|
+
];
|
|
316
|
+
// TaskCompleted — train patterns and record completion
|
|
317
|
+
hooks.TaskCompleted = [
|
|
318
|
+
{
|
|
319
|
+
hooks: [
|
|
320
|
+
{
|
|
321
|
+
type: 'command',
|
|
322
|
+
command: 'node .claude/helpers/hook-handler.cjs post-task',
|
|
323
|
+
timeout: 5000,
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
},
|
|
327
|
+
];
|
|
285
328
|
return hooks;
|
|
286
329
|
}
|
|
287
330
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-generator.js","sourceRoot":"","sources":["../../../src/init/settings-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACnD,MAAM,QAAQ,GAA4B,EAAE,CAAC;IAE7C,uBAAuB;IACvB,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,KAAK,GAAG,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;IAED,0CAA0C;IAC1C,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC/B,QAAQ,CAAC,UAAU,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,kBAAkB;IAClB,QAAQ,CAAC,WAAW,GAAG;QACrB,
|
|
1
|
+
{"version":3,"file":"settings-generator.js","sourceRoot":"","sources":["../../../src/init/settings-generator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACnD,MAAM,QAAQ,GAA4B,EAAE,CAAC;IAE7C,uBAAuB;IACvB,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,KAAK,GAAG,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtD,CAAC;IAED,0CAA0C;IAC1C,IAAI,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QAC/B,QAAQ,CAAC,UAAU,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,kBAAkB;IAClB,QAAQ,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KACF,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAoB;IACvD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Statusline Configuration Generator
|
|
3
|
-
* Creates statusline
|
|
2
|
+
* Statusline Configuration Generator (Optimized)
|
|
3
|
+
* Creates fast, reliable statusline for V3 progress display
|
|
4
|
+
*
|
|
5
|
+
* Performance:
|
|
6
|
+
* - Single combined git execSync call (not 8+ separate ones)
|
|
7
|
+
* - process.memoryUsage() instead of ps aux
|
|
8
|
+
* - No recursive test file content reading
|
|
9
|
+
* - Shared settings cache
|
|
10
|
+
* - Strict 2s timeouts on all shell calls
|
|
4
11
|
*/
|
|
5
12
|
import type { InitOptions } from './types.js';
|
|
6
13
|
/**
|
|
7
|
-
* Generate statusline
|
|
8
|
-
*
|
|
9
|
-
* ▊ Claude Flow V3 ● user │ ⎇
|
|
14
|
+
* Generate optimized statusline script
|
|
15
|
+
* Output format:
|
|
16
|
+
* ▊ Claude Flow V3 ● user │ ⎇ branch │ Opus 4.6
|
|
10
17
|
* ─────────────────────────────────────────────────────
|
|
11
|
-
* 🏗️ DDD Domains [
|
|
12
|
-
* 🤖 Swarm ◉ [
|
|
13
|
-
* 🔧 Architecture
|
|
18
|
+
* 🏗️ DDD Domains [●●○○○] 2/5 ⚡ HNSW 150x
|
|
19
|
+
* 🤖 Swarm ◉ [ 5/15] 👥 2 🪝 10/17 🟢 CVE 3/3 💾 4MB 🧠 63%
|
|
20
|
+
* 🔧 Architecture ADRs ●71% │ DDD ● 13% │ Security ●CLEAN
|
|
21
|
+
* 📊 AgentDB Vectors ●3104⚡ │ Size 216KB │ Tests ●6 (~24 cases) │ MCP ●1/1
|
|
14
22
|
*/
|
|
15
23
|
export declare function generateStatuslineScript(options: InitOptions): string;
|
|
16
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statusline-generator.d.ts","sourceRoot":"","sources":["../../../src/init/statusline-generator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"statusline-generator.d.ts","sourceRoot":"","sources":["../../../src/init/statusline-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CA0vBrE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CA8BnE"}
|