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