@langchain/langgraph-api 0.0.59 → 0.0.60

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 0.0.60
4
+
5
+ ### Patch Changes
6
+
7
+ - 9c57526: fix(api): serialization of "checkpoints" and "tasks" stream modes
8
+ - @langchain/langgraph-ui@0.0.60
9
+
3
10
  ## 0.0.59
4
11
 
5
12
  ### Patch Changes
package/dist/stream.mjs CHANGED
@@ -140,6 +140,18 @@ export async function* streamState(run, options) {
140
140
  data = { ...debugChunk, payload: debugResult };
141
141
  }
142
142
  }
143
+ else if (mode === "checkpoints") {
144
+ const debugCheckpoint = preprocessDebugCheckpoint(chunk);
145
+ options?.onCheckpoint?.(debugCheckpoint);
146
+ data = debugCheckpoint;
147
+ }
148
+ else if (mode === "tasks") {
149
+ const debugTask = preprocessDebugCheckpointTask(chunk);
150
+ if ("result" in debugTask || "error" in debugTask) {
151
+ options?.onTaskResult?.(debugTask);
152
+ }
153
+ data = debugTask;
154
+ }
143
155
  if (mode === "messages") {
144
156
  if (userStreamMode.includes("messages-tuple")) {
145
157
  if (kwargs.subgraphs && ns?.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -52,7 +52,7 @@
52
52
  "@babel/code-frame": "^7.26.2",
53
53
  "@hono/node-server": "^1.12.0",
54
54
  "@hono/zod-validator": "^0.2.2",
55
- "@langchain/langgraph-ui": "0.0.59",
55
+ "@langchain/langgraph-ui": "0.0.60",
56
56
  "@types/json-schema": "^7.0.15",
57
57
  "@typescript/vfs": "^1.6.0",
58
58
  "dedent": "^1.5.3",
@@ -84,9 +84,9 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "@langchain/core": "^0.3.59",
87
- "@langchain/langgraph": "0.4.5",
87
+ "@langchain/langgraph": "0.4.6",
88
88
  "@langchain/langgraph-checkpoint": "0.1.0",
89
- "@langchain/langgraph-sdk": "0.0.107",
89
+ "@langchain/langgraph-sdk": "0.0.109",
90
90
  "@types/babel__code-frame": "^7.0.6",
91
91
  "@types/node": "^18.15.11",
92
92
  "@types/react": "^19.0.8",