@lovelybunch/core 1.0.75-alpha.1 → 1.0.75-alpha.10

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 (43) hide show
  1. package/dist/agent-instructions.d.ts +17 -0
  2. package/dist/agent-instructions.d.ts.map +1 -0
  3. package/dist/agent-instructions.js +160 -0
  4. package/dist/agent-instructions.js.map +1 -0
  5. package/dist/context.d.ts +8 -8
  6. package/dist/index.d.ts +2 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/knowledge.d.ts +40 -40
  11. package/dist/knowledge.js +1 -1
  12. package/dist/knowledge.js.map +1 -1
  13. package/dist/logging/index.d.ts +5 -5
  14. package/dist/logging/index.d.ts.map +1 -1
  15. package/dist/logging/index.js +5 -5
  16. package/dist/logging/index.js.map +1 -1
  17. package/dist/logging/kinds.d.ts +24 -24
  18. package/dist/logging/kinds.d.ts.map +1 -1
  19. package/dist/logging/kinds.js +24 -24
  20. package/dist/logging/kinds.js.map +1 -1
  21. package/dist/markdown-storage.d.ts +12 -11
  22. package/dist/markdown-storage.d.ts.map +1 -1
  23. package/dist/markdown-storage.js +213 -143
  24. package/dist/markdown-storage.js.map +1 -1
  25. package/dist/proposals.d.ts +136 -136
  26. package/dist/skill-instructions.d.ts +19 -0
  27. package/dist/skill-instructions.d.ts.map +1 -0
  28. package/dist/skill-instructions.js +165 -0
  29. package/dist/skill-instructions.js.map +1 -0
  30. package/dist/storage.d.ts +21 -24
  31. package/dist/storage.d.ts.map +1 -1
  32. package/dist/storage.js +155 -181
  33. package/dist/storage.js.map +1 -1
  34. package/dist/system-prompts/coconut-assistant.md +40 -6
  35. package/dist/system-prompts/schema/agent.schema.md +1 -1
  36. package/dist/system-prompts/schema/knowledge.schema.md +2 -2
  37. package/dist/system-prompts/schema/skill.schema.md +73 -0
  38. package/dist/system-prompts/schema/{proposal.schema.md → task.schema.md} +2 -2
  39. package/dist/tasks.d.ts +764 -0
  40. package/dist/tasks.d.ts.map +1 -0
  41. package/dist/tasks.js +483 -0
  42. package/dist/tasks.js.map +1 -0
  43. package/package.json +2 -2
