@lumenflow/mcp 3.1.2 → 3.1.3
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/package.json +5 -5
- package/dist/bin.d.ts +0 -16
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/cli-runner.d.ts +0 -58
- package/dist/cli-runner.d.ts.map +0 -1
- package/dist/cli-runner.js +0 -164
- package/dist/cli-runner.js.map +0 -1
- package/dist/index.d.ts +0 -37
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp-constants.d.ts +0 -173
- package/dist/mcp-constants.d.ts.map +0 -1
- package/dist/mcp-constants.js +0 -193
- package/dist/mcp-constants.js.map +0 -1
- package/dist/resources.d.ts +0 -53
- package/dist/resources.d.ts.map +0 -1
- package/dist/resources.js +0 -131
- package/dist/resources.js.map +0 -1
- package/dist/runtime-cache.d.ts +0 -7
- package/dist/runtime-cache.d.ts.map +0 -1
- package/dist/runtime-cache.js +0 -28
- package/dist/runtime-cache.js.map +0 -1
- package/dist/runtime-tool-resolver.constants.d.ts +0 -33
- package/dist/runtime-tool-resolver.constants.d.ts.map +0 -1
- package/dist/runtime-tool-resolver.constants.js +0 -35
- package/dist/runtime-tool-resolver.constants.js.map +0 -1
- package/dist/runtime-tool-resolver.d.ts +0 -5
- package/dist/runtime-tool-resolver.d.ts.map +0 -1
- package/dist/runtime-tool-resolver.js +0 -2030
- package/dist/runtime-tool-resolver.js.map +0 -1
- package/dist/server.d.ts +0 -58
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js +0 -219
- package/dist/server.js.map +0 -1
- package/dist/tools/agent-tools.d.ts +0 -18
- package/dist/tools/agent-tools.d.ts.map +0 -1
- package/dist/tools/agent-tools.js +0 -235
- package/dist/tools/agent-tools.js.map +0 -1
- package/dist/tools/context-tools.d.ts +0 -13
- package/dist/tools/context-tools.d.ts.map +0 -1
- package/dist/tools/context-tools.js +0 -58
- package/dist/tools/context-tools.js.map +0 -1
- package/dist/tools/flow-tools.d.ts +0 -22
- package/dist/tools/flow-tools.d.ts.map +0 -1
- package/dist/tools/flow-tools.js +0 -130
- package/dist/tools/flow-tools.js.map +0 -1
- package/dist/tools/initiative-tools.d.ts +0 -34
- package/dist/tools/initiative-tools.d.ts.map +0 -1
- package/dist/tools/initiative-tools.js +0 -420
- package/dist/tools/initiative-tools.js.map +0 -1
- package/dist/tools/memory-tools.d.ts +0 -58
- package/dist/tools/memory-tools.d.ts.map +0 -1
- package/dist/tools/memory-tools.js +0 -523
- package/dist/tools/memory-tools.js.map +0 -1
- package/dist/tools/orchestration-tools.d.ts +0 -18
- package/dist/tools/orchestration-tools.d.ts.map +0 -1
- package/dist/tools/orchestration-tools.js +0 -202
- package/dist/tools/orchestration-tools.js.map +0 -1
- package/dist/tools/parity-tools.d.ts +0 -122
- package/dist/tools/parity-tools.d.ts.map +0 -1
- package/dist/tools/parity-tools.js +0 -1479
- package/dist/tools/parity-tools.js.map +0 -1
- package/dist/tools/runtime-task-constants.d.ts +0 -19
- package/dist/tools/runtime-task-constants.d.ts.map +0 -1
- package/dist/tools/runtime-task-constants.js +0 -21
- package/dist/tools/runtime-task-constants.js.map +0 -1
- package/dist/tools/runtime-task-tools.d.ts +0 -10
- package/dist/tools/runtime-task-tools.d.ts.map +0 -1
- package/dist/tools/runtime-task-tools.js +0 -116
- package/dist/tools/runtime-task-tools.js.map +0 -1
- package/dist/tools/setup-tools.d.ts +0 -34
- package/dist/tools/setup-tools.d.ts.map +0 -1
- package/dist/tools/setup-tools.js +0 -254
- package/dist/tools/setup-tools.js.map +0 -1
- package/dist/tools/validation-tools.d.ts +0 -26
- package/dist/tools/validation-tools.d.ts.map +0 -1
- package/dist/tools/validation-tools.js +0 -180
- package/dist/tools/validation-tools.js.map +0 -1
- package/dist/tools/wu-tools.d.ts +0 -101
- package/dist/tools/wu-tools.d.ts.map +0 -1
- package/dist/tools/wu-tools.js +0 -964
- package/dist/tools/wu-tools.js.map +0 -1
- package/dist/tools-shared.d.ts +0 -250
- package/dist/tools-shared.d.ts.map +0 -1
- package/dist/tools-shared.js +0 -403
- package/dist/tools-shared.js.map +0 -1
- package/dist/tools.d.ts +0 -97
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -248
- package/dist/tools.js.map +0 -1
- package/dist/worktree-enforcement.d.ts +0 -32
- package/dist/worktree-enforcement.d.ts.map +0 -1
- package/dist/worktree-enforcement.js +0 -154
- package/dist/worktree-enforcement.js.map +0 -1
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
-
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
-
/**
|
|
4
|
-
* @file orchestration-tools.ts
|
|
5
|
-
* @description Orchestration and delegation tool implementations
|
|
6
|
-
*
|
|
7
|
-
* WU-1642: Extracted from tools.ts during domain decomposition.
|
|
8
|
-
* WU-1425: Orchestration tools + delegation tools
|
|
9
|
-
* WU-1457: All orchestration/delegation commands use shared schemas
|
|
10
|
-
*/
|
|
11
|
-
import { orchestrateInitiativeSchema, orchestrateInitStatusSchema, orchestrateMonitorSchema, delegationListSchema, } from '@lumenflow/core';
|
|
12
|
-
import { ErrorCodes, CliArgs, SharedErrorMessages, buildExecutionContext, success, error, executeViaPack, } from '../tools-shared.js';
|
|
13
|
-
import { getRuntimeForWorkspace } from '../runtime-cache.js';
|
|
14
|
-
import { packToolCapabilityResolver } from '../runtime-tool-resolver.js';
|
|
15
|
-
import { CliCommands, MetadataKeys } from '../mcp-constants.js';
|
|
16
|
-
/**
|
|
17
|
-
* Error codes for orchestration tools
|
|
18
|
-
*/
|
|
19
|
-
const OrchestrationErrorCodes = {
|
|
20
|
-
ORCHESTRATE_INITIATIVE_ERROR: 'ORCHESTRATE_INITIATIVE_ERROR',
|
|
21
|
-
ORCHESTRATE_INIT_STATUS_ERROR: 'ORCHESTRATE_INIT_STATUS_ERROR',
|
|
22
|
-
ORCHESTRATE_MONITOR_ERROR: 'ORCHESTRATE_MONITOR_ERROR',
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Error messages for orchestration tools
|
|
26
|
-
*/
|
|
27
|
-
const OrchestrationErrorMessages = {
|
|
28
|
-
INITIATIVE_REQUIRED: SharedErrorMessages.INITIATIVE_REQUIRED,
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Error codes for delegation tools
|
|
32
|
-
*/
|
|
33
|
-
const DelegationErrorCodes = {
|
|
34
|
-
DELEGATION_LIST_ERROR: 'DELEGATION_LIST_ERROR',
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Error messages for delegation tools
|
|
38
|
-
*/
|
|
39
|
-
const DelegationErrorMessages = {
|
|
40
|
-
WU_OR_INITIATIVE_REQUIRED: 'Either wu or initiative is required',
|
|
41
|
-
};
|
|
42
|
-
const OrchestrationRuntimeMessages = {
|
|
43
|
-
ORCHESTRATION_COMPLETE: 'Orchestration complete',
|
|
44
|
-
ORCHESTRATE_INITIATIVE_FAILED: 'orchestrate:initiative failed',
|
|
45
|
-
};
|
|
46
|
-
const OrchestrationRuntimeConstants = {
|
|
47
|
-
INITIATIVE_TIMEOUT_MS: 300000,
|
|
48
|
-
};
|
|
49
|
-
function isRecord(value) {
|
|
50
|
-
return typeof value === 'object' && value !== null;
|
|
51
|
-
}
|
|
52
|
-
function toMessagePayload(data, fallbackMessage) {
|
|
53
|
-
if (typeof data === 'string' && data.trim().length > 0) {
|
|
54
|
-
return { message: data };
|
|
55
|
-
}
|
|
56
|
-
if (isRecord(data) && typeof data.message === 'string' && data.message.trim().length > 0) {
|
|
57
|
-
return { message: data.message };
|
|
58
|
-
}
|
|
59
|
-
return { message: fallbackMessage };
|
|
60
|
-
}
|
|
61
|
-
function unwrapExecuteViaPackData(data) {
|
|
62
|
-
if (!isRecord(data) || !('success' in data)) {
|
|
63
|
-
return data;
|
|
64
|
-
}
|
|
65
|
-
const successValue = data.success;
|
|
66
|
-
if (typeof successValue !== 'boolean' || !successValue) {
|
|
67
|
-
return data;
|
|
68
|
-
}
|
|
69
|
-
const outputData = data.data;
|
|
70
|
-
return outputData ?? {};
|
|
71
|
-
}
|
|
72
|
-
async function executeRuntimeTool(toolName, input, options) {
|
|
73
|
-
const projectRoot = options?.projectRoot ?? process.cwd();
|
|
74
|
-
const runtime = await getRuntimeForWorkspace(projectRoot, packToolCapabilityResolver);
|
|
75
|
-
const executionContext = buildExecutionContext({
|
|
76
|
-
metadata: {
|
|
77
|
-
[MetadataKeys.PROJECT_ROOT]: projectRoot,
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
return runtime.executeTool(toolName, input, executionContext);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* orchestrate_initiative - Orchestrate initiative execution with parallel agent spawning
|
|
84
|
-
*/
|
|
85
|
-
export const orchestrateInitiativeTool = {
|
|
86
|
-
name: 'orchestrate_initiative',
|
|
87
|
-
description: 'Orchestrate initiative execution with parallel agent spawning',
|
|
88
|
-
inputSchema: orchestrateInitiativeSchema,
|
|
89
|
-
async execute(input, options) {
|
|
90
|
-
if (!input.initiative) {
|
|
91
|
-
return error(OrchestrationErrorMessages.INITIATIVE_REQUIRED, ErrorCodes.MISSING_PARAMETER);
|
|
92
|
-
}
|
|
93
|
-
const args = [CliArgs.INITIATIVE, input.initiative];
|
|
94
|
-
if (input.dry_run)
|
|
95
|
-
args.push(CliArgs.DRY_RUN);
|
|
96
|
-
if (input.progress)
|
|
97
|
-
args.push('--progress');
|
|
98
|
-
if (input.checkpoint_per_wave)
|
|
99
|
-
args.push('--checkpoint-per-wave');
|
|
100
|
-
const result = await executeViaPack(CliCommands.ORCHESTRATE_INITIATIVE, input, {
|
|
101
|
-
projectRoot: options?.projectRoot,
|
|
102
|
-
contextInput: {
|
|
103
|
-
metadata: {
|
|
104
|
-
[MetadataKeys.PROJECT_ROOT]: options?.projectRoot,
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
fallback: {
|
|
108
|
-
command: CliCommands.ORCHESTRATE_INITIATIVE,
|
|
109
|
-
args,
|
|
110
|
-
errorCode: OrchestrationErrorCodes.ORCHESTRATE_INITIATIVE_ERROR,
|
|
111
|
-
},
|
|
112
|
-
fallbackCliOptions: {
|
|
113
|
-
timeout: OrchestrationRuntimeConstants.INITIATIVE_TIMEOUT_MS,
|
|
114
|
-
},
|
|
115
|
-
});
|
|
116
|
-
return result.success
|
|
117
|
-
? success(toMessagePayload(unwrapExecuteViaPackData(result.data), OrchestrationRuntimeMessages.ORCHESTRATION_COMPLETE))
|
|
118
|
-
: error(result.error?.message ?? OrchestrationRuntimeMessages.ORCHESTRATE_INITIATIVE_FAILED, OrchestrationErrorCodes.ORCHESTRATE_INITIATIVE_ERROR);
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* orchestrate_init_status - Show initiative progress status
|
|
123
|
-
*/
|
|
124
|
-
export const orchestrateInitStatusTool = {
|
|
125
|
-
name: 'orchestrate_init_status',
|
|
126
|
-
description: 'Show compact initiative progress status including WUs and lane availability',
|
|
127
|
-
inputSchema: orchestrateInitStatusSchema,
|
|
128
|
-
async execute(input, options) {
|
|
129
|
-
if (!input.initiative) {
|
|
130
|
-
return error(OrchestrationErrorMessages.INITIATIVE_REQUIRED, ErrorCodes.MISSING_PARAMETER);
|
|
131
|
-
}
|
|
132
|
-
try {
|
|
133
|
-
const result = await executeRuntimeTool(CliCommands.ORCHESTRATE_INIT_STATUS, { initiative: input.initiative }, options);
|
|
134
|
-
if (!result.success) {
|
|
135
|
-
return error(result.error?.message || 'orchestrate:init-status failed', OrchestrationErrorCodes.ORCHESTRATE_INIT_STATUS_ERROR);
|
|
136
|
-
}
|
|
137
|
-
return success(toMessagePayload(result.data, 'Status displayed'));
|
|
138
|
-
}
|
|
139
|
-
catch (cause) {
|
|
140
|
-
return error(cause.message || 'orchestrate:init-status failed', OrchestrationErrorCodes.ORCHESTRATE_INIT_STATUS_ERROR);
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* orchestrate_monitor - Monitor delegated agent progress and delegation health
|
|
146
|
-
*/
|
|
147
|
-
export const orchestrateMonitorTool = {
|
|
148
|
-
name: 'orchestrate_monitor',
|
|
149
|
-
description: 'Monitor delegated agent progress and delegation health (stuck detection, zombie locks)',
|
|
150
|
-
inputSchema: orchestrateMonitorSchema,
|
|
151
|
-
async execute(input, options) {
|
|
152
|
-
try {
|
|
153
|
-
const result = await executeRuntimeTool(CliCommands.ORCHESTRATE_MONITOR, {
|
|
154
|
-
threshold: input.threshold,
|
|
155
|
-
recover: input.recover,
|
|
156
|
-
dry_run: input.dry_run,
|
|
157
|
-
since: input.since,
|
|
158
|
-
wu: input.wu,
|
|
159
|
-
signals_only: input.signals_only,
|
|
160
|
-
}, options);
|
|
161
|
-
if (!result.success) {
|
|
162
|
-
return error(result.error?.message || 'orchestrate:monitor failed', OrchestrationErrorCodes.ORCHESTRATE_MONITOR_ERROR);
|
|
163
|
-
}
|
|
164
|
-
return success(toMessagePayload(result.data, 'Monitor complete'));
|
|
165
|
-
}
|
|
166
|
-
catch (cause) {
|
|
167
|
-
return error(cause.message || 'orchestrate:monitor failed', OrchestrationErrorCodes.ORCHESTRATE_MONITOR_ERROR);
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
/**
|
|
172
|
-
* delegation_list - Display delegation trees for WUs or initiatives
|
|
173
|
-
*/
|
|
174
|
-
export const delegationListTool = {
|
|
175
|
-
name: 'delegation_list',
|
|
176
|
-
description: 'Display delegation trees for WUs or initiatives',
|
|
177
|
-
inputSchema: delegationListSchema,
|
|
178
|
-
async execute(input, options) {
|
|
179
|
-
if (!input.wu && !input.initiative) {
|
|
180
|
-
return error(DelegationErrorMessages.WU_OR_INITIATIVE_REQUIRED, ErrorCodes.MISSING_PARAMETER);
|
|
181
|
-
}
|
|
182
|
-
try {
|
|
183
|
-
const result = await executeRuntimeTool(CliCommands.DELEGATION_LIST, {
|
|
184
|
-
wu: input.wu,
|
|
185
|
-
initiative: input.initiative,
|
|
186
|
-
json: input.json,
|
|
187
|
-
}, options);
|
|
188
|
-
if (!result.success) {
|
|
189
|
-
return error(result.error?.message || 'delegation:list failed', DelegationErrorCodes.DELEGATION_LIST_ERROR);
|
|
190
|
-
}
|
|
191
|
-
if (input.json) {
|
|
192
|
-
return success(result.data ?? []);
|
|
193
|
-
}
|
|
194
|
-
const messagePayload = toMessagePayload(result.data, 'Delegation list displayed');
|
|
195
|
-
return success(messagePayload);
|
|
196
|
-
}
|
|
197
|
-
catch (cause) {
|
|
198
|
-
return error(cause.message || 'delegation:list failed', DelegationErrorCodes.DELEGATION_LIST_ERROR);
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
};
|
|
202
|
-
//# sourceMappingURL=orchestration-tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-tools.js","sourceRoot":"","sources":["../../src/tools/orchestration-tools.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;GAOG;AAEH,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,OAAO,EACP,KAAK,EACL,cAAc,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,MAAM,uBAAuB,GAAG;IAC9B,4BAA4B,EAAE,8BAA8B;IAC5D,6BAA6B,EAAE,+BAA+B;IAC9D,yBAAyB,EAAE,2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,CAAC;QACjC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,KAAK,CACT,KAAe,CAAC,OAAO,IAAI,wBAAwB,EACpD,oBAAoB,CAAC,qBAAqB,CAC3C,CAAC;QACJ,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { type ToolDefinition } from '../tools-shared.js';
|
|
2
|
-
/**
|
|
3
|
-
* backlog_prune - Clean stale backlog entries
|
|
4
|
-
*/
|
|
5
|
-
export declare const backlogPruneTool: ToolDefinition;
|
|
6
|
-
/**
|
|
7
|
-
* docs_sync - Sync agent docs to existing project
|
|
8
|
-
*/
|
|
9
|
-
export declare const docsSyncTool: ToolDefinition;
|
|
10
|
-
/**
|
|
11
|
-
* gates - Public gates command
|
|
12
|
-
*/
|
|
13
|
-
export declare const gatesTool: ToolDefinition;
|
|
14
|
-
/**
|
|
15
|
-
* gates_docs - Public docs-only gates alias
|
|
16
|
-
*/
|
|
17
|
-
export declare const gatesDocsTool: ToolDefinition;
|
|
18
|
-
/**
|
|
19
|
-
* lane_health - Diagnose lane configuration issues
|
|
20
|
-
* WU-1802: Migrated from CLI shell-out to executeViaPack (runtime-first)
|
|
21
|
-
*/
|
|
22
|
-
export declare const laneHealthTool: ToolDefinition;
|
|
23
|
-
/**
|
|
24
|
-
* lane_suggest - Suggest lane definitions from project context
|
|
25
|
-
* WU-1802: Migrated from CLI shell-out to executeViaPack (runtime-first)
|
|
26
|
-
*/
|
|
27
|
-
export declare const laneSuggestTool: ToolDefinition;
|
|
28
|
-
/**
|
|
29
|
-
* lumenflow - Public initializer command
|
|
30
|
-
*/
|
|
31
|
-
export declare const lumenflowTool: ToolDefinition;
|
|
32
|
-
/**
|
|
33
|
-
* lumenflow_gates - Public gates alias
|
|
34
|
-
*/
|
|
35
|
-
export declare const lumenflowGatesTool: ToolDefinition;
|
|
36
|
-
/**
|
|
37
|
-
* state_bootstrap - Bootstrap event store from WU YAMLs
|
|
38
|
-
*/
|
|
39
|
-
export declare const stateBootstrapTool: ToolDefinition;
|
|
40
|
-
/**
|
|
41
|
-
* state_cleanup - Run unified state cleanup
|
|
42
|
-
*/
|
|
43
|
-
export declare const stateCleanupTool: ToolDefinition;
|
|
44
|
-
/**
|
|
45
|
-
* state_doctor - Diagnose and repair state issues
|
|
46
|
-
*/
|
|
47
|
-
export declare const stateDoctorTool: ToolDefinition;
|
|
48
|
-
/**
|
|
49
|
-
* sync_templates - Sync templates from source docs
|
|
50
|
-
*/
|
|
51
|
-
export declare const syncTemplatesTool: ToolDefinition;
|
|
52
|
-
/**
|
|
53
|
-
* file_read - Read file content with audit trail
|
|
54
|
-
*/
|
|
55
|
-
export declare const fileReadTool: ToolDefinition;
|
|
56
|
-
/**
|
|
57
|
-
* file_write - Write file content with audit trail
|
|
58
|
-
*/
|
|
59
|
-
export declare const fileWriteTool: ToolDefinition;
|
|
60
|
-
/**
|
|
61
|
-
* file_edit - Replace exact string matches in a file
|
|
62
|
-
*/
|
|
63
|
-
export declare const fileEditTool: ToolDefinition;
|
|
64
|
-
/**
|
|
65
|
-
* file_delete - Delete file or directory with audit trail
|
|
66
|
-
*/
|
|
67
|
-
export declare const fileDeleteTool: ToolDefinition;
|
|
68
|
-
/**
|
|
69
|
-
* git_status - Show git status
|
|
70
|
-
*/
|
|
71
|
-
export declare const gitStatusTool: ToolDefinition;
|
|
72
|
-
/**
|
|
73
|
-
* git_diff - Show git diff
|
|
74
|
-
*/
|
|
75
|
-
export declare const gitDiffTool: ToolDefinition;
|
|
76
|
-
/**
|
|
77
|
-
* git_log - Show commit history
|
|
78
|
-
*/
|
|
79
|
-
export declare const gitLogTool: ToolDefinition;
|
|
80
|
-
/**
|
|
81
|
-
* git_branch - Show branch information
|
|
82
|
-
*/
|
|
83
|
-
export declare const gitBranchTool: ToolDefinition;
|
|
84
|
-
/**
|
|
85
|
-
* init_plan - Link plan to initiative (alias)
|
|
86
|
-
*/
|
|
87
|
-
export declare const initPlanTool: ToolDefinition;
|
|
88
|
-
/**
|
|
89
|
-
* plan_create - Create a plan file
|
|
90
|
-
*/
|
|
91
|
-
export declare const planCreateTool: ToolDefinition;
|
|
92
|
-
/**
|
|
93
|
-
* plan_edit - Edit an existing plan section
|
|
94
|
-
*/
|
|
95
|
-
export declare const planEditTool: ToolDefinition;
|
|
96
|
-
/**
|
|
97
|
-
* plan_link - Link plan URI to WU/initiative
|
|
98
|
-
*/
|
|
99
|
-
export declare const planLinkTool: ToolDefinition;
|
|
100
|
-
/**
|
|
101
|
-
* plan_promote - Promote plan to approved status
|
|
102
|
-
*/
|
|
103
|
-
export declare const planPromoteTool: ToolDefinition;
|
|
104
|
-
/**
|
|
105
|
-
* signal_cleanup - Clean stale signals
|
|
106
|
-
*/
|
|
107
|
-
export declare const signalCleanupTool: ToolDefinition;
|
|
108
|
-
/**
|
|
109
|
-
* config_set - Safely update .lumenflow.config.yaml via micro-worktree
|
|
110
|
-
* WU-1902: config:set MCP parity tool
|
|
111
|
-
*/
|
|
112
|
-
export declare const configSetTool: ToolDefinition;
|
|
113
|
-
/**
|
|
114
|
-
* config_get - Read and display a value from .lumenflow.config.yaml
|
|
115
|
-
* WU-1902: config:get MCP parity tool
|
|
116
|
-
*/
|
|
117
|
-
export declare const configGetTool: ToolDefinition;
|
|
118
|
-
/**
|
|
119
|
-
* wu_proto - Create and claim a prototype WU
|
|
120
|
-
*/
|
|
121
|
-
export declare const wuProtoTool: ToolDefinition;
|
|
122
|
-
//# sourceMappingURL=parity-tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parity-tools.d.ts","sourceRoot":"","sources":["../../src/tools/parity-tools.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,KAAK,cAAc,EAUpB,MAAM,oBAAoB,CAAC;AAyR5B;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAiD9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,cAqC1B,CAAC;AAE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