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