@axiom-lattice/protocols 4.11.0 → 5.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/protocols@4.11.0 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@5.0.0 build /home/runner/work/agentic/agentic/packages/protocols
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
- CJS dist/index.js 48.46 KB
12
- CJS dist/index.js.map 199.08 KB
13
- CJS ⚡️ Build success in 603ms
14
- ESM dist/index.mjs 43.36 KB
15
- ESM dist/index.mjs.map 195.12 KB
16
- ESM ⚡️ Build success in 624ms
11
+ ESM dist/index.mjs 48.07 KB
12
+ ESM dist/index.mjs.map 211.72 KB
13
+ ESM ⚡️ Build success in 424ms
14
+ CJS dist/index.js 54.04 KB
15
+ CJS dist/index.js.map 215.96 KB
16
+ CJS ⚡️ Build success in 424ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 13987ms
19
- DTS dist/index.d.ts 262.01 KB
20
- DTS dist/index.d.mts 262.01 KB
18
+ DTS ⚡️ Build success in 12155ms
19
+ DTS dist/index.d.ts 277.82 KB
20
+ DTS dist/index.d.mts 277.82 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 8f9dd0d: Remove the deprecated TeamAgent/teammate feature and its UI surfaces.
8
+
9
+ ### Minor Changes
10
+
11
+ - f1f8840: Durable cross-replica public-channel replies (Phase B)
12
+
13
+ - Add a durable `ChannelReplyJob` protocol, in-memory/PostgreSQL stores, and a
14
+ `lattice_channel_reply_jobs` migration (v200) with lease-based claim, bounded
15
+ reschedule, and terminal delivery state.
16
+ - Route non-Room public ingress for adapters declaring `durableReply: true`
17
+ through a reply job plus a pending `source='run_api'` run (job written first,
18
+ with compensation on run-create failure). Lark opts in; WeCom/WeChat/Room stay
19
+ legacy because their reply transport is connection-bound/process-local.
20
+ - Add `ChannelReplyDispatcher`, which polls due jobs on any replica, waits for
21
+ the run ledger to become terminal, reads the final assistant text from the
22
+ thread checkpoint, sends it through the adapter, and marks the job delivered.
23
+ Empty output and loader/send failures retry with capped exponential backoff;
24
+ sends have a 15s deadline; missing runs converge after a 30s grace window;
25
+ cancelled runs do not send a waiting notice. Terminal jobs are pruned after
26
+ 24h.
27
+ - Keep Room/trusted dispatch and `ChannelConnectionLeader` unchanged. Durable
28
+ replies are at-least-once; outbound metadata carries `inputMessageId` for
29
+ channel-side deduplication. Ingress falls back to legacy when the dispatcher
30
+ runtime is not registered. Opt out with `CHANNEL_DURABLE_RUNS=false`.
31
+
32
+ - ea90717: `keep_latest` checkpoint pruning (M2-B2b)
33
+
34
+ - Add `CheckpointMaintenance.pruneThread` and transactional per-namespace latest-N checkpoint retention with blob retention derived from `channel_versions`.
35
+ - Add `POST .../prune { strategy: "keep_latest", keep?: 1..100 }`; `delete` is unchanged.
36
+ - Reuse strict ownership, thread-run lease, and empty-inbox guards; keep the thread row and chunk stream.
37
+
38
+ - 351b0e9: Multi-replica run cancel and queue-first HITL
39
+
40
+ - Add ledger-backed run cancel intent plus Redis owner wake-up and heartbeat fallback; abort/recover can be accepted by any replica without ingress stickiness.
41
+ - Make `input.respond` queue-first with `expected_interrupt_id` worker validation and the official LangGraph resume map; reserve answers across replicas and release in-flight reservations after enqueue.
42
+ - Unify Room and Web App native HITL resume mapping with the Console command path.
43
+ - Expose run-cancel readiness/metrics and document the A2A boundary: A2A remains a deferred adapter over the Agent runtime, not a second runtime.
44
+
45
+ - 1fde314: Pending run task queue (Phase 1)
46
+
47
+ - Make `lattice_agent_runs` the durable task queue for the new single-run API: create writes `pending`, a worker claims/executes through `Agent.executeRun`, and recovery reclaims expired rows in place and completes durable rollback work.
48
+ - Add run lifecycle `join` (bounded terminal wait), `cancel?action=interrupt|rollback`, and HITL command runs; Web App runtime mirrors the same handlers.
49
+ - Add `client.runs.join` / cancel `action` / create `command`, and single-run HITL with `ThreadStream.openRun`. `RunCreateResult` is now `{ runId, messageId?, status: "pending" }`: the old queue-first `status: "queued"` / `queued: true` shape and the required `messageId` are gone (command runs have no user message).
50
+ - Keep the legacy message queue, Room, Project Task, A2A, and legacy HITL on `source='legacy'`; the two executors share the `thread-run` lease.
51
+
52
+ - da5294d: Tenant-scoped namespaced KV store (M2-C)
53
+
54
+ - Add `StoreProtocol` (put/get/delete/search/listNamespaces/deleteExpired) with deep JSONB filters, substring query, and TTL.
55
+ - Add InMemory, Local SQLite, and PostgreSQL implementations (PG migration v195 with GIN and partial expiry indexes).
56
+ - Add `/api/store/*` routes and a single-flight store TTL sweeper.
57
+ - `index` hints are accepted but vector indexing and semantic search remain deferred.
58
+
59
+ - 03e9984: Thread commands and explicit interrupts (M3-B)
60
+
61
+ - Add normalized `AgentInterrupt` plus `Agent.getInterrupts()`/`normalizeAgentInterrupts()` for clarify, task_review, and custom interrupts.
62
+ - Expose `interrupts` in thread status using one state read.
63
+ - Add `POST /api/assistants/:assistantId/threads/:threadId/commands` with `run.start`, `input.respond`, and `agent.getTree`.
64
+ - Map multitask strategies to queue modes, add process-local 5-minute answer dedupe, and return Mermaid from `get_draw_graph()`.
65
+
66
+ - 2609f3b: Thread copy and prune-delete (M2-B1)
67
+
68
+ - Add `CheckpointMaintenance` and transactional `copyThread` / `deleteThread` to `PostgreSQLCheckpointStorage`, with a typed `CHECKPOINT_TARGET_NOT_EMPTY` conflict and metadata `thread_id` rewrite.
69
+ - Add owner-scoped, busy-guarded copy and prune-delete routes; prune clears the thread's chunk stream best-effort and retains run-ledger rows.
70
+ - Share the thread ownership resolver between read and maintenance controllers.
71
+
72
+ - 12ce057: Thread read model (M2-A)
73
+
74
+ - Add `Agent.getStateHistory` / `Agent.getStateAtCheckpoint` (bounded to 50 checkpoints).
75
+ - Add `CheckpointStorage` / `ThreadCheckpointStorage` protocols and a read-only `PostgreSQLCheckpointStorage` over the built-in `PostgresSaver` tables.
76
+ - Add tenant/assistant-scoped read-only routes for thread status, checkpoint history, checkpoint state, and checkpoint storage usage; missing checkpoints and foreign threads return 404 and unexpected errors are sanitized.
77
+
78
+ - 23902af: Per-thread TTL and expiry sweeper (M2-B2a)
79
+
80
+ - Add optional `expiresAt` to `Thread`/`CreateThreadRequest` and `listExpiredThreads` to `ThreadStore`.
81
+ - Persist `expires_at` in InMemory, Local SQLite, and PostgreSQL stores (PG migration v194 + partial index).
82
+ - Accept `ttlSeconds`/`expiresAt` when creating a thread (invalid values return 400).
83
+ - Add a lease/inbox/maintenance-guarded TTL sweeper with `THREAD_TTL_SWEEP_*` configuration.
84
+ - Copy does not inherit TTL; run-ledger rows are retained on sweep.
85
+
3
86
  ## 4.11.0
4
87
 
5
88
  ### Minor Changes