@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,12 +1,12 @@
1
1
  import {
2
2
  copilotRuntimeNodeExpressEndpoint
3
- } from "../../../chunk-SMDVD4VG.mjs";
4
- import "../../../chunk-Z5GYTKMD.mjs";
3
+ } from "../../../chunk-KCYFFRJY.mjs";
4
+ import "../../../chunk-EK5RTZVJ.mjs";
5
5
  import "../../../chunk-SHBDMA63.mjs";
6
- import "../../../chunk-4JBKY7XT.mjs";
6
+ import "../../../chunk-2OZAGFV3.mjs";
7
+ import "../../../chunk-QLLV2QVK.mjs";
7
8
  import "../../../chunk-XWBDEXDA.mjs";
8
9
  import "../../../chunk-AMUJQ6IR.mjs";
9
- import "../../../chunk-2OZAGFV3.mjs";
10
10
  import "../../../chunk-FHD4JECV.mjs";
11
11
  export {
12
12
  copilotRuntimeNodeExpressEndpoint
@@ -1,9 +1,9 @@
1
1
  import * as graphql_yoga from 'graphql-yoga';
2
- import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-bd953ebf.js';
2
+ import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-96b46379.js';
3
3
  import 'graphql';
4
4
  import 'pino';
5
5
  import '@copilotkit/shared';
6
- import '../../../langserve-fc5cac89.js';
6
+ import '../../../langserve-3e8d0e06.js';
7
7
  import '../../../index-d4614f9b.js';
8
8
  import '../../../graphql/types/base/index.js';
9
9
  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",
@@ -2107,7 +2107,7 @@ var CopilotResolver = class {
2107
2107
  logger2.debug("Cloud configuration provided, checking for public API key in headers");
2108
2108
  if (!copilotCloudPublicApiKey) {
2109
2109
  logger2.error("Public API key not found in headers");
2110
- await copilotRuntime.traceGraphQLError({
2110
+ await copilotRuntime.errorGraphQLError({
2111
2111
  message: "X-CopilotCloud-Public-API-Key header is required",
2112
2112
  code: "MISSING_PUBLIC_API_KEY",
2113
2113
  type: "GraphQLError"