@copilotkit/runtime 2.0.0-rc.65 → 2.0.0-rc.66

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.
@@ -32,145 +32,145 @@ import "../index.cjs";
32
32
  /**
33
33
  * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
34
34
  * name is an alias of it. To move your imports, run
35
- * `npx codemod @copilotkit/v2-migration`.
35
+ * `npx copilotkit@latest migrate`.
36
36
  */
37
37
  declare const CopilotRuntime: CopilotKitRuntimeConstructor;
38
38
  /**
39
39
  * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
40
40
  * name is an alias of it. To move your imports, run
41
- * `npx codemod @copilotkit/v2-migration`.
41
+ * `npx copilotkit@latest migrate`.
42
42
  */
43
43
  type CopilotRuntime = CopilotKitRuntime;
44
44
  /**
45
45
  * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
46
46
  * name is an alias of it. To move your imports, run
47
- * `npx codemod @copilotkit/v2-migration`.
47
+ * `npx copilotkit@latest migrate`.
48
48
  */
49
49
  declare const CopilotSseRuntime: typeof CopilotKitSseRuntime;
50
50
  /**
51
51
  * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
52
52
  * name is an alias of it. To move your imports, run
53
- * `npx codemod @copilotkit/v2-migration`.
53
+ * `npx copilotkit@latest migrate`.
54
54
  */
55
55
  type CopilotSseRuntime = CopilotKitSseRuntime;
56
56
  /**
57
57
  * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
58
58
  * This old name is an alias of it. To move your imports, run
59
- * `npx codemod @copilotkit/v2-migration`.
59
+ * `npx copilotkit@latest migrate`.
60
60
  */
61
61
  declare const CopilotIntelligenceRuntime: typeof CopilotKitIntelligenceRuntime;
62
62
  /**
63
63
  * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
64
64
  * This old name is an alias of it. To move your imports, run
65
- * `npx codemod @copilotkit/v2-migration`.
65
+ * `npx copilotkit@latest migrate`.
66
66
  */
67
67
  type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
68
68
  /**
69
69
  * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
70
70
  * This old name is an alias of it. To move your imports, run
71
- * `npx codemod @copilotkit/v2-migration`.
71
+ * `npx copilotkit@latest migrate`.
72
72
  */
73
73
  declare const createCopilotRuntimeHandler: typeof createCopilotKitRuntimeHandler;
74
74
  /**
75
75
  * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.
76
76
  * This old name is an alias of it. To move your imports, run
77
- * `npx codemod @copilotkit/v2-migration`.
77
+ * `npx copilotkit@latest migrate`.
78
78
  */
79
79
  type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;
80
80
  /**
81
81
  * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This
82
82
  * old name is an alias of it. To move your imports, run
83
- * `npx codemod @copilotkit/v2-migration`.
83
+ * `npx copilotkit@latest migrate`.
84
84
  */
85
85
  type CopilotRuntimeOptions = CopilotKitRuntimeOptions;
86
86
  /**
87
87
  * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old
88
88
  * name is an alias of it. To move your imports, run
89
- * `npx codemod @copilotkit/v2-migration`.
89
+ * `npx copilotkit@latest migrate`.
90
90
  */
91
91
  type CopilotRuntimeLike = CopilotKitRuntimeLike;
92
92
  /**
93
93
  * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.
94
94
  * This old name is an alias of it. To move your imports, run
95
- * `npx codemod @copilotkit/v2-migration`.
95
+ * `npx copilotkit@latest migrate`.
96
96
  */
97
97
  type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;
98
98
  /**
99
99
  * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This
100
100
  * old name is an alias of it. To move your imports, run
101
- * `npx codemod @copilotkit/v2-migration`.
101
+ * `npx copilotkit@latest migrate`.
102
102
  */
103
103
  type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;
104
104
  /**
105
105
  * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from
106
106
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
107
- * imports, run `npx codemod @copilotkit/v2-migration`.
107
+ * imports, run `npx copilotkit@latest migrate`.
108
108
  */
