@langchain/langgraph-cli 1.1.15 → 1.1.17
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/dist/cli/dev.mjs +7 -2
- package/dist/cli/utils/project.mjs +4 -9
- package/dist/docker/docker.mjs +1 -0
- package/package.json +3 -3
package/dist/cli/dev.mjs
CHANGED
|
@@ -77,8 +77,13 @@ builder
|
|
|
77
77
|
if (typeof configEnv === "string") {
|
|
78
78
|
const envPath = path.resolve(projectCwd, configEnv);
|
|
79
79
|
newWatch.push(envPath);
|
|
80
|
-
const envData = await fs.readFile(envPath, "utf-8")
|
|
81
|
-
|
|
80
|
+
const envData = await fs.readFile(envPath, "utf-8").catch(() => {
|
|
81
|
+
logger.warn(`Env file "${configEnv}" not found. Continuing without it.`);
|
|
82
|
+
return null;
|
|
83
|
+
});
|
|
84
|
+
if (envData != null) {
|
|
85
|
+
populate(env, parse(envData));
|
|
86
|
+
}
|
|
82
87
|
}
|
|
83
88
|
else if (Array.isArray(configEnv)) {
|
|
84
89
|
throw new Error("Env storage is not supported by CLI.");
|
|
@@ -5,14 +5,9 @@ export async function getProjectPath(key) {
|
|
|
5
5
|
const configPathOrFile = key.startsWith("file://")
|
|
6
6
|
? url.fileURLToPath(key)
|
|
7
7
|
: path.resolve(process.cwd(), key);
|
|
8
|
-
|
|
9
|
-
if (
|
|
10
|
-
|
|
8
|
+
const stat = await fs.stat(configPathOrFile);
|
|
9
|
+
if (stat.isDirectory()) {
|
|
10
|
+
return path.join(configPathOrFile, "langgraph.json");
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
configPath = configPathOrFile;
|
|
14
|
-
}
|
|
15
|
-
if (!configPath)
|
|
16
|
-
throw new Error("Invalid path");
|
|
17
|
-
return configPath;
|
|
12
|
+
return configPathOrFile;
|
|
18
13
|
}
|
package/dist/docker/docker.mjs
CHANGED
|
@@ -289,6 +289,7 @@ export async function configToDocker(configPath, config, localDeps, options) {
|
|
|
289
289
|
`ENV LANGGRAPH_UI_CONFIG='${JSON.stringify(config.ui_config)}'`,
|
|
290
290
|
!!config.store && `ENV LANGGRAPH_STORE='${JSON.stringify(config.store)}'`,
|
|
291
291
|
!!config.auth && `ENV LANGGRAPH_AUTH='${JSON.stringify(config.auth)}'`,
|
|
292
|
+
!!config.http && `ENV LANGGRAPH_HTTP='${JSON.stringify(config.http)}'`,
|
|
292
293
|
!!localDeps.workingDir && `WORKDIR ${localDeps.workingDir}`,
|
|
293
294
|
"node_version" in config
|
|
294
295
|
? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"tar": "^7.4.3",
|
|
37
37
|
"winston": "^3.17.0",
|
|
38
38
|
"winston-console-format": "^1.0.8",
|
|
39
|
-
"yaml": "^2.
|
|
39
|
+
"yaml": "^2.8.3",
|
|
40
40
|
"zod": "^3.25.76 || ^4",
|
|
41
|
-
"@langchain/langgraph-api": "1.1.
|
|
41
|
+
"@langchain/langgraph-api": "1.1.17",
|
|
42
42
|
"create-langgraph": "1.1.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|