@treeport/treeport 0.1.0 → 0.3.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.
@@ -0,0 +1,696 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7adcd561-4aff-46d1-9646-3a1168313096",
5
+ "prevId": "523a3d94-562d-4a96-8e49-645c90008c01",
6
+ "tables": {
7
+ "operations": {
8
+ "name": "operations",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "project_id": {
25
+ "name": "project_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "worktree_id": {
32
+ "name": "worktree_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "status": {
39
+ "name": "status",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "request_json": {
46
+ "name": "request_json",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "result_json": {
53
+ "name": "result_json",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "error": {
60
+ "name": "error",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "created_at": {
67
+ "name": "created_at",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false
72
+ },
73
+ "updated_at": {
74
+ "name": "updated_at",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false
79
+ }
80
+ },
81
+ "indexes": {
82
+ "operations_worktree_idx": {
83
+ "name": "operations_worktree_idx",
84
+ "columns": ["worktree_id"],
85
+ "isUnique": false
86
+ },
87
+ "operations_project_kind_status_idx": {
88
+ "name": "operations_project_kind_status_idx",
89
+ "columns": ["project_id", "kind", "status"],
90
+ "isUnique": false
91
+ }
92
+ },
93
+ "foreignKeys": {
94
+ "operations_project_id_projects_id_fk": {
95
+ "name": "operations_project_id_projects_id_fk",
96
+ "tableFrom": "operations",
97
+ "tableTo": "projects",
98
+ "columnsFrom": ["project_id"],
99
+ "columnsTo": ["id"],
100
+ "onDelete": "set null",
101
+ "onUpdate": "no action"
102
+ },
103
+ "operations_worktree_id_worktrees_id_fk": {
104
+ "name": "operations_worktree_id_worktrees_id_fk",
105
+ "tableFrom": "operations",
106
+ "tableTo": "worktrees",
107
+ "columnsFrom": ["worktree_id"],
108
+ "columnsTo": ["id"],
109
+ "onDelete": "set null",
110
+ "onUpdate": "no action"
111
+ }
112
+ },
113
+ "compositePrimaryKeys": {},
114
+ "uniqueConstraints": {},
115
+ "checkConstraints": {
116
+ "operations_kind_check": {
117
+ "name": "operations_kind_check",
118
+ "value": "\"operations\".\"kind\" IN ('create','finish','discard','project_cleanup','remove','external_remove')"
119
+ },
120
+ "operations_status_check": {
121
+ "name": "operations_status_check",
122
+ "value": "\"operations\".\"status\" IN ('pending','running','completed','failed')"
123
+ }
124
+ }
125
+ },
126
+ "projects": {
127
+ "name": "projects",
128
+ "columns": {
129
+ "id": {
130
+ "name": "id",
131
+ "type": "text",
132
+ "primaryKey": true,
133
+ "notNull": true,
134
+ "autoincrement": false
135
+ },
136
+ "name": {
137
+ "name": "name",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true,
141
+ "autoincrement": false
142
+ },
143
+ "repository_path": {
144
+ "name": "repository_path",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": true,
148
+ "autoincrement": false
149
+ },
150
+ "main_worktree_path": {
151
+ "name": "main_worktree_path",
152
+ "type": "text",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "autoincrement": false
156
+ },
157
+ "default_branch": {
158
+ "name": "default_branch",
159
+ "type": "text",
160
+ "primaryKey": false,
161
+ "notNull": true,
162
+ "autoincrement": false
163
+ },
164
+ "color": {
165
+ "name": "color",
166
+ "type": "text",
167
+ "primaryKey": false,
168
+ "notNull": false,
169
+ "autoincrement": false
170
+ },
171
+ "repository_identity": {
172
+ "name": "repository_identity",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": false,
176
+ "autoincrement": false
177
+ },
178
+ "repository_device": {
179
+ "name": "repository_device",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "repository_inode": {
186
+ "name": "repository_inode",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "name_is_custom": {
193
+ "name": "name_is_custom",
194
+ "type": "integer",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false,
198
+ "default": 0
199
+ },
200
+ "is_open": {
201
+ "name": "is_open",
202
+ "type": "integer",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "autoincrement": false,
206
+ "default": 1
207
+ },
208
+ "last_opened_at": {
209
+ "name": "last_opened_at",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "autoincrement": false
214
+ },
215
+ "created_at": {
216
+ "name": "created_at",
217
+ "type": "text",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "autoincrement": false
221
+ },
222
+ "updated_at": {
223
+ "name": "updated_at",
224
+ "type": "text",
225
+ "primaryKey": false,
226
+ "notNull": true,
227
+ "autoincrement": false
228
+ }
229
+ },
230
+ "indexes": {
231
+ "projects_repository_path_unique": {
232
+ "name": "projects_repository_path_unique",
233
+ "columns": ["repository_path"],
234
+ "isUnique": true
235
+ },
236
+ "projects_repository_identity_idx": {
237
+ "name": "projects_repository_identity_idx",
238
+ "columns": ["repository_identity"],
239
+ "isUnique": true,
240
+ "where": "\"projects\".\"repository_identity\" IS NOT NULL"
241
+ },
242
+ "projects_recent_idx": {
243
+ "name": "projects_recent_idx",
244
+ "columns": ["is_open", "\"last_opened_at\" desc", "id"],
245
+ "isUnique": false
246
+ }
247
+ },
248
+ "foreignKeys": {},
249
+ "compositePrimaryKeys": {},
250
+ "uniqueConstraints": {},
251
+ "checkConstraints": {
252
+ "projects_color_check": {
253
+ "name": "projects_color_check",
254
+ "value": "\"projects\".\"color\" IS NULL OR \"projects\".\"color\" IN ('rose','orange','amber','emerald','cyan','blue','violet','pink')"
255
+ },
256
+ "projects_name_is_custom_check": {
257
+ "name": "projects_name_is_custom_check",
258
+ "value": "\"projects\".\"name_is_custom\" IN (0,1)"
259
+ },
260
+ "projects_is_open_check": {
261
+ "name": "projects_is_open_check",
262
+ "value": "\"projects\".\"is_open\" IN (0,1)"
263
+ }
264
+ }
265
+ },
266
+ "terminal_presets": {
267
+ "name": "terminal_presets",
268
+ "columns": {
269
+ "id": {
270
+ "name": "id",
271
+ "type": "text",
272
+ "primaryKey": true,
273
+ "notNull": true,
274
+ "autoincrement": false
275
+ },
276
+ "name": {
277
+ "name": "name",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ },
283
+ "executable": {
284
+ "name": "executable",
285
+ "type": "text",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "autoincrement": false
289
+ },
290
+ "args_json": {
291
+ "name": "args_json",
292
+ "type": "text",
293
+ "primaryKey": false,
294
+ "notNull": true,
295
+ "autoincrement": false
296
+ },
297
+ "close_on_success": {
298
+ "name": "close_on_success",
299
+ "type": "integer",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "autoincrement": false,
303
+ "default": 0
304
+ },
305
+ "created_at": {
306
+ "name": "created_at",
307
+ "type": "text",
308
+ "primaryKey": false,
309
+ "notNull": true,
310
+ "autoincrement": false
311
+ },
312
+ "updated_at": {
313
+ "name": "updated_at",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": true,
317
+ "autoincrement": false
318
+ }
319
+ },
320
+ "indexes": {
321
+ "terminal_presets_order_idx": {
322
+ "name": "terminal_presets_order_idx",
323
+ "columns": ["created_at", "id"],
324
+ "isUnique": false
325
+ }
326
+ },
327
+ "foreignKeys": {},
328
+ "compositePrimaryKeys": {},
329
+ "uniqueConstraints": {},
330
+ "checkConstraints": {
331
+ "terminal_presets_close_on_success_check": {
332
+ "name": "terminal_presets_close_on_success_check",
333
+ "value": "\"terminal_presets\".\"close_on_success\" IN (0,1)"
334
+ }
335
+ }
336
+ },
337
+ "web_panel_storage": {
338
+ "name": "web_panel_storage",
339
+ "columns": {
340
+ "panel_id": {
341
+ "name": "panel_id",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false
346
+ },
347
+ "key": {
348
+ "name": "key",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "autoincrement": false
353
+ },
354
+ "value_json": {
355
+ "name": "value_json",
356
+ "type": "text",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "autoincrement": false
360
+ },
361
+ "updated_at": {
362
+ "name": "updated_at",
363
+ "type": "text",
364
+ "primaryKey": false,
365
+ "notNull": true,
366
+ "autoincrement": false
367
+ }
368
+ },
369
+ "indexes": {
370
+ "web_panel_storage_panel_key_idx": {
371
+ "name": "web_panel_storage_panel_key_idx",
372
+ "columns": ["panel_id", "key"],
373
+ "isUnique": true
374
+ }
375
+ },
376
+ "foreignKeys": {
377
+ "web_panel_storage_panel_id_web_panels_id_fk": {
378
+ "name": "web_panel_storage_panel_id_web_panels_id_fk",
379
+ "tableFrom": "web_panel_storage",
380
+ "tableTo": "web_panels",
381
+ "columnsFrom": ["panel_id"],
382
+ "columnsTo": ["id"],
383
+ "onDelete": "cascade",
384
+ "onUpdate": "no action"
385
+ }
386
+ },
387
+ "compositePrimaryKeys": {},
388
+ "uniqueConstraints": {},
389
+ "checkConstraints": {}
390
+ },
391
+ "web_panels": {
392
+ "name": "web_panels",
393
+ "columns": {
394
+ "id": {
395
+ "name": "id",
396
+ "type": "text",
397
+ "primaryKey": true,
398
+ "notNull": true,
399
+ "autoincrement": false
400
+ },
401
+ "worktree_id": {
402
+ "name": "worktree_id",
403
+ "type": "text",
404
+ "primaryKey": false,
405
+ "notNull": true,
406
+ "autoincrement": false
407
+ },
408
+ "definition_id": {
409
+ "name": "definition_id",
410
+ "type": "text",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "autoincrement": false
414
+ },
415
+ "title": {
416
+ "name": "title",
417
+ "type": "text",
418
+ "primaryKey": false,
419
+ "notNull": true,
420
+ "autoincrement": false
421
+ },
422
+ "created_at": {
423
+ "name": "created_at",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false
428
+ },
429
+ "updated_at": {
430
+ "name": "updated_at",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": true,
434
+ "autoincrement": false
435
+ }
436
+ },
437
+ "indexes": {
438
+ "web_panels_worktree_order_idx": {
439
+ "name": "web_panels_worktree_order_idx",
440
+ "columns": ["worktree_id", "created_at", "id"],
441
+ "isUnique": false
442
+ }
443
+ },
444
+ "foreignKeys": {
445
+ "web_panels_worktree_id_worktrees_id_fk": {
446
+ "name": "web_panels_worktree_id_worktrees_id_fk",
447
+ "tableFrom": "web_panels",
448
+ "tableTo": "worktrees",
449
+ "columnsFrom": ["worktree_id"],
450
+ "columnsTo": ["id"],
451
+ "onDelete": "cascade",
452
+ "onUpdate": "no action"
453
+ }
454
+ },
455
+ "compositePrimaryKeys": {},
456
+ "uniqueConstraints": {},
457
+ "checkConstraints": {}
458
+ },
459
+ "worktrees": {
460
+ "name": "worktrees",
461
+ "columns": {
462
+ "id": {
463
+ "name": "id",
464
+ "type": "text",
465
+ "primaryKey": true,
466
+ "notNull": true,
467
+ "autoincrement": false
468
+ },
469
+ "project_id": {
470
+ "name": "project_id",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "path": {
477
+ "name": "path",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false
482
+ },
483
+ "git_worktree_key": {
484
+ "name": "git_worktree_key",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": false,
488
+ "autoincrement": false
489
+ },
490
+ "head": {
491
+ "name": "head",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": true,
495
+ "autoincrement": false,
496
+ "default": "''"
497
+ },
498
+ "branch": {
499
+ "name": "branch",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "detached": {
506
+ "name": "detached",
507
+ "type": "integer",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": 0
512
+ },
513
+ "locked": {
514
+ "name": "locked",
515
+ "type": "integer",
516
+ "primaryKey": false,
517
+ "notNull": true,
518
+ "autoincrement": false,
519
+ "default": 0
520
+ },
521
+ "lock_reason": {
522
+ "name": "lock_reason",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": false,
526
+ "autoincrement": false
527
+ },
528
+ "prunable": {
529
+ "name": "prunable",
530
+ "type": "integer",
531
+ "primaryKey": false,
532
+ "notNull": true,
533
+ "autoincrement": false,
534
+ "default": 0
535
+ },
536
+ "kind": {
537
+ "name": "kind",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": true,
541
+ "autoincrement": false
542
+ },
543
+ "tmux_socket_name": {
544
+ "name": "tmux_socket_name",
545
+ "type": "text",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false
549
+ },
550
+ "managed_wrapper_path": {
551
+ "name": "managed_wrapper_path",
552
+ "type": "text",
553
+ "primaryKey": false,
554
+ "notNull": false,
555
+ "autoincrement": false
556
+ },
557
+ "pr_state": {
558
+ "name": "pr_state",
559
+ "type": "text",
560
+ "primaryKey": false,
561
+ "notNull": true,
562
+ "autoincrement": false,
563
+ "default": "'unknown'"
564
+ },
565
+ "pr_number": {
566
+ "name": "pr_number",
567
+ "type": "integer",
568
+ "primaryKey": false,
569
+ "notNull": false,
570
+ "autoincrement": false
571
+ },
572
+ "pr_url": {
573
+ "name": "pr_url",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": false,
577
+ "autoincrement": false
578
+ },
579
+ "pr_base_branch": {
580
+ "name": "pr_base_branch",
581
+ "type": "text",
582
+ "primaryKey": false,
583
+ "notNull": false,
584
+ "autoincrement": false
585
+ },
586
+ "pr_head_branch": {
587
+ "name": "pr_head_branch",
588
+ "type": "text",
589
+ "primaryKey": false,
590
+ "notNull": false,
591
+ "autoincrement": false
592
+ },
593
+ "pr_merged_at": {
594
+ "name": "pr_merged_at",
595
+ "type": "text",
596
+ "primaryKey": false,
597
+ "notNull": false,
598
+ "autoincrement": false
599
+ },
600
+ "pr_refreshed_at": {
601
+ "name": "pr_refreshed_at",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false,
605
+ "autoincrement": false
606
+ },
607
+ "created_at": {
608
+ "name": "created_at",
609
+ "type": "text",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false
613
+ },
614
+ "updated_at": {
615
+ "name": "updated_at",
616
+ "type": "text",
617
+ "primaryKey": false,
618
+ "notNull": true,
619
+ "autoincrement": false
620
+ }
621
+ },
622
+ "indexes": {
623
+ "worktrees_path_unique": {
624
+ "name": "worktrees_path_unique",
625
+ "columns": ["path"],
626
+ "isUnique": true
627
+ },
628
+ "worktrees_tmux_socket_name_unique": {
629
+ "name": "worktrees_tmux_socket_name_unique",
630
+ "columns": ["tmux_socket_name"],
631
+ "isUnique": true
632
+ },
633
+ "worktrees_project_idx": {
634
+ "name": "worktrees_project_idx",
635
+ "columns": ["project_id"],
636
+ "isUnique": false
637
+ },
638
+ "worktrees_git_key_idx": {
639
+ "name": "worktrees_git_key_idx",
640
+ "columns": ["project_id", "git_worktree_key"],
641
+ "isUnique": true,
642
+ "where": "\"worktrees\".\"git_worktree_key\" IS NOT NULL"
643
+ }
644
+ },
645
+ "foreignKeys": {
646
+ "worktrees_project_id_projects_id_fk": {
647
+ "name": "worktrees_project_id_projects_id_fk",
648
+ "tableFrom": "worktrees",
649
+ "tableTo": "projects",
650
+ "columnsFrom": ["project_id"],
651
+ "columnsTo": ["id"],
652
+ "onDelete": "cascade",
653
+ "onUpdate": "no action"
654
+ }
655
+ },
656
+ "compositePrimaryKeys": {},
657
+ "uniqueConstraints": {},
658
+ "checkConstraints": {
659
+ "worktrees_detached_check": {
660
+ "name": "worktrees_detached_check",
661
+ "value": "\"worktrees\".\"detached\" IN (0,1)"
662
+ },
663
+ "worktrees_locked_check": {
664
+ "name": "worktrees_locked_check",
665
+ "value": "\"worktrees\".\"locked\" IN (0,1)"
666
+ },
667
+ "worktrees_prunable_check": {
668
+ "name": "worktrees_prunable_check",
669
+ "value": "\"worktrees\".\"prunable\" IN (0,1)"
670
+ },
671
+ "worktrees_kind_check": {
672
+ "name": "worktrees_kind_check",
673
+ "value": "\"worktrees\".\"kind\" IN ('main','linked')"
674
+ }
675
+ }
676
+ }
677
+ },
678
+ "views": {},
679
+ "enums": {},
680
+ "_meta": {
681
+ "schemas": {},
682
+ "tables": {},
683
+ "columns": {}
684
+ },
685
+ "internal": {
686
+ "indexes": {
687
+ "projects_recent_idx": {
688
+ "columns": {
689
+ "\"last_opened_at\" desc": {
690
+ "isExpression": true
691
+ }
692
+ }
693
+ }
694
+ }
695
+ }
696
+ }