@kawacode/mcp 6.9.3 → 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 +4 -1
- package/build/index.js.map +1 -1
- package/build/tools/complete-intent.d.ts +4 -4
- package/build/tools/edit-session-decision.d.ts +12 -12
- package/build/tools/index.d.ts +130 -86
- 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/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 +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,8 @@ Override paths when blocked:
|
|
|
89
89
|
```
|
|
90
90
|
record_decision(type: "fork", supersedes: ["<surfaced-decision-id>"], rationale: "...")
|
|
91
91
|
```
|
|
92
|
-
- **
|
|
92
|
+
- **For this session:** call `pre_edit_acknowledge(decisionIds: ["<surfaced-decision-id>"])`, then retry the Edit — that decision won't block again for the rest of the session. The acknowledgment is read back from your session transcript, so it needs no session token and is unaffected by daemon or session restarts within the same conversation.
|
|
93
|
+
- **One-off:** add `force: true` to the Edit tool args to proceed a single time.
|
|
93
94
|
|
|
94
95
|
Disable the hook for a session with `KAWA_PRE_EDIT_CHECK=off`.
|
|
95
96
|
|
|
@@ -111,6 +112,21 @@ Disable telemetry with `KAWA_PRE_EDIT_TELEMETRY=off`.
|
|
|
111
112
|
- **Zero-knowledge encryption** — code blocks encrypted client-side before sync. The Kawa cloud cannot decrypt your team's code.
|
|
112
113
|
- **Cross-platform** — works with Claude Code, Cursor, and any MCP-compatible AI assistant.
|
|
113
114
|
|
|
115
|
+
## Handing off work to a teammate (no session export)
|
|
116
|
+
|
|
117
|
+
Because the reasoning behind your work — your intents and recorded decisions — lives in Kawa Code rather than in the chat log, a teammate can pick up where you left off from a single prompt. No transcript sharing, no session restore.
|
|
118
|
+
|
|
119
|
+
1. **Commit or push your code first.** A handoff prompt carries your *reasoning*, not your uncommitted working tree — so land the code (or publish the pre-commit diff) before you hand off, otherwise your teammate inherits the decisions without the diff that goes with them.
|
|
120
|
+
2. **Grab the intent id.** The id of the intent you were working under — your agent can read it back with `check_active_intent`, or you can find it in the Kawa Code app.
|
|
121
|
+
3. **Hand over a one-line prompt,** e.g. `Follow up on intent <intent-id>: <what's left to do>`.
|
|
122
|
+
4. **Your teammate pastes it into a fresh session.** Their agent calls `resume_intent(<id>)` — one call that adopts the intent as their current focus *and* loads its recorded decisions — resuming the thread with full context, even though it never saw your chat.
|
|
123
|
+
|
|
124
|
+
**What transfers:** the intent, its decisions, and (once committed) its code. **What doesn't:** your chat transcript and any session-local state. An acknowledgment you made to a pre-edit block is *your* judgment in *your* session, so your teammate re-evaluates it rather than inheriting it — which is what you want.
|
|
125
|
+
|
|
126
|
+
**Teams:** to make the handoff seamless, add one line to your shared `CLAUDE.md` so the agent always treats a follow-up prompt as *resuming* the named intent instead of opening a new one:
|
|
127
|
+
|
|
128
|
+
> When a prompt says "follow up on intent `<id>`" (or similar), call `resume_intent(<id>)` to adopt that intent and load its decisions — do not create a new intent for it.
|
|
129
|
+
|
|
114
130
|
## Migrating or rewriting a codebase? Transplant its decisions
|
|
115
131
|
|
|
116
132
|
When you port a codebase to a new language or rebuild it in a fresh repository, the code moves — but the *reasoning* usually doesn't. The source repo's decision history knows why retired approaches were retired, which constraints are load-bearing, and where the security landmines are. With Kawa Code, that history becomes a first-class migration input.
|
package/build/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
4
4
|
import { CallToolRequestSchema, ListToolsRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, ErrorCode, McpError } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import { connectToMuninn, ensureRepo } from './services/muninn-ipc.js';
|
|
6
6
|
import { salvageMangledArgs } from './tools/_salvage-mangled-args.js';
|
|
7
|
-
import { allTools, getRelevantContext, checkActiveIntent, createAndActivateIntent, activateIntent, getIntentsForFile, getIntentsForLines, listTeamIntents, getIntentChanges, completeIntent, updateIntent, logWork, recordDecision, getSessionDecisions, getProjectDecisions, getDecisionDetail, editSessionDecision, detectIntentConflicts, inferHistory, evolveDecisions, updateFeatures, preEditDecisionCheck, preEditAcknowledge, getResolutionContext, arbiterResolve, arbiterApply } from './tools/index.js';
|
|
7
|
+
import { allTools, getRelevantContext, checkActiveIntent, createAndActivateIntent, activateIntent, resumeIntent, getIntentsForFile, getIntentsForLines, listTeamIntents, getIntentChanges, completeIntent, updateIntent, logWork, recordDecision, getSessionDecisions, getProjectDecisions, getDecisionDetail, editSessionDecision, detectIntentConflicts, inferHistory, evolveDecisions, updateFeatures, preEditDecisionCheck, preEditAcknowledge, getResolutionContext, arbiterResolve, arbiterApply } from './tools/index.js';
|
|
8
8
|
import { prompts } from './prompts/intent-first-workflow.js';
|
|
9
9
|
import { resources, readActiveIntentResource } from './resources/active-intent.js';
|
|
10
10
|
// Create MCP server
|
|
@@ -78,6 +78,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
78
78
|
case 'activate_intent':
|
|
79
79
|
result = await activateIntent(args);
|
|
80
80
|
break;
|
|
81
|
+
case 'resume_intent':
|
|
82
|
+
result = await resumeIntent(args);
|
|
83
|
+
break;
|
|
81
84
|
case 'get_intents_for_file':
|
|
82
85
|
result = await getIntentsForFile(args);
|
|
83
86
|
break;
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,E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C,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,SAAS,EACT,QAAQ,EACT,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAErE,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,OAAO,EACP,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACb,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,OAAO,EAA6B,MAAM,oCAAoC,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAElF,oBAAoB;AACpB,MAAM,MAAM,GAAG,IAAI,MAAM,CACvB;IACE,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,OAAO;CACjB,EACD;IACE,YAAY,EAAE;QACZ,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;KACd;CACF,CACF,CAAA;AAED,sBAAsB;AACtB,MAAM,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E,CAAC,CAAA;IACrF,CAAC;IAED,4BAA4B;IAC5B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAA;IAC5C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAE/B,OAAO,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAA;AAClD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;IACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
|
@@ -22,7 +22,7 @@ export declare const completeIntentSchema: z.ZodObject<{
|
|
|
22
22
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
23
23
|
humanApproved: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
status: "done" | "
|
|
25
|
+
status: "done" | "abandoned" | "committed" | "pushed" | "superseded";
|
|
26
26
|
repoPath: string;
|
|
27
27
|
repoOrigin?: string | undefined;
|
|
28
28
|
forkAuthor?: {
|
|
@@ -37,7 +37,7 @@ export declare const completeIntentSchema: z.ZodObject<{
|
|
|
37
37
|
humanApproved?: boolean | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
repoPath: string;
|
|
40
|
-
status?: "done" | "
|
|
40
|
+
status?: "done" | "abandoned" | "committed" | "pushed" | "superseded" | undefined;
|
|
41
41
|
repoOrigin?: string | undefined;
|
|
42
42
|
forkAuthor?: {
|
|
43
43
|
platform: "github" | "gitlab";
|
|
@@ -172,7 +172,7 @@ export declare const completeIntentTool: {
|
|
|
172
172
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
173
173
|
humanApproved: z.ZodOptional<z.ZodBoolean>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
status: "done" | "
|
|
175
|
+
status: "done" | "abandoned" | "committed" | "pushed" | "superseded";
|
|
176
176
|
repoPath: string;
|
|
177
177
|
repoOrigin?: string | undefined;
|
|
178
178
|
forkAuthor?: {
|
|
@@ -187,7 +187,7 @@ export declare const completeIntentTool: {
|
|
|
187
187
|
humanApproved?: boolean | undefined;
|
|
188
188
|
}, {
|
|
189
189
|
repoPath: string;
|
|
190
|
-
status?: "done" | "
|
|
190
|
+
status?: "done" | "abandoned" | "committed" | "pushed" | "superseded" | undefined;
|
|
191
191
|
repoOrigin?: string | undefined;
|
|
192
192
|
forkAuthor?: {
|
|
193
193
|
platform: "github" | "gitlab";
|
|
@@ -32,13 +32,13 @@ export declare const editSessionDecisionSchema: z.ZodObject<{
|
|
|
32
32
|
constraint: z.ZodString;
|
|
33
33
|
reason: z.ZodString;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
constraint: string;
|
|
35
36
|
reason: string;
|
|
36
37
|
alternative: string;
|
|
37
|
-
constraint: string;
|
|
38
38
|
}, {
|
|
39
|
+
constraint: string;
|
|
39
40
|
reason: string;
|
|
40
41
|
alternative: string;
|
|
41
|
-
constraint: string;
|
|
42
42
|
}>, "many">>;
|
|
43
43
|
/** Trigger condition / "How to apply" — pass empty string or null to clear. */
|
|
44
44
|
appliesWhen: z.ZodOptional<z.ZodString>;
|
|
@@ -52,9 +52,9 @@ export declare const editSessionDecisionSchema: z.ZodObject<{
|
|
|
52
52
|
relatedFiles?: string[] | undefined;
|
|
53
53
|
constraintsChecked?: string[] | undefined;
|
|
54
54
|
constraintViolations?: {
|
|
55
|
+
constraint: string;
|
|
55
56
|
reason: string;
|
|
56
57
|
alternative: string;
|
|
57
|
-
constraint: string;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
appliesWhen?: string | undefined;
|
|
60
60
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -67,9 +67,9 @@ export declare const editSessionDecisionSchema: z.ZodObject<{
|
|
|
67
67
|
relatedFiles?: string[] | undefined;
|
|
68
68
|
constraintsChecked?: string[] | undefined;
|
|
69
69
|
constraintViolations?: {
|
|
70
|
+
constraint: string;
|
|
70
71
|
reason: string;
|
|
71
72
|
alternative: string;
|
|
72
|
-
constraint: string;
|
|
73
73
|
}[] | undefined;
|
|
74
74
|
appliesWhen?: string | undefined;
|
|
75
75
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -95,9 +95,9 @@ export declare const editSessionDecisionSchema: z.ZodObject<{
|
|
|
95
95
|
relatedFiles?: string[] | undefined;
|
|
96
96
|
constraintsChecked?: string[] | undefined;
|
|
97
97
|
constraintViolations?: {
|
|
98
|
+
constraint: string;
|
|
98
99
|
reason: string;
|
|
99
100
|
alternative: string;
|
|
100
|
-
constraint: string;
|
|
101
101
|
}[] | undefined;
|
|
102
102
|
appliesWhen?: string | undefined;
|
|
103
103
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -123,9 +123,9 @@ export declare const editSessionDecisionSchema: z.ZodObject<{
|
|
|
123
123
|
relatedFiles?: string[] | undefined;
|
|
124
124
|
constraintsChecked?: string[] | undefined;
|
|
125
125
|
constraintViolations?: {
|
|
126
|
+
constraint: string;
|
|
126
127
|
reason: string;
|
|
127
128
|
alternative: string;
|
|
128
|
-
constraint: string;
|
|
129
129
|
}[] | undefined;
|
|
130
130
|
appliesWhen?: string | undefined;
|
|
131
131
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -173,13 +173,13 @@ export declare const editSessionDecisionTool: {
|
|
|
173
173
|
constraint: z.ZodString;
|
|
174
174
|
reason: z.ZodString;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
constraint: string;
|
|
176
177
|
reason: string;
|
|
177
178
|
alternative: string;
|
|
178
|
-
constraint: string;
|
|
179
179
|
}, {
|
|
180
|
+
constraint: string;
|
|
180
181
|
reason: string;
|
|
181
182
|
alternative: string;
|
|
182
|
-
constraint: string;
|
|
183
183
|
}>, "many">>;
|
|
184
184
|
/** Trigger condition / "How to apply" — pass empty string or null to clear. */
|
|
185
185
|
appliesWhen: z.ZodOptional<z.ZodString>;
|
|
@@ -193,9 +193,9 @@ export declare const editSessionDecisionTool: {
|
|
|
193
193
|
relatedFiles?: string[] | undefined;
|
|
194
194
|
constraintsChecked?: string[] | undefined;
|
|
195
195
|
constraintViolations?: {
|
|
196
|
+
constraint: string;
|
|
196
197
|
reason: string;
|
|
197
198
|
alternative: string;
|
|
198
|
-
constraint: string;
|
|
199
199
|
}[] | undefined;
|
|
200
200
|
appliesWhen?: string | undefined;
|
|
201
201
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -208,9 +208,9 @@ export declare const editSessionDecisionTool: {
|
|
|
208
208
|
relatedFiles?: string[] | undefined;
|
|
209
209
|
constraintsChecked?: string[] | undefined;
|
|
210
210
|
constraintViolations?: {
|
|
211
|
+
constraint: string;
|
|
211
212
|
reason: string;
|
|
212
213
|
alternative: string;
|
|
213
|
-
constraint: string;
|
|
214
214
|
}[] | undefined;
|
|
215
215
|
appliesWhen?: string | undefined;
|
|
216
216
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -236,9 +236,9 @@ export declare const editSessionDecisionTool: {
|
|
|
236
236
|
relatedFiles?: string[] | undefined;
|
|
237
237
|
constraintsChecked?: string[] | undefined;
|
|
238
238
|
constraintViolations?: {
|
|
239
|
+
constraint: string;
|
|
239
240
|
reason: string;
|
|
240
241
|
alternative: string;
|
|
241
|
-
constraint: string;
|
|
242
242
|
}[] | undefined;
|
|
243
243
|
appliesWhen?: string | undefined;
|
|
244
244
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
|
@@ -264,9 +264,9 @@ export declare const editSessionDecisionTool: {
|
|
|
264
264
|
relatedFiles?: string[] | undefined;
|
|
265
265
|
constraintsChecked?: string[] | undefined;
|
|
266
266
|
constraintViolations?: {
|
|
267
|
+
constraint: string;
|
|
267
268
|
reason: string;
|
|
268
269
|
alternative: string;
|
|
269
|
-
constraint: string;
|
|
270
270
|
}[] | undefined;
|
|
271
271
|
appliesWhen?: string | undefined;
|
|
272
272
|
surface?: ("recall" | "pre-edit" | "intent-create" | "stop")[] | undefined;
|
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: "done" | "
|
|
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?: "done" | "
|
|
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;
|
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
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAC5G,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAChH,OAAO,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAA;AACxH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC/F,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAC7G,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACjH,OAAO,EAAE,mBAAmB,EAAE,eAAe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ACjB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB;AACzB,qBAAqB;AACrB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B;AAC3B,2BAA2B;AAC3B,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,qBAAqB;AACrB,kBAAkB;AAClB,kBAAkB,EAClB,cAAc,EACd,oBAAoB;AACpB,0BAA0B;AAC1B,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EACnB,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,6CAA6C;IAC7C,sBAAsB;IACtB,eAAe;IACf,qBAAqB;IACrB,2BAA2B;IAC3B,kBAAkB;IAClB,gBAAgB;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?: "done" | "active" | "
|
|
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?: "done" | "active" | "
|
|
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?: "done" | "active" | "
|
|
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?: "done" | "active" | "
|
|
118
|
+
status?: "done" | "active" | "abandoned" | "committed" | "pushed" | undefined;
|
|
119
119
|
repoOrigin?: string | undefined;
|
|
120
120
|
forkAuthor?: {
|
|
121
121
|
platform: "github" | "gitlab";
|
|
@@ -32,13 +32,13 @@ export declare const recordDecisionSchema: z.ZodObject<{
|
|
|
32
32
|
constraint: z.ZodString;
|
|
33
33
|
reason: z.ZodString;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
constraint: string;
|
|
35
36
|
reason: string;
|
|
36
37
|
alternative: string;
|
|
37
|
-
constraint: string;
|
|
38
38
|
}, {
|
|
39
|
+
constraint: string;
|
|
39
40
|
reason: string;
|
|
40
41
|
alternative: string;
|
|
41
|
-
constraint: string;
|
|
42
42
|
}>, "many">>;
|
|
43
43
|
source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "agent", "extractor", "infer_history"]>>>;
|
|
44
44
|
confidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
@@ -68,7 +68,7 @@ export declare const recordDecisionSchema: z.ZodObject<{
|
|
|
68
68
|
baselineSha?: string | undefined;
|
|
69
69
|
}>>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
type: "
|
|
71
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
72
72
|
repoPath: string;
|
|
73
73
|
summary: string;
|
|
74
74
|
intentId: string;
|
|
@@ -89,9 +89,9 @@ export declare const recordDecisionSchema: z.ZodObject<{
|
|
|
89
89
|
supersedes?: string[] | undefined;
|
|
90
90
|
constraintsChecked?: string[] | undefined;
|
|
91
91
|
constraintViolations?: {
|
|
92
|
+
constraint: string;
|
|
92
93
|
reason: string;
|
|
93
94
|
alternative: string;
|
|
94
|
-
constraint: string;
|
|
95
95
|
}[] | undefined;
|
|
96
96
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
97
97
|
sourceThoughtIds?: string[] | undefined;
|
|
@@ -106,7 +106,7 @@ export declare const recordDecisionSchema: z.ZodObject<{
|
|
|
106
106
|
baselineSha?: string | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
}, {
|
|
109
|
-
type: "
|
|
109
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
110
110
|
repoPath: string;
|
|
111
111
|
summary: string;
|
|
112
112
|
rationale: string;
|
|
@@ -126,9 +126,9 @@ export declare const recordDecisionSchema: z.ZodObject<{
|
|
|
126
126
|
supersedes?: string[] | undefined;
|
|
127
127
|
constraintsChecked?: string[] | undefined;
|
|
128
128
|
constraintViolations?: {
|
|
129
|
+
constraint: string;
|
|
129
130
|
reason: string;
|
|
130
131
|
alternative: string;
|
|
131
|
-
constraint: string;
|
|
132
132
|
}[] | undefined;
|
|
133
133
|
source?: "user" | "agent" | "extractor" | "infer_history" | undefined;
|
|
134
134
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
@@ -187,13 +187,13 @@ export declare const recordDecisionTool: {
|
|
|
187
187
|
constraint: z.ZodString;
|
|
188
188
|
reason: z.ZodString;
|
|
189
189
|
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
constraint: string;
|
|
190
191
|
reason: string;
|
|
191
192
|
alternative: string;
|
|
192
|
-
constraint: string;
|
|
193
193
|
}, {
|
|
194
|
+
constraint: string;
|
|
194
195
|
reason: string;
|
|
195
196
|
alternative: string;
|
|
196
|
-
constraint: string;
|
|
197
197
|
}>, "many">>;
|
|
198
198
|
source: z.ZodDefault<z.ZodOptional<z.ZodEnum<["user", "agent", "extractor", "infer_history"]>>>;
|
|
199
199
|
confidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
@@ -223,7 +223,7 @@ export declare const recordDecisionTool: {
|
|
|
223
223
|
baselineSha?: string | undefined;
|
|
224
224
|
}>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
type: "
|
|
226
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
227
227
|
repoPath: string;
|
|
228
228
|
summary: string;
|
|
229
229
|
intentId: string;
|
|
@@ -244,9 +244,9 @@ export declare const recordDecisionTool: {
|
|
|
244
244
|
supersedes?: string[] | undefined;
|
|
245
245
|
constraintsChecked?: string[] | undefined;
|
|
246
246
|
constraintViolations?: {
|
|
247
|
+
constraint: string;
|
|
247
248
|
reason: string;
|
|
248
249
|
alternative: string;
|
|
249
|
-
constraint: string;
|
|
250
250
|
}[] | undefined;
|
|
251
251
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
252
252
|
sourceThoughtIds?: string[] | undefined;
|
|
@@ -261,7 +261,7 @@ export declare const recordDecisionTool: {
|
|
|
261
261
|
baselineSha?: string | undefined;
|
|
262
262
|
} | undefined;
|
|
263
263
|
}, {
|
|
264
|
-
type: "
|
|
264
|
+
type: "fork" | "abandoned" | "discovery" | "constraint" | "tradeoff" | "dependency";
|
|
265
265
|
repoPath: string;
|
|
266
266
|
summary: string;
|
|
267
267
|
rationale: string;
|
|
@@ -281,9 +281,9 @@ export declare const recordDecisionTool: {
|
|
|
281
281
|
supersedes?: string[] | undefined;
|
|
282
282
|
constraintsChecked?: string[] | undefined;
|
|
283
283
|
constraintViolations?: {
|
|
284
|
+
constraint: string;
|
|
284
285
|
reason: string;
|
|
285
286
|
alternative: string;
|
|
286
|
-
constraint: string;
|
|
287
287
|
}[] | undefined;
|
|
288
288
|
source?: "user" | "agent" | "extractor" | "infer_history" | undefined;
|
|
289
289
|
confidence?: "high" | "medium" | "low" | undefined;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type ProjectDecision } from './get-project-decisions.js';
|
|
3
|
+
/**
|
|
4
|
+
* One-call intent hydration for cross-developer handoff.
|
|
5
|
+
*
|
|
6
|
+
* Composes three EXISTING tools/IPC actions — nothing new is added to Muninn,
|
|
7
|
+
* so this works against any daemon version (backwards compatible):
|
|
8
|
+
* 1. activate_intent → adopt the intent as this session's current focus
|
|
9
|
+
* 2. get_intent_changes → the (now-active) intent's title/description/status
|
|
10
|
+
* 3. get_project_decisions → its recorded decisions (summary-only, lean)
|
|
11
|
+
*
|
|
12
|
+
* The existing tools are reused, never modified. A future Muninn
|
|
13
|
+
* `decision:by-intent` filter would let step 3 avoid pulling the full project
|
|
14
|
+
* list, but that's an optimization, not a requirement.
|
|
15
|
+
*/
|
|
16
|
+
export declare const resumeIntentSchema: z.ZodObject<{
|
|
17
|
+
forkAuthor: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
platform: z.ZodEnum<["github", "gitlab"]>;
|
|
19
|
+
user: z.ZodString;
|
|
20
|
+
forkOrigin: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
platform: "github" | "gitlab";
|
|
23
|
+
user: string;
|
|
24
|
+
forkOrigin: string;
|
|
25
|
+
}, {
|
|
26
|
+
platform: "github" | "gitlab";
|
|
27
|
+
user: string;
|
|
28
|
+
forkOrigin: string;
|
|
29
|
+
}>>;
|
|
30
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
repoOrigin: z.ZodOptional<z.ZodString>;
|
|
32
|
+
repoPath: z.ZodString;
|
|
33
|
+
intentId: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
repoPath: string;
|
|
36
|
+
intentId: string;
|
|
37
|
+
repoOrigin?: string | undefined;
|
|
38
|
+
forkAuthor?: {
|
|
39
|
+
platform: "github" | "gitlab";
|
|
40
|
+
user: string;
|
|
41
|
+
forkOrigin: string;
|
|
42
|
+
} | undefined;
|
|
43
|
+
workspaceId?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
repoPath: string;
|
|
46
|
+
intentId: string;
|
|
47
|
+
repoOrigin?: string | undefined;
|
|
48
|
+
forkAuthor?: {
|
|
49
|
+
platform: "github" | "gitlab";
|
|
50
|
+
user: string;
|
|
51
|
+
forkOrigin: string;
|
|
52
|
+
} | undefined;
|
|
53
|
+
workspaceId?: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
export type ResumeIntentInput = z.infer<typeof resumeIntentSchema>;
|
|
56
|
+
export interface ResumeIntentResponse {
|
|
57
|
+
resumed: boolean;
|
|
58
|
+
intentId: string;
|
|
59
|
+
intent?: {
|
|
60
|
+
title: string;
|
|
61
|
+
description: string;
|
|
62
|
+
status: string;
|
|
63
|
+
};
|
|
64
|
+
decisions: ProjectDecision[];
|
|
65
|
+
count: number;
|
|
66
|
+
message: string;
|
|
67
|
+
}
|
|
68
|
+
export declare function resumeIntent(input: ResumeIntentInput): Promise<ResumeIntentResponse>;
|
|
69
|
+
export declare const resumeIntentTool: {
|
|
70
|
+
name: string;
|
|
71
|
+
description: string;
|
|
72
|
+
inputSchema: z.ZodObject<{
|
|
73
|
+
forkAuthor: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
platform: z.ZodEnum<["github", "gitlab"]>;
|
|
75
|
+
user: z.ZodString;
|
|
76
|
+
forkOrigin: z.ZodString;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
platform: "github" | "gitlab";
|
|
79
|
+
user: string;
|
|
80
|
+
forkOrigin: string;
|
|
81
|
+
}, {
|
|
82
|
+
platform: "github" | "gitlab";
|
|
83
|
+
user: string;
|
|
84
|
+
forkOrigin: string;
|
|
85
|
+
}>>;
|
|
86
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
repoOrigin: z.ZodOptional<z.ZodString>;
|
|
88
|
+
repoPath: z.ZodString;
|
|
89
|
+
intentId: z.ZodString;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
repoPath: string;
|
|
92
|
+
intentId: string;
|
|
93
|
+
repoOrigin?: string | undefined;
|
|
94
|
+
forkAuthor?: {
|
|
95
|
+
platform: "github" | "gitlab";
|
|
96
|
+
user: string;
|
|
97
|
+
forkOrigin: string;
|
|
98
|
+
} | undefined;
|
|
99
|
+
workspaceId?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
repoPath: string;
|
|
102
|
+
intentId: string;
|
|
103
|
+
repoOrigin?: string | undefined;
|
|
104
|
+
forkAuthor?: {
|
|
105
|
+
platform: "github" | "gitlab";
|
|
106
|
+
user: string;
|
|
107
|
+
forkOrigin: string;
|
|
108
|
+
} | undefined;
|
|
109
|
+
workspaceId?: string | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
handler: typeof resumeIntent;
|
|
112
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { resolveOrigin } from './resolve-origin.js';
|
|
3
|
+
import { forkFieldsExtensions, extractForkFields } from './_fork-fields.js';
|
|
4
|
+
import { activateIntent } from './activate-intent.js';
|
|
5
|
+
import { getIntentChanges } from './get-intent-changes.js';
|
|
6
|
+
import { getProjectDecisions } from './get-project-decisions.js';
|
|
7
|
+
/**
|
|
8
|
+
* One-call intent hydration for cross-developer handoff.
|
|
9
|
+
*
|
|
10
|
+
* Composes three EXISTING tools/IPC actions — nothing new is added to Muninn,
|
|
11
|
+
* so this works against any daemon version (backwards compatible):
|
|
12
|
+
* 1. activate_intent → adopt the intent as this session's current focus
|
|
13
|
+
* 2. get_intent_changes → the (now-active) intent's title/description/status
|
|
14
|
+
* 3. get_project_decisions → its recorded decisions (summary-only, lean)
|
|
15
|
+
*
|
|
16
|
+
* The existing tools are reused, never modified. A future Muninn
|
|
17
|
+
* `decision:by-intent` filter would let step 3 avoid pulling the full project
|
|
18
|
+
* list, but that's an optimization, not a requirement.
|
|
19
|
+
*/
|
|
20
|
+
export const resumeIntentSchema = z.object({
|
|
21
|
+
repoOrigin: z.string().optional().describe('Git remote origin URL. Auto-detected from repoPath via git if not provided.'),
|
|
22
|
+
repoPath: z.string().describe('Local path to the repository root'),
|
|
23
|
+
intentId: z.string().describe('The cloud ID (preferred) or local UUID of the intent to resume — e.g. the id from a "follow up on intent <id>" handoff.'),
|
|
24
|
+
...forkFieldsExtensions,
|
|
25
|
+
});
|
|
26
|
+
export async function resumeIntent(input) {
|
|
27
|
+
// Resolve the origin once and pass it down, so the three sub-calls don't each
|
|
28
|
+
// re-shell out to git.
|
|
29
|
+
const origin = resolveOrigin(input.repoOrigin, input.repoPath);
|
|
30
|
+
const base = { repoOrigin: origin, repoPath: input.repoPath, ...extractForkFields(input) };
|
|
31
|
+
// 1. Adopt the intent as THIS session's current focus (multi-active — never
|
|
32
|
+
// displaces another session's current). Fail loud if it can't be activated.
|
|
33
|
+
const activated = await activateIntent({ ...base, intentId: input.intentId });
|
|
34
|
+
if (!activated.success || !activated.intentId) {
|
|
35
|
+
return {
|
|
36
|
+
resumed: false,
|
|
37
|
+
intentId: input.intentId,
|
|
38
|
+
decisions: [],
|
|
39
|
+
count: 0,
|
|
40
|
+
message: `Could not resume intent ${input.intentId}: activation failed. Verify the id (cloud id or local UUID) and that the intent exists in this repo.`,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
// 2 + 3. Hydrate the now-active intent's metadata and its decisions in parallel.
|
|
44
|
+
const [changes, project] = await Promise.all([
|
|
45
|
+
getIntentChanges(base),
|
|
46
|
+
getProjectDecisions(base),
|
|
47
|
+
]);
|
|
48
|
+
// Match decisions on every id form we know for this intent — the handoff
|
|
49
|
+
// prompt may carry the cloud id while stored decisions carry a local id (or
|
|
50
|
+
// vice versa), so union the passed id, the activated id, and the resolved one.
|
|
51
|
+
const targetIds = new Set([input.intentId, activated.intentId]);
|
|
52
|
+
if (changes.intent?.id)
|
|
53
|
+
targetIds.add(changes.intent.id);
|
|
54
|
+
const decisions = project.decisions.filter(d => targetIds.has(d.intentId) || d.intentIds.some(id => targetIds.has(id)));
|
|
55
|
+
const intent = changes.hasActiveIntent && changes.intent
|
|
56
|
+
? {
|
|
57
|
+
title: changes.intent.title,
|
|
58
|
+
description: changes.intent.description,
|
|
59
|
+
status: changes.intent.status,
|
|
60
|
+
}
|
|
61
|
+
: undefined;
|
|
62
|
+
return {
|
|
63
|
+
resumed: true,
|
|
64
|
+
intentId: input.intentId,
|
|
65
|
+
intent,
|
|
66
|
+
decisions,
|
|
67
|
+
count: decisions.length,
|
|
68
|
+
message: intent
|
|
69
|
+
? `Resumed "${intent.title}" (${intent.status}) — ${decisions.length} recorded decision(s) loaded. Call get_decision_detail(id) for the full rationale on any of them.`
|
|
70
|
+
: `Resumed intent ${input.intentId.substring(0, 8)} — ${decisions.length} recorded decision(s) loaded.`,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export const resumeIntentTool = {
|
|
74
|
+
name: 'resume_intent',
|
|
75
|
+
description: `Resume an existing intent by ID in one call — activate it AND load its recorded decisions.
|
|
76
|
+
|
|
77
|
+
Use this to pick up a handoff. When a prompt says "follow up on intent <id>" (or you otherwise want to continue a specific existing intent), call resume_intent(<id>) instead of creating a new one. It:
|
|
78
|
+
- activates the intent as THIS session's current focus (multi-active — never displaces a teammate's active intent), and
|
|
79
|
+
- returns the intent's title/description/status plus its recorded decisions (summary-only; call get_decision_detail(id) for full rationale on any one).
|
|
80
|
+
|
|
81
|
+
This is the fast path for cross-developer handoff without a session or transcript export: the reasoning lives in Kawa Code, so a teammate resumes the thread from just the intent id. For the code itself, the intent's owner should have committed or pushed first (a prompt carries reasoning, not an uncommitted working tree).
|
|
82
|
+
|
|
83
|
+
Returns { resumed, intentId, intent?, decisions[], count, message }. resumed=false with a message when the id can't be activated.`,
|
|
84
|
+
inputSchema: resumeIntentSchema,
|
|
85
|
+
handler: resumeIntent,
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=resume-intent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume-intent.js","sourceRoot":"","sources":["../../src/tools/resume-intent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAwB,MAAM,4BAA4B,CAAA;AAEtF;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6EAA6E,CAAC;IACzH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC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
|
2
2
|
"name": "@kawacode/mcp",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.4",
|
|
4
4
|
"description": "Team-aware memory for Claude Code, Cursor, and other AI coding assistants — intent tracking, decision history, real-time team conflict detection.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"bin": {
|