@oked/langgraph 0.6.21 → 0.6.23

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.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -7,6 +7,8 @@ OKed for [LangGraph.js](https://github.com/langchain-ai/langgraphjs) and LangCha
7
7
 
8
8
  `withOkedApproval` wraps one tool. `withOkedApprovals` wraps a list. Pass that list to `ToolNode` or `createReactAgent`. Denied, timed out, and failed approvals do not run the tool. The model gets a result that says the action was not run.
9
9
 
10
+ Python agents use [`oked-langgraph`](../../python/oked-langgraph). Not on PyPI yet. Until then, `pip install "oked @ git+https://github.com/oked-ai/oked-sdk#subdirectory=python/oked" "oked-langgraph @ git+https://github.com/oked-ai/oked-sdk#subdirectory=python/oked-langgraph"`. Once it is on PyPI, `pip install oked-langgraph`. `with_oked_approvals` is the same gate for `ToolNode` and `create_react_agent`. The receipt `source` is `langgraph` in both packages.
11
+
10
12
  ## Install
11
13
 
12
14
  ```sh
@@ -57,6 +59,14 @@ const toolNode = new ToolNode(
57
59
  );
58
60
  ```
59
61
 
62
+ On Node 18, LangGraph 1.5 expects a global `crypto`. Set it before you build a `ToolNode`, or use Node 20 or newer.
63
+
64
+ ```js
65
+ globalThis.crypto = require("node:crypto").webcrypto;
66
+ ```
67
+
68
+ The ESM equivalent is `import { webcrypto } from "node:crypto"`, then `globalThis.crypto = webcrypto`.
69
+
60
70
  `name`, `description`, and `schema` are unchanged, so the same objects can go to `bindTools`. `createAgent` from the `langchain` package takes the wrapped list the same way.
61
71
 
62
72
  The wrapper gates `invoke`, `call`, `func`, and `batch`. `ToolNode` and `createReactAgent` call `invoke`. On an approval, that call is forwarded with the same arguments and the same config, including `configurable.thread_id` (recorded as the approval session).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oked/langgraph",
3
- "version": "0.6.21",
3
+ "version": "0.6.23",
4
4
  "description": "OKed for LangGraph and LangChain. Wraps a tool so a risky call waits for a human approval before it runs.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,14 +33,14 @@
33
33
  }
34
34
  },
35
35
  "dependencies": {
36
- "@oked/sdk": "0.6.21"
36
+ "@oked/sdk": "0.6.23"
37
37
  },
38
38
  "devDependencies": {
39
- "@langchain/core": "0.3.80",
40
- "@langchain/langgraph": "0.4.9",
41
- "@types/node": "^22.13.10",
42
- "typescript": "^5.6.0",
43
- "zod": "^3.25.32"
39
+ "@langchain/core": "1.3.0",
40
+ "@langchain/langgraph": "1.5.2",
41
+ "@types/node": "^26.6.5",
42
+ "typescript": "^7.0.2",
43
+ "zod": "^4.6.7"
44
44
  },
45
45
  "keywords": [
46
46
  "oked",