@copilotkit/runtime 2.0.0-rc.62 → 2.0.0-rc.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/v2/index.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit\n * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that\n * imports from it keeps working. It exports:\n *\n * - every export of `@copilotkit/runtime`;\n * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from\n * `@copilotkit/runtime/agent`;\n * - the 1.x names of the runtime exports that 2.0 renamed with \"Kit\". Each\n * old name is the same value or type as its new name.\n *\n * The root exports only the new names. `npx codemod @copilotkit/v2-migration`\n * moves the imports to the root and renames them. The build marks each name\n * of this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n CopilotKitIntelligenceRuntime,\n CopilotKitRuntime,\n CopilotKitSseRuntime,\n createCopilotKitRuntimeHandler,\n} from \"../index\";\nimport type {\n CopilotKitCorsConfig,\n CopilotKitIntelligenceRuntimeLike,\n CopilotKitIntelligenceRuntimeOptions,\n CopilotKitRuntimeConstructor,\n CopilotKitRuntimeFetchHandler,\n CopilotKitRuntimeFetchHandlerWithChannels,\n CopilotKitRuntimeHandlerOptions,\n CopilotKitRuntimeHooks,\n CopilotKitRuntimeLearningConfig,\n CopilotKitRuntimeLearningContext,\n CopilotKitRuntimeLike,\n CopilotKitRuntimeLogger,\n CopilotKitRuntimeMemoryConfig,\n CopilotKitRuntimeOptions,\n CopilotKitRuntimeUser,\n CopilotKitSseRuntimeLike,\n CopilotKitSseRuntimeOptions,\n} from \"../index\";\n\nexport * from \"../index\";\n\n// 1.x exported the Built-in Agent from `/v2`. The AI SDK helpers of\n// `@copilotkit/runtime/agent/ai-sdk` stay out: they load the optional `ai`\n// peer, and every `/v2` import would then need it.\nexport {\n BuiltInAgent,\n InterruptSignal,\n convertAISDKStream,\n convertInputToTanStackAI,\n convertTanStackStream,\n defineTool,\n} from \"../agent\";\nexport type {\n BuiltInAgentAISDKFactoryConfig,\n BuiltInAgentClassicConfig,\n BuiltInAgentConfiguration,\n BuiltInAgentCustomFactoryConfig,\n BuiltInAgentFactoryConfig,\n BuiltInAgentFactoryContext,\n BuiltInAgentLearnedSkills,\n BuiltInAgentLearnedSkillsOptions,\n BuiltInAgentTanStackFactoryConfig,\n OverridableProperty,\n TanStackChatMessage,\n TanStackInputResult,\n ToolDefinition,\n} from \"../agent\";\n\n/* ------------------------------------------------------------------------------------------------\n * The 1.x names\n *\n * 2.0 renamed these exports with \"Kit\" after \"Copilot\". Each old name is an\n * alias of its new name: the same value, and the same type.\n * --------------------------------------------------------------------------------------------- */\n\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotRuntime = CopilotKitRuntime;\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntime = CopilotKitRuntime;\n\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotSseRuntime = CopilotKitSseRuntime;\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntime = CopilotKitSseRuntime;\n\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n\n/**\n * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;\n\n/**\n * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;\n/**\n * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeOptions = CopilotKitRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLike = CopilotKitRuntimeLike;\n/**\n * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeOptions =\n CopilotKitIntelligenceRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;\n/**\n * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeUser = CopilotKitRuntimeUser;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningConfig` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningContext` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;\n/**\n * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLogger = CopilotKitRuntimeLogger;\n/**\n * @deprecated Use `CopilotKitRuntimeHandlerOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandlerWithChannels =\n CopilotKitRuntimeFetchHandlerWithChannels;\n/**\n * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHooks = CopilotKitRuntimeHooks;\n/**\n * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,iBAAiB;;;;;;AAa9B,MAAa,oBAAoB;;;;;;AAajC,MAAa,6BAA6B;;;;;;AAa1C,MAAa,8BAA8B"}
@@ -0,0 +1,44 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_node_fetch_handler = require('../runtime/endpoints/node-fetch-handler.cjs');
3
+ const require_node = require('../runtime/endpoints/node.cjs');
4
+
5
+ //#region src/v2/node.ts
6
+ /**
7
+ * `@copilotkit/runtime/v2/node`, the import path of the 2.0 Node.js listener
8
+ * in CopilotKit 1.x. In 2.0 it is a deprecated alias of
9
+ * `@copilotkit/runtime/node`, so 1.x code that imports from it keeps working.
10
+ * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of
11
+ * those exports. Each old name is the same value or type as its new name.
12
+ *
13
+ * `npx codemod @copilotkit/v2-migration` moves the imports to
14
+ * `@copilotkit/runtime/node` and renames them. The build marks each name of
15
+ * this entry deprecated in its declarations
16
+ * (scripts/deprecations/v2-subpath-aliases.mts).
17
+ */
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeListener` from
20
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
21
+ * imports, run `npx codemod @copilotkit/v2-migration`.
22
+ */
23
+ const createCopilotNodeListener = require_node.createCopilotKitNodeListener;
24
+ /**
25
+ * @deprecated Use `createCopilotKitNodeHandler` from
26
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
27
+ * imports, run `npx codemod @copilotkit/v2-migration`.
28
+ */
29
+ const createCopilotNodeHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
30
+ /**
31
+ * @deprecated Use `createCopilotKitNodeHandler` from
32
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
33
+ * `createCopilotKitNodeHandler`. To move your imports, run
34
+ * `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ const createNodeFetchHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
37
+
38
+ //#endregion
39
+ exports.createCopilotKitNodeHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
40
+ exports.createCopilotKitNodeListener = require_node.createCopilotKitNodeListener;
41
+ exports.createCopilotNodeHandler = createCopilotNodeHandler;
42
+ exports.createCopilotNodeListener = createCopilotNodeListener;
43
+ exports.createNodeFetchHandler = createNodeFetchHandler;
44
+ //# sourceMappingURL=node.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.cjs","names":["createCopilotKitNodeListener","createCopilotKitNodeHandler"],"sources":["../../src/v2/node.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2/node`, the import path of the 2.0 Node.js listener\n * in CopilotKit 1.x. In 2.0 it is a deprecated alias of\n * `@copilotkit/runtime/node`, so 1.x code that imports from it keeps working.\n * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of\n * those exports. Each old name is the same value or type as its new name.\n *\n * `npx codemod @copilotkit/v2-migration` moves the imports to\n * `@copilotkit/runtime/node` and renames them. The build marks each name of\n * this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n createCopilotKitNodeHandler,\n createCopilotKitNodeListener,\n} from \"../node\";\nimport type {\n NodeCopilotKitListener,\n NodeCopilotKitListenerWithChannels,\n} from \"../node\";\n\nexport * from \"../node\";\n\n/**\n * @deprecated Use `createCopilotKitNodeListener` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotNodeListener = createCopilotKitNodeListener;\n/**\n * @deprecated Use `createCopilotKitNodeHandler` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotNodeHandler = createCopilotKitNodeHandler;\n/**\n * @deprecated Use `createCopilotKitNodeHandler` from\n * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of\n * `createCopilotKitNodeHandler`. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createNodeFetchHandler = createCopilotKitNodeHandler;\n/**\n * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type NodeCopilotListener = NodeCopilotKitListener;\n/**\n * @deprecated Use `NodeCopilotKitListenerWithChannels` from\n * `@copilotkit/runtime/node`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type NodeCopilotListenerWithChannels =\n NodeCopilotKitListenerWithChannels;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,4BAA4BA;;;;;;AAMzC,MAAa,2BAA2BC;;;;;;;AAOxC,MAAa,yBAAyBA"}
@@ -1,18 +1,55 @@
1
+ import { NodeFetchHandler, createCopilotKitNodeHandler } from "../runtime/endpoints/node-fetch-handler.cjs";
2
+ import { NodeCopilotKitListener, NodeCopilotKitListenerWithChannels, createCopilotKitNodeListener } from "../runtime/endpoints/node.cjs";
3
+ import "../node.cjs";
4
+
5
+ //#region src/v2/node.d.ts
1
6
  /**
2
- * @deprecated "@copilotkit/runtime/v2/node" is a deprecated alias of "@copilotkit/runtime/node".
3
- * Import from "@copilotkit/runtime/node".
4
- * @module
7
+ * @deprecated Use `createCopilotKitNodeListener` from
8
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
+ * imports, run `npx codemod @copilotkit/v2-migration`.
5
10
  */
