@axiom-lattice/pg-stores 4.1.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/pg-stores@4.1.0 build /home/runner/work/agentic/agentic/packages/pg-stores
2
+ > @axiom-lattice/pg-stores@5.0.0 build /home/runner/work/agentic/agentic/packages/pg-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 524.13 KB
12
- ESM dist/index.mjs.map 970.30 KB
13
- ESM ⚡️ Build success in 1104ms
14
- CJS dist/index.js 533.87 KB
15
- CJS dist/index.js.map 970.61 KB
16
- CJS ⚡️ Build success in 1106ms
11
+ ESM dist/index.mjs 524.15 KB
12
+ ESM dist/index.mjs.map 970.33 KB
13
+ ESM ⚡️ Build success in 1448ms
14
+ CJS dist/index.js 533.89 KB
15
+ CJS dist/index.js.map 970.64 KB
16
+ CJS ⚡️ Build success in 1451ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 15397ms
18
+ DTS ⚡️ Build success in 15489ms
19
19
  DTS dist/index.d.ts 112.00 KB
20
20
  DTS dist/index.d.mts 112.00 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @axiom-lattice/pg-stores
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 587c375: MCP SDK v2, workspace Zod 4, dual-era MCP, and reasoning improvements.
8
+
9
+ **Breaking / runtime**
10
+
11
+ - Migrate to `@modelcontextprotocol/client/server 2.4.0` + `node 2.1.2` and
12
+ `@langchain/mcp-adapters 2.0.1`; remove `@modelcontextprotocol/sdk 1.x`.
13
+ - Unify the workspace on Zod 4.6.7 with no nested/scoped Zod 3 copies. This
14
+ changes Zod schema authoring (`ZodObject` generics, `z.record`, `.issues`,
15
+ explicit optional `z.any`/`z.unknown`) and removes `zod-to-json-schema`.
16
+ - Node.js `>=20.10.0` is now required. See
17
+ `docs/migrations/mcp-sdk-v2.md` for the full migration guide.
18
+ - Unknown/unauthorized Open MCP tools now surface as JSON-RPC errors.
19
+
20
+ **MCP dual-era**
21
+
22
+ - `McpServerConfig.protocolMode` defaults to `auto` (modern `2026-07-28`
23
+ negotiation with legacy fallback); pin `legacy` or `modern` per server.
24
+ - Open MCP serves both eras at the same stateless endpoint, preserving the
25
+ legacy JSON response contract; no sessions or sticky routing.
26
+ - Connection tests report the negotiated protocol revision; the MCP config UI
27
+ exposes an advanced protocol selector.
28
+ - HTTP/SSE adapter-level `reconnect` is legacy-only in mcp-adapters 2.x;
29
+ `auto`/`modern` rely on the manager health-check/backoff loop.
30
+
31
+ **Reasoning**
32
+
33
+ - Stream `reasoning_content` separately from the answer and echo it for
34
+ tool-call continuations on compatible providers.
35
+ - Persist measured reasoning time as `additional_kwargs.reasoning_duration_ms`;
36
+ `ChunkMessageMerger` lifts it to assistant messages and the thinking block
37
+ renders `Thought for Xs` (or `Thought process` without a measurement).
38
+ The field is display-only and stripped before provider requests.
39
+ - Refine the thinking block into a compact custom header with smaller
40
+ icon/type, hover/focus states, and an indented reasoning panel.
41
+ - Left-align the agent creation method cards (manual / external / learn).
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [587c375]
46
+ - @axiom-lattice/protocols@7.0.0
47
+ - @axiom-lattice/core@12.0.0
48
+
49
+ ## 4.1.1
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [b86cff5]
54
+ - Updated dependencies [94dd9a7]
55
+ - @axiom-lattice/protocols@6.4.0
56
+ - @axiom-lattice/core@11.0.0
57
+
3
58
  ## 4.1.0
4
59
 
5
60
  ### Minor Changes
package/dist/index.js CHANGED
@@ -14840,9 +14840,11 @@ async function createPgStoreConfig(connectionString) {
14840
14840
  mm.register(addShareKind);
14841
14841
  await mm.migrate();
14842
14842
  const checkpoint = import_langgraph_checkpoint_postgres.PostgresSaver.fromConnString(connectionString);
14843
- checkpoint.setup().catch((err) => {
14843
+ try {
14844
+ await checkpoint.setup();
14845
+ } catch (err) {
14844
14846
  console.error("[pg-stores] Failed to setup checkpoint table:", err.message || err);
14845
- });
14847
+ }
14846
14848
  const opts = { pool };
14847
14849
  const taskWorkItemStore = new PostgreSQLTaskWorkItemStore(pool);
14848
14850
  return {