@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +8 -0
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/stores/LocalWorkflowTrackingStore.ts +13 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/local-stores@1.0.
|
|
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
|
[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
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m113.57 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m214.66 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 387ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m116.80 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m217.12 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 392ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 13484ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m24.92 KB[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m24.92 KB[39m
|
package/CHANGELOG.md
CHANGED
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:
|
|
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:
|
|
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:
|
|
1699
|
-
output:
|
|
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),
|