@langchain/langgraph-api 0.0.71 → 1.0.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @langchain/langgraph-api
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 1e1ecbb: This release updates the package for compatibility with LangGraph v1.0. See the [v1.0 release notes](https://docs.langchain.com/oss/javascript/releases/langgraph-v1) for details on what's new.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [1e1ecbb]
12
+ - @langchain/langgraph-ui@1.0.0
13
+ - @langchain/langgraph-checkpoint@1.0.0
14
+ - @langchain/langgraph-sdk@1.0.0
15
+
3
16
  ## 0.0.71
4
17
 
5
18
  ### Patch Changes
@@ -9,11 +9,11 @@ export declare const NAMESPACE_GRAPH: Uint8Array<ArrayBufferLike>;
9
9
  export declare const getAssistantId: (graphId: string) => string;
10
10
  export declare function registerFromEnv(assistants: AssistantsRepo, specs: Record<string, string>, options: {
11
11
  cwd: string;
12
- }): Promise<(CompiledGraph<string, any, any, Record<string, any>, any, any, unknown> | CompiledGraphFactory<string>)[]>;
12
+ }): Promise<(CompiledGraph<string, any, any, Record<string, any>, any, any, unknown, unknown, any> | CompiledGraphFactory<string>)[]>;
13
13
  export declare function getGraph(graphId: string, config: LangGraphRunnableConfig | undefined, options?: {
14
14
  checkpointer?: BaseCheckpointSaver | null;
15
15
  store?: BaseStore;
16
- }): Promise<CompiledGraph<string, any, any, Record<string, any>, any, any, unknown>>;
16
+ }): Promise<CompiledGraph<string, any, any, Record<string, any>, any, any, unknown, unknown, any>>;
17
17
  export declare function assertGraphExists(graphId: string): void;
18
18
  export declare function getGraphKeys(): string[];
19
19
  export declare function getCachedStaticGraphSchema(graphId: string): Promise<Record<string, GraphSchema>>;
@@ -574,6 +574,7 @@ export declare const CommandSchema: z.ZodObject<{
574
574
  update: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">]>>;
575
575
  resume: z.ZodOptional<z.ZodUnknown>;
576
576
  }, "strip", z.ZodTypeAny, {
577
+ resume?: unknown;
577
578
  update?: Record<string, unknown> | [string, unknown][] | undefined;
578
579
  goto?: string | {
579
580
  node: string;
@@ -582,8 +583,8 @@ export declare const CommandSchema: z.ZodObject<{
582
583
  node: string;
583
584
  input?: unknown;
584
585
  })[] | undefined;
585
- resume?: unknown;
586
586
  }, {
587
+ resume?: unknown;
587
588
  update?: Record<string, unknown> | [string, unknown][] | undefined;
588
589
  goto?: string | {
589
590
  node: string;
@@ -592,7 +593,6 @@ export declare const CommandSchema: z.ZodObject<{
592
593
  node: string;
593
594
  input?: unknown;
594
595
  })[] | undefined;
595
- resume?: unknown;
596
596
  }>;
