claude-flow 3.0.0-alpha.10 → 3.0.0-alpha.12
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/README.md +41 -1151
- package/bin/cli.js +30 -8
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -12
- package/dist/src/commands/agent.d.ts +0 -8
- package/dist/src/commands/agent.d.ts.map +0 -1
- package/dist/src/commands/agent.js +0 -819
- package/dist/src/commands/agent.js.map +0 -1
- package/dist/src/commands/config.d.ts +0 -8
- package/dist/src/commands/config.d.ts.map +0 -1
- package/dist/src/commands/config.js +0 -406
- package/dist/src/commands/config.js.map +0 -1
- package/dist/src/commands/daemon.d.ts +0 -8
- package/dist/src/commands/daemon.d.ts.map +0 -1
- package/dist/src/commands/daemon.js +0 -545
- package/dist/src/commands/daemon.js.map +0 -1
- package/dist/src/commands/hive-mind.d.ts +0 -8
- package/dist/src/commands/hive-mind.d.ts.map +0 -1
- package/dist/src/commands/hive-mind.js +0 -844
- package/dist/src/commands/hive-mind.js.map +0 -1
- package/dist/src/commands/hooks.d.ts +0 -8
- package/dist/src/commands/hooks.d.ts.map +0 -1
- package/dist/src/commands/hooks.js +0 -2098
- package/dist/src/commands/hooks.js.map +0 -1
- package/dist/src/commands/index.d.ts +0 -52
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/commands/index.js +0 -108
- package/dist/src/commands/index.js.map +0 -1
- package/dist/src/commands/init.d.ts +0 -8
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js +0 -532
- package/dist/src/commands/init.js.map +0 -1
- package/dist/src/commands/mcp.d.ts +0 -11
- package/dist/src/commands/mcp.d.ts.map +0 -1
- package/dist/src/commands/mcp.js +0 -662
- package/dist/src/commands/mcp.js.map +0 -1
- package/dist/src/commands/memory.d.ts +0 -8
- package/dist/src/commands/memory.d.ts.map +0 -1
- package/dist/src/commands/memory.js +0 -977
- package/dist/src/commands/memory.js.map +0 -1
- package/dist/src/commands/migrate.d.ts +0 -8
- package/dist/src/commands/migrate.d.ts.map +0 -1
- package/dist/src/commands/migrate.js +0 -398
- package/dist/src/commands/migrate.js.map +0 -1
- package/dist/src/commands/process.d.ts +0 -10
- package/dist/src/commands/process.d.ts.map +0 -1
- package/dist/src/commands/process.js +0 -641
- package/dist/src/commands/process.js.map +0 -1
- package/dist/src/commands/session.d.ts +0 -8
- package/dist/src/commands/session.d.ts.map +0 -1
- package/dist/src/commands/session.js +0 -750
- package/dist/src/commands/session.js.map +0 -1
- package/dist/src/commands/start.d.ts +0 -8
- package/dist/src/commands/start.d.ts.map +0 -1
- package/dist/src/commands/start.js +0 -398
- package/dist/src/commands/start.js.map +0 -1
- package/dist/src/commands/status.d.ts +0 -8
- package/dist/src/commands/status.d.ts.map +0 -1
- package/dist/src/commands/status.js +0 -584
- package/dist/src/commands/status.js.map +0 -1
- package/dist/src/commands/swarm.d.ts +0 -8
- package/dist/src/commands/swarm.d.ts.map +0 -1
- package/dist/src/commands/swarm.js +0 -573
- package/dist/src/commands/swarm.js.map +0 -1
- package/dist/src/commands/task.d.ts +0 -8
- package/dist/src/commands/task.d.ts.map +0 -1
- package/dist/src/commands/task.js +0 -671
- package/dist/src/commands/task.js.map +0 -1
- package/dist/src/commands/workflow.d.ts +0 -8
- package/dist/src/commands/workflow.d.ts.map +0 -1
- package/dist/src/commands/workflow.js +0 -617
- package/dist/src/commands/workflow.js.map +0 -1
- package/dist/src/config-adapter.d.ts +0 -15
- package/dist/src/config-adapter.d.ts.map +0 -1
- package/dist/src/config-adapter.js +0 -185
- package/dist/src/config-adapter.js.map +0 -1
- package/dist/src/index.d.ts +0 -55
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -353
- package/dist/src/index.js.map +0 -1
- package/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +0 -1
- package/dist/src/infrastructure/in-memory-repositories.js +0 -264
- package/dist/src/infrastructure/in-memory-repositories.js.map +0 -1
- package/dist/src/init/claudemd-generator.d.ts +0 -15
- package/dist/src/init/claudemd-generator.d.ts.map +0 -1
- package/dist/src/init/claudemd-generator.js +0 -626
- package/dist/src/init/claudemd-generator.js.map +0 -1
- package/dist/src/init/executor.d.ts +0 -11
- package/dist/src/init/executor.d.ts.map +0 -1
- package/dist/src/init/executor.js +0 -652
- package/dist/src/init/executor.js.map +0 -1
- package/dist/src/init/helpers-generator.d.ts +0 -42
- package/dist/src/init/helpers-generator.d.ts.map +0 -1
- package/dist/src/init/helpers-generator.js +0 -613
- package/dist/src/init/helpers-generator.js.map +0 -1
- package/dist/src/init/index.d.ts +0 -12
- package/dist/src/init/index.d.ts.map +0 -1
- package/dist/src/init/index.js +0 -15
- package/dist/src/init/index.js.map +0 -1
- package/dist/src/init/mcp-generator.d.ts +0 -18
- package/dist/src/init/mcp-generator.d.ts.map +0 -1
- package/dist/src/init/mcp-generator.js +0 -71
- package/dist/src/init/mcp-generator.js.map +0 -1
- package/dist/src/init/settings-generator.d.ts +0 -14
- package/dist/src/init/settings-generator.d.ts.map +0 -1
- package/dist/src/init/settings-generator.js +0 -267
- package/dist/src/init/settings-generator.js.map +0 -1
- package/dist/src/init/statusline-generator.d.ts +0 -14
- package/dist/src/init/statusline-generator.d.ts.map +0 -1
- package/dist/src/init/statusline-generator.js +0 -206
- package/dist/src/init/statusline-generator.js.map +0 -1
- package/dist/src/init/types.d.ts +0 -240
- package/dist/src/init/types.d.ts.map +0 -1
- package/dist/src/init/types.js +0 -210
- package/dist/src/init/types.js.map +0 -1
- package/dist/src/mcp-client.d.ts +0 -92
- package/dist/src/mcp-client.d.ts.map +0 -1
- package/dist/src/mcp-client.js +0 -203
- package/dist/src/mcp-client.js.map +0 -1
- package/dist/src/mcp-server.d.ts +0 -153
- package/dist/src/mcp-server.d.ts.map +0 -1
- package/dist/src/mcp-server.js +0 -453
- package/dist/src/mcp-server.js.map +0 -1
- package/dist/src/mcp-tools/agent-tools.d.ts +0 -8
- package/dist/src/mcp-tools/agent-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/agent-tools.js +0 -426
- package/dist/src/mcp-tools/agent-tools.js.map +0 -1
- package/dist/src/mcp-tools/config-tools.d.ts +0 -8
- package/dist/src/mcp-tools/config-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/config-tools.js +0 -333
- package/dist/src/mcp-tools/config-tools.js.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts +0 -8
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +0 -447
- package/dist/src/mcp-tools/hive-mind-tools.js.map +0 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts +0 -41
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/hooks-tools.js +0 -1711
- package/dist/src/mcp-tools/hooks-tools.js.map +0 -1
- package/dist/src/mcp-tools/index.d.ts +0 -16
- package/dist/src/mcp-tools/index.d.ts.map +0 -1
- package/dist/src/mcp-tools/index.js +0 -15
- package/dist/src/mcp-tools/index.js.map +0 -1
- package/dist/src/mcp-tools/memory-tools.d.ts +0 -8
- package/dist/src/mcp-tools/memory-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/memory-tools.js +0 -235
- package/dist/src/mcp-tools/memory-tools.js.map +0 -1
- package/dist/src/mcp-tools/session-tools.d.ts +0 -8
- package/dist/src/mcp-tools/session-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/session-tools.js +0 -315
- package/dist/src/mcp-tools/session-tools.js.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +0 -8
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/swarm-tools.js +0 -102
- package/dist/src/mcp-tools/swarm-tools.js.map +0 -1
- package/dist/src/mcp-tools/task-tools.d.ts +0 -8
- package/dist/src/mcp-tools/task-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/task-tools.js +0 -302
- package/dist/src/mcp-tools/task-tools.js.map +0 -1
- package/dist/src/mcp-tools/types.d.ts +0 -31
- package/dist/src/mcp-tools/types.d.ts.map +0 -1
- package/dist/src/mcp-tools/types.js +0 -7
- package/dist/src/mcp-tools/types.js.map +0 -1
- package/dist/src/mcp-tools/workflow-tools.d.ts +0 -8
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +0 -1
- package/dist/src/mcp-tools/workflow-tools.js +0 -481
- package/dist/src/mcp-tools/workflow-tools.js.map +0 -1
- package/dist/src/output.d.ts +0 -133
- package/dist/src/output.d.ts.map +0 -1
- package/dist/src/output.js +0 -513
- package/dist/src/output.js.map +0 -1
- package/dist/src/parser.d.ts +0 -41
- package/dist/src/parser.d.ts.map +0 -1
- package/dist/src/parser.js +0 -353
- package/dist/src/parser.js.map +0 -1
- package/dist/src/prompt.d.ts +0 -44
- package/dist/src/prompt.d.ts.map +0 -1
- package/dist/src/prompt.js +0 -501
- package/dist/src/prompt.js.map +0 -1
- package/dist/src/services/index.d.ts +0 -7
- package/dist/src/services/index.d.ts.map +0 -1
- package/dist/src/services/index.js +0 -6
- package/dist/src/services/index.js.map +0 -1
- package/dist/src/services/worker-daemon.d.ts +0 -153
- package/dist/src/services/worker-daemon.d.ts.map +0 -1
- package/dist/src/services/worker-daemon.js +0 -567
- package/dist/src/services/worker-daemon.js.map +0 -1
- package/dist/src/types.d.ts +0 -198
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -38
- package/dist/src/types.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/commands/agent.ts +0 -955
- package/src/commands/config.ts +0 -452
- package/src/commands/daemon.ts +0 -621
- package/src/commands/hive-mind.ts +0 -928
- package/src/commands/hooks.ts +0 -2603
- package/src/commands/index.ts +0 -118
- package/src/commands/init.ts +0 -597
- package/src/commands/mcp.ts +0 -753
- package/src/commands/memory.ts +0 -1161
- package/src/commands/migrate.ts +0 -447
- package/src/commands/process.ts +0 -695
- package/src/commands/session.ts +0 -891
- package/src/commands/start.ts +0 -457
- package/src/commands/status.ts +0 -736
- package/src/commands/swarm.ts +0 -648
- package/src/commands/task.ts +0 -792
- package/src/commands/workflow.ts +0 -742
- package/src/config-adapter.ts +0 -210
- package/src/index.ts +0 -427
- package/src/infrastructure/in-memory-repositories.ts +0 -310
- package/src/init/claudemd-generator.ts +0 -631
- package/src/init/executor.ts +0 -762
- package/src/init/helpers-generator.ts +0 -628
- package/src/init/index.ts +0 -60
- package/src/init/mcp-generator.ts +0 -83
- package/src/init/settings-generator.ts +0 -284
- package/src/init/statusline-generator.ts +0 -211
- package/src/init/types.ts +0 -447
- package/src/mcp-client.ts +0 -241
- package/src/mcp-server.ts +0 -577
- package/src/mcp-tools/agent-tools.ts +0 -466
- package/src/mcp-tools/config-tools.ts +0 -370
- package/src/mcp-tools/hive-mind-tools.ts +0 -521
- package/src/mcp-tools/hooks-tools.ts +0 -1888
- package/src/mcp-tools/index.ts +0 -16
- package/src/mcp-tools/memory-tools.ts +0 -270
- package/src/mcp-tools/session-tools.ts +0 -359
- package/src/mcp-tools/swarm-tools.ts +0 -105
- package/src/mcp-tools/task-tools.ts +0 -347
- package/src/mcp-tools/types.ts +0 -33
- package/src/mcp-tools/workflow-tools.ts +0 -573
- package/src/output.ts +0 -639
- package/src/parser.ts +0 -417
- package/src/prompt.ts +0 -619
- package/src/services/index.ts +0 -15
- package/src/services/worker-daemon.ts +0 -726
- package/src/types.ts +0 -287
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Config MCP Tools for CLI
|
|
3
|
-
*
|
|
4
|
-
* Tool definitions for configuration management with file persistence.
|
|
5
|
-
*/
|
|
6
|
-
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
7
|
-
import { join } from 'node:path';
|
|
8
|
-
// Storage paths
|
|
9
|
-
const STORAGE_DIR = '.claude-flow';
|
|
10
|
-
const CONFIG_FILE = 'config.json';
|
|
11
|
-
const DEFAULT_CONFIG = {
|
|
12
|
-
'swarm.topology': 'mesh',
|
|
13
|
-
'swarm.maxAgents': 10,
|
|
14
|
-
'swarm.autoScale': true,
|
|
15
|
-
'memory.persistInterval': 60000,
|
|
16
|
-
'memory.maxEntries': 10000,
|
|
17
|
-
'session.autoSave': true,
|
|
18
|
-
'session.saveInterval': 300000,
|
|
19
|
-
'logging.level': 'info',
|
|
20
|
-
'logging.format': 'json',
|
|
21
|
-
'security.sandboxEnabled': true,
|
|
22
|
-
'security.pathValidation': true,
|
|
23
|
-
};
|
|
24
|
-
function getConfigDir() {
|
|
25
|
-
return join(process.cwd(), STORAGE_DIR);
|
|
26
|
-
}
|
|
27
|
-
function getConfigPath() {
|
|
28
|
-
return join(getConfigDir(), CONFIG_FILE);
|
|
29
|
-
}
|
|
30
|
-
function ensureConfigDir() {
|
|
31
|
-
const dir = getConfigDir();
|
|
32
|
-
if (!existsSync(dir)) {
|
|
33
|
-
mkdirSync(dir, { recursive: true });
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function loadConfigStore() {
|
|
37
|
-
try {
|
|
38
|
-
const path = getConfigPath();
|
|
39
|
-
if (existsSync(path)) {
|
|
40
|
-
const data = readFileSync(path, 'utf-8');
|
|
41
|
-
return JSON.parse(data);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
catch {
|
|
45
|
-
// Return default store on error
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
values: { ...DEFAULT_CONFIG },
|
|
49
|
-
scopes: {},
|
|
50
|
-
version: '3.0.0',
|
|
51
|
-
updatedAt: new Date().toISOString(),
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function saveConfigStore(store) {
|
|
55
|
-
ensureConfigDir();
|
|
56
|
-
store.updatedAt = new Date().toISOString();
|
|
57
|
-
writeFileSync(getConfigPath(), JSON.stringify(store, null, 2), 'utf-8');
|
|
58
|
-
}
|
|
59
|
-
function getNestedValue(obj, key) {
|
|
60
|
-
const parts = key.split('.');
|
|
61
|
-
let current = obj;
|
|
62
|
-
for (const part of parts) {
|
|
63
|
-
if (current && typeof current === 'object' && part in current) {
|
|
64
|
-
current = current[part];
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return undefined;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return current;
|
|
71
|
-
}
|
|
72
|
-
function setNestedValue(obj, key, value) {
|
|
73
|
-
const parts = key.split('.');
|
|
74
|
-
let current = obj;
|
|
75
|
-
for (let i = 0; i < parts.length - 1; i++) {
|
|
76
|
-
const part = parts[i];
|
|
77
|
-
if (!(part in current) || typeof current[part] !== 'object') {
|
|
78
|
-
current[part] = {};
|
|
79
|
-
}
|
|
80
|
-
current = current[part];
|
|
81
|
-
}
|
|
82
|
-
current[parts[parts.length - 1]] = value;
|
|
83
|
-
}
|
|
84
|
-
export const configTools = [
|
|
85
|
-
{
|
|
86
|
-
name: 'config/get',
|
|
87
|
-
description: 'Get configuration value',
|
|
88
|
-
category: 'config',
|
|
89
|
-
inputSchema: {
|
|
90
|
-
type: 'object',
|
|
91
|
-
properties: {
|
|
92
|
-
key: { type: 'string', description: 'Configuration key (dot notation supported)' },
|
|
93
|
-
scope: { type: 'string', description: 'Configuration scope (project, user, system)' },
|
|
94
|
-
},
|
|
95
|
-
required: ['key'],
|
|
96
|
-
},
|
|
97
|
-
handler: async (input) => {
|
|
98
|
-
const store = loadConfigStore();
|
|
99
|
-
const key = input.key;
|
|
100
|
-
const scope = input.scope || 'default';
|
|
101
|
-
let value;
|
|
102
|
-
// Check scope first, then default values
|
|
103
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
104
|
-
value = store.scopes[scope][key];
|
|
105
|
-
}
|
|
106
|
-
if (value === undefined) {
|
|
107
|
-
value = store.values[key];
|
|
108
|
-
}
|
|
109
|
-
if (value === undefined) {
|
|
110
|
-
value = DEFAULT_CONFIG[key];
|
|
111
|
-
}
|
|
112
|
-
return {
|
|
113
|
-
key,
|
|
114
|
-
value,
|
|
115
|
-
scope,
|
|
116
|
-
exists: value !== undefined,
|
|
117
|
-
source: value !== undefined ? (store.values[key] !== undefined ? 'stored' : 'default') : 'none',
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'config/set',
|
|
123
|
-
description: 'Set configuration value',
|
|
124
|
-
category: 'config',
|
|
125
|
-
inputSchema: {
|
|
126
|
-
type: 'object',
|
|
127
|
-
properties: {
|
|
128
|
-
key: { type: 'string', description: 'Configuration key (dot notation supported)' },
|
|
129
|
-
value: { description: 'Configuration value' },
|
|
130
|
-
scope: { type: 'string', description: 'Configuration scope (project, user, system)' },
|
|
131
|
-
},
|
|
132
|
-
required: ['key', 'value'],
|
|
133
|
-
},
|
|
134
|
-
handler: async (input) => {
|
|
135
|
-
const store = loadConfigStore();
|
|
136
|
-
const key = input.key;
|
|
137
|
-
const value = input.value;
|
|
138
|
-
const scope = input.scope || 'default';
|
|
139
|
-
const previousValue = store.values[key];
|
|
140
|
-
if (scope === 'default') {
|
|
141
|
-
store.values[key] = value;
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
if (!store.scopes[scope]) {
|
|
145
|
-
store.scopes[scope] = {};
|
|
146
|
-
}
|
|
147
|
-
store.scopes[scope][key] = value;
|
|
148
|
-
}
|
|
149
|
-
saveConfigStore(store);
|
|
150
|
-
return {
|
|
151
|
-
success: true,
|
|
152
|
-
key,
|
|
153
|
-
value,
|
|
154
|
-
previousValue,
|
|
155
|
-
scope,
|
|
156
|
-
path: getConfigPath(),
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
name: 'config/list',
|
|
162
|
-
description: 'List configuration values',
|
|
163
|
-
category: 'config',
|
|
164
|
-
inputSchema: {
|
|
165
|
-
type: 'object',
|
|
166
|
-
properties: {
|
|
167
|
-
scope: { type: 'string', description: 'Configuration scope' },
|
|
168
|
-
prefix: { type: 'string', description: 'Key prefix filter' },
|
|
169
|
-
includeDefaults: { type: 'boolean', description: 'Include default values' },
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
handler: async (input) => {
|
|
173
|
-
const store = loadConfigStore();
|
|
174
|
-
const scope = input.scope || 'default';
|
|
175
|
-
const prefix = input.prefix;
|
|
176
|
-
const includeDefaults = input.includeDefaults !== false;
|
|
177
|
-
// Merge stored values with defaults
|
|
178
|
-
let configs = {};
|
|
179
|
-
if (includeDefaults) {
|
|
180
|
-
configs = { ...DEFAULT_CONFIG };
|
|
181
|
-
}
|
|
182
|
-
// Add stored values
|
|
183
|
-
Object.assign(configs, store.values);
|
|
184
|
-
// Add scope-specific values
|
|
185
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
186
|
-
Object.assign(configs, store.scopes[scope]);
|
|
187
|
-
}
|
|
188
|
-
// Filter by prefix
|
|
189
|
-
let entries = Object.entries(configs);
|
|
190
|
-
if (prefix) {
|
|
191
|
-
entries = entries.filter(([key]) => key.startsWith(prefix));
|
|
192
|
-
}
|
|
193
|
-
// Sort by key
|
|
194
|
-
entries.sort(([a], [b]) => a.localeCompare(b));
|
|
195
|
-
return {
|
|
196
|
-
configs: entries.map(([key, value]) => ({
|
|
197
|
-
key,
|
|
198
|
-
value,
|
|
199
|
-
source: store.values[key] !== undefined ? 'stored' : 'default',
|
|
200
|
-
})),
|
|
201
|
-
total: entries.length,
|
|
202
|
-
scope,
|
|
203
|
-
updatedAt: store.updatedAt,
|
|
204
|
-
};
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'config/reset',
|
|
209
|
-
description: 'Reset configuration to defaults',
|
|
210
|
-
category: 'config',
|
|
211
|
-
inputSchema: {
|
|
212
|
-
type: 'object',
|
|
213
|
-
properties: {
|
|
214
|
-
scope: { type: 'string', description: 'Configuration scope' },
|
|
215
|
-
key: { type: 'string', description: 'Specific key to reset (omit to reset all)' },
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
handler: async (input) => {
|
|
219
|
-
const store = loadConfigStore();
|
|
220
|
-
const scope = input.scope || 'default';
|
|
221
|
-
const key = input.key;
|
|
222
|
-
let resetKeys = [];
|
|
223
|
-
if (key) {
|
|
224
|
-
// Reset specific key
|
|
225
|
-
if (scope === 'default') {
|
|
226
|
-
if (key in store.values) {
|
|
227
|
-
delete store.values[key];
|
|
228
|
-
resetKeys.push(key);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
else if (store.scopes[scope] && key in store.scopes[scope]) {
|
|
232
|
-
delete store.scopes[scope][key];
|
|
233
|
-
resetKeys.push(key);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
// Reset all keys in scope
|
|
238
|
-
if (scope === 'default') {
|
|
239
|
-
resetKeys = Object.keys(store.values);
|
|
240
|
-
store.values = { ...DEFAULT_CONFIG };
|
|
241
|
-
}
|
|
242
|
-
else if (store.scopes[scope]) {
|
|
243
|
-
resetKeys = Object.keys(store.scopes[scope]);
|
|
244
|
-
delete store.scopes[scope];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
saveConfigStore(store);
|
|
248
|
-
return {
|
|
249
|
-
success: true,
|
|
250
|
-
scope,
|
|
251
|
-
reset: key || 'all',
|
|
252
|
-
resetKeys,
|
|
253
|
-
count: resetKeys.length,
|
|
254
|
-
};
|
|
255
|
-
},
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
name: 'config/export',
|
|
259
|
-
description: 'Export configuration to JSON',
|
|
260
|
-
category: 'config',
|
|
261
|
-
inputSchema: {
|
|
262
|
-
type: 'object',
|
|
263
|
-
properties: {
|
|
264
|
-
scope: { type: 'string', description: 'Configuration scope' },
|
|
265
|
-
includeDefaults: { type: 'boolean', description: 'Include default values' },
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
handler: async (input) => {
|
|
269
|
-
const store = loadConfigStore();
|
|
270
|
-
const scope = input.scope || 'default';
|
|
271
|
-
const includeDefaults = input.includeDefaults !== false;
|
|
272
|
-
let exportData = {};
|
|
273
|
-
if (includeDefaults) {
|
|
274
|
-
exportData = { ...DEFAULT_CONFIG };
|
|
275
|
-
}
|
|
276
|
-
Object.assign(exportData, store.values);
|
|
277
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
278
|
-
Object.assign(exportData, store.scopes[scope]);
|
|
279
|
-
}
|
|
280
|
-
return {
|
|
281
|
-
config: exportData,
|
|
282
|
-
scope,
|
|
283
|
-
version: store.version,
|
|
284
|
-
exportedAt: new Date().toISOString(),
|
|
285
|
-
count: Object.keys(exportData).length,
|
|
286
|
-
};
|
|
287
|
-
},
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
name: 'config/import',
|
|
291
|
-
description: 'Import configuration from JSON',
|
|
292
|
-
category: 'config',
|
|
293
|
-
inputSchema: {
|
|
294
|
-
type: 'object',
|
|
295
|
-
properties: {
|
|
296
|
-
config: { type: 'object', description: 'Configuration object to import' },
|
|
297
|
-
scope: { type: 'string', description: 'Configuration scope' },
|
|
298
|
-
merge: { type: 'boolean', description: 'Merge with existing (true) or replace (false)' },
|
|
299
|
-
},
|
|
300
|
-
required: ['config'],
|
|
301
|
-
},
|
|
302
|
-
handler: async (input) => {
|
|
303
|
-
const store = loadConfigStore();
|
|
304
|
-
const config = input.config;
|
|
305
|
-
const scope = input.scope || 'default';
|
|
306
|
-
const merge = input.merge !== false;
|
|
307
|
-
const importedKeys = Object.keys(config);
|
|
308
|
-
if (scope === 'default') {
|
|
309
|
-
if (merge) {
|
|
310
|
-
Object.assign(store.values, config);
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
store.values = { ...DEFAULT_CONFIG, ...config };
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
if (!store.scopes[scope] || !merge) {
|
|
318
|
-
store.scopes[scope] = {};
|
|
319
|
-
}
|
|
320
|
-
Object.assign(store.scopes[scope], config);
|
|
321
|
-
}
|
|
322
|
-
saveConfigStore(store);
|
|
323
|
-
return {
|
|
324
|
-
success: true,
|
|
325
|
-
scope,
|
|
326
|
-
imported: importedKeys.length,
|
|
327
|
-
keys: importedKeys,
|
|
328
|
-
merge,
|
|
329
|
-
};
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
];
|
|
333
|
-
//# sourceMappingURL=config-tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-tools.js","sourceRoot":"","sources":["../../../src/mcp-tools/config-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,gBAAgB;AAChB,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,MAAM,WAAW,GAAG,aAAa,CAAC;AASlC,MAAM,cAAc,GAA4B;IAC9C,gBAAgB,EAAE,MAAM;IACxB,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,IAAI;IACvB,wBAAwB,EAAE,KAAK;IAC/B,mBAAmB,EAAE,KAAK;IAC1B,kBAAkB,EAAE,IAAI;IACxB,sBAAsB,EAAE,MAAM;IAC9B,eAAe,EAAE,MAAM;IACvB,gBAAgB,EAAE,MAAM;IACxB,yBAAyB,EAAE,IAAI;IAC/B,yBAAyB,EAAE,IAAI;CAChC,CAAC;AAEF,SAAS,YAAY;IACnB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,aAAa;IACpB,OAAO,IAAI,CAAC,YAAY,EAAE,EAAE,WAAW,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,eAAe;IACtB,MAAM,GAAG,GAAG,YAAY,EAAE,C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