109
109
  type CopilotIntelligenceRuntimeOptions = CopilotKitIntelligenceRuntimeOptions;
110
110
  /**
111
111
  * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from
112
112
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
113
- * imports, run `npx codemod @copilotkit/v2-migration`.
113
+ * imports, run `npx copilotkit@latest migrate`.
114
114
  */
115
115
  type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;
116
116
  /**
117
117
  * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.
118
118
  * This old name is an alias of it. To move your imports, run
119
- * `npx codemod @copilotkit/v2-migration`.
119
+ * `npx copilotkit@latest migrate`.
120
120
  */
121
121
  type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;
122
122
  /**
123
123
  * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old
124
124
  * name is an alias of it. To move your imports, run
125
- * `npx codemod @copilotkit/v2-migration`.
125
+ * `npx copilotkit@latest migrate`.
126
126
  */
127
127
  type CopilotRuntimeUser = CopilotKitRuntimeUser;
128
128
  /**
129
129
  * @deprecated Use `CopilotKitRuntimeLearningConfig` from
130
130
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
131
- * imports, run `npx codemod @copilotkit/v2-migration`.
131
+ * imports, run `npx copilotkit@latest migrate`.
132
132
  */
133
133
  type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;
134
134
  /**
135
135
  * @deprecated Use `CopilotKitRuntimeLearningContext` from
136
136
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
137
- * imports, run `npx codemod @copilotkit/v2-migration`.
137
+ * imports, run `npx copilotkit@latest migrate`.
138
138
  */
139
139
  type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;
140
140
  /**
141
141
  * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This
142
142
  * old name is an alias of it. To move your imports, run
143
- * `npx codemod @copilotkit/v2-migration`.
143
+ * `npx copilotkit@latest migrate`.
144
144
  */
145
145
  type CopilotRuntimeLogger = CopilotKitRuntimeLogger;
146
146
  /**
147
147
  * @deprecated Use `CopilotKitRuntimeHandlerOptions` from
148
148
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
149
- * imports, run `npx codemod @copilotkit/v2-migration`.
149
+ * imports, run `npx copilotkit@latest migrate`.
150
150
  */
151
151
  type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;
152
152
  /**
153
153
  * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.
154
154
  * This old name is an alias of it. To move your imports, run
155
- * `npx codemod @copilotkit/v2-migration`.
155
+ * `npx copilotkit@latest migrate`.
156
156
  */
157
157
  type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;
158
158
  /**
159
159
  * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from
160
160
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
161
- * imports, run `npx codemod @copilotkit/v2-migration`.
161
+ * imports, run `npx copilotkit@latest migrate`.
162
162
  */
163
163
  type CopilotRuntimeFetchHandlerWithChannels = CopilotKitRuntimeFetchHandlerWithChannels;
164
164
  /**
165
165
  * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This
166
166
  * old name is an alias of it. To move your imports, run
167
- * `npx codemod @copilotkit/v2-migration`.
167
+ * `npx copilotkit@latest migrate`.
168
168
  */
169
169
  type CopilotRuntimeHooks = CopilotKitRuntimeHooks;
170
170
  /**
171
171
  * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old
172
172
  * name is an alias of it. To move your imports, run
173
- * `npx codemod @copilotkit/v2-migration`.
173
+ * `npx copilotkit@latest migrate`.
174
174
  */
175
175
  type CopilotCorsConfig = CopilotKitCorsConfig;
176
176
  //#endregion
@@ -32,145 +32,145 @@ import "../index.mjs";
32
32
  /**
33
33
  * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
34
34
  * name is an alias of it. To move your imports, run
35
- * `npx codemod @copilotkit/v2-migration`.
35
+ * `npx copilotkit@latest migrate`.
36
36
  */
37
37
  declare const CopilotRuntime: CopilotKitRuntimeConstructor;
38
38
  /**
39
39
  * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
40
40
  * name is an alias of it. To move your imports, run
41
- * `npx codemod @copilotkit/v2-migration`.
41
+ * `npx copilotkit@latest migrate`.
42
42
  */
43
43
  type CopilotRuntime = CopilotKitRuntime;
