@copilotkit/sdk-js 1.69.0 → 1.69.1

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.
Files changed (42) hide show
  1. package/dist/header-propagation.cjs.map +1 -1
  2. package/dist/header-propagation.d.cts.map +1 -1
  3. package/dist/header-propagation.d.mts.map +1 -1
  4. package/dist/header-propagation.mjs.map +1 -1
  5. package/dist/index.d.cts +17 -1
  6. package/dist/index.d.mts +17 -1
  7. package/dist/langchain.cjs.map +1 -1
  8. package/dist/langchain.d.cts +136 -1
  9. package/dist/langchain.d.mts +136 -1
  10. package/dist/langchain.mjs.map +1 -1
  11. package/dist/langgraph/middleware.cjs.map +1 -1
  12. package/dist/langgraph/middleware.d.cts.map +1 -1
  13. package/dist/langgraph/middleware.d.mts.map +1 -1
  14. package/dist/langgraph/middleware.mjs.map +1 -1
  15. package/dist/langgraph/state-schema.cjs.map +1 -1
  16. package/dist/langgraph/state-schema.d.cts.map +1 -1
  17. package/dist/langgraph/state-schema.d.mts.map +1 -1
  18. package/dist/langgraph/state-schema.mjs.map +1 -1
  19. package/dist/langgraph/types.cjs.map +1 -1
  20. package/dist/langgraph/types.d.cts.map +1 -1
  21. package/dist/langgraph/types.d.mts.map +1 -1
  22. package/dist/langgraph/types.mjs.map +1 -1
  23. package/dist/langgraph/utils.cjs.map +1 -1
  24. package/dist/langgraph/utils.d.cts.map +1 -1
  25. package/dist/langgraph/utils.d.mts.map +1 -1
  26. package/dist/langgraph/utils.mjs.map +1 -1
  27. package/dist/langgraph-middlewares.cjs +15 -2
  28. package/dist/langgraph-middlewares.d.cts +30 -1
  29. package/dist/langgraph-middlewares.d.mts +30 -1
  30. package/dist/langgraph-middlewares.mjs +3 -1
  31. package/dist/langgraph.d.cts +208 -1
  32. package/dist/langgraph.d.mts +208 -1
  33. package/package.json +3 -3
  34. package/src/header-propagation.ts +24 -0
  35. package/src/index.ts +38 -1
  36. package/src/langchain.ts +167 -11
  37. package/src/langgraph/index.ts +263 -0
  38. package/src/langgraph/middleware.ts +40 -0
  39. package/src/langgraph/state-schema.ts +54 -0
  40. package/src/langgraph/types.ts +103 -0
  41. package/src/langgraph/utils.ts +117 -0
  42. package/src/langgraph-middlewares.ts +54 -0
