@metis_agent/metis-tui 1.0.0-rc.1

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.
Files changed (57) hide show
  1. package/bin/metis +56 -0
  2. package/dist/LICENSE +21 -0
  3. package/dist/cli/cli/cmd/tui/photon_rs_bg-bq08arze.wasm +0 -0
  4. package/dist/cli/cli/cmd/tui/worker.js +3731 -0
  5. package/dist/cli/highlights-eq9cgrbb.scm +604 -0
  6. package/dist/cli/highlights-ghv9g403.scm +205 -0
  7. package/dist/cli/highlights-hk7bwhj4.scm +284 -0
  8. package/dist/cli/highlights-r812a2qc.scm +150 -0
  9. package/dist/cli/highlights-x6tmsnaa.scm +115 -0
  10. package/dist/cli/index.js +4464 -0
  11. package/dist/cli/injections-73j83es3.scm +27 -0
  12. package/dist/cli/parser.worker.js +1025 -0
  13. package/dist/cli/photon_rs_bg-bq08arze.wasm +0 -0
  14. package/dist/cli/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  15. package/dist/cli/tree-sitter-markdown-411r6y9b.wasm +0 -0
  16. package/dist/cli/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  17. package/dist/cli/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  18. package/dist/cli/tree-sitter-zig-e78zbjpm.wasm +0 -0
  19. package/migration/20260127222353_familiar_lady_ursula/migration.sql +90 -0
  20. package/migration/20260127222353_familiar_lady_ursula/snapshot.json +796 -0
  21. package/migration/20260211171708_add_project_commands/migration.sql +1 -0
  22. package/migration/20260211171708_add_project_commands/snapshot.json +806 -0
  23. package/migration/20260213144116_wakeful_the_professor/migration.sql +11 -0
  24. package/migration/20260213144116_wakeful_the_professor/snapshot.json +897 -0
  25. package/migration/20260225215848_workspace/migration.sql +7 -0
  26. package/migration/20260225215848_workspace/snapshot.json +959 -0
  27. package/migration/20260227213759_add_session_workspace_id/migration.sql +2 -0
  28. package/migration/20260227213759_add_session_workspace_id/snapshot.json +983 -0
  29. package/migration/20260228203230_blue_harpoon/migration.sql +17 -0
  30. package/migration/20260228203230_blue_harpoon/snapshot.json +1102 -0
  31. package/migration/20260303231226_add_workspace_fields/migration.sql +5 -0
  32. package/migration/20260303231226_add_workspace_fields/snapshot.json +1013 -0
  33. package/migration/20260309230000_move_org_to_state/migration.sql +3 -0
  34. package/migration/20260309230000_move_org_to_state/snapshot.json +1156 -0
  35. package/migration/20260312043431_session_message_cursor/migration.sql +4 -0
  36. package/migration/20260312043431_session_message_cursor/snapshot.json +1168 -0
  37. package/migration/20260323234822_events/migration.sql +13 -0
  38. package/migration/20260323234822_events/snapshot.json +1271 -0
  39. package/migration/20260410174513_workspace-name/migration.sql +16 -0
  40. package/migration/20260410174513_workspace-name/snapshot.json +1271 -0
  41. package/migration/20260413175956_chief_energizer/migration.sql +13 -0
  42. package/migration/20260413175956_chief_energizer/snapshot.json +1399 -0
  43. package/migration/20260423070820_add_icon_url_override/migration.sql +2 -0
  44. package/migration/20260423070820_add_icon_url_override/snapshot.json +1409 -0
  45. package/migration/20260427172553_slow_nightmare/migration.sql +17 -0
  46. package/migration/20260427172553_slow_nightmare/snapshot.json +1409 -0
  47. package/migration/20260428004200_add_session_path/migration.sql +1 -0
  48. package/migration/20260428004200_add_session_path/snapshot.json +1419 -0
  49. package/migration/20260501142318_next_venus/migration.sql +2 -0
  50. package/migration/20260501142318_next_venus/snapshot.json +1439 -0
  51. package/migration/20260504145000_add_sync_owner/migration.sql +1 -0
  52. package/migration/20260504145000_add_sync_owner/snapshot.json +1449 -0
  53. package/migration/20260507164347_add_workspace_time/migration.sql +1 -0
  54. package/migration/20260507164347_add_workspace_time/snapshot.json +1459 -0
  55. package/migration/20260511000411_data_migration_state/migration.sql +4 -0
  56. package/migration/20260511000411_data_migration_state/snapshot.json +1490 -0
  57. package/package.json +168 -0