44
44
  /**
45
45
  * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
46
46
  * name is an alias of it. To move your imports, run
47
- * `npx codemod @copilotkit/v2-migration`.
47
+ * `npx copilotkit@latest migrate`.
48
48
  */
49
49
  declare const CopilotSseRuntime: typeof CopilotKitSseRuntime;
50
50
  /**
51
51
  * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
52
52
  * name is an alias of it. To move your imports, run
53
- * `npx codemod @copilotkit/v2-migration`.
53
+ * `npx copilotkit@latest migrate`.
54
54
  */
55
55
  type CopilotSseRuntime = CopilotKitSseRuntime;
56
56
  /**
57
57
  * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
58
58
  * This old name is an alias of it. To move your imports, run
59
- * `npx codemod @copilotkit/v2-migration`.
59
+ * `npx copilotkit@latest migrate`.
60
60
  */
61
61
  declare const CopilotIntelligenceRuntime: typeof CopilotKitIntelligenceRuntime;
62
62
  /**
63
63
  * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
64
64
  * This old name is an alias of it. To move your imports, run
65
- * `npx codemod @copilotkit/v2-migration`.
65
+ * `npx copilotkit@latest migrate`.
66
66
  */
67
67
  type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
68
68
  /**
69
69
  * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
70
70
  * This old name is an alias of it. To move your imports, run
71
- * `npx codemod @copilotkit/v2-migration`.
71
+ * `npx copilotkit@latest migrate`.
72
72
  */
73
73
  declare const createCopilotRuntimeHandler: typeof createCopilotKitRuntimeHandler;
74
74
  /**
75
75
  * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.
76
76
  * This old name is an alias of it. To move your imports, run
77
- * `npx codemod @copilotkit/v2-migration`.
77
+ * `npx copilotkit@latest migrate`.
78
78
  */
79
79
  type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;
80
80
  /**
81
81
  * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This
82
82
  * old name is an alias of it. To move your imports, run
83
- * `npx codemod @copilotkit/v2-migration`.
83
+ * `npx copilotkit@latest migrate`.
84
84
  */
85
85
  type CopilotRuntimeOptions = CopilotKitRuntimeOptions;
86
86
  /**
87
87
  * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old
88
88
  * name is an alias of it. To move your imports, run
89
- * `npx codemod @copilotkit/v2-migration`.
89
+ * `npx copilotkit@latest migrate`.
90
90
  */
91
91
  type CopilotRuntimeLike = CopilotKitRuntimeLike;
92
92
  /**
93
93
  * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.
94
94
  * This old name is an alias of it. To move your imports, run
95
- * `npx codemod @copilotkit/v2-migration`.
95
+ * `npx copilotkit@latest migrate`.
96
96
  */
97
97
  type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;
98
98
  /**
99
99
  * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This
100
100
  * old name is an alias of it. To move your imports, run
101
- * `npx codemod @copilotkit/v2-migration`.
101
+ * `npx copilotkit@latest migrate`.
102
102
  */
103
103
  type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;
104
104
  /**
105
105
  * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from
106
106
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
107
- * imports, run `npx codemod @copilotkit/v2-migration`.
107
+ * imports, run `npx copilotkit@latest migrate`.
108
108
  */
109
109
  type CopilotIntelligenceRuntimeOptions = CopilotKitIntelligenceRuntimeOptions;
110
110
  /**
111
111
  * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from
112
112
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
113
- * imports, run `npx codemod @copilotkit/v2-migration`.
113
+ * imports, run `npx copilotkit@latest migrate`.
114
114
  */
115
115
  type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;
116
116
  /**
117
117
  * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.
118
118
  * This old name is an alias of it. To move your imports, run
119
- * `npx codemod @copilotkit/v2-migration`.
119
+ * `npx copilotkit@latest migrate`.
120
120
  */
121
121
  type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;
122
122
  /**
123
123
  * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old
124
124
  * name is an alias of it. To move your imports, run
125
- * `npx codemod @copilotkit/v2-migration`.
125
+ * `npx copilotkit@latest migrate`.
126
126
  */
