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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/agent.cjs +1 -0
  2. package/dist/agent.cjs.map +1 -1
  3. package/dist/agent.d.cts +10 -0
  4. package/dist/agent.d.cts.map +1 -1
  5. package/dist/agent.d.mts +10 -0
  6. package/dist/agent.d.mts.map +1 -1
  7. package/dist/agent.mjs +1 -0
  8. package/dist/agent.mjs.map +1 -1
  9. package/dist/index.cjs +4 -0
  10. package/dist/index.d.cts +4 -3
  11. package/dist/index.d.mts +4 -3
  12. package/dist/index.mjs +3 -2
  13. package/dist/runtime/core/channel-manager.cjs +51 -162
  14. package/dist/runtime/core/channel-manager.cjs.map +1 -1
  15. package/dist/runtime/core/channel-manager.d.cts +1 -1
  16. package/dist/runtime/core/channel-manager.d.cts.map +1 -1
  17. package/dist/runtime/core/channel-manager.d.mts +1 -1
  18. package/dist/runtime/core/channel-manager.d.mts.map +1 -1
  19. package/dist/runtime/core/channel-manager.mjs +51 -162
  20. package/dist/runtime/core/channel-manager.mjs.map +1 -1
  21. package/dist/runtime/core/fetch-cors.cjs +4 -2
  22. package/dist/runtime/core/fetch-cors.cjs.map +1 -1
  23. package/dist/runtime/core/fetch-cors.mjs +4 -2
  24. package/dist/runtime/core/fetch-cors.mjs.map +1 -1
  25. package/dist/runtime/core/package-info.cjs +1 -1
  26. package/dist/runtime/core/package-info.mjs +1 -1
  27. package/dist/runtime/core/runtime.cjs +3 -1
  28. package/dist/runtime/core/runtime.cjs.map +1 -1
  29. package/dist/runtime/core/runtime.d.cts +36 -7
  30. package/dist/runtime/core/runtime.d.cts.map +1 -1
  31. package/dist/runtime/core/runtime.d.mts +36 -7
  32. package/dist/runtime/core/runtime.d.mts.map +1 -1
  33. package/dist/runtime/core/runtime.mjs +3 -1
  34. package/dist/runtime/core/runtime.mjs.map +1 -1
  35. package/dist/runtime/core/thread-run.cjs +459 -0
  36. package/dist/runtime/core/thread-run.cjs.map +1 -0
  37. package/dist/runtime/core/thread-run.d.cts +201 -0
  38. package/dist/runtime/core/thread-run.d.cts.map +1 -0
  39. package/dist/runtime/core/thread-run.d.mts +201 -0
  40. package/dist/runtime/core/thread-run.d.mts.map +1 -0
  41. package/dist/runtime/core/thread-run.mjs +456 -0
  42. package/dist/runtime/core/thread-run.mjs.map +1 -0
  43. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs +6 -7
  44. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs.map +1 -1
  45. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.cts.map +1 -1
  46. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.mts.map +1 -1
  47. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs +6 -7
  48. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs.map +1 -1
  49. package/dist/runtime/handlers/get-runtime-info.cjs +2 -1
  50. package/dist/runtime/handlers/get-runtime-info.cjs.map +1 -1
  51. package/dist/runtime/handlers/get-runtime-info.mjs +2 -1
  52. package/dist/runtime/handlers/get-runtime-info.mjs.map +1 -1
  53. package/dist/runtime/handlers/intelligence/run.cjs +0 -1
  54. package/dist/runtime/handlers/intelligence/run.cjs.map +1 -1
  55. package/dist/runtime/handlers/intelligence/run.mjs +0 -1
  56. package/dist/runtime/handlers/intelligence/run.mjs.map +1 -1
  57. package/dist/runtime/handlers/intelligence/thread-names.cjs +43 -70
  58. package/dist/runtime/handlers/intelligence/thread-names.cjs.map +1 -1
  59. package/dist/runtime/handlers/intelligence/thread-names.mjs +43 -70
  60. package/dist/runtime/handlers/intelligence/thread-names.mjs.map +1 -1
  61. package/dist/runtime/index.d.cts +3 -2
  62. package/dist/runtime/index.d.mts +3 -2
  63. package/dist/runtime/intelligence-platform/client.cjs +20 -2
  64. package/dist/runtime/intelligence-platform/client.cjs.map +1 -1
  65. package/dist/runtime/intelligence-platform/client.d.cts +13 -0
  66. package/dist/runtime/intelligence-platform/client.d.cts.map +1 -1
  67. package/dist/runtime/intelligence-platform/client.d.mts +13 -0
  68. package/dist/runtime/intelligence-platform/client.d.mts.map +1 -1
  69. package/dist/runtime/intelligence-platform/client.mjs +20 -2
  70. package/dist/runtime/intelligence-platform/client.mjs.map +1 -1
  71. package/dist/runtime/runner/index.d.cts +1 -1
  72. package/dist/runtime/runner/index.d.mts +1 -1
  73. package/dist/runtime/runner/index.mjs +1 -1
  74. package/dist/runtime/runner/intelligence.cjs +107 -23
  75. package/dist/runtime/runner/intelligence.cjs.map +1 -1
  76. package/dist/runtime/runner/intelligence.d.cts +51 -2
  77. package/dist/runtime/runner/intelligence.d.cts.map +1 -1
  78. package/dist/runtime/runner/intelligence.d.mts +51 -2
  79. package/dist/runtime/runner/intelligence.d.mts.map +1 -1
  80. package/dist/runtime/runner/intelligence.mjs +108 -25
  81. package/dist/runtime/runner/intelligence.mjs.map +1 -1
  82. package/dist/v2/index.cjs +131 -0
  83. package/dist/v2/index.cjs.map +1 -0
  84. package/dist/v2/index.d.cts +253 -6
  85. package/dist/v2/index.d.cts.map +1 -0
  86. package/dist/v2/index.d.mts +253 -6
  87. package/dist/v2/index.d.mts.map +1 -0
  88. package/dist/v2/index.mjs +65 -0
  89. package/dist/v2/index.mjs.map +1 -0
  90. package/dist/v2/node.cjs +44 -0
  91. package/dist/v2/node.cjs.map +1 -0
  92. package/dist/v2/node.d.cts +42 -5
  93. package/dist/v2/node.d.cts.map +1 -0
  94. package/dist/v2/node.d.mts +42 -5
  95. package/dist/v2/node.d.mts.map +1 -0
  96. package/dist/v2/node.mjs +39 -0
  97. package/dist/v2/node.mjs.map +1 -0
  98. package/package.json +16 -16
@@ -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.61",
3
+ "version": "2.0.0-rc.63",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -76,43 +76,43 @@
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"
103
103
  },
104
104
  "dependencies": {
105
- "@ag-ui/a2ui-middleware": "0.0.15",
106
- "@ag-ui/client": "1.0.4",
107
- "@ag-ui/core": "1.0.4",
108
- "@ag-ui/encoder": "1.0.4",
105
+ "@ag-ui/a2ui-middleware": "0.0.16",
106
+ "@ag-ui/client": "1.0.5",
107
+ "@ag-ui/core": "1.0.5",
108
+ "@ag-ui/encoder": "1.0.5",
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.8",
113
- "@copilotkit/channels-intelligence": "0.13.0-rc.8",
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.61",
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",
@@ -152,7 +152,7 @@
152
152
  "vitest": "^3.2.4",
153
153
  "ws": "^8.18.0",
154
154
  "@copilotkit/typescript-config": "1.55.0-next.8",
155
- "@copilotkit/channels": "0.13.0-rc.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
  }