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