127
127
  type CopilotRuntimeUser = CopilotKitRuntimeUser;
128
128
  /**
129
129
  * @deprecated Use `CopilotKitRuntimeLearningConfig` from
130
130
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
131
- * imports, run `npx codemod @copilotkit/v2-migration`.
131
+ * imports, run `npx copilotkit@latest migrate`.
132
132
  */
133
133
  type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;
134
134
  /**
135
135
  * @deprecated Use `CopilotKitRuntimeLearningContext` from
136
136
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
137
- * imports, run `npx codemod @copilotkit/v2-migration`.
137
+ * imports, run `npx copilotkit@latest migrate`.
138
138
  */
139
139
  type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;
140
140
  /**
141
141
  * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This
142
142
  * old name is an alias of it. To move your imports, run
143
- * `npx codemod @copilotkit/v2-migration`.
143
+ * `npx copilotkit@latest migrate`.
144
144
  */
145
145
  type CopilotRuntimeLogger = CopilotKitRuntimeLogger;
146
146
  /**
147
147
  * @deprecated Use `CopilotKitRuntimeHandlerOptions` from
148
148
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
149
- * imports, run `npx codemod @copilotkit/v2-migration`.
149
+ * imports, run `npx copilotkit@latest migrate`.
150
150
  */
151
151
  type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;
152
152
  /**
153
153
  * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.
154
154
  * This old name is an alias of it. To move your imports, run
155
- * `npx codemod @copilotkit/v2-migration`.
155
+ * `npx copilotkit@latest migrate`.
156
156
  */
157
157
  type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;
158
158
  /**
159
159
  * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from
160
160
  * `@copilotkit/runtime`. This old name is an alias of it. To move your
161
- * imports, run `npx codemod @copilotkit/v2-migration`.
161
+ * imports, run `npx copilotkit@latest migrate`.
162
162
  */
163
163
  type CopilotRuntimeFetchHandlerWithChannels = CopilotKitRuntimeFetchHandlerWithChannels;
164
164
  /**
165
165
  * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This
166
166
  * old name is an alias of it. To move your imports, run
167
- * `npx codemod @copilotkit/v2-migration`.
167
+ * `npx copilotkit@latest migrate`.
168
168
  */
169
169
  type CopilotRuntimeHooks = CopilotKitRuntimeHooks;
170
170
  /**
171
171
  * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old
172
172
  * name is an alias of it. To move your imports, run
173
- * `npx codemod @copilotkit/v2-migration`.
173
+ * `npx copilotkit@latest migrate`.
174
174
  */
175
175
  type CopilotCorsConfig = CopilotKitCorsConfig;
176
176
  //#endregion
package/dist/v2/index.mjs CHANGED
@@ -31,7 +31,7 @@ import { BuiltInAgent, InterruptSignal, defineTool } from "../agent.mjs";
31
31
  * - the 1.x names of the runtime exports that 2.0 renamed with "Kit". Each
32
32
  * old name is the same value or type as its new name.
33
33
  *
34
- * The root exports only the new names. `npx codemod @copilotkit/v2-migration`
34
+ * The root exports only the new names. `npx copilotkit@latest migrate`
35
35
  * moves the imports to the root and renames them. The build marks each name
36
36
  * of this entry deprecated in its declarations
37
37
  * (scripts/deprecations/v2-subpath-aliases.mts).
@@ -39,25 +39,25 @@ import { BuiltInAgent, InterruptSignal, defineTool } from "../agent.mjs";
39
39
  /**
40
40
  * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old
41
41
  * name is an alias of it. To move your imports, run
42
- * `npx codemod @copilotkit/v2-migration`.
42
+ * `npx copilotkit@latest migrate`.
43
43
  */
44
44
  const CopilotRuntime = CopilotKitRuntime;
45
45
  /**
46
46
  * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old
47
47
  * name is an alias of it. To move your imports, run
48
- * `npx codemod @copilotkit/v2-migration`.
48
+ * `npx copilotkit@latest migrate`.
49
49
  */
