@lovelybunch/core 1.0.72 → 1.0.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,645 @@
1
+ import { z } from 'zod';
2
+ import type { ChangeProposal } from '@lovelybunch/types';
3
+ export declare const ProposalStatusSchema: z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>;
4
+ export type ProposalStatus = z.infer<typeof ProposalStatusSchema>;
5
+ export declare const ProposalPrioritySchema: z.ZodEnum<["low", "medium", "high", "critical"]>;
6
+ export type ProposalPriority = z.infer<typeof ProposalPrioritySchema>;
7
+ export declare const AuthorSchema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ name: z.ZodString;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ role: z.ZodOptional<z.ZodString>;
12
+ type: z.ZodEnum<["human", "agent"]>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ name: string;
16
+ type: "human" | "agent";
17
+ email?: string | undefined;
18
+ role?: string | undefined;
19
+ }, {
20
+ id: string;
21
+ name: string;
22
+ type: "human" | "agent";
23
+ email?: string | undefined;
24
+ role?: string | undefined;
25
+ }>;
26
+ export type AuthorInput = z.infer<typeof AuthorSchema>;
27
+ export declare const ProposalFiltersSchema: z.ZodObject<{
28
+ status: z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>;
29
+ author: z.ZodOptional<z.ZodString>;
30
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
31
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
+ search: z.ZodOptional<z.ZodString>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
35
+ author?: string | undefined;
36
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
37
+ tags?: string[] | undefined;
38
+ search?: string | undefined;
39
+ }, {
40
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
41
+ author?: string | undefined;
42
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
43
+ tags?: string[] | undefined;
44
+ search?: string | undefined;
45
+ }>;
46
+ export type ProposalFilters = z.infer<typeof ProposalFiltersSchema>;
47
+ export declare const PlanStepInputSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
48
+ id: z.ZodOptional<z.ZodString>;
49
+ description: z.ZodString;
50
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
51
+ command: z.ZodOptional<z.ZodString>;
52
+ expectedOutcome: z.ZodOptional<z.ZodString>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ description: string;
55
+ id?: string | undefined;
56
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
57
+ command?: string | undefined;
58
+ expectedOutcome?: string | undefined;
59
+ }, {
60
+ description: string;
61
+ id?: string | undefined;
62
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
63
+ command?: string | undefined;
64
+ expectedOutcome?: string | undefined;
65
+ }>]>;
66
+ export type PlanStepInput = z.infer<typeof PlanStepInputSchema>;
67
+ export declare const CreateProposalInputSchema: z.ZodObject<{
68
+ intent: z.ZodString;
69
+ content: z.ZodString;
70
+ author: z.ZodOptional<z.ZodObject<{
71
+ id: z.ZodString;
72
+ name: z.ZodString;
73
+ email: z.ZodOptional<z.ZodString>;
74
+ role: z.ZodOptional<z.ZodString>;
75
+ type: z.ZodEnum<["human", "agent"]>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ id: string;
78
+ name: string;
79
+ type: "human" | "agent";
80
+ email?: string | undefined;
81
+ role?: string | undefined;
82
+ }, {
83
+ id: string;
84
+ name: string;
85
+ type: "human" | "agent";
86
+ email?: string | undefined;
87
+ role?: string | undefined;
88
+ }>>;
89
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
90
+ id: z.ZodOptional<z.ZodString>;
91
+ description: z.ZodString;
92
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
93
+ command: z.ZodOptional<z.ZodString>;
94
+ expectedOutcome: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ description: string;
97
+ id?: string | undefined;
98
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
99
+ command?: string | undefined;
100
+ expectedOutcome?: string | undefined;
101
+ }, {
102
+ description: string;
103
+ id?: string | undefined;
104
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
105
+ command?: string | undefined;
106
+ expectedOutcome?: string | undefined;
107
+ }>]>, "many">>;
108
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>>;
109
+ metadata: z.ZodOptional<z.ZodObject<{
110
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
112
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
115
+ tags?: string[] | undefined;
116
+ reviewers?: string[] | undefined;
117
+ }, {
118
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
119
+ tags?: string[] | undefined;
120
+ reviewers?: string[] | undefined;
121
+ }>>;
122
+ productSpecRef: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ status: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected";
125
+ intent: string;
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
+ planSteps?: (string | {
135
+ description: string;
136
+ id?: string | undefined;
137
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
138
+ command?: string | undefined;
139
+ expectedOutcome?: string | undefined;
140
+ })[] | undefined;
141
+ metadata?: {
142
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
143
+ tags?: string[] | undefined;
144
+ reviewers?: string[] | undefined;
145
+ } | undefined;
146
+ productSpecRef?: string | undefined;
147
+ }, {
148
+ intent: string;
149
+ content: string;
150
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
151
+ author?: {
152
+ id: string;
153
+ name: string;
154
+ type: "human" | "agent";
155
+ email?: string | undefined;
156
+ role?: string | undefined;
157
+ } | undefined;
158
+ planSteps?: (string | {
159
+ description: string;
160
+ id?: string | undefined;
161
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
162
+ command?: string | undefined;
163
+ expectedOutcome?: string | undefined;
164
+ })[] | undefined;
165
+ metadata?: {
166
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
167
+ tags?: string[] | undefined;
168
+ reviewers?: string[] | undefined;
169
+ } | undefined;
170
+ productSpecRef?: string | undefined;
171
+ }>;
172
+ export type CreateProposalInput = z.infer<typeof CreateProposalInputSchema>;
173
+ export declare const UpdateProposalInputSchema: z.ZodEffects<z.ZodObject<{
174
+ intent: z.ZodOptional<z.ZodString>;
175
+ content: z.ZodOptional<z.ZodString>;
176
+ status: z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>;
177
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
178
+ id: z.ZodOptional<z.ZodString>;
179
+ description: z.ZodString;
180
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
181
+ command: z.ZodOptional<z.ZodString>;
182
+ expectedOutcome: z.ZodOptional<z.ZodString>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ description: string;
185
+ id?: string | undefined;
186
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
187
+ command?: string | undefined;
188
+ expectedOutcome?: string | undefined;
189
+ }, {
190
+ description: string;
191
+ id?: string | undefined;
192
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
193
+ command?: string | undefined;
194
+ expectedOutcome?: string | undefined;
195
+ }>]>, "many">>;
196
+ metadata: z.ZodOptional<z.ZodObject<{
197
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
198
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
199
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
202
+ tags?: string[] | undefined;
203
+ reviewers?: string[] | undefined;
204
+ }, {
205
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
206
+ tags?: string[] | undefined;
207
+ reviewers?: string[] | undefined;
208
+ }>>;
209
+ productSpecRef: z.ZodOptional<z.ZodString>;
210
+ }, "strip", z.ZodTypeAny, {
211
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
212
+ intent?: string | undefined;
213
+ content?: string | undefined;
214
+ planSteps?: (string | {
215
+ description: string;
216
+ id?: string | undefined;
217
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
218
+ command?: string | undefined;
219
+ expectedOutcome?: string | undefined;
220
+ })[] | undefined;
221
+ metadata?: {
222
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
223
+ tags?: string[] | undefined;
224
+ reviewers?: string[] | undefined;
225
+ } | undefined;
226
+ productSpecRef?: string | undefined;
227
+ }, {
228
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
229
+ intent?: string | undefined;
230
+ content?: string | undefined;
231
+ planSteps?: (string | {
232
+ description: string;
233
+ id?: string | undefined;
234
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
235
+ command?: string | undefined;
236
+ expectedOutcome?: string | undefined;
237
+ })[] | undefined;
238
+ metadata?: {
239
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
240
+ tags?: string[] | undefined;
241
+ reviewers?: string[] | undefined;
242
+ } | undefined;
243
+ productSpecRef?: string | undefined;
244
+ }>, {
245
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
246
+ intent?: string | undefined;
247
+ content?: string | undefined;
248
+ planSteps?: (string | {
249
+ description: string;
250
+ id?: string | undefined;
251
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
252
+ command?: string | undefined;
253
+ expectedOutcome?: string | undefined;
254
+ })[] | undefined;
255
+ metadata?: {
256
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
257
+ tags?: string[] | undefined;
258
+ reviewers?: string[] | undefined;
259
+ } | undefined;
260
+ productSpecRef?: string | undefined;
261
+ }, {
262
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
263
+ intent?: string | undefined;
264
+ content?: string | undefined;
265
+ planSteps?: (string | {
266
+ description: string;
267
+ id?: string | undefined;
268
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
269
+ command?: string | undefined;
270
+ expectedOutcome?: string | undefined;
271
+ })[] | undefined;
272
+ metadata?: {
273
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
274
+ tags?: string[] | undefined;
275
+ reviewers?: string[] | undefined;
276
+ } | undefined;
277
+ productSpecRef?: string | undefined;
278
+ }>;
279
+ export type UpdateProposalInput = z.infer<typeof UpdateProposalInputSchema>;
280
+ /**
281
+ * List proposals with optional filtering and search
282
+ */
283
+ export declare function listProposals(filters?: ProposalFilters): Promise<ChangeProposal[]>;
284
+ /**
285
+ * Get a single proposal by ID
286
+ */
287
+ export declare function getProposal(id: string): Promise<ChangeProposal | null>;
288
+ /**
289
+ * Create a new proposal
290
+ */
291
+ export declare function createProposal(input: CreateProposalInput): Promise<ChangeProposal>;
292
+ /**
293
+ * Update an existing proposal
294
+ */
295
+ export declare function updateProposal(id: string, updates: UpdateProposalInput): Promise<ChangeProposal>;
296
+ /**
297
+ * Delete a proposal by ID
298
+ */
299
+ export declare function deleteProposal(id: string): Promise<boolean>;
300
+ export declare const AddPlanStepInputSchema: z.ZodObject<{
301
+ description: z.ZodString;
302
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
303
+ command: z.ZodOptional<z.ZodString>;
304
+ expectedOutcome: z.ZodOptional<z.ZodString>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ description: string;
307
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
308
+ command?: string | undefined;
309
+ expectedOutcome?: string | undefined;
310
+ }, {
311
+ description: string;
312
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
313
+ command?: string | undefined;
314
+ expectedOutcome?: string | undefined;
315
+ }>;
316
+ export type AddPlanStepInput = z.infer<typeof AddPlanStepInputSchema>;
317
+ export declare const AddCommentInputSchema: z.ZodObject<{
318
+ author: z.ZodString;
319
+ content: z.ZodString;
320
+ }, "strip", z.ZodTypeAny, {
321
+ author: string;
322
+ content: string;
323
+ }, {
324
+ author: string;
325
+ content: string;
326
+ }>;
327
+ export type AddCommentInput = z.infer<typeof AddCommentInputSchema>;
328
+ /**
329
+ * Add a plan step to an existing proposal
330
+ */
331
+ export declare function addPlanStep(proposalId: string, step: AddPlanStepInput): Promise<ChangeProposal['planSteps'][number]>;
332
+ /**
333
+ * Add a comment to an existing proposal
334
+ */
335
+ export declare function addComment(proposalId: string, comment: AddCommentInput): Promise<{
336
+ id: string;
337
+ author: string;
338
+ content: string;
339
+ createdAt: string;
340
+ }>;
341
+ export declare const proposalSchemas: {
342
+ ProposalStatusSchema: z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>;
343
+ ProposalPrioritySchema: z.ZodEnum<["low", "medium", "high", "critical"]>;
344
+ AuthorSchema: z.ZodObject<{
345
+ id: z.ZodString;
346
+ name: z.ZodString;
347
+ email: z.ZodOptional<z.ZodString>;
348
+ role: z.ZodOptional<z.ZodString>;
349
+ type: z.ZodEnum<["human", "agent"]>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ id: string;
352
+ name: string;
353
+ type: "human" | "agent";
354
+ email?: string | undefined;
355
+ role?: string | undefined;
356
+ }, {
357
+ id: string;
358
+ name: string;
359
+ type: "human" | "agent";
360
+ email?: string | undefined;
361
+ role?: string | undefined;
362
+ }>;
363
+ ProposalFiltersSchema: z.ZodObject<{
364
+ status: z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>;
365
+ author: z.ZodOptional<z.ZodString>;
366
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
367
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
368
+ search: z.ZodOptional<z.ZodString>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
371
+ author?: string | undefined;
372
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
373
+ tags?: string[] | undefined;
374
+ search?: string | undefined;
375
+ }, {
376
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
377
+ author?: string | undefined;
378
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
379
+ tags?: string[] | undefined;
380
+ search?: string | undefined;
381
+ }>;
382
+ PlanStepInputSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
383
+ id: z.ZodOptional<z.ZodString>;
384
+ description: z.ZodString;
385
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
386
+ command: z.ZodOptional<z.ZodString>;
387
+ expectedOutcome: z.ZodOptional<z.ZodString>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ description: string;
390
+ id?: string | undefined;
391
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
392
+ command?: string | undefined;
393
+ expectedOutcome?: string | undefined;
394
+ }, {
395
+ description: string;
396
+ id?: string | undefined;
397
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
398
+ command?: string | undefined;
399
+ expectedOutcome?: string | undefined;
400
+ }>]>;
401
+ CreateProposalInputSchema: z.ZodObject<{
402
+ intent: z.ZodString;
403
+ content: z.ZodString;
404
+ author: z.ZodOptional<z.ZodObject<{
405
+ id: z.ZodString;
406
+ name: z.ZodString;
407
+ email: z.ZodOptional<z.ZodString>;
408
+ role: z.ZodOptional<z.ZodString>;
409
+ type: z.ZodEnum<["human", "agent"]>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ id: string;
412
+ name: string;
413
+ type: "human" | "agent";
414
+ email?: string | undefined;
415
+ role?: string | undefined;
416
+ }, {
417
+ id: string;
418
+ name: string;
419
+ type: "human" | "agent";
420
+ email?: string | undefined;
421
+ role?: string | undefined;
422
+ }>>;
423
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
424
+ id: z.ZodOptional<z.ZodString>;
425
+ description: z.ZodString;
426
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
427
+ command: z.ZodOptional<z.ZodString>;
428
+ expectedOutcome: z.ZodOptional<z.ZodString>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ description: string;
431
+ id?: string | undefined;
432
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
433
+ command?: string | undefined;
434
+ expectedOutcome?: string | undefined;
435
+ }, {
436
+ description: string;
437
+ id?: string | undefined;
438
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
439
+ command?: string | undefined;
440
+ expectedOutcome?: string | undefined;
441
+ }>]>, "many">>;
442
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>>;
443
+ metadata: z.ZodOptional<z.ZodObject<{
444
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
445
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
446
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
449
+ tags?: string[] | undefined;
450
+ reviewers?: string[] | undefined;
451
+ }, {
452
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
453
+ tags?: string[] | undefined;
454
+ reviewers?: string[] | undefined;
455
+ }>>;
456
+ productSpecRef: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ status: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected";
459
+ intent: string;
460
+ content: string;
461
+ author?: {
462
+ id: string;
463
+ name: string;
464
+ type: "human" | "agent";
465
+ email?: string | undefined;
466
+ role?: string | undefined;
467
+ } | undefined;
468
+ planSteps?: (string | {
469
+ description: string;
470
+ id?: string | undefined;
471
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
472
+ command?: string | undefined;
473
+ expectedOutcome?: string | undefined;
474
+ })[] | undefined;
475
+ metadata?: {
476
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
477
+ tags?: string[] | undefined;
478
+ reviewers?: string[] | undefined;
479
+ } | undefined;
480
+ productSpecRef?: string | undefined;
481
+ }, {
482
+ intent: string;
483
+ content: string;
484
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
485
+ author?: {
486
+ id: string;
487
+ name: string;
488
+ type: "human" | "agent";
489
+ email?: string | undefined;
490
+ role?: string | undefined;
491
+ } | undefined;
492
+ planSteps?: (string | {
493
+ description: string;
494
+ id?: string | undefined;
495
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
496
+ command?: string | undefined;
497
+ expectedOutcome?: string | undefined;
498
+ })[] | undefined;
499
+ metadata?: {
500
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
501
+ tags?: string[] | undefined;
502
+ reviewers?: string[] | undefined;
503
+ } | undefined;
504
+ productSpecRef?: string | undefined;
505
+ }>;
506
+ UpdateProposalInputSchema: z.ZodEffects<z.ZodObject<{
507
+ intent: z.ZodOptional<z.ZodString>;
508
+ content: z.ZodOptional<z.ZodString>;
509
+ status: z.ZodOptional<z.ZodEnum<["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"]>>;
510
+ planSteps: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
511
+ id: z.ZodOptional<z.ZodString>;
512
+ description: z.ZodString;
513
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
514
+ command: z.ZodOptional<z.ZodString>;
515
+ expectedOutcome: z.ZodOptional<z.ZodString>;
516
+ }, "strip", z.ZodTypeAny, {
517
+ description: string;
518
+ id?: string | undefined;
519
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
520
+ command?: string | undefined;
521
+ expectedOutcome?: string | undefined;
522
+ }, {
523
+ description: string;
524
+ id?: string | undefined;
525
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
526
+ command?: string | undefined;
527
+ expectedOutcome?: string | undefined;
528
+ }>]>, "many">>;
529
+ metadata: z.ZodOptional<z.ZodObject<{
530
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
531
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
532
+ reviewers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
535
+ tags?: string[] | undefined;
536
+ reviewers?: string[] | undefined;
537
+ }, {
538
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
539
+ tags?: string[] | undefined;
540
+ reviewers?: string[] | undefined;
541
+ }>>;
542
+ productSpecRef: z.ZodOptional<z.ZodString>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
545
+ intent?: string | undefined;
546
+ content?: string | undefined;
547
+ planSteps?: (string | {
548
+ description: string;
549
+ id?: string | undefined;
550
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
551
+ command?: string | undefined;
552
+ expectedOutcome?: string | undefined;
553
+ })[] | undefined;
554
+ metadata?: {
555
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
556
+ tags?: string[] | undefined;
557
+ reviewers?: string[] | undefined;
558
+ } | undefined;
559
+ productSpecRef?: string | undefined;
560
+ }, {
561
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
562
+ intent?: string | undefined;
563
+ content?: string | undefined;
564
+ planSteps?: (string | {
565
+ description: string;
566
+ id?: string | undefined;
567
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
568
+ command?: string | undefined;
569
+ expectedOutcome?: string | undefined;
570
+ })[] | undefined;
571
+ metadata?: {
572
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
573
+ tags?: string[] | undefined;
574
+ reviewers?: string[] | undefined;
575
+ } | undefined;
576
+ productSpecRef?: string | undefined;
577
+ }>, {
578
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
579
+ intent?: string | undefined;
580
+ content?: string | undefined;
581
+ planSteps?: (string | {
582
+ description: string;
583
+ id?: string | undefined;
584
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
585
+ command?: string | undefined;
586
+ expectedOutcome?: string | undefined;
587
+ })[] | undefined;
588
+ metadata?: {
589
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
590
+ tags?: string[] | undefined;
591
+ reviewers?: string[] | undefined;
592
+ } | undefined;
593
+ productSpecRef?: string | undefined;
594
+ }, {
595
+ status?: "draft" | "proposed" | "in-review" | "code-complete" | "approved" | "merged" | "rejected" | undefined;
596
+ intent?: string | undefined;
597
+ content?: string | undefined;
598
+ planSteps?: (string | {
599
+ description: string;
600
+ id?: string | undefined;
601
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
602
+ command?: string | undefined;
603
+ expectedOutcome?: string | undefined;
604
+ })[] | undefined;
605
+ metadata?: {
606
+ priority?: "low" | "medium" | "high" | "critical" | undefined;
607
+ tags?: string[] | undefined;
608
+ reviewers?: string[] | undefined;
609
+ } | undefined;
610
+ productSpecRef?: string | undefined;
611
+ }>;
612
+ AddPlanStepInputSchema: z.ZodObject<{
613
+ description: z.ZodString;
614
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "failed"]>>;
615
+ command: z.ZodOptional<z.ZodString>;
616
+ expectedOutcome: z.ZodOptional<z.ZodString>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ description: string;
619
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
620
+ command?: string | undefined;
621
+ expectedOutcome?: string | undefined;
622
+ }, {
623
+ description: string;
624
+ status?: "pending" | "in-progress" | "completed" | "failed" | undefined;
625
+ command?: string | undefined;
626
+ expectedOutcome?: string | undefined;
627
+ }>;
628
+ AddCommentInputSchema: z.ZodObject<{
629
+ author: z.ZodString;
630
+ content: z.ZodString;
631
+ }, "strip", z.ZodTypeAny, {
632
+ author: string;
633
+ content: string;
634
+ }, {
635
+ author: string;
636
+ content: string;
637
+ }>;
638
+ };
639
+ export declare const proposalJsonSchemas: {
640
+ filters: Record<string, unknown>;
641
+ create: Record<string, unknown>;
642
+ update: Record<string, unknown>;
643
+ createRequired: readonly ["intent", "content"];
644
+ };
645
+ //# sourceMappingURL=proposals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proposals.d.ts","sourceRoot":"","sources":["../src/proposals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAU,MAAM,oBAAoB,CAAA;AAmDhE,eAAO,MAAM,oBAAoB,kGAE/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG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