@copilotkit/runtime 1.9.2-next.9 → 1.9.3-next.0

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 (60) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/dist/{chunk-Z5GYTKMD.mjs → chunk-EK5RTZVJ.mjs} +225 -149
  3. package/dist/chunk-EK5RTZVJ.mjs.map +1 -0
  4. package/dist/{chunk-SMDVD4VG.mjs → chunk-KCYFFRJY.mjs} +2 -2
  5. package/dist/{chunk-4JBKY7XT.mjs → chunk-QLLV2QVK.mjs} +48 -28
  6. package/dist/chunk-QLLV2QVK.mjs.map +1 -0
  7. package/dist/{chunk-5YGKE5SN.mjs → chunk-R5D7D7YN.mjs} +2 -2
  8. package/dist/{chunk-UUXRYAB4.mjs → chunk-RCCT2GOF.mjs} +2 -2
  9. package/dist/{chunk-ALZ5H3VD.mjs → chunk-YGS5B7PN.mjs} +2 -2
  10. package/dist/{groq-adapter-172a2ca4.d.ts → groq-adapter-742818f2.d.ts} +5 -1
  11. package/dist/index.d.ts +3 -3
  12. package/dist/index.js +267 -171
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +9 -9
  15. package/dist/{langserve-fc5cac89.d.ts → langserve-3e8d0e06.d.ts} +6 -0
  16. package/dist/lib/index.d.ts +155 -5
  17. package/dist/lib/index.js +221 -168
  18. package/dist/lib/index.js.map +1 -1
  19. package/dist/lib/index.mjs +9 -9
  20. package/dist/lib/integrations/index.d.ts +3 -3
  21. package/dist/lib/integrations/index.js +11 -11
  22. package/dist/lib/integrations/index.js.map +1 -1
  23. package/dist/lib/integrations/index.mjs +8 -8
  24. package/dist/lib/integrations/nest/index.d.ts +2 -2
  25. package/dist/lib/integrations/nest/index.js +11 -11
  26. package/dist/lib/integrations/nest/index.js.map +1 -1
  27. package/dist/lib/integrations/nest/index.mjs +4 -4
  28. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  29. package/dist/lib/integrations/node-express/index.js +11 -11
  30. package/dist/lib/integrations/node-express/index.js.map +1 -1
  31. package/dist/lib/integrations/node-express/index.mjs +4 -4
  32. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  33. package/dist/lib/integrations/node-http/index.js +11 -11
  34. package/dist/lib/integrations/node-http/index.js.map +1 -1
  35. package/dist/lib/integrations/node-http/index.mjs +3 -3
  36. package/dist/service-adapters/index.d.ts +5 -4
  37. package/dist/service-adapters/index.js +47 -27
  38. package/dist/service-adapters/index.js.map +1 -1
  39. package/dist/service-adapters/index.mjs +1 -1
  40. package/dist/{shared-bd953ebf.d.ts → shared-96b46379.d.ts} +16 -18
  41. package/package.json +11 -11
  42. package/src/graphql/resolvers/copilot.resolver.ts +1 -2
  43. package/src/lib/runtime/__tests__/{copilot-runtime-trace.test.ts → copilot-runtime-error.test.ts} +27 -27
  44. package/src/lib/runtime/__tests__/mcp-tools-utils.test.ts +464 -0
  45. package/src/lib/runtime/agui-action.ts +9 -3
  46. package/src/lib/runtime/copilot-runtime.ts +112 -124
  47. package/src/lib/runtime/mcp-tools-utils.ts +84 -18
  48. package/src/lib/runtime/remote-actions.ts +6 -0
  49. package/src/service-adapters/anthropic/anthropic-adapter.ts +64 -4
  50. package/src/service-adapters/anthropic/utils.ts +3 -8
  51. package/src/service-adapters/events.ts +40 -1
  52. package/src/service-adapters/google/google-genai-adapter.ts +5 -0
  53. package/src/service-adapters/openai/openai-adapter.ts +0 -14
  54. package/tests/service-adapters/anthropic/anthropic-adapter.test.ts +172 -387
  55. package/dist/chunk-4JBKY7XT.mjs.map +0 -1
  56. package/dist/chunk-Z5GYTKMD.mjs.map +0 -1
  57. /package/dist/{chunk-SMDVD4VG.mjs.map → chunk-KCYFFRJY.mjs.map} +0 -0
  58. /package/dist/{chunk-5YGKE5SN.mjs.map → chunk-R5D7D7YN.mjs.map} +0 -0
  59. /package/dist/{chunk-UUXRYAB4.mjs.map → chunk-RCCT2GOF.mjs.map} +0 -0
  60. /package/dist/{chunk-ALZ5H3VD.mjs.map → chunk-YGS5B7PN.mjs.map} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent
