@langchain/langgraph-cli 0.0.0-preview.7 → 0.0.0-preview.8

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 CHANGED
@@ -12,36 +12,36 @@ npx @langchain/langgraph-cli
12
12
 
13
13
  ## Commands
14
14
 
15
- ### `langgraph dev`
15
+ ### `langgraphjs dev`
16
16
 
17
17
  Run LangGraph.js API server in development mode with hot reloading.
18
18
 
19
19
  ```bash
20
- langgraph dev
20
+ npx @langchain/langgraph-cli dev
21
21
  ```
22
22
 
23
- ### `langgraph build`
23
+ ### `langgraphjs build`
24
24
 
25
25
  Build a Docker image for your LangGraph.js application.
26
26
 
27
27
  ```bash
28
- langgraph build
28
+ npx @langchain/langgraph-cli build
29
29
  ```
30
30
 
31
- ### `langgraph up`
31
+ ### `langgraphjs up`
32
32
 
33
33
  Run LangGraph.js API server in Docker.
34
34
 
35
35
  ```bash
36
- langgraph up
36
+ npx @langchain/langgraph-cli up
37
37
  ```
38
38
 
39
- ### `langgraph dockerfile`
39
+ ### `langgraphjs dockerfile`
40
40
 
41
41
  Generate a Dockerfile for custom deployments
42
42
 
43
43
  ```bash
44
- langgraph dockerfile <save path>
44
+ npx @langchain/langgraph-cli dockerfile <save path>
45
45
  ```
46
46
 
47
47
  ## Configuration
@@ -1,7 +1,7 @@
1
1
  import { Command } from "@commander-js/extra-typings";
2
2
  import { version } from "./version.mjs";
3
3
  export const builder = new Command()
4
- .name("langgraph")
4
+ .name("langgraphjs")
5
5
  .description("LangGraph.js CLI")
6
6
  .version(version)
7
7
  .enablePositionalOptions();
@@ -119,5 +119,9 @@ class InMemorySaver extends MemorySaver {
119
119
  }
120
120
  });
121
121
  }
122
+ toJSON() {
123
+ // Prevent serialization of internal state
124
+ return "[InMemorySaver]";
125
+ }
122
126
  }
123
127
  export const checkpointer = new InMemorySaver();
@@ -33,5 +33,9 @@ class InMemoryStore extends BaseMemoryStore {
33
33
  async listNamespaces(...args) {
34
34
  return await conn.with(() => super.listNamespaces(...args));
35
35
  }
36
+ toJSON() {
37
+ // Prevent serialization of internal state
38
+ return "[InMemoryStore]";
39
+ }
36
40
  }
37
41
  export const store = new InMemoryStore();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-cli",
3
- "version": "0.0.0-preview.7",
3
+ "version": "0.0.0-preview.8",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -8,7 +8,7 @@
8
8
  "license": "Elastic-2.0",
9
9
  "main": "./dist/server.mjs",
10
10
  "bin": {
11
- "langgraph": "dist/cli/cli.mjs"
11
+ "langgraphjs": "dist/cli/cli.mjs"
12
12
  },
13
13
  "files": [
14
14
  "dist/"