@copilotkit/runtime 1.9.2-next.16 → 1.9.2-next.18

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 (43) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-7F4BIRQF.mjs → chunk-FW5UOGQ2.mjs} +38 -33
  3. package/dist/chunk-FW5UOGQ2.mjs.map +1 -0
  4. package/dist/{chunk-4ODT32DV.mjs → chunk-JIE2UKYM.mjs} +2 -2
  5. package/dist/{chunk-BCDAWNNK.mjs → chunk-QSSQAW7A.mjs} +2 -2
  6. package/dist/{chunk-R22NGLLV.mjs → chunk-RXWWTMSG.mjs} +2 -2
  7. package/dist/{chunk-RBG2A675.mjs → chunk-Y6GPK3Y7.mjs} +2 -2
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +37 -32
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +5 -5
  12. package/dist/lib/index.d.ts +1 -1
  13. package/dist/lib/index.js +37 -32
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/index.mjs +5 -5
  16. package/dist/lib/integrations/index.d.ts +2 -2
  17. package/dist/lib/integrations/index.js +2 -2
  18. package/dist/lib/integrations/index.js.map +1 -1
  19. package/dist/lib/integrations/index.mjs +4 -4
  20. package/dist/lib/integrations/nest/index.d.ts +1 -1
  21. package/dist/lib/integrations/nest/index.js +2 -2
  22. package/dist/lib/integrations/nest/index.js.map +1 -1
  23. package/dist/lib/integrations/nest/index.mjs +2 -2
  24. package/dist/lib/integrations/node-express/index.d.ts +1 -1
  25. package/dist/lib/integrations/node-express/index.js +2 -2
  26. package/dist/lib/integrations/node-express/index.js.map +1 -1
  27. package/dist/lib/integrations/node-express/index.mjs +2 -2
  28. package/dist/lib/integrations/node-http/index.d.ts +1 -1
  29. package/dist/lib/integrations/node-http/index.js +2 -2
  30. package/dist/lib/integrations/node-http/index.js.map +1 -1
  31. package/dist/lib/integrations/node-http/index.mjs +1 -1
  32. package/dist/{shared-4164c674.d.ts → shared-41d4988d.d.ts} +13 -13
  33. package/package.json +2 -2
  34. package/src/graphql/resolvers/copilot.resolver.ts +1 -2
  35. package/src/lib/runtime/__tests__/{copilot-runtime-trace.test.ts → copilot-runtime-error.test.ts} +27 -27
  36. package/src/lib/runtime/agui-action.ts +3 -0
  37. package/src/lib/runtime/copilot-runtime.ts +42 -42
  38. package/src/lib/runtime/remote-actions.ts +3 -0
  39. package/dist/chunk-7F4BIRQF.mjs.map +0 -1
  40. /package/dist/{chunk-4ODT32DV.mjs.map → chunk-JIE2UKYM.mjs.map} +0 -0
  41. /package/dist/{chunk-BCDAWNNK.mjs.map → chunk-QSSQAW7A.mjs.map} +0 -0
  42. /package/dist/{chunk-R22NGLLV.mjs.map → chunk-RXWWTMSG.mjs.map} +0 -0
  43. /package/dist/{chunk-RBG2A675.mjs.map → chunk-Y6GPK3Y7.mjs.map} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent
4
- } from "../chunk-R22NGLLV.mjs";
4
+ } from "../chunk-RXWWTMSG.mjs";
5
5
  import {
6
6
  config,
7
7
  copilotRuntimeNextJSAppRouterEndpoint,
8
8
  copilotRuntimeNextJSPagesRouterEndpoint
9
- } from "../chunk-RBG2A675.mjs";
9
+ } from "../chunk-Y6GPK3Y7.mjs";
10
10
  import {
11
11
  copilotRuntimeNestEndpoint
12
- } from "../chunk-BCDAWNNK.mjs";
12
+ } from "../chunk-QSSQAW7A.mjs";
13
13
  import {
14
14
  copilotRuntimeNodeExpressEndpoint
15
- } from "../chunk-4ODT32DV.mjs";
15
+ } from "../chunk-JIE2UKYM.mjs";
16
16
  import {
17
17
  CopilotRuntime,
18
18
  addCustomHeaderPlugin,
@@ -28,7 +28,7 @@ import {
28
28
  getCommonConfig,
29
29
  langGraphPlatformEndpoint,
30
30
  resolveEndpointType
31
- } from "../chunk-7F4BIRQF.mjs";
31
+ } from "../chunk-FW5UOGQ2.mjs";
32
32
  import "../chunk-SHBDMA63.mjs";
33
33
  import {
34
34
  GoogleGenerativeAIAdapter,
@@ -1,5 +1,5 @@
1
- import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-4164c674.js';
2
- export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-4164c674.js';
1
+ import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-41d4988d.js';
2
+ export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-41d4988d.js';
3
3
  import * as graphql_yoga from 'graphql-yoga';
4
4
  import { YogaServerInstance } from 'graphql-yoga';
5
5
  export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.9.2-next.16",
47
+ version: "1.9.2-next.18",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -2115,7 +2115,7 @@ var CopilotResolver = class {
2115
2115
  logger2.debug("Cloud configuration provided, checking for public API key in headers");
2116
2116
  if (!copilotCloudPublicApiKey) {
2117
2117
  logger2.error("Public API key not found in headers");
2118
- await copilotRuntime.traceGraphQLError({
2118
+ await copilotRuntime.errorGraphQLError({
2119
2119
  message: "X-CopilotCloud-Public-API-Key header is required",
2120
2120
  code: "MISSING_PUBLIC_API_KEY",
2121
2121
  type: "GraphQLError"