@@ -0,0 +1,90 @@
1
+ CREATE TABLE `project` (
2
+ `id` text PRIMARY KEY,
3
+ `worktree` text NOT NULL,
4
+ `vcs` text,
5
+ `name` text,
6
+ `icon_url` text,
7
+ `icon_color` text,
8
+ `time_created` integer NOT NULL,
9
+ `time_updated` integer NOT NULL,
10
+ `time_initialized` integer,
11
+ `sandboxes` text NOT NULL
12
+ );
13
+ --> statement-breakpoint
14
+ CREATE TABLE `message` (
15
+ `id` text PRIMARY KEY,
16
+ `session_id` text NOT NULL,
17
+ `time_created` integer NOT NULL,
18
+ `time_updated` integer NOT NULL,
19
+ `data` text NOT NULL,
20
+ CONSTRAINT `fk_message_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
21
+ );
22
+ --> statement-breakpoint
23
+ CREATE TABLE `part` (
24
+ `id` text PRIMARY KEY,
25
+ `message_id` text NOT NULL,
26
+ `session_id` text NOT NULL,
27
+ `time_created` integer NOT NULL,
28
+ `time_updated` integer NOT NULL,
29
+ `data` text NOT NULL,
30
+ CONSTRAINT `fk_part_message_id_message_id_fk` FOREIGN KEY (`message_id`) REFERENCES `message`(`id`) ON DELETE CASCADE
31
+ );
32
+ --> statement-breakpoint
33
+ CREATE TABLE `permission` (
34
+ `project_id` text PRIMARY KEY,
35
+ `time_created` integer NOT NULL,
36
+ `time_updated` integer NOT NULL,
37
+ `data` text NOT NULL,
38
+ CONSTRAINT `fk_permission_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE
39
+ );
40
+ --> statement-breakpoint
41
+ CREATE TABLE `session` (
42
+ `id` text PRIMARY KEY,
43
+ `project_id` text NOT NULL,
44
+ `parent_id` text,
45
+ `slug` text NOT NULL,
46
+ `directory` text NOT NULL,
47
+ `title` text NOT NULL,
48
+ `version` text NOT NULL,
49
+ `share_url` text,
50
+ `summary_additions` integer,
51
+ `summary_deletions` integer,
52
+ `summary_files` integer,
53
+ `summary_diffs` text,
54
+ `revert` text,
55
+ `permission` text,
56
+ `time_created` integer NOT NULL,
57
+ `time_updated` integer NOT NULL,
58
+ `time_compacting` integer,
59
+ `time_archived` integer,
60
+ CONSTRAINT `fk_session_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE
61
+ );
62
+ --> statement-breakpoint
63
+ CREATE TABLE `todo` (
64
+ `session_id` text NOT NULL,
65
+ `content` text NOT NULL,
66
+ `status` text NOT NULL,
67
+ `priority` text NOT NULL,
68
+ `position` integer NOT NULL,
69
+ `time_created` integer NOT NULL,
70
+ `time_updated` integer NOT NULL,
71
+ CONSTRAINT `todo_pk` PRIMARY KEY(`session_id`, `position`),
72
+ CONSTRAINT `fk_todo_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
73
+ );
74
+ --> statement-breakpoint
75
+ CREATE TABLE `session_share` (
76
+ `session_id` text PRIMARY KEY,
77
+ `id` text NOT NULL,
78
+ `secret` text NOT NULL,
79
+ `url` text NOT NULL,
80
+ `time_created` integer NOT NULL,
81
+ `time_updated` integer NOT NULL,
82
+ CONSTRAINT `fk_session_share_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE
83
+ );
84
+ --> statement-breakpoint
85
+ CREATE INDEX `message_session_idx` ON `message` (`session_id`);--> statement-breakpoint
86
+ CREATE INDEX `part_message_idx` ON `part` (`message_id`);--> statement-breakpoint
87
+ CREATE INDEX `part_session_idx` ON `part` (`session_id`);--> statement-breakpoint
88
+ CREATE INDEX `session_project_idx` ON `session` (`project_id`);--> statement-breakpoint
89
+ CREATE INDEX `session_parent_idx` ON `session` (`parent_id`);--> statement-breakpoint
90
+ CREATE INDEX `todo_session_idx` ON `todo` (`session_id`);