kanbo-cli 0.3.0 → 0.5.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/CHANGELOG.md +48 -0
  2. package/README.md +2 -0
  3. package/dist/cli-main.cjs +1347 -254
  4. package/dist/drizzle-postgres/0006_flow_rules_and_column_entries.sql +3 -0
  5. package/dist/drizzle-postgres/README.md +8 -0
  6. package/dist/drizzle-postgres/meta/0006_snapshot.json +1290 -0
  7. package/dist/drizzle-postgres/meta/_journal.json +7 -0
  8. package/dist/drizzle-sqlite/0005_flow_rules_and_column_entries.sql +3 -0
  9. package/dist/drizzle-sqlite/README.md +8 -0
  10. package/dist/drizzle-sqlite/meta/0005_snapshot.json +1097 -0
  11. package/dist/drizzle-sqlite/meta/_journal.json +7 -0
  12. package/dist/lib/{approval-BsBk2xVr.d.cts → approval-CnJJfwfi.d.mts} +30 -6
  13. package/dist/lib/{approval-LRZ6ontC.d.mts → approval-DNfUhYD5.d.cts} +30 -6
  14. package/dist/lib/{board-store-D_Mpfb84.d.mts → board-store-D2x2w1wG.d.cts} +26 -2
  15. package/dist/lib/{board-store-Dx-mw2I6.d.cts → board-store-DN5Y2U2y.d.mts} +26 -2
  16. package/dist/lib/index.cjs +3 -1
  17. package/dist/lib/index.d.cts +96 -6
  18. package/dist/lib/index.d.mts +96 -6
  19. package/dist/lib/index.mjs +2 -2
  20. package/dist/lib/{manifest-QPoQl8tn.cjs → manifest-DUGRyC7A.cjs} +1378 -300
  21. package/dist/lib/{manifest-v2e9x_C8.mjs → manifest-t4LvFgzH.mjs} +1369 -303
  22. package/dist/lib/mcp/index.cjs +35 -6
  23. package/dist/lib/mcp/index.d.cts +23 -4
  24. package/dist/lib/mcp/index.d.mts +23 -4
  25. package/dist/lib/mcp/index.mjs +35 -6
  26. package/dist/lib/{migrate-DtBeW3Fs.mjs → migrate-BUsaTJlj.mjs} +8 -1
  27. package/dist/lib/{migrate-Dca5WdYd.cjs → migrate-BoGrqK9m.cjs} +7 -0
  28. package/dist/lib/postgres/index.cjs +1 -1
  29. package/dist/lib/postgres/index.d.cts +69 -1
  30. package/dist/lib/postgres/index.d.mts +69 -1
  31. package/dist/lib/postgres/index.mjs +1 -1
  32. package/dist/lib/{roles.sql-BoOZSkBp.mjs → roles.sql-BDmmNUdx.mjs} +18 -2
  33. package/dist/lib/{roles.sql-E58x7mLS.cjs → roles.sql-CBFxSHy7.cjs} +17 -1
  34. package/dist/lib/{schema-D0MyXcej.d.cts → schema-Cwx3HosC.d.cts} +72 -0
  35. package/dist/lib/{schema-D0MyXcej.d.mts → schema-Cwx3HosC.d.mts} +72 -0
  36. package/dist/lib/sqlite/index.cjs +1 -1
  37. package/dist/lib/sqlite/index.d.cts +2 -2
  38. package/dist/lib/sqlite/index.d.mts +2 -2
  39. package/dist/lib/sqlite/index.mjs +1 -1
  40. package/dist/lib/sqlite/schema.cjs +13 -1
  41. package/dist/lib/sqlite/schema.d.cts +1 -1
  42. package/dist/lib/sqlite/schema.d.mts +1 -1
  43. package/dist/lib/sqlite/schema.mjs +13 -1
  44. package/dist/page/board.css +1622 -327
  45. package/dist/page/board.js +2 -2
  46. package/package.json +1 -1
