@spencer-kit/coder-studio 0.3.5 → 0.3.6
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/CHANGELOG.md +6 -0
- package/dist/esm/bin.mjs +1311 -306
- package/dist/esm/bin.mjs.map +4 -4
- package/dist/esm/migrations/001_init.sql +15 -1
- package/dist/esm/server-runner.mjs +1348 -390
- package/dist/esm/server-runner.mjs.map +4 -4
- package/dist/web/assets/index-C4xnb_C5.js +111 -0
- package/dist/web/assets/index-C4xnb_C5.js.map +1 -0
- package/dist/web/assets/index-mc7Xu3WV.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/bin.test.ts +70 -0
- package/src/cli.ts +67 -3
- package/src/server-runner.test.ts +45 -2
- package/src/server-runner.ts +13 -0
- package/dist/web/assets/index-B3PO5hz_.js +0 -111
- package/dist/web/assets/index-B3PO5hz_.js.map +0 -1
- package/dist/web/assets/index-BbpuXQCm.css +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
-- Current database schema baseline
|
|
2
|
+
PRAGMA user_version = 2;
|
|
2
3
|
|
|
3
4
|
CREATE TABLE IF NOT EXISTS workspaces (
|
|
4
5
|
id TEXT PRIMARY KEY,
|
|
@@ -77,7 +78,7 @@ CREATE TABLE IF NOT EXISTS supervisors (
|
|
|
77
78
|
last_evaluated_turn_id TEXT,
|
|
78
79
|
error_reason TEXT,
|
|
79
80
|
created_at INTEGER NOT NULL,
|
|
80
|
-
updated_at INTEGER NOT NULL,
|
|
81
|
+
updated_at INTEGER NOT NULL, evaluator_model TEXT, max_supervision_count INTEGER NOT NULL DEFAULT 0, completed_supervision_count INTEGER NOT NULL DEFAULT 0, scheduled_at INTEGER, stop_reason TEXT,
|
|
81
82
|
FOREIGN KEY (session_id, workspace_id) REFERENCES sessions(id, workspace_id) ON DELETE CASCADE,
|
|
82
83
|
FOREIGN KEY (workspace_id) REFERENCES workspaces(id) ON DELETE CASCADE
|
|
83
84
|
);
|
|
@@ -109,6 +110,19 @@ CREATE TABLE IF NOT EXISTS supervisor_cycles (
|
|
|
109
110
|
CREATE INDEX IF NOT EXISTS idx_supervisor_cycles_supervisor ON supervisor_cycles(supervisor_id, created_at DESC);
|
|
110
111
|
CREATE INDEX IF NOT EXISTS idx_supervisor_cycles_session ON supervisor_cycles(session_id, created_at DESC);
|
|
111
112
|
|
|
113
|
+
CREATE TABLE IF NOT EXISTS supervisor_cycle_attempts (
|
|
114
|
+
id TEXT PRIMARY KEY,
|
|
115
|
+
cycle_id TEXT NOT NULL REFERENCES supervisor_cycles(id) ON DELETE CASCADE,
|
|
116
|
+
attempt_index INTEGER NOT NULL,
|
|
117
|
+
status TEXT NOT NULL,
|
|
118
|
+
started_at INTEGER NOT NULL,
|
|
119
|
+
completed_at INTEGER,
|
|
120
|
+
error_reason TEXT,
|
|
121
|
+
provider_model TEXT
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
CREATE INDEX IF NOT EXISTS idx_supervisor_cycle_attempts_cycle ON supervisor_cycle_attempts(cycle_id, attempt_index);
|
|
125
|
+
|
|
112
126
|
CREATE TABLE IF NOT EXISTS auth_login_blocks (
|
|
113
127
|
ip TEXT PRIMARY KEY,
|
|
114
128
|
failed_count INTEGER NOT NULL,
|