@treeport/treeport 0.6.1 → 0.7.0

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.
@@ -10,8 +10,8 @@
10
10
  <link rel="icon" href="/favicon.svg" />
11
11
  <link rel="manifest" href="/manifest.webmanifest" />
12
12
  <title>Treeport</title>
13
- <script type="module" crossorigin src="/assets/index-2LLiNn3-.js"></script>
14
- <link rel="stylesheet" crossorigin href="/assets/index-DmDs47YU.css">
13
+ <script type="module" crossorigin src="/assets/index-C5cx0N4G.js"></script>
14
+ <link rel="stylesheet" crossorigin href="/assets/index-BWYDUD7N.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -0,0 +1,41 @@
1
+ CREATE TABLE `__new_worktrees` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `project_id` text NOT NULL,
4
+ `path` text NOT NULL,
5
+ `git_worktree_key` text,
6
+ `head` text DEFAULT '' NOT NULL,
7
+ `branch` text,
8
+ `detached` integer DEFAULT 0 NOT NULL,
9
+ `locked` integer DEFAULT 0 NOT NULL,
10
+ `lock_reason` text,
11
+ `prunable` integer DEFAULT 0 NOT NULL,
12
+ `kind` text NOT NULL,
13
+ `managed_wrapper_path` text,
14
+ `tree_context_json` text DEFAULT '{}' NOT NULL,
15
+ `pr_state` text DEFAULT 'unknown' NOT NULL,
16
+ `pr_number` integer,
17
+ `pr_url` text,
18
+ `pr_base_branch` text,
19
+ `pr_head_branch` text,
20
+ `pr_merged_at` text,
21
+ `pr_refreshed_at` text,
22
+ `created_at` text NOT NULL,
23
+ `updated_at` text NOT NULL,
24
+ FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade,
25
+ CONSTRAINT "worktrees_detached_check" CHECK("__new_worktrees"."detached" IN (0,1)),
26
+ CONSTRAINT "worktrees_locked_check" CHECK("__new_worktrees"."locked" IN (0,1)),
27
+ CONSTRAINT "worktrees_prunable_check" CHECK("__new_worktrees"."prunable" IN (0,1)),
28
+ CONSTRAINT "worktrees_kind_check" CHECK("__new_worktrees"."kind" IN ('main','linked','folder'))
29
+ );
30
+ --> statement-breakpoint
31
+ INSERT INTO `__new_worktrees`("id", "project_id", "path", "git_worktree_key", "head", "branch", "detached", "locked", "lock_reason", "prunable", "kind", "managed_wrapper_path", "tree_context_json", "pr_state", "pr_number", "pr_url", "pr_base_branch", "pr_head_branch", "pr_merged_at", "pr_refreshed_at", "created_at", "updated_at") SELECT "id", "project_id", "path", "git_worktree_key", "head", "branch", "detached", "locked", "lock_reason", "prunable", "kind", "managed_wrapper_path", "tree_context_json", "pr_state", "pr_number", "pr_url", "pr_base_branch", "pr_head_branch", "pr_merged_at", "pr_refreshed_at", "created_at", "updated_at" FROM `worktrees`;
32
+ --> statement-breakpoint
33
+ DROP TABLE `worktrees`;
34
+ --> statement-breakpoint
35
+ ALTER TABLE `__new_worktrees` RENAME TO `worktrees`;
36
+ --> statement-breakpoint
37
+ CREATE UNIQUE INDEX `worktrees_path_unique` ON `worktrees` (`path`);
38
+ --> statement-breakpoint
39
+ CREATE INDEX `worktrees_project_idx` ON `worktrees` (`project_id`);
40
+ --> statement-breakpoint
41
+ CREATE UNIQUE INDEX `worktrees_git_key_idx` ON `worktrees` (`project_id`,`git_worktree_key`) WHERE "worktrees"."git_worktree_key" IS NOT NULL;
@@ -0,0 +1,13 @@
1
+ CREATE TABLE `workspace_item_orders` (
2
+ `worktree_id` text NOT NULL,
3
+ `surface` text NOT NULL,
4
+ `item_id` text NOT NULL,
5
+ `position` integer NOT NULL,
6
+ FOREIGN KEY (`worktree_id`) REFERENCES `worktrees`(`id`) ON UPDATE no action ON DELETE cascade,
7
+ CONSTRAINT "workspace_item_orders_surface_check" CHECK("workspace_item_orders"."surface" IN ('terminal','tool')),
8
+ CONSTRAINT "workspace_item_orders_position_check" CHECK("workspace_item_orders"."position" >= 0)
9
+ );
10
+ --> statement-breakpoint
11
+ CREATE UNIQUE INDEX `workspace_item_orders_item_idx` ON `workspace_item_orders` (`surface`,`item_id`);
12
+ --> statement-breakpoint
13
+ CREATE INDEX `workspace_item_orders_worktree_idx` ON `workspace_item_orders` (`worktree_id`,`surface`,`position`);