@copilotkit/runtime 2.0.0-rc.62 → 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.
- package/dist/runtime/core/package-info.cjs +1 -1
- package/dist/runtime/core/package-info.mjs +1 -1
- package/dist/v2/index.cjs +131 -0
- package/dist/v2/index.cjs.map +1 -0
- package/dist/v2/index.d.cts +235 -6
- package/dist/v2/index.d.cts.map +1 -0
- package/dist/v2/index.d.mts +235 -6
- package/dist/v2/index.d.mts.map +1 -0
- package/dist/v2/index.mjs +65 -0
- package/dist/v2/index.mjs.map +1 -0
- package/dist/v2/node.cjs +44 -0
- package/dist/v2/node.cjs.map +1 -0
- package/dist/v2/node.d.cts +42 -5
- package/dist/v2/node.d.cts.map +1 -0
- package/dist/v2/node.d.mts +42 -5
- package/dist/v2/node.d.mts.map +1 -0
- package/dist/v2/node.mjs +39 -0
- package/dist/v2/node.mjs.map +1 -0
- package/package.json +13 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/runtime/core/package-info.ts
|
|
3
3
|
const RUNTIME_PACKAGE_NAME = "@copilotkit/runtime";
|
|
4
|
-
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.
|
|
4
|
+
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.63";
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
exports.RUNTIME_PACKAGE_NAME = RUNTIME_PACKAGE_NAME;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/runtime/core/package-info.ts
|
|
2
2
|
const RUNTIME_PACKAGE_NAME = "@copilotkit/runtime";
|
|
3
|
-
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.
|
|
3
|
+
const RUNTIME_PACKAGE_VERSION = "2.0.0-rc.63";
|
|
4
4
|
|
|
5
5
|
//#endregion
|
|
6
6
|
export { RUNTIME_PACKAGE_NAME, RUNTIME_PACKAGE_VERSION };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_agent_runner = require('../runtime/runner/agent-runner.cjs');
|
|
3
|
+
const require_learned_skills = require('../runtime/intelligence-platform/learned-skills.cjs');
|
|
4
|
+
const require_client = require('../runtime/intelligence-platform/client.cjs');
|
|
5
|
+
const require_in_memory = require('../runtime/runner/in-memory.cjs');
|
|
6
|
+
const require_intelligence = require('../runtime/runner/intelligence.cjs');
|
|
7
|
+
const require_runtime = require('../runtime/core/runtime.cjs');
|
|
8
|
+
const require_generative_ui_middleware = require('../runtime/generative-ui/generative-ui-middleware.cjs');
|
|
9
|
+
const require_a2ui_v09_middleware = require('../runtime/generative-ui/a2ui-v09-middleware.cjs');
|
|
10
|
+
const require_surface_writer = require('../runtime/generative-ui/surface-writer.cjs');
|
|
11
|
+
const require_open_generative_ui_middleware = require('../runtime/event-transforms/open-generative-ui-middleware.cjs');
|
|
12
|
+
const require_recorded_events = require('../runtime/event-transforms/recorded-events.cjs');
|
|
13
|
+
const require_transcription_service = require('../runtime/transcription-service/transcription-service.cjs');
|
|
14
|
+
const require_thread_run = require('../runtime/core/thread-run.cjs');
|
|
15
|
+
const require_fetch_handler = require('../runtime/core/fetch-handler.cjs');
|
|
16
|
+
const require_aisdk = require('../agent/converters/aisdk.cjs');
|
|
17
|
+
const require_tanstack = require('../agent/converters/tanstack.cjs');
|
|
18
|
+
const require_agent = require('../agent.cjs');
|
|
19
|
+
let _ag_ui_a2ui_middleware = require("@ag-ui/a2ui-middleware");
|
|
20
|
+
let _copilotkit_shared = require("@copilotkit/shared");
|
|
21
|
+
|
|
22
|
+
//#region src/v2/index.ts
|
|
23
|
+
/**
|
|
24
|
+
* `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit
|
|
25
|
+
* 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that
|
|
26
|
+
* imports from it keeps working. It exports:
|
|
27
|
+
*
|
|
28
|
+
* - every export of `@copilotkit/runtime`;
|
|
29
|
+
* - the Built-in Agent exports that 1.x exported here. 2.0 exports them from
|
|
30
|
+
* `@copilotkit/runtime/agent`;
|
|
31
|
+
* - the 1.x names of the runtime exports that 2.0 renamed with "Kit". Each
|
|
32
|
+
* old name is the same value or type as its new name.
|
|
33
|
+
*
|
|
34
|
+
* The root exports only the new names. `npx codemod @copilotkit/v2-migration`
|
|
35
|
+
* moves the imports to the root and renames them. The build marks each name
|
|
36
|
+
* of this entry deprecated in its declarations
|
|
37
|
+
* (scripts/deprecations/v2-subpath-aliases.mts).
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
|
|
41
|
+
* name is an alias of it. To move your imports, run
|
|
42
|
+
* `npx codemod @copilotkit/v2-migration`.
|
|
43
|
+
*/
|
|
44
|
+
const CopilotRuntime = require_runtime.CopilotKitRuntime;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
|
|
47
|
+
* name is an alias of it. To move your imports, run
|
|
48
|
+
* `npx codemod @copilotkit/v2-migration`.
|
|
49
|
+
*/
|
|
50
|
+
const CopilotSseRuntime = require_runtime.CopilotKitSseRuntime;
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
|
|
53
|
+
* This old name is an alias of it. To move your imports, run
|
|
54
|
+
* `npx codemod @copilotkit/v2-migration`.
|
|
55
|
+
*/
|
|
56
|
+
const CopilotIntelligenceRuntime = require_runtime.CopilotKitIntelligenceRuntime;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
|
|
59
|
+
* This old name is an alias of it. To move your imports, run
|
|
60
|
+
* `npx codemod @copilotkit/v2-migration`.
|
|
61
|
+
*/
|
|
62
|
+
const createCopilotRuntimeHandler = require_fetch_handler.createCopilotKitRuntimeHandler;
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
Object.defineProperty(exports, 'A2UIMiddleware', {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _ag_ui_a2ui_middleware.A2UIMiddleware;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
exports.A2UIV09BridgeMiddleware = require_a2ui_v09_middleware.A2UIV09BridgeMiddleware;
|
|
72
|
+
exports.AgentRunner = require_agent_runner.AgentRunner;
|
|
73
|
+
exports.ArgsParser = require_open_generative_ui_middleware.ArgsParser;
|
|
74
|
+
exports.BuiltInAgent = require_agent.BuiltInAgent;
|
|
75
|
+
exports.CopilotIntelligenceRuntime = CopilotIntelligenceRuntime;
|
|
76
|
+
exports.CopilotKitIntelligence = require_client.CopilotKitIntelligence;
|
|
77
|
+
exports.CopilotKitIntelligenceRuntime = require_runtime.CopilotKitIntelligenceRuntime;
|
|
78
|
+
exports.CopilotKitRuntime = require_runtime.CopilotKitRuntime;
|
|
79
|
+
exports.CopilotKitSseRuntime = require_runtime.CopilotKitSseRuntime;
|
|
80
|
+
exports.CopilotRuntime = CopilotRuntime;
|
|
81
|
+
exports.CopilotSseRuntime = CopilotSseRuntime;
|
|
82
|
+
exports.GenerativeUIMiddleware = require_generative_ui_middleware.GenerativeUIMiddleware;
|
|
83
|
+
exports.InMemoryAgentRunner = require_in_memory.InMemoryAgentRunner;
|
|
84
|
+
exports.IntelligenceAgentRunner = require_intelligence.IntelligenceAgentRunner;
|
|
85
|
+
exports.InterruptSignal = require_agent.InterruptSignal;
|
|
86
|
+
exports.LearnedSkillsError = require_learned_skills.LearnedSkillsError;
|
|
87
|
+
exports.OpenGenerativeUIMiddleware = require_open_generative_ui_middleware.OpenGenerativeUIMiddleware;
|
|
88
|
+
exports.PlatformRequestError = require_client.PlatformRequestError;
|
|
89
|
+
exports.RunnerEventQueueFullError = require_intelligence.RunnerEventQueueFullError;
|
|
90
|
+
exports.STOP_RECORD_DEADLINE_MS = require_intelligence.STOP_RECORD_DEADLINE_MS;
|
|
91
|
+
exports.THREAD_ACCESS_DENIED_ERROR_CODE = require_agent_runner.THREAD_ACCESS_DENIED_ERROR_CODE;
|
|
92
|
+
exports.ThreadAccessDeniedError = require_agent_runner.ThreadAccessDeniedError;
|
|
93
|
+
exports.ThreadAlreadyRunningError = require_agent_runner.ThreadAlreadyRunningError;
|
|
94
|
+
exports.ThreadRunError = require_thread_run.ThreadRunError;
|
|
95
|
+
exports.TranscriptionService = require_transcription_service.TranscriptionService;
|
|
96
|
+
exports.VERSION = require_runtime.VERSION;
|
|
97
|
+
exports.convertAISDKStream = require_aisdk.convertAISDKStream;
|
|
98
|
+
exports.convertInputToTanStackAI = require_tanstack.convertInputToTanStackAI;
|
|
99
|
+
exports.convertTanStackStream = require_tanstack.convertTanStackStream;
|
|
100
|
+
exports.createCopilotKitRuntimeHandler = require_fetch_handler.createCopilotKitRuntimeHandler;
|
|
101
|
+
exports.createCopilotRuntimeHandler = createCopilotRuntimeHandler;
|
|
102
|
+
Object.defineProperty(exports, 'createRunEventFinalizer', {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _copilotkit_shared.createRunEventFinalizer;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
exports.createSurfaceWriter = require_surface_writer.createSurfaceWriter;
|
|
109
|
+
exports.defineTool = require_agent.defineTool;
|
|
110
|
+
exports.enforcesThreadOwnership = require_agent_runner.enforcesThreadOwnership;
|
|
111
|
+
Object.defineProperty(exports, 'finalizeRunEvents', {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () {
|
|
114
|
+
return _copilotkit_shared.finalizeRunEvents;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
exports.isIntelligenceRuntime = require_runtime.isIntelligenceRuntime;
|
|
118
|
+
exports.isThreadAccessDeniedError = require_agent_runner.isThreadAccessDeniedError;
|
|
119
|
+
exports.resolveAgents = require_runtime.resolveAgents;
|
|
120
|
+
exports.runAgentInThread = require_thread_run.runAgentInThread;
|
|
121
|
+
exports.supportsLocalThreadEndpoints = require_agent_runner.supportsLocalThreadEndpoints;
|
|
122
|
+
exports.transformRecordedEvents = require_recorded_events.transformRecordedEvents;
|
|
123
|
+
exports.ɵBoundedThreadStore = require_in_memory.ɵBoundedThreadStore;
|
|
124
|
+
exports.ɵGLOBAL_STORE = require_in_memory.ɵGLOBAL_STORE;
|
|
125
|
+
exports.ɵINMEMORY_DEFAULTS = require_in_memory.ɵINMEMORY_DEFAULTS;
|
|
126
|
+
exports.ɵOWNER_RETENTION_DEFAULTS = require_in_memory.ɵOWNER_RETENTION_DEFAULTS;
|
|
127
|
+
exports.ɵSERVER_THREAD_OWNER = require_agent_runner.ɵSERVER_THREAD_OWNER;
|
|
128
|
+
exports.ɵestimateBytes = require_in_memory.ɵestimateBytes;
|
|
129
|
+
exports.ɵnormalizeLimits = require_in_memory.ɵnormalizeLimits;
|
|
130
|
+
exports.ɵresolveThreadOwner = require_agent_runner.ɵresolveThreadOwner;
|
|
131
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["CopilotKitRuntime","CopilotKitSseRuntime","CopilotKitIntelligenceRuntime","createCopilotKitRuntimeHandler"],"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,iBAAiBA;;;;;;AAa9B,MAAa,oBAAoBC;;;;;;AAajC,MAAa,6BAA6BC;;;;;;AAa1C,MAAa,8BAA8BC"}
|
package/dist/v2/index.d.cts
CHANGED
|
@@ -1,8 +1,178 @@
|
|
|
1
|
+
import { experimental_d_exports } from "../runtime/intelligence-platform/experimental.cjs";
|
|
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.cjs";
|
|
3
|
+
import { ThreadAccessMode, ThreadsConfig } from "../runtime/handlers/shared/thread-access.cjs";
|
|
4
|
+
import { CopilotKitRuntimeLogger } from "../runtime/core/logger.cjs";
|
|
5
|
+
import { TranscribeFileOptions, TranscriptionService } from "../runtime/transcription-service/transcription-service.cjs";
|
|
6
|
+
import { IntelligenceAgentRunner, IntelligenceAgentRunnerOptions, RunnerEventDeliveryStats, RunnerEventQueueFullError, RunnerStartupBoundary, STOP_RECORD_DEADLINE_MS } from "../runtime/runner/intelligence.cjs";
|
|
7
|
+
import { GetLearnedSkillsSnapshotRequest, GetLearnedSkillsSnapshotsRequest, LearnedSkillsBatchResult, LearnedSkillsError, LearnedSkillsErrorCode, LearnedSkillsSnapshotResult } from "../runtime/intelligence-platform/learned-skills.cjs";
|
|
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.cjs";
|
|
9
|
+
import { CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeUser, GetLearningContainerId, GetTrajectoryLearningContainerIds, LearningContainerSelectorInput, TrajectoryLearningContainerSelectorInput } from "../runtime/core/learning.cjs";
|
|
10
|
+
import { CopilotKitIntelligence, CopilotKitIntelligenceConfig, CreateThreadRequest, ListThreadsResponse, PlatformRequestError, SubscribeToThreadsRequest, SubscribeToThreadsResponse, ThreadSummary, UpdateThreadRequest } from "../runtime/intelligence-platform/client.cjs";
|
|
11
|
+
import { BuiltInAgentLearnedSkills, BuiltInAgentLearnedSkillsOptions } from "../agent/learned-skills.cjs";
|
|
12
|
+
import { convertAISDKStream } from "../agent/converters/aisdk.cjs";
|
|
13
|
+
import { TanStackChatMessage, TanStackInputResult, convertInputToTanStackAI, convertTanStackStream } from "../agent/converters/tanstack.cjs";
|
|
14
|
+
import { BuiltInAgent, BuiltInAgentAISDKFactoryConfig, BuiltInAgentClassicConfig, BuiltInAgentConfiguration, BuiltInAgentCustomFactoryConfig, BuiltInAgentFactoryConfig, BuiltInAgentFactoryContext, BuiltInAgentTanStackFactoryConfig, InterruptSignal, OverridableProperty, ToolDefinition, defineTool } from "../agent.cjs";
|
|
15
|
+
import { GenerativeUIMiddleware } from "../runtime/generative-ui/generative-ui-middleware.cjs";
|
|
16
|
+
import { A2UIV09BridgeMiddleware } from "../runtime/generative-ui/a2ui-v09-middleware.cjs";
|
|
17
|
+
import { GenerativeUISurfaceWriter, createSurfaceWriter } from "../runtime/generative-ui/surface-writer.cjs";
|
|
18
|
+
import { ArgsParser, GenerateSandboxedUIParams, OnParamEvent, OpenGenerativeUIMiddleware } from "../runtime/event-transforms/open-generative-ui-middleware.cjs";
|
|
19
|
+
import { RecordedEventTransformOptions, transformRecordedEvents } from "../runtime/event-transforms/recorded-events.cjs";
|
|
20
|
+
import { A2UIMiddleware, A2UIMiddlewareConfig } from "../runtime/event-transforms/index.cjs";
|
|
21
|
+
import { InMemoryAgentRunner, InMemoryAgentRunnerOptions, InMemoryLimits, InMemoryThread, ɵBoundedThreadStore, ɵGLOBAL_STORE, ɵINMEMORY_DEFAULTS, ɵOWNER_RETENTION_DEFAULTS, ɵOwnerRetention, ɵestimateBytes, ɵnormalizeLimits } from "../runtime/runner/in-memory.cjs";
|
|
22
|
+
import { FinalizeRunOptions, RunEventFinalizer, createRunEventFinalizer, finalizeRunEvents } from "../runtime/runner/index.cjs";
|
|
23
|
+
import { RunAgentInThreadOptions, RunAgentInThreadResult, RunAgentInThreadRuntime, ThreadRunError, ThreadRunErrorReason, runAgentInThread } from "../runtime/core/thread-run.cjs";
|
|
24
|
+
import { ChannelStatus, ChannelsControl } from "../runtime/core/channel-manager.cjs";
|
|
25
|
+
import { CopilotKitRuntimeHooks, ErrorHookContext, HandlerHookContext, HookContext, ResponseHookContext, RouteInfo } from "../runtime/core/hooks.cjs";
|
|
26
|
+
import { CopilotKitCorsConfig } from "../runtime/core/fetch-cors.cjs";
|
|
27
|
+
import { CopilotKitRuntimeFetchHandler, CopilotKitRuntimeFetchHandlerWithChannels, CopilotKitRuntimeHandlerOptions, createCopilotKitRuntimeHandler } from "../runtime/core/fetch-handler.cjs";
|
|
28
|
+
import "../index.cjs";
|
|
29
|
+
|
|
30
|
+
//#region src/v2/index.d.ts
|
|
1
31
|
/**
|
|
2
|
-
* @deprecated
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
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". */
|
|
@@ -186,6 +400,10 @@ export {
|
|
|
186
400
|
SubscribeToThreadsResponse,
|
|
187
401
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
188
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,
|
|
189
407
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
190
408
|
ThreadAccessDeniedError,
|
|
191
409
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -204,6 +422,8 @@ export {
|
|
|
204
422
|
ThreadSummary,
|
|
205
423
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
206
424
|
ThreadsConfig,
|
|
425
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
426
|
+
type ToolDefinition,
|
|
207
427
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
208
428
|
TrajectoryLearningContainerSelectorInput,
|
|
209
429
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -214,16 +434,25 @@ export {
|
|
|
214
434
|
UpdateThreadRequest,
|
|
215
435
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
216
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,
|
|
217
443
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
218
444
|
createCopilotKitRuntimeHandler,
|
|
445
|
+
createCopilotRuntimeHandler,
|
|
219
446
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
220
447
|
createRunEventFinalizer,
|
|
221
448
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
222
449
|
createSurfaceWriter,
|
|
450
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
451
|
+
defineTool,
|
|
223
452
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
224
453
|
enforcesThreadOwnership,
|
|
225
454
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
226
|
-
experimental,
|
|
455
|
+
experimental_d_exports as experimental,
|
|
227
456
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
228
457
|
finalizeRunEvents,
|
|
229
458
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -256,5 +485,5 @@ export {
|
|
|
256
485
|
ɵnormalizeLimits,
|
|
257
486
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
258
487
|
ɵresolveThreadOwner,
|
|
259
|
-
}
|
|
260
|
-
|
|
488
|
+
};
|
|
489
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","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"}
|
package/dist/v2/index.d.mts
CHANGED
|
@@ -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
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
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". */
|
|
@@ -186,6 +400,10 @@ export {
|
|
|
186
400
|
SubscribeToThreadsResponse,
|
|
187
401
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
188
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,
|
|
189
407
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
190
408
|
ThreadAccessDeniedError,
|
|
191
409
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -204,6 +422,8 @@ export {
|
|
|
204
422
|
ThreadSummary,
|
|
205
423
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
206
424
|
ThreadsConfig,
|
|
425
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
426
|
+
type ToolDefinition,
|
|
207
427
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
208
428
|
TrajectoryLearningContainerSelectorInput,
|
|
209
429
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -214,16 +434,25 @@ export {
|
|
|
214
434
|
UpdateThreadRequest,
|
|
215
435
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
216
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,
|
|
217
443
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
218
444
|
createCopilotKitRuntimeHandler,
|
|
445
|
+
createCopilotRuntimeHandler,
|
|
219
446
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
220
447
|
createRunEventFinalizer,
|
|
221
448
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
222
449
|
createSurfaceWriter,
|
|
450
|
+
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime/agent". */
|
|
451
|
+
defineTool,
|
|
223
452
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
224
453
|
enforcesThreadOwnership,
|
|
225
454
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
226
|
-
experimental,
|
|
455
|
+
experimental_d_exports as experimental,
|
|
227
456
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
228
457
|
finalizeRunEvents,
|
|
229
458
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
@@ -256,5 +485,5 @@ export {
|
|
|
256
485
|
ɵnormalizeLimits,
|
|
257
486
|
/** @deprecated "@copilotkit/runtime/v2" is deprecated. Import from "@copilotkit/runtime". */
|
|
258
487
|
ɵresolveThreadOwner,
|
|
259
|
-
}
|
|
260
|
-
|
|
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"}
|
package/dist/v2/node.cjs
ADDED
|
@@ -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"}
|
package/dist/v2/node.d.cts
CHANGED
|
@@ -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
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
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
|
-
|
|
18
|
-
|
|
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"}
|
package/dist/v2/node.d.mts
CHANGED
|
@@ -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
|
|
3
|
-
*
|
|
4
|
-
* @
|
|
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
|
-
|
|
18
|
-
|
|
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"}
|
package/dist/v2/node.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createCopilotKitNodeHandler } from "../runtime/endpoints/node-fetch-handler.mjs";
|
|
2
|
+
import { createCopilotKitNodeListener } from "../runtime/endpoints/node.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/v2/node.ts
|
|
5
|
+
/**
|
|
6
|
+
* `@copilotkit/runtime/v2/node`, the import path of the 2.0 Node.js listener
|
|
7
|
+
* in CopilotKit 1.x. In 2.0 it is a deprecated alias of
|
|
8
|
+
* `@copilotkit/runtime/node`, so 1.x code that imports from it keeps working.
|
|
9
|
+
* It exports every export of `@copilotkit/runtime/node`, and the 1.x names of
|
|
10
|
+
* those exports. Each old name is the same value or type as its new name.
|
|
11
|
+
*
|
|
12
|
+
* `npx codemod @copilotkit/v2-migration` moves the imports to
|
|
13
|
+
* `@copilotkit/runtime/node` and renames them. The build marks each name of
|
|
14
|
+
* this entry deprecated in its declarations
|
|
15
|
+
* (scripts/deprecations/v2-subpath-aliases.mts).
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `createCopilotKitNodeListener` from
|
|
19
|
+
* `@copilotkit/runtime/node`. This old name is an alias of it. To move your
|
|
20
|
+
* imports, run `npx codemod @copilotkit/v2-migration`.
|
|
21
|
+
*/
|
|
22
|
+
const createCopilotNodeListener = createCopilotKitNodeListener;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Use `createCopilotKitNodeHandler` from
|
|
25
|
+
* `@copilotkit/runtime/node`. This old name is an alias of it. To move your
|
|
26
|
+
* imports, run `npx codemod @copilotkit/v2-migration`.
|
|
27
|
+
*/
|
|
28
|
+
const createCopilotNodeHandler = createCopilotKitNodeHandler;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `createCopilotKitNodeHandler` from
|
|
31
|
+
* `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
|
|
32
|
+
* `createCopilotKitNodeHandler`. To move your imports, run
|
|
33
|
+
* `npx codemod @copilotkit/v2-migration`.
|
|
34
|
+
*/
|
|
35
|
+
const createNodeFetchHandler = createCopilotKitNodeHandler;
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { createCopilotKitNodeHandler, createCopilotKitNodeListener, createCopilotNodeHandler, createCopilotNodeListener, createNodeFetchHandler };
|
|
39
|
+
//# sourceMappingURL=node.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.mjs","names":[],"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,4BAA4B;;;;;;AAMzC,MAAa,2BAA2B;;;;;;;AAOxC,MAAa,yBAAyB"}
|
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.63",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -76,27 +76,27 @@
|
|
|
76
76
|
"import": "./dist/node.mjs",
|
|
77
77
|
"require": "./dist/node.cjs"
|
|
78
78
|
},
|
|
79
|
-
"./package.json": "./package.json",
|
|
80
79
|
"./v2": {
|
|
81
80
|
"import": {
|
|
82
81
|
"types": "./dist/v2/index.d.mts",
|
|
83
|
-
"default": "./dist/index.mjs"
|
|
82
|
+
"default": "./dist/v2/index.mjs"
|
|
84
83
|
},
|
|
85
84
|
"require": {
|
|
86
85
|
"types": "./dist/v2/index.d.cts",
|
|
87
|
-
"default": "./dist/index.cjs"
|
|
86
|
+
"default": "./dist/v2/index.cjs"
|
|
88
87
|
}
|
|
89
88
|
},
|
|
90
89
|
"./v2/node": {
|
|
91
90
|
"import": {
|
|
92
91
|
"types": "./dist/v2/node.d.mts",
|
|
93
|
-
"default": "./dist/node.mjs"
|
|
92
|
+
"default": "./dist/v2/node.mjs"
|
|
94
93
|
},
|
|
95
94
|
"require": {
|
|
96
95
|
"types": "./dist/v2/node.d.cts",
|
|
97
|
-
"default": "./dist/node.cjs"
|
|
96
|
+
"default": "./dist/v2/node.cjs"
|
|
98
97
|
}
|
|
99
|
-
}
|
|
98
|
+
},
|
|
99
|
+
"./package.json": "./package.json"
|
|
100
100
|
},
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
@@ -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.10",
|
|
113
|
+
"@copilotkit/channels-intelligence": "0.13.0-rc.10",
|
|
114
114
|
"@copilotkit/license-verifier": "~0.5.0",
|
|
115
|
-
"@copilotkit/shared": "2.0.0-rc.
|
|
115
|
+
"@copilotkit/shared": "2.0.0-rc.63",
|
|
116
116
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
117
117
|
"@remix-run/node-fetch-server": "^0.13.0",
|
|
118
118
|
"@tanstack/ai": "^1.2.0",
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"valibot": "^1.2.0",
|
|
152
152
|
"vitest": "^3.2.4",
|
|
153
153
|
"ws": "^8.18.0",
|
|
154
|
-
"@copilotkit/
|
|
155
|
-
"@copilotkit/
|
|
154
|
+
"@copilotkit/typescript-config": "1.55.0-next.8",
|
|
155
|
+
"@copilotkit/channels": "0.13.0-rc.10"
|
|
156
156
|
},
|
|
157
157
|
"nx": {
|
|
158
158
|
"targets": {
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"check-types": "tsc --noEmit",
|
|
184
184
|
"link:global": "pnpm link --global",
|
|
185
185
|
"unlink:global": "pnpm unlink --global",
|
|
186
|
-
"check-dts": "tsx ../../scripts/validate-dts-ambient.ts dist && tsx ../../scripts/validate-dts-imports.ts dist && tsx ../../scripts/validate-optional-peer-entries.ts . && tsx ../../scripts/validate-module-scope-create-require.ts . && tsc --noEmit -p type-fixtures/express4/tsconfig.json && tsc --noEmit -p type-fixtures/express5/tsconfig.json && tsc --noEmit -p type-fixtures/learning-management/tsconfig.json && tsc --noEmit -p type-fixtures/agent/tsconfig.json",
|
|
186
|
+
"check-dts": "tsx ../../scripts/validate-dts-ambient.ts dist && tsx ../../scripts/validate-dts-imports.ts dist && tsx ../../scripts/validate-optional-peer-entries.ts . && tsx ../../scripts/validate-module-scope-create-require.ts . && tsc --noEmit -p type-fixtures/express4/tsconfig.json && tsc --noEmit -p type-fixtures/express5/tsconfig.json && tsc --noEmit -p type-fixtures/learning-management/tsconfig.json && tsc --noEmit -p type-fixtures/agent/tsconfig.json && tsc --noEmit -p type-fixtures/v2/tsconfig.json && node type-fixtures/v2/exports.mjs",
|
|
187
187
|
"publint": "publint .",
|
|
188
188
|
"attw": "attw --pack . --profile node16"
|
|
189
189
|
}
|