@zeliper/zscode-mcp-server 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.
Files changed (57) hide show
  1. package/dist/errors/index.d.ts +112 -0
  2. package/dist/errors/index.d.ts.map +1 -0
  3. package/dist/errors/index.js +231 -0
  4. package/dist/errors/index.js.map +1 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +50 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/state/manager.d.ts +54 -0
  10. package/dist/state/manager.d.ts.map +1 -0
  11. package/dist/state/manager.js +500 -0
  12. package/dist/state/manager.js.map +1 -0
  13. package/dist/state/schema.d.ts +942 -0
  14. package/dist/state/schema.d.ts.map +1 -0
  15. package/dist/state/schema.js +179 -0
  16. package/dist/state/schema.js.map +1 -0
  17. package/dist/state/types.d.ts +117 -0
  18. package/dist/state/types.d.ts.map +1 -0
  19. package/dist/state/types.js +2 -0
  20. package/dist/state/types.js.map +1 -0
  21. package/dist/tools/archive.d.ts +6 -0
  22. package/dist/tools/archive.d.ts.map +1 -0
  23. package/dist/tools/archive.js +67 -0
  24. package/dist/tools/archive.js.map +1 -0
  25. package/dist/tools/cancel.d.ts +6 -0
  26. package/dist/tools/cancel.d.ts.map +1 -0
  27. package/dist/tools/cancel.js +65 -0
  28. package/dist/tools/cancel.js.map +1 -0
  29. package/dist/tools/context.d.ts +6 -0
  30. package/dist/tools/context.d.ts.map +1 -0
  31. package/dist/tools/context.js +124 -0
  32. package/dist/tools/context.js.map +1 -0
  33. package/dist/tools/index.d.ts +6 -0
  34. package/dist/tools/index.d.ts.map +1 -0
  35. package/dist/tools/index.js +24 -0
  36. package/dist/tools/index.js.map +1 -0
  37. package/dist/tools/plan.d.ts +6 -0
  38. package/dist/tools/plan.d.ts.map +1 -0
  39. package/dist/tools/plan.js +186 -0
  40. package/dist/tools/plan.js.map +1 -0
  41. package/dist/tools/staging.d.ts +6 -0
  42. package/dist/tools/staging.d.ts.map +1 -0
  43. package/dist/tools/staging.js +224 -0
  44. package/dist/tools/staging.js.map +1 -0
  45. package/dist/tools/status.d.ts +6 -0
  46. package/dist/tools/status.d.ts.map +1 -0
  47. package/dist/tools/status.js +144 -0
  48. package/dist/tools/status.js.map +1 -0
  49. package/dist/utils/artifacts.d.ts +57 -0
  50. package/dist/utils/artifacts.d.ts.map +1 -0
  51. package/dist/utils/artifacts.js +180 -0
  52. package/dist/utils/artifacts.js.map +1 -0
  53. package/dist/utils/paths.d.ts +68 -0
  54. package/dist/utils/paths.d.ts.map +1 -0
  55. package/dist/utils/paths.js +122 -0
  56. package/dist/utils/paths.js.map +1 -0
  57. package/package.json +53 -0