@@ -0,0 +1,1290 @@
1
+ {
2
+ "id": "b3b8bdbf-2d02-4bb6-952b-2e2e8d7fbf1e",
3
+ "prevId": "fe8790b6-e586-4314-97e7-7c0ceb356b95",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.issue_comments": {
8
+ "name": "issue_comments",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "issue_id": {
18
+ "name": "issue_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "content": {
24
+ "name": "content",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "author_kind": {
30
+ "name": "author_kind",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true,
34
+ "default": "'user'"
35
+ },
36
+ "author_id": {
37
+ "name": "author_id",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": false
41
+ },
42
+ "source_chat_session_id": {
43
+ "name": "source_chat_session_id",
44
+ "type": "text",
45
+ "primaryKey": false,
46
+ "notNull": false
47
+ },
48
+ "agent_activity_id": {
49
+ "name": "agent_activity_id",
50
+ "type": "text",
51
+ "primaryKey": false,
52
+ "notNull": false
53
+ },
54
+ "dedupe_key": {
55
+ "name": "dedupe_key",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": false
59
+ },
60
+ "created_at": {
61
+ "name": "created_at",
62
+ "type": "bigint",
63
+ "primaryKey": false,
64
+ "notNull": true,
65
+ "default": "(extract(epoch from now())::bigint)"
66
+ },
67
+ "seq": {
68
+ "name": "seq",
69
+ "type": "bigserial",
70
+ "primaryKey": false,
71
+ "notNull": true
72
+ }
73
+ },
74
+ "indexes": {
75
+ "issue_comments_issue_id_idx": {
76
+ "name": "issue_comments_issue_id_idx",
77
+ "columns": [
78
+ {
79
+ "expression": "issue_id",
80
+ "isExpression": false,
81
+ "asc": true,
82
+ "nulls": "last"
83
+ }
84
+ ],
85
+ "isUnique": false,
86
+ "concurrently": false,
87
+ "method": "btree",
88
+ "with": {}
89
+ },
90
+ "issue_comments_issue_dedupe_idx": {
91
+ "name": "issue_comments_issue_dedupe_idx",
92
+ "columns": [
93
+ {
94
+ "expression": "issue_id",
95
+ "isExpression": false,
96
+ "asc": true,
97
+ "nulls": "last"
98
+ },
99
+ {
100
+ "expression": "dedupe_key",
101
+ "isExpression": false,
102
+ "asc": true,
103
+ "nulls": "last"
104
+ }
105
+ ],
106
+ "isUnique": true,
107
+ "concurrently": false,
108
+ "method": "btree",
109
+ "with": {}
110
+ }
111
+ },
112
+ "foreignKeys": {
113
+ "issue_comments_issue_id_issues_id_fk": {
114
+ "name": "issue_comments_issue_id_issues_id_fk",
115
+ "tableFrom": "issue_comments",
116
+ "tableTo": "issues",
117
+ "columnsFrom": [
118
+ "issue_id"
119
+ ],
120
+ "columnsTo": [
121
+ "id"
122
+ ],
123
+ "onDelete": "cascade",
124
+ "onUpdate": "no action"
125
+ }
126
+ },
127
+ "compositePrimaryKeys": {},
128
+ "uniqueConstraints": {},
129
+ "policies": {},
130
+ "checkConstraints": {},
131
+ "isRLSEnabled": false
132
+ },
133
+ "public.issue_field_changes": {
134
+ "name": "issue_field_changes",
135
+ "schema": "",
136
+ "columns": {
137
+ "id": {
138
+ "name": "id",
139
+ "type": "text",
140
+ "primaryKey": true,
141
+ "notNull": true
142
+ },
143
+ "issue_id": {
144
+ "name": "issue_id",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true
148
+ },
149
+ "field": {
150
+ "name": "field",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "from_value": {
156
+ "name": "from_value",
157
+ "type": "text",
158
+ "primaryKey": false,
159
+ "notNull": false
160
+ },
161
+ "to_value": {
162
+ "name": "to_value",
163
+ "type": "text",
164
+ "primaryKey": false,
165
+ "notNull": false
166
+ },
167
+ "actor_kind": {
168
+ "name": "actor_kind",
169
+ "type": "text",
170
+ "primaryKey": false,
171
+ "notNull": true,
172
+ "default": "'user'"
173
+ },
174
+ "actor_id": {
175
+ "name": "actor_id",
176
+ "type": "text",
177
+ "primaryKey": false,
178
+ "notNull": false
179
+ },
180
+ "source_chat_session_id": {
181
+ "name": "source_chat_session_id",
182
+ "type": "text",
183
+ "primaryKey": false,
184
+ "notNull": false
185
+ },
186
+ "created_at": {
187
+ "name": "created_at",
188
+ "type": "bigint",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "default": "(extract(epoch from now())::bigint)"
192
+ },
193
+ "seq": {
194
+ "name": "seq",
195
+ "type": "bigserial",
196
+ "primaryKey": false,
197
+ "notNull": true
198
+ }
199
+ },
200
+ "indexes": {
201
+ "issue_field_changes_issue_id_idx": {
202
+ "name": "issue_field_changes_issue_id_idx",
203
+ "columns": [
204
+ {
205
+ "expression": "issue_id",
206
+ "isExpression": false,
207
+ "asc": true,
208
+ "nulls": "last"
209
+ }
210
+ ],
211
+ "isUnique": false,
212
+ "concurrently": false,
213
+ "method": "btree",
214
+ "with": {}
215
+ },
216
+ "issue_field_changes_field_created_at_idx": {
217
+ "name": "issue_field_changes_field_created_at_idx",
218
+ "columns": [
219
+ {
220
+ "expression": "field",
221
+ "isExpression": false,
222
+ "asc": true,
223
+ "nulls": "last"
224
+ },
225
+ {
226
+ "expression": "created_at",
227
+ "isExpression": false,
228
+ "asc": true,
229
+ "nulls": "last"
230
+ }
231
+ ],
232
+ "isUnique": false,
233
+ "concurrently": false,
234
+ "method": "btree",
235
+ "with": {}
236
+ }
237
+ },
238
+ "foreignKeys": {
239
+ "issue_field_changes_issue_id_issues_id_fk": {
240
+ "name": "issue_field_changes_issue_id_issues_id_fk",
241
+ "tableFrom": "issue_field_changes",
242
+ "tableTo": "issues",
243
+ "columnsFrom": [
244
+ "issue_id"
245
+ ],
246
+ "columnsTo": [
247
+ "id"
248
+ ],
249
+ "onDelete": "cascade",
250
+ "onUpdate": "no action"
251
+ }
252
+ },
253
+ "compositePrimaryKeys": {},
254
+ "uniqueConstraints": {},
255
+ "policies": {},
256
+ "checkConstraints": {},
257
+ "isRLSEnabled": false
258
+ },
259
+ "public.issue_milestones": {
260
+ "name": "issue_milestones",
261
+ "schema": "",
262
+ "columns": {
263
+ "id": {
264
+ "name": "id",
265
+ "type": "text",
266
+ "primaryKey": true,
267
+ "notNull": true
268
+ },
269
+ "workspace_id": {
270
+ "name": "workspace_id",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "title": {
276
+ "name": "title",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true
280
+ },
281
+ "description": {
282
+ "name": "description",
283
+ "type": "text",
284
+ "primaryKey": false,
285
+ "notNull": false
286
+ },
287
+ "start_date": {
288
+ "name": "start_date",
289
+ "type": "bigint",
290
+ "primaryKey": false,
291
+ "notNull": false
292
+ },
293
+ "due_date": {
294
+ "name": "due_date",
295
+ "type": "bigint",
296
+ "primaryKey": false,
297
+ "notNull": false
298
+ },
299
+ "status": {
300
+ "name": "status",
301
+ "type": "text",
302
+ "primaryKey": false,
303
+ "notNull": true,
304
+ "default": "'open'"
305
+ },
306
+ "created_at": {
307
+ "name": "created_at",
308
+ "type": "bigint",
309
+ "primaryKey": false,
310
+ "notNull": true,
311
+ "default": "(extract(epoch from now())::bigint)"
312
+ },
313
+ "updated_at": {
314
+ "name": "updated_at",
315
+ "type": "bigint",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "default": "(extract(epoch from now())::bigint)"
319
+ }
320
+ },
321
+ "indexes": {
322
+ "issue_milestones_workspace_id_idx": {
323
+ "name": "issue_milestones_workspace_id_idx",
324
+ "columns": [
325
+ {
326
+ "expression": "workspace_id",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ }
331
+ ],
332
+ "isUnique": false,
333
+ "concurrently": false,
334
+ "method": "btree",
335
+ "with": {}
336
+ }
337
+ },
338
+ "foreignKeys": {},
339
+ "compositePrimaryKeys": {},
340
+ "uniqueConstraints": {},
341
+ "policies": {},
342
+ "checkConstraints": {},
343
+ "isRLSEnabled": false
344
+ },
345
+ "public.issue_pull_requests": {
346
+ "name": "issue_pull_requests",
347
+ "schema": "",
348
+ "columns": {
349
+ "id": {
350
+ "name": "id",
351
+ "type": "text",
352
+ "primaryKey": true,
353
+ "notNull": true
354
+ },
355
+ "issue_id": {
356
+ "name": "issue_id",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true
360
+ },
361
+ "owner": {
362
+ "name": "owner",
363
+ "type": "text",
364
+ "primaryKey": false,
365
+ "notNull": true
366
+ },
367
+ "repo": {
368
+ "name": "repo",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": true
372
+ },
373
+ "number": {
374
+ "name": "number",
375
+ "type": "integer",
376
+ "primaryKey": false,
377
+ "notNull": true
378
+ },
379
+ "url": {
380
+ "name": "url",
381
+ "type": "text",
382
+ "primaryKey": false,
383
+ "notNull": true
384
+ },
385
+ "created_by_kind": {
386
+ "name": "created_by_kind",
387
+ "type": "text",
388
+ "primaryKey": false,
389
+ "notNull": true
390
+ },
391
+ "created_by_id": {
392
+ "name": "created_by_id",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ },
397
+ "created_at": {
398
+ "name": "created_at",
399
+ "type": "bigint",
400
+ "primaryKey": false,
401
+ "notNull": true,
402
+ "default": "(extract(epoch from now())::bigint)"
403
+ },
404
+ "seq": {
405
+ "name": "seq",
406
+ "type": "bigserial",
407
+ "primaryKey": false,
408
+ "notNull": true
409
+ }
410
+ },
411
+ "indexes": {
412
+ "issue_pull_requests_issue_pr_unique": {
413
+ "name": "issue_pull_requests_issue_pr_unique",
414
+ "columns": [
415
+ {
416
+ "expression": "issue_id",
417
+ "isExpression": false,
418
+ "asc": true,
419
+ "nulls": "last"
420
+ },
421
+ {
422
+ "expression": "owner",
423
+ "isExpression": false,
424
+ "asc": true,
425
+ "nulls": "last"
426
+ },
427
+ {
428
+ "expression": "repo",
429
+ "isExpression": false,
430
+ "asc": true,
431
+ "nulls": "last"
432
+ },
433
+ {
434
+ "expression": "number",
435
+ "isExpression": false,
436
+ "asc": true,
437
+ "nulls": "last"
438
+ }
439
+ ],
440
+ "isUnique": true,
441
+ "concurrently": false,
442
+ "method": "btree",
443
+ "with": {}
444
+ },
445
+ "issue_pull_requests_pr_idx": {
446
+ "name": "issue_pull_requests_pr_idx",
447
+ "columns": [
448
+ {
449
+ "expression": "owner",
450
+ "isExpression": false,
451
+ "asc": true,
452
+ "nulls": "last"
453
+ },
454
+ {
455
+ "expression": "repo",
456
+ "isExpression": false,
457
+ "asc": true,
458
+ "nulls": "last"
459
+ },
460
+ {
461
+ "expression": "number",
462
+ "isExpression": false,
463
+ "asc": true,
464
+ "nulls": "last"
465
+ }
466
+ ],
467
+ "isUnique": false,
468
+ "concurrently": false,
469
+ "method": "btree",
470
+ "with": {}
471
+ }
472
+ },
473
+ "foreignKeys": {
474
+ "issue_pull_requests_issue_id_issues_id_fk": {
475
+ "name": "issue_pull_requests_issue_id_issues_id_fk",
476
+ "tableFrom": "issue_pull_requests",
477
+ "tableTo": "issues",
478
+ "columnsFrom": [
479
+ "issue_id"
480
+ ],
481
+ "columnsTo": [
482
+ "id"
483
+ ],
484
+ "onDelete": "cascade",
485
+ "onUpdate": "no action"
486
+ }
487
+ },
488
+ "compositePrimaryKeys": {},
489
+ "uniqueConstraints": {},
490
+ "policies": {},
491
+ "checkConstraints": {},
492
+ "isRLSEnabled": false
493
+ },
494
+ "public.issue_relations": {
495
+ "name": "issue_relations",
496
+ "schema": "",
497
+ "columns": {
498
+ "id": {
499
+ "name": "id",
500
+ "type": "text",
501
+ "primaryKey": true,
502
+ "notNull": true
503
+ },
504
+ "source_issue_id": {
505
+ "name": "source_issue_id",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true
509
+ },
510
+ "target_issue_id": {
511
+ "name": "target_issue_id",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": true
515
+ },
516
+ "type": {
517
+ "name": "type",
518
+ "type": "text",
519
+ "primaryKey": false,
520
+ "notNull": true
521
+ },
522
+ "created_at": {
523
+ "name": "created_at",
524
+ "type": "bigint",
525
+ "primaryKey": false,
526
+ "notNull": true,
527
+ "default": "(extract(epoch from now())::bigint)"
528
+ }
529
+ },
530
+ "indexes": {
531
+ "issue_relations_source_issue_id_idx": {
532
+ "name": "issue_relations_source_issue_id_idx",
533
+ "columns": [
534
+ {
535
+ "expression": "source_issue_id",
536
+ "isExpression": false,
537
+ "asc": true,
538
+ "nulls": "last"
539
+ }
540
+ ],
541
+ "isUnique": false,
542
+ "concurrently": false,
543
+ "method": "btree",
544
+ "with": {}
545
+ },
546
+ "issue_relations_target_issue_id_idx": {
547
+ "name": "issue_relations_target_issue_id_idx",
548
+ "columns": [
549
+ {
550
+ "expression": "target_issue_id",
551
+ "isExpression": false,
552
+ "asc": true,
553
+ "nulls": "last"
554
+ }
555
+ ],
556
+ "isUnique": false,
557
+ "concurrently": false,
558
+ "method": "btree",
559
+ "with": {}
560
+ },
561
+ "issue_relations_pair_type_unique": {
562
+ "name": "issue_relations_pair_type_unique",
563
+ "columns": [
564
+ {
565
+ "expression": "source_issue_id",
566
+ "isExpression": false,
567
+ "asc": true,
568
+ "nulls": "last"
569
+ },
570
+ {
571
+ "expression": "target_issue_id",
572
+ "isExpression": false,
573
+ "asc": true,
574
+ "nulls": "last"
575
+ },
576
+ {
577
+ "expression": "type",
578
+ "isExpression": false,
579
+ "asc": true,
580
+ "nulls": "last"
581
+ }
582
+ ],
583
+ "isUnique": true,
584
+ "concurrently": false,
585
+ "method": "btree",
586
+ "with": {}
587
+ }
588
+ },
589
+ "foreignKeys": {
590
+ "issue_relations_source_issue_id_issues_id_fk": {
591
+ "name": "issue_relations_source_issue_id_issues_id_fk",
592
+ "tableFrom": "issue_relations",
593
+ "tableTo": "issues",
594
+ "columnsFrom": [
595
+ "source_issue_id"
596
+ ],
597
+ "columnsTo": [
598
+ "id"
599
+ ],
600
+ "onDelete": "cascade",
601
+ "onUpdate": "no action"
602
+ },
603
+ "issue_relations_target_issue_id_issues_id_fk": {
604
+ "name": "issue_relations_target_issue_id_issues_id_fk",
605
+ "tableFrom": "issue_relations",
606
+ "tableTo": "issues",
607
+ "columnsFrom": [
608
+ "target_issue_id"
609
+ ],
610
+ "columnsTo": [
611
+ "id"
612
+ ],
613
+ "onDelete": "cascade",
614
+ "onUpdate": "no action"
615
+ }
616
+ },
617
+ "compositePrimaryKeys": {},
618
+ "uniqueConstraints": {},
619
+ "policies": {},
620
+ "checkConstraints": {},
621
+ "isRLSEnabled": false
622
+ },
623
+ "public.issue_runs": {
624
+ "name": "issue_runs",
625
+ "schema": "",
626
+ "columns": {
627
+ "id": {
628
+ "name": "id",
629
+ "type": "text",
630
+ "primaryKey": true,
631
+ "notNull": true
632
+ },
633
+ "issue_id": {
634
+ "name": "issue_id",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": true
638
+ },
639
+ "launched_by_kind": {
640
+ "name": "launched_by_kind",
641
+ "type": "text",
642
+ "primaryKey": false,
643
+ "notNull": true,
644
+ "default": "'user'"
645
+ },
646
+ "launched_by_id": {
647
+ "name": "launched_by_id",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": false
651
+ },
652
+ "agent_id": {
653
+ "name": "agent_id",
654
+ "type": "text",
655
+ "primaryKey": false,
656
+ "notNull": false
657
+ },
658
+ "agent_name": {
659
+ "name": "agent_name",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": true
663
+ },
664
+ "host": {
665
+ "name": "host",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": false
669
+ },
670
+ "execution_mode": {
671
+ "name": "execution_mode",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": true,
675
+ "default": "'worktree'"
676
+ },
677
+ "branch": {
678
+ "name": "branch",
679
+ "type": "text",
680
+ "primaryKey": false,
681
+ "notNull": false
682
+ },
683
+ "worktree_path": {
684
+ "name": "worktree_path",
685
+ "type": "text",
686
+ "primaryKey": false,
687
+ "notNull": false
688
+ },
689
+ "state": {
690
+ "name": "state",
691
+ "type": "text",
692
+ "primaryKey": false,
693
+ "notNull": true,
694
+ "default": "'running'"
695
+ },
696
+ "chat_session_id": {
697
+ "name": "chat_session_id",
698
+ "type": "text",
699
+ "primaryKey": false,
700
+ "notNull": false
701
+ },
702
+ "external_session_ref": {
703
+ "name": "external_session_ref",
704
+ "type": "text",
705
+ "primaryKey": false,
706
+ "notNull": false
707
+ },
708
+ "started_at": {
709
+ "name": "started_at",
710
+ "type": "bigint",
711
+ "primaryKey": false,
712
+ "notNull": true,
713
+ "default": "(extract(epoch from now())::bigint)"
714
+ },
715
+ "ended_at": {
716
+ "name": "ended_at",
717
+ "type": "bigint",
718
+ "primaryKey": false,
719
+ "notNull": false
720
+ },
721
+ "seq": {
722
+ "name": "seq",
723
+ "type": "bigserial",
724
+ "primaryKey": false,
725
+ "notNull": true
726
+ }
727
+ },
728
+ "indexes": {
729
+ "issue_runs_issue_id_idx": {
730
+ "name": "issue_runs_issue_id_idx",
731
+ "columns": [
732
+ {
733
+ "expression": "issue_id",
734
+ "isExpression": false,
735
+ "asc": true,
736
+ "nulls": "last"
737
+ }
738
+ ],
739
+ "isUnique": false,
740
+ "concurrently": false,
741
+ "method": "btree",
742
+ "with": {}
743
+ },
744
+ "issue_runs_issue_state_idx": {
745
+ "name": "issue_runs_issue_state_idx",
746
+ "columns": [
747
+ {
748
+ "expression": "issue_id",
749
+ "isExpression": false,
750
+ "asc": true,
751
+ "nulls": "last"
752
+ },
753
+ {
754
+ "expression": "state",
755
+ "isExpression": false,
756
+ "asc": true,
757
+ "nulls": "last"
758
+ }
759
+ ],
760
+ "isUnique": false,
761
+ "concurrently": false,
762
+ "method": "btree",
763
+ "with": {}
764
+ },
765
+ "issue_runs_chat_session_idx": {
766
+ "name": "issue_runs_chat_session_idx",
767
+ "columns": [
768
+ {
769
+ "expression": "chat_session_id",
770
+ "isExpression": false,
771
+ "asc": true,
772
+ "nulls": "last"
773
+ }
774
+ ],
775
+ "isUnique": false,
776
+ "concurrently": false,
777
+ "method": "btree",
778
+ "with": {}
779
+ }
780
+ },
781
+ "foreignKeys": {
782
+ "issue_runs_issue_id_issues_id_fk": {
783
+ "name": "issue_runs_issue_id_issues_id_fk",
784
+ "tableFrom": "issue_runs",
785
+ "tableTo": "issues",
786
+ "columnsFrom": [
787
+ "issue_id"
788
+ ],
789
+ "columnsTo": [
790
+ "id"
791
+ ],
792
+ "onDelete": "cascade",
793
+ "onUpdate": "no action"
794
+ }
795
+ },
796
+ "compositePrimaryKeys": {},
797
+ "uniqueConstraints": {},
798
+ "policies": {},
799
+ "checkConstraints": {},
800
+ "isRLSEnabled": false
801
+ },
802
+ "public.issue_statuses": {
803
+ "name": "issue_statuses",
804
+ "schema": "",
805
+ "columns": {
806
+ "id": {
807
+ "name": "id",
808
+ "type": "text",
809
+ "primaryKey": true,
810
+ "notNull": true
811
+ },
812
+ "workspace_id": {
813
+ "name": "workspace_id",
814
+ "type": "text",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "name": {
819
+ "name": "name",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": true
823
+ },
824
+ "description": {
825
+ "name": "description",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": false
829
+ },
830
+ "color": {
831
+ "name": "color",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": false
835
+ },
836
+ "category": {
837
+ "name": "category",
838
+ "type": "text",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "default": "'unstarted'"
842
+ },
843
+ "order": {
844
+ "name": "order",
845
+ "type": "integer",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "default": 0
849
+ },
850
+ "entry_rules": {
851
+ "name": "entry_rules",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": false
855
+ },
856
+ "allowed_from": {
857
+ "name": "allowed_from",
858
+ "type": "text",
859
+ "primaryKey": false,
860
+ "notNull": false
861
+ },
862
+ "wip_limit": {
863
+ "name": "wip_limit",
864
+ "type": "integer",
865
+ "primaryKey": false,
866
+ "notNull": false
867
+ },
868
+ "created_at": {
869
+ "name": "created_at",
870
+ "type": "bigint",
871
+ "primaryKey": false,
872
+ "notNull": true,
873
+ "default": "(extract(epoch from now())::bigint)"
874
+ }
875
+ },
876
+ "indexes": {
877
+ "issue_statuses_workspace_id_idx": {
878
+ "name": "issue_statuses_workspace_id_idx",
879
+ "columns": [
880
+ {
881
+ "expression": "workspace_id",
882
+ "isExpression": false,
883
+ "asc": true,
884
+ "nulls": "last"
885
+ }
886
+ ],
887
+ "isUnique": false,
888
+ "concurrently": false,
889
+ "method": "btree",
890
+ "with": {}
891
+ },
892
+ "issue_statuses_workspace_name_unique": {
893
+ "name": "issue_statuses_workspace_name_unique",
894
+ "columns": [
895
+ {
896
+ "expression": "workspace_id",
897
+ "isExpression": false,
898
+ "asc": true,
899
+ "nulls": "last"
900
+ },
901
+ {
902
+ "expression": "name",
903
+ "isExpression": false,
904
+ "asc": true,
905
+ "nulls": "last"
906
+ }
907
+ ],
908
+ "isUnique": true,
909
+ "concurrently": false,
910
+ "method": "btree",
911
+ "with": {}
912
+ }
913
+ },
914
+ "foreignKeys": {},
915
+ "compositePrimaryKeys": {},
916
+ "uniqueConstraints": {},
917
+ "policies": {},
918
+ "checkConstraints": {},
919
+ "isRLSEnabled": false
920
+ },
921
+ "public.issues": {
922
+ "name": "issues",
923
+ "schema": "",
924
+ "columns": {
925
+ "id": {
926
+ "name": "id",
927
+ "type": "text",
928
+ "primaryKey": true,
929
+ "notNull": true
930
+ },
931
+ "workspace_id": {
932
+ "name": "workspace_id",
933
+ "type": "text",
934
+ "primaryKey": false,
935
+ "notNull": true
936
+ },
937
+ "number": {
938
+ "name": "number",
939
+ "type": "integer",
940
+ "primaryKey": false,
941
+ "notNull": true
942
+ },
943
+ "status_id": {
944
+ "name": "status_id",
945
+ "type": "text",
946
+ "primaryKey": false,
947
+ "notNull": false
948
+ },
949
+ "milestone_id": {
950
+ "name": "milestone_id",
951
+ "type": "text",
952
+ "primaryKey": false,
953
+ "notNull": false
954
+ },
955
+ "parent_issue_id": {
956
+ "name": "parent_issue_id",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": false
960
+ },
961
+ "title": {
962
+ "name": "title",
963
+ "type": "text",
964
+ "primaryKey": false,
965
+ "notNull": true
966
+ },
967
+ "description": {
968
+ "name": "description",
969
+ "type": "text",
970
+ "primaryKey": false,
971
+ "notNull": false
972
+ },
973
+ "priority": {
974
+ "name": "priority",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": true,
978
+ "default": "'none'"
979
+ },
980
+ "labels": {
981
+ "name": "labels",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "default": "'[]'"
986
+ },
987
+ "assignee_kind": {
988
+ "name": "assignee_kind",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": false
992
+ },
993
+ "assignee_id": {
994
+ "name": "assignee_id",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "due_date": {
1000
+ "name": "due_date",
1001
+ "type": "bigint",
1002
+ "primaryKey": false,
1003
+ "notNull": false
1004
+ },
1005
+ "created_by_kind": {
1006
+ "name": "created_by_kind",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "default": "'user'"
1011
+ },
1012
+ "created_by_id": {
1013
+ "name": "created_by_id",
1014
+ "type": "text",
1015
+ "primaryKey": false,
1016
+ "notNull": true,
1017
+ "default": "'__self__'"
1018
+ },
1019
+ "source_chat_session_id": {
1020
+ "name": "source_chat_session_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": false
1024
+ },
1025
+ "delegate_agent_id": {
1026
+ "name": "delegate_agent_id",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": false
1030
+ },
1031
+ "delegate_provider_target_id": {
1032
+ "name": "delegate_provider_target_id",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": false
1036
+ },
1037
+ "context_refs": {
1038
+ "name": "context_refs",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true,
1042
+ "default": "'[]'"
1043
+ },
1044
+ "status_line": {
1045
+ "name": "status_line",
1046
+ "type": "text",
1047
+ "primaryKey": false,
1048
+ "notNull": false
1049
+ },
1050
+ "waiting_for": {
1051
+ "name": "waiting_for",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": false
1055
+ },
1056
+ "execution_mode": {
1057
+ "name": "execution_mode",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true,
1061
+ "default": "'worktree'"
1062
+ },
1063
+ "order": {
1064
+ "name": "order",
1065
+ "type": "integer",
1066
+ "primaryKey": false,
1067
+ "notNull": true,
1068
+ "default": 0
1069
+ },
1070
+ "created_at": {
1071
+ "name": "created_at",
1072
+ "type": "bigint",
1073
+ "primaryKey": false,
1074
+ "notNull": true,
1075
+ "default": "(extract(epoch from now())::bigint)"
1076
+ },
1077
+ "updated_at": {
1078
+ "name": "updated_at",
1079
+ "type": "bigint",
1080
+ "primaryKey": false,
1081
+ "notNull": true,
1082
+ "default": "(extract(epoch from now())::bigint)"
1083
+ }
1084
+ },
1085
+ "indexes": {
1086
+ "issues_workspace_id_idx": {
1087
+ "name": "issues_workspace_id_idx",
1088
+ "columns": [
1089
+ {
1090
+ "expression": "workspace_id",
1091
+ "isExpression": false,
1092
+ "asc": true,
1093
+ "nulls": "last"
1094
+ }
1095
+ ],
1096
+ "isUnique": false,
1097
+ "concurrently": false,
1098
+ "method": "btree",
1099
+ "with": {}
1100
+ },
1101
+ "issues_workspace_number_unique": {
1102
+ "name": "issues_workspace_number_unique",
1103
+ "columns": [
1104
+ {
1105
+ "expression": "workspace_id",
1106
+ "isExpression": false,
1107
+ "asc": true,
1108
+ "nulls": "last"
1109
+ },
1110
+ {
1111
+ "expression": "number",
1112
+ "isExpression": false,
1113
+ "asc": true,
1114
+ "nulls": "last"
1115
+ }
1116
+ ],
1117
+ "isUnique": true,
1118
+ "concurrently": false,
1119
+ "method": "btree",
1120
+ "with": {}
1121
+ },
1122
+ "issues_status_id_idx": {
1123
+ "name": "issues_status_id_idx",
1124
+ "columns": [
1125
+ {
1126
+ "expression": "status_id",
1127
+ "isExpression": false,
1128
+ "asc": true,
1129
+ "nulls": "last"
1130
+ }
1131
+ ],
1132
+ "isUnique": false,
1133
+ "concurrently": false,
1134
+ "method": "btree",
1135
+ "with": {}
1136
+ },
1137
+ "issues_milestone_id_idx": {
1138
+ "name": "issues_milestone_id_idx",
1139
+ "columns": [
1140
+ {
1141
+ "expression": "milestone_id",
1142
+ "isExpression": false,
1143
+ "asc": true,
1144
+ "nulls": "last"
1145
+ }
1146
+ ],
1147
+ "isUnique": false,
1148
+ "concurrently": false,
1149
+ "method": "btree",
1150
+ "with": {}
1151
+ },
1152
+ "issues_parent_issue_id_idx": {
1153
+ "name": "issues_parent_issue_id_idx",
1154
+ "columns": [
1155
+ {
1156
+ "expression": "parent_issue_id",
1157
+ "isExpression": false,
1158
+ "asc": true,
1159
+ "nulls": "last"
1160
+ }
1161
+ ],
1162
+ "isUnique": false,
1163
+ "concurrently": false,
1164
+ "method": "btree",
1165
+ "with": {}
1166
+ },
1167
+ "issues_delegate_agent_id_idx": {
1168
+ "name": "issues_delegate_agent_id_idx",
1169
+ "columns": [
1170
+ {
1171
+ "expression": "delegate_agent_id",
1172
+ "isExpression": false,
1173
+ "asc": true,
1174
+ "nulls": "last"
1175
+ }
1176
+ ],
1177
+ "isUnique": false,
1178
+ "concurrently": false,
1179
+ "method": "btree",
1180
+ "with": {}
1181
+ },
1182
+ "issues_delegate_provider_target_id_idx": {
1183
+ "name": "issues_delegate_provider_target_id_idx",
1184
+ "columns": [
1185
+ {
1186
+ "expression": "delegate_provider_target_id",
1187
+ "isExpression": false,
1188
+ "asc": true,
1189
+ "nulls": "last"
1190
+ }
1191
+ ],
1192
+ "isUnique": false,
1193
+ "concurrently": false,
1194
+ "method": "btree",
1195
+ "with": {}
1196
+ }
1197
+ },
1198
+ "foreignKeys": {
1199
+ "issues_status_id_issue_statuses_id_fk": {
1200
+ "name": "issues_status_id_issue_statuses_id_fk",
1201
+ "tableFrom": "issues",
1202
+ "tableTo": "issue_statuses",
1203
+ "columnsFrom": [
1204
+ "status_id"
1205
+ ],
1206
+ "columnsTo": [
1207
+ "id"
1208
+ ],
1209
+ "onDelete": "set null",
1210
+ "onUpdate": "no action"
1211
+ },
1212
+ "issues_milestone_id_issue_milestones_id_fk": {
1213
+ "name": "issues_milestone_id_issue_milestones_id_fk",
1214
+ "tableFrom": "issues",
1215
+ "tableTo": "issue_milestones",
1216
+ "columnsFrom": [
1217
+ "milestone_id"
1218
+ ],
1219
+ "columnsTo": [
1220
+ "id"
1221
+ ],
1222
+ "onDelete": "set null",
1223
+ "onUpdate": "no action"
1224
+ },
1225
+ "issues_parent_issue_id_issues_id_fk": {
1226
+ "name": "issues_parent_issue_id_issues_id_fk",
1227
+ "tableFrom": "issues",
1228
+ "tableTo": "issues",
1229
+ "columnsFrom": [
1230
+ "parent_issue_id"
1231
+ ],
1232
+ "columnsTo": [
1233
+ "id"
1234
+ ],
1235
+ "onDelete": "set null",
1236
+ "onUpdate": "no action"
1237
+ }
1238
+ },
1239
+ "compositePrimaryKeys": {},
1240
+ "uniqueConstraints": {},
1241
+ "policies": {},
1242
+ "checkConstraints": {},
1243
+ "isRLSEnabled": false
1244
+ },
1245
+ "public.kanban_meta": {
1246
+ "name": "kanban_meta",
1247
+ "schema": "",
1248
+ "columns": {
1249
+ "key": {
1250
+ "name": "key",
1251
+ "type": "text",
1252
+ "primaryKey": true,
1253
+ "notNull": true
1254
+ },
1255
+ "revision": {
1256
+ "name": "revision",
1257
+ "type": "integer",
1258
+ "primaryKey": false,
1259
+ "notNull": true,
1260
+ "default": 0
1261
+ },
1262
+ "updated_at": {
1263
+ "name": "updated_at",
1264
+ "type": "bigint",
1265
+ "primaryKey": false,
1266
+ "notNull": true,
1267
+ "default": "(extract(epoch from now())::bigint)"
1268
+ }
1269
+ },
1270
+ "indexes": {},
1271
+ "foreignKeys": {},
1272
+ "compositePrimaryKeys": {},
1273
+ "uniqueConstraints": {},
1274
+ "policies": {},
1275
+ "checkConstraints": {},
1276
+ "isRLSEnabled": false
1277
+ }
1278
+ },
1279
+ "enums": {},
1280
+ "schemas": {},
1281
+ "sequences": {},
1282
+ "roles": {},
1283
+ "policies": {},
1284
+ "views": {},
1285
+ "_meta": {
1286
+ "columns": {},
1287
+ "schemas": {},
1288
+ "tables": {}
1289
+ }
1290
+ }