@kawacode/mcp 5.0.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.
Files changed (88) hide show
  1. package/CLAUDE.md.example +80 -0
  2. package/LICENSE +35 -0
  3. package/README.md +322 -0
  4. package/build/index.d.ts +2 -0
  5. package/build/index.js +231 -0
  6. package/build/index.js.map +1 -0
  7. package/build/prompts/intent-first-workflow.d.ts +24 -0
  8. package/build/prompts/intent-first-workflow.js +204 -0
  9. package/build/prompts/intent-first-workflow.js.map +1 -0
  10. package/build/resources/active-intent.d.ts +9 -0
  11. package/build/resources/active-intent.js +52 -0
  12. package/build/resources/active-intent.js.map +1 -0
  13. package/build/services/active-intent-store.d.ts +36 -0
  14. package/build/services/active-intent-store.js +45 -0
  15. package/build/services/active-intent-store.js.map +1 -0
  16. package/build/services/kawa-api.d.ts +131 -0
  17. package/build/services/kawa-api.js +239 -0
  18. package/build/services/kawa-api.js.map +1 -0
  19. package/build/services/muninn-ipc.d.ts +45 -0
  20. package/build/services/muninn-ipc.js +275 -0
  21. package/build/services/muninn-ipc.js.map +1 -0
  22. package/build/services/repo-encryption.d.ts +46 -0
  23. package/build/services/repo-encryption.js +92 -0
  24. package/build/services/repo-encryption.js.map +1 -0
  25. package/build/services/storage-decryption.d.ts +52 -0
  26. package/build/services/storage-decryption.js +162 -0
  27. package/build/services/storage-decryption.js.map +1 -0
  28. package/build/tools/assign-blocks.d.ts +87 -0
  29. package/build/tools/assign-blocks.js +49 -0
  30. package/build/tools/assign-blocks.js.map +1 -0
  31. package/build/tools/check-active-intent.d.ts +50 -0
  32. package/build/tools/check-active-intent.js +48 -0
  33. package/build/tools/check-active-intent.js.map +1 -0
  34. package/build/tools/complete-intent.d.ts +48 -0
  35. package/build/tools/complete-intent.js +53 -0
  36. package/build/tools/complete-intent.js.map +1 -0
  37. package/build/tools/create-intent.d.ts +58 -0
  38. package/build/tools/create-intent.js +49 -0
  39. package/build/tools/create-intent.js.map +1 -0
  40. package/build/tools/detect-intent-conflicts.d.ts +361 -0
  41. package/build/tools/detect-intent-conflicts.js +91 -0
  42. package/build/tools/detect-intent-conflicts.js.map +1 -0
  43. package/build/tools/edit-session-decision.d.ts +201 -0
  44. package/build/tools/edit-session-decision.js +50 -0
  45. package/build/tools/edit-session-decision.js.map +1 -0
  46. package/build/tools/evolve-decisions.d.ts +50 -0
  47. package/build/tools/evolve-decisions.js +45 -0
  48. package/build/tools/evolve-decisions.js.map +1 -0
  49. package/build/tools/get-intent-changes.d.ts +49 -0
  50. package/build/tools/get-intent-changes.js +58 -0
  51. package/build/tools/get-intent-changes.js.map +1 -0
  52. package/build/tools/get-intents-for-file.d.ts +57 -0
  53. package/build/tools/get-intents-for-file.js +57 -0
  54. package/build/tools/get-intents-for-file.js.map +1 -0
  55. package/build/tools/get-intents-for-lines.d.ts +71 -0
  56. package/build/tools/get-intents-for-lines.js +64 -0
  57. package/build/tools/get-intents-for-lines.js.map +1 -0
  58. package/build/tools/get-project-context.d.ts +82 -0
  59. package/build/tools/get-project-context.js +73 -0
  60. package/build/tools/get-project-context.js.map +1 -0
  61. package/build/tools/get-project-decisions.d.ts +51 -0
  62. package/build/tools/get-project-decisions.js +56 -0
  63. package/build/tools/get-project-decisions.js.map +1 -0
  64. package/build/tools/get-relevant-context.d.ts +89 -0
  65. package/build/tools/get-relevant-context.js +104 -0
  66. package/build/tools/get-relevant-context.js.map +1 -0
  67. package/build/tools/get-session-decisions.d.ts +57 -0
  68. package/build/tools/get-session-decisions.js +48 -0
  69. package/build/tools/get-session-decisions.js.map +1 -0
  70. package/build/tools/index.d.ts +656 -0
  71. package/build/tools/index.js +57 -0
  72. package/build/tools/index.js.map +1 -0
  73. package/build/tools/infer-history.d.ts +85 -0
  74. package/build/tools/infer-history.js +69 -0
  75. package/build/tools/infer-history.js.map +1 -0
  76. package/build/tools/list-team-intents.d.ts +51 -0
  77. package/build/tools/list-team-intents.js +57 -0
  78. package/build/tools/list-team-intents.js.map +1 -0
  79. package/build/tools/log-work.d.ts +45 -0
  80. package/build/tools/log-work.js +30 -0
  81. package/build/tools/log-work.js.map +1 -0
  82. package/build/tools/record-decision.d.ts +132 -0
  83. package/build/tools/record-decision.js +66 -0
  84. package/build/tools/record-decision.js.map +1 -0
  85. package/build/tools/resolve-origin.d.ts +13 -0
  86. package/build/tools/resolve-origin.js +33 -0
  87. package/build/tools/resolve-origin.js.map +1 -0
  88. package/package.json +36 -0