@@ -0,0 +1,942 @@
1
+ import { z } from "zod";
2
+ export declare const ISODateStringSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
3
+ export declare const PlanIdSchema: z.ZodString;
4
+ export declare const StagingIdSchema: z.ZodString;
5
+ export declare const TaskIdSchema: z.ZodString;
6
+ export declare const TaskStatusSchema: z.ZodEnum<["pending", "in_progress", "done", "blocked", "cancelled"]>;
7
+ export declare const TaskPrioritySchema: z.ZodEnum<["high", "medium", "low"]>;
8
+ export declare const StagingStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>;
9
+ export declare const PlanStatusSchema: z.ZodEnum<["draft", "active", "completed", "archived", "cancelled"]>;
10
+ export declare const ExecutionTypeSchema: z.ZodEnum<["parallel", "sequential"]>;
11
+ export declare const HistoryEntryTypeSchema: z.ZodEnum<["project_initialized", "plan_created", "plan_updated", "plan_archived", "plan_cancelled", "staging_started", "staging_completed", "staging_failed", "task_started", "task_completed", "task_blocked", "decision_added", "session_started", "session_ended"]>;
12
+ export declare const TaskOutputSchema: z.ZodObject<{
13
+ status: z.ZodEnum<["success", "failure", "partial"]>;
14
+ summary: z.ZodString;
15
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
16
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
17
+ error: z.ZodOptional<z.ZodString>;
18
+ completedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: "success" | "failure" | "partial";
21
+ summary: string;
22
+ artifacts: string[];
23
+ completedAt: string;
24
+ data?: Record<string, unknown> | undefined;
25
+ error?: string | undefined;
26
+ }, {
27
+ status: "success" | "failure" | "partial";
28
+ summary: string;
29
+ completedAt: string;
30
+ artifacts?: string[] | undefined;
31
+ data?: Record<string, unknown> | undefined;
32
+ error?: string | undefined;
33
+ }>;
34
+ export declare const TaskSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ planId: z.ZodString;
37
+ stagingId: z.ZodString;
38
+ title: z.ZodString;
39
+ description: z.ZodOptional<z.ZodString>;
40
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
41
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "done", "blocked", "cancelled"]>>;
42
+ execution_mode: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
43
+ depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
44
+ order: z.ZodOptional<z.ZodNumber>;
45
+ notes: z.ZodOptional<z.ZodString>;
46
+ output: z.ZodOptional<z.ZodObject<{
47
+ status: z.ZodEnum<["success", "failure", "partial"]>;
48
+ summary: z.ZodString;
49
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
50
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
51
+ error: z.ZodOptional<z.ZodString>;
52
+ completedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ status: "success" | "failure" | "partial";
55
+ summary: string;
56
+ artifacts: string[];
57
+ completedAt: string;
58
+ data?: Record<string, unknown> | undefined;
59
+ error?: string | undefined;
60
+ }, {
61
+ status: "success" | "failure" | "partial";
62
+ summary: string;
63
+ completedAt: string;
64
+ artifacts?: string[] | undefined;
65
+ data?: Record<string, unknown> | undefined;
66
+ error?: string | undefined;
67
+ }>>;
68
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
69
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
70
+ startedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
71
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ status: "pending" | "in_progress" | "done" | "blocked" | "cancelled";
74
+ id: string;
75
+ planId: string;
76
+ stagingId: string;
77
+ title: string;
78
+ priority: "high" | "medium" | "low";
79
+ execution_mode: "parallel" | "sequential";
80
+ depends_on: string[];
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ completedAt?: string | undefined;
84
+ description?: string | undefined;
85
+ order?: number | undefined;
86
+ notes?: string | undefined;
87
+ output?: {
88
+ status: "success" | "failure" | "partial";
89
+ summary: string;
90
+ artifacts: string[];
91
+ completedAt: string;
92
+ data?: Record<string, unknown> | undefined;
93
+ error?: string | undefined;
94
+ } | undefined;
95
+ startedAt?: string | undefined;
96
+ }, {
97
+ id: string;
98
+ planId: string;
99
+ stagingId: string;
100
+ title: string;
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ status?: "pending" | "in_progress" | "done" | "blocked" | "cancelled" | undefined;
104
+ completedAt?: string | undefined;
105
+ description?: string | undefined;
106
+ priority?: "high" | "medium" | "low" | undefined;
107
+ execution_mode?: "parallel" | "sequential" | undefined;
108
+ depends_on?: string[] | undefined;
109
+ order?: number | undefined;
110
+ notes?: string | undefined;
111
+ output?: {
112
+ status: "success" | "failure" | "partial";
113
+ summary: string;
114
+ completedAt: string;
115
+ artifacts?: string[] | undefined;
116
+ data?: Record<string, unknown> | undefined;
117
+ error?: string | undefined;
118
+ } | undefined;
119
+ startedAt?: string | undefined;
120
+ }>;
121
+ export declare const StagingSchema: z.ZodObject<{
122
+ id: z.ZodString;
123
+ planId: z.ZodString;
124
+ name: z.ZodString;
125
+ description: z.ZodOptional<z.ZodString>;
126
+ order: z.ZodNumber;
127
+ execution_type: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
128
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
129
+ tasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
130
+ artifacts_path: z.ZodString;
131
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
132
+ startedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
133
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ status: "pending" | "in_progress" | "cancelled" | "completed" | "failed";
136
+ id: string;
137
+ planId: string;
138
+ order: number;
139
+ createdAt: string;
140
+ name: string;
141
+ execution_type: "parallel" | "sequential";
142
+ tasks: string[];
143
+ artifacts_path: string;
144
+ completedAt?: string | undefined;
145
+ description?: string | undefined;
146
+ startedAt?: string | undefined;
147
+ }, {
148
+ id: string;
149
+ planId: string;
150
+ order: number;
151
+ createdAt: string;
152
+ name: string;
153
+ artifacts_path: string;
154
+ status?: "pending" | "in_progress" | "cancelled" | "completed" | "failed" | undefined;
155
+ completedAt?: string | undefined;
156
+ description?: string | undefined;
157
+ startedAt?: string | undefined;
158
+ execution_type?: "parallel" | "sequential" | undefined;
159
+ tasks?: string[] | undefined;
160
+ }>;
161
+ export declare const PlanSchema: z.ZodObject<{
162
+ id: z.ZodString;
163
+ title: z.ZodString;
164
+ description: z.ZodOptional<z.ZodString>;
165
+ status: z.ZodDefault<z.ZodEnum<["draft", "active", "completed", "archived", "cancelled"]>>;
166
+ stagings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
167
+ currentStagingId: z.ZodOptional<z.ZodString>;
168
+ artifacts_root: z.ZodString;
169
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
170
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
171
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
172
+ archivedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ status: "cancelled" | "completed" | "draft" | "active" | "archived";
175
+ id: string;
176
+ title: string;
177
+ createdAt: string;
178
+ updatedAt: string;
179
+ stagings: string[];
180
+ artifacts_root: string;
181
+ completedAt?: string | undefined;
182
+ description?: string | undefined;
183
+ currentStagingId?: string | undefined;
184
+ archivedAt?: string | undefined;
185
+ }, {
186
+ id: string;
187
+ title: string;
188
+ createdAt: string;
189
+ updatedAt: string;
190
+ artifacts_root: string;
191
+ status?: "cancelled" | "completed" | "draft" | "active" | "archived" | undefined;
192
+ completedAt?: string | undefined;
193
+ description?: string | undefined;
194
+ stagings?: string[] | undefined;
195
+ currentStagingId?: string | undefined;
196
+ archivedAt?: string | undefined;
197
+ }>;
198
+ export declare const ProjectSchema: z.ZodObject<{
199
+ name: z.ZodString;
200
+ description: z.ZodOptional<z.ZodString>;
201
+ goals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
202
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
203
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
204
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ name: string;
209
+ goals: string[];
210
+ constraints: string[];
211
+ description?: string | undefined;
212
+ }, {
213
+ createdAt: string;
214
+ updatedAt: string;
215
+ name: string;
216
+ description?: string | undefined;
217
+ goals?: string[] | undefined;
218
+ constraints?: string[] | undefined;
219
+ }>;
220
+ export declare const HistoryEntrySchema: z.ZodObject<{
221
+ id: z.ZodString;
222
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
223
+ type: z.ZodEnum<["project_initialized", "plan_created", "plan_updated", "plan_archived", "plan_cancelled", "staging_started", "staging_completed", "staging_failed", "task_started", "task_completed", "task_blocked", "decision_added", "session_started", "session_ended"]>;
224
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
227
+ id: string;
228
+ timestamp: string;
229
+ details: Record<string, unknown>;
230
+ }, {
231
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
232
+ id: string;
233
+ timestamp: string;
234
+ details?: Record<string, unknown> | undefined;
235
+ }>;
236
+ export declare const DecisionSchema: z.ZodObject<{
237
+ id: z.ZodString;
238
+ title: z.ZodString;
239
+ decision: z.ZodString;
240
+ rationale: z.ZodOptional<z.ZodString>;
241
+ relatedPlanId: z.ZodOptional<z.ZodString>;
242
+ relatedStagingId: z.ZodOptional<z.ZodString>;
243
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ id: string;
246
+ title: string;
247
+ timestamp: string;
248
+ decision: string;
249
+ rationale?: string | undefined;
250
+ relatedPlanId?: string | undefined;
251
+ relatedStagingId?: string | undefined;
252
+ }, {
253
+ id: string;
254
+ title: string;
255
+ timestamp: string;
256
+ decision: string;
257
+ rationale?: string | undefined;
258
+ relatedPlanId?: string | undefined;
259
+ relatedStagingId?: string | undefined;
260
+ }>;
261
+ export declare const ContextSchema: z.ZodObject<{
262
+ lastUpdated: z.ZodUnion<[z.ZodString, z.ZodString]>;
263
+ activeFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
264
+ currentPlanId: z.ZodOptional<z.ZodString>;
265
+ currentStagingId: z.ZodOptional<z.ZodString>;
266
+ decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
267
+ id: z.ZodString;
268
+ title: z.ZodString;
269
+ decision: z.ZodString;
270
+ rationale: z.ZodOptional<z.ZodString>;
271
+ relatedPlanId: z.ZodOptional<z.ZodString>;
272
+ relatedStagingId: z.ZodOptional<z.ZodString>;
273
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ id: string;
276
+ title: string;
277
+ timestamp: string;
278
+ decision: string;
279
+ rationale?: string | undefined;
280
+ relatedPlanId?: string | undefined;
281
+ relatedStagingId?: string | undefined;
282
+ }, {
283
+ id: string;
284
+ title: string;
285
+ timestamp: string;
286
+ decision: string;
287
+ rationale?: string | undefined;
288
+ relatedPlanId?: string | undefined;
289
+ relatedStagingId?: string | undefined;
290
+ }>, "many">>;
291
+ sessionSummary: z.ZodOptional<z.ZodString>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ lastUpdated: string;
294
+ activeFiles: string[];
295
+ decisions: {
296
+ id: string;
297
+ title: string;
298
+ timestamp: string;
299
+ decision: string;
300
+ rationale?: string | undefined;
301
+ relatedPlanId?: string | undefined;
302
+ relatedStagingId?: string | undefined;
303
+ }[];
304
+ currentStagingId?: string | undefined;
305
+ currentPlanId?: string | undefined;
306
+ sessionSummary?: string | undefined;
307
+ }, {
308
+ lastUpdated: string;
309
+ currentStagingId?: string | undefined;
310
+ activeFiles?: string[] | undefined;
311
+ currentPlanId?: string | undefined;
312
+ decisions?: {
313
+ id: string;
314
+ title: string;
315
+ timestamp: string;
316
+ decision: string;
317
+ rationale?: string | undefined;
318
+ relatedPlanId?: string | undefined;
319
+ relatedStagingId?: string | undefined;
320
+ }[] | undefined;
321
+ sessionSummary?: string | undefined;
322
+ }>;
323
+ export declare const StateSchema: z.ZodObject<{
324
+ version: z.ZodLiteral<"2.0.0">;
325
+ project: z.ZodObject<{
326
+ name: z.ZodString;
327
+ description: z.ZodOptional<z.ZodString>;
328
+ goals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
329
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
330
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
331
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ createdAt: string;
334
+ updatedAt: string;
335
+ name: string;
336
+ goals: string[];
337
+ constraints: string[];
338
+ description?: string | undefined;
339
+ }, {
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ name: string;
343
+ description?: string | undefined;
344
+ goals?: string[] | undefined;
345
+ constraints?: string[] | undefined;
346
+ }>;
347
+ plans: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
348
+ id: z.ZodString;
349
+ title: z.ZodString;
350
+ description: z.ZodOptional<z.ZodString>;
351
+ status: z.ZodDefault<z.ZodEnum<["draft", "active", "completed", "archived", "cancelled"]>>;
352
+ stagings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
353
+ currentStagingId: z.ZodOptional<z.ZodString>;
354
+ artifacts_root: z.ZodString;
355
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
356
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
357
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
358
+ archivedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ status: "cancelled" | "completed" | "draft" | "active" | "archived";
361
+ id: string;
362
+ title: string;
363
+ createdAt: string;
364
+ updatedAt: string;
365
+ stagings: string[];
366
+ artifacts_root: string;
367
+ completedAt?: string | undefined;
368
+ description?: string | undefined;
369
+ currentStagingId?: string | undefined;
370
+ archivedAt?: string | undefined;
371
+ }, {
372
+ id: string;
373
+ title: string;
374
+ createdAt: string;
375
+ updatedAt: string;
376
+ artifacts_root: string;
377
+ status?: "cancelled" | "completed" | "draft" | "active" | "archived" | undefined;
378
+ completedAt?: string | undefined;
379
+ description?: string | undefined;
380
+ stagings?: string[] | undefined;
381
+ currentStagingId?: string | undefined;
382
+ archivedAt?: string | undefined;
383
+ }>>>;
384
+ stagings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
385
+ id: z.ZodString;
386
+ planId: z.ZodString;
387
+ name: z.ZodString;
388
+ description: z.ZodOptional<z.ZodString>;
389
+ order: z.ZodNumber;
390
+ execution_type: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
391
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "completed", "failed", "cancelled"]>>;
392
+ tasks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
393
+ artifacts_path: z.ZodString;
394
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
395
+ startedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
396
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ status: "pending" | "in_progress" | "cancelled" | "completed" | "failed";
399
+ id: string;
400
+ planId: string;
401
+ order: number;
402
+ createdAt: string;
403
+ name: string;
404
+ execution_type: "parallel" | "sequential";
405
+ tasks: string[];
406
+ artifacts_path: string;
407
+ completedAt?: string | undefined;
408
+ description?: string | undefined;
409
+ startedAt?: string | undefined;
410
+ }, {
411
+ id: string;
412
+ planId: string;
413
+ order: number;
414
+ createdAt: string;
415
+ name: string;
416
+ artifacts_path: string;
417
+ status?: "pending" | "in_progress" | "cancelled" | "completed" | "failed" | undefined;
418
+ completedAt?: string | undefined;
419
+ description?: string | undefined;
420
+ startedAt?: string | undefined;
421
+ execution_type?: "parallel" | "sequential" | undefined;
422
+ tasks?: string[] | undefined;
423
+ }>>>;
424
+ tasks: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
425
+ id: z.ZodString;
426
+ planId: z.ZodString;
427
+ stagingId: z.ZodString;
428
+ title: z.ZodString;
429
+ description: z.ZodOptional<z.ZodString>;
430
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
431
+ status: z.ZodDefault<z.ZodEnum<["pending", "in_progress", "done", "blocked", "cancelled"]>>;
432
+ execution_mode: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
433
+ depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
434
+ order: z.ZodOptional<z.ZodNumber>;
435
+ notes: z.ZodOptional<z.ZodString>;
436
+ output: z.ZodOptional<z.ZodObject<{
437
+ status: z.ZodEnum<["success", "failure", "partial"]>;
438
+ summary: z.ZodString;
439
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
440
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
441
+ error: z.ZodOptional<z.ZodString>;
442
+ completedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ status: "success" | "failure" | "partial";
445
+ summary: string;
446
+ artifacts: string[];
447
+ completedAt: string;
448
+ data?: Record<string, unknown> | undefined;
449
+ error?: string | undefined;
450
+ }, {
451
+ status: "success" | "failure" | "partial";
452
+ summary: string;
453
+ completedAt: string;
454
+ artifacts?: string[] | undefined;
455
+ data?: Record<string, unknown> | undefined;
456
+ error?: string | undefined;
457
+ }>>;
458
+ createdAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
459
+ updatedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
460
+ startedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
461
+ completedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ status: "pending" | "in_progress" | "done" | "blocked" | "cancelled";
464
+ id: string;
465
+ planId: string;
466
+ stagingId: string;
467
+ title: string;
468
+ priority: "high" | "medium" | "low";
469
+ execution_mode: "parallel" | "sequential";
470
+ depends_on: string[];
471
+ createdAt: string;
472
+ updatedAt: string;
473
+ completedAt?: string | undefined;
474
+ description?: string | undefined;
475
+ order?: number | undefined;
476
+ notes?: string | undefined;
477
+ output?: {
478
+ status: "success" | "failure" | "partial";
479
+ summary: string;
480
+ artifacts: string[];
481
+ completedAt: string;
482
+ data?: Record<string, unknown> | undefined;
483
+ error?: string | undefined;
484
+ } | undefined;
485
+ startedAt?: string | undefined;
486
+ }, {
487
+ id: string;
488
+ planId: string;
489
+ stagingId: string;
490
+ title: string;
491
+ createdAt: string;
492
+ updatedAt: string;
493
+ status?: "pending" | "in_progress" | "done" | "blocked" | "cancelled" | undefined;
494
+ completedAt?: string | undefined;
495
+ description?: string | undefined;
496
+ priority?: "high" | "medium" | "low" | undefined;
497
+ execution_mode?: "parallel" | "sequential" | undefined;
498
+ depends_on?: string[] | undefined;
499
+ order?: number | undefined;
500
+ notes?: string | undefined;
501
+ output?: {
502
+ status: "success" | "failure" | "partial";
503
+ summary: string;
504
+ completedAt: string;
505
+ artifacts?: string[] | undefined;
506
+ data?: Record<string, unknown> | undefined;
507
+ error?: string | undefined;
508
+ } | undefined;
509
+ startedAt?: string | undefined;
510
+ }>>>;
511
+ history: z.ZodDefault<z.ZodArray<z.ZodObject<{
512
+ id: z.ZodString;
513
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
514
+ type: z.ZodEnum<["project_initialized", "plan_created", "plan_updated", "plan_archived", "plan_cancelled", "staging_started", "staging_completed", "staging_failed", "task_started", "task_completed", "task_blocked", "decision_added", "session_started", "session_ended"]>;
515
+ details: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
518
+ id: string;
519
+ timestamp: string;
520
+ details: Record<string, unknown>;
521
+ }, {
522
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
523
+ id: string;
524
+ timestamp: string;
525
+ details?: Record<string, unknown> | undefined;
526
+ }>, "many">>;
527
+ context: z.ZodObject<{
528
+ lastUpdated: z.ZodUnion<[z.ZodString, z.ZodString]>;
529
+ activeFiles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
530
+ currentPlanId: z.ZodOptional<z.ZodString>;
531
+ currentStagingId: z.ZodOptional<z.ZodString>;
532
+ decisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
533
+ id: z.ZodString;
534
+ title: z.ZodString;
535
+ decision: z.ZodString;
536
+ rationale: z.ZodOptional<z.ZodString>;
537
+ relatedPlanId: z.ZodOptional<z.ZodString>;
538
+ relatedStagingId: z.ZodOptional<z.ZodString>;
539
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ id: string;
542
+ title: string;
543
+ timestamp: string;
544
+ decision: string;
545
+ rationale?: string | undefined;
546
+ relatedPlanId?: string | undefined;
547
+ relatedStagingId?: string | undefined;
548
+ }, {
549
+ id: string;
550
+ title: string;
551
+ timestamp: string;
552
+ decision: string;
553
+ rationale?: string | undefined;
554
+ relatedPlanId?: string | undefined;
555
+ relatedStagingId?: string | undefined;
556
+ }>, "many">>;
557
+ sessionSummary: z.ZodOptional<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ lastUpdated: string;
560
+ activeFiles: string[];
561
+ decisions: {
562
+ id: string;
563
+ title: string;
564
+ timestamp: string;
565
+ decision: string;
566
+ rationale?: string | undefined;
567
+ relatedPlanId?: string | undefined;
568
+ relatedStagingId?: string | undefined;
569
+ }[];
570
+ currentStagingId?: string | undefined;
571
+ currentPlanId?: string | undefined;
572
+ sessionSummary?: string | undefined;
573
+ }, {
574
+ lastUpdated: string;
575
+ currentStagingId?: string | undefined;
576
+ activeFiles?: string[] | undefined;
577
+ currentPlanId?: string | undefined;
578
+ decisions?: {
579
+ id: string;
580
+ title: string;
581
+ timestamp: string;
582
+ decision: string;
583
+ rationale?: string | undefined;
584
+ relatedPlanId?: string | undefined;
585
+ relatedStagingId?: string | undefined;
586
+ }[] | undefined;
587
+ sessionSummary?: string | undefined;
588
+ }>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ tasks: Record<string, {
591
+ status: "pending" | "in_progress" | "done" | "blocked" | "cancelled";
592
+ id: string;
593
+ planId: string;
594
+ stagingId: string;
595
+ title: string;
596
+ priority: "high" | "medium" | "low";
597
+ execution_mode: "parallel" | "sequential";
598
+ depends_on: string[];
599
+ createdAt: string;
600
+ updatedAt: string;
601
+ completedAt?: string | undefined;
602
+ description?: string | undefined;
603
+ order?: number | undefined;
604
+ notes?: string | undefined;
605
+ output?: {
606
+ status: "success" | "failure" | "partial";
607
+ summary: string;
608
+ artifacts: string[];
609
+ completedAt: string;
610
+ data?: Record<string, unknown> | undefined;
611
+ error?: string | undefined;
612
+ } | undefined;
613
+ startedAt?: string | undefined;
614
+ }>;
615
+ stagings: Record<string, {
616
+ status: "pending" | "in_progress" | "cancelled" | "completed" | "failed";
617
+ id: string;
618
+ planId: string;
619
+ order: number;
620
+ createdAt: string;
621
+ name: string;
622
+ execution_type: "parallel" | "sequential";
623
+ tasks: string[];
624
+ artifacts_path: string;
625
+ completedAt?: string | undefined;
626
+ description?: string | undefined;
627
+ startedAt?: string | undefined;
628
+ }>;
629
+ version: "2.0.0";
630
+ project: {
631
+ createdAt: string;
632
+ updatedAt: string;
633
+ name: string;
634
+ goals: string[];
635
+ constraints: string[];
636
+ description?: string | undefined;
637
+ };
638
+ plans: Record<string, {
639
+ status: "cancelled" | "completed" | "draft" | "active" | "archived";
640
+ id: string;
641
+ title: string;
642
+ createdAt: string;
643
+ updatedAt: string;
644
+ stagings: string[];
645
+ artifacts_root: string;
646
+ completedAt?: string | undefined;
647
+ description?: string | undefined;
648
+ currentStagingId?: string | undefined;
649
+ archivedAt?: string | undefined;
650
+ }>;
651
+ history: {
652
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
653
+ id: string;
654
+ timestamp: string;
655
+ details: Record<string, unknown>;
656
+ }[];
657
+ context: {
658
+ lastUpdated: string;
659
+ activeFiles: string[];
660
+ decisions: {
661
+ id: string;
662
+ title: string;
663
+ timestamp: string;
664
+ decision: string;
665
+ rationale?: string | undefined;
666
+ relatedPlanId?: string | undefined;
667
+ relatedStagingId?: string | undefined;
668
+ }[];
669
+ currentStagingId?: string | undefined;
670
+ currentPlanId?: string | undefined;
671
+ sessionSummary?: string | undefined;
672
+ };
673
+ }, {
674
+ version: "2.0.0";
675
+ project: {
676
+ createdAt: string;
677
+ updatedAt: string;
678
+ name: string;
679
+ description?: string | undefined;
680
+ goals?: string[] | undefined;
681
+ constraints?: string[] | undefined;
682
+ };
683
+ context: {
684
+ lastUpdated: string;
685
+ currentStagingId?: string | undefined;
686
+ activeFiles?: string[] | undefined;
687
+ currentPlanId?: string | undefined;
688
+ decisions?: {
689
+ id: string;
690
+ title: string;
691
+ timestamp: string;
692
+ decision: string;
693
+ rationale?: string | undefined;
694
+ relatedPlanId?: string | undefined;
695
+ relatedStagingId?: string | undefined;
696
+ }[] | undefined;
697
+ sessionSummary?: string | undefined;
698
+ };
699
+ tasks?: Record<string, {
700
+ id: string;
701
+ planId: string;
702
+ stagingId: string;
703
+ title: string;
704
+ createdAt: string;
705
+ updatedAt: string;
706
+ status?: "pending" | "in_progress" | "done" | "blocked" | "cancelled" | undefined;
707
+ completedAt?: string | undefined;
708
+ description?: string | undefined;
709
+ priority?: "high" | "medium" | "low" | undefined;
710
+ execution_mode?: "parallel" | "sequential" | undefined;
711
+ depends_on?: string[] | undefined;
712
+ order?: number | undefined;
713
+ notes?: string | undefined;
714
+ output?: {
715
+ status: "success" | "failure" | "partial";
716
+ summary: string;
717
+ completedAt: string;
718
+ artifacts?: string[] | undefined;
719
+ data?: Record<string, unknown> | undefined;
720
+ error?: string | undefined;
721
+ } | undefined;
722
+ startedAt?: string | undefined;
723
+ }> | undefined;
724
+ stagings?: Record<string, {
725
+ id: string;
726
+ planId: string;
727
+ order: number;
728
+ createdAt: string;
729
+ name: string;
730
+ artifacts_path: string;
731
+ status?: "pending" | "in_progress" | "cancelled" | "completed" | "failed" | undefined;
732
+ completedAt?: string | undefined;
733
+ description?: string | undefined;
734
+ startedAt?: string | undefined;
735
+ execution_type?: "parallel" | "sequential" | undefined;
736
+ tasks?: string[] | undefined;
737
+ }> | undefined;
738
+ plans?: Record<string, {
739
+ id: string;
740
+ title: string;
741
+ createdAt: string;
742
+ updatedAt: string;
743
+ artifacts_root: string;
744
+ status?: "cancelled" | "completed" | "draft" | "active" | "archived" | undefined;
745
+ completedAt?: string | undefined;
746
+ description?: string | undefined;
747
+ stagings?: string[] | undefined;
748
+ currentStagingId?: string | undefined;
749
+ archivedAt?: string | undefined;
750
+ }> | undefined;
751
+ history?: {
752
+ type: "project_initialized" | "plan_created" | "plan_updated" | "plan_archived" | "plan_cancelled" | "staging_started" | "staging_completed" | "staging_failed" | "task_started" | "task_completed" | "task_blocked" | "decision_added" | "session_started" | "session_ended";
753
+ id: string;
754
+ timestamp: string;
755
+ details?: Record<string, unknown> | undefined;
756
+ }[] | undefined;
757
+ }>;
758
+ export declare const CreatePlanInputSchema: z.ZodObject<{
759
+ title: z.ZodString;
760
+ description: z.ZodOptional<z.ZodString>;
761
+ stagings: z.ZodArray<z.ZodObject<{
762
+ name: z.ZodString;
763
+ description: z.ZodOptional<z.ZodString>;
764
+ execution_type: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
765
+ tasks: z.ZodArray<z.ZodObject<{
766
+ title: z.ZodString;
767
+ description: z.ZodOptional<z.ZodString>;
768
+ priority: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
769
+ execution_mode: z.ZodDefault<z.ZodEnum<["parallel", "sequential"]>>;
770
+ depends_on_index: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ title: string;
773
+ priority: "high" | "medium" | "low";
774
+ execution_mode: "parallel" | "sequential";
775
+ depends_on_index: number[];
776
+ description?: string | undefined;
777
+ }, {
778
+ title: string;
779
+ description?: string | undefined;
780
+ priority?: "high" | "medium" | "low" | undefined;
781
+ execution_mode?: "parallel" | "sequential" | undefined;
782
+ depends_on_index?: number[] | undefined;
783
+ }>, "many">;
784
+ }, "strip", z.ZodTypeAny, {
785
+ name: string;
786
+ execution_type: "parallel" | "sequential";
787
+ tasks: {
788
+ title: string;
789
+ priority: "high" | "medium" | "low";
790
+ execution_mode: "parallel" | "sequential";
791
+ depends_on_index: number[];
792
+ description?: string | undefined;
793
+ }[];
794
+ description?: string | undefined;
795
+ }, {
796
+ name: string;
797
+ tasks: {
798
+ title: string;
799
+ description?: string | undefined;
800
+ priority?: "high" | "medium" | "low" | undefined;
801
+ execution_mode?: "parallel" | "sequential" | undefined;
802
+ depends_on_index?: number[] | undefined;
803
+ }[];
804
+ description?: string | undefined;
805
+ execution_type?: "parallel" | "sequential" | undefined;
806
+ }>, "many">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ title: string;
809
+ stagings: {
810
+ name: string;
811
+ execution_type: "parallel" | "sequential";
812
+ tasks: {
813
+ title: string;
814
+ priority: "high" | "medium" | "low";
815
+ execution_mode: "parallel" | "sequential";
816
+ depends_on_index: number[];
817
+ description?: string | undefined;
818
+ }[];
819
+ description?: string | undefined;
820
+ }[];
821
+ description?: string | undefined;
822
+ }, {
823
+ title: string;
824
+ stagings: {
825
+ name: string;
826
+ tasks: {
827
+ title: string;
828
+ description?: string | undefined;
829
+ priority?: "high" | "medium" | "low" | undefined;
830
+ execution_mode?: "parallel" | "sequential" | undefined;
831
+ depends_on_index?: number[] | undefined;
832
+ }[];
833
+ description?: string | undefined;
834
+ execution_type?: "parallel" | "sequential" | undefined;
835
+ }[];
836
+ description?: string | undefined;
837
+ }>;
838
+ export declare const StartStagingInputSchema: z.ZodObject<{
839
+ planId: z.ZodString;
840
+ stagingId: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ planId: string;
843
+ stagingId: string;
844
+ }, {
845
+ planId: string;
846
+ stagingId: string;
847
+ }>;
848
+ export declare const StatusInputSchema: z.ZodObject<{
849
+ planId: z.ZodOptional<z.ZodString>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ planId?: string | undefined;
852
+ }, {
853
+ planId?: string | undefined;
854
+ }>;
855
+ export declare const ArchiveInputSchema: z.ZodObject<{
856
+ planId: z.ZodString;
857
+ reason: z.ZodOptional<z.ZodString>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ planId: string;
860
+ reason?: string | undefined;
861
+ }, {
862
+ planId: string;
863
+ reason?: string | undefined;
864
+ }>;
865
+ export declare const CancelInputSchema: z.ZodObject<{
866
+ planId: z.ZodString;
867
+ reason: z.ZodOptional<z.ZodString>;
868
+ archiveImmediately: z.ZodDefault<z.ZodBoolean>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ planId: string;
871
+ archiveImmediately: boolean;
872
+ reason?: string | undefined;
873
+ }, {
874
+ planId: string;
875
+ reason?: string | undefined;
876
+ archiveImmediately?: boolean | undefined;
877
+ }>;
878
+ export declare const SaveTaskOutputInputSchema: z.ZodObject<{
879
+ planId: z.ZodString;
880
+ stagingId: z.ZodString;
881
+ taskId: z.ZodString;
882
+ output: z.ZodObject<{
883
+ status: z.ZodEnum<["success", "failure", "partial"]>;
884
+ summary: z.ZodString;
885
+ artifacts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
886
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
+ error: z.ZodOptional<z.ZodString>;
888
+ completedAt: z.ZodUnion<[z.ZodString, z.ZodString]>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ status: "success" | "failure" | "partial";
891
+ summary: string;
892
+ artifacts: string[];
893
+ completedAt: string;
894
+ data?: Record<string, unknown> | undefined;
895
+ error?: string | undefined;
896
+ }, {
897
+ status: "success" | "failure" | "partial";
898
+ summary: string;
899
+ completedAt: string;
900
+ artifacts?: string[] | undefined;
901
+ data?: Record<string, unknown> | undefined;
902
+ error?: string | undefined;
903
+ }>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ planId: string;
906
+ stagingId: string;
907
+ output: {
908
+ status: "success" | "failure" | "partial";
909
+ summary: string;
910
+ artifacts: string[];
911
+ completedAt: string;
912
+ data?: Record<string, unknown> | undefined;
913
+ error?: string | undefined;
914
+ };
915
+ taskId: string;
916
+ }, {
917
+ planId: string;
918
+ stagingId: string;
919
+ output: {
920
+ status: "success" | "failure" | "partial";
921
+ summary: string;
922
+ completedAt: string;
923
+ artifacts?: string[] | undefined;
924
+ data?: Record<string, unknown> | undefined;
925
+ error?: string | undefined;
926
+ };
927
+ taskId: string;
928
+ }>;
929
+ export declare const UpdateTaskStatusInputSchema: z.ZodObject<{
930
+ taskId: z.ZodString;
931
+ status: z.ZodEnum<["pending", "in_progress", "done", "blocked", "cancelled"]>;
932
+ notes: z.ZodOptional<z.ZodString>;
933
+ }, "strip", z.ZodTypeAny, {
934
+ status: "pending" | "in_progress" | "done" | "blocked" | "cancelled";
935
+ taskId: string;
936
+ notes?: string | undefined;
937
+ }, {
938
+ status: "pending" | "in_progress" | "done" | "blocked" | "cancelled";
939
+ taskId: string;
940
+ notes?: string | undefined;
941
+ }>;
942
+ //# sourceMappingURL=schema.d.ts.map