597
597
  export declare const LangsmithTracer: z.ZodObject<{
598
598
  project_name: z.ZodOptional<z.ZodString>;
@@ -644,6 +644,7 @@ export declare const RunCreate: z.ZodObject<{
644
644
  update: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">]>>;
645
645
  resume: z.ZodOptional<z.ZodUnknown>;
646
646
  }, "strip", z.ZodTypeAny, {
647
+ resume?: unknown;
647
648
  update?: Record<string, unknown> | [string, unknown][] | undefined;
648
649
  goto?: string | {
649
650
  node: string;
@@ -652,8 +653,8 @@ export declare const RunCreate: z.ZodObject<{
652
653
  node: string;
653
654
  input?: unknown;
654
655
  })[] | undefined;
655
- resume?: unknown;
656
656
  }, {
657
+ resume?: unknown;
657
658
  update?: Record<string, unknown> | [string, unknown][] | undefined;
658
659
  goto?: string | {
659
660
  node: string;
@@ -662,7 +663,6 @@ export declare const RunCreate: z.ZodObject<{
662
663
  node: string;
663
664
  input?: unknown;
664
665
  })[] | undefined;
665
- resume?: unknown;
666
666
  }>>;
667
667
  metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
668
668
  context: z.ZodOptional<z.ZodUnknown>;
@@ -749,6 +749,7 @@ export declare const RunCreate: z.ZodObject<{
749
749
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
750
750
  input?: unknown;
751
751
  command?: {
752
+ resume?: unknown;
752
753
  update?: Record<string, unknown> | [string, unknown][] | undefined;
753
754
  goto?: string | {
754
755
  node: string;
@@ -757,7 +758,6 @@ export declare const RunCreate: z.ZodObject<{
757
758
  node: string;
758
759
  input?: unknown;
759
760
  })[] | undefined;
760
- resume?: unknown;
761
761
  } | undefined;
762
762
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
763
763
  interrupt_before?: string[] | "*" | undefined;
@@ -800,6 +800,7 @@ export declare const RunCreate: z.ZodObject<{
800
800
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
801
801
  input?: unknown;
802
802
  command?: {
803
+ resume?: unknown;
803
804
  update?: Record<string, unknown> | [string, unknown][] | undefined;
804
805
  goto?: string | {
805
806
  node: string;
@@ -808,7 +809,6 @@ export declare const RunCreate: z.ZodObject<{
808
809
  node: string;
809
810
  input?: unknown;
810
811
  })[] | undefined;
811
- resume?: unknown;
812
812
  } | undefined;
813
813
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
814
814
  interrupt_before?: string[] | "*" | undefined;
@@ -873,6 +873,7 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
873
873
  update: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">]>>;
874
874
  resume: z.ZodOptional<z.ZodUnknown>;
875
875
  }, "strip", z.ZodTypeAny, {
876
+ resume?: unknown;
876
877
  update?: Record<string, unknown> | [string, unknown][] | undefined;
877
878
  goto?: string | {
878
879
  node: string;
@@ -881,8 +882,8 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
881
882
  node: string;
882
883
  input?: unknown;
883
884
  })[] | undefined;
884
- resume?: unknown;
885
885
  }, {
886
+ resume?: unknown;
886
887
  update?: Record<string, unknown> | [string, unknown][] | undefined;
887
888
  goto?: string | {
888
889
  node: string;
@@ -891,7 +892,6 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
891
892
  node: string;
892
893
  input?: unknown;
893
894
  })[] | undefined;
894
- resume?: unknown;
895
895
  }>>;
896
896
  metadata: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
897
897
  context: z.ZodOptional<z.ZodUnknown>;
@@ -978,6 +978,7 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
978
978
  metadata?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
979
979
  input?: unknown;
980
980
  command?: {
981
+ resume?: unknown;
981
982
  update?: Record<string, unknown> | [string, unknown][] | undefined;
982
983
  goto?: string | {
983
984
  node: string;
@@ -986,7 +987,6 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
986
987
  node: string;
987
988
  input?: unknown;
988
989
  })[] | undefined;
989
- resume?: unknown;
990
990
  } | undefined;
991
991
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
992
992
  interrupt_before?: string[] | "*" | undefined;
@@ -1029,6 +1029,7 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1029
1029
  metadata?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
1030
1030
  input?: unknown;
1031
1031
  command?: {
1032
+ resume?: unknown;
1032
1033
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1033
1034
  goto?: string | {
1034
1035
  node: string;
@@ -1037,7 +1038,6 @@ export declare const RunBatchCreate: z.ZodArray<z.ZodObject<{
1037
1038
  node: string;
1038
1039
  input?: unknown;
1039
1040
  })[] | undefined;
1040
- resume?: unknown;
1041
1041
  } | undefined;
1042
1042
  stream_mode?: "values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints" | ("values" | "debug" | "messages" | "messages-tuple" | "custom" | "updates" | "events" | "tasks" | "checkpoints")[] | undefined;
