@langchain/langgraph-cli 0.0.67 → 0.0.69
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/CHANGELOG.md +16 -0
- package/dist/cli/cli.mjs +1 -0
- package/dist/cli/new.mjs +13 -0
- package/dist/cli/utils/analytics.mjs +2 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @langchain/langgraph-cli
|
|
2
2
|
|
|
3
|
+
## 0.0.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [f2aa533]
|
|
8
|
+
- @langchain/langgraph-api@0.0.69
|
|
9
|
+
|
|
10
|
+
## 0.0.68
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 7770c6a: Add `new` command to `@langchain/langgraph-cli` CLI
|
|
15
|
+
- Updated dependencies [7770c6a]
|
|
16
|
+
- create-langgraph@0.0.4
|
|
17
|
+
- @langchain/langgraph-api@0.0.68
|
|
18
|
+
|
|
3
19
|
## 0.0.67
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cli/cli.mjs
CHANGED
package/dist/cli/new.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { builder } from "./utils/builder.mjs";
|
|
3
|
+
import { withAnalytics } from "./utils/analytics.mjs";
|
|
4
|
+
import { createNew } from "create-langgraph";
|
|
5
|
+
import { gracefulExit } from "exit-hook";
|
|
6
|
+
builder
|
|
7
|
+
.command("new")
|
|
8
|
+
.description("Create a new LangGraph project")
|
|
9
|
+
.argument("[path]", "Path to create the project")
|
|
10
|
+
.option("-t, --template <template>", "Template to use", "")
|
|
11
|
+
.hook("preAction", withAnalytics())
|
|
12
|
+
.exitOverride((error) => gracefulExit(error.exitCode))
|
|
13
|
+
.action((path, options) => createNew(path, options.template));
|
|
@@ -19,7 +19,7 @@ async function logData(data) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
let analyticsPromise = Promise.resolve();
|
|
22
|
-
export function withAnalytics(fn) {
|
|
22
|
+
export function withAnalytics(fn, options) {
|
|
23
23
|
if (process.env.LANGGRAPH_CLI_NO_ANALYTICS === "1") {
|
|
24
24
|
return () => void 0;
|
|
25
25
|
}
|
|
@@ -29,7 +29,7 @@ export function withAnalytics(fn) {
|
|
|
29
29
|
os_version: os.release(),
|
|
30
30
|
node_version: process.version,
|
|
31
31
|
cli_version: version,
|
|
32
|
-
cli_command: actionCommand.name(),
|
|
32
|
+
cli_command: options?.name ?? actionCommand.name(),
|
|
33
33
|
params: fn?.(actionCommand) ?? {},
|
|
34
34
|
}).catch(() => { }));
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.69",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/code-frame": "^7.26.2",
|
|
35
35
|
"@commander-js/extra-typings": "^13.0.0",
|
|
36
|
-
"@langchain/langgraph-api": "0.0.
|
|
36
|
+
"@langchain/langgraph-api": "0.0.69",
|
|
37
37
|
"chokidar": "^4.0.3",
|
|
38
38
|
"commander": "^13.0.0",
|
|
39
|
+
"create-langgraph": "0.0.4",
|
|
39
40
|
"dedent": "^1.5.3",
|
|
40
41
|
"dotenv": "^16.4.7",
|
|
41
42
|
"execa": "^9.5.2",
|