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,1251 @@
1
+ {
2
+ "id": "b86b6cfe-1d82-4f07-9328-c92049e1be58",
3
+ "prevId": "1e4b9209-fee4-4a2e-87df-cec1c2f959b7",
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
+ "start_date": {
267
+ "name": "start_date",
268
+ "type": "bigint",
269
+ "primaryKey": false,
270
+ "notNull": false
271
+ },
272
+ "due_date": {
273
+ "name": "due_date",
274
+ "type": "bigint",
275
+ "primaryKey": false,
276
+ "notNull": false
277
+ },
278
+ "status": {
279
+ "name": "status",
280
+ "type": "text",
281
+ "primaryKey": false,
282
+ "notNull": true,
283
+ "default": "'open'"
284
+ },
285
+ "created_at": {
286
+ "name": "created_at",
287
+ "type": "bigint",
288
+ "primaryKey": false,
289
+ "notNull": true,
290
+ "default": "(extract(epoch from now())::bigint)"
291
+ },
292
+ "updated_at": {
293
+ "name": "updated_at",
294
+ "type": "bigint",
295
+ "primaryKey": false,
296
+ "notNull": true,
297
+ "default": "(extract(epoch from now())::bigint)"
298
+ }
299
+ },
300
+ "indexes": {
301
+ "issue_milestones_workspace_id_idx": {
302
+ "name": "issue_milestones_workspace_id_idx",
303
+ "columns": [
304
+ {
305
+ "expression": "workspace_id",
306
+ "isExpression": false,
307
+ "asc": true,
308
+ "nulls": "last"
309
+ }
310
+ ],
311
+ "isUnique": false,
312
+ "concurrently": false,
313
+ "method": "btree",
314
+ "with": {}
315
+ }
316
+ },
317
+ "foreignKeys": {},
318
+ "compositePrimaryKeys": {},
319
+ "uniqueConstraints": {},
320
+ "policies": {},
321
+ "checkConstraints": {},
322
+ "isRLSEnabled": false
323
+ },
324
+ "public.issue_pull_requests": {
325
+ "name": "issue_pull_requests",
326
+ "schema": "",
327
+ "columns": {
328
+ "id": {
329
+ "name": "id",
330
+ "type": "text",
331
+ "primaryKey": true,
332
+ "notNull": true
333
+ },
334
+ "issue_id": {
335
+ "name": "issue_id",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true
339
+ },
340
+ "owner": {
341
+ "name": "owner",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true
345
+ },
346
+ "repo": {
347
+ "name": "repo",
348
+ "type": "text",
349
+ "primaryKey": false,
350
+ "notNull": true
351
+ },
352
+ "number": {
353
+ "name": "number",
354
+ "type": "integer",
355
+ "primaryKey": false,
356
+ "notNull": true
357
+ },
358
+ "url": {
359
+ "name": "url",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "created_by_kind": {
365
+ "name": "created_by_kind",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "created_by_id": {
371
+ "name": "created_by_id",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": false
375
+ },
376
+ "created_at": {
377
+ "name": "created_at",
378
+ "type": "bigint",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "default": "(extract(epoch from now())::bigint)"
382
+ },
383
+ "seq": {
384
+ "name": "seq",
385
+ "type": "bigserial",
386
+ "primaryKey": false,
387
+ "notNull": true
388
+ }
389
+ },
390
+ "indexes": {
391
+ "issue_pull_requests_issue_pr_unique": {
392
+ "name": "issue_pull_requests_issue_pr_unique",
393
+ "columns": [
394
+ {
395
+ "expression": "issue_id",
396
+ "isExpression": false,
397
+ "asc": true,
398
+ "nulls": "last"
399
+ },
400
+ {
401
+ "expression": "owner",
402
+ "isExpression": false,
403
+ "asc": true,
404
+ "nulls": "last"
405
+ },
406
+ {
407
+ "expression": "repo",
408
+ "isExpression": false,
409
+ "asc": true,
410
+ "nulls": "last"
411
+ },
412
+ {
413
+ "expression": "number",
414
+ "isExpression": false,
415
+ "asc": true,
416
+ "nulls": "last"
417
+ }
418
+ ],
419
+ "isUnique": true,
420
+ "concurrently": false,
421
+ "method": "btree",
422
+ "with": {}
423
+ },
424
+ "issue_pull_requests_pr_idx": {
425
+ "name": "issue_pull_requests_pr_idx",
426
+ "columns": [
427
+ {
428
+ "expression": "owner",
429
+ "isExpression": false,
430
+ "asc": true,
431
+ "nulls": "last"
432
+ },
433
+ {
434
+ "expression": "repo",
435
+ "isExpression": false,
436
+ "asc": true,
437
+ "nulls": "last"
438
+ },
439
+ {
440
+ "expression": "number",
441
+ "isExpression": false,
442
+ "asc": true,
443
+ "nulls": "last"
444
+ }
445
+ ],
446
+ "isUnique": false,
447
+ "concurrently": false,
448
+ "method": "btree",
449
+ "with": {}
450
+ }
451
+ },
452
+ "foreignKeys": {
453
+ "issue_pull_requests_issue_id_issues_id_fk": {
454
+ "name": "issue_pull_requests_issue_id_issues_id_fk",
455
+ "tableFrom": "issue_pull_requests",
456
+ "tableTo": "issues",
457
+ "columnsFrom": [
458
+ "issue_id"
459
+ ],
460
+ "columnsTo": [
461
+ "id"
462
+ ],
463
+ "onDelete": "cascade",
464
+ "onUpdate": "no action"
465
+ }
466
+ },
467
+ "compositePrimaryKeys": {},
468
+ "uniqueConstraints": {},
469
+ "policies": {},
470
+ "checkConstraints": {},
471
+ "isRLSEnabled": false
472
+ },
473
+ "public.issue_relations": {
474
+ "name": "issue_relations",
475
+ "schema": "",
476
+ "columns": {
477
+ "id": {
478
+ "name": "id",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true
482
+ },
483
+ "source_issue_id": {
484
+ "name": "source_issue_id",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ },
489
+ "target_issue_id": {
490
+ "name": "target_issue_id",
491
+ "type": "text",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ },
495
+ "type": {
496
+ "name": "type",
497
+ "type": "text",
498
+ "primaryKey": false,
499
+ "notNull": true
500
+ },
501
+ "created_at": {
502
+ "name": "created_at",
503
+ "type": "bigint",
504
+ "primaryKey": false,
505
+ "notNull": true,
506
+ "default": "(extract(epoch from now())::bigint)"
507
+ }
508
+ },
509
+ "indexes": {
510
+ "issue_relations_source_issue_id_idx": {
511
+ "name": "issue_relations_source_issue_id_idx",
512
+ "columns": [
513
+ {
514
+ "expression": "source_issue_id",
515
+ "isExpression": false,
516
+ "asc": true,
517
+ "nulls": "last"
518
+ }
519
+ ],
520
+ "isUnique": false,
521
+ "concurrently": false,
522
+ "method": "btree",
523
+ "with": {}
524
+ },
525
+ "issue_relations_target_issue_id_idx": {
526
+ "name": "issue_relations_target_issue_id_idx",
527
+ "columns": [
528
+ {
529
+ "expression": "target_issue_id",
530
+ "isExpression": false,
531
+ "asc": true,
532
+ "nulls": "last"
533
+ }
534
+ ],
535
+ "isUnique": false,
536
+ "concurrently": false,
537
+ "method": "btree",
538
+ "with": {}
539
+ },
540
+ "issue_relations_pair_type_unique": {
541
+ "name": "issue_relations_pair_type_unique",
542
+ "columns": [
543
+ {
544
+ "expression": "source_issue_id",
545
+ "isExpression": false,
546
+ "asc": true,
547
+ "nulls": "last"
548
+ },
549
+ {
550
+ "expression": "target_issue_id",
551
+ "isExpression": false,
552
+ "asc": true,
553
+ "nulls": "last"
554
+ },
555
+ {
556
+ "expression": "type",
557
+ "isExpression": false,
558
+ "asc": true,
559
+ "nulls": "last"
560
+ }
561
+ ],
562
+ "isUnique": true,
563
+ "concurrently": false,
564
+ "method": "btree",
565
+ "with": {}
566
+ }
567
+ },
568
+ "foreignKeys": {
569
+ "issue_relations_source_issue_id_issues_id_fk": {
570
+ "name": "issue_relations_source_issue_id_issues_id_fk",
571
+ "tableFrom": "issue_relations",
572
+ "tableTo": "issues",
573
+ "columnsFrom": [
574
+ "source_issue_id"
575
+ ],
576
+ "columnsTo": [
577
+ "id"
578
+ ],
579
+ "onDelete": "cascade",
580
+ "onUpdate": "no action"
581
+ },
582
+ "issue_relations_target_issue_id_issues_id_fk": {
583
+ "name": "issue_relations_target_issue_id_issues_id_fk",
584
+ "tableFrom": "issue_relations",
585
+ "tableTo": "issues",
586
+ "columnsFrom": [
587
+ "target_issue_id"
588
+ ],
589
+ "columnsTo": [
590
+ "id"
591
+ ],
592
+ "onDelete": "cascade",
593
+ "onUpdate": "no action"
594
+ }
595
+ },
596
+ "compositePrimaryKeys": {},
597
+ "uniqueConstraints": {},
598
+ "policies": {},
599
+ "checkConstraints": {},
600
+ "isRLSEnabled": false
601
+ },
602
+ "public.issue_runs": {
603
+ "name": "issue_runs",
604
+ "schema": "",
605
+ "columns": {
606
+ "id": {
607
+ "name": "id",
608
+ "type": "text",
609
+ "primaryKey": true,
610
+ "notNull": true
611
+ },
612
+ "issue_id": {
613
+ "name": "issue_id",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true
617
+ },
618
+ "launched_by_kind": {
619
+ "name": "launched_by_kind",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "default": "'user'"
624
+ },
625
+ "launched_by_id": {
626
+ "name": "launched_by_id",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": false
630
+ },
631
+ "agent_id": {
632
+ "name": "agent_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": false
636
+ },
637
+ "agent_name": {
638
+ "name": "agent_name",
639
+ "type": "text",
640
+ "primaryKey": false,
641
+ "notNull": true
642
+ },
643
+ "host": {
644
+ "name": "host",
645
+ "type": "text",
646
+ "primaryKey": false,
647
+ "notNull": false
648
+ },
649
+ "execution_mode": {
650
+ "name": "execution_mode",
651
+ "type": "text",
652
+ "primaryKey": false,
653
+ "notNull": true,
654
+ "default": "'worktree'"
655
+ },
656
+ "branch": {
657
+ "name": "branch",
658
+ "type": "text",
659
+ "primaryKey": false,
660
+ "notNull": false
661
+ },
662
+ "worktree_path": {
663
+ "name": "worktree_path",
664
+ "type": "text",
665
+ "primaryKey": false,
666
+ "notNull": false
667
+ },
668
+ "state": {
669
+ "name": "state",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": true,
673
+ "default": "'running'"
674
+ },
675
+ "chat_session_id": {
676
+ "name": "chat_session_id",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": false
680
+ },
681
+ "started_at": {
682
+ "name": "started_at",
683
+ "type": "bigint",
684
+ "primaryKey": false,
685
+ "notNull": true,
686
+ "default": "(extract(epoch from now())::bigint)"
687
+ },
688
+ "ended_at": {
689
+ "name": "ended_at",
690
+ "type": "bigint",
691
+ "primaryKey": false,
692
+ "notNull": false
693
+ },
694
+ "seq": {
695
+ "name": "seq",
696
+ "type": "bigserial",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ }
700
+ },
701
+ "indexes": {
702
+ "issue_runs_issue_id_idx": {
703
+ "name": "issue_runs_issue_id_idx",
704
+ "columns": [
705
+ {
706
+ "expression": "issue_id",
707
+ "isExpression": false,
708
+ "asc": true,
709
+ "nulls": "last"
710
+ }
711
+ ],
712
+ "isUnique": false,
713
+ "concurrently": false,
714
+ "method": "btree",
715
+ "with": {}
716
+ },
717
+ "issue_runs_issue_state_idx": {
718
+ "name": "issue_runs_issue_state_idx",
719
+ "columns": [
720
+ {
721
+ "expression": "issue_id",
722
+ "isExpression": false,
723
+ "asc": true,
724
+ "nulls": "last"
725
+ },
726
+ {
727
+ "expression": "state",
728
+ "isExpression": false,
729
+ "asc": true,
730
+ "nulls": "last"
731
+ }
732
+ ],
733
+ "isUnique": false,
734
+ "concurrently": false,
735
+ "method": "btree",
736
+ "with": {}
737
+ },
738
+ "issue_runs_chat_session_idx": {
739
+ "name": "issue_runs_chat_session_idx",
740
+ "columns": [
741
+ {
742
+ "expression": "chat_session_id",
743
+ "isExpression": false,
744
+ "asc": true,
745
+ "nulls": "last"
746
+ }
747
+ ],
748
+ "isUnique": false,
749
+ "concurrently": false,
750
+ "method": "btree",
751
+ "with": {}
752
+ }
753
+ },
754
+ "foreignKeys": {
755
+ "issue_runs_issue_id_issues_id_fk": {
756
+ "name": "issue_runs_issue_id_issues_id_fk",
757
+ "tableFrom": "issue_runs",
758
+ "tableTo": "issues",
759
+ "columnsFrom": [
760
+ "issue_id"
761
+ ],
762
+ "columnsTo": [
763
+ "id"
764
+ ],
765
+ "onDelete": "cascade",
766
+ "onUpdate": "no action"
767
+ }
768
+ },
769
+ "compositePrimaryKeys": {},
770
+ "uniqueConstraints": {},
771
+ "policies": {},
772
+ "checkConstraints": {},
773
+ "isRLSEnabled": false
774
+ },
775
+ "public.issue_statuses": {
776
+ "name": "issue_statuses",
777
+ "schema": "",
778
+ "columns": {
779
+ "id": {
780
+ "name": "id",
781
+ "type": "text",
782
+ "primaryKey": true,
783
+ "notNull": true
784
+ },
785
+ "workspace_id": {
786
+ "name": "workspace_id",
787
+ "type": "text",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ },
791
+ "name": {
792
+ "name": "name",
793
+ "type": "text",
794
+ "primaryKey": false,
795
+ "notNull": true
796
+ },
797
+ "description": {
798
+ "name": "description",
799
+ "type": "text",
800
+ "primaryKey": false,
801
+ "notNull": false
802
+ },
803
+ "color": {
804
+ "name": "color",
805
+ "type": "text",
806
+ "primaryKey": false,
807
+ "notNull": false
808
+ },
809
+ "category": {
810
+ "name": "category",
811
+ "type": "text",
812
+ "primaryKey": false,
813
+ "notNull": true,
814
+ "default": "'unstarted'"
815
+ },
816
+ "order": {
817
+ "name": "order",
818
+ "type": "integer",
819
+ "primaryKey": false,
820
+ "notNull": true,
821
+ "default": 0
822
+ },
823
+ "entry_rules": {
824
+ "name": "entry_rules",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": false
828
+ },
829
+ "created_at": {
830
+ "name": "created_at",
831
+ "type": "bigint",
832
+ "primaryKey": false,
833
+ "notNull": true,
834
+ "default": "(extract(epoch from now())::bigint)"
835
+ }
836
+ },
837
+ "indexes": {
838
+ "issue_statuses_workspace_id_idx": {
839
+ "name": "issue_statuses_workspace_id_idx",
840
+ "columns": [
841
+ {
842
+ "expression": "workspace_id",
843
+ "isExpression": false,
844
+ "asc": true,
845
+ "nulls": "last"
846
+ }
847
+ ],
848
+ "isUnique": false,
849
+ "concurrently": false,
850
+ "method": "btree",
851
+ "with": {}
852
+ },
853
+ "issue_statuses_workspace_name_unique": {
854
+ "name": "issue_statuses_workspace_name_unique",
855
+ "columns": [
856
+ {
857
+ "expression": "workspace_id",
858
+ "isExpression": false,
859
+ "asc": true,
860
+ "nulls": "last"
861
+ },
862
+ {
863
+ "expression": "name",
864
+ "isExpression": false,
865
+ "asc": true,
866
+ "nulls": "last"
867
+ }
868
+ ],
869
+ "isUnique": true,
870
+ "concurrently": false,
871
+ "method": "btree",
872
+ "with": {}
873
+ }
874
+ },
875
+ "foreignKeys": {},
876
+ "compositePrimaryKeys": {},
877
+ "uniqueConstraints": {},
878
+ "policies": {},
879
+ "checkConstraints": {},
880
+ "isRLSEnabled": false
881
+ },
882
+ "public.issues": {
883
+ "name": "issues",
884
+ "schema": "",
885
+ "columns": {
886
+ "id": {
887
+ "name": "id",
888
+ "type": "text",
889
+ "primaryKey": true,
890
+ "notNull": true
891
+ },
892
+ "workspace_id": {
893
+ "name": "workspace_id",
894
+ "type": "text",
895
+ "primaryKey": false,
896
+ "notNull": true
897
+ },
898
+ "number": {
899
+ "name": "number",
900
+ "type": "integer",
901
+ "primaryKey": false,
902
+ "notNull": true
903
+ },
904
+ "status_id": {
905
+ "name": "status_id",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": false
909
+ },
910
+ "milestone_id": {
911
+ "name": "milestone_id",
912
+ "type": "text",
913
+ "primaryKey": false,
914
+ "notNull": false
915
+ },
916
+ "parent_issue_id": {
917
+ "name": "parent_issue_id",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": false
921
+ },
922
+ "title": {
923
+ "name": "title",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ },
928
+ "description": {
929
+ "name": "description",
930
+ "type": "text",
931
+ "primaryKey": false,
932
+ "notNull": false
933
+ },
934
+ "priority": {
935
+ "name": "priority",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": true,
939
+ "default": "'none'"
940
+ },
941
+ "labels": {
942
+ "name": "labels",
943
+ "type": "text",
944
+ "primaryKey": false,
945
+ "notNull": true,
946
+ "default": "'[]'"
947
+ },
948
+ "assignee_kind": {
949
+ "name": "assignee_kind",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": false
953
+ },
954
+ "assignee_id": {
955
+ "name": "assignee_id",
956
+ "type": "text",
957
+ "primaryKey": false,
958
+ "notNull": false
959
+ },
960
+ "due_date": {
961
+ "name": "due_date",
962
+ "type": "bigint",
963
+ "primaryKey": false,
964
+ "notNull": false
965
+ },
966
+ "created_by_kind": {
967
+ "name": "created_by_kind",
968
+ "type": "text",
969
+ "primaryKey": false,
970
+ "notNull": true,
971
+ "default": "'user'"
972
+ },
973
+ "created_by_id": {
974
+ "name": "created_by_id",
975
+ "type": "text",
976
+ "primaryKey": false,
977
+ "notNull": true,
978
+ "default": "'__self__'"
979
+ },
980
+ "source_chat_session_id": {
981
+ "name": "source_chat_session_id",
982
+ "type": "text",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "delegate_agent_id": {
987
+ "name": "delegate_agent_id",
988
+ "type": "text",
989
+ "primaryKey": false,
990
+ "notNull": false
991
+ },
992
+ "delegate_provider_target_id": {
993
+ "name": "delegate_provider_target_id",
994
+ "type": "text",
995
+ "primaryKey": false,
996
+ "notNull": false
997
+ },
998
+ "context_refs": {
999
+ "name": "context_refs",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "default": "'[]'"
1004
+ },
1005
+ "status_line": {
1006
+ "name": "status_line",
1007
+ "type": "text",
1008
+ "primaryKey": false,
1009
+ "notNull": false
1010
+ },
1011
+ "waiting_for": {
1012
+ "name": "waiting_for",
1013
+ "type": "text",
1014
+ "primaryKey": false,
1015
+ "notNull": false
1016
+ },
1017
+ "execution_mode": {
1018
+ "name": "execution_mode",
1019
+ "type": "text",
1020
+ "primaryKey": false,
1021
+ "notNull": true,
1022
+ "default": "'worktree'"
1023
+ },
1024
+ "order": {
1025
+ "name": "order",
1026
+ "type": "integer",
1027
+ "primaryKey": false,
1028
+ "notNull": true,
1029
+ "default": 0
1030
+ },
1031
+ "created_at": {
1032
+ "name": "created_at",
1033
+ "type": "bigint",
1034
+ "primaryKey": false,
1035
+ "notNull": true,
1036
+ "default": "(extract(epoch from now())::bigint)"
1037
+ },
1038
+ "updated_at": {
1039
+ "name": "updated_at",
1040
+ "type": "bigint",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "default": "(extract(epoch from now())::bigint)"
1044
+ }
1045
+ },
1046
+ "indexes": {
1047
+ "issues_workspace_id_idx": {
1048
+ "name": "issues_workspace_id_idx",
1049
+ "columns": [
1050
+ {
1051
+ "expression": "workspace_id",
1052
+ "isExpression": false,
1053
+ "asc": true,
1054
+ "nulls": "last"
1055
+ }
1056
+ ],
1057
+ "isUnique": false,
1058
+ "concurrently": false,
1059
+ "method": "btree",
1060
+ "with": {}
1061
+ },
1062
+ "issues_workspace_number_unique": {
1063
+ "name": "issues_workspace_number_unique",
1064
+ "columns": [
1065
+ {
1066
+ "expression": "workspace_id",
1067
+ "isExpression": false,
1068
+ "asc": true,
1069
+ "nulls": "last"
1070
+ },
1071
+ {
1072
+ "expression": "number",
1073
+ "isExpression": false,
1074
+ "asc": true,
1075
+ "nulls": "last"
1076
+ }
1077
+ ],
1078
+ "isUnique": true,
1079
+ "concurrently": false,
1080
+ "method": "btree",
1081
+ "with": {}
1082
+ },
1083
+ "issues_status_id_idx": {
1084
+ "name": "issues_status_id_idx",
1085
+ "columns": [
1086
+ {
1087
+ "expression": "status_id",
1088
+ "isExpression": false,
1089
+ "asc": true,
1090
+ "nulls": "last"
1091
+ }
1092
+ ],
1093
+ "isUnique": false,
1094
+ "concurrently": false,
1095
+ "method": "btree",
1096
+ "with": {}
1097
+ },
1098
+ "issues_milestone_id_idx": {
1099
+ "name": "issues_milestone_id_idx",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "milestone_id",
1103
+ "isExpression": false,
1104
+ "asc": true,
1105
+ "nulls": "last"
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "concurrently": false,
1110
+ "method": "btree",
1111
+ "with": {}
1112
+ },
1113
+ "issues_parent_issue_id_idx": {
1114
+ "name": "issues_parent_issue_id_idx",
1115
+ "columns": [
1116
+ {
1117
+ "expression": "parent_issue_id",
1118
+ "isExpression": false,
1119
+ "asc": true,
1120
+ "nulls": "last"
1121
+ }
1122
+ ],
1123
+ "isUnique": false,
1124
+ "concurrently": false,
1125
+ "method": "btree",
1126
+ "with": {}
1127
+ },
1128
+ "issues_delegate_agent_id_idx": {
1129
+ "name": "issues_delegate_agent_id_idx",
1130
+ "columns": [
1131
+ {
1132
+ "expression": "delegate_agent_id",
1133
+ "isExpression": false,
1134
+ "asc": true,
1135
+ "nulls": "last"
1136
+ }
1137
+ ],
1138
+ "isUnique": false,
1139
+ "concurrently": false,
1140
+ "method": "btree",
1141
+ "with": {}
1142
+ },
1143
+ "issues_delegate_provider_target_id_idx": {
1144
+ "name": "issues_delegate_provider_target_id_idx",
1145
+ "columns": [
1146
+ {
1147
+ "expression": "delegate_provider_target_id",
1148
+ "isExpression": false,
1149
+ "asc": true,
1150
+ "nulls": "last"
1151
+ }
1152
+ ],
1153
+ "isUnique": false,
1154
+ "concurrently": false,
1155
+ "method": "btree",
1156
+ "with": {}
1157
+ }
1158
+ },
1159
+ "foreignKeys": {
1160
+ "issues_status_id_issue_statuses_id_fk": {
1161
+ "name": "issues_status_id_issue_statuses_id_fk",
1162
+ "tableFrom": "issues",
1163
+ "tableTo": "issue_statuses",
1164
+ "columnsFrom": [
1165
+ "status_id"
1166
+ ],
1167
+ "columnsTo": [
1168
+ "id"
1169
+ ],
1170
+ "onDelete": "set null",
1171
+ "onUpdate": "no action"
1172
+ },
1173
+ "issues_milestone_id_issue_milestones_id_fk": {
1174
+ "name": "issues_milestone_id_issue_milestones_id_fk",
1175
+ "tableFrom": "issues",
1176
+ "tableTo": "issue_milestones",
1177
+ "columnsFrom": [
1178
+ "milestone_id"
1179
+ ],
1180
+ "columnsTo": [
1181
+ "id"
1182
+ ],
1183
+ "onDelete": "set null",
1184
+ "onUpdate": "no action"
1185
+ },
1186
+ "issues_parent_issue_id_issues_id_fk": {
1187
+ "name": "issues_parent_issue_id_issues_id_fk",
1188
+ "tableFrom": "issues",
1189
+ "tableTo": "issues",
1190
+ "columnsFrom": [
1191
+ "parent_issue_id"
1192
+ ],
1193
+ "columnsTo": [
1194
+ "id"
1195
+ ],
1196
+ "onDelete": "set null",
1197
+ "onUpdate": "no action"
1198
+ }
1199
+ },
1200
+ "compositePrimaryKeys": {},
1201
+ "uniqueConstraints": {},
1202
+ "policies": {},
1203
+ "checkConstraints": {},
1204
+ "isRLSEnabled": false
1205
+ },
1206
+ "public.kanban_meta": {
1207
+ "name": "kanban_meta",
1208
+ "schema": "",
1209
+ "columns": {
1210
+ "key": {
1211
+ "name": "key",
1212
+ "type": "text",
1213
+ "primaryKey": true,
1214
+ "notNull": true
1215
+ },
1216
+ "revision": {
1217
+ "name": "revision",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "default": 0
1222
+ },
1223
+ "updated_at": {
1224
+ "name": "updated_at",
1225
+ "type": "bigint",
1226
+ "primaryKey": false,
1227
+ "notNull": true,
1228
+ "default": "(extract(epoch from now())::bigint)"
1229
+ }
1230
+ },
1231
+ "indexes": {},
1232
+ "foreignKeys": {},
1233
+ "compositePrimaryKeys": {},
1234
+ "uniqueConstraints": {},
1235
+ "policies": {},
1236
+ "checkConstraints": {},
1237
+ "isRLSEnabled": false
1238
+ }
1239
+ },
1240
+ "enums": {},
1241
+ "schemas": {},
1242
+ "sequences": {},
1243
+ "roles": {},
1244
+ "policies": {},
1245
+ "views": {},
1246
+ "_meta": {
1247
+ "columns": {},
1248
+ "schemas": {},
1249
+ "tables": {}
1250
+ }
1251
+ }