@axiom-lattice/local-stores 1.0.5 → 1.0.6

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@1.0.5 build /home/runner/work/agentic/agentic/packages/local-stores
2
+ > @axiom-lattice/local-stores@1.0.6 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
- CJS dist/index.js 116.70 KB
12
- CJS dist/index.js.map 216.87 KB
13
- CJS ⚡️ Build success in 520ms
14
- ESM dist/index.mjs 113.47 KB
15
- ESM dist/index.mjs.map 214.41 KB
16
- ESM ⚡️ Build success in 523ms
11
+ ESM dist/index.mjs 113.57 KB
12
+ ESM dist/index.mjs.map 214.66 KB
13
+ ESM ⚡️ Build success in 387ms
14
+ CJS dist/index.js 116.80 KB
15
+ CJS dist/index.js.map 217.12 KB
16
+ CJS ⚡️ Build success in 392ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 15452ms
18
+ DTS ⚡️ Build success in 13484ms
19
19
  DTS dist/index.d.ts 24.92 KB
20
20
  DTS dist/index.d.mts 24.92 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @axiom-lattice/local-stores
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - f5eea72: enhance wf
8
+ - Updated dependencies [f5eea72]
9
+ - @axiom-lattice/core@2.1.84
10
+
3
11
  ## 1.0.5
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1666,6 +1666,14 @@ var LocalWorkflowTrackingStore = class {
1666
1666
  return row ? mapRowToStep(row) : null;
1667
1667
  }
1668
1668
  };
1669
+ function safeParse(value, fallback) {
1670
+ if (!value) return fallback;
1671
+ try {
1672
+ return JSON.parse(value);
1673
+ } catch {
1674
+ return fallback;
1675
+ }
1676
+ }
1669
1677
  function mapRowToRun(row) {
1670
1678
  return {
1671
1679
  id: row.id,
@@ -1673,11 +1681,11 @@ function mapRowToRun(row) {
1673
1681
  assistantId: row.assistant_id,
1674
1682
  threadId: row.thread_id,
1675
1683
  status: row.status,
1676
- topologyEdges: JSON.parse(row.topology_edges || "[]"),
1684
+ topologyEdges: safeParse(row.topology_edges, []),
1677
1685
  totalEdges: row.total_edges,
1678
1686
  completedEdges: row.completed_edges,
1679
1687
  errorMessage: row.error_message || void 0,
1680
- metadata: JSON.parse(row.metadata || "{}"),
1688
+ metadata: safeParse(row.metadata, {}),
1681
1689
  startedAt: parseISO(row.started_at),
1682
1690
  completedAt: row.completed_at ? parseISO(row.completed_at) : void 0,
1683
1691
  createdAt: parseISO(row.created_at),
@@ -1695,8 +1703,8 @@ function mapRowToStep(row) {
1695
1703
  edgeFrom: row.edge_from || void 0,
1696
1704
  edgeTo: row.edge_to || void 0,
1697
1705
  edgePurpose: row.edge_purpose || void 0,
1698
- input: row.input ? JSON.parse(row.input) : void 0,
1699
- output: row.output ? JSON.parse(row.output) : void 0,
1706
+ input: safeParse(row.input, void 0),
1707
+ output: safeParse(row.output, void 0),
1700
1708
  status: row.status,
1701
1709
  errorMessage: row.error_message || void 0,
1702
1710
  startedAt: parseISO(row.started_at),