@pstdio/pocketcoder-cli 0.5.0 → 0.6.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.
- package/README.md +11 -0
- package/dist/drizzle/20260730103433_initial/migration.sql +109 -0
- package/dist/drizzle/20260730103433_initial/snapshot.json +1360 -0
- package/dist/drizzle/20260730113243_regular_pretty_boy/migration.sql +99 -0
- package/dist/drizzle/20260730113243_regular_pretty_boy/snapshot.json +2614 -0
- package/dist/drizzle/20260730132750_workspace-change-diagnostics/migration.sql +5 -0
- package/dist/drizzle/20260730132750_workspace-change-diagnostics/snapshot.json +2679 -0
- package/dist/drizzle/20260803081501_warm-workspace-pool/migration.sql +25 -0
- package/dist/drizzle/20260803081501_warm-workspace-pool/snapshot.json +3033 -0
- package/dist/drizzle/20260803092834_durable-conversations/migration.sql +23 -0
- package/dist/drizzle/20260803092834_durable-conversations/snapshot.json +3281 -0
- package/dist/drizzle/20260804093525_petite_morlun/migration.sql +39 -0
- package/dist/drizzle/20260804093525_petite_morlun/snapshot.json +3670 -0
- package/dist/drizzle/20260805123328_sloppy_brother_voodoo/migration.sql +16 -0
- package/dist/drizzle/20260805123328_sloppy_brother_voodoo/snapshot.json +3879 -0
- package/dist/index.js +33042 -32706
- package/package.json +51 -51
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
CREATE TABLE "workspace_terminal_sessions" (
|
|
2
|
+
"session_id" uuid PRIMARY KEY,
|
|
3
|
+
"workspace_id" uuid NOT NULL,
|
|
4
|
+
"key_id" uuid NOT NULL,
|
|
5
|
+
"opened_at" timestamp with time zone NOT NULL,
|
|
6
|
+
"closed_at" timestamp with time zone,
|
|
7
|
+
"close_reason" text,
|
|
8
|
+
"exit_code" integer,
|
|
9
|
+
"bytes_in" bigint DEFAULT 0 NOT NULL,
|
|
10
|
+
"bytes_out" bigint DEFAULT 0 NOT NULL,
|
|
11
|
+
CONSTRAINT "workspace_terminal_sessions_close_reason_check" CHECK ("close_reason" IS NULL OR "close_reason" IN ('exit', 'idle', 'checkpoint', 'workspace_ended', 'agent_detached', 'client_closed'))
|
|
12
|
+
);
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
CREATE INDEX "workspace_terminal_sessions_page" ON "workspace_terminal_sessions" ("workspace_id","opened_at","session_id");--> statement-breakpoint
|
|
15
|
+
ALTER TABLE "workspace_terminal_sessions" ADD CONSTRAINT "workspace_terminal_sessions_workspace_id_workspaces_id_fkey" FOREIGN KEY ("workspace_id") REFERENCES "workspaces"("id") ON DELETE CASCADE;--> statement-breakpoint
|
|
16
|
+
ALTER TABLE "workspace_terminal_sessions" ADD CONSTRAINT "workspace_terminal_sessions_key_id_machine_keys_id_fkey" FOREIGN KEY ("key_id") REFERENCES "machine_keys"("id");
|