@copilotkit/runtime 2.0.0-rc.63 → 2.0.0-rc.64
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/dist/index.cjs +53 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/removed-exports.cjs +370 -0
- package/dist/removed-exports.cjs.map +1 -0
- package/dist/removed-exports.d.cts +241 -0
- package/dist/removed-exports.d.cts.map +1 -0
- package/dist/removed-exports.d.mts +241 -0
- package/dist/removed-exports.d.mts.map +1 -0
- package/dist/removed-exports.mjs +319 -0
- package/dist/removed-exports.mjs.map +1 -0
- package/dist/runtime/core/package-info.cjs +1 -1
- package/dist/runtime/core/package-info.mjs +1 -1
- package/dist/v2/index.cjs +52 -0
- package/dist/v2/index.cjs.map +1 -1
- package/dist/v2/index.d.cts +189 -0
- package/dist/v2/index.d.cts.map +1 -1
- package/dist/v2/index.d.mts +189 -0
- package/dist/v2/index.d.mts.map +1 -1
- package/dist/v2/index.mjs +2 -1
- package/dist/v2/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/v2/index.d.mts
CHANGED
|
@@ -25,6 +25,7 @@ import { ChannelStatus, ChannelsControl } from "../runtime/core/channel-manager.
|
|
|
25
25
|
import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "../runtime/core/hooks.mjs";
|
|
26
26
|
import { CopilotKitCorsConfig } from "../runtime/core/fetch-cors.mjs";
|
|
27
27
|
import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.mjs";
|
|
28
|
+
import { AnthropicAdapter, AnthropicAdapterParams, AnthropicPromptCachingConfig, BasicAgent, BasicAgentConfiguration, BedrockAdapter, BedrockAdapterParams, BuiltInAgentModel, CommonConfig, CopilotEndpointCorsConfig, CopilotExpressEndpointParams, CopilotExpressRouter, CopilotHonoApp, CopilotKitRequestHandler, CopilotRequestContextProperties, CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotRuntimeConstructorParams_BASE, CopilotServiceAdapter, CreateCopilotRuntimeServerOptions, CreateSafeUrlDownloadOptions, CustomEventNames, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GoogleGenerativeAIAdapter, GraphQLContext, GraphQLRequestContext, GroqAdapter, GroqAdapterParams, GuardrailsValidationFailureResponse, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LogLevel, MCPClient, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MCPEndpointConfig, MCPTool, MCPTransport, MessageConversionOptions, MessageStreamInterruptedResponse, ModelSpecifier, OpenAIAdapter, OpenAIAdapterParams, OpenAIAssistantAdapter, OpenAIAssistantAdapterParams, PredictStateTool, RemoteChain, RemoteChainParameters, SafeUrlDownloadOptions, SdkClientLike, TelemetryAgentRunner, TelemetryAgentRunnerConfig, TextMessageEvents, ToolCallEvents, UnifyAdapter, UnifyAdapterParams, UnknownErrorResponse, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createLogger, createSafeUrlDownload, extractParametersFromSchema, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, langGraphPlatformEndpoint, resolveEndpointType, resolveModel, toFetchCorsConfig } from "../removed-exports.mjs";
|
|
28
29
|
import "../index.mjs";
|
|
29
30
|
|
|
30
31
|
//#region src/v2/index.d.ts
|
|
@@ -199,7 +200,21 @@ export {
|
|
|
199
200
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
200
201
|
AgentsFactory,
|
|
201
202
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
203
|
+
AnthropicAdapter,
|
|
204
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
205
|
+
AnthropicAdapterParams,
|
|
206
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
207
|
+
AnthropicPromptCachingConfig,
|
|
208
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
202
209
|
ArgsParser,
|
|
210
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
211
|
+
BasicAgent,
|
|
212
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
213
|
+
BasicAgentConfiguration,
|
|
214
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
215
|
+
BedrockAdapter,
|
|
216
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
217
|
+
BedrockAdapterParams,
|
|
203
218
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
204
219
|
BuiltInAgent,
|
|
205
220
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
@@ -218,13 +233,25 @@ export {
|
|
|
218
233
|
type BuiltInAgentLearnedSkills,
|
|
219
234
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
220
235
|
type BuiltInAgentLearnedSkillsOptions,
|
|
236
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
237
|
+
BuiltInAgentModel,
|
|
221
238
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
222
239
|
type BuiltInAgentTanStackFactoryConfig,
|
|
223
240
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
224
241
|
ChannelStatus,
|
|
225
242
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
226
243
|
ChannelsControl,
|
|
244
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
245
|
+
CommonConfig,
|
|
227
246
|
CopilotCorsConfig,
|
|
247
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
248
|
+
CopilotEndpointCorsConfig,
|
|
249
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
250
|
+
CopilotExpressEndpointParams,
|
|
251
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
252
|
+
CopilotExpressRouter,
|
|
253
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
254
|
+
CopilotHonoApp,
|
|
228
255
|
CopilotIntelligenceRuntime,
|
|
229
256
|
CopilotIntelligenceRuntimeLike,
|
|
230
257
|
CopilotIntelligenceRuntimeOptions,
|
|
@@ -241,6 +268,8 @@ export {
|
|
|
241
268
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
242
269
|
CopilotKitIntelligenceRuntimeOptions,
|
|
243
270
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
271
|
+
CopilotKitRequestHandler,
|
|
272
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
244
273
|
CopilotKitRuntime,
|
|
245
274
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
246
275
|
CopilotKitRuntimeConstructor,
|
|
@@ -272,8 +301,16 @@ export {
|
|
|
272
301
|
CopilotKitSseRuntimeLike,
|
|
273
302
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
274
303
|
CopilotKitSseRuntimeOptions,
|
|
304
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
305
|
+
CopilotRequestContextProperties,
|
|
275
306
|
CopilotRuntime,
|
|
307
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
308
|
+
CopilotRuntimeChatCompletionRequest,
|
|
309
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
310
|
+
CopilotRuntimeChatCompletionResponse,
|
|
276
311
|
CopilotRuntimeConstructor,
|
|
312
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
313
|
+
CopilotRuntimeConstructorParams_BASE,
|
|
277
314
|
CopilotRuntimeFetchHandler,
|
|
278
315
|
CopilotRuntimeFetchHandlerWithChannels,
|
|
279
316
|
CopilotRuntimeHandlerOptions,
|
|
@@ -285,14 +322,30 @@ export {
|
|
|
285
322
|
CopilotRuntimeMemoryConfig,
|
|
286
323
|
CopilotRuntimeOptions,
|
|
287
324
|
CopilotRuntimeUser,
|
|
325
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
326
|
+
CopilotServiceAdapter,
|
|
288
327
|
CopilotSseRuntime,
|
|
289
328
|
CopilotSseRuntimeLike,
|
|
290
329
|
CopilotSseRuntimeOptions,
|
|
291
330
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
331
|
+
CreateCopilotRuntimeServerOptions,
|
|
332
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
333
|
+
CreateSafeUrlDownloadOptions,
|
|
334
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
292
335
|
CreateThreadRequest,
|
|
293
336
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
337
|
+
CustomEventNames,
|
|
338
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
339
|
+
EmptyAdapter,
|
|
340
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
294
341
|
ErrorHookContext,
|
|
295
342
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
343
|
+
ExperimentalEmptyAdapter,
|
|
344
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
345
|
+
ExperimentalOllamaAdapter,
|
|
346
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
347
|
+
FilterThinkingTextBuffer,
|
|
348
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
296
349
|
FinalizeRunOptions,
|
|
297
350
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
298
351
|
GenerateSandboxedUIParams,
|
|
@@ -311,6 +364,18 @@ export {
|
|
|
311
364
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
312
365
|
GetTrajectoryLearningContainerIds,
|
|
313
366
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
367
|
+
GoogleGenerativeAIAdapter,
|
|
368
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
369
|
+
GraphQLContext,
|
|
370
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
371
|
+
GraphQLRequestContext,
|
|
372
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
373
|
+
GroqAdapter,
|
|
374
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
375
|
+
GroqAdapterParams,
|
|
376
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
377
|
+
GuardrailsValidationFailureResponse,
|
|
378
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
314
379
|
HandlerHookContext,
|
|
315
380
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
316
381
|
HookContext,
|
|
@@ -331,6 +396,12 @@ export {
|
|
|
331
396
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
332
397
|
InterruptSignal,
|
|
333
398
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
399
|
+
LangChainAdapter,
|
|
400
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
401
|
+
LangGraphAgent,
|
|
402
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
403
|
+
LangGraphHttpAgent,
|
|
404
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
334
405
|
LearnedSkillsBatchResult,
|
|
335
406
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
336
407
|
LearnedSkillsError,
|
|
@@ -349,6 +420,24 @@ export {
|
|
|
349
420
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
350
421
|
LocalThreadEndpointScope,
|
|
351
422
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
423
|
+
LogLevel,
|
|
424
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
425
|
+
MCPClient,
|
|
426
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
427
|
+
MCPClientConfig,
|
|
428
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
429
|
+
MCPClientConfigHTTP,
|
|
430
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
431
|
+
MCPClientConfigSSE,
|
|
432
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
433
|
+
MCPClientProvider,
|
|
434
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
435
|
+
MCPEndpointConfig,
|
|
436
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
437
|
+
MCPTool,
|
|
438
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
439
|
+
MCPTransport,
|
|
440
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
352
441
|
McpAppsConfig,
|
|
353
442
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
354
443
|
McpAppsServerConfig,
|
|
@@ -359,8 +448,22 @@ export {
|
|
|
359
448
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
360
449
|
MemoryGrant,
|
|
361
450
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
451
|
+
MessageConversionOptions,
|
|
452
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
453
|
+
MessageStreamInterruptedResponse,
|
|
454
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
455
|
+
ModelSpecifier,
|
|
456
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
362
457
|
OnParamEvent,
|
|
363
458
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
459
|
+
OpenAIAdapter,
|
|
460
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
461
|
+
OpenAIAdapterParams,
|
|
462
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
463
|
+
OpenAIAssistantAdapter,
|
|
464
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
465
|
+
OpenAIAssistantAdapterParams,
|
|
466
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
364
467
|
OpenGenerativeUIConfig,
|
|
365
468
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
366
469
|
OpenGenerativeUIMiddleware,
|
|
@@ -371,8 +474,14 @@ export {
|
|
|
371
474
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
372
475
|
PlatformRequestError,
|
|
373
476
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
477
|
+
PredictStateTool,
|
|
478
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
374
479
|
RecordedEventTransformOptions,
|
|
375
480
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
481
|
+
RemoteChain,
|
|
482
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
483
|
+
RemoteChainParameters,
|
|
484
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
376
485
|
ResponseHookContext,
|
|
377
486
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
378
487
|
RouteInfo,
|
|
@@ -395,6 +504,10 @@ export {
|
|
|
395
504
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
396
505
|
STOP_RECORD_DEADLINE_MS,
|
|
397
506
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
507
|
+
SafeUrlDownloadOptions,
|
|
508
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
509
|
+
SdkClientLike,
|
|
510
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
398
511
|
SubscribeToThreadsRequest,
|
|
399
512
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
400
513
|
SubscribeToThreadsResponse,
|
|
@@ -405,6 +518,12 @@ export {
|
|
|
405
518
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
406
519
|
type TanStackInputResult,
|
|
407
520
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
521
|
+
TelemetryAgentRunner,
|
|
522
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
523
|
+
TelemetryAgentRunnerConfig,
|
|
524
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
525
|
+
TextMessageEvents,
|
|
526
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
408
527
|
ThreadAccessDeniedError,
|
|
409
528
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
410
529
|
ThreadAccessMode,
|
|
@@ -422,6 +541,8 @@ export {
|
|
|
422
541
|
ThreadSummary,
|
|
423
542
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
424
543
|
ThreadsConfig,
|
|
544
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
545
|
+
ToolCallEvents,
|
|
425
546
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
426
547
|
type ToolDefinition,
|
|
427
548
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -431,21 +552,71 @@ export {
|
|
|
431
552
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
432
553
|
TranscriptionService,
|
|
433
554
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
555
|
+
UnifyAdapter,
|
|
556
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
557
|
+
UnifyAdapterParams,
|
|
558
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
559
|
+
UnknownErrorResponse,
|
|
560
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
434
561
|
UpdateThreadRequest,
|
|
435
562
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
436
563
|
VERSION,
|
|
564
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
565
|
+
buildSchema,
|
|
566
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
567
|
+
classifyModelSpec,
|
|
437
568
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
438
569
|
convertAISDKStream,
|
|
439
570
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
440
571
|
convertInputToTanStackAI,
|
|
572
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
573
|
+
convertJsonSchemaToZodSchema,
|
|
574
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
575
|
+
convertMCPToolsToActions,
|
|
576
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
577
|
+
convertMessagesToVercelAISDKMessages,
|
|
578
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
579
|
+
convertServiceAdapterError,
|
|
441
580
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
442
581
|
convertTanStackStream,
|
|
443
582
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
583
|
+
convertToolDefinitionsToVercelAITools,
|
|
584
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
585
|
+
convertToolsToVercelAITools,
|
|
586
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
587
|
+
copilotKitEndpoint,
|
|
588
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
589
|
+
copilotRuntimeNestEndpoint,
|
|
590
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
591
|
+
copilotRuntimeNextJSAppRouterEndpoint,
|
|
592
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
593
|
+
copilotRuntimeNextJSPagesRouterEndpoint,
|
|
594
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
595
|
+
copilotRuntimeNodeExpressEndpoint,
|
|
596
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
597
|
+
copilotRuntimeNodeHttpEndpoint,
|
|
598
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
599
|
+
createCopilotEndpoint,
|
|
600
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
601
|
+
createCopilotEndpointExpress,
|
|
602
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
603
|
+
createCopilotEndpointSingleRoute,
|
|
604
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
605
|
+
createCopilotEndpointSingleRouteExpress,
|
|
606
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
607
|
+
createCopilotExpressHandler,
|
|
608
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
609
|
+
createCopilotHonoHandler,
|
|
610
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
444
611
|
createCopilotKitRuntimeHandler,
|
|
445
612
|
createCopilotRuntimeHandler,
|
|
446
613
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
614
|
+
createLogger,
|
|
615
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
447
616
|
createRunEventFinalizer,
|
|
448
617
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
618
|
+
createSafeUrlDownload,
|
|
619
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
449
620
|
createSurfaceWriter,
|
|
450
621
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
451
622
|
defineTool,
|
|
@@ -454,18 +625,36 @@ export {
|
|
|
454
625
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
455
626
|
experimental_d_exports as experimental,
|
|
456
627
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
628
|
+
extractParametersFromSchema,
|
|
629
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
457
630
|
finalizeRunEvents,
|
|
458
631
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
632
|
+
generateMcpToolInstructions,
|
|
633
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
634
|
+
getCommonConfig,
|
|
635
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
636
|
+
getSdkClientOptions,
|
|
637
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
638
|
+
isA2UIEnabled,
|
|
639
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
459
640
|
isIntelligenceRuntime,
|
|
460
641
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
461
642
|
isThreadAccessDeniedError,
|
|
462
643
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
644
|
+
langGraphPlatformEndpoint,
|
|
645
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
463
646
|
resolveAgents,
|
|
464
647
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
648
|
+
resolveEndpointType,
|
|
649
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
650
|
+
resolveModel,
|
|
651
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
465
652
|
runAgentInThread,
|
|
466
653
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
467
654
|
supportsLocalThreadEndpoints,
|
|
468
655
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
656
|
+
toFetchCorsConfig,
|
|
657
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
469
658
|
transformRecordedEvents,
|
|
470
659
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
471
660
|
ɵBoundedThreadStore,
|
package/dist/v2/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/v2/index.ts"],"mappings":"
|
|
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;;;;cAOa,0BAAA,SAA0B,6BAAA;AAAvC;;;;;AAAA,KAMY,0BAAA,GAA6B,6BAAA;;;;;AAOzC;cAAa,2BAAA,SAA2B,8BAAA;;;;AAOxC;;KAAY,yBAAA,GAA4B,4BAAA;;;AAMxC;;;KAAY,qBAAA,GAAwB,wBAAA;;AAMpC;;;;KAAY,kBAAA,GAAqB,qBAAA;AAMjC;;;;;AAAA,KAAY,wBAAA,GAA2B,2BAAA;;;;;AAYvC;KANY,qBAAA,GAAwB,wBAAA;;;;AAapC;;KAPY,iCAAA,GACV,oCAAA;;;AAYF;;;KANY,8BAAA,GAAiC,iCAAA;;AAY7C;;;;KANY,0BAAA,GAA6B,6BAAA;AAYzC;;;;;AAAA,KANY,kBAAA,GAAqB,qBAAA;;;;;AAkBjC;KAZY,4BAAA,GAA+B,+BAAA;;;;AAkB3C;;KAZY,6BAAA,GAAgC,gCAAA;;;AAkB5C;;;KAZY,oBAAA,GAAuB,uBAAA;;AAkBnC;;;;KAZY,4BAAA,GAA+B,+BAAA;AAmB3C;;;;;AAAA,KAbY,0BAAA,GAA6B,6BAAA;;;;;;KAM7B,sCAAA,GACV,yCAAA;;;;;;KAMU,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,iBAAA,GAAoB,oBAAA"}
|
package/dist/v2/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { createRunEventFinalizer, finalizeRunEvents } from "../runtime/runner/in
|
|
|
14
14
|
import { TranscriptionService } from "../runtime/transcription-service/transcription-service.mjs";
|
|
15
15
|
import { ThreadRunError, runAgentInThread } from "../runtime/core/thread-run.mjs";
|
|
16
16
|
import { createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.mjs";
|
|
17
|
+
import { AnthropicAdapter, BasicAgent, BedrockAdapter, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GoogleGenerativeAIAdapter, GroqAdapter, GuardrailsValidationFailureResponse, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, MessageStreamInterruptedResponse, OpenAIAdapter, OpenAIAssistantAdapter, RemoteChain, TelemetryAgentRunner, UnifyAdapter, UnknownErrorResponse, buildSchema, classifyModelSpec, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createLogger, createSafeUrlDownload, extractParametersFromSchema, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, langGraphPlatformEndpoint, resolveEndpointType, resolveModel, toFetchCorsConfig } from "../removed-exports.mjs";
|
|
17
18
|
import { convertAISDKStream } from "../agent/converters/aisdk.mjs";
|
|
18
19
|
import { convertInputToTanStackAI, convertTanStackStream } from "../agent/converters/tanstack.mjs";
|
|
19
20
|
import { BuiltInAgent, InterruptSignal, defineTool } from "../agent.mjs";
|
|
@@ -61,5 +62,5 @@ const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
|
|
|
61
62
|
const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;
|
|
62
63
|
|
|
63
64
|
//#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
|
+
export { A2UIMiddleware, A2UIV09BridgeMiddleware, AgentRunner, AnthropicAdapter, ArgsParser, BasicAgent, BedrockAdapter, BuiltInAgent, CopilotIntelligenceRuntime, CopilotKitIntelligence, CopilotKitIntelligenceRuntime, CopilotKitRuntime, CopilotKitSseRuntime, CopilotRuntime, CopilotSseRuntime, EmptyAdapter, ExperimentalEmptyAdapter, ExperimentalOllamaAdapter, FilterThinkingTextBuffer, GenerativeUIMiddleware, GoogleGenerativeAIAdapter, GroqAdapter, GuardrailsValidationFailureResponse, InMemoryAgentRunner, IntelligenceAgentRunner, InterruptSignal, LangChainAdapter, LangGraphAgent, LangGraphHttpAgent, LearnedSkillsError, MessageStreamInterruptedResponse, OpenAIAdapter, OpenAIAssistantAdapter, OpenGenerativeUIMiddleware, PlatformRequestError, RemoteChain, RunnerEventQueueFullError, STOP_RECORD_DEADLINE_MS, THREAD_ACCESS_DENIED_ERROR_CODE, TelemetryAgentRunner, ThreadAccessDeniedError, ThreadAlreadyRunningError, ThreadRunError, TranscriptionService, UnifyAdapter, UnknownErrorResponse, VERSION, buildSchema, classifyModelSpec, convertAISDKStream, convertInputToTanStackAI, convertJsonSchemaToZodSchema, convertMCPToolsToActions, convertMessagesToVercelAISDKMessages, convertServiceAdapterError, convertTanStackStream, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, copilotKitEndpoint, copilotRuntimeNestEndpoint, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint, copilotRuntimeNodeExpressEndpoint, copilotRuntimeNodeHttpEndpoint, createCopilotEndpoint, createCopilotEndpointExpress, createCopilotEndpointSingleRoute, createCopilotEndpointSingleRouteExpress, createCopilotExpressHandler, createCopilotHonoHandler, createCopilotKitRuntimeHandler, createCopilotRuntimeHandler, createLogger, createRunEventFinalizer, createSafeUrlDownload, createSurfaceWriter, defineTool, enforcesThreadOwnership, extractParametersFromSchema, finalizeRunEvents, generateMcpToolInstructions, getCommonConfig, getSdkClientOptions, isA2UIEnabled, isIntelligenceRuntime, isThreadAccessDeniedError, langGraphPlatformEndpoint, resolveAgents, resolveEndpointType, resolveModel, runAgentInThread, supportsLocalThreadEndpoints, toFetchCorsConfig, transformRecordedEvents, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵSERVER_THREAD_OWNER, ɵestimateBytes, ɵnormalizeLimits, ɵresolveThreadOwner };
|
|
65
66
|
//# sourceMappingURL=index.mjs.map
|
package/dist/v2/index.mjs.map
CHANGED
|
@@ -1 +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":"
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/runtime",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.64",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -109,10 +109,10 @@
|
|
|
109
109
|
"@ag-ui/mcp-apps-middleware": "0.1.1",
|
|
110
110
|
"@ag-ui/mcp-middleware": "0.0.2",
|
|
111
111
|
"@cfworker/json-schema": "^4.1.1",
|
|
112
|
-
"@copilotkit/channels-core": "0.13.0-rc.
|
|
113
|
-
"@copilotkit/channels-intelligence": "0.13.0-rc.
|
|
112
|
+
"@copilotkit/channels-core": "0.13.0-rc.11",
|
|
113
|
+
"@copilotkit/channels-intelligence": "0.13.0-rc.11",
|
|
114
114
|
"@copilotkit/license-verifier": "~0.5.0",
|
|
115
|
-
"@copilotkit/shared": "2.0.0-rc.
|
|
115
|
+
"@copilotkit/shared": "2.0.0-rc.64",
|
|
116
116
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
117
117
|
"@remix-run/node-fetch-server": "^0.13.0",
|
|
118
118
|
"@tanstack/ai": "^1.2.0",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"vitest": "^3.2.4",
|
|
153
153
|
"ws": "^8.18.0",
|
|
154
154
|
"@copilotkit/typescript-config": "1.55.0-next.8",
|
|
155
|
-
"@copilotkit/channels": "0.13.0-rc.
|
|
155
|
+
"@copilotkit/channels": "0.13.0-rc.11"
|
|
156
156
|
},
|
|
157
157
|
"nx": {
|
|
158
158
|
"targets": {
|