@copilotkit/runtime 1.6.0-next.4 → 1.6.0-next.6

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 (56) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/__snapshots__/schema/schema.graphql +1 -0
  3. package/dist/{chunk-YUCVJM6E.mjs → chunk-5HTQ3NJN.mjs} +30 -28
  4. package/dist/chunk-5HTQ3NJN.mjs.map +1 -0
  5. package/dist/{chunk-7EXH7PVD.mjs → chunk-FZJAYGIR.mjs} +43 -11
  6. package/dist/chunk-FZJAYGIR.mjs.map +1 -0
  7. package/dist/{chunk-ROFUPT7E.mjs → chunk-KOZEUHQH.mjs} +2 -2
  8. package/dist/{chunk-Z5VUD7NL.mjs → chunk-MADVAANL.mjs} +2 -2
  9. package/dist/{chunk-4FCUC27H.mjs → chunk-USK52PF7.mjs} +2 -2
  10. package/dist/{copilot-runtime-67033bfa.d.ts → copilot-runtime-15bfc4f4.d.ts} +2 -2
  11. package/dist/graphql/types/converted/index.d.ts +1 -1
  12. package/dist/{groq-adapter-9d15c927.d.ts → groq-adapter-fb9aa3ab.d.ts} +1 -1
  13. package/dist/{index-f6d1f30b.d.ts → index-5bec5424.d.ts} +2 -1
  14. package/dist/index.d.ts +4 -4
  15. package/dist/index.js +64 -30
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.mjs +10 -10
  18. package/dist/{langserve-7cc5be48.d.ts → langserve-6f7af8d3.d.ts} +1 -1
  19. package/dist/lib/index.d.ts +4 -4
  20. package/dist/lib/index.js +64 -30
  21. package/dist/lib/index.js.map +1 -1
  22. package/dist/lib/index.mjs +6 -6
  23. package/dist/lib/integrations/index.d.ts +4 -4
  24. package/dist/lib/integrations/index.js +3 -2
  25. package/dist/lib/integrations/index.js.map +1 -1
  26. package/dist/lib/integrations/index.mjs +5 -5
  27. package/dist/lib/integrations/nest/index.d.ts +3 -3
  28. package/dist/lib/integrations/nest/index.js +3 -2
  29. package/dist/lib/integrations/nest/index.js.map +1 -1
  30. package/dist/lib/integrations/nest/index.mjs +3 -3
  31. package/dist/lib/integrations/node-express/index.d.ts +3 -3
  32. package/dist/lib/integrations/node-express/index.js +3 -2
  33. package/dist/lib/integrations/node-express/index.js.map +1 -1
  34. package/dist/lib/integrations/node-express/index.mjs +3 -3
  35. package/dist/lib/integrations/node-http/index.d.ts +3 -3
  36. package/dist/lib/integrations/node-http/index.js +3 -2
  37. package/dist/lib/integrations/node-http/index.js.map +1 -1
  38. package/dist/lib/integrations/node-http/index.mjs +2 -2
  39. package/dist/service-adapters/index.d.ts +4 -4
  40. package/dist/service-adapters/index.js +42 -10
  41. package/dist/service-adapters/index.js.map +1 -1
  42. package/dist/service-adapters/index.mjs +1 -1
  43. package/package.json +3 -3
  44. package/src/graphql/types/enums.ts +1 -0
  45. package/src/lib/runtime/remote-action-constructors.ts +6 -5
  46. package/src/service-adapters/conversion.ts +39 -47
  47. package/src/service-adapters/groq/groq-adapter.ts +6 -3
  48. package/src/service-adapters/openai/openai-adapter.ts +1 -1
  49. package/src/service-adapters/openai/openai-assistant-adapter.ts +1 -1
  50. package/src/service-adapters/openai/utils.ts +37 -12
  51. package/src/service-adapters/unify/unify-adapter.ts +1 -1
  52. package/dist/chunk-7EXH7PVD.mjs.map +0 -1
  53. package/dist/chunk-YUCVJM6E.mjs.map +0 -1
  54. /package/dist/{chunk-ROFUPT7E.mjs.map → chunk-KOZEUHQH.mjs.map} +0 -0
  55. /package/dist/{chunk-Z5VUD7NL.mjs.map → chunk-MADVAANL.mjs.map} +0 -0
  56. /package/dist/{chunk-4FCUC27H.mjs.map → chunk-USK52PF7.mjs.map} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  config,
