@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,647 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "aa9065e1-f112-4cb7-9a3c-36e4456baa96",
5
+ "prevId": "48d2f60d-5732-47d5-a613-62175977c22c",
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_panels": {
325
+ "name": "web_panels",
326
+ "columns": {
327
+ "id": {
328
+ "name": "id",
329
+ "type": "text",
330
+ "primaryKey": true,
331
+ "notNull": true,
332
+ "autoincrement": false
333
+ },
334
+ "worktree_id": {
335
+ "name": "worktree_id",
336
+ "type": "text",
337
+ "primaryKey": false,
338
+ "notNull": true,
339
+ "autoincrement": false
340
+ },
341
+ "definition_id": {
342
+ "name": "definition_id",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true,
346
+ "autoincrement": false
347
+ },
348
+ "title": {
349
+ "name": "title",
350
+ "type": "text",
351
+ "primaryKey": false,
352
+ "notNull": true,
353
+ "autoincrement": false
354
+ },
355
+ "created_at": {
356
+ "name": "created_at",
357
+ "type": "text",
358
+ "primaryKey": false,
359
+ "notNull": true,
360
+ "autoincrement": false
361
+ },
362
+ "updated_at": {
363
+ "name": "updated_at",
364
+ "type": "text",
365
+ "primaryKey": false,
366
+ "notNull": true,
367
+ "autoincrement": false
368
+ }
369
+ },
370
+ "indexes": {
371
+ "web_panels_worktree_order_idx": {
372
+ "name": "web_panels_worktree_order_idx",
373
+ "columns": ["worktree_id", "created_at", "id"],
374
+ "isUnique": false
375
+ }
376
+ },
377
+ "foreignKeys": {
378
+ "web_panels_worktree_id_worktrees_id_fk": {
379
+ "name": "web_panels_worktree_id_worktrees_id_fk",
380
+ "tableFrom": "web_panels",
381
+ "tableTo": "worktrees",
382
+ "columnsFrom": ["worktree_id"],
383
+ "columnsTo": ["id"],
384
+ "onDelete": "cascade",
385
+ "onUpdate": "no action"
386
+ }
387
+ },
388
+ "compositePrimaryKeys": {},
389
+ "uniqueConstraints": {},
390
+ "checkConstraints": {}
391
+ },
392
+ "worktrees": {
393
+ "name": "worktrees",
394
+ "columns": {
395
+ "id": {
396
+ "name": "id",
397
+ "type": "text",
398
+ "primaryKey": true,
399
+ "notNull": true,
400
+ "autoincrement": false
401
+ },
402
+ "project_id": {
403
+ "name": "project_id",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "path": {
410
+ "name": "path",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "git_worktree_key": {
417
+ "name": "git_worktree_key",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "head": {
424
+ "name": "head",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "autoincrement": false,
429
+ "default": "''"
430
+ },
431
+ "branch": {
432
+ "name": "branch",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false,
436
+ "autoincrement": false
437
+ },
438
+ "detached": {
439
+ "name": "detached",
440
+ "type": "integer",
441
+ "primaryKey": false,
442
+ "notNull": true,
443
+ "autoincrement": false,
444
+ "default": 0
445
+ },
446
+ "locked": {
447
+ "name": "locked",
448
+ "type": "integer",
449
+ "primaryKey": false,
450
+ "notNull": true,
451
+ "autoincrement": false,
452
+ "default": 0
453
+ },
454
+ "lock_reason": {
455
+ "name": "lock_reason",
456
+ "type": "text",
457
+ "primaryKey": false,
458
+ "notNull": false,
459
+ "autoincrement": false
460
+ },
461
+ "prunable": {
462
+ "name": "prunable",
463
+ "type": "integer",
464
+ "primaryKey": false,
465
+ "notNull": true,
466
+ "autoincrement": false,
467
+ "default": 0
468
+ },
469
+ "kind": {
470
+ "name": "kind",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "tmux_socket_name": {
477
+ "name": "tmux_socket_name",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false
482
+ },
483
+ "status": {
484
+ "name": "status",
485
+ "type": "text",
486
+ "primaryKey": false,
487
+ "notNull": true,
488
+ "autoincrement": false
489
+ },
490
+ "cleanup_error": {
491
+ "name": "cleanup_error",
492
+ "type": "text",
493
+ "primaryKey": false,
494
+ "notNull": false,
495
+ "autoincrement": false
496
+ },
497
+ "managed_wrapper_path": {
498
+ "name": "managed_wrapper_path",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": false,
502
+ "autoincrement": false
503
+ },
504
+ "pr_state": {
505
+ "name": "pr_state",
506
+ "type": "text",
507
+ "primaryKey": false,
508
+ "notNull": true,
509
+ "autoincrement": false,
510
+ "default": "'unknown'"
511
+ },
512
+ "pr_number": {
513
+ "name": "pr_number",
514
+ "type": "integer",
515
+ "primaryKey": false,
516
+ "notNull": false,
517
+ "autoincrement": false
518
+ },
519
+ "pr_url": {
520
+ "name": "pr_url",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": false,
524
+ "autoincrement": false
525
+ },
526
+ "pr_base_branch": {
527
+ "name": "pr_base_branch",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ },
533
+ "pr_head_branch": {
534
+ "name": "pr_head_branch",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": false,
538
+ "autoincrement": false
539
+ },
540
+ "pr_merged_at": {
541
+ "name": "pr_merged_at",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false,
545
+ "autoincrement": false
546
+ },
547
+ "pr_refreshed_at": {
548
+ "name": "pr_refreshed_at",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false,
552
+ "autoincrement": false
553
+ },
554
+ "created_at": {
555
+ "name": "created_at",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "autoincrement": false
560
+ },
561
+ "updated_at": {
562
+ "name": "updated_at",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ }
568
+ },
569
+ "indexes": {
570
+ "worktrees_path_unique": {
571
+ "name": "worktrees_path_unique",
572
+ "columns": ["path"],
573
+ "isUnique": true
574
+ },
575
+ "worktrees_tmux_socket_name_unique": {
576
+ "name": "worktrees_tmux_socket_name_unique",
577
+ "columns": ["tmux_socket_name"],
578
+ "isUnique": true
579
+ },
580
+ "worktrees_project_idx": {
581
+ "name": "worktrees_project_idx",
582
+ "columns": ["project_id"],
583
+ "isUnique": false
584
+ },
585
+ "worktrees_git_key_idx": {
586
+ "name": "worktrees_git_key_idx",
587
+ "columns": ["project_id", "git_worktree_key"],
588
+ "isUnique": true,
589
+ "where": "\"worktrees\".\"git_worktree_key\" IS NOT NULL"
590
+ }
591
+ },
592
+ "foreignKeys": {
593
+ "worktrees_project_id_projects_id_fk": {
594
+ "name": "worktrees_project_id_projects_id_fk",
595
+ "tableFrom": "worktrees",
596
+ "tableTo": "projects",
597
+ "columnsFrom": ["project_id"],
598
+ "columnsTo": ["id"],
599
+ "onDelete": "cascade",
600
+ "onUpdate": "no action"
601
+ }
602
+ },
603
+ "compositePrimaryKeys": {},
604
+ "uniqueConstraints": {},
605
+ "checkConstraints": {
606
+ "worktrees_detached_check": {
607
+ "name": "worktrees_detached_check",
608
+ "value": "\"worktrees\".\"detached\" IN (0,1)"
609
+ },
610
+ "worktrees_locked_check": {
611
+ "name": "worktrees_locked_check",
612
+ "value": "\"worktrees\".\"locked\" IN (0,1)"
613
+ },
614
+ "worktrees_prunable_check": {
615
+ "name": "worktrees_prunable_check",
616
+ "value": "\"worktrees\".\"prunable\" IN (0,1)"
617
+ },
618
+ "worktrees_kind_check": {
619
+ "name": "worktrees_kind_check",
620
+ "value": "\"worktrees\".\"kind\" IN ('main','linked')"
621
+ },
622
+ "worktrees_status_check": {
623
+ "name": "worktrees_status_check",
624
+ "value": "\"worktrees\".\"status\" IN ('active','cleaning','cleanup_failed','removed')"
625
+ }
626
+ }
627
+ }
628
+ },
629
+ "views": {},
630
+ "enums": {},
631
+ "_meta": {
632
+ "schemas": {},
633
+ "tables": {},
634
+ "columns": {}
635
+ },
636
+ "internal": {
637
+ "indexes": {
638
+ "projects_recent_idx": {
639
+ "columns": {
640
+ "\"last_opened_at\" desc": {
641
+ "isExpression": true
642
+ }
643
+ }
644
+ }
645
+ }
646
+ }
647
+ }