1043
1043
  interrupt_before?: string[] | "*" | undefined;
@@ -1200,6 +1200,7 @@ export declare const ThreadCreate: z.ZodObject<{
1200
1200
  update: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">]>>;
1201
1201
  resume: z.ZodOptional<z.ZodUnknown>;
1202
1202
  }, "strip", z.ZodTypeAny, {
1203
+ resume?: unknown;
1203
1204
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1204
1205
  goto?: string | {
1205
1206
  node: string;
@@ -1208,8 +1209,8 @@ export declare const ThreadCreate: z.ZodObject<{
1208
1209
  node: string;
1209
1210
  input?: unknown;
1210
1211
  })[] | undefined;
1211
- resume?: unknown;
1212
1212
  }, {
1213
+ resume?: unknown;
1213
1214
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1214
1215
  goto?: string | {
1215
1216
  node: string;
@@ -1218,13 +1219,13 @@ export declare const ThreadCreate: z.ZodObject<{
1218
1219
  node: string;
1219
1220
  input?: unknown;
1220
1221
  })[] | undefined;
1221
- resume?: unknown;
1222
1222
  }>>>;
1223
1223
  as_node: z.ZodString;
1224
1224
  }, "strip", z.ZodTypeAny, {
1225
1225
  as_node: string;
1226
1226
  values?: unknown;
1227
1227
  command?: {
1228
+ resume?: unknown;
1228
1229
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1229
1230
  goto?: string | {
1230
1231
  node: string;
@@ -1233,12 +1234,12 @@ export declare const ThreadCreate: z.ZodObject<{
1233
1234
  node: string;
1234
1235
  input?: unknown;
1235
1236
  })[] | undefined;
1236
- resume?: unknown;
1237
1237
  } | null | undefined;
1238
1238
  }, {
1239
1239
  as_node: string;
1240
1240
  values?: unknown;
1241
1241
  command?: {
1242
+ resume?: unknown;
1242
1243
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1243
1244
  goto?: string | {
1244
1245
  node: string;
@@ -1247,7 +1248,6 @@ export declare const ThreadCreate: z.ZodObject<{
1247
1248
  node: string;
1248
1249
  input?: unknown;
1249
1250
  })[] | undefined;
1250
- resume?: unknown;
1251
1251
  } | null | undefined;
1252
1252
  }>, "many">;
1253
1253
  }, "strip", z.ZodTypeAny, {
@@ -1255,6 +1255,7 @@ export declare const ThreadCreate: z.ZodObject<{
1255
1255
  as_node: string;
1256
1256
  values?: unknown;
1257
1257
  command?: {
1258
+ resume?: unknown;
1258
1259
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1259
1260
  goto?: string | {
1260
1261
  node: string;
@@ -1263,7 +1264,6 @@ export declare const ThreadCreate: z.ZodObject<{
1263
1264
  node: string;
1264
1265
  input?: unknown;
1265
1266
  })[] | undefined;
1266
- resume?: unknown;
1267
1267
  } | null | undefined;
1268
1268
  }[];
1269
1269
  }, {
@@ -1271,6 +1271,7 @@ export declare const ThreadCreate: z.ZodObject<{
1271
1271
  as_node: string;
1272
1272
  values?: unknown;
1273
1273
  command?: {
1274
+ resume?: unknown;
1274
1275
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1275
1276
  goto?: string | {
1276
1277
  node: string;
@@ -1279,7 +1280,6 @@ export declare const ThreadCreate: z.ZodObject<{
1279
1280
  node: string;
1280
1281
  input?: unknown;
1281
1282
  })[] | undefined;
1282
- resume?: unknown;
1283
1283
  } | null | undefined;
1284
1284
  }[];
1285
1285
  }>, "many">>;