@@ -0,0 +1,764 @@
1
+ import { z } from 'zod';
2
+ import type { Task } from '@lovelybunch/types';
3
+ export declare const TaskStatusSchema: z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>;
4
+ export declare const TaskPrioritySchema: z.ZodEnum<["low", "medium", "high", "critical"]>;
5
+ export type TaskPriority = z.infer<typeof TaskPrioritySchema>;
6
+ export declare const AuthorSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ name: z.ZodString;
9
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
10
+ role: z.ZodOptional<z.ZodString>;
11
+ type: z.ZodEnum<["human", "agent"]>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ name: string;
15
+ type: "human" | "agent";
16
+ email?: string | undefined;
17
+ role?: string | undefined;
18
+ }, {
19
+ id: string;
20
+ name: string;
21
+ type: "human" | "agent";
22
+ email?: string | undefined;
23
+ role?: string | undefined;
24
+ }>;
25
+ export type AuthorInput = z.infer<typeof AuthorSchema>;
26
+ export declare const TaskFiltersSchema: z.ZodObject<{
27
+ status: z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>;
28
+ author: z.ZodOptional<z.ZodString>;
29
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
30
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
+ search: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
34
+ author?: string | undefined;
35
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
36
+ tags?: string[] | undefined;
37
+ search?: string | undefined;
38
+ }, {
39
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
40
+ author?: string | undefined;
41
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
42
+ tags?: string[] | undefined;
43
+ search?: string | undefined;
44
+ }>;
45
+ export type TaskFilters = z.infer<typeof TaskFiltersSchema>;
46
+ export declare const PlanStepInputSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
47
+ id: z.ZodOptional<z.ZodString>;
48
+ description: z.ZodString;
49
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
50
+ command: z.ZodOptional<z.ZodString>;
51
+ expectedOutcome: z.ZodOptional<z.ZodString>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ description: string;
54
+ id?: string | undefined;
55
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
56
+ command?: string | undefined;
57
+ expectedOutcome?: string | undefined;
58
+ }, {
59
+ description: string;
60
+ id?: string | undefined;
61
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
62
+ command?: string | undefined;
63
+ expectedOutcome?: string | undefined;
64
+ }>]>;
65
+ export type PlanStepInput = z.infer<typeof PlanStepInputSchema>;
66
+ export declare const CreateTaskInputSchema: z.ZodEffects<z.ZodObject<{
67
+ title: z.ZodOptional<z.ZodString>;
68
+ /** @deprecated Use `title` instead. Will be removed in a future version. */
69
+ intent: z.ZodOptional<z.ZodString>;
70
+ content: z.ZodString;
71
+ author: z.ZodOptional<z.ZodObject<{
72
+ id: z.ZodString;
73
+ name: z.ZodString;
74
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
75
+ role: z.ZodOptional<z.ZodString>;
76
+ type: z.ZodEnum<["human", "agent"]>;
77
+ }, "strip", z.ZodTypeAny, {
78
+ id: string;
79
+ name: string;
80
+ type: "human" | "agent";
81
+ email?: string | undefined;
82
+ role?: string | undefined;
83
+ }, {
84
+ id: string;
85
+ name: string;
86
+ type: "human" | "agent";
87
+ email?: string | undefined;
88
+ role?: string | undefined;
89
+ }>>;
90
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
91
+ id: z.ZodOptional<z.ZodString>;
92
+ description: z.ZodString;
93
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
94
+ command: z.ZodOptional<z.ZodString>;
95
+ expectedOutcome: z.ZodOptional<z.ZodString>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ description: string;
98
+ id?: string | undefined;
99
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
100
+ command?: string | undefined;
101
+ expectedOutcome?: string | undefined;
102
+ }, {
103
+ description: string;
104
+ id?: string | undefined;
105
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
106
+ command?: string | undefined;
107
+ expectedOutcome?: string | undefined;
108
+ }>]>, "many">>;
109
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>>;
110
+ metadata: z.ZodOptional<z.ZodObject<{
111
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
113
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
116
+ tags?: string[] | undefined;
117
+ reviewers?: string[] | undefined;
118
+ }, {
119
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
120
+ tags?: string[] | undefined;
121
+ reviewers?: string[] | undefined;
122
+ }>>;
123
+ productSpecRef: z.ZodOptional<z.ZodString>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ status: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate";
126
+ content: string;
127
+ author?: {
128
+ id: string;
129
+ name: string;
130
+ type: "human" | "agent";
131
+ email?: string | undefined;
132
+ role?: string | undefined;
133
+ } | undefined;
134
+ title?: string | undefined;
135
+ intent?: string | undefined;
136
+ planSteps?: (string | {
137
+ description: string;
138
+ id?: string | undefined;
139
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
140
+ command?: string | undefined;
141
+ expectedOutcome?: string | undefined;
142
+ })[] | undefined;
143
+ metadata?: {
144
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
145
+ tags?: string[] | undefined;
146
+ reviewers?: string[] | undefined;
147
+ } | undefined;
148
+ productSpecRef?: string | undefined;
149
+ }, {
150
+ content: string;
151
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
152
+ author?: {
153
+ id: string;
154
+ name: string;
155
+ type: "human" | "agent";
156
+ email?: string | undefined;
157
+ role?: string | undefined;
158
+ } | undefined;
159
+ title?: string | undefined;
160
+ intent?: string | undefined;
161
+ planSteps?: (string | {
162
+ description: string;
163
+ id?: string | undefined;
164
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
165
+ command?: string | undefined;
166
+ expectedOutcome?: string | undefined;
167
+ })[] | undefined;
168
+ metadata?: {
169
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
170
+ tags?: string[] | undefined;
171
+ reviewers?: string[] | undefined;
172
+ } | undefined;
173
+ productSpecRef?: string | undefined;
174
+ }>, {
175
+ status: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate";
176
+ content: string;
177
+ author?: {
178
+ id: string;
179
+ name: string;
180
+ type: "human" | "agent";
181
+ email?: string | undefined;
182
+ role?: string | undefined;
183
+ } | undefined;
184
+ title?: string | undefined;
185
+ intent?: string | undefined;
186
+ planSteps?: (string | {
187
+ description: string;
188
+ id?: string | undefined;
189
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
190
+ command?: string | undefined;
191
+ expectedOutcome?: string | undefined;
192
+ })[] | undefined;
193
+ metadata?: {
194
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
195
+ tags?: string[] | undefined;
196
+ reviewers?: string[] | undefined;
197
+ } | undefined;
198
+ productSpecRef?: string | undefined;
199
+ }, {
200
+ content: string;
201
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
202
+ author?: {
203
+ id: string;
204
+ name: string;
205
+ type: "human" | "agent";
206
+ email?: string | undefined;
207
+ role?: string | undefined;
208
+ } | undefined;
209
+ title?: string | undefined;
210
+ intent?: string | undefined;
211
+ planSteps?: (string | {
212
+ description: string;
213
+ id?: string | undefined;
214
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
215
+ command?: string | undefined;
216
+ expectedOutcome?: string | undefined;
217
+ })[] | undefined;
218
+ metadata?: {
219
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
220
+ tags?: string[] | undefined;
221
+ reviewers?: string[] | undefined;
222
+ } | undefined;
223
+ productSpecRef?: string | undefined;
224
+ }>;
225
+ export type CreateTaskInput = z.infer<typeof CreateTaskInputSchema>;
226
+ export declare const UpdateTaskInputSchema: z.ZodEffects<z.ZodObject<{
227
+ title: z.ZodOptional<z.ZodString>;
228
+ /** @deprecated Use `title` instead. Will be removed in a future version. */
229
+ intent: z.ZodOptional<z.ZodString>;
230
+ content: z.ZodOptional<z.ZodString>;
231
+ status: z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>;
232
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
233
+ id: z.ZodOptional<z.ZodString>;
234
+ description: z.ZodString;
235
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
236
+ command: z.ZodOptional<z.ZodString>;
237
+ expectedOutcome: z.ZodOptional<z.ZodString>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ description: string;
240
+ id?: string | undefined;
241
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
242
+ command?: string | undefined;
243
+ expectedOutcome?: string | undefined;
244
+ }, {
245
+ description: string;
246
+ id?: string | undefined;
247
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
248
+ command?: string | undefined;
249
+ expectedOutcome?: string | undefined;
250
+ }>]>, "many">>;
251
+ metadata: z.ZodOptional<z.ZodObject<{
252
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
254
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
257
+ tags?: string[] | undefined;
258
+ reviewers?: string[] | undefined;
259
+ }, {
260
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
261
+ tags?: string[] | undefined;
262
+ reviewers?: string[] | undefined;
263
+ }>>;
264
+ productSpecRef: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
267
+ title?: string | undefined;
268
+ intent?: string | undefined;
269
+ content?: string | undefined;
270
+ planSteps?: (string | {
271
+ description: string;
272
+ id?: string | undefined;
273
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
274
+ command?: string | undefined;
275
+ expectedOutcome?: string | undefined;
276
+ })[] | undefined;
277
+ metadata?: {
278
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
279
+ tags?: string[] | undefined;
280
+ reviewers?: string[] | undefined;
281
+ } | undefined;
282
+ productSpecRef?: string | undefined;
283
+ }, {
284
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
285
+ title?: string | undefined;
286
+ intent?: string | undefined;
287
+ content?: string | undefined;
288
+ planSteps?: (string | {
289
+ description: string;
290
+ id?: string | undefined;
291
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
292
+ command?: string | undefined;
293
+ expectedOutcome?: string | undefined;
294
+ })[] | undefined;
295
+ metadata?: {
296
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
297
+ tags?: string[] | undefined;
298
+ reviewers?: string[] | undefined;
299
+ } | undefined;
300
+ productSpecRef?: string | undefined;
301
+ }>, {
302
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
303
+ title?: string | undefined;
304
+ intent?: string | undefined;
305
+ content?: string | undefined;
306
+ planSteps?: (string | {
307
+ description: string;
308
+ id?: string | undefined;
309
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
310
+ command?: string | undefined;
311
+ expectedOutcome?: string | undefined;
312
+ })[] | undefined;
313
+ metadata?: {
314
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
315
+ tags?: string[] | undefined;
316
+ reviewers?: string[] | undefined;
317
+ } | undefined;
318
+ productSpecRef?: string | undefined;
319
+ }, {
320
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
321
+ title?: string | undefined;
322
+ intent?: string | undefined;
323
+ content?: string | undefined;
324
+ planSteps?: (string | {
325
+ description: string;
326
+ id?: string | undefined;
327
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
328
+ command?: string | undefined;
329
+ expectedOutcome?: string | undefined;
330
+ })[] | undefined;
331
+ metadata?: {
332
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
333
+ tags?: string[] | undefined;
334
+ reviewers?: string[] | undefined;
335
+ } | undefined;
336
+ productSpecRef?: string | undefined;
337
+ }>;
338
+ export type UpdateTaskInput = z.infer<typeof UpdateTaskInputSchema>;
339
+ /**
340
+ * List tasks with optional filtering and search
341
+ */
342
+ export declare function listTasks(filters?: TaskFilters): Promise<Task[]>;
343
+ /**
344
+ * Get a single task by ID
345
+ */
346
+ export declare function getTask(id: string): Promise<Task | null>;
347
+ /**
348
+ * Create a new task
349
+ */
350
+ export declare function createTask(input: CreateTaskInput): Promise<Task>;
351
+ /**
352
+ * Update an existing task
353
+ */
354
+ export declare function updateTask(id: string, updates: UpdateTaskInput): Promise<Task>;
355
+ /**
356
+ * Delete a task by ID
357
+ */
358
+ export declare function deleteTask(id: string): Promise<boolean>;
359
+ export declare const AddPlanStepInputSchema: z.ZodObject<{
360
+ description: z.ZodString;
361
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
362
+ command: z.ZodOptional<z.ZodString>;
363
+ expectedOutcome: z.ZodOptional<z.ZodString>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ description: string;
366
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
367
+ command?: string | undefined;
368
+ expectedOutcome?: string | undefined;
369
+ }, {
370
+ description: string;
371
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
372
+ command?: string | undefined;
373
+ expectedOutcome?: string | undefined;
374
+ }>;
375
+ export type AddPlanStepInput = z.infer<typeof AddPlanStepInputSchema>;
376
+ export declare const AddCommentInputSchema: z.ZodObject<{
377
+ author: z.ZodString;
378
+ content: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ author: string;
381
+ content: string;
382
+ }, {
383
+ author: string;
384
+ content: string;
385
+ }>;
386
+ export type AddCommentInput = z.infer<typeof AddCommentInputSchema>;
387
+ /**
388
+ * Add a plan step to an existing task
389
+ */
390
+ export declare function addPlanStep(taskId: string, step: AddPlanStepInput): Promise<Task['planSteps'][number]>;
391
+ /**
392
+ * Add a comment to an existing task
393
+ */
394
+ export declare function addComment(taskId: string, comment: AddCommentInput): Promise<{
395
+ id: string;
396
+ author: string;
397
+ content: string;
398
+ createdAt: string;
399
+ }>;
400
+ export declare const taskSchemas: {
401
+ TaskStatusSchema: z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>;
402
+ TaskPrioritySchema: z.ZodEnum<["low", "medium", "high", "critical"]>;
403
+ AuthorSchema: z.ZodObject<{
404
+ id: z.ZodString;
405
+ name: z.ZodString;
406
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
407
+ role: z.ZodOptional<z.ZodString>;
408
+ type: z.ZodEnum<["human", "agent"]>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ id: string;
411
+ name: string;
412
+ type: "human" | "agent";
413
+ email?: string | undefined;
414
+ role?: string | undefined;
415
+ }, {
416
+ id: string;
417
+ name: string;
418
+ type: "human" | "agent";
419
+ email?: string | undefined;
420
+ role?: string | undefined;
421
+ }>;
422
+ TaskFiltersSchema: z.ZodObject<{
423
+ status: z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>;
424
+ author: z.ZodOptional<z.ZodString>;
425
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
426
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
427
+ search: z.ZodOptional<z.ZodString>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
430
+ author?: string | undefined;
431
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
432
+ tags?: string[] | undefined;
433
+ search?: string | undefined;
434
+ }, {
435
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
436
+ author?: string | undefined;
437
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
438
+ tags?: string[] | undefined;
439
+ search?: string | undefined;
440
+ }>;
441
+ PlanStepInputSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
442
+ id: z.ZodOptional<z.ZodString>;
443
+ description: z.ZodString;
444
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
445
+ command: z.ZodOptional<z.ZodString>;
446
+ expectedOutcome: z.ZodOptional<z.ZodString>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ description: string;
449
+ id?: string | undefined;
450
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
451
+ command?: string | undefined;
452
+ expectedOutcome?: string | undefined;
453
+ }, {
454
+ description: string;
455
+ id?: string | undefined;
456
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
457
+ command?: string | undefined;
458
+ expectedOutcome?: string | undefined;
459
+ }>]>;
460
+ CreateTaskInputSchema: z.ZodEffects<z.ZodObject<{
461
+ title: z.ZodOptional<z.ZodString>;
462
+ /** @deprecated Use `title` instead. Will be removed in a future version. */
463
+ intent: z.ZodOptional<z.ZodString>;
464
+ content: z.ZodString;
465
+ author: z.ZodOptional<z.ZodObject<{
466
+ id: z.ZodString;
467
+ name: z.ZodString;
468
+ email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
469
+ role: z.ZodOptional<z.ZodString>;
470
+ type: z.ZodEnum<["human", "agent"]>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ id: string;
473
+ name: string;
474
+ type: "human" | "agent";
475
+ email?: string | undefined;
476
+ role?: string | undefined;
477
+ }, {
478
+ id: string;
479
+ name: string;
480
+ type: "human" | "agent";
481
+ email?: string | undefined;
482
+ role?: string | undefined;
483
+ }>>;
484
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
485
+ id: z.ZodOptional<z.ZodString>;
486
+ description: z.ZodString;
487
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
488
+ command: z.ZodOptional<z.ZodString>;
489
+ expectedOutcome: z.ZodOptional<z.ZodString>;
490
+ }, "strip", z.ZodTypeAny, {
491
+ description: string;
492
+ id?: string | undefined;
493
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
494
+ command?: string | undefined;
495
+ expectedOutcome?: string | undefined;
496
+ }, {
497
+ description: string;
498
+ id?: string | undefined;
499
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
500
+ command?: string | undefined;
501
+ expectedOutcome?: string | undefined;
502
+ }>]>, "many">>;
503
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>>;
504
+ metadata: z.ZodOptional<z.ZodObject<{
505
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
506
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
507
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
510
+ tags?: string[] | undefined;
511
+ reviewers?: string[] | undefined;
512
+ }, {
513
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
514
+ tags?: string[] | undefined;
515
+ reviewers?: string[] | undefined;
516
+ }>>;
517
+ productSpecRef: z.ZodOptional<z.ZodString>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ status: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate";
520
+ content: string;
521
+ author?: {
522
+ id: string;
523
+ name: string;
524
+ type: "human" | "agent";
525
+ email?: string | undefined;
526
+ role?: string | undefined;
527
+ } | undefined;
528
+ title?: string | undefined;
529
+ intent?: string | undefined;
530
+ planSteps?: (string | {
531
+ description: string;
532
+ id?: string | undefined;
533
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
534
+ command?: string | undefined;
535
+ expectedOutcome?: string | undefined;
536
+ })[] | undefined;
537
+ metadata?: {
538
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
539
+ tags?: string[] | undefined;
540
+ reviewers?: string[] | undefined;
541
+ } | undefined;
542
+ productSpecRef?: string | undefined;
543
+ }, {
544
+ content: string;
545
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
546
+ author?: {
547
+ id: string;
548
+ name: string;
549
+ type: "human" | "agent";
550
+ email?: string | undefined;
551
+ role?: string | undefined;
552
+ } | undefined;
553
+ title?: string | undefined;
554
+ intent?: string | undefined;
555
+ planSteps?: (string | {
556
+ description: string;
557
+ id?: string | undefined;
558
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
559
+ command?: string | undefined;
560
+ expectedOutcome?: string | undefined;
561
+ })[] | undefined;
562
+ metadata?: {
563
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
564
+ tags?: string[] | undefined;
565
+ reviewers?: string[] | undefined;
566
+ } | undefined;
567
+ productSpecRef?: string | undefined;
568
+ }>, {
569
+ status: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate";
570
+ content: string;
571
+ author?: {
572
+ id: string;
573
+ name: string;
574
+ type: "human" | "agent";
575
+ email?: string | undefined;
576
+ role?: string | undefined;
577
+ } | undefined;
578
+ title?: string | undefined;
579
+ intent?: string | undefined;
580
+ planSteps?: (string | {
581
+ description: string;
582
+ id?: string | undefined;
583
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
584
+ command?: string | undefined;
585
+ expectedOutcome?: string | undefined;
586
+ })[] | undefined;
587
+ metadata?: {
588
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
589
+ tags?: string[] | undefined;
590
+ reviewers?: string[] | undefined;
591
+ } | undefined;
592
+ productSpecRef?: string | undefined;
593
+ }, {
594
+ content: string;
595
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
596
+ author?: {
597
+ id: string;
598
+ name: string;
599
+ type: "human" | "agent";
600
+ email?: string | undefined;
601
+ role?: string | undefined;
602
+ } | undefined;
603
+ title?: string | undefined;
604
+ intent?: string | undefined;
605
+ planSteps?: (string | {
606
+ description: string;
607
+ id?: string | undefined;
608
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
609
+ command?: string | undefined;
610
+ expectedOutcome?: string | undefined;
611
+ })[] | undefined;
612
+ metadata?: {
613
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
614
+ tags?: string[] | undefined;
615
+ reviewers?: string[] | undefined;
616
+ } | undefined;
617
+ productSpecRef?: string | undefined;
618
+ }>;
619
+ UpdateTaskInputSchema: z.ZodEffects<z.ZodObject<{
620
+ title: z.ZodOptional<z.ZodString>;
621
+ /** @deprecated Use `title` instead. Will be removed in a future version. */
622
+ intent: z.ZodOptional<z.ZodString>;
623
+ content: z.ZodOptional<z.ZodString>;
624
+ status: z.ZodOptional<z.ZodEnum<["draft", "backlog", "ready", "queued", "active", "blocked", "review", "done", "canceled", "duplicate"]>>;
625
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
626
+ id: z.ZodOptional<z.ZodString>;
627
+ description: z.ZodString;
628
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
629
+ command: z.ZodOptional<z.ZodString>;
630
+ expectedOutcome: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ description: string;
633
+ id?: string | undefined;
634
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
635
+ command?: string | undefined;
636
+ expectedOutcome?: string | undefined;
637
+ }, {
638
+ description: string;
639
+ id?: string | undefined;
640
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
641
+ command?: string | undefined;
642
+ expectedOutcome?: string | undefined;
643
+ }>]>, "many">>;
644
+ metadata: z.ZodOptional<z.ZodObject<{
645
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
646
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
647
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
650
+ tags?: string[] | undefined;
651
+ reviewers?: string[] | undefined;
652
+ }, {
653
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
654
+ tags?: string[] | undefined;
655
+ reviewers?: string[] | undefined;
656
+ }>>;
657
+ productSpecRef: z.ZodOptional<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
660
+ title?: string | undefined;
661
+ intent?: string | undefined;
662
+ content?: string | undefined;
663
+ planSteps?: (string | {
664
+ description: string;
665
+ id?: string | undefined;
666
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
667
+ command?: string | undefined;
668
+ expectedOutcome?: string | undefined;
669
+ })[] | undefined;
670
+ metadata?: {
671
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
672
+ tags?: string[] | undefined;
673
+ reviewers?: string[] | undefined;
674
+ } | undefined;
675
+ productSpecRef?: string | undefined;
676
+ }, {
677
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
678
+ title?: string | undefined;
679
+ intent?: string | undefined;
680
+ content?: string | undefined;
681
+ planSteps?: (string | {
682
+ description: string;
683
+ id?: string | undefined;
684
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
685
+ command?: string | undefined;
686
+ expectedOutcome?: string | undefined;
687
+ })[] | undefined;
688
+ metadata?: {
689
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
690
+ tags?: string[] | undefined;
691
+ reviewers?: string[] | undefined;
692
+ } | undefined;
693
+ productSpecRef?: string | undefined;
694
+ }>, {
695
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
696
+ title?: string | undefined;
697
+ intent?: string | undefined;
698
+ content?: string | undefined;
699
+ planSteps?: (string | {
700
+ description: string;
701
+ id?: string | undefined;
702
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
703
+ command?: string | undefined;
704
+ expectedOutcome?: string | undefined;
705
+ })[] | undefined;
706
+ metadata?: {
707
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
708
+ tags?: string[] | undefined;
709
+ reviewers?: string[] | undefined;
710
+ } | undefined;
711
+ productSpecRef?: string | undefined;
712
+ }, {
713
+ status?: "draft" | "backlog" | "ready" | "queued" | "active" | "blocked" | "review" | "done" | "canceled" | "duplicate" | undefined;
714
+ title?: string | undefined;
715
+ intent?: string | undefined;
716
+ content?: string | undefined;
717
+ planSteps?: (string | {
718
+ description: string;
719
+ id?: string | undefined;
720
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
721
+ command?: string | undefined;
722
+ expectedOutcome?: string | undefined;
723
+ })[] | undefined;
724
+ metadata?: {
725
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
726
+ tags?: string[] | undefined;
727
+ reviewers?: string[] | undefined;
728
+ } | undefined;
729
+ productSpecRef?: string | undefined;
730
+ }>;
731
+ AddPlanStepInputSchema: z.ZodObject<{
732
+ description: z.ZodString;
733
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
734
+ command: z.ZodOptional<z.ZodString>;
735
+ expectedOutcome: z.ZodOptional<z.ZodString>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ description: string;
738
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
739
+ command?: string | undefined;
740
+ expectedOutcome?: string | undefined;
741
+ }, {
742
+ description: string;
743
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
744
+ command?: string | undefined;
745
+ expectedOutcome?: string | undefined;
746
+ }>;
747
+ AddCommentInputSchema: z.ZodObject<{
748
+ author: z.ZodString;
749
+ content: z.ZodString;
750
+ }, "strip", z.ZodTypeAny, {
751
+ author: string;
752
+ content: string;
753
+ }, {
754
+ author: string;
755
+ content: string;
756
+ }>;
757
+ };
758
+ export declare const taskJsonSchemas: {
759
+ filters: Record<string, unknown>;
760
+ create: Record<string, unknown>;
761
+ update: Record<string, unknown>;
762
+ createRequired: readonly ["title", "content"];
763
+ };
764
+ //# sourceMappingURL=tasks.d.ts.map