@langchain/langgraph-api 0.0.31 → 0.0.33
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.
|
@@ -4,14 +4,19 @@ import type {
|
|
|
4
4
|
UpdateType,
|
|
5
5
|
StateDefinition,
|
|
6
6
|
} from "@langchain/langgraph";
|
|
7
|
-
import type { Graph } from "@langchain/langgraph";
|
|
8
|
-
import type { Pregel } from "@langchain/langgraph/pregel";
|
|
9
7
|
|
|
10
8
|
// @ts-expect-error
|
|
11
|
-
type AnyPregel =
|
|
9
|
+
type AnyPregel = {
|
|
10
|
+
lg_is_pregel: boolean;
|
|
11
|
+
stream: (...args: any[]) => any;
|
|
12
|
+
invoke: (...args: any[]) => any;
|
|
13
|
+
};
|
|
12
14
|
|
|
13
15
|
// @ts-expect-error
|
|
14
|
-
type AnyGraph =
|
|
16
|
+
type AnyGraph = {
|
|
17
|
+
compiled: boolean;
|
|
18
|
+
compile: (...args: any[]) => any;
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
type Wrap<T> = (a: T) => void;
|
|
17
22
|
type MatchBaseMessage<T> = T extends BaseMessage ? BaseMessage : never;
|
package/dist/server.mjs
CHANGED
|
@@ -90,6 +90,8 @@ export async function startServer(options) {
|
|
|
90
90
|
truncate({ runs, threads, assistants, checkpointer, store });
|
|
91
91
|
return c.json({ ok: true });
|
|
92
92
|
});
|
|
93
|
+
app.use(cors(options.http?.cors));
|
|
94
|
+
app.use(requestLogger());
|
|
93
95
|
if (options.auth?.path) {
|
|
94
96
|
logger.info(`Loading auth from ${options.auth.path}`);
|
|
95
97
|
await registerAuth(options.auth, { cwd: options.cwd });
|
|
@@ -100,8 +102,6 @@ export async function startServer(options) {
|
|
|
100
102
|
const { api } = await registerHttp(options.http.app, { cwd: options.cwd });
|
|
101
103
|
app.route("/", api);
|
|
102
104
|
}
|
|
103
|
-
app.use(cors(options.http?.cors));
|
|
104
|
-
app.use(requestLogger());
|
|
105
105
|
app.use(ensureContentType());
|
|
106
106
|
if (!options.http?.disable_meta)
|
|
107
107
|
app.route("/", meta);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^18.19.0 || >=20.16.0"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"winston": "^3.17.0",
|
|
54
54
|
"winston-console-format": "^1.0.8",
|
|
55
55
|
"zod": "^3.23.8",
|
|
56
|
-
"@langchain/langgraph-ui": "0.0.
|
|
56
|
+
"@langchain/langgraph-ui": "0.0.33"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@langchain/core": "^0.3.42",
|