50
50
  const CopilotSseRuntime = CopilotKitSseRuntime;
51
51
  /**
52
52
  * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.
53
53
  * This old name is an alias of it. To move your imports, run
54
- * `npx codemod @copilotkit/v2-migration`.
54
+ * `npx copilotkit@latest migrate`.
55
55
  */
56
56
  const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;
57
57
  /**
58
58
  * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.
59
59
  * This old name is an alias of it. To move your imports, run
60
- * `npx codemod @copilotkit/v2-migration`.
60
+ * `npx copilotkit@latest migrate`.
61
61
  */
62
62
  const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;
63
63
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/v2/index.ts"],"sourcesContent":["/**\n * `@copilotkit/runtime/v2`, the import path of the 2.0 runtime in CopilotKit\n * 1.x. In 2.0 it is a deprecated alias of the package root, so 1.x code that\n * imports from it keeps working. It exports:\n *\n * - every export of `@copilotkit/runtime`;\n * - the Built-in Agent exports that 1.x exported here. 2.0 exports them from\n * `@copilotkit/runtime/agent`;\n * - the 1.x names of the runtime exports that 2.0 renamed with \"Kit\". Each\n * old name is the same value or type as its new name.\n *\n * The root exports only the new names. `npx codemod @copilotkit/v2-migration`\n * moves the imports to the root and renames them. The build marks each name\n * of this entry deprecated in its declarations\n * (scripts/deprecations/v2-subpath-aliases.mts).\n */\nimport {\n CopilotKitIntelligenceRuntime,\n CopilotKitRuntime,\n CopilotKitSseRuntime,\n createCopilotKitRuntimeHandler,\n} from \"../index\";\nimport type {\n CopilotKitCorsConfig,\n CopilotKitIntelligenceRuntimeLike,\n CopilotKitIntelligenceRuntimeOptions,\n CopilotKitRuntimeConstructor,\n CopilotKitRuntimeFetchHandler,\n CopilotKitRuntimeFetchHandlerWithChannels,\n CopilotKitRuntimeHandlerOptions,\n CopilotKitRuntimeHooks,\n CopilotKitRuntimeLearningConfig,\n CopilotKitRuntimeLearningContext,\n CopilotKitRuntimeLike,\n CopilotKitRuntimeLogger,\n CopilotKitRuntimeMemoryConfig,\n CopilotKitRuntimeOptions,\n CopilotKitRuntimeUser,\n CopilotKitSseRuntimeLike,\n CopilotKitSseRuntimeOptions,\n} from \"../index\";\n\nexport * from \"../index\";\n\n// 1.x exported the Built-in Agent from `/v2`. The AI SDK helpers of\n// `@copilotkit/runtime/agent/ai-sdk` stay out: they load the optional `ai`\n// peer, and every `/v2` import would then need it.\nexport {\n BuiltInAgent,\n InterruptSignal,\n convertAISDKStream,\n convertInputToTanStackAI,\n convertTanStackStream,\n defineTool,\n} from \"../agent\";\nexport type {\n BuiltInAgentAISDKFactoryConfig,\n BuiltInAgentClassicConfig,\n BuiltInAgentConfiguration,\n BuiltInAgentCustomFactoryConfig,\n BuiltInAgentFactoryConfig,\n BuiltInAgentFactoryContext,\n BuiltInAgentLearnedSkills,\n BuiltInAgentLearnedSkillsOptions,\n BuiltInAgentTanStackFactoryConfig,\n OverridableProperty,\n TanStackChatMessage,\n TanStackInputResult,\n ToolDefinition,\n} from \"../agent\";\n\n/* ------------------------------------------------------------------------------------------------\n * The 1.x names\n *\n * 2.0 renamed these exports with \"Kit\" after \"Copilot\". Each old name is an\n * alias of its new name: the same value, and the same type.\n * --------------------------------------------------------------------------------------------- */\n\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotRuntime = CopilotKitRuntime;\n/**\n * @deprecated Use `CopilotKitRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntime = CopilotKitRuntime;\n\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotSseRuntime = CopilotKitSseRuntime;\n/**\n * @deprecated Use `CopilotKitSseRuntime` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntime = CopilotKitSseRuntime;\n\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntime` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntime = CopilotKitIntelligenceRuntime;\n\n/**\n * @deprecated Use `createCopilotKitRuntimeHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport const createCopilotRuntimeHandler = createCopilotKitRuntimeHandler;\n\n/**\n * @deprecated Use `CopilotKitRuntimeConstructor` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeConstructor = CopilotKitRuntimeConstructor;\n/**\n * @deprecated Use `CopilotKitRuntimeOptions` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeOptions = CopilotKitRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeLike` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLike = CopilotKitRuntimeLike;\n/**\n * @deprecated Use `CopilotKitSseRuntimeOptions` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeOptions = CopilotKitSseRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitSseRuntimeLike` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotSseRuntimeLike = CopilotKitSseRuntimeLike;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeOptions =\n CopilotKitIntelligenceRuntimeOptions;\n/**\n * @deprecated Use `CopilotKitIntelligenceRuntimeLike` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotIntelligenceRuntimeLike = CopilotKitIntelligenceRuntimeLike;\n/**\n * @deprecated Use `CopilotKitRuntimeMemoryConfig` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeMemoryConfig = CopilotKitRuntimeMemoryConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeUser` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeUser = CopilotKitRuntimeUser;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningConfig` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningConfig = CopilotKitRuntimeLearningConfig;\n/**\n * @deprecated Use `CopilotKitRuntimeLearningContext` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLearningContext = CopilotKitRuntimeLearningContext;\n/**\n * @deprecated Use `CopilotKitRuntimeLogger` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeLogger = CopilotKitRuntimeLogger;\n/**\n * @deprecated Use `CopilotKitRuntimeHandlerOptions` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHandlerOptions = CopilotKitRuntimeHandlerOptions;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandler` from `@copilotkit/runtime`.\n * This old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandler = CopilotKitRuntimeFetchHandler;\n/**\n * @deprecated Use `CopilotKitRuntimeFetchHandlerWithChannels` from\n * `@copilotkit/runtime`. This old name is an alias of it. To move your\n * imports, run `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeFetchHandlerWithChannels =\n CopilotKitRuntimeFetchHandlerWithChannels;\n/**\n * @deprecated Use `CopilotKitRuntimeHooks` from `@copilotkit/runtime`. This\n * old name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotRuntimeHooks = CopilotKitRuntimeHooks;\n/**\n * @deprecated Use `CopilotKitCorsConfig` from `@copilotkit/runtime`. This old\n * name is an alias of it. To move your imports, run\n * `npx codemod @copilotkit/v2-migration`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,iBAAiB;;;;;;AAa9B,MAAa,oBAAoB;;;;;;AAajC,MAAa,6BAA6B;;;;;;AAa1C,MAAa,8BAA8B"}
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 copilotkit@latest migrate`\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\n */\nexport type CopilotCorsConfig = CopilotKitCorsConfig;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmFA,MAAa,iBAAiB;;;;;;AAa9B,MAAa,oBAAoB;;;;;;AAajC,MAAa,6BAA6B;;;;;;AAa1C,MAAa,8BAA8B"}
package/dist/v2/node.cjs CHANGED
@@ -10,7 +10,7 @@ const require_node = require('../runtime/endpoints/node.cjs');
10
10
  * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of
11
11
  * those exports. Each old name is the same value or type as its new name.
12
12
  *
13
- * `npx codemod @copilotkit/v2-migration` moves the imports to
13
+ * `npx copilotkit@latest migrate` moves the imports to
14
14
  * `@copilotkit/runtime/node` and renames them. The build marks each name of
15
15
  * this entry deprecated in its declarations
16
16
  * (scripts/deprecations/v2-subpath-aliases.mts).
@@ -18,20 +18,20 @@ const require_node = require('../runtime/endpoints/node.cjs');
18
18
  /**
19
19
  * @deprecated Use `createCopilotKitNodeListener` from
20
20
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
21
- * imports, run `npx codemod @copilotkit/v2-migration`.
21
+ * imports, run `npx copilotkit@latest migrate`.
22
22
  */
23
23
  const createCopilotNodeListener = require_node.createCopilotKitNodeListener;
24
24
  /**
25
25
  * @deprecated Use `createCopilotKitNodeHandler` from
26
26
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
27
- * imports, run `npx codemod @copilotkit/v2-migration`.
27
+ * imports, run `npx copilotkit@latest migrate`.
28
28
  */
29
29
  const createCopilotNodeHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
30
30
  /**
31
31
  * @deprecated Use `createCopilotKitNodeHandler` from
32
32
  * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
33
33
  * `createCopilotKitNodeHandler`. To move your imports, run
34
- * `npx codemod @copilotkit/v2-migration`.
34
+ * `npx copilotkit@latest migrate`.
35
35
  */
36
36
  const createNodeFetchHandler = require_node_fetch_handler.createCopilotKitNodeHandler;
37
37
 
@@ -1 +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
+ {"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 copilotkit@latest migrate` 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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\n */\nexport type NodeCopilotListenerWithChannels =\n NodeCopilotKitListenerWithChannels;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,4BAA4BA;;;;;;AAMzC,MAAa,2BAA2BC;;;;;;;AAOxC,MAAa,yBAAyBA"}
@@ -6,32 +6,32 @@ import "../node.cjs";
6
6
  /**
7
7
  * @deprecated Use `createCopilotKitNodeListener` from
8
8
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
- * imports, run `npx codemod @copilotkit/v2-migration`.
9
+ * imports, run `npx copilotkit@latest migrate`.
10
10
  */
11
11
  declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
12
  /**
13
13
  * @deprecated Use `createCopilotKitNodeHandler` from
14
14
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
- * imports, run `npx codemod @copilotkit/v2-migration`.
15
+ * imports, run `npx copilotkit@latest migrate`.
16
16
  */
17
17
  declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
18
  /**
19
19
  * @deprecated Use `createCopilotKitNodeHandler` from
20
20
  * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
21
  * `createCopilotKitNodeHandler`. To move your imports, run
22
- * `npx codemod @copilotkit/v2-migration`.
22
+ * `npx copilotkit@latest migrate`.
23
23
  */
24
24
  declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
25
  /**
26
26
  * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
27
  * This old name is an alias of it. To move your imports, run
28
- * `npx codemod @copilotkit/v2-migration`.
28
+ * `npx copilotkit@latest migrate`.
29
29
  */
30
30
  type NodeCopilotListener = NodeCopilotKitListener;
31
31
  /**
32
32
  * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
33
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
- * imports, run `npx codemod @copilotkit/v2-migration`.
34
+ * imports, run `npx copilotkit@latest migrate`.
35
35
  */
36
36
  type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
37
  //#endregion
@@ -6,32 +6,32 @@ import "../node.mjs";
6
6
  /**
7
7
  * @deprecated Use `createCopilotKitNodeListener` from
8
8
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
9
- * imports, run `npx codemod @copilotkit/v2-migration`.
9
+ * imports, run `npx copilotkit@latest migrate`.
10
10
  */
