@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @axiom-lattice/local-stores@3.3.0 build /home/runner/work/agentic/agentic/packages/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
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.mjs 247.89 KB
12
- ESM dist/index.mjs.map 454.60 KB
13
- ESM ⚡️ Build success in 465ms
14
- CJS dist/index.js 252.67 KB
15
- CJS dist/index.js.map 458.33 KB
16
- CJS ⚡️ Build success in 465ms
11
+ CJS dist/index.js 253.25 KB
12
+ CJS dist/index.js.map 459.22 KB
13
+ CJS ⚡️ Build success in 604ms
14
+ ESM dist/index.mjs 248.46 KB
15
+ ESM dist/index.mjs.map 455.49 KB
16
+ ESM ⚡️ Build success in 605ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 8704ms
19
- DTS dist/index.d.ts 46.18 KB
20
- DTS dist/index.d.mts 46.18 KB
18
+ DTS ⚡️ Build success in 10751ms
19
+ DTS dist/index.d.ts 46.24 KB
20
+ DTS dist/index.d.mts 46.24 KB
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);