@treeport/treeport 0.1.0 → 0.2.2

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,775 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "05ca1b81-cda8-4fbd-94ec-1f533cac858d",
5
+ "prevId": "7098f0b3-cc85-47fa-83f3-f8346f5b7025",
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_bell_states": {
267
+ "name": "terminal_bell_states",
268
+ "columns": {
269
+ "terminal_id": {
270
+ "name": "terminal_id",
271
+ "type": "text",
272
+ "primaryKey": true,
273
+ "notNull": true,
274
+ "autoincrement": false
275
+ },
276
+ "worktree_id": {
277
+ "name": "worktree_id",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": true,
281
+ "autoincrement": false
282
+ },
283
+ "sequence": {
284
+ "name": "sequence",
285
+ "type": "integer",
286
+ "primaryKey": false,
287
+ "notNull": true,
288
+ "autoincrement": false
289
+ },
290
+ "occurred_at": {
291
+ "name": "occurred_at",
292
+ "type": "text",
293
+ "primaryKey": false,
294
+ "notNull": true,
295
+ "autoincrement": false
296
+ },
297
+ "unread": {
298
+ "name": "unread",
299
+ "type": "integer",
300
+ "primaryKey": false,
301
+ "notNull": true,
302
+ "autoincrement": false
303
+ }
304
+ },
305
+ "indexes": {},
306
+ "foreignKeys": {
307
+ "terminal_bell_states_worktree_id_worktrees_id_fk": {
308
+ "name": "terminal_bell_states_worktree_id_worktrees_id_fk",
309
+ "tableFrom": "terminal_bell_states",
310
+ "tableTo": "worktrees",
311
+ "columnsFrom": ["worktree_id"],
312
+ "columnsTo": ["id"],
313
+ "onDelete": "cascade",
314
+ "onUpdate": "no action"
315
+ }
316
+ },
317
+ "compositePrimaryKeys": {},
318
+ "uniqueConstraints": {},
319
+ "checkConstraints": {
320
+ "terminal_bell_states_sequence_check": {
321
+ "name": "terminal_bell_states_sequence_check",
322
+ "value": "\"terminal_bell_states\".\"sequence\" > 0"
323
+ },
324
+ "terminal_bell_states_unread_check": {
325
+ "name": "terminal_bell_states_unread_check",
326
+ "value": "\"terminal_bell_states\".\"unread\" IN (0,1)"
327
+ }
328
+ }
329
+ },
330
+ "terminal_presets": {
331
+ "name": "terminal_presets",
332
+ "columns": {
333
+ "id": {
334
+ "name": "id",
335
+ "type": "text",
336
+ "primaryKey": true,
337
+ "notNull": true,
338
+ "autoincrement": false
339
+ },
340
+ "name": {
341
+ "name": "name",
342
+ "type": "text",
343
+ "primaryKey": false,
344
+ "notNull": true,
345
+ "autoincrement": false
346
+ },
347
+ "executable": {
348
+ "name": "executable",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "autoincrement": false
353
+ },
354
+ "args_json": {
355
+ "name": "args_json",
356
+ "type": "text",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "autoincrement": false
360
+ },
361
+ "close_on_success": {
362
+ "name": "close_on_success",
363
+ "type": "integer",
364
+ "primaryKey": false,
365
+ "notNull": true,
366
+ "autoincrement": false,
367
+ "default": 0
368
+ },
369
+ "created_at": {
370
+ "name": "created_at",
371
+ "type": "text",
372
+ "primaryKey": false,
373
+ "notNull": true,
374
+ "autoincrement": false
375
+ },
376
+ "updated_at": {
377
+ "name": "updated_at",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "autoincrement": false
382
+ }
383
+ },
384
+ "indexes": {
385
+ "terminal_presets_order_idx": {
386
+ "name": "terminal_presets_order_idx",
387
+ "columns": ["created_at", "id"],
388
+ "isUnique": false
389
+ }
390
+ },
391
+ "foreignKeys": {},
392
+ "compositePrimaryKeys": {},
393
+ "uniqueConstraints": {},
394
+ "checkConstraints": {
395
+ "terminal_presets_close_on_success_check": {
396
+ "name": "terminal_presets_close_on_success_check",
397
+ "value": "\"terminal_presets\".\"close_on_success\" IN (0,1)"
398
+ }
399
+ }
400
+ },
401
+ "web_panel_storage": {
402
+ "name": "web_panel_storage",
403
+ "columns": {
404
+ "panel_id": {
405
+ "name": "panel_id",
406
+ "type": "text",
407
+ "primaryKey": false,
408
+ "notNull": true,
409
+ "autoincrement": false
410
+ },
411
+ "key": {
412
+ "name": "key",
413
+ "type": "text",
414
+ "primaryKey": false,
415
+ "notNull": true,
416
+ "autoincrement": false
417
+ },
418
+ "value_json": {
419
+ "name": "value_json",
420
+ "type": "text",
421
+ "primaryKey": false,
422
+ "notNull": true,
423
+ "autoincrement": false
424
+ },
425
+ "updated_at": {
426
+ "name": "updated_at",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true,
430
+ "autoincrement": false
431
+ }
432
+ },
433
+ "indexes": {
434
+ "web_panel_storage_panel_key_idx": {
435
+ "name": "web_panel_storage_panel_key_idx",
436
+ "columns": ["panel_id", "key"],
437
+ "isUnique": true
438
+ }
439
+ },
440
+ "foreignKeys": {
441
+ "web_panel_storage_panel_id_web_panels_id_fk": {
442
+ "name": "web_panel_storage_panel_id_web_panels_id_fk",
443
+ "tableFrom": "web_panel_storage",
444
+ "tableTo": "web_panels",
445
+ "columnsFrom": ["panel_id"],
446
+ "columnsTo": ["id"],
447
+ "onDelete": "cascade",
448
+ "onUpdate": "no action"
449
+ }
450
+ },
451
+ "compositePrimaryKeys": {},
452
+ "uniqueConstraints": {},
453
+ "checkConstraints": {}
454
+ },
455
+ "web_panels": {
456
+ "name": "web_panels",
457
+ "columns": {
458
+ "id": {
459
+ "name": "id",
460
+ "type": "text",
461
+ "primaryKey": true,
462
+ "notNull": true,
463
+ "autoincrement": false
464
+ },
465
+ "worktree_id": {
466
+ "name": "worktree_id",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": true,
470
+ "autoincrement": false
471
+ },
472
+ "definition_id": {
473
+ "name": "definition_id",
474
+ "type": "text",
475
+ "primaryKey": false,
476
+ "notNull": true,
477
+ "autoincrement": false
478
+ },
479
+ "title": {
480
+ "name": "title",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "autoincrement": false
485
+ },
486
+ "input_json": {
487
+ "name": "input_json",
488
+ "type": "text",
489
+ "primaryKey": false,
490
+ "notNull": true,
491
+ "autoincrement": false,
492
+ "default": "'null'"
493
+ },
494
+ "launch_cwd": {
495
+ "name": "launch_cwd",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": false,
499
+ "autoincrement": false
500
+ },
501
+ "created_at": {
502
+ "name": "created_at",
503
+ "type": "text",
504
+ "primaryKey": false,
505
+ "notNull": true,
506
+ "autoincrement": false
507
+ },
508
+ "updated_at": {
509
+ "name": "updated_at",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true,
513
+ "autoincrement": false
514
+ }
515
+ },
516
+ "indexes": {
517
+ "web_panels_worktree_order_idx": {
518
+ "name": "web_panels_worktree_order_idx",
519
+ "columns": ["worktree_id", "created_at", "id"],
520
+ "isUnique": false
521
+ }
522
+ },
523
+ "foreignKeys": {
524
+ "web_panels_worktree_id_worktrees_id_fk": {
525
+ "name": "web_panels_worktree_id_worktrees_id_fk",
526
+ "tableFrom": "web_panels",
527
+ "tableTo": "worktrees",
528
+ "columnsFrom": ["worktree_id"],
529
+ "columnsTo": ["id"],
530
+ "onDelete": "cascade",
531
+ "onUpdate": "no action"
532
+ }
533
+ },
534
+ "compositePrimaryKeys": {},
535
+ "uniqueConstraints": {},
536
+ "checkConstraints": {}
537
+ },
538
+ "worktrees": {
539
+ "name": "worktrees",
540
+ "columns": {
541
+ "id": {
542
+ "name": "id",
543
+ "type": "text",
544
+ "primaryKey": true,
545
+ "notNull": true,
546
+ "autoincrement": false
547
+ },
548
+ "project_id": {
549
+ "name": "project_id",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": true,
553
+ "autoincrement": false
554
+ },
555
+ "path": {
556
+ "name": "path",
557
+ "type": "text",
558
+ "primaryKey": false,
559
+ "notNull": true,
560
+ "autoincrement": false
561
+ },
562
+ "git_worktree_key": {
563
+ "name": "git_worktree_key",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": false,
567
+ "autoincrement": false
568
+ },
569
+ "head": {
570
+ "name": "head",
571
+ "type": "text",
572
+ "primaryKey": false,
573
+ "notNull": true,
574
+ "autoincrement": false,
575
+ "default": "''"
576
+ },
577
+ "branch": {
578
+ "name": "branch",
579
+ "type": "text",
580
+ "primaryKey": false,
581
+ "notNull": false,
582
+ "autoincrement": false
583
+ },
584
+ "detached": {
585
+ "name": "detached",
586
+ "type": "integer",
587
+ "primaryKey": false,
588
+ "notNull": true,
589
+ "autoincrement": false,
590
+ "default": 0
591
+ },
592
+ "locked": {
593
+ "name": "locked",
594
+ "type": "integer",
595
+ "primaryKey": false,
596
+ "notNull": true,
597
+ "autoincrement": false,
598
+ "default": 0
599
+ },
600
+ "lock_reason": {
601
+ "name": "lock_reason",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false,
605
+ "autoincrement": false
606
+ },
607
+ "prunable": {
608
+ "name": "prunable",
609
+ "type": "integer",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "autoincrement": false,
613
+ "default": 0
614
+ },
615
+ "kind": {
616
+ "name": "kind",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": true,
620
+ "autoincrement": false
621
+ },
622
+ "tmux_socket_name": {
623
+ "name": "tmux_socket_name",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false
628
+ },
629
+ "managed_wrapper_path": {
630
+ "name": "managed_wrapper_path",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": false,
634
+ "autoincrement": false
635
+ },
636
+ "pr_state": {
637
+ "name": "pr_state",
638
+ "type": "text",
639
+ "primaryKey": false,
640
+ "notNull": true,
641
+ "autoincrement": false,
642
+ "default": "'unknown'"
643
+ },
644
+ "pr_number": {
645
+ "name": "pr_number",
646
+ "type": "integer",
647
+ "primaryKey": false,
648
+ "notNull": false,
649
+ "autoincrement": false
650
+ },
651
+ "pr_url": {
652
+ "name": "pr_url",
653
+ "type": "text",
654
+ "primaryKey": false,
655
+ "notNull": false,
656
+ "autoincrement": false
657
+ },
658
+ "pr_base_branch": {
659
+ "name": "pr_base_branch",
660
+ "type": "text",
661
+ "primaryKey": false,
662
+ "notNull": false,
663
+ "autoincrement": false
664
+ },
665
+ "pr_head_branch": {
666
+ "name": "pr_head_branch",
667
+ "type": "text",
668
+ "primaryKey": false,
669
+ "notNull": false,
670
+ "autoincrement": false
671
+ },
672
+ "pr_merged_at": {
673
+ "name": "pr_merged_at",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": false,
677
+ "autoincrement": false
678
+ },
679
+ "pr_refreshed_at": {
680
+ "name": "pr_refreshed_at",
681
+ "type": "text",
682
+ "primaryKey": false,
683
+ "notNull": false,
684
+ "autoincrement": false
685
+ },
686
+ "created_at": {
687
+ "name": "created_at",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true,
691
+ "autoincrement": false
692
+ },
693
+ "updated_at": {
694
+ "name": "updated_at",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true,
698
+ "autoincrement": false
699
+ }
700
+ },
701
+ "indexes": {
702
+ "worktrees_path_unique": {
703
+ "name": "worktrees_path_unique",
704
+ "columns": ["path"],
705
+ "isUnique": true
706
+ },
707
+ "worktrees_tmux_socket_name_unique": {
708
+ "name": "worktrees_tmux_socket_name_unique",
709
+ "columns": ["tmux_socket_name"],
710
+ "isUnique": true
711
+ },
712
+ "worktrees_project_idx": {
713
+ "name": "worktrees_project_idx",
714
+ "columns": ["project_id"],
715
+ "isUnique": false
716
+ },
717
+ "worktrees_git_key_idx": {
718
+ "name": "worktrees_git_key_idx",
719
+ "columns": ["project_id", "git_worktree_key"],
720
+ "isUnique": true,
721
+ "where": "\"worktrees\".\"git_worktree_key\" IS NOT NULL"
722
+ }
723
+ },
724
+ "foreignKeys": {
725
+ "worktrees_project_id_projects_id_fk": {
726
+ "name": "worktrees_project_id_projects_id_fk",
727
+ "tableFrom": "worktrees",
728
+ "tableTo": "projects",
729
+ "columnsFrom": ["project_id"],
730
+ "columnsTo": ["id"],
731
+ "onDelete": "cascade",
732
+ "onUpdate": "no action"
733
+ }
734
+ },
735
+ "compositePrimaryKeys": {},
736
+ "uniqueConstraints": {},
737
+ "checkConstraints": {
738
+ "worktrees_detached_check": {
739
+ "name": "worktrees_detached_check",
740
+ "value": "\"worktrees\".\"detached\" IN (0,1)"
741
+ },
742
+ "worktrees_locked_check": {
743
+ "name": "worktrees_locked_check",
744
+ "value": "\"worktrees\".\"locked\" IN (0,1)"
745
+ },
746
+ "worktrees_prunable_check": {
747
+ "name": "worktrees_prunable_check",
748
+ "value": "\"worktrees\".\"prunable\" IN (0,1)"
749
+ },
750
+ "worktrees_kind_check": {
751
+ "name": "worktrees_kind_check",
752
+ "value": "\"worktrees\".\"kind\" IN ('main','linked')"
753
+ }
754
+ }
755
+ }
756
+ },
757
+ "views": {},
758
+ "enums": {},
759
+ "_meta": {
760
+ "schemas": {},
761
+ "tables": {},
762
+ "columns": {}
763
+ },
764
+ "internal": {
765
+ "indexes": {
766
+ "projects_recent_idx": {
767
+ "columns": {
768
+ "\"last_opened_at\" desc": {
769
+ "isExpression": true
770
+ }
771
+ }
772
+ }
773
+ }
774
+ }
775
+ }