4
4
  copilotRuntimeNextJSAppRouterEndpoint,
5
5
  copilotRuntimeNextJSPagesRouterEndpoint
6
- } from "../chunk-ROFUPT7E.mjs";
6
+ } from "../chunk-KOZEUHQH.mjs";
7
7
  import {
8
8
  copilotRuntimeNestEndpoint
9
- } from "../chunk-4FCUC27H.mjs";
9
+ } from "../chunk-USK52PF7.mjs";
10
10
  import {
11
11
  copilotRuntimeNodeExpressEndpoint
12
- } from "../chunk-Z5VUD7NL.mjs";
12
+ } from "../chunk-MADVAANL.mjs";
13
13
  import {
14
14
  CopilotRuntime,
15
15
  addCustomHeaderPlugin,
@@ -21,8 +21,7 @@ import {
21
21
  getCommonConfig,
22
22
  langGraphPlatformEndpoint,
23
23
  resolveEndpointType
24
- } from "../chunk-YUCVJM6E.mjs";
25
- import "../chunk-5BIEM2UU.mjs";
24
+ } from "../chunk-5HTQ3NJN.mjs";
26
25
  import {
27
26
  GoogleGenerativeAIAdapter,
28
27
  GroqAdapter,
@@ -30,7 +29,8 @@ import {
30
29
  OpenAIAdapter,
31
30
  OpenAIAssistantAdapter,
32
31
  UnifyAdapter
33
- } from "../chunk-7EXH7PVD.mjs";
32
+ } from "../chunk-FZJAYGIR.mjs";
33
+ import "../chunk-5BIEM2UU.mjs";
34
34
  import "../chunk-RTFJTJMA.mjs";
35
35
  import "../chunk-2OZAGFV3.mjs";
36
36
  import "../chunk-FHD4JECV.mjs";
@@ -1,13 +1,13 @@
1
- import { e as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-67033bfa.js';
2
- export { i as CommonConfig, d as CopilotRequestContextProperties, b as addCustomHeaderPlugin, h as buildSchema, g as createContext, j as getCommonConfig } from '../../copilot-runtime-67033bfa.js';
1
+ import { e as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../copilot-runtime-15bfc4f4.js';
2
+ export { i as CommonConfig, d as CopilotRequestContextProperties, b as addCustomHeaderPlugin, h as buildSchema, g as createContext, j as getCommonConfig } from '../../copilot-runtime-15bfc4f4.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';
6
6
  export { copilotRuntimeNodeExpressEndpoint } from './node-express/index.js';
7
7
  export { copilotRuntimeNestEndpoint } from './nest/index.js';
8
8
  import '@copilotkit/shared';
9
- import '../../langserve-7cc5be48.js';
10
- import '../../index-f6d1f30b.js';
9
+ import '../../langserve-6f7af8d3.js';
10
+ import '../../index-5bec5424.js';
11
11
  import '../../graphql/types/base/index.js';
12
12
  import 'rxjs';
13
13
  import 'graphql';
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.6.0-next.4",
47
+ version: "1.6.0-next.6",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -97,7 +97,7 @@ var require_package = __commonJS({
97
97
  "graphql-yoga": "^5.3.1",
98
98
  "groq-sdk": "^0.5.0",
99
99
  langchain: "^0.3.3",
100
- openai: "^4.50.0",
100
+ openai: "^4.85.1",
101
101
  "partial-json": "^0.1.7",
102
102
  pino: "^9.2.0",
103
103
  "pino-pretty": "^11.2.1",
@@ -159,6 +159,7 @@ var MessageRole;
159
159
  MessageRole2["assistant"] = "assistant";
160
160
  MessageRole2["system"] = "system";
161
161
  MessageRole2["tool"] = "tool";
162
+ MessageRole2["developer"] = "developer";
162
163
  })(MessageRole || (MessageRole = {}));
163
164
  var CopilotRequestType;
164
165
  (function(CopilotRequestType2) {