@langchain/langgraph-cli 1.4.0 → 1.4.2
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/README.md +2 -2
- package/dist/utils/config.mjs +9 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -55,8 +55,8 @@ The CLI uses a `langgraph.json` configuration file with these key settings:
|
|
|
55
55
|
graph: "./src/graph.ts:graph",
|
|
56
56
|
},
|
|
57
57
|
|
|
58
|
-
// Optional: Node version (20
|
|
59
|
-
node_version: "
|
|
58
|
+
// Optional: Node version (supported: "20", "22", "24")
|
|
59
|
+
node_version: "24",
|
|
60
60
|
|
|
61
61
|
// Optional: Environment variables
|
|
62
62
|
env: ".env",
|
package/dist/utils/config.mjs
CHANGED
|
@@ -69,7 +69,11 @@ const DEFAULT_PYTHON_VERSION = "3.11";
|
|
|
69
69
|
const DEFAULT_NODE_VERSION = "20";
|
|
70
70
|
const PYTHON_EXTENSIONS = [".py", ".pyx", ".pyd", ".pyi"];
|
|
71
71
|
const PythonVersionSchema = z.union([z.literal("3.11"), z.literal("3.12")]);
|
|
72
|
-
const NodeVersionSchema = z.union([
|
|
72
|
+
const NodeVersionSchema = z.union([
|
|
73
|
+
z.literal("20"),
|
|
74
|
+
z.literal("22"),
|
|
75
|
+
z.literal("24"),
|
|
76
|
+
]);
|
|
73
77
|
const PythonConfigSchema = BaseConfigSchema.merge(z.object({
|
|
74
78
|
pip_config_file: z.string().optional(),
|
|
75
79
|
dependencies: z
|
|
@@ -79,7 +83,10 @@ const PythonConfigSchema = BaseConfigSchema.merge(z.object({
|
|
|
79
83
|
python_version: PythonVersionSchema.default(DEFAULT_PYTHON_VERSION),
|
|
80
84
|
node_version: NodeVersionSchema.optional(),
|
|
81
85
|
}));
|
|
82
|
-
const NodeConfigSchema = BaseConfigSchema.merge(z.object({
|
|
86
|
+
const NodeConfigSchema = BaseConfigSchema.merge(z.object({
|
|
87
|
+
node_version: NodeVersionSchema.default(DEFAULT_NODE_VERSION),
|
|
88
|
+
node_loader: z.string().optional(),
|
|
89
|
+
}));
|
|
83
90
|
const ConfigSchema = z.union([NodeConfigSchema, PythonConfigSchema]);
|
|
84
91
|
// TODO: implement this in Python CLI
|
|
85
92
|
export const getConfig = (config) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"exit-hook": "^4.0.0",
|
|
31
31
|
"extract-zip": "^2.0.1",
|
|
32
32
|
"ignore": "^7.0.5",
|
|
33
|
-
"langsmith": "^0.7.
|
|
33
|
+
"langsmith": "^0.7.14",
|
|
34
34
|
"open": "^10.1.0",
|
|
35
35
|
"package-manager-detector": "^1.3.0",
|
|
36
36
|
"stacktrace-parser": "^0.1.10",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"winston-console-format": "^1.0.8",
|
|
40
40
|
"yaml": "^2.8.3",
|
|
41
41
|
"zod": "^3.25.76 || ^4",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"create-langgraph": "1.1.5",
|
|
43
|
+
"@langchain/langgraph-api": "1.4.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/babel__code-frame": "^7.0.6",
|
|
47
47
|
"@types/node": "^18.15.11",
|
|
48
48
|
"tsx": "^4.19.3",
|
|
49
49
|
"typescript": "^4.9.5 || ^5.4.5",
|
|
50
|
-
"vitest": "^4.1.
|
|
50
|
+
"vitest": "^4.1.9"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"clean": "rm -rf dist/ .turbo/",
|