@axiom-lattice/local-stores 2.0.2 → 2.0.3
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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +9 -0
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/stores/LocalEvalStore.ts +9 -3
package/dist/index.mjs
CHANGED
|
@@ -1937,6 +1937,9 @@ CREATE TABLE IF NOT EXISTS lt_eval_runs (
|
|
|
1937
1937
|
failed_cases INTEGER NOT NULL DEFAULT 0,
|
|
1938
1938
|
avg_score REAL NOT NULL DEFAULT 0,
|
|
1939
1939
|
error TEXT,
|
|
1940
|
+
holdout INTEGER NOT NULL DEFAULT 0,
|
|
1941
|
+
env_project_id TEXT,
|
|
1942
|
+
env_workspace_id TEXT,
|
|
1940
1943
|
created_at TEXT NOT NULL,
|
|
1941
1944
|
started_at TEXT,
|
|
1942
1945
|
completed_at TEXT,
|
|
@@ -2216,9 +2219,9 @@ var LocalEvalStore = class {
|
|
|
2216
2219
|
async createRun(tenantId, projectId, id, data) {
|
|
2217
2220
|
const actualId = id || randomUUID();
|
|
2218
2221
|
this.db.prepare(
|
|
2219
|
-
`INSERT INTO lt_eval_runs (id, project_id, tenant_id, status, concurrency, total_cases, passed_cases, failed_cases, avg_score, created_at)
|
|
2220
|
-
VALUES (?, ?, ?, 'running', ?, ?, 0, 0, 0, ?)`
|
|
2221
|
-
).run(actualId, projectId, tenantId, data.concurrency, data.totalCases, nowISO());
|
|
2222
|
+
`INSERT INTO lt_eval_runs (id, project_id, tenant_id, status, concurrency, total_cases, passed_cases, failed_cases, avg_score, holdout, env_project_id, env_workspace_id, created_at)
|
|
2223
|
+
VALUES (?, ?, ?, 'running', ?, ?, 0, 0, 0, ?, ?, ?, ?)`
|
|
2224
|
+
).run(actualId, projectId, tenantId, data.concurrency, data.totalCases, data.holdout ? 1 : 0, data.envProjectId || null, data.envWorkspaceId || null, nowISO());
|
|
2222
2225
|
return await this.getRunById(tenantId, actualId);
|
|
2223
2226
|
}
|
|
2224
2227
|
async updateRunStatus(tenantId, id, updates) {
|
|
@@ -2428,6 +2431,9 @@ var LocalEvalStore = class {
|
|
|
2428
2431
|
failedCases: row.failed_cases ?? 0,
|
|
2429
2432
|
avgScore: row.avg_score ?? 0,
|
|
2430
2433
|
error: row.error,
|
|
2434
|
+
holdout: row.holdout ? Boolean(row.holdout) : void 0,
|
|
2435
|
+
envProjectId: row.env_project_id,
|
|
2436
|
+
envWorkspaceId: row.env_workspace_id,
|
|
2431
2437
|
createdAt: parseISO(row.created_at),
|
|
2432
2438
|
startedAt: row.started_at ? parseISO(row.started_at) : void 0,
|
|
2433
2439
|
completedAt: row.completed_at ? parseISO(row.completed_at) : void 0
|