@@ -1295,6 +1295,7 @@ export declare const ThreadCreate: z.ZodObject<{
1295
1295
  as_node: string;
1296
1296
  values?: unknown;
1297
1297
  command?: {
1298
+ resume?: unknown;
1298
1299
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1299
1300
  goto?: string | {
1300
1301
  node: string;
@@ -1303,7 +1304,6 @@ export declare const ThreadCreate: z.ZodObject<{
1303
1304
  node: string;
1304
1305
  input?: unknown;
1305
1306
  })[] | undefined;
1306
- resume?: unknown;
1307
1307
  } | null | undefined;
1308
1308
  }[];
1309
1309
  }[] | undefined;
@@ -1316,6 +1316,7 @@ export declare const ThreadCreate: z.ZodObject<{
1316
1316
  as_node: string;
1317
1317
  values?: unknown;
1318
1318
  command?: {
1319
+ resume?: unknown;
1319
1320
  update?: Record<string, unknown> | [string, unknown][] | undefined;
1320
1321
  goto?: string | {
1321
1322
  node: string;
@@ -1324,7 +1325,6 @@ export declare const ThreadCreate: z.ZodObject<{
1324
1325
  node: string;
1325
1326
  input?: unknown;
1326
1327
  })[] | undefined;
1327
- resume?: unknown;
1328
1328
  } | null | undefined;
1329
1329
  }[];
1330
1330
  }[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-api",
3
- "version": "0.0.71",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^18.19.0 || >=20.16.0"
@@ -54,7 +54,7 @@
54
54
  "build": "yarn turbo:command build:internal --filter=@langchain/langgraph-api",
55
55
  "build:internal": "yarn clean && node scripts/build.mjs",
56
56
  "dev": "tsx ./tests/utils.server.mts --dev",
57
- "prepack": "yarn run build",
57
+ "prepublish": "yarn build",
58
58
  "typecheck": "tsc --noEmit",
59
59
  "test": "vitest run",
60
60
  "format": "prettier --write .",
@@ -64,7 +64,7 @@
64
64
  "@babel/code-frame": "^7.26.2",
65
65
  "@hono/node-server": "^1.12.0",
66
66
  "@hono/zod-validator": "^0.2.2",
67
- "@langchain/langgraph-ui": "0.0.71",
67
+ "@langchain/langgraph-ui": "1.0.0",
68
68
  "@types/json-schema": "^7.0.15",
69
69
  "@typescript/vfs": "^1.6.0",
70
70
  "dedent": "^1.5.3",
@@ -83,10 +83,10 @@
83
83
  "zod": "^3.23.8"
84
84
  },
85
85
  "peerDependencies": {
86
- "@langchain/core": "^0.3.59 || ^1.0.0-alpha",
87
- "@langchain/langgraph": "^0.2.57 || ^0.3.0 || ^0.4.0 || ^1.0.0-alpha",
88
- "@langchain/langgraph-checkpoint": "~0.0.16 || ^0.1.0",
89
- "@langchain/langgraph-sdk": "~0.0.70 || ^0.1.0",
86
+ "@langchain/core": "^1.0.1",
87
+ "@langchain/langgraph": "^0.2.57 || ^0.3.0 || ^0.4.0 || ^1.0.0-alpha || ^1.0.0",
88
+ "@langchain/langgraph-checkpoint": "~1.0.0",
89
+ "@langchain/langgraph-sdk": "~1.0.0",
90
90
  "typescript": "^5.5.4"
91
91
  },
92
92
  "peerDependenciesMeta": {
@@ -95,10 +95,10 @@
95
95
  }
96
96
  },
97
97
  "devDependencies": {
98
- "@langchain/core": "^0.3.59",
99
- "@langchain/langgraph": "0.4.9",
100
- "@langchain/langgraph-checkpoint": "0.1.1",
101
- "@langchain/langgraph-sdk": "0.1.10",
98
+ "@langchain/core": "^1.0.0",
99
+ "@langchain/langgraph": "1.0.0",
100
+ "@langchain/langgraph-checkpoint": "1.0.0",
101
+ "@langchain/langgraph-sdk": "1.0.0",
102
102
  "@types/babel__code-frame": "^7.0.6",
103
103
  "@types/node": "^18.15.11",
104
104
  "@types/react": "^19.0.8",