@@ -0,0 +1,656 @@
1
+ import { checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema } from './check-active-intent.js';
2
+ import { getRelevantContextTool, getRelevantContext, getRelevantContextSchema } from './get-relevant-context.js';
3
+ import { createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema } from './create-intent.js';
4
+ import { getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema } from './get-intents-for-file.js';
5
+ import { getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema } from './get-intents-for-lines.js';
6
+ import { assignBlocksToIntentTool, assignBlocksToIntent, assignBlocksSchema } from './assign-blocks.js';
7
+ import { listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema } from './list-team-intents.js';
8
+ import { getIntentChangesTool, getIntentChanges, getIntentChangesSchema } from './get-intent-changes.js';
9
+ import { completeIntentTool, completeIntent, completeIntentSchema } from './complete-intent.js';
10
+ import { logWorkTool, logWork, logWorkSchema } from './log-work.js';
11
+ import { recordDecisionTool, recordDecision, recordDecisionSchema } from './record-decision.js';
12
+ import { getSessionDecisionsTool, getSessionDecisions, getSessionDecisionsSchema } from './get-session-decisions.js';
13
+ import { getProjectDecisionsTool, getProjectDecisions, getProjectDecisionsSchema } from './get-project-decisions.js';
14
+ import { editSessionDecisionTool, editSessionDecision, editSessionDecisionSchema } from './edit-session-decision.js';
15
+ import { detectIntentConflictsTool, detectIntentConflicts, detectIntentConflictsSchema } from './detect-intent-conflicts.js';
16
+ import { inferHistoryTool, inferHistory, inferHistorySchema } from './infer-history.js';
17
+ import { evolveDecisionsTool, evolveDecisions, evolveDecisionsSchema } from './evolve-decisions.js';
18
+ export { getRelevantContextTool, getRelevantContext, getRelevantContextSchema, checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema, createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema, getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema, getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema, assignBlocksToIntentTool, assignBlocksToIntent, assignBlocksSchema, listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema, getIntentChangesTool, getIntentChanges, getIntentChangesSchema, completeIntentTool, completeIntent, completeIntentSchema, logWorkTool, logWork, logWorkSchema, recordDecisionTool, recordDecision, recordDecisionSchema, getSessionDecisionsTool, getSessionDecisions, getSessionDecisionsSchema, getProjectDecisionsTool, getProjectDecisions, getProjectDecisionsSchema, editSessionDecisionTool, editSessionDecision, editSessionDecisionSchema, detectIntentConflictsTool, detectIntentConflicts, detectIntentConflictsSchema, inferHistoryTool, inferHistory, inferHistorySchema, evolveDecisionsTool, evolveDecisions, evolveDecisionsSchema };
19
+ export declare const allTools: ({
20
+ name: string;
21
+ description: string;
22
+ inputSchema: import("zod").ZodObject<{
23
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
24
+ repoPath: import("zod").ZodString;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ repoPath: string;
27
+ repoOrigin?: string | undefined;
28
+ }, {
29
+ repoPath: string;
30
+ repoOrigin?: string | undefined;
31
+ }>;
32
+ handler: typeof checkActiveIntent;
33
+ } | {
34
+ name: string;
35
+ description: string;
36
+ inputSchema: import("zod").ZodObject<{
37
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
38
+ repoPath: import("zod").ZodString;
39
+ prompt: import("zod").ZodString;
40
+ activeFiles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
41
+ maxIntents: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
42
+ maxDecisions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
43
+ minRelevance: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
44
+ }, "strip", import("zod").ZodTypeAny, {
45
+ repoPath: string;
46
+ prompt: string;
47
+ maxIntents: number;
48
+ maxDecisions: number;
49
+ minRelevance: number;
50
+ repoOrigin?: string | undefined;
51
+ activeFiles?: string[] | undefined;
52
+ }, {
53
+ repoPath: string;
54
+ prompt: string;
55
+ repoOrigin?: string | undefined;
56
+ activeFiles?: string[] | undefined;
57
+ maxIntents?: number | undefined;
58
+ maxDecisions?: number | undefined;
59
+ minRelevance?: number | undefined;
60
+ }>;
61
+ handler: typeof getRelevantContext;
62
+ } | {
63
+ name: string;
64
+ description: string;
65
+ inputSchema: import("zod").ZodObject<{
66
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
67
+ repoPath: import("zod").ZodString;
68
+ title: import("zod").ZodString;
69
+ description: import("zod").ZodString;
70
+ templateType: import("zod").ZodDefault<import("zod").ZodEnum<["feature", "refactor", "exploration"]>>;
71
+ constraints: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
72
+ }, "strip", import("zod").ZodTypeAny, {
73
+ repoPath: string;
74
+ title: string;
75
+ description: string;
76
+ templateType: "feature" | "refactor" | "exploration";
77
+ repoOrigin?: string | undefined;
78
+ constraints?: string[] | undefined;
79
+ }, {
80
+ repoPath: string;
81
+ title: string;
82
+ description: string;
83
+ repoOrigin?: string | undefined;
84
+ templateType?: "feature" | "refactor" | "exploration" | undefined;
85
+ constraints?: string[] | undefined;
86
+ }>;
87
+ handler: typeof createAndActivateIntent;
88
+ } | {
89
+ name: string;
90
+ description: string;
91
+ inputSchema: import("zod").ZodObject<{
92
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
93
+ repoPath: import("zod").ZodString;
94
+ filePath: import("zod").ZodString;
95
+ }, "strip", import("zod").ZodTypeAny, {
96
+ repoPath: string;
97
+ filePath: string;
98
+ repoOrigin?: string | undefined;
99
+ }, {
100
+ repoPath: string;
101
+ filePath: string;
102
+ repoOrigin?: string | undefined;
103
+ }>;
104
+ handler: typeof getIntentsForFile;
105
+ } | {
106
+ name: string;
107
+ description: string;
108
+ inputSchema: import("zod").ZodObject<{
109
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
110
+ repoPath: import("zod").ZodString;
111
+ filePath: import("zod").ZodString;
112
+ startLine: import("zod").ZodNumber;
113
+ endLine: import("zod").ZodNumber;
114
+ }, "strip", import("zod").ZodTypeAny, {
115
+ repoPath: string;
116
+ filePath: string;
117
+ startLine: number;
118
+ endLine: number;
119
+ repoOrigin?: string | undefined;
120
+ }, {
121
+ repoPath: string;
122
+ filePath: string;
123
+ startLine: number;
124
+ endLine: number;
125
+ repoOrigin?: string | undefined;
126
+ }>;
127
+ handler: typeof getIntentsForLines;
128
+ } | {
129
+ name: string;
130
+ description: string;
131
+ inputSchema: import("zod").ZodObject<{
132
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
133
+ repoPath: import("zod").ZodString;
134
+ intentId: import("zod").ZodString;
135
+ blocks: import("zod").ZodArray<import("zod").ZodObject<{
136
+ filePath: import("zod").ZodString;
137
+ startLine: import("zod").ZodNumber;
138
+ endLine: import("zod").ZodNumber;
139
+ }, "strip", import("zod").ZodTypeAny, {
140
+ filePath: string;
141
+ startLine: number;
142
+ endLine: number;
143
+ }, {
144
+ filePath: string;
145
+ startLine: number;
146
+ endLine: number;
147
+ }>, "many">;
148
+ }, "strip", import("zod").ZodTypeAny, {
149
+ repoPath: string;
150
+ intentId: string;
151
+ blocks: {
152
+ filePath: string;
153
+ startLine: number;
154
+ endLine: number;
155
+ }[];
156
+ repoOrigin?: string | undefined;
157
+ }, {
158
+ repoPath: string;
159
+ intentId: string;
160
+ blocks: {
161
+ filePath: string;
162
+ startLine: number;
163
+ endLine: number;
164
+ }[];
165
+ repoOrigin?: string | undefined;
166
+ }>;
167
+ handler: typeof assignBlocksToIntent;
168
+ } | {
169
+ name: string;
170
+ description: string;
171
+ inputSchema: import("zod").ZodObject<{
172
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
173
+ repoPath: import("zod").ZodString;
174
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["active", "committed", "pushed", "done", "abandoned"]>>;
175
+ }, "strip", import("zod").ZodTypeAny, {
176
+ repoPath: string;
177
+ repoOrigin?: string | undefined;
178
+ status?: "active" | "committed" | "pushed" | "done" | "abandoned" | undefined;
179
+ }, {
180
+ repoPath: string;
181
+ repoOrigin?: string | undefined;
182
+ status?: "active" | "committed" | "pushed" | "done" | "abandoned" | undefined;
183
+ }>;
184
+ handler: typeof listTeamIntents;
185
+ } | {
186
+ name: string;
187
+ description: string;
188
+ inputSchema: import("zod").ZodObject<{
189
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
190
+ repoPath: import("zod").ZodString;
191
+ }, "strip", import("zod").ZodTypeAny, {
192
+ repoPath: string;
193
+ repoOrigin?: string | undefined;
194
+ }, {
195
+ repoPath: string;
196
+ repoOrigin?: string | undefined;
197
+ }>;
198
+ handler: typeof getIntentChanges;
199
+ } | {
200
+ name: string;
201
+ description: string;
202
+ inputSchema: import("zod").ZodObject<{
203
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
204
+ repoPath: import("zod").ZodString;
205
+ commitSha: import("zod").ZodOptional<import("zod").ZodString>;
206
+ status: import("zod").ZodDefault<import("zod").ZodEnum<["committed", "pushed", "done", "abandoned"]>>;
207
+ }, "strip", import("zod").ZodTypeAny, {
208
+ repoPath: string;
209
+ status: "committed" | "pushed" | "done" | "abandoned";
210
+ repoOrigin?: string | undefined;
211
+ commitSha?: string | undefined;
212
+ }, {
213
+ repoPath: string;
214
+ repoOrigin?: string | undefined;
215
+ status?: "committed" | "pushed" | "done" | "abandoned" | undefined;
216
+ commitSha?: string | undefined;
217
+ }>;
218
+ handler: typeof completeIntent;
219
+ } | {
220
+ name: string;
221
+ description: string;
222
+ inputSchema: import("zod").ZodObject<{
223
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
224
+ repoPath: import("zod").ZodString;
225
+ title: import("zod").ZodString;
226
+ files: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
227
+ }, "strip", import("zod").ZodTypeAny, {
228
+ repoPath: string;
229
+ title: string;
230
+ repoOrigin?: string | undefined;
231
+ files?: string[] | undefined;
232
+ }, {
233
+ repoPath: string;
234
+ title: string;
235
+ repoOrigin?: string | undefined;
236
+ files?: string[] | undefined;
237
+ }>;
238
+ handler: typeof logWork;
239
+ } | {
240
+ name: string;
241
+ description: string;
242
+ inputSchema: import("zod").ZodObject<{
243
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
244
+ repoPath: import("zod").ZodString;
245
+ intentId: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
246
+ type: import("zod").ZodEnum<["fork", "abandoned", "discovery", "constraint", "tradeoff", "dependency"]>;
247
+ summary: import("zod").ZodString;
248
+ rationale: import("zod").ZodString;
249
+ context: import("zod").ZodOptional<import("zod").ZodString>;
250
+ alternatives: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
251
+ consequences: import("zod").ZodOptional<import("zod").ZodString>;
252
+ relatedFiles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
253
+ constraintsChecked: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
254
+ constraintViolations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
255
+ alternative: import("zod").ZodString;
256
+ constraint: import("zod").ZodString;
257
+ reason: import("zod").ZodString;
258
+ }, "strip", import("zod").ZodTypeAny, {
259
+ alternative: string;
260
+ constraint: string;
261
+ reason: string;
262
+ }, {
263
+ alternative: string;
264
+ constraint: string;
265
+ reason: string;
266
+ }>, "many">>;
267
+ }, "strip", import("zod").ZodTypeAny, {
268
+ repoPath: string;
269
+ type: "abandoned" | "constraint" | "fork" | "discovery" | "tradeoff" | "dependency";
270
+ summary: string;
271
+ intentId: string;
272
+ rationale: string;
273
+ repoOrigin?: string | undefined;
274
+ context?: string | undefined;
275
+ alternatives?: string[] | undefined;
276
+ consequences?: string | undefined;
277
+ relatedFiles?: string[] | undefined;
278
+ constraintsChecked?: string[] | undefined;
279
+ constraintViolations?: {
280
+ alternative: string;
281
+ constraint: string;
282
+ reason: string;
283
+ }[] | undefined;
284
+ }, {
285
+ repoPath: string;
286
+ type: "abandoned" | "constraint" | "fork" | "discovery" | "tradeoff" | "dependency";
287
+ summary: string;
288
+ rationale: string;
289
+ repoOrigin?: string | undefined;
290
+ context?: string | undefined;
291
+ intentId?: string | undefined;
292
+ alternatives?: string[] | undefined;
293
+ consequences?: string | undefined;
294
+ relatedFiles?: string[] | undefined;
295
+ constraintsChecked?: string[] | undefined;
296
+ constraintViolations?: {
297
+ alternative: string;
298
+ constraint: string;
299
+ reason: string;
300
+ }[] | undefined;
301
+ }>;
302
+ handler: typeof recordDecision;
303
+ } | {
304
+ name: string;
305
+ description: string;
306
+ inputSchema: import("zod").ZodObject<{
307
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
308
+ repoPath: import("zod").ZodString;
309
+ intentId: import("zod").ZodString;
310
+ }, "strip", import("zod").ZodTypeAny, {
311
+ repoPath: string;
312
+ intentId: string;
313
+ repoOrigin?: string | undefined;
314
+ }, {
315
+ repoPath: string;
316
+ intentId: string;
317
+ repoOrigin?: string | undefined;
318
+ }>;
319
+ handler: typeof getSessionDecisions;
320
+ } | {
321
+ name: string;
322
+ description: string;
323
+ inputSchema: import("zod").ZodObject<{
324
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
325
+ repoPath: import("zod").ZodString;
326
+ }, "strip", import("zod").ZodTypeAny, {
327
+ repoPath: string;
328
+ repoOrigin?: string | undefined;
329
+ }, {
330
+ repoPath: string;
331
+ repoOrigin?: string | undefined;
332
+ }>;
333
+ handler: typeof getProjectDecisions;
334
+ } | {
335
+ name: string;
336
+ description: string;
337
+ inputSchema: import("zod").ZodObject<{
338
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
339
+ repoPath: import("zod").ZodString;
340
+ intentId: import("zod").ZodString;
341
+ decisionId: import("zod").ZodString;
342
+ action: import("zod").ZodEnum<["update", "delete"]>;
343
+ updates: import("zod").ZodOptional<import("zod").ZodObject<{
344
+ summary: import("zod").ZodOptional<import("zod").ZodString>;
345
+ rationale: import("zod").ZodOptional<import("zod").ZodString>;
346
+ context: import("zod").ZodOptional<import("zod").ZodString>;
347
+ consequences: import("zod").ZodOptional<import("zod").ZodString>;
348
+ alternatives: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
349
+ relatedFiles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
350
+ constraintsChecked: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
351
+ constraintViolations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
352
+ alternative: import("zod").ZodString;
353
+ constraint: import("zod").ZodString;
354
+ reason: import("zod").ZodString;
355
+ }, "strip", import("zod").ZodTypeAny, {
356
+ alternative: string;
357
+ constraint: string;
358
+ reason: string;
359
+ }, {
360
+ alternative: string;
361
+ constraint: string;
362
+ reason: string;
363
+ }>, "many">>;
364
+ }, "strip", import("zod").ZodTypeAny, {
365
+ context?: string | undefined;
366
+ summary?: string | undefined;
367
+ rationale?: string | undefined;
368
+ alternatives?: string[] | undefined;
369
+ consequences?: string | undefined;
370
+ relatedFiles?: string[] | undefined;
371
+ constraintsChecked?: string[] | undefined;
372
+ constraintViolations?: {
373
+ alternative: string;
374
+ constraint: string;
375
+ reason: string;
376
+ }[] | undefined;
377
+ }, {
378
+ context?: string | undefined;
379
+ summary?: string | undefined;
380
+ rationale?: string | undefined;
381
+ alternatives?: string[] | undefined;
382
+ consequences?: string | undefined;
383
+ relatedFiles?: string[] | undefined;
384
+ constraintsChecked?: string[] | undefined;
385
+ constraintViolations?: {
386
+ alternative: string;
387
+ constraint: string;
388
+ reason: string;
389
+ }[] | undefined;
390
+ }>>;
391
+ }, "strip", import("zod").ZodTypeAny, {
392
+ repoPath: string;
393
+ intentId: string;
394
+ decisionId: string;
395
+ action: "update" | "delete";
396
+ repoOrigin?: string | undefined;
397
+ updates?: {
398
+ context?: string | undefined;
399
+ summary?: string | undefined;
400
+ rationale?: string | undefined;
401
+ alternatives?: string[] | undefined;
402
+ consequences?: string | undefined;
403
+ relatedFiles?: string[] | undefined;
404
+ constraintsChecked?: string[] | undefined;
405
+ constraintViolations?: {
406
+ alternative: string;
407
+ constraint: string;
408
+ reason: string;
409
+ }[] | undefined;
410
+ } | undefined;
411
+ }, {
412
+ repoPath: string;
413
+ intentId: string;
414
+ decisionId: string;
415
+ action: "update" | "delete";
416
+ repoOrigin?: string | undefined;
417
+ updates?: {
418
+ context?: string | undefined;
419
+ summary?: string | undefined;
420
+ rationale?: string | undefined;
421
+ alternatives?: string[] | undefined;
422
+ consequences?: string | undefined;
423
+ relatedFiles?: string[] | undefined;
424
+ constraintsChecked?: string[] | undefined;
425
+ constraintViolations?: {
426
+ alternative: string;
427
+ constraint: string;
428
+ reason: string;
429
+ }[] | undefined;
430
+ } | undefined;
431
+ }>;
432
+ handler: typeof editSessionDecision;
433
+ } | {
434
+ name: string;
435
+ description: string;
436
+ inputSchema: import("zod").ZodObject<{
437
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
438
+ repoPath: import("zod").ZodString;
439
+ intentId: import("zod").ZodString;
440
+ teamDecisions: import("zod").ZodArray<import("zod").ZodObject<{
441
+ decision: import("zod").ZodObject<{
442
+ id: import("zod").ZodString;
443
+ timestamp: import("zod").ZodString;
444
+ type: import("zod").ZodString;
445
+ summary: import("zod").ZodString;
446
+ rationale: import("zod").ZodString;
447
+ context: import("zod").ZodOptional<import("zod").ZodString>;
448
+ alternatives: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
449
+ consequences: import("zod").ZodOptional<import("zod").ZodString>;
450
+ relatedFiles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
451
+ constraintsChecked: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
452
+ constraintViolations: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
453
+ alternative: import("zod").ZodString;
454
+ constraint: import("zod").ZodString;
455
+ reason: import("zod").ZodString;
456
+ }, "strip", import("zod").ZodTypeAny, {
457
+ alternative: string;
458
+ constraint: string;
459
+ reason: string;
460
+ }, {
461
+ alternative: string;
462
+ constraint: string;
463
+ reason: string;
464
+ }>, "many">>;
465
+ }, "strip", import("zod").ZodTypeAny, {
466
+ id: string;
467
+ type: string;
468
+ summary: string;
469
+ rationale: string;
470
+ timestamp: string;
471
+ context?: string | undefined;
472
+ alternatives?: string[] | undefined;
473
+ consequences?: string | undefined;
474
+ relatedFiles?: string[] | undefined;
475
+ constraintsChecked?: string[] | undefined;
476
+ constraintViolations?: {
477
+ alternative: string;
478
+ constraint: string;
479
+ reason: string;
480
+ }[] | undefined;
481
+ }, {
482
+ id: string;
483
+ type: string;
484
+ summary: string;
485
+ rationale: string;
486
+ timestamp: string;
487
+ context?: string | undefined;
488
+ alternatives?: string[] | undefined;
489
+ consequences?: string | undefined;
490
+ relatedFiles?: string[] | undefined;
491
+ constraintsChecked?: string[] | undefined;
492
+ constraintViolations?: {
493
+ alternative: string;
494
+ constraint: string;
495
+ reason: string;
496
+ }[] | undefined;
497
+ }>;
498
+ intentId: import("zod").ZodString;
499
+ authorId: import("zod").ZodString;
500
+ authorName: import("zod").ZodString;
501
+ }, "strip", import("zod").ZodTypeAny, {
502
+ decision: {
503
+ id: string;
504
+ type: string;
505
+ summary: string;
506
+ rationale: string;
507
+ timestamp: string;
508
+ context?: string | undefined;
509
+ alternatives?: string[] | undefined;
510
+ consequences?: string | undefined;
511
+ relatedFiles?: string[] | undefined;
512
+ constraintsChecked?: string[] | undefined;
513
+ constraintViolations?: {
514
+ alternative: string;
515
+ constraint: string;
516
+ reason: string;
517
+ }[] | undefined;
518
+ };
519
+ intentId: string;
520
+ authorId: string;
521
+ authorName: string;
522
+ }, {
523
+ decision: {
524
+ id: string;
525
+ type: string;
526
+ summary: string;
527
+ rationale: string;
528
+ timestamp: string;
529
+ context?: string | undefined;
530
+ alternatives?: string[] | undefined;
531
+ consequences?: string | undefined;
532
+ relatedFiles?: string[] | undefined;
533
+ constraintsChecked?: string[] | undefined;
534
+ constraintViolations?: {
535
+ alternative: string;
536
+ constraint: string;
537
+ reason: string;
538
+ }[] | undefined;
539
+ };
540
+ intentId: string;
541
+ authorId: string;
542
+ authorName: string;
543
+ }>, "many">;
544
+ }, "strip", import("zod").ZodTypeAny, {
545
+ repoPath: string;
546
+ intentId: string;
547
+ teamDecisions: {
548
+ decision: {
549
+ id: string;
550
+ type: string;
551
+ summary: string;
552
+ rationale: string;
553
+ timestamp: string;
554
+ context?: string | undefined;
555
+ alternatives?: string[] | undefined;
556
+ consequences?: string | undefined;
557
+ relatedFiles?: string[] | undefined;
558
+ constraintsChecked?: string[] | undefined;
559
+ constraintViolations?: {
560
+ alternative: string;
561
+ constraint: string;
562
+ reason: string;
563
+ }[] | undefined;
564
+ };
565
+ intentId: string;
566
+ authorId: string;
567
+ authorName: string;
568
+ }[];
569
+ repoOrigin?: string | undefined;
570
+ }, {
571
+ repoPath: string;
572
+ intentId: string;
573
+ teamDecisions: {
574
+ decision: {
575
+ id: string;
576
+ type: string;
577
+ summary: string;
578
+ rationale: string;
579
+ timestamp: string;
580
+ context?: string | undefined;
581
+ alternatives?: string[] | undefined;
582
+ consequences?: string | undefined;
583
+ relatedFiles?: string[] | undefined;
584
+ constraintsChecked?: string[] | undefined;
585
+ constraintViolations?: {
586
+ alternative: string;
587
+ constraint: string;
588
+ reason: string;
589
+ }[] | undefined;
590
+ };
591
+ intentId: string;
592
+ authorId: string;
593
+ authorName: string;
594
+ }[];
595
+ repoOrigin?: string | undefined;
596
+ }>;
597
+ handler: typeof detectIntentConflicts;
598
+ } | {
599
+ name: string;
600
+ description: string;
601
+ inputSchema: import("zod").ZodObject<{
602
+ repoPath: import("zod").ZodString;
603
+ apiKey: import("zod").ZodString;
604
+ commits: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
605
+ tier: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
606
+ contextIssues: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
607
+ model: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
608
+ maxStories: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
609
+ allowCommitSplitting: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
610
+ estimateOnly: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
611
+ }, "strip", import("zod").ZodTypeAny, {
612
+ repoPath: string;
613
+ apiKey: string;
614
+ commits: number;
615
+ tier: number;
616
+ contextIssues: boolean;
617
+ model: string;
618
+ maxStories: number;
619
+ allowCommitSplitting: boolean;
620
+ estimateOnly: boolean;
621
+ }, {
622
+ repoPath: string;
623
+ apiKey: string;
624
+ commits?: number | undefined;
625
+ tier?: number | undefined;
626
+ contextIssues?: boolean | undefined;
627
+ model?: string | undefined;
628
+ maxStories?: number | undefined;
629
+ allowCommitSplitting?: boolean | undefined;
630
+ estimateOnly?: boolean | undefined;
631
+ }>;
632
+ handler: typeof inferHistory;
633
+ } | {
634
+ name: string;
635
+ description: string;
636
+ inputSchema: import("zod").ZodObject<{
637
+ stories: import("zod").ZodArray<import("zod").ZodAny, "many">;
638
+ apiKey: import("zod").ZodString;
639
+ model: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
640
+ repoPath: import("zod").ZodOptional<import("zod").ZodString>;
641
+ repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
642
+ }, "strip", import("zod").ZodTypeAny, {
643
+ apiKey: string;
644
+ model: string;
645
+ stories: any[];
646
+ repoOrigin?: string | undefined;
647
+ repoPath?: string | undefined;
648
+ }, {
649
+ apiKey: string;
650
+ stories: any[];
651
+ repoOrigin?: string | undefined;
652
+ repoPath?: string | undefined;
653
+ model?: string | undefined;
654
+ }>;
655
+ handler: typeof evolveDecisions;
656
+ })[];