11
+ declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
+ /**
13
+ * @deprecated Use `createCopilotKitNodeHandler` from
14
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
+ * imports, run `npx codemod @copilotkit/v2-migration`.
16
+ */
17
+ declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeHandler` from
20
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
+ * `createCopilotKitNodeHandler`. To move your imports, run
22
+ * `npx codemod @copilotkit/v2-migration`.
23
+ */
24
+ declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
+ /**
26
+ * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
+ * This old name is an alias of it. To move your imports, run
28
+ * `npx codemod @copilotkit/v2-migration`.
29
+ */
30
+ type NodeCopilotListener = NodeCopilotKitListener;
31
+ /**
32
+ * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
+ * imports, run `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
+ //#endregion
6
38
  export {
7
39
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
8
40
  NodeCopilotKitListener,
9
41
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
10
42
  NodeCopilotKitListenerWithChannels,
43
+ NodeCopilotListener,
44
+ NodeCopilotListenerWithChannels,
11
45
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
12
46
  NodeFetchHandler,
13
47
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
14
48
  createCopilotKitNodeHandler,
15
49
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
16
50
  createCopilotKitNodeListener,
17
- } from "../node.cjs";
18
- export * from "../node.cjs";
51
+ createCopilotNodeHandler,
52
+ createCopilotNodeListener,
53
+ createNodeFetchHandler,
54
+ };
55
+ //# sourceMappingURL=node.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.cts","names":[],"sources":["../../src/v2/node.ts"],"mappings":";;;;;AAyCA;;;;;AAAA,cAba,yBAAA,SAAyB,4BAAA;;;;;AAyBtC;cAnBa,wBAAA,SAAwB,2BAAA;;;;;;;cAOxB,sBAAA,SAAsB,2BAAA;;;;;;KAMvB,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,+BAAA,GACV,kCAAA"}
@@ -1,18 +1,55 @@
1
+ import { NodeFetchHandler, createCopilotKitNodeHandler } from "../runtime/endpoints/node-fetch-handler.mjs";
2
+ import { NodeCopilotKitListener, NodeCopilotKitListenerWithChannels, createCopilotKitNodeListener } from "../runtime/endpoints/node.mjs";
3
+ import "../node.mjs";
4
+
5
+ //#region src/v2/node.d.ts
1
6
  /**
2
- * @deprecated "@copilotkit/runtime/v2/node" is a deprecated alias of "@copilotkit/runtime/node".
3
- * Import from "@copilotkit/runtime/node".
4
- * @module
7
+ * @deprecated Use `createCopilotKitNodeListener` from
8
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
+ * imports, run `npx codemod @copilotkit/v2-migration`.
5
10
  */
