@copilotkit/runtime 1.5.12-next.2 → 1.5.12-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{chunk-SFLMY3ES.mjs → chunk-53ZLUGHX.mjs} +2 -2
- package/dist/{chunk-ZCU6UPCY.mjs → chunk-6PZWWJ32.mjs} +2 -2
- package/dist/{chunk-BETLEV37.mjs → chunk-FOUJ36SV.mjs} +2 -2
- package/dist/{chunk-FA5DJ2TZ.mjs → chunk-U3DYEEGJ.mjs} +8 -2
- package/dist/{chunk-FA5DJ2TZ.mjs.map → chunk-U3DYEEGJ.mjs.map} +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.js +33 -17
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +12 -1
- /package/dist/{chunk-SFLMY3ES.mjs.map → chunk-53ZLUGHX.mjs.map} +0 -0
- /package/dist/{chunk-ZCU6UPCY.mjs.map → chunk-6PZWWJ32.mjs.map} +0 -0
- /package/dist/{chunk-BETLEV37.mjs.map → chunk-FOUJ36SV.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.12-next.
|
|
47
|
+
version: "1.5.12-next.4",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -3193,6 +3193,11 @@ var CopilotRuntime = class {
|
|
|
3193
3193
|
if (agentSession) {
|
|
3194
3194
|
return await this.processAgentRequest(request);
|
|
3195
3195
|
}
|
|
3196
|
+
if (serviceAdapter instanceof ExperimentalEmptyAdapter) {
|
|
3197
|
+
throw new Error(`Invalid adapter configuration: ExperimentalEmptyAdapter is only meant to be used with agent lock mode.
|
|
3198
|
+
For non-agent components like useCopilotChatSuggestions, CopilotTextarea, or CopilotTask,
|
|
3199
|
+
please use an LLM adapter instead.`);
|
|
3200
|
+
}
|
|
3196
3201
|
const messages = rawMessages.filter((message) => !message.agentStateMessage);
|
|
3197
3202
|
const inputMessages = convertGqlInputToMessages(messages);
|
|
3198
3203
|
const serverSideActions = await this.getServerSideActions(request);
|