@langchain/langgraph-cli 1.1.16 → 1.2.0

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 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
- populate(env, parse(envData));
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.");
@@ -14,7 +14,7 @@ const UV_BINARY_CACHE = path.join(__dirname, ".uv", UV_VERSION);
14
14
  function getPlatformInfo() {
15
15
  const platform = os.platform();
16
16
  const arch = os.arch();
17
- let binaryName = "uv";
17
+ const binaryName = "uv";
18
18
  let extension = "";
19
19
  if (platform === "win32") {
20
20
  extension = ".exe";
@@ -4,7 +4,7 @@ const LF = "\n".charCodeAt(0);
4
4
  const TRAILING_NEWLINE = [CR, LF];
5
5
  function joinArrays(data) {
6
6
  const totalLength = data.reduce((acc, curr) => acc + curr.length, 0);
7
- let merged = new Uint8Array(totalLength);
7
+ const merged = new Uint8Array(totalLength);
8
8
  let offset = 0;
9
9
  for (const c of data) {
10
10
  merged.set(c, offset);
@@ -141,6 +141,7 @@ async function updateGraphPaths(configPath, config, localDeps) {
141
141
  for (const [graphId, graphDef] of Object.entries(config.graphs)) {
142
142
  const importStr = typeof graphDef === "string" ? graphDef : graphDef.path;
143
143
  const description = typeof graphDef === "string" ? undefined : graphDef.description;
144
+ // oxlint-disable-next-line prefer-const -- moduleStr is reassigned for local modules
144
145
  let [moduleStr, attrStr] = importStr.split(":", 2);
145
146
  if (!moduleStr || !attrStr) {
146
147
  throw new Error(`Import string "${importStr}" must be in format "<module>:<attribute>".`);
@@ -289,6 +290,7 @@ export async function configToDocker(configPath, config, localDeps, options) {
289
290
  `ENV LANGGRAPH_UI_CONFIG='${JSON.stringify(config.ui_config)}'`,
290
291
  !!config.store && `ENV LANGGRAPH_STORE='${JSON.stringify(config.store)}'`,
291
292
  !!config.auth && `ENV LANGGRAPH_AUTH='${JSON.stringify(config.auth)}'`,
293
+ !!config.http && `ENV LANGGRAPH_HTTP='${JSON.stringify(config.http)}'`,
292
294
  !!localDeps.workingDir && `WORKDIR ${localDeps.workingDir}`,
293
295
  "node_version" in config
294
296
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-cli",
3
- "version": "1.1.16",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -29,22 +29,21 @@
29
29
  "execa": "^9.5.2",
30
30
  "exit-hook": "^4.0.0",
31
31
  "extract-zip": "^2.0.1",
32
- "langsmith": "^0.4.6",
32
+ "langsmith": "^0.6.0",
33
33
  "open": "^10.1.0",
34
34
  "package-manager-detector": "^1.3.0",
35
35
  "stacktrace-parser": "^0.1.10",
36
36
  "tar": "^7.4.3",
37
37
  "winston": "^3.17.0",
38
38
  "winston-console-format": "^1.0.8",
39
- "yaml": "^2.7.0",
39
+ "yaml": "^2.8.3",
40
40
  "zod": "^3.25.76 || ^4",
41
- "@langchain/langgraph-api": "1.1.16",
41
+ "@langchain/langgraph-api": "1.2.0",
42
42
  "create-langgraph": "1.1.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/babel__code-frame": "^7.0.6",
46
46
  "@types/node": "^18.15.11",
47
- "prettier": "^2.8.3",
48
47
  "tsx": "^4.19.3",
49
48
  "typescript": "^4.9.5 || ^5.4.5",
50
49
  "vitest": "^3.2.4"
@@ -57,8 +56,6 @@
57
56
  "typecheck": "tsc --noEmit",
58
57
  "cli": "tsx src/cli/cli.mts",
59
58
  "cli:watch": "tsx watch src/cli/cli.mts",
60
- "test": "vitest run",
61
- "format": "prettier --write .",
62
- "format:check": "prettier --check ."
59
+ "test": "vitest run"
63
60
  }
64
61
  }