@@ -1,3 +1,120 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/sdk-js/langchain — convertActionsToDynamicStructuredTools:
9
+ * No 1:1 v2 replacement is available.
10
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
11
+ * Start at: @copilotkit/runtime/v2
12
+ * V2 docs: https://docs.copilotkit.ai/
13
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
14
+ *
15
+ * @copilotkit/sdk-js/langchain — convertActionToDynamicStructuredTool:
16
+ * No 1:1 v2 replacement is available.
17
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
18
+ * Start at: @copilotkit/runtime/v2
19
+ * V2 docs: https://docs.copilotkit.ai/
20
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
21
+ *
22
+ * @copilotkit/sdk-js/langchain — copilotKitCustomizeConfig:
23
+ * No 1:1 v2 replacement is available.
24
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
25
+ * Start at: @copilotkit/runtime/v2
26
+ * V2 docs: https://docs.copilotkit.ai/
27
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
28
+ *
29
+ * @copilotkit/sdk-js/langchain — copilotKitEmitMessage:
30
+ * No 1:1 v2 replacement is available.
31
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
32
+ * Start at: @copilotkit/runtime/v2
33
+ * V2 docs: https://docs.copilotkit.ai/
34
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
35
+ *
36
+ * @copilotkit/sdk-js/langchain — copilotKitEmitState:
37
+ * No 1:1 v2 replacement is available.
38
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
39
+ * Start at: @copilotkit/runtime/v2
40
+ * V2 docs: https://docs.copilotkit.ai/
41
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
42
+ *
43
+ * @copilotkit/sdk-js/langchain — copilotKitEmitToolCall:
44
+ * No 1:1 v2 replacement is available.
45
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
46
+ * Start at: @copilotkit/runtime/v2
47
+ * V2 docs: https://docs.copilotkit.ai/
48
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
49
+ *
50
+ * @copilotkit/sdk-js/langchain — copilotKitExit:
51
+ * No 1:1 v2 replacement is available.
52
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
53
+ * Start at: @copilotkit/runtime/v2
54
+ * V2 docs: https://docs.copilotkit.ai/
55
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
56
+ *
57
+ * @copilotkit/sdk-js/langgraph — convertActionsToDynamicStructuredTools:
58
+ * No 1:1 v2 replacement is available.
59
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
60
+ * Start at: @copilotkit/runtime/v2
61
+ * V2 docs: https://docs.copilotkit.ai/
62
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
63
+ *
64
+ * @copilotkit/sdk-js/langgraph — convertActionToDynamicStructuredTool:
65
+ * No 1:1 v2 replacement is available.
66
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
67
+ * Start at: @copilotkit/runtime/v2
68
+ * V2 docs: https://docs.copilotkit.ai/
69
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
70
+ *
71
+ * @copilotkit/sdk-js/langgraph — copilotkitCustomizeConfig:
72
+ * No 1:1 v2 replacement is available.
73
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
74
+ * Start at: @copilotkit/runtime/v2
75
+ * V2 docs: https://docs.copilotkit.ai/
76
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
77
+ *
78
+ * @copilotkit/sdk-js/langgraph — copilotkitEmitMessage:
79
+ * No 1:1 v2 replacement is available.
80
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
81
+ * Start at: @copilotkit/runtime/v2
82
+ * V2 docs: https://docs.copilotkit.ai/
83
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
84
+ *
85
+ * @copilotkit/sdk-js/langgraph — copilotkitEmitState:
86
+ * No 1:1 v2 replacement is available.
87
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
88
+ * Start at: @copilotkit/runtime/v2
89
+ * V2 docs: https://docs.copilotkit.ai/
90
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
91
+ *
92
+ * @copilotkit/sdk-js/langgraph — copilotkitEmitToolCall:
93
+ * No 1:1 v2 replacement is available.
94
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
95
+ * Start at: @copilotkit/runtime/v2
96
+ * V2 docs: https://docs.copilotkit.ai/
97
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
98
+ *
99
+ * @copilotkit/sdk-js/langgraph — copilotkitExit:
100
+ * No 1:1 v2 replacement is available.
101
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
102
+ * Start at: @copilotkit/runtime/v2
103
+ * V2 docs: https://docs.copilotkit.ai/
104
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
105
+ *
106
+ * @copilotkit/sdk-js/langgraph — copilotKitInterrupt:
107
+ * No 1:1 v2 replacement is available.
108
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
109
+ * Start at: @copilotkit/runtime/v2
110
+ * V2 docs: https://docs.copilotkit.ai/
111
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
112
+ *
113
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
114
+ *
115
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
116
+ */
117
+
1
118
  import type { RunnableConfig } from "@langchain/core/runnables";
2
119
  import { dispatchCustomEvent } from "@langchain/core/callbacks/dispatch";
3
120
  import {
@@ -1 +1,55 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This is the deprecated v1 entrypoint `@copilotkit/sdk-js/langgraph-middlewares`. Use v2 instead.
5
+ * Migrate to `@copilotkit/runtime/v2` and follow each export's specific
6
+ * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
+ * This entrypoint currently exposes 3 deprecated public exports.
8
+ * V2 source entrypoint: packages/runtime/src/v2/index.ts
9
+ * V2 docs: https://docs.copilotkit.ai/
10
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
12
+ *
13
+ * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1
14
+ * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
1
19
  export * from "@ag-ui/langgraph/middlewares";
20
+
21
+ /* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
22
+ export {
23
+ /**
24
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
25
+ * No 1:1 v2 replacement is available.
26
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
27
+ * Start with `@copilotkit/runtime/v2`.
28
+ * V2 docs: https://docs.copilotkit.ai/
29
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
30
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
31
+ */
32
+ stateItem,
33
+ /**
34
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
35
+ * No 1:1 v2 replacement is available.
36
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
37
+ * Start with `@copilotkit/runtime/v2`.
38
+ * V2 docs: https://docs.copilotkit.ai/
39
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
40
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
41
+ */
42
+ type StateItem,
43
+ /**
44
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
45
+ * No 1:1 v2 replacement is available.
46
+ * Related v2 docs (LangGraph agents): https://docs.copilotkit.ai/agent-spec/langgraph
47
+ * Start with `@copilotkit/runtime/v2`.
48
+ * V2 docs: https://docs.copilotkit.ai/
49
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
50
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
51
+ */
52
+ stateStreamingMiddleware,
53
+ } from "@ag-ui/langgraph/middlewares";
54
+
55
+ /* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */