@copilotkit/runtime 2.0.0-rc.61 → 2.0.0-rc.63

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 (98) hide show
  1. package/dist/agent.cjs +1 -0
  2. package/dist/agent.cjs.map +1 -1
  3. package/dist/agent.d.cts +10 -0
  4. package/dist/agent.d.cts.map +1 -1
  5. package/dist/agent.d.mts +10 -0
  6. package/dist/agent.d.mts.map +1 -1
  7. package/dist/agent.mjs +1 -0
  8. package/dist/agent.mjs.map +1 -1
  9. package/dist/index.cjs +4 -0
  10. package/dist/index.d.cts +4 -3
  11. package/dist/index.d.mts +4 -3
  12. package/dist/index.mjs +3 -2
  13. package/dist/runtime/core/channel-manager.cjs +51 -162
  14. package/dist/runtime/core/channel-manager.cjs.map +1 -1
  15. package/dist/runtime/core/channel-manager.d.cts +1 -1
  16. package/dist/runtime/core/channel-manager.d.cts.map +1 -1
  17. package/dist/runtime/core/channel-manager.d.mts +1 -1
  18. package/dist/runtime/core/channel-manager.d.mts.map +1 -1
  19. package/dist/runtime/core/channel-manager.mjs +51 -162
  20. package/dist/runtime/core/channel-manager.mjs.map +1 -1
  21. package/dist/runtime/core/fetch-cors.cjs +4 -2
  22. package/dist/runtime/core/fetch-cors.cjs.map +1 -1
  23. package/dist/runtime/core/fetch-cors.mjs +4 -2
  24. package/dist/runtime/core/fetch-cors.mjs.map +1 -1
  25. package/dist/runtime/core/package-info.cjs +1 -1
  26. package/dist/runtime/core/package-info.mjs +1 -1
  27. package/dist/runtime/core/runtime.cjs +3 -1
  28. package/dist/runtime/core/runtime.cjs.map +1 -1
  29. package/dist/runtime/core/runtime.d.cts +36 -7
  30. package/dist/runtime/core/runtime.d.cts.map +1 -1
  31. package/dist/runtime/core/runtime.d.mts +36 -7
  32. package/dist/runtime/core/runtime.d.mts.map +1 -1
  33. package/dist/runtime/core/runtime.mjs +3 -1
  34. package/dist/runtime/core/runtime.mjs.map +1 -1
  35. package/dist/runtime/core/thread-run.cjs +459 -0
  36. package/dist/runtime/core/thread-run.cjs.map +1 -0
  37. package/dist/runtime/core/thread-run.d.cts +201 -0
  38. package/dist/runtime/core/thread-run.d.cts.map +1 -0
  39. package/dist/runtime/core/thread-run.d.mts +201 -0
  40. package/dist/runtime/core/thread-run.d.mts.map +1 -0
  41. package/dist/runtime/core/thread-run.mjs +456 -0
  42. package/dist/runtime/core/thread-run.mjs.map +1 -0
  43. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs +6 -7
  44. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs.map +1 -1
  45. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.cts.map +1 -1
  46. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.mts.map +1 -1
  47. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs +6 -7
  48. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs.map +1 -1
  49. package/dist/runtime/handlers/get-runtime-info.cjs +2 -1
  50. package/dist/runtime/handlers/get-runtime-info.cjs.map +1 -1
  51. package/dist/runtime/handlers/get-runtime-info.mjs +2 -1
  52. package/dist/runtime/handlers/get-runtime-info.mjs.map +1 -1
  53. package/dist/runtime/handlers/intelligence/run.cjs +0 -1
  54. package/dist/runtime/handlers/intelligence/run.cjs.map +1 -1
  55. package/dist/runtime/handlers/intelligence/run.mjs +0 -1
  56. package/dist/runtime/handlers/intelligence/run.mjs.map +1 -1
  57. package/dist/runtime/handlers/intelligence/thread-names.cjs +43 -70
  58. package/dist/runtime/handlers/intelligence/thread-names.cjs.map +1 -1
  59. package/dist/runtime/handlers/intelligence/thread-names.mjs +43 -70
  60. package/dist/runtime/handlers/intelligence/thread-names.mjs.map +1 -1
  61. package/dist/runtime/index.d.cts +3 -2
  62. package/dist/runtime/index.d.mts +3 -2
  63. package/dist/runtime/intelligence-platform/client.cjs +20 -2
  64. package/dist/runtime/intelligence-platform/client.cjs.map +1 -1
  65. package/dist/runtime/intelligence-platform/client.d.cts +13 -0
  66. package/dist/runtime/intelligence-platform/client.d.cts.map +1 -1
  67. package/dist/runtime/intelligence-platform/client.d.mts +13 -0
  68. package/dist/runtime/intelligence-platform/client.d.mts.map +1 -1
  69. package/dist/runtime/intelligence-platform/client.mjs +20 -2
  70. package/dist/runtime/intelligence-platform/client.mjs.map +1 -1
  71. package/dist/runtime/runner/index.d.cts +1 -1
  72. package/dist/runtime/runner/index.d.mts +1 -1
  73. package/dist/runtime/runner/index.mjs +1 -1
  74. package/dist/runtime/runner/intelligence.cjs +107 -23
  75. package/dist/runtime/runner/intelligence.cjs.map +1 -1
  76. package/dist/runtime/runner/intelligence.d.cts +51 -2
  77. package/dist/runtime/runner/intelligence.d.cts.map +1 -1
  78. package/dist/runtime/runner/intelligence.d.mts +51 -2
  79. package/dist/runtime/runner/intelligence.d.mts.map +1 -1
  80. package/dist/runtime/runner/intelligence.mjs +108 -25
  81. package/dist/runtime/runner/intelligence.mjs.map +1 -1
  82. package/dist/v2/index.cjs +131 -0
  83. package/dist/v2/index.cjs.map +1 -0
  84. package/dist/v2/index.d.cts +253 -6
  85. package/dist/v2/index.d.cts.map +1 -0
  86. package/dist/v2/index.d.mts +253 -6
  87. package/dist/v2/index.d.mts.map +1 -0
  88. package/dist/v2/index.mjs +65 -0
  89. package/dist/v2/index.mjs.map +1 -0
  90. package/dist/v2/node.cjs +44 -0
  91. package/dist/v2/node.cjs.map +1 -0
  92. package/dist/v2/node.d.cts +42 -5
  93. package/dist/v2/node.d.cts.map +1 -0
  94. package/dist/v2/node.d.mts +42 -5
  95. package/dist/v2/node.d.mts.map +1 -0
  96. package/dist/v2/node.mjs +39 -0
  97. package/dist/v2/node.mjs.map +1 -0
  98. package/package.json +16 -16
@@ -1,8 +1,178 @@
1
+ import { experimental_d_exports } from "../runtime/intelligence-platform/experimental.mjs";
2
+ import { AgentRunner, AgentRunnerConnectRequest, AgentRunnerIsRunningRequest, AgentRunnerRunRequest, AgentRunnerStopRequest, LocalThreadEndpointRecord, LocalThreadEndpointRunner, LocalThreadEndpointScope, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAlreadyRunningError, ThreadOwnershipRunner, enforcesThreadOwnership, isThreadAccessDeniedError, supportsLocalThreadEndpoints, ɵSERVER_THREAD_OWNER, ɵresolveThreadOwner } from "../runtime/runner/agent-runner.mjs";
3
+ import { ThreadAccessMode, ThreadsConfig } from "../runtime/handlers/shared/thread-access.mjs";
4
+ import { CopilotKitRuntimeLogger } from "../runtime/core/logger.mjs";
5
+ import { TranscribeFileOptions, TranscriptionService } from "../runtime/transcription-service/transcription-service.mjs";
6
+ import { IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, STOP_RECORD_DEADLINE_MS } from "../runtime/runner/intelligence.mjs";
7
+ import { GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult } from "../runtime/intelligence-platform/learned-skills.mjs";
8
+ import { A2UIVersion, AgentFactoryContext, AgentsConfig, AgentsFactory, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeLike, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, GenerativeUIOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, OpenGenerativeUIConfig, OpenGenerativeUIOptions, RuntimeWithDeclaredChannels, ThreadNameGenerationConfig, VERSION, isIntelligenceRuntime, resolveAgents } from "../runtime/core/runtime.mjs";
9
+ import { CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeUser, GetLearningContainerId, GetTrajectoryLearningContainerIds, LearningContainerSelectorInput, TrajectoryLearningContainerSelectorInput } from "../runtime/core/learning.mjs";
10
+ import { CopilotKitIntelligence, CopilotKitIntelligenceConfig, CreateThreadRequest, ListThreadsResponse, PlatformRequestError, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, UpdateThreadRequest } from "../runtime/intelligence-platform/client.mjs";
11
+ import { BuiltInAgentLearnedSkills, BuiltInAgentLearnedSkillsOptions } from "../agent/learned-skills.mjs";
12
+ import { convertAISDKStream } from "../agent/converters/aisdk.mjs";
13
+ import { TanStackChatMessage, TanStackInputResult, convertInputToTanStackAI, convertTanStackStream } from "../agent/converters/tanstack.mjs";
14
+ import { BuiltInAgent, BuiltInAgentAISDKFactoryConfig, BuiltInAgentClassicConfig, BuiltInAgentConfiguration, BuiltInAgentCustomFactoryConfig, BuiltInAgentFactoryConfig, BuiltInAgentFactoryContext, BuiltInAgentTanStackFactoryConfig, InterruptSignal, OverridableProperty, ToolDefinition, defineTool } from "../agent.mjs";
15
+ import { GenerativeUIMiddleware } from "../runtime/generative-ui/generative-ui-middleware.mjs";
16
+ import { A2UIV09BridgeMiddleware } from "../runtime/generative-ui/a2ui-v09-middleware.mjs";
17
+ import { GenerativeUISurfaceWriter, createSurfaceWriter } from "../runtime/generative-ui/surface-writer.mjs";
18
+ import { ArgsParser, GenerateSandboxedUIParams, OnParamEvent, OpenGenerativeUIMiddleware } from "../runtime/event-transforms/open-generative-ui-middleware.mjs";
19
+ import { RecordedEventTransformOptions, transformRecordedEvents } from "../runtime/event-transforms/recorded-events.mjs";
20
+ import { A2UIMiddleware, A2UIMiddlewareConfig } from "../runtime/event-transforms/index.mjs";
21
+ import { InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵestimateBytes, ɵnormalizeLimits } from "../runtime/runner/in-memory.mjs";
22
+ import { FinalizeRunOptions, RunEventFinalizer, createRunEventFinalizer, finalizeRunEvents } from "../runtime/runner/index.mjs";
23
+ import { RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, ThreadRunError, ThreadRunErrorReason, runAgentInThread } from "../runtime/core/thread-run.mjs";
24
+ import { ChannelStatus, ChannelsControl } from "../runtime/core/channel-manager.mjs";
25
+ import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "../runtime/core/hooks.mjs";
26
+ import { CopilotKitCorsConfig } from "../runtime/core/fetch-cors.mjs";
27
+ import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.mjs";
28
+ import "../index.mjs";
29
+
30
+ //#region src/v2/index.d.ts
1
31
  /**
2
- * @deprecated "@copilotkit/runtime/v2" is a deprecated alias of "@copilotkit/runtime".
3
- * Import from "@copilotkit/runtime".
4
- * @module
32
+ * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
33
+ * name is an alias of it. To move your imports, run
34
+ * `npx codemod @copilotkit/v2-migration`.
5
35
  */
