@langchain/langgraph-cli 0.0.40 → 0.0.42
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/cli.mjs +0 -0
- package/dist/docker/docker.mjs +27 -7
- package/package.json +12 -11
package/dist/cli/cli.mjs
CHANGED
|
File without changes
|
package/dist/docker/docker.mjs
CHANGED
|
@@ -110,7 +110,10 @@ export async function assembleLocalDeps(configPath, config) {
|
|
|
110
110
|
const rfile = path.resolve(resolved, "requirements.txt");
|
|
111
111
|
rebuildFiles.push(rfile);
|
|
112
112
|
pipReqs.push([
|
|
113
|
-
path
|
|
113
|
+
path
|
|
114
|
+
.relative(path.dirname(configPath), rfile)
|
|
115
|
+
.split(path.sep)
|
|
116
|
+
.join("/"),
|
|
114
117
|
`${containerPath}/requirements.txt`,
|
|
115
118
|
]);
|
|
116
119
|
}
|
|
@@ -124,7 +127,10 @@ export async function assembleLocalDeps(configPath, config) {
|
|
|
124
127
|
"pnpm-lock.yaml",
|
|
125
128
|
"bun.lockb",
|
|
126
129
|
]) {
|
|
127
|
-
const jsFile = path
|
|
130
|
+
const jsFile = path
|
|
131
|
+
.resolve(path.dirname(configPath), name)
|
|
132
|
+
.split(path.sep)
|
|
133
|
+
.join("/");
|
|
128
134
|
rebuildFiles.push(jsFile);
|
|
129
135
|
}
|
|
130
136
|
workingDir ??= `/deps/${path.basename(path.dirname(configPath))}`;
|
|
@@ -149,13 +155,19 @@ async function updateGraphPaths(configPath, config, localDeps) {
|
|
|
149
155
|
find: {
|
|
150
156
|
for (const realPath of Object.keys(localDeps.realPkgs)) {
|
|
151
157
|
if (resolved.startsWith(realPath)) {
|
|
152
|
-
moduleStr =
|
|
158
|
+
moduleStr = path
|
|
159
|
+
.join("/deps", path.basename(realPath), path.relative(realPath, resolved))
|
|
160
|
+
.split(path.sep)
|
|
161
|
+
.join("/");
|
|
153
162
|
break find;
|
|
154
163
|
}
|
|
155
164
|
}
|
|
156
165
|
for (const [fauxPkg, [_, destPath]] of Object.entries(localDeps.fauxPkgs)) {
|
|
157
166
|
if (resolved.startsWith(fauxPkg)) {
|
|
158
|
-
moduleStr =
|
|
167
|
+
moduleStr = path
|
|
168
|
+
.join(destPath, path.relative(fauxPkg, resolved))
|
|
169
|
+
.split(path.sep)
|
|
170
|
+
.join("/");
|
|
159
171
|
break find;
|
|
160
172
|
}
|
|
161
173
|
throw new Error(`Module '${importStr}' not found in 'dependencies' list. Add its containing package to 'dependencies' list.`);
|
|
@@ -198,7 +210,9 @@ export async function configToDocker(configPath, config, localDeps, options) {
|
|
|
198
210
|
: undefined;
|
|
199
211
|
const pipReqs = localDeps.pipReqs.map(([reqpath, destpath]) => `ADD ${reqpath} ${destpath}`);
|
|
200
212
|
if (pipReqs.length) {
|
|
201
|
-
pipReqs.push(`RUN ${pipInstall} ${localDeps.pipReqs
|
|
213
|
+
pipReqs.push(`RUN ${pipInstall} ${localDeps.pipReqs
|
|
214
|
+
.map(([, r]) => `-r ${r}`)
|
|
215
|
+
.join(" ")}`);
|
|
202
216
|
}
|
|
203
217
|
const localPkg = Object.entries(localDeps.realPkgs).map(([fullpath, relpath]) => `ADD ${relpath} /deps/${path.basename(fullpath)}`);
|
|
204
218
|
const fauxPkgs = Object.entries(localDeps.fauxPkgs).flatMap(([fullpath, [relpath, destpath]]) => [
|
|
@@ -296,8 +310,14 @@ export async function configToWatch(configPath, config, localDeps) {
|
|
|
296
310
|
ignore: watchIgnore,
|
|
297
311
|
});
|
|
298
312
|
}
|
|
299
|
-
if (watch.length > 0)
|
|
300
|
-
return watch
|
|
313
|
+
if (watch.length > 0) {
|
|
314
|
+
return watch.map((item) => ({
|
|
315
|
+
...item,
|
|
316
|
+
path: item.path.split(path.sep).join("/"),
|
|
317
|
+
target: item.target?.split(path.sep).join("/"),
|
|
318
|
+
ignore: item.ignore?.map((i) => i.split(path.sep).join("/")),
|
|
319
|
+
}));
|
|
320
|
+
}
|
|
301
321
|
return undefined;
|
|
302
322
|
}
|
|
303
323
|
export async function configToCompose(configPath, config, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -19,20 +19,21 @@
|
|
|
19
19
|
"url": "git@github.com:langchain-ai/langgraphjs-api.git"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
|
-
"clean": "
|
|
23
|
-
"build": "
|
|
22
|
+
"clean": "rm -rf dist/ .turbo/",
|
|
23
|
+
"build": "yarn turbo:command build:internal --filter=@langchain/langgraph-cli",
|
|
24
|
+
"build:internal": "yarn clean && node scripts/build.mjs",
|
|
24
25
|
"prepack": "yarn run build",
|
|
25
26
|
"typecheck": "tsc --noEmit",
|
|
26
27
|
"cli": "tsx src/cli/cli.mts",
|
|
27
28
|
"cli:watch": "tsx watch src/cli/cli.mts",
|
|
28
|
-
"test": "vitest",
|
|
29
|
+
"test": "vitest run",
|
|
29
30
|
"format": "prettier --write .",
|
|
30
31
|
"format:check": "prettier --check ."
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@babel/code-frame": "^7.26.2",
|
|
34
35
|
"@commander-js/extra-typings": "^13.0.0",
|
|
35
|
-
"@langchain/langgraph-api": "
|
|
36
|
+
"@langchain/langgraph-api": "workspace:*",
|
|
36
37
|
"chokidar": "^4.0.3",
|
|
37
38
|
"commander": "^13.0.0",
|
|
38
39
|
"dedent": "^1.5.3",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"execa": "^9.5.2",
|
|
41
42
|
"exit-hook": "^4.0.0",
|
|
42
43
|
"extract-zip": "^2.0.1",
|
|
43
|
-
"langsmith": "^0.
|
|
44
|
+
"langsmith": "^0.3.33",
|
|
44
45
|
"open": "^10.1.0",
|
|
45
46
|
"stacktrace-parser": "^0.1.10",
|
|
46
47
|
"tar": "^7.4.3",
|
|
@@ -51,10 +52,10 @@
|
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"@types/babel__code-frame": "^7.0.6",
|
|
54
|
-
"@types/node": "^
|
|
55
|
-
"prettier": "^
|
|
55
|
+
"@types/node": "^18.15.11",
|
|
56
|
+
"prettier": "^2.8.3",
|
|
56
57
|
"tsx": "^4.19.3",
|
|
57
|
-
"typescript": "^
|
|
58
|
-
"vitest": "^3.
|
|
58
|
+
"typescript": "^4.9.5 || ^5.4.5",
|
|
59
|
+
"vitest": "^3.1.2"
|
|
59
60
|
}
|
|
60
|
-
}
|
|
61
|
+
}
|