@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,711 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7098f0b3-cc85-47fa-83f3-f8346f5b7025",
5
+ "prevId": "7adcd561-4aff-46d1-9646-3a1168313096",
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
+ "input_json": {
423
+ "name": "input_json",
424
+ "type": "text",
425
+ "primaryKey": false,
426
+ "notNull": true,
427
+ "autoincrement": false,
428
+ "default": "'null'"
429
+ },
430
+ "launch_cwd": {
431
+ "name": "launch_cwd",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": false,
435
+ "autoincrement": false
436
+ },
437
+ "created_at": {
438
+ "name": "created_at",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": true,
442
+ "autoincrement": false
443
+ },
444
+ "updated_at": {
445
+ "name": "updated_at",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": true,
449
+ "autoincrement": false
450
+ }
451
+ },
452
+ "indexes": {
453
+ "web_panels_worktree_order_idx": {
454
+ "name": "web_panels_worktree_order_idx",
455
+ "columns": ["worktree_id", "created_at", "id"],
456
+ "isUnique": false
457
+ }
458
+ },
459
+ "foreignKeys": {
460
+ "web_panels_worktree_id_worktrees_id_fk": {
461
+ "name": "web_panels_worktree_id_worktrees_id_fk",
462
+ "tableFrom": "web_panels",
463
+ "tableTo": "worktrees",
464
+ "columnsFrom": ["worktree_id"],
465
+ "columnsTo": ["id"],
466
+ "onDelete": "cascade",
467
+ "onUpdate": "no action"
468
+ }
469
+ },
470
+ "compositePrimaryKeys": {},
471
+ "uniqueConstraints": {},
472
+ "checkConstraints": {}
473
+ },
474
+ "worktrees": {
475
+ "name": "worktrees",
476
+ "columns": {
477
+ "id": {
478
+ "name": "id",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true,
482
+ "autoincrement": false
483
+ },
484
+ "project_id": {
485
+ "name": "project_id",
486
+ "type": "text",
487
+ "primaryKey": false,
488
+ "notNull": true,
489
+ "autoincrement": false
490
+ },
491
+ "path": {
492
+ "name": "path",
493
+ "type": "text",
494
+ "primaryKey": false,
495
+ "notNull": true,
496
+ "autoincrement": false
497
+ },
498
+ "git_worktree_key": {
499
+ "name": "git_worktree_key",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": false,
503
+ "autoincrement": false
504
+ },
505
+ "head": {
506
+ "name": "head",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true,
510
+ "autoincrement": false,
511
+ "default": "''"
512
+ },
513
+ "branch": {
514
+ "name": "branch",
515
+ "type": "text",
516
+ "primaryKey": false,
517
+ "notNull": false,
518
+ "autoincrement": false
519
+ },
520
+ "detached": {
521
+ "name": "detached",
522
+ "type": "integer",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false,
526
+ "default": 0
527
+ },
528
+ "locked": {
529
+ "name": "locked",
530
+ "type": "integer",
531
+ "primaryKey": false,
532
+ "notNull": true,
533
+ "autoincrement": false,
534
+ "default": 0
535
+ },
536
+ "lock_reason": {
537
+ "name": "lock_reason",
538
+ "type": "text",
539
+ "primaryKey": false,
540
+ "notNull": false,
541
+ "autoincrement": false
542
+ },
543
+ "prunable": {
544
+ "name": "prunable",
545
+ "type": "integer",
546
+ "primaryKey": false,
547
+ "notNull": true,
548
+ "autoincrement": false,
549
+ "default": 0
550
+ },
551
+ "kind": {
552
+ "name": "kind",
553
+ "type": "text",
554
+ "primaryKey": false,
555
+ "notNull": true,
556
+ "autoincrement": false
557
+ },
558
+ "tmux_socket_name": {
559
+ "name": "tmux_socket_name",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "autoincrement": false
564
+ },
565
+ "managed_wrapper_path": {
566
+ "name": "managed_wrapper_path",
567
+ "type": "text",
568
+ "primaryKey": false,
569
+ "notNull": false,
570
+ "autoincrement": false
571
+ },
572
+ "pr_state": {
573
+ "name": "pr_state",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": true,
577
+ "autoincrement": false,
578
+ "default": "'unknown'"
579
+ },
580
+ "pr_number": {
581
+ "name": "pr_number",
582
+ "type": "integer",
583
+ "primaryKey": false,
584
+ "notNull": false,
585
+ "autoincrement": false
586
+ },
587
+ "pr_url": {
588
+ "name": "pr_url",
589
+ "type": "text",
590
+ "primaryKey": false,
591
+ "notNull": false,
592
+ "autoincrement": false
593
+ },
594
+ "pr_base_branch": {
595
+ "name": "pr_base_branch",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": false,
599
+ "autoincrement": false
600
+ },
601
+ "pr_head_branch": {
602
+ "name": "pr_head_branch",
603
+ "type": "text",
604
+ "primaryKey": false,
605
+ "notNull": false,
606
+ "autoincrement": false
607
+ },
608
+ "pr_merged_at": {
609
+ "name": "pr_merged_at",
610
+ "type": "text",
611
+ "primaryKey": false,
612
+ "notNull": false,
613
+ "autoincrement": false
614
+ },
615
+ "pr_refreshed_at": {
616
+ "name": "pr_refreshed_at",
617
+ "type": "text",
618
+ "primaryKey": false,
619
+ "notNull": false,
620
+ "autoincrement": false
621
+ },
622
+ "created_at": {
623
+ "name": "created_at",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": true,
627
+ "autoincrement": false
628
+ },
629
+ "updated_at": {
630
+ "name": "updated_at",
631
+ "type": "text",
632
+ "primaryKey": false,
633
+ "notNull": true,
634
+ "autoincrement": false
635
+ }
636
+ },
637
+ "indexes": {
638
+ "worktrees_path_unique": {
639
+ "name": "worktrees_path_unique",
640
+ "columns": ["path"],
641
+ "isUnique": true
642
+ },
643
+ "worktrees_tmux_socket_name_unique": {
644
+ "name": "worktrees_tmux_socket_name_unique",
645
+ "columns": ["tmux_socket_name"],
646
+ "isUnique": true
647
+ },
648
+ "worktrees_project_idx": {
649
+ "name": "worktrees_project_idx",
650
+ "columns": ["project_id"],
651
+ "isUnique": false
652
+ },
653
+ "worktrees_git_key_idx": {
654
+ "name": "worktrees_git_key_idx",
655
+ "columns": ["project_id", "git_worktree_key"],
656
+ "isUnique": true,
657
+ "where": "\"worktrees\".\"git_worktree_key\" IS NOT NULL"
658
+ }
659
+ },
660
+ "foreignKeys": {
661
+ "worktrees_project_id_projects_id_fk": {
662
+ "name": "worktrees_project_id_projects_id_fk",
663
+ "tableFrom": "worktrees",
664
+ "tableTo": "projects",
665
+ "columnsFrom": ["project_id"],
666
+ "columnsTo": ["id"],
667
+ "onDelete": "cascade",
668
+ "onUpdate": "no action"
669
+ }
670
+ },
671
+ "compositePrimaryKeys": {},
672
+ "uniqueConstraints": {},
673
+ "checkConstraints": {
674
+ "worktrees_detached_check": {
675
+ "name": "worktrees_detached_check",
676
+ "value": "\"worktrees\".\"detached\" IN (0,1)"
677
+ },
678
+ "worktrees_locked_check": {
679
+ "name": "worktrees_locked_check",
680
+ "value": "\"worktrees\".\"locked\" IN (0,1)"
681
+ },
682
+ "worktrees_prunable_check": {
683
+ "name": "worktrees_prunable_check",
684
+ "value": "\"worktrees\".\"prunable\" IN (0,1)"
685
+ },
686
+ "worktrees_kind_check": {
687
+ "name": "worktrees_kind_check",
688
+ "value": "\"worktrees\".\"kind\" IN ('main','linked')"
689
+ }
690
+ }
691
+ }
692
+ },
693
+ "views": {},
694
+ "enums": {},
695
+ "_meta": {
696
+ "schemas": {},
697
+ "tables": {},
698
+ "columns": {}
699
+ },
700
+ "internal": {
701
+ "indexes": {
702
+ "projects_recent_idx": {
703
+ "columns": {
704
+ "\"last_opened_at\" desc": {
705
+ "isExpression": true
706
+ }
707
+ }
708
+ }
709
+ }
710
+ }
711
+ }