11
11
  declare const createCopilotNodeListener: typeof createCopilotKitNodeListener;
12
12
  /**
13
13
  * @deprecated Use `createCopilotKitNodeHandler` from
14
14
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
15
- * imports, run `npx codemod @copilotkit/v2-migration`.
15
+ * imports, run `npx copilotkit@latest migrate`.
16
16
  */
17
17
  declare const createCopilotNodeHandler: typeof createCopilotKitNodeHandler;
18
18
  /**
19
19
  * @deprecated Use `createCopilotKitNodeHandler` from
20
20
  * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
21
21
  * `createCopilotKitNodeHandler`. To move your imports, run
22
- * `npx codemod @copilotkit/v2-migration`.
22
+ * `npx copilotkit@latest migrate`.
23
23
  */
24
24
  declare const createNodeFetchHandler: typeof createCopilotKitNodeHandler;
25
25
  /**
26
26
  * @deprecated Use `NodeCopilotKitListener` from `@copilotkit/runtime/node`.
27
27
  * This old name is an alias of it. To move your imports, run
28
- * `npx codemod @copilotkit/v2-migration`.
28
+ * `npx copilotkit@latest migrate`.
29
29
  */
30
30
  type NodeCopilotListener = NodeCopilotKitListener;
31
31
  /**
32
32
  * @deprecated Use `NodeCopilotKitListenerWithChannels` from
33
33
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
34
- * imports, run `npx codemod @copilotkit/v2-migration`.
34
+ * imports, run `npx copilotkit@latest migrate`.
35
35
  */
