@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/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/local-stores@2.0.
|
|
2
|
+
> @axiom-lattice/local-stores@2.0.3 build /home/runner/work/agentic/agentic/packages/local-stores
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
12
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m127.
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m131.17 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m245.21 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 405ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m127.70 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m242.36 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 419ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 14422ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m29.13 KB[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m29.13 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2005,6 +2005,9 @@ CREATE TABLE IF NOT EXISTS lt_eval_runs (
|
|
|
2005
2005
|
failed_cases INTEGER NOT NULL DEFAULT 0,
|
|
2006
2006
|
avg_score REAL NOT NULL DEFAULT 0,
|
|
2007
2007
|
error TEXT,
|
|
2008
|
+
holdout INTEGER NOT NULL DEFAULT 0,
|
|
2009
|
+
env_project_id TEXT,
|
|
2010
|
+
env_workspace_id TEXT,
|
|
2008
2011
|
created_at TEXT NOT NULL,
|
|
2009
2012
|
started_at TEXT,
|
|
2010
2013
|
completed_at TEXT,
|
|
@@ -2284,9 +2287,9 @@ var LocalEvalStore = class {
|
|
|
2284
2287
|
async createRun(tenantId, projectId, id, data) {
|
|
2285
2288
|
const actualId = id || (0, import_crypto.randomUUID)();
|
|
2286
2289
|
this.db.prepare(
|
|
2287
|
-
`INSERT INTO lt_eval_runs (id, project_id, tenant_id, status, concurrency, total_cases, passed_cases, failed_cases, avg_score, created_at)
|
|
2288
|
-
VALUES (?, ?, ?, 'running', ?, ?, 0, 0, 0, ?)`
|
|
2289
|
-
).run(actualId, projectId, tenantId, data.concurrency, data.totalCases, nowISO());
|
|
2290
|
+
`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)
|
|
2291
|
+
VALUES (?, ?, ?, 'running', ?, ?, 0, 0, 0, ?, ?, ?, ?)`
|
|
2292
|
+
).run(actualId, projectId, tenantId, data.concurrency, data.totalCases, data.holdout ? 1 : 0, data.envProjectId || null, data.envWorkspaceId || null, nowISO());
|
|
2290
2293
|
return await this.getRunById(tenantId, actualId);
|
|
2291
2294
|
}
|
|
2292
2295
|
async updateRunStatus(tenantId, id, updates) {
|
|
@@ -2496,6 +2499,9 @@ var LocalEvalStore = class {
|
|
|
2496
2499
|
failedCases: row.failed_cases ?? 0,
|
|
2497
2500
|
avgScore: row.avg_score ?? 0,
|
|
2498
2501
|
error: row.error,
|
|
2502
|
+
holdout: row.holdout ? Boolean(row.holdout) : void 0,
|
|
2503
|
+
envProjectId: row.env_project_id,
|
|
2504
|
+
envWorkspaceId: row.env_workspace_id,
|
|
2499
2505
|
createdAt: parseISO(row.created_at),
|
|
2500
2506
|
startedAt: row.started_at ? parseISO(row.started_at) : void 0,
|
|
2501
2507
|
completedAt: row.completed_at ? parseISO(row.completed_at) : void 0
|