@lumenflow/mcp 2.21.1 → 3.1.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/LICENSE +13 -185
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +2 -0
- package/dist/bin.js.map +1 -1
- package/dist/cli-runner.d.ts +0 -13
- package/dist/cli-runner.d.ts.map +1 -1
- package/dist/cli-runner.js +2 -0
- package/dist/cli-runner.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-constants.d.ts +173 -0
- package/dist/mcp-constants.d.ts.map +1 -0
- package/dist/mcp-constants.js +193 -0
- package/dist/mcp-constants.js.map +1 -0
- package/dist/resources.d.ts +0 -8
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +2 -0
- package/dist/resources.js.map +1 -1
- package/dist/runtime-cache.d.ts +7 -0
- package/dist/runtime-cache.d.ts.map +1 -0
- package/dist/runtime-cache.js +28 -0
- package/dist/runtime-cache.js.map +1 -0
- package/dist/runtime-tool-resolver.constants.d.ts +33 -0
- package/dist/runtime-tool-resolver.constants.d.ts.map +1 -0
- package/dist/runtime-tool-resolver.constants.js +35 -0
- package/dist/runtime-tool-resolver.constants.js.map +1 -0
- package/dist/runtime-tool-resolver.d.ts +5 -0
- package/dist/runtime-tool-resolver.d.ts.map +1 -0
- package/dist/runtime-tool-resolver.js +2030 -0
- package/dist/runtime-tool-resolver.js.map +1 -0
- package/dist/server.d.ts +0 -11
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +32 -4
- package/dist/server.js.map +1 -1
- package/dist/tools/agent-tools.d.ts +0 -8
- package/dist/tools/agent-tools.d.ts.map +1 -1
- package/dist/tools/agent-tools.js +115 -41
- package/dist/tools/agent-tools.js.map +1 -1
- package/dist/tools/context-tools.d.ts +1 -7
- package/dist/tools/context-tools.d.ts.map +1 -1
- package/dist/tools/context-tools.js +25 -40
- package/dist/tools/context-tools.js.map +1 -1
- package/dist/tools/flow-tools.d.ts +0 -8
- package/dist/tools/flow-tools.d.ts.map +1 -1
- package/dist/tools/flow-tools.js +53 -64
- package/dist/tools/flow-tools.js.map +1 -1
- package/dist/tools/initiative-tools.d.ts +0 -8
- package/dist/tools/initiative-tools.d.ts.map +1 -1
- package/dist/tools/initiative-tools.js +200 -84
- package/dist/tools/initiative-tools.js.map +1 -1
- package/dist/tools/memory-tools.d.ts +0 -8
- package/dist/tools/memory-tools.d.ts.map +1 -1
- package/dist/tools/memory-tools.js +270 -166
- package/dist/tools/memory-tools.js.map +1 -1
- package/dist/tools/orchestration-tools.d.ts +0 -8
- package/dist/tools/orchestration-tools.d.ts.map +1 -1
- package/dist/tools/orchestration-tools.js +101 -57
- package/dist/tools/orchestration-tools.js.map +1 -1
- package/dist/tools/parity-tools.d.ts +12 -8
- package/dist/tools/parity-tools.d.ts.map +1 -1
- package/dist/tools/parity-tools.js +778 -193
- package/dist/tools/parity-tools.js.map +1 -1
- package/dist/tools/runtime-task-constants.d.ts +19 -0
- package/dist/tools/runtime-task-constants.d.ts.map +1 -0
- package/dist/tools/runtime-task-constants.js +21 -0
- package/dist/tools/runtime-task-constants.js.map +1 -0
- package/dist/tools/runtime-task-tools.d.ts +10 -0
- package/dist/tools/runtime-task-tools.d.ts.map +1 -0
- package/dist/tools/runtime-task-tools.js +116 -0
- package/dist/tools/runtime-task-tools.js.map +1 -0
- package/dist/tools/setup-tools.d.ts +0 -8
- package/dist/tools/setup-tools.d.ts.map +1 -1
- package/dist/tools/setup-tools.js +152 -65
- package/dist/tools/setup-tools.js.map +1 -1
- package/dist/tools/validation-tools.d.ts +0 -8
- package/dist/tools/validation-tools.d.ts.map +1 -1
- package/dist/tools/validation-tools.js +100 -54
- package/dist/tools/validation-tools.js.map +1 -1
- package/dist/tools/wu-tools.d.ts +1 -11
- package/dist/tools/wu-tools.d.ts.map +1 -1
- package/dist/tools/wu-tools.js +446 -250
- package/dist/tools/wu-tools.js.map +1 -1
- package/dist/tools-shared.d.ts +81 -1
- package/dist/tools-shared.d.ts.map +1 -1
- package/dist/tools-shared.js +201 -1
- package/dist/tools-shared.js.map +1 -1
- package/dist/tools.d.ts +29 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +61 -32
- package/dist/tools.js.map +1 -1
- package/dist/worktree-enforcement.d.ts +32 -0
- package/dist/worktree-enforcement.d.ts.map +1 -0
- package/dist/worktree-enforcement.js +154 -0
- package/dist/worktree-enforcement.js.map +1 -0
- package/package.json +8 -5
package/LICENSE
CHANGED
|
@@ -1,190 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
1
|
+
Copyright (C) 2026 HellmAI
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+
This program is free software: you can redistribute it and/or modify
|
|
4
|
+
it under the terms of the GNU Affero General Public License as
|
|
5
|
+
published by the Free Software Foundation, version 3 of the License.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
This program is distributed in the hope that it will be useful,
|
|
8
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10
|
+
GNU Affero General Public License for more details.
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
You should have received a copy of the GNU Affero General Public License
|
|
13
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
the copyright owner that is granting the License.
|
|
15
|
+
SPDX-License-Identifier: AGPL-3.0-only
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
Copyright 2024 HellmAI
|
|
179
|
-
|
|
180
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
-
you may not use this file except in compliance with the License.
|
|
182
|
-
You may obtain a copy of the License at
|
|
183
|
-
|
|
184
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
-
|
|
186
|
-
Unless required by applicable law or agreed to in writing, software
|
|
187
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
-
See the License for the specific language governing permissions and
|
|
190
|
-
limitations under the License.
|
|
17
|
+
For the full license text, see the LICENSE file in the root of the
|
|
18
|
+
LumenFlow repository: https://github.com/hellmai/lumenflow-dev
|
package/dist/bin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAGA;;;;;;;;;;;;GAYG"}
|
package/dist/bin.js
CHANGED
package/dist/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,eAAe,EAAiB,MAAM,aAAa,CAAC;AAE7D;;GAEG;AACH,SAAS,GAAG,CAAC,OAAe;IAC1B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,KAAK,UAAU,IAAI;IACjB,MAA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EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;IAEvD,mBAAmB;IACnB,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;AACvB,CAAC;AAED,WAAW;AACX,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;IAC5B,GAAG,CAAC,iCAAiC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACzF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/cli-runner.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file cli-runner.ts
|
|
3
|
-
* @description CLI runner utility for shelling out to LumenFlow CLI commands
|
|
4
|
-
*
|
|
5
|
-
* WU-1412: MCP server uses CLI shell-out for write operations (wu_create, wu_claim, wu_done, gates_run)
|
|
6
|
-
* Read operations use @lumenflow/core directly for better performance and type safety.
|
|
7
|
-
*
|
|
8
|
-
* This module provides a safe, consistent way to execute CLI commands with:
|
|
9
|
-
* - Timeout support
|
|
10
|
-
* - Project root configuration
|
|
11
|
-
* - Proper error handling
|
|
12
|
-
* - Structured output
|
|
13
|
-
*/
|
|
14
1
|
/**
|
|
15
2
|
* CLI runner options
|
|
16
3
|
*/
|
package/dist/cli-runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-runner.d.ts","sourceRoot":"","sources":["../src/cli-runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-runner.d.ts","sourceRoot":"","sources":["../src/cli-runner.ts"],"names":[],"mappings":"AAsBA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;KACxB,CAAC;CACH;AAwBD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9D;AAwED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAM,EAAO,EACnB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,eAAe,CAAC,CA6B1B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,GAAG,CAAC,GAAG,IAAI,CAUpE"}
|
package/dist/cli-runner.js
CHANGED
package/dist/cli-runner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-runner.js","sourceRoot":"","sources":["../src/cli-runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAiC1C;;GAEG;AACH,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAElC;;;;;GAKG;AACH,MAAM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B,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEhE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,WAAW,GAAG,MAAM,CAAC;QACrB,MAAM,oBAAoB,GAAG,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC;QACvD,IAAI,CAAC,oBAAoB,IAAI,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9D,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IAED,OAAO,CACL,WAAW,IAAI;QACb,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,EAAE;QACV,MAAM,EAAE,0BAA0B;QAClC,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;KAC/C,CACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAI,MAAuB;IACxD,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAM,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGnG,OAAO,EACL,QAAQ,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,EACZ,KAAK,cAAc,EACnB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,aAAa,EACb,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,SAAS;AACT,OAAO,EAAE,eAAe,EAAuD,MAAM,aAAa,CAAC;AAEnG,QAAQ;AACR,OAAO,EACL,QAAQ,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,GAGb,MAAM,YAAY,CAAC;AAEpB,YAAY;AACZ,OAAO,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AAExB,aAAa;AACb,OAAO,EACL,aAAa,EACb,eAAe,GAGhB,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,SAAS;AACT,OAAO,EAAE,eAAe,EAAuD,MAAM,aAAa,CAAC;AAEnG,QAAQ;AACR,OAAO,EACL,QAAQ,EACR,cAAc,EACd,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,YAAY,GAGb,MAAM,YAAY,CAAC;AAEpB,YAAY;AACZ,OAAO,EACL,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AAExB,aAAa;AACb,OAAO,EACL,aAAa,EACb,eAAe,GAGhB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file mcp-constants.ts
|
|
3
|
+
* @description Typed source-of-truth constants for MCP governed literal families.
|
|
4
|
+
*
|
|
5
|
+
* Governed families:
|
|
6
|
+
* 1. CLI command names — canonical map of all commands dispatched via runCliCommand/executeViaPack
|
|
7
|
+
* 2. Cross-boundary metadata keys — keys used in ExecutionContext.metadata across modules
|
|
8
|
+
*
|
|
9
|
+
* Scoping rule: CLI flags are governed in tools-shared.ts (CliArgs). Only flags
|
|
10
|
+
* appearing in 3 or more tool definitions are centralized there. Tool-local flags
|
|
11
|
+
* (< 3 uses) remain as local string literals.
|
|
12
|
+
*
|
|
13
|
+
* WU-1851: Initial governance module.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Canonical CLI command name constants.
|
|
17
|
+
*
|
|
18
|
+
* Every string passed to `runCliCommand()`, `executeViaPack()`, or used in
|
|
19
|
+
* `fallback.command` MUST reference a value from this object.
|
|
20
|
+
*
|
|
21
|
+
* Organized by domain to match tool file groupings.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CliCommands: {
|
|
24
|
+
readonly WU_STATUS: "wu:status";
|
|
25
|
+
readonly WU_CREATE: "wu:create";
|
|
26
|
+
readonly WU_CLAIM: "wu:claim";
|
|
27
|
+
readonly WU_SANDBOX: "wu:sandbox";
|
|
28
|
+
readonly WU_DONE: "wu:done";
|
|
29
|
+
readonly WU_BLOCK: "wu:block";
|
|
30
|
+
readonly WU_UNBLOCK: "wu:unblock";
|
|
31
|
+
readonly WU_EDIT: "wu:edit";
|
|
32
|
+
readonly WU_RELEASE: "wu:release";
|
|
33
|
+
readonly WU_RECOVER: "wu:recover";
|
|
34
|
+
readonly WU_REPAIR: "wu:repair";
|
|
35
|
+
readonly WU_DEPS: "wu:deps";
|
|
36
|
+
readonly WU_PREP: "wu:prep";
|
|
37
|
+
readonly WU_PREFLIGHT: "wu:preflight";
|
|
38
|
+
readonly WU_PRUNE: "wu:prune";
|
|
39
|
+
readonly WU_DELETE: "wu:delete";
|
|
40
|
+
readonly WU_CLEANUP: "wu:cleanup";
|
|
41
|
+
readonly WU_BRIEF: "wu:brief";
|
|
42
|
+
readonly WU_DELEGATE: "wu:delegate";
|
|
43
|
+
readonly WU_VALIDATE: "wu:validate";
|
|
44
|
+
readonly WU_INFER_LANE: "wu:infer-lane";
|
|
45
|
+
readonly WU_UNLOCK_LANE: "wu:unlock-lane";
|
|
46
|
+
readonly WU_PROTO: "wu:proto";
|
|
47
|
+
readonly WU_LIST: "wu:list";
|
|
48
|
+
readonly GATES: "gates";
|
|
49
|
+
readonly STATE_BOOTSTRAP: "state:bootstrap";
|
|
50
|
+
readonly STATE_CLEANUP: "state:cleanup";
|
|
51
|
+
readonly STATE_DOCTOR: "state:doctor";
|
|
52
|
+
readonly BACKLOG_PRUNE: "backlog:prune";
|
|
53
|
+
readonly DOCS_SYNC: "docs:sync";
|
|
54
|
+
readonly SYNC_TEMPLATES: "sync:templates";
|
|
55
|
+
readonly LUMENFLOW: "lumenflow";
|
|
56
|
+
readonly LANE_HEALTH: "lane:health";
|
|
57
|
+
readonly LANE_SUGGEST: "lane:suggest";
|
|
58
|
+
readonly SIGNAL_CLEANUP: "signal:cleanup";
|
|
59
|
+
readonly CONFIG_SET: "config:set";
|
|
60
|
+
readonly CONFIG_GET: "config:get";
|
|
61
|
+
readonly FILE_READ: "file:read";
|
|
62
|
+
readonly FILE_WRITE: "file:write";
|
|
63
|
+
readonly FILE_EDIT: "file:edit";
|
|
64
|
+
readonly FILE_DELETE: "file:delete";
|
|
65
|
+
readonly GIT_STATUS: "git:status";
|
|
66
|
+
readonly GIT_DIFF: "git:diff";
|
|
67
|
+
readonly GIT_LOG: "git:log";
|
|
68
|
+
readonly GIT_BRANCH: "git:branch";
|
|
69
|
+
readonly INIT_PLAN: "init:plan";
|
|
70
|
+
readonly PLAN_CREATE: "plan:create";
|
|
71
|
+
readonly PLAN_EDIT: "plan:edit";
|
|
72
|
+
readonly PLAN_LINK: "plan:link";
|
|
73
|
+
readonly PLAN_PROMOTE: "plan:promote";
|
|
74
|
+
readonly LUMENFLOW_DOCTOR: "lumenflow:doctor";
|
|
75
|
+
readonly LUMENFLOW_INTEGRATE: "lumenflow:integrate";
|
|
76
|
+
readonly LUMENFLOW_UPGRADE: "lumenflow:upgrade";
|
|
77
|
+
readonly LUMENFLOW_RELEASE: "lumenflow:release";
|
|
78
|
+
readonly LUMENFLOW_VALIDATE: "lumenflow:validate";
|
|
79
|
+
readonly VALIDATE: "validate";
|
|
80
|
+
readonly VALIDATE_AGENT_SKILLS: "validate:agent-skills";
|
|
81
|
+
readonly VALIDATE_AGENT_SYNC: "validate:agent-sync";
|
|
82
|
+
readonly VALIDATE_BACKLOG_SYNC: "validate:backlog-sync";
|
|
83
|
+
readonly VALIDATE_SKILLS_SPEC: "validate:skills-spec";
|
|
84
|
+
readonly INITIATIVE_LIST: "initiative:list";
|
|
85
|
+
readonly INITIATIVE_STATUS: "initiative:status";
|
|
86
|
+
readonly INITIATIVE_CREATE: "initiative:create";
|
|
87
|
+
readonly INITIATIVE_EDIT: "initiative:edit";
|
|
88
|
+
readonly INITIATIVE_ADD_WU: "initiative:add-wu";
|
|
89
|
+
readonly INITIATIVE_REMOVE_WU: "initiative:remove-wu";
|
|
90
|
+
readonly INITIATIVE_BULK_ASSIGN: "initiative:bulk-assign";
|
|
91
|
+
readonly INITIATIVE_PLAN: "initiative:plan";
|
|
92
|
+
readonly ORCHESTRATE_INITIATIVE: "orchestrate:initiative";
|
|
93
|
+
readonly ORCHESTRATE_INIT_STATUS: "orchestrate:init-status";
|
|
94
|
+
readonly ORCHESTRATE_MONITOR: "orchestrate:monitor";
|
|
95
|
+
readonly DELEGATION_LIST: "delegation:list";
|
|
96
|
+
readonly AGENT_SESSION: "agent:session";
|
|
97
|
+
readonly AGENT_SESSION_END: "agent:session-end";
|
|
98
|
+
readonly AGENT_LOG_ISSUE: "agent:log-issue";
|
|
99
|
+
readonly AGENT_ISSUES_QUERY: "agent:issues-query";
|
|
100
|
+
readonly MEM_INIT: "mem:init";
|
|
101
|
+
readonly MEM_START: "mem:start";
|
|
102
|
+
readonly MEM_READY: "mem:ready";
|
|
103
|
+
readonly MEM_CHECKPOINT: "mem:checkpoint";
|
|
104
|
+
readonly MEM_CLEANUP: "mem:cleanup";
|
|
105
|
+
readonly MEM_CONTEXT: "mem:context";
|
|
106
|
+
readonly MEM_CREATE: "mem:create";
|
|
107
|
+
readonly MEM_DELETE: "mem:delete";
|
|
108
|
+
readonly MEM_EXPORT: "mem:export";
|
|
109
|
+
readonly MEM_INBOX: "mem:inbox";
|
|
110
|
+
readonly MEM_SIGNAL: "mem:signal";
|
|
111
|
+
readonly MEM_SUMMARIZE: "mem:summarize";
|
|
112
|
+
readonly MEM_TRIAGE: "mem:triage";
|
|
113
|
+
readonly MEM_RECOVER: "mem:recover";
|
|
114
|
+
readonly CONTEXT_GET: "context:get";
|
|
115
|
+
readonly FLOW_BOTTLENECKS: "flow:bottlenecks";
|
|
116
|
+
readonly FLOW_REPORT: "flow:report";
|
|
117
|
+
readonly METRICS_SNAPSHOT: "metrics:snapshot";
|
|
118
|
+
readonly LUMENFLOW_METRICS: "lumenflow:metrics";
|
|
119
|
+
readonly METRICS: "metrics";
|
|
120
|
+
};
|
|
121
|
+
export type CliCommandName = (typeof CliCommands)[keyof typeof CliCommands];
|
|
122
|
+
/**
|
|
123
|
+
* Metadata key constants used in ExecutionContext.metadata across MCP modules.
|
|
124
|
+
* These cross module boundaries and must be consistent.
|
|
125
|
+
*/
|
|
126
|
+
export declare const MetadataKeys: {
|
|
127
|
+
readonly PROJECT_ROOT: "project_root";
|
|
128
|
+
readonly INVOCATION_MODE: "invocation_mode";
|
|
129
|
+
};
|
|
130
|
+
export type MetadataKey = (typeof MetadataKeys)[keyof typeof MetadataKeys];
|
|
131
|
+
/**
|
|
132
|
+
* Environment variables used by MCP runtime execution policy.
|
|
133
|
+
*/
|
|
134
|
+
export declare const McpEnvironmentVariables: {
|
|
135
|
+
readonly MIGRATION_COMPAT_MODE: "LUMENFLOW_MCP_MIGRATION_COMPAT_MODE";
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Compatibility modes for executeViaPack migration fallback behavior.
|
|
139
|
+
*
|
|
140
|
+
* - compat: allow temporary CLI fallback for migration-only reasons
|
|
141
|
+
* - strict: fail closed when runtime cannot serve migration-only tools
|
|
142
|
+
*/
|
|
143
|
+
export declare const MigrationCompatModes: {
|
|
144
|
+
readonly COMPAT: "compat";
|
|
145
|
+
readonly STRICT: "strict";
|
|
146
|
+
};
|
|
147
|
+
export type MigrationCompatMode = (typeof MigrationCompatModes)[keyof typeof MigrationCompatModes];
|
|
148
|
+
/**
|
|
149
|
+
* Canonical migration fallback error codes used by executeViaPack guardrails.
|
|
150
|
+
*/
|
|
151
|
+
export declare const MigrationFallbackErrorCodes: {
|
|
152
|
+
readonly DISABLED: "MCP_MIGRATION_FALLBACK_DISABLED";
|
|
153
|
+
readonly EXECUTION_FAILED: "MCP_MIGRATION_FALLBACK_ERROR";
|
|
154
|
+
};
|
|
155
|
+
export type MigrationFallbackErrorCode = (typeof MigrationFallbackErrorCodes)[keyof typeof MigrationFallbackErrorCodes];
|
|
156
|
+
/**
|
|
157
|
+
* Structured reasons for migration fallback attempts.
|
|
158
|
+
*/
|
|
159
|
+
export declare const MigrationFallbackReasons: {
|
|
160
|
+
readonly RUNTIME_INIT_FAILED: "runtime_init_failed";
|
|
161
|
+
readonly RUNTIME_TOOL_NOT_FOUND: "runtime_tool_not_found";
|
|
162
|
+
};
|
|
163
|
+
export type MigrationFallbackReason = (typeof MigrationFallbackReasons)[keyof typeof MigrationFallbackReasons];
|
|
164
|
+
/**
|
|
165
|
+
* Structured outcomes for migration fallback telemetry events.
|
|
166
|
+
*/
|
|
167
|
+
export declare const MigrationFallbackOutcomes: {
|
|
168
|
+
readonly SUCCEEDED: "succeeded";
|
|
169
|
+
readonly FAILED: "failed";
|
|
170
|
+
readonly BLOCKED: "blocked";
|
|
171
|
+
};
|
|
172
|
+
export type MigrationFallbackOutcome = (typeof MigrationFallbackOutcomes)[keyof typeof MigrationFallbackOutcomes];
|
|
173
|
+
//# sourceMappingURL=mcp-constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-constants.d.ts","sourceRoot":"","sources":["../src/mcp-constants.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AAMH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Hd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAM5E;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAM3E;;GAEG;AACH,eAAO,MAAM,uBAAuB;;CAE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnG;;GAEG;AACH,eAAO,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