36
36
  type NodeCopilotListenerWithChannels = NodeCopilotKitListenerWithChannels;
37
37
  //#endregion
package/dist/v2/node.mjs CHANGED
@@ -9,7 +9,7 @@ import { createCopilotKitNodeListener } from "../runtime/endpoints/node.mjs";
9
9
  * It exports every export of `@copilotkit/runtime/node`, and the 1.x names of
10
10
  * those exports. Each old name is the same value or type as its new name.
11
11
  *
12
- * `npx codemod @copilotkit/v2-migration` moves the imports to
12
+ * `npx copilotkit@latest migrate` moves the imports to
13
13
  * `@copilotkit/runtime/node` and renames them. The build marks each name of
14
14
  * this entry deprecated in its declarations
15
15
  * (scripts/deprecations/v2-subpath-aliases.mts).
@@ -17,20 +17,20 @@ import { createCopilotKitNodeListener } from "../runtime/endpoints/node.mjs";
17
17
  /**
18
18
  * @deprecated Use `createCopilotKitNodeListener` from
19
19
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
20
- * imports, run `npx codemod @copilotkit/v2-migration`.
20
+ * imports, run `npx copilotkit@latest migrate`.
21
21
  */
22
22
  const createCopilotNodeListener = createCopilotKitNodeListener;
23
23
  /**
24
24
  * @deprecated Use `createCopilotKitNodeHandler` from
25
25
  * `@copilotkit/runtime/node`. This old name is an alias of it. To move your
26
- * imports, run `npx codemod @copilotkit/v2-migration`.
26
+ * imports, run `npx copilotkit@latest migrate`.
27
27
  */
28
28
  const createCopilotNodeHandler = createCopilotKitNodeHandler;
29
29
  /**
30
30
  * @deprecated Use `createCopilotKitNodeHandler` from
31
31
  * `@copilotkit/runtime/node`. 1.x deprecated this name, and it is an alias of
32
32
  * `createCopilotKitNodeHandler`. To move your imports, run
33
- * `npx codemod @copilotkit/v2-migration`.
33
+ * `npx copilotkit@latest migrate`.
34
34
  */
35
35
  const createNodeFetchHandler = createCopilotKitNodeHandler;
36
36
 
@@ -1 +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"}
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 copilotkit@latest migrate` 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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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 copilotkit@latest migrate`.\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.65",
3
+ "version": "2.0.0-rc.66",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -109,10 +109,10 @@
109
109
  "@ag-ui/mcp-apps-middleware": "0.1.1",
110
110
  "@ag-ui/mcp-middleware": "0.0.2",
111
111
  "@cfworker/json-schema": "^4.1.1",
112
- "@copilotkit/channels-core": "0.13.0-rc.12",
113
- "@copilotkit/channels-intelligence": "0.13.0-rc.12",
112
+ "@copilotkit/channels-core": "0.13.0-rc.13",
113
+ "@copilotkit/channels-intelligence": "0.13.0-rc.13",
114
114
  "@copilotkit/license-verifier": "~0.5.0",
115
- "@copilotkit/shared": "2.0.0-rc.65",
115
+ "@copilotkit/shared": "2.0.0-rc.66",
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,7 +151,7 @@
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.12",
154
+ "@copilotkit/channels": "0.13.0-rc.13",
155
155
  "@copilotkit/typescript-config": "1.55.0-next.8"
156
156
  },
157
157
  "nx": {