@kawacode/mcp 6.9.1 → 6.9.4
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 +17 -1
- package/build/index.js +22 -2
- package/build/index.js.map +1 -1
- package/build/kawacode-on-pre-edit.d.ts +6 -1
- package/build/kawacode-on-pre-edit.js +27 -17
- package/build/kawacode-on-pre-edit.js.map +1 -1
- package/build/pre-edit/acked-decisions.d.ts +30 -0
- package/build/pre-edit/acked-decisions.js +65 -0
- package/build/pre-edit/acked-decisions.js.map +1 -0
- package/build/pre-edit/acked-decisions.test.d.ts +1 -0
- package/build/pre-edit/acked-decisions.test.js +59 -0
- package/build/pre-edit/acked-decisions.test.js.map +1 -0
- package/build/tools/_salvage-mangled-args.d.ts +38 -0
- package/build/tools/_salvage-mangled-args.js +87 -0
- package/build/tools/_salvage-mangled-args.js.map +1 -0
- package/build/tools/_salvage-mangled-args.test.d.ts +1 -0
- package/build/tools/_salvage-mangled-args.test.js +73 -0
- package/build/tools/_salvage-mangled-args.test.js.map +1 -0
- package/build/tools/complete-intent.d.ts +4 -4
- package/build/tools/complete-intent.js +14 -4
- package/build/tools/complete-intent.js.map +1 -1
- package/build/tools/edit-session-decision.d.ts +13 -12
- package/build/tools/edit-session-decision.js +14 -1
- package/build/tools/edit-session-decision.js.map +1 -1
- package/build/tools/index.d.ts +130 -89
- package/build/tools/index.js +3 -1
- package/build/tools/index.js.map +1 -1
- package/build/tools/list-team-intents.d.ts +4 -4
- package/build/tools/log-work.js +13 -2
- package/build/tools/log-work.js.map +1 -1
- package/build/tools/pre-edit-acknowledge.d.ts +11 -12
- package/build/tools/pre-edit-acknowledge.js +18 -25
- package/build/tools/pre-edit-acknowledge.js.map +1 -1
- package/build/tools/record-decision.d.ts +12 -12
- package/build/tools/resume-intent.d.ts +112 -0
- package/build/tools/resume-intent.js +87 -0
- package/build/tools/resume-intent.js.map +1 -0
- package/package.json +2 -2
package/build/tools/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema } fro
|
|
|
2
2
|
import { getRelevantContextTool, getRelevantContext, getRelevantContextSchema } from './get-relevant-context.js';
|
|
3
3
|
import { createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema } from './create-intent.js';
|
|
4
4
|
import { activateIntentTool, activateIntent, activateIntentSchema } from './activate-intent.js';
|
|
5
|
+
import { resumeIntentTool, resumeIntent, resumeIntentSchema } from './resume-intent.js';
|
|
5
6
|
import { getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema } from './get-intents-for-file.js';
|
|
6
7
|
import { getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema } from './get-intents-for-lines.js';
|
|
7
8
|
import { listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema } from './list-team-intents.js';
|
|
@@ -23,7 +24,7 @@ import { preEditAcknowledgeTool, preEditAcknowledge, preEditAcknowledgeSchema }
|
|
|
23
24
|
import { getResolutionContextTool, getResolutionContext, getResolutionContextSchema } from './get-resolution-context.js';
|
|
24
25
|
import { arbiterResolveTool, arbiterResolve, arbiterResolveSchema } from './arbiter-resolve.js';
|
|
25
26
|
import { arbiterApplyTool, arbiterApply, arbiterApplySchema } from './arbiter-apply.js';
|
|
26
|
-
export { getRelevantContextTool, getRelevantContext, getRelevantContextSchema, checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema, createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema, activateIntentTool, activateIntent, activateIntentSchema, getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema, getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema, listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema, getIntentChangesTool, getIntentChanges, getIntentChangesSchema, completeIntentTool, completeIntent, completeIntentSchema, updateIntentTool, updateIntent, updateIntentSchema, logWorkTool, logWork, logWorkSchema, recordDecisionTool, recordDecision, recordDecisionSchema, getSessionDecisionsTool, getSessionDecisions, getSessionDecisionsSchema, getProjectDecisionsTool, getProjectDecisions, getProjectDecisionsSchema, getDecisionDetailTool, getDecisionDetail, getDecisionDetailSchema, editSessionDecisionTool, editSessionDecision, editSessionDecisionSchema, detectIntentConflictsTool, detectIntentConflicts, detectIntentConflictsSchema, inferHistoryTool, inferHistory, inferHistorySchema, evolveDecisionsTool, evolveDecisions, evolveDecisionsSchema, updateFeaturesTool, updateFeatures, updateFeaturesSchema, preEditDecisionCheckTool, preEditDecisionCheck, preEditDecisionCheckSchema, preEditAcknowledgeTool, preEditAcknowledge, preEditAcknowledgeSchema, getResolutionContextTool, getResolutionContext, getResolutionContextSchema, arbiterResolveTool, arbiterResolve, arbiterResolveSchema, arbiterApplyTool, arbiterApply, arbiterApplySchema };
|
|
27
|
+
export { getRelevantContextTool, getRelevantContext, getRelevantContextSchema, checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema, createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema, activateIntentTool, activateIntent, activateIntentSchema, resumeIntentTool, resumeIntent, resumeIntentSchema, getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema, getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema, listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema, getIntentChangesTool, getIntentChanges, getIntentChangesSchema, completeIntentTool, completeIntent, completeIntentSchema, updateIntentTool, updateIntent, updateIntentSchema, logWorkTool, logWork, logWorkSchema, recordDecisionTool, recordDecision, recordDecisionSchema, getSessionDecisionsTool, getSessionDecisions, getSessionDecisionsSchema, getProjectDecisionsTool, getProjectDecisions, getProjectDecisionsSchema, getDecisionDetailTool, getDecisionDetail, getDecisionDetailSchema, editSessionDecisionTool, editSessionDecision, editSessionDecisionSchema, detectIntentConflictsTool, detectIntentConflicts, detectIntentConflictsSchema, inferHistoryTool, inferHistory, inferHistorySchema, evolveDecisionsTool, evolveDecisions, evolveDecisionsSchema, updateFeaturesTool, updateFeatures, updateFeaturesSchema, preEditDecisionCheckTool, preEditDecisionCheck, preEditDecisionCheckSchema, preEditAcknowledgeTool, preEditAcknowledge, preEditAcknowledgeSchema, getResolutionContextTool, getResolutionContext, getResolutionContextSchema, arbiterResolveTool, arbiterResolve, arbiterResolveSchema, arbiterApplyTool, arbiterApply, arbiterApplySchema };
|
|
27
28
|
export declare const allTools: ({
|
|
28
29
|
name: string;
|
|
29
30
|
description: string;
|
|
@@ -237,10 +238,8 @@ export declare const allTools: ({
|
|
|
237
238
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
238
239
|
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
239
240
|
repoPath: import("zod").ZodString;
|
|
240
|
-
filePath: import("zod").ZodString;
|
|
241
241
|
}, "strip", import("zod").ZodTypeAny, {
|
|
242
242
|
repoPath: string;
|
|
243
|
-
filePath: string;
|
|
244
243
|
repoOrigin?: string | undefined;
|
|
245
244
|
forkAuthor?: {
|
|
246
245
|
platform: "github" | "gitlab";
|
|
@@ -250,7 +249,6 @@ export declare const allTools: ({
|
|
|
250
249
|
workspaceId?: string | undefined;
|
|
251
250
|
}, {
|
|
252
251
|
repoPath: string;
|
|
253
|
-
filePath: string;
|
|
254
252
|
repoOrigin?: string | undefined;
|
|
255
253
|
forkAuthor?: {
|
|
256
254
|
platform: "github" | "gitlab";
|
|
@@ -259,7 +257,90 @@ export declare const allTools: ({
|
|
|
259
257
|
} | undefined;
|
|
260
258
|
workspaceId?: string | undefined;
|
|
261
259
|
}>;
|
|
262
|
-
handler: typeof
|
|
260
|
+
handler: typeof getIntentChanges;
|
|
261
|
+
} | {
|
|
262
|
+
name: string;
|
|
263
|
+
description: string;
|
|
264
|
+
inputSchema: import("zod").ZodObject<{
|
|
265
|
+
forkAuthor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
266
|
+
platform: import("zod").ZodEnum<["github", "gitlab"]>;
|
|
267
|
+
user: import("zod").ZodString;
|
|
268
|
+
forkOrigin: import("zod").ZodString;
|
|
269
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
270
|
+
platform: "github" | "gitlab";
|
|
271
|
+
user: string;
|
|
272
|
+
forkOrigin: string;
|
|
273
|
+
}, {
|
|
274
|
+
platform: "github" | "gitlab";
|
|
275
|
+
user: string;
|
|
276
|
+
forkOrigin: string;
|
|
277
|
+
}>>;
|
|
278
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
279
|
+
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
280
|
+
repoPath: import("zod").ZodString;
|
|
281
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
282
|
+
repoPath: string;
|
|
283
|
+
repoOrigin?: string | undefined;
|
|
284
|
+
forkAuthor?: {
|
|
285
|
+
platform: "github" | "gitlab";
|
|
286
|
+
user: string;
|
|
287
|
+
forkOrigin: string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
workspaceId?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
repoPath: string;
|
|
292
|
+
repoOrigin?: string | undefined;
|
|
293
|
+
forkAuthor?: {
|
|
294
|
+
platform: "github" | "gitlab";
|
|
295
|
+
user: string;
|
|
296
|
+
forkOrigin: string;
|
|
297
|
+
} | undefined;
|
|
298
|
+
workspaceId?: string | undefined;
|
|
299
|
+
}>;
|
|
300
|
+
handler: typeof getProjectDecisions;
|
|
301
|
+
} | {
|
|
302
|
+
name: string;
|
|
303
|
+
description: string;
|
|
304
|
+
inputSchema: import("zod").ZodObject<{
|
|
305
|
+
forkAuthor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
306
|
+
platform: import("zod").ZodEnum<["github", "gitlab"]>;
|
|
307
|
+
user: import("zod").ZodString;
|
|
308
|
+
forkOrigin: import("zod").ZodString;
|
|
309
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
310
|
+
platform: "github" | "gitlab";
|
|
311
|
+
user: string;
|
|
312
|
+
forkOrigin: string;
|
|
313
|
+
}, {
|
|
314
|
+
platform: "github" | "gitlab";
|
|
315
|
+
user: string;
|
|
316
|
+
forkOrigin: string;
|
|
317
|
+
}>>;
|
|
318
|
+
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
|
+
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
320
|
+
repoPath: import("zod").ZodString;
|
|
321
|
+
intentId: import("zod").ZodString;
|
|
322
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
323
|
+
repoPath: string;
|
|
324
|
+
intentId: string;
|
|
325
|
+
repoOrigin?: string | undefined;
|
|
326
|
+
forkAuthor?: {
|
|
327
|
+
platform: "github" | "gitlab";
|
|
328
|
+
user: string;
|
|
329
|
+
forkOrigin: string;
|
|
330
|
+
} | undefined;
|
|
331
|
+
workspaceId?: string | undefined;
|
|
332
|
+
}, {
|
|
333
|
+
repoPath: string;
|
|
334
|
+
intentId: string;
|
|
335
|
+
repoOrigin?: string | undefined;
|
|
336
|
+
forkAuthor?: {
|
|
337
|
+
platform: "github" | "gitlab";
|
|
338
|
+
user: string;
|
|
339
|
+
forkOrigin: string;
|
|
340
|
+
} | undefined;
|
|
341
|
+
workspaceId?: string | undefined;
|
|
342
|
+
}>;
|
|
343
|
+
handler: typeof resumeIntent;
|
|
263
344
|
} | {
|
|
264
345
|
name: string;
|
|
265
346
|
description: string;
|
|
@@ -281,13 +362,9 @@ export declare const allTools: ({
|
|
|
281
362
|
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
282
363
|
repoPath: import("zod").ZodString;
|
|
283
364
|
filePath: import("zod").ZodString;
|
|
284
|
-
startLine: import("zod").ZodNumber;
|
|
285
|
-
endLine: import("zod").ZodNumber;
|
|
286
365
|
}, "strip", import("zod").ZodTypeAny, {
|
|
287
366
|
repoPath: string;
|
|
288
367
|
filePath: string;
|
|
289
|
-
startLine: number;
|
|
290
|
-
endLine: number;
|
|
291
368
|
repoOrigin?: string | undefined;
|
|
292
369
|
forkAuthor?: {
|
|
293
370
|
platform: "github" | "gitlab";
|
|
@@ -298,8 +375,6 @@ export declare const allTools: ({
|
|
|
298
375
|
}, {
|
|
299
376
|
repoPath: string;
|
|
300
377
|
filePath: string;
|
|
301
|
-
startLine: number;
|
|
302
|
-
endLine: number;
|
|
303
378
|
repoOrigin?: string | undefined;
|
|
304
379
|
forkAuthor?: {
|
|
305
380
|
platform: "github" | "gitlab";
|
|
@@ -308,7 +383,7 @@ export declare const allTools: ({
|
|
|
308
383
|
} | undefined;
|
|
309
384
|
workspaceId?: string | undefined;
|
|
310
385
|
}>;
|
|
311
|
-
handler: typeof
|
|
386
|
+
handler: typeof getIntentsForFile;
|
|
312
387
|
} | {
|
|
313
388
|
name: string;
|
|
314
389
|
description: string;
|
|
@@ -329,17 +404,14 @@ export declare const allTools: ({
|
|
|
329
404
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
330
405
|
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
331
406
|
repoPath: import("zod").ZodString;
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
336
|
-
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
337
|
-
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
407
|
+
filePath: import("zod").ZodString;
|
|
408
|
+
startLine: import("zod").ZodNumber;
|
|
409
|
+
endLine: import("zod").ZodNumber;
|
|
338
410
|
}, "strip", import("zod").ZodTypeAny, {
|
|
339
411
|
repoPath: string;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
412
|
+
filePath: string;
|
|
413
|
+
startLine: number;
|
|
414
|
+
endLine: number;
|
|
343
415
|
repoOrigin?: string | undefined;
|
|
344
416
|
forkAuthor?: {
|
|
345
417
|
platform: "github" | "gitlab";
|
|
@@ -347,12 +419,11 @@ export declare const allTools: ({
|
|
|
347
419
|
forkOrigin: string;
|
|
348
420
|
} | undefined;
|
|
349
421
|
workspaceId?: string | undefined;
|
|
350
|
-
author?: string | undefined;
|
|
351
|
-
since?: string | undefined;
|
|
352
|
-
until?: string | undefined;
|
|
353
422
|
}, {
|
|
354
423
|
repoPath: string;
|
|
355
|
-
|
|
424
|
+
filePath: string;
|
|
425
|
+
startLine: number;
|
|
426
|
+
endLine: number;
|
|
356
427
|
repoOrigin?: string | undefined;
|
|
357
428
|
forkAuthor?: {
|
|
358
429
|
platform: "github" | "gitlab";
|
|
@@ -360,13 +431,8 @@ export declare const allTools: ({
|
|
|
360
431
|
forkOrigin: string;
|
|
361
432
|
} | undefined;
|
|
362
433
|
workspaceId?: string | undefined;
|
|
363
|
-
author?: string | undefined;
|
|
364
|
-
since?: string | undefined;
|
|
365
|
-
until?: string | undefined;
|
|
366
|
-
limit?: number | undefined;
|
|
367
|
-
offset?: number | undefined;
|
|
368
434
|
}>;
|
|
369
|
-
handler: typeof
|
|
435
|
+
handler: typeof getIntentsForLines;
|
|
370
436
|
} | {
|
|
371
437
|
name: string;
|
|
372
438
|
description: string;
|
|
@@ -387,8 +453,17 @@ export declare const allTools: ({
|
|
|
387
453
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
388
454
|
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
389
455
|
repoPath: import("zod").ZodString;
|
|
456
|
+
status: import("zod").ZodOptional<import("zod").ZodEnum<["active", "committed", "pushed", "done", "abandoned"]>>;
|
|
457
|
+
author: import("zod").ZodOptional<import("zod").ZodString>;
|
|
458
|
+
since: import("zod").ZodOptional<import("zod").ZodString>;
|
|
459
|
+
until: import("zod").ZodOptional<import("zod").ZodString>;
|
|
460
|
+
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
461
|
+
offset: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
390
462
|
}, "strip", import("zod").ZodTypeAny, {
|
|
391
463
|
repoPath: string;
|
|
464
|
+
limit: number;
|
|
465
|
+
offset: number;
|
|
466
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
392
467
|
repoOrigin?: string | undefined;
|
|
393
468
|
forkAuthor?: {
|
|
394
469
|
platform: "github" | "gitlab";
|
|
@@ -396,8 +471,12 @@ export declare const allTools: ({
|
|
|
396
471
|
forkOrigin: string;
|
|
397
472
|
} | undefined;
|
|
398
473
|
workspaceId?: string | undefined;
|
|
474
|
+
author?: string | undefined;
|
|
475
|
+
since?: string | undefined;
|
|
476
|
+
until?: string | undefined;
|
|
399
477
|
}, {
|
|
400
478
|
repoPath: string;
|
|
479
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
401
480
|
repoOrigin?: string | undefined;
|
|
402
481
|
forkAuthor?: {
|
|
403
482
|
platform: "github" | "gitlab";
|
|
@@ -405,8 +484,13 @@ export declare const allTools: ({
|
|
|
405
484
|
forkOrigin: string;
|
|
406
485
|
} | undefined;
|
|
407
486
|
workspaceId?: string | undefined;
|
|
487
|
+
author?: string | undefined;
|
|
488
|
+
since?: string | undefined;
|
|
489
|
+
until?: string | undefined;
|
|
490
|
+
limit?: number | undefined;
|
|
491
|
+
offset?: number | undefined;
|
|
408
492
|
}>;
|
|
409
|
-
handler: typeof
|
|
493
|
+
handler: typeof listTeamIntents;
|
|
410
494
|
} | {
|
|
411
495
|
name: string;
|
|
412
496
|
description: string;
|
|
@@ -433,7 +517,7 @@ export declare const allTools: ({
|
|
|
433
517
|
supersededBy: import("zod").ZodOptional<import("zod").ZodString>;
|
|
434
518
|
humanApproved: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
435
519
|
}, "strip", import("zod").ZodTypeAny, {
|
|
436
|
-
status: "
|
|
520
|
+
status: "done" | "abandoned" | "committed" | "pushed" | "superseded";
|
|
437
521
|
repoPath: string;
|
|
438
522
|
repoOrigin?: string | undefined;
|
|
439
523
|
forkAuthor?: {
|
|
@@ -448,7 +532,7 @@ export declare const allTools: ({
|
|
|
448
532
|
humanApproved?: boolean | undefined;
|
|
449
533
|
}, {
|
|
450
534
|
repoPath: string;
|
|
451
|
-
status?: "
|
|
535
|
+
status?: "done" | "abandoned" | "committed" | "pushed" | "superseded" | undefined;
|
|
452
536
|
repoOrigin?: string | undefined;
|
|
453
537
|
forkAuthor?: {
|
|
454
538
|
platform: "github" | "gitlab";
|
|
@@ -614,13 +698,13 @@ export declare const allTools: ({
|
|
|
614
698
|
constraint: import("zod").ZodString;
|
|
615
699
|
reason: import("zod").ZodString;
|
|
616
700
|
}, "strip", import("zod").ZodTypeAny, {
|
|
701
|
+
constraint: string;
|
|
617
702
|
reason: string;
|
|
618
703
|
alternative: string;
|
|
619
|
-
constraint: string;
|
|
620
704
|
}, {
|
|
705
|
+
constraint: string;
|
|
621
706
|
reason: string;
|
|
622
707
|
alternative: string;
|
|
623
|
-
constraint: string;
|
|
624
708
|
}>, "many">>;
|
|
625
709
|
source: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["user", "agent", "extractor", "infer_history"]>>>;
|
|
626
710
|
confidence: import("zod").ZodOptional<import("zod").ZodEnum<["high", "medium", "low"]>>;
|
|
@@ -650,7 +734,7 @@ export declare const allTools: ({
|
|
|
650
734
|
baselineSha?: string | undefined;
|
|
651
735
|
}>>;
|
|
652
736
|
}, "strip", import("zod").ZodTypeAny, {
|
|
653
|
-
type: "
|
|
737
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
654
738
|
repoPath: string;
|
|
655
739
|
summary: string;
|
|
656
740
|
intentId: string;
|
|
@@ -671,9 +755,9 @@ export declare const allTools: ({
|
|
|
671
755
|
supersedes?: string[] | undefined;
|
|
672
756
|
constraintsChecked?: string[] | undefined;
|
|
673
757
|
constraintViolations?: {
|
|
758
|
+
constraint: string;
|
|
674
759
|
reason: string;
|
|
675
760
|
alternative: string;
|
|
676
|
-
constraint: string;
|
|
677
761
|
}[] | undefined;
|
|
678
762
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
679
763
|
sourceThoughtIds?: string[] | undefined;
|
|
@@ -688,7 +772,7 @@ export declare const allTools: ({
|
|
|
688
772
|
baselineSha?: string | undefined;
|
|
689
773
|
} | undefined;
|
|
690
774
|
}, {
|
|
691
|
-
type: "
|
|
775
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
692
776
|
repoPath: string;
|
|
693
777
|
summary: string;
|
|
694
778
|
rationale: string;
|
|
@@ -708,9 +792,9 @@ export declare const allTools: ({
|
|
|
708
792
|
supersedes?: string[] | undefined;
|
|
709
793
|
constraintsChecked?: string[] | undefined;
|
|
710
794
|
constraintViolations?: {
|
|
795
|
+
constraint: string;
|
|
711
796
|
reason: string;
|
|
712
797
|
alternative: string;
|
|
713
|
-
constraint: string;
|
|
714
798
|
}[] | undefined;
|
|
715
799
|
source?: "user" | "agent" | "extractor" | "infer_history" | undefined;
|
|
716
800
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
@@ -770,46 +854,6 @@ export declare const allTools: ({
|
|
|
770
854
|
workspaceId?: string | undefined;
|
|
771
855
|
}>;
|
|
772
856
|
handler: typeof getSessionDecisions;
|
|
773
|
-
} | {
|
|
774
|
-
name: string;
|
|
775
|
-
description: string;
|
|
776
|
-
inputSchema: import("zod").ZodObject<{
|
|
777
|
-
forkAuthor: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
778
|
-
platform: import("zod").ZodEnum<["github", "gitlab"]>;
|
|
779
|
-
user: import("zod").ZodString;
|
|
780
|
-
forkOrigin: import("zod").ZodString;
|
|
781
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
782
|
-
platform: "github" | "gitlab";
|
|
783
|
-
user: string;
|
|
784
|
-
forkOrigin: string;
|
|
785
|
-
}, {
|
|
786
|
-
platform: "github" | "gitlab";
|
|
787
|
-
user: string;
|
|
788
|
-
forkOrigin: string;
|
|
789
|
-
}>>;
|
|
790
|
-
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
791
|
-
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
792
|
-
repoPath: import("zod").ZodString;
|
|
793
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
794
|
-
repoPath: string;
|
|
795
|
-
repoOrigin?: string | undefined;
|
|
796
|
-
forkAuthor?: {
|
|
797
|
-
platform: "github" | "gitlab";
|
|
798
|
-
user: string;
|
|
799
|
-
forkOrigin: string;
|
|
800
|
-
} | undefined;
|
|
801
|
-
workspaceId?: string | undefined;
|
|
802
|
-
}, {
|
|
803
|
-
repoPath: string;
|
|
804
|
-
repoOrigin?: string | undefined;
|
|
805
|
-
forkAuthor?: {
|
|
806
|
-
platform: "github" | "gitlab";
|
|
807
|
-
user: string;
|
|
808
|
-
forkOrigin: string;
|
|
809
|
-
} | undefined;
|
|
810
|
-
workspaceId?: string | undefined;
|
|
811
|
-
}>;
|
|
812
|
-
handler: typeof getProjectDecisions;
|
|
813
857
|
} | {
|
|
814
858
|
name: string;
|
|
815
859
|
description: string;
|
|
@@ -889,13 +933,13 @@ export declare const allTools: ({
|
|
|
889
933
|
constraint: import("zod").ZodString;
|
|
890
934
|
reason: import("zod").ZodString;
|
|
891
935
|
}, "strip", import("zod").ZodTypeAny, {
|
|
936
|
+
constraint: string;
|
|
892
937
|
reason: string;
|
|
893
938
|
alternative: string;
|
|
894
|
-
constraint: string;
|
|
895
939
|
}, {
|
|
940
|
+
constraint: string;
|
|
896
941
|
reason: string;
|
|
897
942
|
alternative: string;
|
|
898
|
-
constraint: string;
|
|
899
943
|
}>, "many">>;
|
|
900
944
|
appliesWhen: import("zod").ZodOptional<import("zod").ZodString>;
|
|
901
945
|
surface: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["pre-edit", "intent-create", "stop", "recall"]>, "many">>;
|
|
@@ -908,9 +952,9 @@ export declare const allTools: ({
|
|
|
908
952
|
relatedFiles?: string[] | undefined;
|
|
909
953
|
constraintsChecked?: string[] | undefined;
|
|
910
954
|
constraintViolations?: {
|
|
955
|
+
constraint: string;
|
|
911
956
|
reason: string;
|
|
912
957
|
alternative: string;
|
|
913
|
-
constraint: string;
|
|
914
958
|
}[] | undefined;
|
|
915
959
|
appliesWhen?: string | undefined;
|
|
916
960
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -923,9 +967,9 @@ export declare const allTools: ({
|
|
|
923
967
|
relatedFiles?: string[] | undefined;
|
|
924
968
|
constraintsChecked?: string[] | undefined;
|
|
925
969
|
constraintViolations?: {
|
|
970
|
+
constraint: string;
|
|
926
971
|
reason: string;
|
|
927
972
|
alternative: string;
|
|
928
|
-
constraint: string;
|
|
929
973
|
}[] | undefined;
|
|
930
974
|
appliesWhen?: string | undefined;
|
|
931
975
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -951,9 +995,9 @@ export declare const allTools: ({
|
|
|
951
995
|
relatedFiles?: string[] | undefined;
|
|
952
996
|
constraintsChecked?: string[] | undefined;
|
|
953
997
|
constraintViolations?: {
|
|
998
|
+
constraint: string;
|
|
954
999
|
reason: string;
|
|
955
1000
|
alternative: string;
|
|
956
|
-
constraint: string;
|
|
957
1001
|
}[] | undefined;
|
|
958
1002
|
appliesWhen?: string | undefined;
|
|
959
1003
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -979,9 +1023,9 @@ export declare const allTools: ({
|
|
|
979
1023
|
relatedFiles?: string[] | undefined;
|
|
980
1024
|
constraintsChecked?: string[] | undefined;
|
|
981
1025
|
constraintViolations?: {
|
|
1026
|
+
constraint: string;
|
|
982
1027
|
reason: string;
|
|
983
1028
|
alternative: string;
|
|
984
|
-
constraint: string;
|
|
985
1029
|
}[] | undefined;
|
|
986
1030
|
appliesWhen?: string | undefined;
|
|
987
1031
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -1200,7 +1244,6 @@ export declare const allTools: ({
|
|
|
1200
1244
|
}>>;
|
|
1201
1245
|
workspaceId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1202
1246
|
decisionIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1203
|
-
sessionToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1204
1247
|
repoOrigin: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1205
1248
|
repoPath: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1206
1249
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -1213,7 +1256,6 @@ export declare const allTools: ({
|
|
|
1213
1256
|
forkOrigin: string;
|
|
1214
1257
|
} | undefined;
|
|
1215
1258
|
workspaceId?: string | undefined;
|
|
1216
|
-
sessionToken?: string | undefined;
|
|
1217
1259
|
}, {
|
|
1218
1260
|
decisionIds: string[];
|
|
1219
1261
|
repoOrigin?: string | undefined;
|
|
@@ -1224,7 +1266,6 @@ export declare const allTools: ({
|
|
|
1224
1266
|
forkOrigin: string;
|
|
1225
1267
|
} | undefined;
|
|
1226
1268
|
workspaceId?: string | undefined;
|
|
1227
|
-
sessionToken?: string | undefined;
|
|
1228
1269
|
}>;
|
|
1229
1270
|
handler: typeof preEditAcknowledge;
|
|
1230
1271
|
} | {
|
package/build/tools/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema } fro
|
|
|
2
2
|
import { getRelevantContextTool, getRelevantContext, getRelevantContextSchema } from './get-relevant-context.js';
|
|
3
3
|
import { createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema } from './create-intent.js';
|
|
4
4
|
import { activateIntentTool, activateIntent, activateIntentSchema } from './activate-intent.js';
|
|
5
|
+
import { resumeIntentTool, resumeIntent, resumeIntentSchema } from './resume-intent.js';
|
|
5
6
|
import { getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema } from './get-intents-for-file.js';
|
|
6
7
|
import { getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema } from './get-intents-for-lines.js';
|
|
7
8
|
import { listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema } from './list-team-intents.js';
|
|
@@ -28,7 +29,7 @@ export {
|
|
|
28
29
|
// Relevance-based context (call per request)
|
|
29
30
|
getRelevantContextTool, getRelevantContext, getRelevantContextSchema,
|
|
30
31
|
// Intent tools
|
|
31
|
-
checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema, createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema, activateIntentTool, activateIntent, activateIntentSchema, getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema, getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema, listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema, getIntentChangesTool, getIntentChanges, getIntentChangesSchema, completeIntentTool, completeIntent, completeIntentSchema, updateIntentTool, updateIntent, updateIntentSchema,
|
|
32
|
+
checkActiveIntentTool, checkActiveIntent, checkActiveIntentSchema, createAndActivateIntentTool, createAndActivateIntent, createAndActivateIntentSchema, activateIntentTool, activateIntent, activateIntentSchema, resumeIntentTool, resumeIntent, resumeIntentSchema, getIntentsForFileTool, getIntentsForFile, getIntentsForFileSchema, getIntentsForLinesTool, getIntentsForLines, getIntentsForLinesSchema, listTeamIntentsTool, listTeamIntents, listTeamIntentsSchema, getIntentChangesTool, getIntentChanges, getIntentChangesSchema, completeIntentTool, completeIntent, completeIntentSchema, updateIntentTool, updateIntent, updateIntentSchema,
|
|
32
33
|
// Lightweight logging
|
|
33
34
|
logWorkTool, logWork, logWorkSchema,
|
|
34
35
|
// Decision recording tools
|
|
@@ -48,6 +49,7 @@ export const allTools = [
|
|
|
48
49
|
checkActiveIntentTool,
|
|
49
50
|
createAndActivateIntentTool,
|
|
50
51
|
activateIntentTool,
|
|
52
|
+
resumeIntentTool,
|
|
51
53
|
getIntentsForFileTool,
|
|
52
54
|
getIntentsForLinesTool,
|
|
53
55
|
listTeamIntentsTool,
|
package/build/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
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AAgB;IAChB,qBAAqB;IACrB,sBAAsB;IACtB,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,WAAW;IACX,2BAA2B;IAC3B,kBAAkB;IAClB,uBAAuB;IACvB,uBAAuB;IACvB,qBAAqB;IACrB,uBAAuB;IACvB,qBAAqB;IACrB,yBAAyB;IACzB,2BAA2B;IAC3B,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,0BAA0B;IAC1B,wBAAwB;IACxB,sBAAsB;IACtB,8BAA8B;IAC9B,wBAAwB;IACxB,mDAAmD;IACnD,kBAAkB;IAClB,gBAAgB;CACjB,CAAA"}
|
|
@@ -26,7 +26,7 @@ export declare const listTeamIntentsSchema: z.ZodObject<{
|
|
|
26
26
|
repoPath: string;
|
|
27
27
|
limit: number;
|
|
28
28
|
offset: number;
|
|
29
|
-
status?: "
|
|
29
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
30
30
|
repoOrigin?: string | undefined;
|
|
31
31
|
forkAuthor?: {
|
|
32
32
|
platform: "github" | "gitlab";
|
|
@@ -39,7 +39,7 @@ export declare const listTeamIntentsSchema: z.ZodObject<{
|
|
|
39
39
|
until?: string | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
repoPath: string;
|
|
42
|
-
status?: "
|
|
42
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
43
43
|
repoOrigin?: string | undefined;
|
|
44
44
|
forkAuthor?: {
|
|
45
45
|
platform: "github" | "gitlab";
|
|
@@ -102,7 +102,7 @@ export declare const listTeamIntentsTool: {
|
|
|
102
102
|
repoPath: string;
|
|
103
103
|
limit: number;
|
|
104
104
|
offset: number;
|
|
105
|
-
status?: "
|
|
105
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
106
106
|
repoOrigin?: string | undefined;
|
|
107
107
|
forkAuthor?: {
|
|
108
108
|
platform: "github" | "gitlab";
|
|
@@ -115,7 +115,7 @@ export declare const listTeamIntentsTool: {
|
|
|
115
115
|
until?: string | undefined;
|
|
116
116
|
}, {
|
|
117
117
|
repoPath: string;
|
|
118
|
-
status?: "
|
|
118
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
119
119
|
repoOrigin?: string | undefined;
|
|
120
120
|
forkAuthor?: {
|
|
121
121
|
platform: "github" | "gitlab";
|
package/build/tools/log-work.js
CHANGED
|
@@ -17,9 +17,20 @@ export async function logWork(input) {
|
|
|
17
17
|
files: input.files || [],
|
|
18
18
|
...extractForkFields(input),
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
// Positive receipt required: a logged work item always comes back with an id.
|
|
21
|
+
// `res.success !== false` alone would report success for any response that
|
|
22
|
+
// merely omits `success` (see constraint cdb76224), and the message below
|
|
23
|
+
// asserted success unconditionally.
|
|
24
|
+
const intentId = typeof res.intentId === 'string' ? res.intentId : '';
|
|
25
|
+
if (res.success === false || !intentId) {
|
|
26
|
+
return {
|
|
27
|
+
success: false,
|
|
28
|
+
intentId: '',
|
|
29
|
+
message: res.error || 'Nothing was logged (Kawa Code returned no intent id). Re-send, and report the failure rather than assuming it was captured.',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
21
32
|
return {
|
|
22
|
-
success:
|
|
33
|
+
success: true,
|
|
23
34
|
intentId,
|
|
24
35
|
message: `Logged: "${input.title}"`
|
|
25
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-work.js","sourceRoot":"","sources":["../../src/tools/log-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE3E,MA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6HAA6H;SACpJ,CAAA;IACH,CAAC;IAED,OAAO;QACL,OAAO,EAAE,IAAI;QACb,QAAQ;QACR,OAAO,EAAE,YAAY,KAAK,CAAC,KAAK,GAAG;KACpC,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,8SAA8S;IAC3T,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,OAAO;CACjB,CAAA"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Marker tool: acknowledging a pre-edit decision.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* This tool no longer writes any override state. The pre-edit hook reads THIS
|
|
6
|
+
* call's presence in the session transcript (a `pre_edit_acknowledge` tool_use
|
|
7
|
+
* naming `decisionIds`) and suppresses those decisions from future blocks — see
|
|
8
|
+
* `src/pre-edit/acked-decisions.ts` and kawa.mcp decision 59ad77ed. That
|
|
9
|
+
* transcript read lives entirely in the hook's own session namespace, so it
|
|
10
|
+
* replaces the old token-keyed `pre-edit-cache`, which silently mis-routed the
|
|
11
|
+
* override across the hook/MCP process boundary after a session restart.
|
|
12
|
+
*
|
|
13
|
+
* The only side effect here is the acted-on value-metric; the acknowledgment
|
|
14
|
+
* itself is carried by the tool_use record, not by anything this handler does.
|
|
9
15
|
*/
|
|
10
16
|
export declare const preEditAcknowledgeSchema: z.ZodObject<{
|
|
11
17
|
forkAuthor: z.ZodOptional<z.ZodObject<{
|
|
@@ -23,7 +29,6 @@ export declare const preEditAcknowledgeSchema: z.ZodObject<{
|
|
|
23
29
|
}>>;
|
|
24
30
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
25
31
|
decisionIds: z.ZodArray<z.ZodString, "many">;
|
|
26
|
-
sessionToken: z.ZodOptional<z.ZodString>;
|
|
27
32
|
repoOrigin: z.ZodOptional<z.ZodString>;
|
|
28
33
|
repoPath: z.ZodOptional<z.ZodString>;
|
|
29
34
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -36,7 +41,6 @@ export declare const preEditAcknowledgeSchema: z.ZodObject<{
|
|
|
36
41
|
forkOrigin: string;
|
|
37
42
|
} | undefined;
|
|
38
43
|
workspaceId?: string | undefined;
|
|
39
|
-
sessionToken?: string | undefined;
|
|
40
44
|
}, {
|
|
41
45
|
decisionIds: string[];
|
|
42
46
|
repoOrigin?: string | undefined;
|
|
@@ -47,12 +51,10 @@ export declare const preEditAcknowledgeSchema: z.ZodObject<{
|
|
|
47
51
|
forkOrigin: string;
|
|
48
52
|
} | undefined;
|
|
49
53
|
workspaceId?: string | undefined;
|
|
50
|
-
sessionToken?: string | undefined;
|
|
51
54
|
}>;
|
|
52
55
|
export type PreEditAcknowledgeInput = z.infer<typeof preEditAcknowledgeSchema>;
|
|
53
56
|
export interface PreEditAcknowledgeResponse {
|
|
54
57
|
acknowledged: number;
|
|
55
|
-
cacheSize: number;
|
|
56
58
|
}
|
|
57
59
|
export declare function preEditAcknowledge(input: PreEditAcknowledgeInput): Promise<PreEditAcknowledgeResponse>;
|
|
58
60
|
export declare const preEditAcknowledgeTool: {
|
|
@@ -74,7 +76,6 @@ export declare const preEditAcknowledgeTool: {
|
|
|
74
76
|
}>>;
|
|
75
77
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
76
78
|
decisionIds: z.ZodArray<z.ZodString, "many">;
|
|
77
|
-
sessionToken: z.ZodOptional<z.ZodString>;
|
|
78
79
|
repoOrigin: z.ZodOptional<z.ZodString>;
|
|
79
80
|
repoPath: z.ZodOptional<z.ZodString>;
|
|
80
81
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -87,7 +88,6 @@ export declare const preEditAcknowledgeTool: {
|
|
|
87
88
|
forkOrigin: string;
|
|
88
89
|
} | undefined;
|
|
89
90
|
workspaceId?: string | undefined;
|
|
90
|
-
sessionToken?: string | undefined;
|
|
91
91
|
}, {
|
|
92
92
|
decisionIds: string[];
|
|
93
93
|
repoOrigin?: string | undefined;
|
|
@@ -98,7 +98,6 @@ export declare const preEditAcknowledgeTool: {
|
|
|
98
98
|
forkOrigin: string;
|
|
99
99
|
} | undefined;
|
|
100
100
|
workspaceId?: string | undefined;
|
|
101
|
-
sessionToken?: string | undefined;
|
|
102
101
|
}>;
|
|
103
102
|
handler: typeof preEditAcknowledge;
|
|
104
103
|
};
|