@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.
Files changed (29) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-SFLMY3ES.mjs → chunk-53ZLUGHX.mjs} +2 -2
  3. package/dist/{chunk-ZCU6UPCY.mjs → chunk-6PZWWJ32.mjs} +2 -2
  4. package/dist/{chunk-BETLEV37.mjs → chunk-FOUJ36SV.mjs} +2 -2
  5. package/dist/{chunk-FA5DJ2TZ.mjs → chunk-U3DYEEGJ.mjs} +8 -2
  6. package/dist/{chunk-FA5DJ2TZ.mjs.map → chunk-U3DYEEGJ.mjs.map} +1 -1
  7. package/dist/index.js +6 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +4 -4
  10. package/dist/lib/index.js +33 -17
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +4 -4
  13. package/dist/lib/integrations/index.js +1 -1
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +4 -4
  16. package/dist/lib/integrations/nest/index.js +1 -1
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +2 -2
  19. package/dist/lib/integrations/node-express/index.js +1 -1
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +2 -2
  22. package/dist/lib/integrations/node-http/index.js +1 -1
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +1 -1
  25. package/package.json +2 -2
  26. package/src/lib/runtime/copilot-runtime.ts +12 -1
  27. /package/dist/{chunk-SFLMY3ES.mjs.map → chunk-53ZLUGHX.mjs.map} +0 -0
  28. /package/dist/{chunk-ZCU6UPCY.mjs.map → chunk-6PZWWJ32.mjs.map} +0 -0
  29. /package/dist/{chunk-BETLEV37.mjs.map → chunk-FOUJ36SV.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.5.12-next.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 768b3a5: - chore: add documentation for empty llm adapter
8
+ - fix: throw error when empty adapter is misused
9
+ - @copilotkit/shared@1.5.12-next.4
10
+
11
+ ## 1.5.12-next.3
12
+
13
+ ### Patch Changes
14
+
15
+ - @copilotkit/shared@1.5.12-next.3
16
+
3
17
  ## 1.5.12-next.2
4
18
 
5
19
  ### Patch Changes
@@ -2,7 +2,7 @@ import {
2
2
  getCommonConfig,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-FA5DJ2TZ.mjs";
5
+ } from "./chunk-U3DYEEGJ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-44O2JGUY.mjs";
@@ -77,4 +77,4 @@ export {
77
77
  config,
78
78
  copilotRuntimeNextJSPagesRouterEndpoint
79
79
  };
80
- //# sourceMappingURL=chunk-SFLMY3ES.mjs.map
80
+ //# sourceMappingURL=chunk-53ZLUGHX.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-FA5DJ2TZ.mjs";
5
+ } from "./chunk-U3DYEEGJ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-44O2JGUY.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
22
22
  export {
23
23
  copilotRuntimeNodeExpressEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-ZCU6UPCY.mjs.map
25
+ //# sourceMappingURL=chunk-6PZWWJ32.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  copilotRuntimeNodeHttpEndpoint,
3
3
  getRuntimeInstanceTelemetryInfo,
4
4
  telemetry_client_default
5
- } from "./chunk-FA5DJ2TZ.mjs";
5
+ } from "./chunk-U3DYEEGJ.mjs";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-44O2JGUY.mjs";
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
22
22
  export {
23
23
  copilotRuntimeNestEndpoint
24
24
  };
25
- //# sourceMappingURL=chunk-BETLEV37.mjs.map
25
+ //# sourceMappingURL=chunk-FOUJ36SV.mjs.map
@@ -1,4 +1,5 @@
1
1
  import {
2
+ ExperimentalEmptyAdapter,
2
3
  RemoteChain,
3
4
  streamLangChainResponse
4
5
  } from "./chunk-CLGKEUOA.mjs";
@@ -37,7 +38,7 @@ var require_package = __commonJS({
37
38
  publishConfig: {
38
39
  access: "public"
39
40
  },
40
- version: "1.5.12-next.2",
41
+ version: "1.5.12-next.4",
41
42
  sideEffects: false,
42
43
  main: "./dist/index.js",
43
44
  module: "./dist/index.mjs",
@@ -2219,6 +2220,11 @@ var CopilotRuntime = class {
2219
2220
  if (agentSession) {
2220
2221
  return await this.processAgentRequest(request);
2221
2222
  }
2223
+ if (serviceAdapter instanceof ExperimentalEmptyAdapter) {
2224
+ throw new Error(`Invalid adapter configuration: ExperimentalEmptyAdapter is only meant to be used with agent lock mode.
2225
+ For non-agent components like useCopilotChatSuggestions, CopilotTextarea, or CopilotTask,
2226
+ please use an LLM adapter instead.`);
2227
+ }
2222
2228
  const messages = rawMessages.filter((message) => !message.agentStateMessage);
2223
2229
  const inputMessages = convertGqlInputToMessages(messages);
2224
2230
  const serverSideActions = await this.getServerSideActions(request);
@@ -3434,4 +3440,4 @@ export {
3434
3440
  getCommonConfig,
3435
3441
  copilotRuntimeNodeHttpEndpoint
3436
3442
  };
3437
- //# sourceMappingURL=chunk-FA5DJ2TZ.mjs.map
3443
+ //# sourceMappingURL=chunk-U3DYEEGJ.mjs.map