@langchain/langgraph-api 0.0.36 → 0.0.38

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,7 +4,7 @@ import type { GraphSchema, GraphSpec } from "./parser/index.mjs";
4
4
  export declare const GRAPHS: Record<string, CompiledGraph<string> | CompiledGraphFactory<string>>;
5
5
  export declare const GRAPH_SPEC: Record<string, GraphSpec>;
6
6
  export declare const GRAPH_SCHEMA: Record<string, Record<string, GraphSchema>>;
7
- export declare const NAMESPACE_GRAPH: Uint8Array;
7
+ export declare const NAMESPACE_GRAPH: Uint8Array<ArrayBufferLike>;
8
8
  export declare const getAssistantId: (graphId: string) => string;
9
9
  export declare function registerFromEnv(specs: Record<string, string>, options: {
10
10
  cwd: string;
@@ -1,6 +1,6 @@
1
1
  import type { CompiledGraph } from "@langchain/langgraph";
2
2
  export declare const GRAPHS: Record<string, CompiledGraph<string>>;
3
- export declare const NAMESPACE_GRAPH: Uint8Array;
3
+ export declare const NAMESPACE_GRAPH: Uint8Array<ArrayBufferLike>;
4
4
  export type CompiledGraphFactory<T extends string> = (config: {
5
5
  configurable?: Record<string, unknown>;
6
6
  }) => Promise<CompiledGraph<T>>;
@@ -147,12 +147,17 @@ export class SubgraphExtractor {
147
147
  };
148
148
  getAugmentedSourceFile = (suffix, name) => {
149
149
  const vars = this.getSubgraphsVariables(name);
150
+ const typeSuffix = suffix.replace(/[^a-zA-Z0-9]/g, "_");
150
151
  const typeExports = [
151
- { typeName: `__langgraph__${name}`, valueName: name, graphName: name },
152
+ {
153
+ typeName: `__langgraph__${name}_${typeSuffix}`,
154
+ valueName: name,
155
+ graphName: name,
156
+ },
152
157
  ];
153
158
  for (const { subgraph, node, namespace } of vars) {
154
159
  typeExports.push({
155
- typeName: `__langgraph__${namespace.join("_")}_${node}`,
160
+ typeName: `__langgraph__${namespace.join("_")}_${node}_${typeSuffix}`,
156
161
  valueName: subgraph.name,
157
162
  graphName: [...namespace, node].join("|"),
158
163
  });
@@ -119,7 +119,7 @@ export declare class Assistants {
119
119
  metadata?: Metadata;
120
120
  limit: number;
121
121
  offset: number;
122
- }, auth: AuthContext | undefined): AsyncGenerator<any, void, unknown>;
122
+ }, auth: AuthContext | undefined): AsyncGenerator<any, void, any>;
123
123
  static get(assistant_id: string, auth: AuthContext | undefined): Promise<Assistant>;
124
124
  static put(assistant_id: string, options: {
125
125
  config: RunnableConfig;
@@ -14,5 +14,5 @@ export declare class FileSystemPersistence<Schema> {
14
14
  with<T>(fn: (data: Schema) => T): Promise<T>;
15
15
  withGenerator<T extends AsyncGenerator<any>>(fn: ((data: Schema, options: {
16
16
  schedulePersist: () => void;
17
- }) => T) | T): AsyncGenerator<any, void, unknown>;
17
+ }) => T) | T): AsyncGenerator<any, void, any>;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -53,11 +53,11 @@
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.36"
56
+ "@langchain/langgraph-ui": "0.0.38"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@langchain/core": "^0.3.42",
60
- "@langchain/langgraph": "^0.2.57",
60
+ "@langchain/langgraph": "^0.2.57 || ^0.3.0",
61
61
  "@langchain/langgraph-checkpoint": "~0.0.16",
62
62
  "@langchain/langgraph-sdk": "~0.0.70",
63
63
  "typescript": "^5.5.4"
@@ -68,7 +68,9 @@
68
68
  }
69
69
  },
70
70
  "devDependencies": {
71
- "typescript": "^5.5.4",
71
+ "@langchain/core": "^0.3.42",
72
+ "@langchain/langgraph": "^0.2.57",
73
+ "@langchain/langgraph-checkpoint": "~0.0.16",
72
74
  "@langchain/langgraph-sdk": "^0.0.77",
73
75
  "@types/babel__code-frame": "^7.0.6",
74
76
  "@types/node": "^22.2.0",
@@ -79,6 +81,7 @@
79
81
  "jose": "^6.0.10",
80
82
  "postgres": "^3.4.5",
81
83
  "prettier": "^3.3.3",
84
+ "typescript": "^5.5.4",
82
85
  "vitest": "^3.0.5"
83
86
  },
84
87
  "scripts": {