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