4
- } from "../chunk-ALZ5H3VD.mjs";
4
+ } from "../chunk-YGS5B7PN.mjs";
5
5
  import {
6
6
  config,
7
7
  copilotRuntimeNextJSAppRouterEndpoint,
8
8
  copilotRuntimeNextJSPagesRouterEndpoint
9
- } from "../chunk-5YGKE5SN.mjs";
10
- import {
11
- copilotRuntimeNestEndpoint
12
- } from "../chunk-UUXRYAB4.mjs";
9
+ } from "../chunk-R5D7D7YN.mjs";
13
10
  import {
14
11
  copilotRuntimeNodeExpressEndpoint
15
- } from "../chunk-SMDVD4VG.mjs";
12
+ } from "../chunk-KCYFFRJY.mjs";
13
+ import {
14
+ copilotRuntimeNestEndpoint
15
+ } from "../chunk-RCCT2GOF.mjs";
16
16
  import {
17
17
  CopilotRuntime,
18
18
  addCustomHeaderPlugin,
@@ -28,8 +28,9 @@ import {
28
28
  getCommonConfig,
29
29
  langGraphPlatformEndpoint,
30
30
  resolveEndpointType
31
- } from "../chunk-Z5GYTKMD.mjs";
31
+ } from "../chunk-EK5RTZVJ.mjs";
32
32
  import "../chunk-SHBDMA63.mjs";
33
+ import "../chunk-2OZAGFV3.mjs";
33
34
  import {
34
35
  GoogleGenerativeAIAdapter,
35
36
  GroqAdapter,
@@ -37,10 +38,9 @@ import {
37
38
  OpenAIAdapter,
38
39
  OpenAIAssistantAdapter,
39
40
  UnifyAdapter
40
- } from "../chunk-4JBKY7XT.mjs";
41
+ } from "../chunk-QLLV2QVK.mjs";
41
42
  import "../chunk-XWBDEXDA.mjs";
42
43
  import "../chunk-AMUJQ6IR.mjs";
43
- import "../chunk-2OZAGFV3.mjs";
44
44
  import "../chunk-FHD4JECV.mjs";
45
45
  export {
46
46
  CopilotRuntime,
@@ -1,5 +1,5 @@
1
- import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-bd953ebf.js';
2
- export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-bd953ebf.js';
1
+ import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-96b46379.js';
2
+ export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-96b46379.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';
@@ -8,7 +8,7 @@ export { copilotRuntimeNestEndpoint } from './nest/index.js';
8
8
  import 'graphql';
9
9
  import 'pino';
10
10
  import '@copilotkit/shared';
11
- import '../../langserve-fc5cac89.js';
11
+ import '../../langserve-3e8d0e06.js';
12
12
  import '../../index-d4614f9b.js';
13
13
  import '../../graphql/types/base/index.js';
14
14
  import 'rxjs';
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.9.2-next.9",
47
+ version: "1.9.3-next.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -82,11 +82,11 @@ var require_package = __commonJS({
82
82
  "zod-to-json-schema": "^3.23.5"
83
83
  },
84
84
  dependencies: {
85
- "@ag-ui/client": "0.0.28",
86
- "@ag-ui/core": "0.0.28",
87
- "@ag-ui/encoder": "0.0.28",
88
- "@ag-ui/langgraph": "0.0.4",
89
- "@ag-ui/proto": "0.0.28",
85
+ "@ag-ui/client": "0.0.35",
86
+ "@ag-ui/core": "0.0.35",
87
+ "@ag-ui/encoder": "0.0.35",
88
+ "@ag-ui/langgraph": "0.0.7",
89
+ "@ag-ui/proto": "0.0.35",
90
90
  "@anthropic-ai/sdk": "^0.27.3",
91
91
  "@copilotkit/shared": "workspace:*",
92
92
  "@graphql-yoga/plugin-defer-stream": "^3.3.1",
@@ -114,10 +114,10 @@ var require_package = __commonJS({
114
114
  zod: "^3.23.3"
115
115
  },
116
116
  peerDependencies: {
117
- "@ag-ui/client": ">=0.0.28",
118
- "@ag-ui/core": ">=0.0.28",
119
- "@ag-ui/encoder": ">=0.0.28",
120
- "@ag-ui/proto": ">=0.0.28"
117
+ "@ag-ui/client": ">=0.0.34",
118
+ "@ag-ui/core": ">=0.0.34",
119
+ "@ag-ui/encoder": ">=0.0.34",
120
+ "@ag-ui/proto": ">=0.0.34"
121
121
  },
122
122
  keywords: [
123
123
  "copilotkit",
@@ -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"