@vinihcrosa/lumem-os 0.1.0 → 0.2.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.
- package/README.md +19 -5
- package/bin/lumem.mjs +379 -166
- package/dist/server/main.mjs +1638 -483
- package/dist/web/assets/{codemirror-setup-Csmyc9rQ.js → codemirror-setup-qkhLO-HV.js} +1 -1
- package/dist/web/assets/index-BkIky5Mw.css +32 -0
- package/dist/web/assets/index-CKedNrvw.js +101 -0
- package/dist/web/index.html +2 -2
- package/drizzle/0012_modo_do_lumem.sql +55 -0
- package/drizzle/meta/0012_snapshot.json +1681 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/web/assets/index-BlWx0v0O.js +0 -101
- package/dist/web/assets/index-jS7lSqBc.css +0 -32
package/dist/web/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Lumem-OS</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CKedNrvw.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BkIky5Mw.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
2
|
+
CREATE TABLE `__new_session` (
|
|
3
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
4
|
+
`kind` text NOT NULL,
|
|
5
|
+
`script_name` text,
|
|
6
|
+
`agent_config_id` text,
|
|
7
|
+
`scope_type` text NOT NULL,
|
|
8
|
+
`scope_id` text NOT NULL,
|
|
9
|
+
`cwd` text NOT NULL,
|
|
10
|
+
`command` text NOT NULL,
|
|
11
|
+
`state` text DEFAULT 'running' NOT NULL,
|
|
12
|
+
`exit_code` integer,
|
|
13
|
+
`transport` text DEFAULT 'pty' NOT NULL,
|
|
14
|
+
`acp_session_id` text,
|
|
15
|
+
`mode` text,
|
|
16
|
+
`model` text,
|
|
17
|
+
`lumem_mode` text DEFAULT 'ask' NOT NULL,
|
|
18
|
+
`resumed_from_id` text,
|
|
19
|
+
`created_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
20
|
+
`updated_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
21
|
+
FOREIGN KEY (`agent_config_id`) REFERENCES `agent_config`(`id`) ON UPDATE no action ON DELETE restrict,
|
|
22
|
+
CONSTRAINT "session_kind" CHECK("__new_session"."kind" IN ('shell', 'agent', 'script')),
|
|
23
|
+
CONSTRAINT "session_scope_type" CHECK("__new_session"."scope_type" IN ('project', 'worktree')),
|
|
24
|
+
CONSTRAINT "session_state" CHECK("__new_session"."state" IN ('running', 'exited')),
|
|
25
|
+
CONSTRAINT "session_agent_config" CHECK(("__new_session"."kind" = 'agent' AND "__new_session"."agent_config_id" IS NOT NULL)
|
|
26
|
+
OR ("__new_session"."kind" <> 'agent' AND "__new_session"."agent_config_id" IS NULL)),
|
|
27
|
+
CONSTRAINT "session_script_name" CHECK(("__new_session"."kind" = 'script' AND "__new_session"."script_name" IS NOT NULL
|
|
28
|
+
AND "__new_session"."script_name" IN ('setup', 'run', 'teardown', 'test'))
|
|
29
|
+
OR ("__new_session"."kind" <> 'script' AND "__new_session"."script_name" IS NULL)),
|
|
30
|
+
CONSTRAINT "session_exit_code" CHECK(("__new_session"."state" = 'running' AND "__new_session"."exit_code" IS NULL)
|
|
31
|
+
OR ("__new_session"."state" = 'exited')),
|
|
32
|
+
CONSTRAINT "session_transport" CHECK("__new_session"."transport" IN ('pty', 'acp')),
|
|
33
|
+
CONSTRAINT "session_shell_transport" CHECK("__new_session"."kind" = 'agent' OR "__new_session"."transport" = 'pty'),
|
|
34
|
+
CONSTRAINT "session_acp_id" CHECK(("__new_session"."transport" = 'acp' AND "__new_session"."acp_session_id" IS NOT NULL)
|
|
35
|
+
OR ("__new_session"."transport" = 'pty' AND "__new_session"."acp_session_id" IS NULL)),
|
|
36
|
+
CONSTRAINT "session_lumem_mode" CHECK("__new_session"."lumem_mode" IN ('ask', 'auto', 'free'))
|
|
37
|
+
);
|
|
38
|
+
--> statement-breakpoint
|
|
39
|
+
INSERT INTO `__new_session`("id", "kind", "script_name", "agent_config_id", "scope_type", "scope_id", "cwd", "command", "state", "exit_code", "transport", "acp_session_id", "mode", "model", "lumem_mode", "resumed_from_id", "created_at", "updated_at") SELECT "id", "kind", "script_name", "agent_config_id", "scope_type", "scope_id", "cwd", "command", "state", "exit_code", "transport", "acp_session_id", "mode", "model", 'ask', "resumed_from_id", "created_at", "updated_at" FROM `session`;--> statement-breakpoint
|
|
40
|
+
DROP TABLE `session`;--> statement-breakpoint
|
|
41
|
+
ALTER TABLE `__new_session` RENAME TO `session`;--> statement-breakpoint
|
|
42
|
+
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
43
|
+
CREATE TABLE `__new_workspace` (
|
|
44
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
45
|
+
`name` text NOT NULL,
|
|
46
|
+
`default_lumem_mode` text DEFAULT 'ask' NOT NULL,
|
|
47
|
+
`created_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
48
|
+
`updated_at` integer DEFAULT (unixepoch('subsec') * 1000) NOT NULL,
|
|
49
|
+
CONSTRAINT "workspace_default_lumem_mode" CHECK("__new_workspace"."default_lumem_mode" IN ('ask', 'auto'))
|
|
50
|
+
);
|
|
51
|
+
--> statement-breakpoint
|
|
52
|
+
INSERT INTO `__new_workspace`("id", "name", "default_lumem_mode", "created_at", "updated_at") SELECT "id", "name", 'ask', "created_at", "updated_at" FROM `workspace`;--> statement-breakpoint
|
|
53
|
+
DROP TABLE `workspace`;--> statement-breakpoint
|
|
54
|
+
ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint
|
|
55
|
+
CREATE UNIQUE INDEX `workspace_name_unique` ON `workspace` (`name`);
|