36
+ declare const CopilotRuntime: CopilotKitRuntimeConstructor;
37
+ /**
38
+ * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
39
+ * name is an alias of it. To move your imports, run
40
+ * `npx codemod @copilotkit/v2-migration`.
41
+ */
42
+ type CopilotRuntime = CopilotKitRuntime;
43
+ /**
44
+ * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
45
+ * name is an alias of it. To move your imports, run
46
+ * `npx codemod @copilotkit/v2-migration`.
47
+ */
48
+ declare const CopilotSseRuntime: typeof CopilotKitSseRuntime;
49
+ /**
50
+ * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
51
+ * name is an alias of it. To move your imports, run
52
+ * `npx codemod @copilotkit/v2-migration`.
53
+ */
54
+ type CopilotSseRuntime = CopilotKitSseRuntime;
55
+ /**
56
+ * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
57
+ * This old name is an alias of it. To move your imports, run
58
+ * `npx codemod @copilotkit/v2-migration`.
59
+ */
60
+ declare const CopilotIntelligenceRuntime: typeof CopilotKitIntelligenceRuntime;
61
+ /**
62
+ * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
63
+ * This old name is an alias of it. To move your imports, run
64
+ * `npx codemod @copilotkit/v2-migration`.
65
+ */
66
+ type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
67
+ /**
68
+ * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
69
+ * This old name is an alias of it. To move your imports, run
70
+ * `npx codemod @copilotkit/v2-migration`.
71
+ */
72
+ declare const createCopilotRuntimeHandler: typeof createCopilotKitRuntimeHandler;
73
+ /**
74
+ * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.
75
+ * This old name is an alias of it. To move your imports, run
76
+ * `npx codemod @copilotkit/v2-migration`.
77
+ */
78
+ type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;
79
+ /**
80
+ * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This
81
+ * old name is an alias of it. To move your imports, run
82
+ * `npx codemod @copilotkit/v2-migration`.
83
+ */
84
+ type CopilotRuntimeOptions = CopilotKitRuntimeOptions;
85
+ /**
86
+ * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old
87
+ * name is an alias of it. To move your imports, run
88
+ * `npx codemod @copilotkit/v2-migration`.
89
+ */
90
+ type CopilotRuntimeLike = CopilotKitRuntimeLike;
91
+ /**
92
+ * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.
93
+ * This old name is an alias of it. To move your imports, run
94
+ * `npx codemod @copilotkit/v2-migration`.
95
+ */
96
+ type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;
97
+ /**
98
+ * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This
99
+ * old name is an alias of it. To move your imports, run
100
+ * `npx codemod @copilotkit/v2-migration`.
101
+ */
102
+ type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;
103
+ /**
104
+ * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from
105
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
106
+ * imports, run `npx codemod @copilotkit/v2-migration`.
107
+ */
108
+ type CopilotIntelligenceRuntimeOptions = CopilotKitIntelligenceRuntimeOptions;
109
+ /**
110
+ * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from
111
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
112
+ * imports, run `npx codemod @copilotkit/v2-migration`.
113
+ */
114
+ type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;
115
+ /**
116
+ * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.
117
+ * This old name is an alias of it. To move your imports, run
118
+ * `npx codemod @copilotkit/v2-migration`.
119
+ */
120
+ type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;
121
+ /**
122
+ * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old
123
+ * name is an alias of it. To move your imports, run
124
+ * `npx codemod @copilotkit/v2-migration`.
125
+ */
126
+ type CopilotRuntimeUser = CopilotKitRuntimeUser;
127
+ /**
128
+ * @deprecated Use `CopilotKitRuntimeLearningConfig` from
129
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
130
+ * imports, run `npx codemod @copilotkit/v2-migration`.
131
+ */
132
+ type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;
133
+ /**
134
+ * @deprecated Use `CopilotKitRuntimeLearningContext` from
135
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
136
+ * imports, run `npx codemod @copilotkit/v2-migration`.
137
+ */
138
+ type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;
139
+ /**
140
+ * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This
141
+ * old name is an alias of it. To move your imports, run
142
+ * `npx codemod @copilotkit/v2-migration`.
143
+ */
144
+ type CopilotRuntimeLogger = CopilotKitRuntimeLogger;
145
+ /**
146
+ * @deprecated Use `CopilotKitRuntimeHandlerOptions` from
147
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
148
+ * imports, run `npx codemod @copilotkit/v2-migration`.
149
+ */
150
+ type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;
151
+ /**
152
+ * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.
153
+ * This old name is an alias of it. To move your imports, run
154
+ * `npx codemod @copilotkit/v2-migration`.
155
+ */
156
+ type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;
157
+ /**
158
+ * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from
159
+ * `@copilotkit/runtime`. This old name is an alias of it. To move your
160
+ * imports, run `npx codemod @copilotkit/v2-migration`.
161
+ */
162
+ type CopilotRuntimeFetchHandlerWithChannels = CopilotKitRuntimeFetchHandlerWithChannels;
163
+ /**
164
+ * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This
165
+ * old name is an alias of it. To move your imports, run
166
+ * `npx codemod @copilotkit/v2-migration`.
167
+ */
168
+ type CopilotRuntimeHooks = CopilotKitRuntimeHooks;
169
+ /**
170
+ * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old
171
+ * name is an alias of it. To move your imports, run
172
+ * `npx codemod @copilotkit/v2-migration`.
173
+ */
174
+ type CopilotCorsConfig = CopilotKitCorsConfig;
175
+ //#endregion
6
176
  export {
7
177
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
8
178
  A2UIMiddleware,
@@ -30,10 +200,34 @@ export {
30
200
  AgentsFactory,
31
201
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
32
202
  ArgsParser,
203
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
204
+ BuiltInAgent,
205
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
206
+ type BuiltInAgentAISDKFactoryConfig,
207
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
208
+ type BuiltInAgentClassicConfig,
209
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
210
+ type BuiltInAgentConfiguration,
211
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
212
+ type BuiltInAgentCustomFactoryConfig,
213
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
214
+ type BuiltInAgentFactoryConfig,
215
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
216
+ type BuiltInAgentFactoryContext,
217
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
218
+ type BuiltInAgentLearnedSkills,
219
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
220
+ type BuiltInAgentLearnedSkillsOptions,
221
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
222
+ type BuiltInAgentTanStackFactoryConfig,
33
223
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
34
224
  ChannelStatus,
35
225
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
36
226
  ChannelsControl,
227
+ CopilotCorsConfig,
228
+ CopilotIntelligenceRuntime,
229
+ CopilotIntelligenceRuntimeLike,
230
+ CopilotIntelligenceRuntimeOptions,
37
231
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
38
232
  CopilotKitCorsConfig,
39
233
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -78,6 +272,22 @@ export {
78
272
  CopilotKitSseRuntimeLike,
79
273
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
80
274
  CopilotKitSseRuntimeOptions,
275
+ CopilotRuntime,
276
+ CopilotRuntimeConstructor,
277
+ CopilotRuntimeFetchHandler,
278
+ CopilotRuntimeFetchHandlerWithChannels,
279
+ CopilotRuntimeHandlerOptions,
280
+ CopilotRuntimeHooks,
281
+ CopilotRuntimeLearningConfig,
282
+ CopilotRuntimeLearningContext,
283
+ CopilotRuntimeLike,
284
+ CopilotRuntimeLogger,
285
+ CopilotRuntimeMemoryConfig,
286
+ CopilotRuntimeOptions,
287
+ CopilotRuntimeUser,
288
+ CopilotSseRuntime,
289
+ CopilotSseRuntimeLike,
290
+ CopilotSseRuntimeOptions,
81
291
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
82
292
  CreateThreadRequest,
83
293
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -118,6 +328,8 @@ export {
118
328
  IntelligenceAgentRunner,
119
329
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
120
330
  IntelligenceAgentRunnerOptions,
331
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
332
+ InterruptSignal,
121
333
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
122
334
  LearnedSkillsBatchResult,
123
335
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -154,6 +366,8 @@ export {
154
366
  OpenGenerativeUIMiddleware,
155
367
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
156
368
  OpenGenerativeUIOptions,
369
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
370
+ type OverridableProperty,
157
371
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
158
372
  PlatformRequestError,
159
373
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -163,8 +377,18 @@ export {
163
377
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
164
378
  RouteInfo,
165
379
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
380
+ RunAgentInThreadOptions,
381
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
382
+ RunAgentInThreadResult,
383
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
384
+ RunAgentInThreadRuntime,
385
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
166
386
  RunEventFinalizer,
167
387
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
388
+ RunnerEventDeliveryStats,
389
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
390
+ RunnerEventQueueFullError,
391
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
168
392
  RunnerStartupBoundary,
169
393
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
170
394
  RuntimeWithDeclaredChannels,
@@ -176,6 +400,10 @@ export {
176
400
  SubscribeToThreadsResponse,
177
401
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
178
402
  THREAD_ACCESS_DENIED_ERROR_CODE,
403
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
404
+ type TanStackChatMessage,
405
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
406
+ type TanStackInputResult,
179
407
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
180
408
  ThreadAccessDeniedError,
181
409
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -183,11 +411,19 @@ export {
183
411
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
184
412
  ThreadAlreadyRunningError,
185
413
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
414
+ ThreadNameGenerationConfig,
415
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
186
416
  ThreadOwnershipRunner,
187
417
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
418
+ ThreadRunError,
419
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
420
+ ThreadRunErrorReason,
421
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
188
422
  ThreadSummary,
189
423
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
190
424
  ThreadsConfig,
425
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
426
+ type ToolDefinition,
191
427
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
192
428
  TrajectoryLearningContainerSelectorInput,
193
429
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -198,16 +434,25 @@ export {
198
434
  UpdateThreadRequest,
199
435
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
200
436
  VERSION,
437
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
438
+ convertAISDKStream,
439
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
440
+ convertInputToTanStackAI,
441
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
442
+ convertTanStackStream,
201
443
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
202
444
  createCopilotKitRuntimeHandler,
445
+ createCopilotRuntimeHandler,
203
446
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
204
447
  createRunEventFinalizer,
205
448
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
206
449
  createSurfaceWriter,
450
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
451
+ defineTool,
207
452
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
208
453
  enforcesThreadOwnership,
209
454
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
210
- experimental,
455
+ experimental_d_exports as experimental,
211
456
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
212
457
  finalizeRunEvents,
213
458
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
@@ -217,6 +462,8 @@ export {
217
462
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
218
463
  resolveAgents,
219
464
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
465
+ runAgentInThread,
466
+ /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
220
467
  supportsLocalThreadEndpoints,
221
468
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
222
469
  transformRecordedEvents,
@@ -238,5 +485,5 @@ export {
238
485
  ɵnormalizeLimits,
239
486
  /** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
240
487
  ɵresolveThreadOwner,
241
- } from "../index.mjs";
242
- export * from "../index.mjs";
488
+ };
489
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/v2/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmFa,cAAA,EAAc,4BAAA;;;;AAA3B;;KAMY,cAAA,GAAiB,iBAAA;;;AAA7B;;;cAOa,iBAAA,SAAiB,oBAAA;;AAA9B;;;;KAMY,iBAAA,GAAoB,oBAAA;AAAhC;;;;;AAAA,cAOa,0BAAA,SAA0B,6BAAA;;;;;AAMvC;KAAY,0BAAA,GAA6B,6BAAA;;;;AAOzC;;cAAa,2BAAA,SAA2B,8BAAA;;;AAOxC;;;KAAY,yBAAA,GAA4B,4BAAA;;AAMxC;;;;KAAY,qBAAA,GAAwB,wBAAA;AAMpC;;;;;AAAA,KAAY,kBAAA,GAAqB,qBAAA;;;;;AAYjC;KANY,wBAAA,GAA2B,2BAAA;;;;AAYvC;;KANY,qBAAA,GAAwB,wBAAA;;;AAapC;;;KAPY,iCAAA,GACV,oCAAA;;AAYF;;;;KANY,8BAAA,GAAiC,iCAAA;AAY7C;;;;;AAAA,KANY,0BAAA,GAA6B,6BAAA;;;;;AAkBzC;KAZY,kBAAA,GAAqB,qBAAA;;;;AAkBjC;;KAZY,4BAAA,GAA+B,+BAAA;;;AAkB3C;;;KAZY,6BAAA,GAAgC,gCAAA;;AAkB5C;;;;KAZY,oBAAA,GAAuB,uBAAA;AAkBnC;;;;;AAAA,KAZY,4BAAA,GAA+B,+BAAA;;;;;AAyB3C;KAnBY,0BAAA,GAA6B,6BAAA;;;;;;KAM7B,sCAAA,GACV,yCAAA;;;;;;KAMU,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,iBAAA,GAAoB,oBAAA"}
@@ -0,0 +1,65 @@
1
+ import { AgentRunner, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAlreadyRunningError, enforcesThreadOwnership, isThreadAccessDeniedError, supportsLocalThreadEndpoints, ɵSERVER_THREAD_OWNER, ɵresolveThreadOwner } from "../runtime/runner/agent-runner.mjs";
2
+ import { LearnedSkillsError } from "../runtime/intelligence-platform/learned-skills.mjs";
3
+ import { CopilotKitIntelligence, PlatformRequestError } from "../runtime/intelligence-platform/client.mjs";
4
+ import { InMemoryAgentRunner, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵestimateBytes, ɵnormalizeLimits } from "../runtime/runner/in-memory.mjs";
5
+ import { IntelligenceAgentRunner, RunnerEventQueueFullError, STOP_RECORD_DEADLINE_MS } from "../runtime/runner/intelligence.mjs";
6
+ import { CopilotKitIntelligenceRuntime, CopilotKitRuntime, CopilotKitSseRuntime, VERSION, isIntelligenceRuntime, resolveAgents } from "../runtime/core/runtime.mjs";
7
+ import { GenerativeUIMiddleware } from "../runtime/generative-ui/generative-ui-middleware.mjs";
8
+ import { A2UIV09BridgeMiddleware } from "../runtime/generative-ui/a2ui-v09-middleware.mjs";
9
+ import { createSurfaceWriter } from "../runtime/generative-ui/surface-writer.mjs";
10
+ import { ArgsParser, OpenGenerativeUIMiddleware } from "../runtime/event-transforms/open-generative-ui-middleware.mjs";
11
+ import { transformRecordedEvents } from "../runtime/event-transforms/recorded-events.mjs";
12
+ import { A2UIMiddleware } from "../runtime/event-transforms/index.mjs";
13
+ import { createRunEventFinalizer, finalizeRunEvents } from "../runtime/runner/index.mjs";
14
+ import { TranscriptionService } from "../runtime/transcription-service/transcription-service.mjs";
15
+ import { ThreadRunError, runAgentInThread } from "../runtime/core/thread-run.mjs";
16
+ import { createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.mjs";
17
+ import { convertAISDKStream } from "../agent/converters/aisdk.mjs";
18
+ import { convertInputToTanStackAI, convertTanStackStream } from "../agent/converters/tanstack.mjs";
19
+ import { BuiltInAgent, InterruptSignal, defineTool } from "../agent.mjs";
20
+
21
+ //#region src/v2/index.ts
22
+ /**
23
+ * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit
24
+ * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that
25
+ * imports from it keeps working. It exports:
26
+ *
27
+ * - every export of `@copilotkit/runtime`;
28
+ * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from
29
+ * `@copilotkit/runtime/agent`;
30
+ * - the 1.x names of the runtime exports that 2.0 renamed with "Kit". Each
31
+ * old name is the same value or type as its new name.
32
+ *
33
+ * The root exports only the new names. `npx codemod @copilotkit/v2-migration`
34
+ * moves the imports to the root and renames them. The build marks each name
35
+ * of this entry deprecated in its declarations
36
+ * (scripts/deprecations/v2-subpath-aliases.mts).
37
+ */
38
+ /**
39
+ * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
40
+ * name is an alias of it. To move your imports, run
41
+ * `npx codemod @copilotkit/v2-migration`.
42
+ */
43
+ const CopilotRuntime = CopilotKitRuntime;
44
+ /**
45
+ * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
46
+ * name is an alias of it. To move your imports, run
47
+ * `npx codemod @copilotkit/v2-migration`.
48
+ */
49
+ const CopilotSseRuntime = CopilotKitSseRuntime;
50
+ /**
51
+ * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
52
+ * This old name is an alias of it. To move your imports, run
53
+ * `npx codemod @copilotkit/v2-migration`.
54
+ */
55
+ const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
56
+ /**
57
+ * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
58
+ * This old name is an alias of it. To move your imports, run
59
+ * `npx codemod @copilotkit/v2-migration`.
60
+ */
61
+ const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;
62
+
63
+ //#endregion
64
+ export { A2UIMiddleware, A2UIV09BridgeMiddleware, AgentRunner, ArgsParser, BuiltInAgent, CopilotIntelligenceRuntime, CopilotKitIntelligence, CopilotKitIntelligenceRuntime, CopilotKitRuntime, CopilotKitSseRuntime, CopilotRuntime, CopilotSseRuntime, GenerativeUIMiddleware, InMemoryAgentRunner, IntelligenceAgentRunner, InterruptSignal, LearnedSkillsError, OpenGenerativeUIMiddleware, PlatformRequestError, RunnerEventQueueFullError, STOP_RECORD_DEADLINE_MS, THREAD_ACCESS_DENIED_ERROR_CODE, ThreadAccessDeniedError, ThreadAlreadyRunningError, ThreadRunError, TranscriptionService, VERSION, convertAISDKStream, convertInputToTanStackAI, convertTanStackStream, createCopilotKitRuntimeHandler, createCopilotRuntimeHandler, createRunEventFinalizer, createSurfaceWriter, defineTool, enforcesThreadOwnership, finalizeRunEvents, isIntelligenceRuntime, isThreadAccessDeniedError, resolveAgents, runAgentInThread, supportsLocalThreadEndpoints, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
65
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/v2/index.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit\n * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that\n * imports from it keeps working. It exports:\n *\n * - every export of `@copilotkit/runtime`;\n * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from\n * `@copilotkit/runtime/agent`;\n * - the 1.x names of the runtime exports that 2.0 renamed with \"Kit\". Each\n * old name is the same value or type as its new name.\n *\n * The root exports only the new names. `npx codemod @copilotkit/v2-migration`\n * moves the imports to the root and renames them. The build marks each name\n * of this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n CopilotKitIntelligenceRuntime,\n CopilotKitRuntime,\n CopilotKitSseRuntime,\n createCopilotKitRuntimeHandler,\n} from \"../index\";\nimport type {\n CopilotKitCorsConfig,\n CopilotKitIntelligenceRuntimeLike,\n CopilotKitIntelligenceRuntimeOptions,\n CopilotKitRuntimeConstructor,\n CopilotKitRuntimeFetchHandler,\n CopilotKitRuntimeFetchHandlerWithChannels,\n CopilotKitRuntimeHandlerOptions,\n CopilotKitRuntimeHooks,\n CopilotKitRuntimeLearningConfig,\n CopilotKitRuntimeLearningContext,\n CopilotKitRuntimeLike,\n CopilotKitRuntimeLogger,\n CopilotKitRuntimeMemoryConfig,\n CopilotKitRuntimeOptions,\n CopilotKitRuntimeUser,\n CopilotKitSseRuntimeLike,\n CopilotKitSseRuntimeOptions,\n} from \"../index\";\n\nexport * from \"../index\";\n\n// 1.x exported the Built-in Agent from `/v2`. The AI SDK helpers of\n// `@copilotkit/runtime/agent/ai-sdk` stay out: they load the optional `ai`\n// peer, and every `/v2` import would then need it.\nexport {\n BuiltInAgent,\n InterruptSignal,\n convertAISDKStream,\n convertInputToTanStackAI,\n convertTanStackStream,\n defineTool,\n} from \"../agent\";\nexport type {\n BuiltInAgentAISDKFactoryConfig,\n BuiltInAgentClassicConfig,\n BuiltInAgentConfiguration,\n BuiltInAgentCustomFactoryConfig,\n BuiltInAgentFactoryConfig,\n BuiltInAgentFactoryContext,\n BuiltInAgentLearnedSkills,\n BuiltInAgentLearnedSkillsOptions,\n BuiltInAgentTanStackFactoryConfig,\n OverridableProperty,\n TanStackChatMessage,\n TanStackInputResult,\n ToolDefinition,\n} from \"../agent\";\n\n/* ------------------------------------------------------------------------------------------------\n * The 1.x names\n *\n * 2.0 renamed these exports with \"Kit\" after \"Copilot\". Each old name is an\n * alias of its new name: the same value, and the same type.\n * --------------------------------------------------------------------------------------------- */\n\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotRuntime = CopilotKitRuntime;\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntime = CopilotKitRuntime;\n\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotSseRuntime = CopilotKitSseRuntime;\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntime = CopilotKitSseRuntime;\n\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n\n/**\n * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;\n\n/**\n * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;\n/**\n * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeOptions = CopilotKitRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLike = CopilotKitRuntimeLike;\n/**\n * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeOptions =\n CopilotKitIntelligenceRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;\n/**\n * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeUser = CopilotKitRuntimeUser;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningConfig` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningContext` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;\n/**\n * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLogger = CopilotKitRuntimeLogger;\n/**\n * @deprecated Use `CopilotKitRuntimeHandlerOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandlerWithChannels =\n CopilotKitRuntimeFetchHandlerWithChannels;\n/**\n * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHooks = CopilotKitRuntimeHooks;\n/**\n * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,iBAAiB;;;;;;AAa9B,MAAa,oBAAoB;;;;;;AAajC,MAAa,6BAA6B;;;;;;AAa1C,MAAa,8BAA8B"}
@@ -0,0 +1,44 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_node_fetch_handler = require('../runtime/endpoints/node-fetch-handler.cjs');
3
+ const require_node = require('../runtime/endpoints/node.cjs');
4
+
5
+ //#region src/v2/node.ts
6
+ /**
7
+ * `@copilotkit/runtime/v2/node`, the import path of the 2.0 Node.js listener
8
+ * in CopilotKit 1.x. In 2.0 it is a deprecated alias of
9
+ * `@copilotkit/runtime/node`, so 1.x code that imports from it keeps working.
10
+ * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of
11
+ * those exports. Each old name is the same value or type as its new name.
12
+ *
13
+ * `npx codemod @copilotkit/v2-migration` moves the imports to
14
+ * `@copilotkit/runtime/node` and renames them. The build marks each name of
15
+ * this entry deprecated in its declarations
16
+ * (scripts/deprecations/v2-subpath-aliases.mts).
17
+ */
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeListener` from
20
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
21
+ * imports, run `npx codemod @copilotkit/v2-migration`.
22
+ */
23
+ const createCopilotNodeListener = require_node.createCopilotKitNodeListener;
24
+ /**
25
+ * @deprecated Use `createCopilotKitNodeHandler` from
26
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
27
+ * imports, run `npx codemod @copilotkit/v2-migration`.
28
+ */
29
+ const createCopilotNodeHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
30
+ /**
31
+ * @deprecated Use `createCopilotKitNodeHandler` from
32
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
33
+ * `createCopilotKitNodeHandler`. To move your imports, run
34
+ * `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ const createNodeFetchHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
37
+
38
+ //#endregion
39
+ exports.createCopilotKitNodeHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
40
+ exports.createCopilotKitNodeListener = require_node.createCopilotKitNodeListener;
41
+ exports.createCopilotNodeHandler = createCopilotNodeHandler;
42
+ exports.createCopilotNodeListener = createCopilotNodeListener;
43
+ exports.createNodeFetchHandler = createNodeFetchHandler;
44
+ //# sourceMappingURL=node.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.cjs","names":["createCopilotKitNodeListener","createCopilotKitNodeHandler"],"sources":["../../src/v2/node.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2/node`, the import path of the 2.0 Node.js listener\n * in CopilotKit 1.x. In 2.0 it is a deprecated alias of\n * `@copilotkit/runtime/node`, so 1.x code that imports from it keeps working.\n * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of\n * those exports. Each old name is the same value or type as its new name.\n *\n * `npx codemod @copilotkit/v2-migration` moves the imports to\n * `@copilotkit/runtime/node` and renames them. The build marks each name of\n * this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n createCopilotKitNodeHandler,\n createCopilotKitNodeListener,\n} from \"../node\";\nimport type {\n NodeCopilotKitListener,\n NodeCopilotKitListenerWithChannels,\n} from \"../node\";\n\nexport * from \"../node\";\n\n/**\n * @deprecated Use `createCopilotKitNodeListener` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotNodeListener = createCopilotKitNodeListener;\n/**\n * @deprecated Use `createCopilotKitNodeHandler` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotNodeHandler = createCopilotKitNodeHandler;\n/**\n * @deprecated Use `createCopilotKitNodeHandler` from\n * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of\n * `createCopilotKitNodeHandler`. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createNodeFetchHandler = createCopilotKitNodeHandler;\n/**\n * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type NodeCopilotListener = NodeCopilotKitListener;\n/**\n * @deprecated Use `NodeCopilotKitListenerWithChannels` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type NodeCopilotListenerWithChannels =\n NodeCopilotKitListenerWithChannels;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,4BAA4BA;;;;;;AAMzC,MAAa,2BAA2BC;;;;;;;AAOxC,MAAa,yBAAyBA"}
@@ -1,18 +1,55 @@
1
+ import { NodeFetchHandler, createCopilotKitNodeHandler } from "../runtime/endpoints/node-fetch-handler.cjs";
2
+ import { NodeCopilotKitListener, NodeCopilotKitListenerWithChannels, createCopilotKitNodeListener } from "../runtime/endpoints/node.cjs";
3
+ import "../node.cjs";
4
+
5
+ //#region src/v2/node.d.ts
1
6
  /**
2
- * @deprecated "@copilotkit/runtime/v2/node" is a deprecated alias of "@copilotkit/runtime/node".
3
- * Import from "@copilotkit/runtime/node".
4
- * @module
7
+ * @deprecated Use `createCopilotKitNodeListener` from
8
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
+ * imports, run `npx codemod @copilotkit/v2-migration`.
5
10
  */
11
+ declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
+ /**
13
+ * @deprecated Use `createCopilotKitNodeHandler` from
14
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
+ * imports, run `npx codemod @copilotkit/v2-migration`.
16
+ */
17
+ declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeHandler` from
20
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
+ * `createCopilotKitNodeHandler`. To move your imports, run
22
+ * `npx codemod @copilotkit/v2-migration`.
23
+ */
24
+ declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
+ /**
26
+ * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
+ * This old name is an alias of it. To move your imports, run
28
+ * `npx codemod @copilotkit/v2-migration`.
29
+ */
30
+ type NodeCopilotListener = NodeCopilotKitListener;
31
+ /**
32
+ * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
+ * imports, run `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
+ //#endregion
6
38
  export {
7
39
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
8
40
  NodeCopilotKitListener,
9
41
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
10
42
  NodeCopilotKitListenerWithChannels,
43
+ NodeCopilotListener,
44
+ NodeCopilotListenerWithChannels,
11
45
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
12
46
  NodeFetchHandler,
13
47
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
14
48
  createCopilotKitNodeHandler,
15
49
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
16
50
  createCopilotKitNodeListener,
17
- } from "../node.cjs";
18
- export * from "../node.cjs";
51
+ createCopilotNodeHandler,
52
+ createCopilotNodeListener,
53
+ createNodeFetchHandler,
54
+ };
55
+ //# sourceMappingURL=node.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.cts","names":[],"sources":["../../src/v2/node.ts"],"mappings":";;;;;AAyCA;;;;;AAAA,cAba,yBAAA,SAAyB,4BAAA;;;;;AAyBtC;cAnBa,wBAAA,SAAwB,2BAAA;;;;;;;cAOxB,sBAAA,SAAsB,2BAAA;;;;;;KAMvB,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,+BAAA,GACV,kCAAA"}
@@ -1,18 +1,55 @@
1
+ import { NodeFetchHandler, createCopilotKitNodeHandler } from "../runtime/endpoints/node-fetch-handler.mjs";
2
+ import { NodeCopilotKitListener, NodeCopilotKitListenerWithChannels, createCopilotKitNodeListener } from "../runtime/endpoints/node.mjs";
3
+ import "../node.mjs";
4
+
5
+ //#region src/v2/node.d.ts
1
6
  /**
2
- * @deprecated "@copilotkit/runtime/v2/node" is a deprecated alias of "@copilotkit/runtime/node".
3
- * Import from "@copilotkit/runtime/node".
4
- * @module
7
+ * @deprecated Use `createCopilotKitNodeListener` from
8
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
+ * imports, run `npx codemod @copilotkit/v2-migration`.
5
10
  */
11
+ declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
+ /**
13
+ * @deprecated Use `createCopilotKitNodeHandler` from
14
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
+ * imports, run `npx codemod @copilotkit/v2-migration`.
16
+ */
17
+ declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeHandler` from
20
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
+ * `createCopilotKitNodeHandler`. To move your imports, run
22
+ * `npx codemod @copilotkit/v2-migration`.
23
+ */
24
+ declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
+ /**
26
+ * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
+ * This old name is an alias of it. To move your imports, run
28
+ * `npx codemod @copilotkit/v2-migration`.
29
+ */
30
+ type NodeCopilotListener = NodeCopilotKitListener;
31
+ /**
32
+ * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
+ * imports, run `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
+ //#endregion
6
38
  export {
7
39
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
8
40
  NodeCopilotKitListener,
9
41
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
10
42
  NodeCopilotKitListenerWithChannels,
43
+ NodeCopilotListener,
44
+ NodeCopilotListenerWithChannels,
11
45
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
12
46
  NodeFetchHandler,
13
47
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
14
48
  createCopilotKitNodeHandler,
15
49
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
16
50
  createCopilotKitNodeListener,
17
- } from "../node.mjs";
18
- export * from "../node.mjs";
51
+ createCopilotNodeHandler,
52
+ createCopilotNodeListener,
53
+ createNodeFetchHandler,
54
+ };
55
+ //# sourceMappingURL=node.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.mts","names":[],"sources":["../../src/v2/node.ts"],"mappings":";;;;;AAyCA;;;;;AAAA,cAba,yBAAA,SAAyB,4BAAA;;;;;AAyBtC;cAnBa,wBAAA,SAAwB,2BAAA;;;;;;;cAOxB,sBAAA,SAAsB,2BAAA;;;;;;KAMvB,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,+BAAA,GACV,kCAAA"}