11
+ declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
+ /**
13
+ * @deprecated Use `createCopilotKitNodeHandler` from
14
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
+ * imports, run `npx codemod @copilotkit/v2-migration`.
16
+ */
17
+ declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
+ /**
19
+ * @deprecated Use `createCopilotKitNodeHandler` from
20
+ * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
+ * `createCopilotKitNodeHandler`. To move your imports, run
22
+ * `npx codemod @copilotkit/v2-migration`.
23
+ */
24
+ declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
+ /**
26
+ * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
+ * This old name is an alias of it. To move your imports, run
28
+ * `npx codemod @copilotkit/v2-migration`.
29
+ */
30
+ type NodeCopilotListener = NodeCopilotKitListener;
31
+ /**
32
+ * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
+ * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
+ * imports, run `npx codemod @copilotkit/v2-migration`.
35
+ */
36
+ type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
+ //#endregion
6
38
  export {
7
39
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
8
40
  NodeCopilotKitListener,
9
41
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
10
42
  NodeCopilotKitListenerWithChannels,
43
+ NodeCopilotListener,
44
+ NodeCopilotListenerWithChannels,
11
45
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
12
46
  NodeFetchHandler,
13
47
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
14
48
  createCopilotKitNodeHandler,
15
49
  /** @deprecated "@copilotkit/runtime/v2/node" is deprecated. Import from "@copilotkit/runtime/node". */
16
50
  createCopilotKitNodeListener,
17
- } from "../node.mjs";
18
- export * from "../node.mjs";
51
+ createCopilotNodeHandler,
52
+ createCopilotNodeListener,
53
+ createNodeFetchHandler,
54
+ };
55
+ //# sourceMappingURL=node.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.mts","names":[],"sources":["../../src/v2/node.ts"],"mappings":";;;;;AAyCA;;;;;AAAA,cAba,yBAAA,SAAyB,4BAAA;;;;;AAyBtC;cAnBa,wBAAA,SAAwB,2BAAA;;;;;;;cAOxB,sBAAA,SAAsB,2BAAA;;;;;;KAMvB,mBAAA,GAAsB,sBAAA;;;;;;KAMtB,+BAAA,GACV,kCAAA"}
@@ -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.62",
3
+ "version": "2.0.0-rc.64",
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.9",
113
- "@copilotkit/channels-intelligence": "0.13.0-rc.9",
112
+ "@copilotkit/channels-core": "0.13.0-rc.11",
113
+ "@copilotkit/channels-intelligence": "0.13.0-rc.11",
114
114
  "@copilotkit/license-verifier": "~0.5.0",
115
- "@copilotkit/shared": "2.0.0-rc.62",
115
+ "@copilotkit/shared": "2.0.0-rc.64",
116
116
  "@modelcontextprotocol/sdk": "^1.29.0",
117
117
  "@remix-run/node-fetch-server": "^0.13.0",
118
118
  "@tanstack/ai": "^1.2.0",
@@ -151,8 +151,8 @@
151
151
  "valibot": "^1.2.0",
152
152
  "vitest": "^3.2.4",
153
153
  "ws": "^8.18.0",
154
- "@copilotkit/channels": "0.13.0-rc.9",
155
- "@copilotkit/typescript-config": "1.55.0-next.8"
154
+ "@copilotkit/typescript-config": "1.55.0-next.8",
155
+ "@copilotkit/channels": "0.13.0-rc.11"
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
  }