@ai_design_agency/sdd-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,256 @@
1
+ export * from "./specs.js";
2
+ export * from "./processes.js";
3
+ export * from "./sessions.js";
4
+ /**
5
+ * MCP tool definitions for the SDD Platform
6
+ */
7
+ export declare const toolDefinitions: ({
8
+ name: string;
9
+ description: string;
10
+ inputSchema: {
11
+ type: "object";
12
+ properties: {
13
+ type: {
14
+ type: string;
15
+ enum: string[];
16
+ description: string;
17
+ };
18
+ title: {
19
+ type: string;
20
+ description: string;
21
+ };
22
+ content: {
23
+ type: string;
24
+ description: string;
25
+ };
26
+ parent_epic_id: {
27
+ type: string;
28
+ description: string;
29
+ };
30
+ id?: undefined;
31
+ section?: undefined;
32
+ status?: undefined;
33
+ limit?: undefined;
34
+ offset?: undefined;
35
+ query?: undefined;
36
+ spec_id?: undefined;
37
+ notes?: undefined;
38
+ };
39
+ required: string[];
40
+ };
41
+ } | {
42
+ name: string;
43
+ description: string;
44
+ inputSchema: {
45
+ type: "object";
46
+ properties: {
47
+ id: {
48
+ type: string;
49
+ description: string;
50
+ };
51
+ type?: undefined;
52
+ title?: undefined;
53
+ content?: undefined;
54
+ parent_epic_id?: undefined;
55
+ section?: undefined;
56
+ status?: undefined;
57
+ limit?: undefined;
58
+ offset?: undefined;
59
+ query?: undefined;
60
+ spec_id?: undefined;
61
+ notes?: undefined;
62
+ };
63
+ required: string[];
64
+ };
65
+ } | {
66
+ name: string;
67
+ description: string;
68
+ inputSchema: {
69
+ type: "object";
70
+ properties: {
71
+ id: {
72
+ type: string;
73
+ description: string;
74
+ };
75
+ content: {
76
+ type: string;
77
+ description: string;
78
+ };
79
+ section: {
80
+ type: string;
81
+ properties: {
82
+ name: {
83
+ type: string;
84
+ };
85
+ content: {
86
+ type: string;
87
+ };
88
+ };
89
+ description: string;
90
+ };
91
+ status: {
92
+ type: string;
93
+ description: string;
94
+ enum?: undefined;
95
+ };
96
+ type?: undefined;
97
+ title?: undefined;
98
+ parent_epic_id?: undefined;
99
+ limit?: undefined;
100
+ offset?: undefined;
101
+ query?: undefined;
102
+ spec_id?: undefined;
103
+ notes?: undefined;
104
+ };
105
+ required: string[];
106
+ };
107
+ } | {
108
+ name: string;
109
+ description: string;
110
+ inputSchema: {
111
+ type: "object";
112
+ properties: {
113
+ type: {
114
+ type: string;
115
+ enum: string[];
116
+ description: string;
117
+ };
118
+ status: {
119
+ type: string;
120
+ description: string;
121
+ enum?: undefined;
122
+ };
123
+ parent_epic_id: {
124
+ type: string;
125
+ description: string;
126
+ };
127
+ limit: {
128
+ type: string;
129
+ description: string;
130
+ };
131
+ offset: {
132
+ type: string;
133
+ description: string;
134
+ };
135
+ title?: undefined;
136
+ content?: undefined;
137
+ id?: undefined;
138
+ section?: undefined;
139
+ query?: undefined;
140
+ spec_id?: undefined;
141
+ notes?: undefined;
142
+ };
143
+ required?: undefined;
144
+ };
145
+ } | {
146
+ name: string;
147
+ description: string;
148
+ inputSchema: {
149
+ type: "object";
150
+ properties: {
151
+ query: {
152
+ type: string;
153
+ description: string;
154
+ };
155
+ type: {
156
+ type: string;
157
+ enum: string[];
158
+ description: string;
159
+ };
160
+ limit: {
161
+ type: string;
162
+ description: string;
163
+ };
164
+ title?: undefined;
165
+ content?: undefined;
166
+ parent_epic_id?: undefined;
167
+ id?: undefined;
168
+ section?: undefined;
169
+ status?: undefined;
170
+ offset?: undefined;
171
+ spec_id?: undefined;
172
+ notes?: undefined;
173
+ };
174
+ required: string[];
175
+ };
176
+ } | {
177
+ name: string;
178
+ description: string;
179
+ inputSchema: {
180
+ type: "object";
181
+ properties: {
182
+ status: {
183
+ type: string;
184
+ enum: string[];
185
+ description: string;
186
+ };
187
+ type?: undefined;
188
+ title?: undefined;
189
+ content?: undefined;
190
+ parent_epic_id?: undefined;
191
+ id?: undefined;
192
+ section?: undefined;
193
+ limit?: undefined;
194
+ offset?: undefined;
195
+ query?: undefined;
196
+ spec_id?: undefined;
197
+ notes?: undefined;
198
+ };
199
+ required?: undefined;
200
+ };
201
+ } | {
202
+ name: string;
203
+ description: string;
204
+ inputSchema: {
205
+ type: "object";
206
+ properties: {
207
+ spec_id: {
208
+ type: string;
209
+ description: string;
210
+ };
211
+ notes: {
212
+ type: string;
213
+ description: string;
214
+ };
215
+ type?: undefined;
216
+ title?: undefined;
217
+ content?: undefined;
218
+ parent_epic_id?: undefined;
219
+ id?: undefined;
220
+ section?: undefined;
221
+ status?: undefined;
222
+ limit?: undefined;
223
+ offset?: undefined;
224
+ query?: undefined;
225
+ };
226
+ required: string[];
227
+ };
228
+ } | {
229
+ name: string;
230
+ description: string;
231
+ inputSchema: {
232
+ type: "object";
233
+ properties: {
234
+ id: {
235
+ type: string;
236
+ description: string;
237
+ };
238
+ notes: {
239
+ type: string;
240
+ description: string;
241
+ };
242
+ type?: undefined;
243
+ title?: undefined;
244
+ content?: undefined;
245
+ parent_epic_id?: undefined;
246
+ section?: undefined;
247
+ status?: undefined;
248
+ limit?: undefined;
249
+ offset?: undefined;
250
+ query?: undefined;
251
+ spec_id?: undefined;
252
+ };
253
+ required: string[];
254
+ };
255
+ })[];
256
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoN3B,CAAC"}
@@ -0,0 +1,237 @@
1
+ "use strict";
2
+ // @spec FEA-202601002
3
+ // Tool registry and definitions
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.toolDefinitions = void 0;
20
+ __exportStar(require("./specs.js"), exports);
21
+ __exportStar(require("./processes.js"), exports);
22
+ __exportStar(require("./sessions.js"), exports);
23
+ /**
24
+ * MCP tool definitions for the SDD Platform
25
+ */
26
+ exports.toolDefinitions = [
27
+ // Spec Management
28
+ {
29
+ name: "spec_create",
30
+ description: "Create a new SDD specification",
31
+ inputSchema: {
32
+ type: "object",
33
+ properties: {
34
+ type: {
35
+ type: "string",
36
+ enum: ["FEA", "ISS", "INV", "IMP", "EPC", "BKL"],
37
+ description: "Spec type (FEA=Feature, ISS=Issue, INV=Investigation, IMP=Improvement, EPC=Epic, BKL=Backlog)",
38
+ },
39
+ title: {
40
+ type: "string",
41
+ description: "Spec title",
42
+ },
43
+ content: {
44
+ type: "string",
45
+ description: "Markdown content for the spec",
46
+ },
47
+ parent_epic_id: {
48
+ type: "string",
49
+ description: "Optional parent epic UUID",
50
+ },
51
+ },
52
+ required: ["type", "title", "content"],
53
+ },
54
+ },
55
+ {
56
+ name: "spec_get",
57
+ description: "Get a spec by ID or spec_number (e.g., FEA-202601001)",
58
+ inputSchema: {
59
+ type: "object",
60
+ properties: {
61
+ id: {
62
+ type: "string",
63
+ description: "UUID or spec_number",
64
+ },
65
+ },
66
+ required: ["id"],
67
+ },
68
+ },
69
+ {
70
+ name: "spec_update",
71
+ description: "Update a spec's content, section, or status",
72
+ inputSchema: {
73
+ type: "object",
74
+ properties: {
75
+ id: {
76
+ type: "string",
77
+ description: "UUID or spec_number",
78
+ },
79
+ content: {
80
+ type: "string",
81
+ description: "Full content replacement",
82
+ },
83
+ section: {
84
+ type: "object",
85
+ properties: {
86
+ name: { type: "string" },
87
+ content: { type: "string" },
88
+ },
89
+ description: "Surgical section update (name and new content)",
90
+ },
91
+ status: {
92
+ type: "string",
93
+ description: "Status transition (e.g., draft -> review)",
94
+ },
95
+ },
96
+ required: ["id"],
97
+ },
98
+ },
99
+ {
100
+ name: "spec_list",
101
+ description: "List specs with optional filters",
102
+ inputSchema: {
103
+ type: "object",
104
+ properties: {
105
+ type: {
106
+ type: "string",
107
+ enum: ["FEA", "ISS", "INV", "IMP", "EPC", "BKL"],
108
+ description: "Filter by spec type",
109
+ },
110
+ status: {
111
+ type: "string",
112
+ description: "Filter by status",
113
+ },
114
+ parent_epic_id: {
115
+ type: "string",
116
+ description: "Filter by parent epic",
117
+ },
118
+ limit: {
119
+ type: "number",
120
+ description: "Max results (default 50)",
121
+ },
122
+ offset: {
123
+ type: "number",
124
+ description: "Pagination offset",
125
+ },
126
+ },
127
+ },
128
+ },
129
+ {
130
+ name: "spec_search",
131
+ description: "Semantic search across specs using natural language",
132
+ inputSchema: {
133
+ type: "object",
134
+ properties: {
135
+ query: {
136
+ type: "string",
137
+ description: "Natural language search query",
138
+ },
139
+ type: {
140
+ type: "string",
141
+ enum: ["FEA", "ISS", "INV", "IMP", "EPC", "BKL"],
142
+ description: "Optional type filter",
143
+ },
144
+ limit: {
145
+ type: "number",
146
+ description: "Max results (default 10)",
147
+ },
148
+ },
149
+ required: ["query"],
150
+ },
151
+ },
152
+ // Process Management
153
+ {
154
+ name: "process_list",
155
+ description: "List available processes/workflows",
156
+ inputSchema: {
157
+ type: "object",
158
+ properties: {
159
+ status: {
160
+ type: "string",
161
+ enum: ["draft", "active", "deprecated"],
162
+ description: "Filter by status",
163
+ },
164
+ },
165
+ },
166
+ },
167
+ {
168
+ name: "process_get",
169
+ description: "Get process details by ID",
170
+ inputSchema: {
171
+ type: "object",
172
+ properties: {
173
+ id: {
174
+ type: "string",
175
+ description: "Process UUID",
176
+ },
177
+ },
178
+ required: ["id"],
179
+ },
180
+ },
181
+ // Session Management
182
+ {
183
+ name: "session_start",
184
+ description: "Start a new work session for a spec",
185
+ inputSchema: {
186
+ type: "object",
187
+ properties: {
188
+ spec_id: {
189
+ type: "string",
190
+ description: "Spec UUID to work on",
191
+ },
192
+ notes: {
193
+ type: "string",
194
+ description: "Initial session notes",
195
+ },
196
+ },
197
+ required: ["spec_id"],
198
+ },
199
+ },
200
+ {
201
+ name: "session_update",
202
+ description: "Update session notes",
203
+ inputSchema: {
204
+ type: "object",
205
+ properties: {
206
+ id: {
207
+ type: "string",
208
+ description: "Session UUID",
209
+ },
210
+ notes: {
211
+ type: "string",
212
+ description: "Updated session notes",
213
+ },
214
+ },
215
+ required: ["id", "notes"],
216
+ },
217
+ },
218
+ {
219
+ name: "session_end",
220
+ description: "End a work session",
221
+ inputSchema: {
222
+ type: "object",
223
+ properties: {
224
+ id: {
225
+ type: "string",
226
+ description: "Session UUID",
227
+ },
228
+ notes: {
229
+ type: "string",
230
+ description: "Final session notes",
231
+ },
232
+ },
233
+ required: ["id"],
234
+ },
235
+ },
236
+ ];
237
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,gCAAgC;;;;;;;;;;;;;;;;;AAEhC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAE9B;;G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BACd,WAAW,EAAE,uBAAuB;iBACrC;aACF;YACD,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC;SAC1B;KACF;IACD;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,oBAAoB;QACjC,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,UAAU,EAAE;gBACV,EAAE,EAAE;oBACF,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,cAAc;iBAC5B;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,qBAAqB;iBACnC;aACF;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF;CACF,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { PlatformClient } from "../client.js";
2
+ import type { ProcessStatus } from "../types.js";
3
+ /**
4
+ * Handle process_list tool call
5
+ */
6
+ export declare function handleProcessList(client: PlatformClient, args: {
7
+ status?: ProcessStatus;
8
+ }): Promise<{
9
+ success: boolean;
10
+ processes: {
11
+ id: string;
12
+ name: string;
13
+ description: string;
14
+ }[];
15
+ total: number;
16
+ }>;
17
+ /**
18
+ * Handle process_get tool call
19
+ */
20
+ export declare function handleProcessGet(client: PlatformClient, args: {
21
+ id: string;
22
+ }): Promise<{
23
+ success: boolean;
24
+ process: {
25
+ id: string;
26
+ name: string;
27
+ description: string;
28
+ content: string;
29
+ created_at: string;
30
+ updated_at: string;
31
+ };
32
+ }>;
33
+ //# sourceMappingURL=processes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processes.d.ts","sourceRoot":"","sources":["../../src/tools/processes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,aAAa,CAAA;CAAE;;;;;;;;GAajC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;GAerB"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // @spec FEA-202601002
3
+ // Process tool handlers
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.handleProcessList = handleProcessList;
6
+ exports.handleProcessGet = handleProcessGet;
7
+ /**
8
+ * Handle process_list tool call
9
+ */
10
+ async function handleProcessList(client, args) {
11
+ const result = await client.listProcesses(args.status);
12
+ return {
13
+ success: true,
14
+ processes: result.data.map((process) => ({
15
+ id: process.id,
16
+ name: process.name,
17
+ description: process.description,
18
+ })),
19
+ total: result.meta.total,
20
+ };
21
+ }
22
+ /**
23
+ * Handle process_get tool call
24
+ */
25
+ async function handleProcessGet(client, args) {
26
+ const process = await client.getProcess(args.id);
27
+ return {
28
+ success: true,
29
+ process: {
30
+ id: process.id,
31
+ name: process.name,
32
+ description: process.description,
33
+ content: process.content,
34
+ created_at: process.created_at,
35
+ updated_at: process.updated_at,
36
+ },
37
+ };
38
+ }
39
+ //# sourceMappingURL=processes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"processes.js","sourceRoot":"","sources":["../../src/tools/processes.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,wBAAwB;;AAQxB,8CAeC;AAKD,4CAiBC;AAxCD;;GAEG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAsB,EACtB,IAAgC;IAEhC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEvD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACvC,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC,CAAC;QACH,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;KACzB,CAAC;AACJ,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,gBAAgB,CACpC,MAAsB,EACtB,IAAoB;IAEpB,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEjD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,OAAO,EAAE;YACP,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,49 @@
1
+ import type { PlatformClient } from "../client.js";
2
+ /**
3
+ * Handle session_start tool call
4
+ */
5
+ export declare function handleSessionStart(client: PlatformClient, args: {
6
+ spec_id: string;
7
+ notes?: string;
8
+ }): Promise<{
9
+ success: boolean;
10
+ session: {
11
+ id: string;
12
+ spec_id: string;
13
+ session_number: number;
14
+ status: import("@ai_design_agency/sdd-core").SessionStatus;
15
+ started_at: string;
16
+ };
17
+ message: string;
18
+ }>;
19
+ /**
20
+ * Handle session_update tool call
21
+ */
22
+ export declare function handleSessionUpdate(client: PlatformClient, args: {
23
+ id: string;
24
+ notes: string;
25
+ }): Promise<{
26
+ success: boolean;
27
+ session: {
28
+ id: string;
29
+ status: import("@ai_design_agency/sdd-core").SessionStatus;
30
+ updated_at: string;
31
+ };
32
+ message: string;
33
+ }>;
34
+ /**
35
+ * Handle session_end tool call
36
+ */
37
+ export declare function handleSessionEnd(client: PlatformClient, args: {
38
+ id: string;
39
+ notes?: string;
40
+ }): Promise<{
41
+ success: boolean;
42
+ session: {
43
+ id: string;
44
+ status: import("@ai_design_agency/sdd-core").SessionStatus;
45
+ ended_at: string | null;
46
+ };
47
+ message: string;
48
+ }>;
49
+ //# sourceMappingURL=sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/tools/sessions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;GAkB1C;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;;;;;;;;GAepC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;GAarC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ // @spec FEA-202601002
3
+ // Session tool handlers
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.handleSessionStart = handleSessionStart;
6
+ exports.handleSessionUpdate = handleSessionUpdate;
7
+ exports.handleSessionEnd = handleSessionEnd;
8
+ /**
9
+ * Handle session_start tool call
10
+ */
11
+ async function handleSessionStart(client, args) {
12
+ const session = await client.startSession({
13
+ spec_id: args.spec_id,
14
+ notes: args.notes,
15
+ });
16
+ return {
17
+ success: true,
18
+ session: {
19
+ id: session.id,
20
+ spec_id: session.spec_id,
21
+ session_number: session.session_number,
22
+ status: session.status,
23
+ started_at: session.started_at,
24
+ },
25
+ message: `Started session ${session.session_number} for spec ${session.spec_id}`,
26
+ };
27
+ }
28
+ /**
29
+ * Handle session_update tool call
30
+ */
31
+ async function handleSessionUpdate(client, args) {
32
+ const session = await client.updateSession(args.id, {
33
+ notes: args.notes,
34
+ });
35
+ return {
36
+ success: true,
37
+ session: {
38
+ id: session.id,
39
+ status: session.status,
40
+ updated_at: session.updated_at,
41
+ },
42
+ message: `Updated session notes`,
43
+ };
44
+ }
45
+ /**
46
+ * Handle session_end tool call
47
+ */
48
+ async function handleSessionEnd(client, args) {
49
+ const session = await client.endSession(args.id, args.notes);
50
+ return {
51
+ success: true,
52
+ session: {
53
+ id: session.id,
54
+ status: session.status,
55
+ ended_at: session.ended_at,
56
+ },
57
+ message: `Ended session`,
58
+ };
59
+ }
60
+ //# sourceMappingURL=sessions.js.map