@axiom-lattice/local-stores 3.3.0 → 4.0.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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +38 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/LocalEvalStore.test.ts +13 -0
- package/src/__tests__/LocalTaskStore.test.ts +14 -0
- package/src/stores/LocalEvalStore.ts +10 -0
- package/src/stores/LocalTaskStore.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/local-stores@
|
|
2
|
+
> @axiom-lattice/local-stores@4.0.0 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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m253.25 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m459.22 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 604ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m248.46 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m455.49 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 605ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m46.
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m46.
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 10751ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m46.24 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m46.24 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @axiom-lattice/local-stores
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 80c8dca: Release the chat, task, store, and sandbox updates together.
|
|
8
|
+
|
|
9
|
+
- Chat: frosted-glass user-message navigator, breathing run status bar, streaming auto-follow that stops when the reader scrolls away, and stop notices routed through the status bar.
|
|
10
|
+
- Crons: workspace/project-scoped crons, tenant-validated scope, Console project selector/card/filter.
|
|
11
|
+
- Store: long-term Store rebuilt as a toolbar + master-detail drawer with namespace editor, JSON validation, and TTL presets.
|
|
12
|
+
- Workspace menu: optional `requiredTenantRoles` gating; Store, Audit Log, API Keys, Observability, and System Info are owner/admin-only.
|
|
13
|
+
- Execution: durable runs re-pin the shared agent to the authoritative scope, absent scheduled scope stays unscoped, subagent breaker state is isolated, first run of a locally-constructed thread is admitted, and `TaskListFilter.threadId` authorizes isolated task threads.
|
|
14
|
+
- Recursion: default budget 500 with `AGENT_RECURSION_LIMIT` override.
|
|
15
|
+
- Uploads: default request body and upload limit raised to 500 MB.
|
|
16
|
+
- Sandbox: default memory aligned to 1024 MiB and service body limit raised to 500 MB.
|
|
17
|
+
- PostgreSQL: run availability defaults to the database clock, so clock drift cannot make fresh runs briefly unclaimable.
|
|
18
|
+
|
|
19
|
+
Breaking: default recursion budget (1000 -> 500), request/upload limit (100 MB -> 500 MB), sandbox memory (512/2048 -> 1024 MiB), and durable-run scope authority change observable behavior without extra configuration.
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- ae1535e: Make eval safe on the existing worker pool: a global `eval:execution` lease
|
|
24
|
+
allows any replica to run one eval at a time, cancellation is a durable
|
|
25
|
+
`cancel_requested` flag polled by the executing worker, and aborted runs settle
|
|
26
|
+
as `aborted`. The compatibility progress stream now polls the shared EvalStore
|
|
27
|
+
instead of the owner's process-local EventEmitter.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [c5a4a88]
|
|
32
|
+
- Updated dependencies [ae1535e]
|
|
33
|
+
- Updated dependencies [e71979f]
|
|
34
|
+
- Updated dependencies [80c8dca]
|
|
35
|
+
- Updated dependencies [c650a59]
|
|
36
|
+
- Updated dependencies [ae1535e]
|
|
37
|
+
- Updated dependencies [ae1535e]
|
|
38
|
+
- @axiom-lattice/core@10.0.0
|
|
39
|
+
- @axiom-lattice/protocols@6.0.0
|
|
40
|
+
|
|
3
41
|
## 3.3.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -637,6 +637,7 @@ declare class LocalEvalStore implements EvalStore {
|
|
|
637
637
|
error?: string;
|
|
638
638
|
completedAt?: Date;
|
|
639
639
|
}): Promise<EvalRun | null>;
|
|
640
|
+
requestCancel(tenantId: string, id: string): Promise<boolean>;
|
|
640
641
|
deleteRun(tenantId: string, id: string): Promise<boolean>;
|
|
641
642
|
getResultsByRun(tenantId: string, runId: string): Promise<EvalRunResult[]>;
|
|
642
643
|
private getRunResultById;
|
package/dist/index.d.ts
CHANGED
|
@@ -637,6 +637,7 @@ declare class LocalEvalStore implements EvalStore {
|
|
|
637
637
|
error?: string;
|
|
638
638
|
completedAt?: Date;
|
|
639
639
|
}): Promise<EvalRun | null>;
|
|
640
|
+
requestCancel(tenantId: string, id: string): Promise<boolean>;
|
|
640
641
|
deleteRun(tenantId: string, id: string): Promise<boolean>;
|
|
641
642
|
getResultsByRun(tenantId: string, runId: string): Promise<EvalRunResult[]>;
|
|
642
643
|
private getRunResultById;
|
package/dist/index.js
CHANGED
|
@@ -3473,6 +3473,7 @@ CREATE TABLE IF NOT EXISTS lt_eval_runs (
|
|
|
3473
3473
|
interrupted_cases INTEGER NOT NULL DEFAULT 0,
|
|
3474
3474
|
avg_score REAL NOT NULL DEFAULT 0,
|
|
3475
3475
|
error TEXT,
|
|
3476
|
+
cancel_requested INTEGER NOT NULL DEFAULT 0,
|
|
3476
3477
|
holdout INTEGER NOT NULL DEFAULT 0,
|
|
3477
3478
|
env_project_id TEXT,
|
|
3478
3479
|
env_workspace_id TEXT,
|
|
@@ -3532,6 +3533,7 @@ var LocalEvalStore = class {
|
|
|
3532
3533
|
this.ensureColumn("lt_eval_run_results", "interrupted", "interrupted INTEGER NOT NULL DEFAULT 0");
|
|
3533
3534
|
this.ensureColumn("lt_eval_cases", "interrupt_policy", "interrupt_policy TEXT");
|
|
3534
3535
|
this.ensureColumn("lt_eval_runs", "task_id", "task_id TEXT");
|
|
3536
|
+
this.ensureColumn("lt_eval_runs", "cancel_requested", "cancel_requested INTEGER NOT NULL DEFAULT 0");
|
|
3535
3537
|
this.db.exec(`
|
|
3536
3538
|
UPDATE lt_eval_suites
|
|
3537
3539
|
SET project_id = (
|
|
@@ -3903,6 +3905,12 @@ var LocalEvalStore = class {
|
|
|
3903
3905
|
).run(...vals);
|
|
3904
3906
|
return this.getRunById(tenantId, id);
|
|
3905
3907
|
}
|
|
3908
|
+
async requestCancel(tenantId, id) {
|
|
3909
|
+
const result = this.db.prepare(
|
|
3910
|
+
`UPDATE lt_eval_runs SET cancel_requested = 1 WHERE tenant_id = ? AND id = ? AND status = 'running'`
|
|
3911
|
+
).run(tenantId, id);
|
|
3912
|
+
return result.changes > 0;
|
|
3913
|
+
}
|
|
3906
3914
|
async deleteRun(tenantId, id) {
|
|
3907
3915
|
const result = this.db.prepare(`DELETE FROM lt_eval_runs WHERE tenant_id = ? AND id = ?`).run(tenantId, id);
|
|
3908
3916
|
return result.changes > 0;
|
|
@@ -4082,6 +4090,7 @@ var LocalEvalStore = class {
|
|
|
4082
4090
|
interruptedCases: row.interrupted_cases ?? 0,
|
|
4083
4091
|
avgScore: row.avg_score ?? 0,
|
|
4084
4092
|
error: row.error,
|
|
4093
|
+
cancelRequested: Boolean(row.cancel_requested),
|
|
4085
4094
|
holdout: row.holdout ? Boolean(row.holdout) : void 0,
|
|
4086
4095
|
envProjectId: row.env_project_id,
|
|
4087
4096
|
envWorkspaceId: row.env_workspace_id,
|
|
@@ -5783,6 +5792,10 @@ var LocalTaskStore = class {
|
|
|
5783
5792
|
conditions.push("priority = ?");
|
|
5784
5793
|
params.push(filter.priority);
|
|
5785
5794
|
}
|
|
5795
|
+
if (filter.threadId) {
|
|
5796
|
+
conditions.push("json_extract(context, '$.thread_id') = ?");
|
|
5797
|
+
params.push(filter.threadId);
|
|
5798
|
+
}
|
|
5786
5799
|
if (filter.workspaceId) {
|
|
5787
5800
|
conditions.push("workspace_id = ?");
|
|
5788
5801
|
params.push(filter.workspaceId);
|