@copilotkit/runtime 0.37.0 → 0.38.0-beta.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 (96) hide show
  1. package/.turbo/turbo-build.log +69 -54
  2. package/CHANGELOG.md +11 -0
  3. package/__snapshots__/schema/schema.graphql +15 -4
  4. package/dist/{chunk-2CCVVJDU.mjs → chunk-2PJG3NAC.mjs} +13 -15
  5. package/dist/chunk-2PJG3NAC.mjs.map +1 -0
  6. package/dist/{chunk-NFCPM5AM.mjs → chunk-6NZ4UMOD.mjs} +4 -4
  7. package/dist/chunk-6NZ4UMOD.mjs.map +1 -0
  8. package/dist/{chunk-XPAUPJMW.mjs → chunk-6YGDE3YI.mjs} +432 -220
  9. package/dist/chunk-6YGDE3YI.mjs.map +1 -0
  10. package/dist/chunk-BYB2LNMK.mjs +152 -0
  11. package/dist/chunk-BYB2LNMK.mjs.map +1 -0
  12. package/dist/{chunk-7IFP53C6.mjs → chunk-FRK6BXXV.mjs} +49 -11
  13. package/dist/chunk-FRK6BXXV.mjs.map +1 -0
  14. package/dist/{chunk-5HGYI6EG.mjs → chunk-JBDOA7MK.mjs} +34 -15
  15. package/dist/chunk-JBDOA7MK.mjs.map +1 -0
  16. package/dist/{chunk-4UA4RB4C.mjs → chunk-JIKPSUGQ.mjs} +45 -76
  17. package/dist/chunk-JIKPSUGQ.mjs.map +1 -0
  18. package/dist/{chunk-BLTAUVRP.mjs → chunk-OZMCHYYR.mjs} +5 -3
  19. package/dist/{chunk-BLTAUVRP.mjs.map → chunk-OZMCHYYR.mjs.map} +1 -1
  20. package/dist/chunk-RHQLCJGG.mjs +7 -0
  21. package/dist/chunk-RHQLCJGG.mjs.map +1 -0
  22. package/dist/failed-response-status-reasons-0ab19e06.d.ts +49 -0
  23. package/dist/graphql/types/base/index.mjs +2 -1
  24. package/dist/graphql/types/converted/index.mjs +3 -2
  25. package/dist/{index-f0875df3.d.ts → index-0e75acd2.d.ts} +86 -59
  26. package/dist/index.d.ts +7 -4
  27. package/dist/index.js +536 -169
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +16 -13
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{langchain-adapter-9ce103f3.d.ts → langchain-adapter-a02d1d38.d.ts} +4 -4
  32. package/dist/{langserve-fd5066ee.d.ts → langserve-75ebbc38.d.ts} +25 -9
  33. package/dist/lib/cloud/index.d.ts +6 -0
  34. package/dist/lib/cloud/index.js +18 -0
  35. package/dist/lib/cloud/index.js.map +1 -0
  36. package/dist/lib/cloud/index.mjs +1 -0
  37. package/dist/lib/cloud/index.mjs.map +1 -0
  38. package/dist/lib/index.d.ts +6 -4
  39. package/dist/lib/index.js +530 -169
  40. package/dist/lib/index.js.map +1 -1
  41. package/dist/lib/index.mjs +9 -13
  42. package/dist/lib/integrations/index.d.ts +5 -3
  43. package/dist/lib/integrations/index.js +426 -64
  44. package/dist/lib/integrations/index.js.map +1 -1
  45. package/dist/lib/integrations/index.mjs +7 -5
  46. package/dist/lib/integrations/node-http/index.d.ts +4 -2
  47. package/dist/lib/integrations/node-http/index.js +416 -52
  48. package/dist/lib/integrations/node-http/index.js.map +1 -1
  49. package/dist/lib/integrations/node-http/index.mjs +6 -4
  50. package/dist/pages-router-e81920d5.d.ts +21 -0
  51. package/dist/service-adapters/index.d.ts +2 -2
  52. package/dist/service-adapters/index.js +82 -25
  53. package/dist/service-adapters/index.js.map +1 -1
  54. package/dist/service-adapters/index.mjs +5 -4
  55. package/dist/utils/index.d.ts +1 -0
  56. package/dist/utils/index.js +174 -0
  57. package/dist/utils/index.js.map +1 -0
  58. package/dist/utils/index.mjs +12 -0
  59. package/dist/utils/index.mjs.map +1 -0
  60. package/package.json +6 -4
  61. package/src/graphql/inputs/cloud-guardrails.input.ts +2 -5
  62. package/src/graphql/inputs/cloud.input.ts +2 -2
  63. package/src/graphql/resolvers/copilot.resolver.ts +340 -30
  64. package/src/graphql/types/response-status.type.ts +16 -2
  65. package/src/index.ts +1 -0
  66. package/src/lib/cloud/index.ts +4 -0
  67. package/src/lib/copilot-runtime.ts +116 -70
  68. package/src/lib/index.ts +0 -1
  69. package/src/lib/integrations/nextjs/app-router.ts +9 -17
  70. package/src/lib/integrations/nextjs/pages-router.ts +9 -15
  71. package/src/lib/integrations/node-http/index.ts +6 -14
  72. package/src/lib/integrations/shared.ts +38 -18
  73. package/src/lib/logger.ts +28 -0
  74. package/src/service-adapters/events.ts +20 -2
  75. package/src/service-adapters/experimental/groq/groq-adapter.ts +3 -1
  76. package/src/service-adapters/experimental/ollama/ollama-adapter.ts +3 -1
  77. package/src/service-adapters/google/google-genai-adapter.ts +6 -1
  78. package/src/service-adapters/google/utils.ts +1 -1
  79. package/src/service-adapters/index.ts +1 -1
  80. package/src/service-adapters/langchain/langchain-adapter.ts +8 -9
  81. package/src/service-adapters/langchain/langserve.ts +10 -4
  82. package/src/service-adapters/langchain/utils.ts +58 -9
  83. package/src/service-adapters/openai/openai-adapter.ts +8 -7
  84. package/src/service-adapters/openai/openai-assistant-adapter.ts +6 -8
  85. package/src/service-adapters/service-adapter.ts +1 -2
  86. package/src/utils/failed-response-status-reasons.ts +48 -0
  87. package/src/utils/index.ts +1 -0
  88. package/dist/chunk-2CCVVJDU.mjs.map +0 -1
  89. package/dist/chunk-4UA4RB4C.mjs.map +0 -1
  90. package/dist/chunk-5HGYI6EG.mjs.map +0 -1
  91. package/dist/chunk-7IFP53C6.mjs.map +0 -1
  92. package/dist/chunk-NFCPM5AM.mjs.map +0 -1
  93. package/dist/chunk-XPAUPJMW.mjs.map +0 -1
  94. package/dist/pages-router-b6bc6c60.d.ts +0 -30
  95. package/src/lib/copilot-cloud.ts +0 -63
  96. package/src/lib/guardrails.ts +0 -3
@@ -1,8 +1,8 @@
1
1
 
2
- > @copilotkit/runtime@0.37.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/runtime
2
+ > @copilotkit/runtime@0.38.0-beta.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/runtime
3
3
  > tsup --clean
4
4
 
5
- CLI Building entry: src/index.ts, src/lib/index.ts, src/service-adapters/index.ts, src/lib/integrations/index.ts, src/graphql/types/base/index.ts, src/graphql/types/converted/index.ts, src/lib/integrations/node-http/index.ts
5
+ CLI Building entry: src/index.ts, src/lib/index.ts, src/service-adapters/index.ts, src/utils/index.ts, src/lib/cloud/index.ts, src/lib/integrations/index.ts, src/graphql/types/base/index.ts, src/graphql/types/converted/index.ts, src/lib/integrations/node-http/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v6.7.0
8
8
  CLI Using tsup config: /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/runtime/tsup.config.ts
@@ -10,61 +10,76 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.mjs 1.07 KB
14
- ESM dist/lib/index.mjs 1.03 KB
15
- ESM dist/service-adapters/index.mjs 395.00 B
16
- ESM dist/lib/integrations/index.mjs 594.00 B
17
- ESM dist/lib/integrations/node-http/index.mjs 273.00 B
18
- ESM dist/chunk-4UA4RB4C.mjs 5.44 KB
19
- ESM dist/chunk-5HGYI6EG.mjs 20.86 KB
20
- ESM dist/chunk-2CCVVJDU.mjs 1.33 KB
21
- ESM dist/chunk-XPAUPJMW.mjs 34.73 KB
22
- ESM dist/chunk-7IFP53C6.mjs 6.49 KB
23
- ESM dist/chunk-BLTAUVRP.mjs 606.00 B
24
- ESM dist/chunk-NFCPM5AM.mjs 1.45 KB
25
- ESM dist/graphql/types/base/index.mjs 121.00 B
26
- ESM dist/index.mjs.map 185.00 B
13
+ CJS dist/index.js 90.21 KB
14
+ CJS dist/lib/index.js 89.86 KB
15
+ CJS dist/service-adapters/index.js 32.69 KB
16
+ CJS dist/utils/index.js 6.32 KB
17
+ CJS dist/lib/cloud/index.js 787.00 B
18
+ CJS dist/lib/integrations/index.js 52.20 KB
19
+ CJS dist/lib/integrations/node-http/index.js 50.54 KB
20
+ CJS dist/graphql/types/base/index.js 2.44 KB
21
+ CJS dist/index.js.map 141.53 KB
22
+ CJS dist/lib/index.js.map 141.87 KB
23
+ CJS dist/service-adapters/index.js.map 62.05 KB
24
+ CJS dist/utils/index.js.map 5.63 KB
25
+ CJS dist/lib/cloud/index.js.map 217.00 B
26
+ CJS dist/lib/integrations/index.js.map 64.90 KB
27
+ CJS dist/lib/integrations/node-http/index.js.map 61.99 KB
28
+ CJS dist/graphql/types/converted/index.js 3.04 KB
29
+ CJS dist/graphql/types/base/index.js.map 645.00 B
30
+ CJS dist/graphql/types/converted/index.js.map 1.76 KB
31
+ CJS ⚡️ Build success in 248ms
32
+ ESM dist/lib/integrations/node-http/index.mjs 349.00 B
33
+ ESM dist/index.mjs 1.22 KB
34
+ ESM dist/lib/index.mjs 1007.00 B
35
+ ESM dist/chunk-JIKPSUGQ.mjs 4.67 KB
36
+ ESM dist/service-adapters/index.mjs 427.00 B
37
+ ESM dist/chunk-JBDOA7MK.mjs 21.31 KB
38
+ ESM dist/utils/index.mjs 315.00 B
39
+ ESM dist/lib/cloud/index.mjs 34.00 B
40
+ ESM dist/lib/integrations/index.mjs 664.00 B
41
+ ESM dist/chunk-2PJG3NAC.mjs 1.41 KB
42
+ ESM dist/chunk-6YGDE3YI.mjs 44.14 KB
43
+ ESM dist/chunk-FRK6BXXV.mjs 7.85 KB
44
+ ESM dist/chunk-BYB2LNMK.mjs 4.91 KB
45
+ ESM dist/graphql/types/base/index.mjs 159.00 B
46
+ ESM dist/graphql/types/converted/index.mjs 283.00 B
47
+ ESM dist/chunk-OZMCHYYR.mjs 645.00 B
48
+ ESM dist/chunk-6NZ4UMOD.mjs 1.36 KB
49
+ ESM dist/chunk-RHQLCJGG.mjs 194.00 B
50
+ ESM dist/lib/integrations/node-http/index.mjs.map 71.00 B
51
+ ESM dist/index.mjs.map 216.00 B
27
52
  ESM dist/lib/index.mjs.map 71.00 B
53
+ ESM dist/chunk-JIKPSUGQ.mjs.map 13.94 KB
28
54
  ESM dist/service-adapters/index.mjs.map 71.00 B
55
+ ESM dist/chunk-JBDOA7MK.mjs.map 45.36 KB
56
+ ESM dist/utils/index.mjs.map 71.00 B
57
+ ESM dist/lib/cloud/index.mjs.map 71.00 B
29
58
  ESM dist/lib/integrations/index.mjs.map 71.00 B
30
- ESM dist/lib/integrations/node-http/index.mjs.map 71.00 B
31
- ESM dist/chunk-4UA4RB4C.mjs.map 15.83 KB
32
- ESM dist/chunk-5HGYI6EG.mjs.map 44.55 KB
33
- ESM dist/chunk-2CCVVJDU.mjs.map 2.93 KB
34
- ESM dist/graphql/types/converted/index.mjs 245.00 B
35
- ESM dist/chunk-XPAUPJMW.mjs.map 40.07 KB
36
- ESM dist/chunk-7IFP53C6.mjs.map 12.61 KB
37
- ESM dist/chunk-BLTAUVRP.mjs.map 1.18 KB
38
- ESM dist/chunk-NFCPM5AM.mjs.map 644.00 B
59
+ ESM dist/chunk-2PJG3NAC.mjs.map 2.79 KB
60
+ ESM dist/chunk-6YGDE3YI.mjs.map 58.33 KB
61
+ ESM dist/chunk-FRK6BXXV.mjs.map 14.76 KB
62
+ ESM dist/chunk-BYB2LNMK.mjs.map 5.63 KB
39
63
  ESM dist/graphql/types/base/index.mjs.map 71.00 B
40
64
  ESM dist/graphql/types/converted/index.mjs.map 71.00 B
41
- ESM ⚡️ Build success in 203ms
42
- CJS dist/index.js 74.53 KB
43
- CJS dist/lib/index.js 74.48 KB
44
- CJS dist/service-adapters/index.js 30.87 KB
45
- CJS dist/lib/integrations/index.js 37.03 KB
46
- CJS dist/graphql/types/base/index.js 2.44 KB
47
- CJS dist/graphql/types/converted/index.js 3.04 KB
48
- CJS dist/lib/integrations/node-http/index.js 35.45 KB
49
- CJS dist/index.js.map 116.68 KB
50
- CJS dist/lib/index.js.map 117.08 KB
51
- CJS dist/service-adapters/index.js.map 59.01 KB
52
- CJS dist/lib/integrations/index.js.map 40.40 KB
53
- CJS dist/graphql/types/base/index.js.map 645.00 B
54
- CJS dist/graphql/types/converted/index.js.map 1.76 KB
55
- CJS dist/lib/integrations/node-http/index.js.map 37.37 KB
56
- CJS ⚡️ Build success in 226ms
65
+ ESM dist/chunk-OZMCHYYR.mjs.map 1.18 KB
66
+ ESM dist/chunk-6NZ4UMOD.mjs.map 645.00 B
67
+ ESM dist/chunk-RHQLCJGG.mjs.map 71.00 B
68
+ ESM ⚡️ Build success in 252ms
57
69
  DTS Build start
58
- DTS ⚡️ Build success in 6715ms
59
- DTS dist/index.d.ts 1.18 KB
60
- DTS dist/graphql/types/base/index.d.ts 92.00 B
61
- DTS dist/lib/index.d.ts 1.19 KB
62
- DTS dist/service-adapters/index.d.ts 515.00 B
63
- DTS dist/lib/integrations/index.d.ts 626.00 B
64
- DTS dist/lib/integrations/node-http/index.d.ts 292.00 B
65
- DTS dist/graphql/types/converted/index.d.ts 153.00 B
66
- DTS dist/index-f0875df3.d.ts 6.99 KB
67
- DTS dist/langchain-adapter-9ce103f3.d.ts 5.87 KB
68
- DTS dist/pages-router-b6bc6c60.d.ts 1.27 KB
69
- DTS dist/langserve-fd5066ee.d.ts 3.17 KB
70
- DTS dist/index-aa091e3c.d.ts 1.33 KB
70
+ DTS ⚡️ Build success in 7840ms
71
+ DTS dist/index.d.ts 1.28 KB
72
+ DTS dist/lib/cloud/index.d.ts 116.00 B
73
+ DTS dist/graphql/types/base/index.d.ts 92.00 B
74
+ DTS dist/lib/index.d.ts 1.11 KB
75
+ DTS dist/service-adapters/index.d.ts 543.00 B
76
+ DTS dist/utils/index.d.ts 172.00 B
77
+ DTS dist/lib/integrations/index.d.ts 688.00 B
78
+ DTS dist/lib/integrations/node-http/index.d.ts 338.00 B
79
+ DTS dist/graphql/types/converted/index.d.ts 153.00 B
80
+ DTS dist/index-0e75acd2.d.ts 7.66 KB
81
+ DTS dist/langchain-adapter-a02d1d38.d.ts 5.74 KB
82
+ DTS dist/pages-router-e81920d5.d.ts 891.00 B
83
+ DTS dist/failed-response-status-reasons-0ab19e06.d.ts 1.41 KB
84
+ DTS dist/langserve-75ebbc38.d.ts 3.59 KB
85
+ DTS dist/index-aa091e3c.d.ts 1.33 KB
package/CHANGELOG.md CHANGED
@@ -1 +1,12 @@
1
1
  # @copilotkit/runtime
2
+
3
+ ## 0.38.0-beta.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Beta
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @copilotkit/shared@0.38.0-beta.0
@@ -41,7 +41,7 @@ interface BaseResponseStatus {
41
41
  }
42
42
 
43
43
  input CloudInput {
44
- guardrails: GuardrailsInput!
44
+ guardrails: GuardrailsInput
45
45
  }
46
46
 
47
47
  type CopilotResponse {
@@ -63,7 +63,14 @@ type FailedMessageStatus {
63
63
 
64
64
  type FailedResponseStatus implements BaseResponseStatus {
65
65
  code: ResponseStatusCode!
66
- reason: String!
66
+ details: JSON
67
+ reason: FailedResponseStatusReason!
68
+ }
69
+
70
+ enum FailedResponseStatusReason {
71
+ GUARDRAILS_VALIDATION_FAILED
72
+ MESSAGE_STREAM_INTERRUPTED
73
+ UNKNOWN_ERROR
67
74
  }
68
75
 
69
76
  input FrontendInput {
@@ -80,15 +87,19 @@ input GenerateCopilotResponseInput {
80
87
  }
81
88
 
82
89
  input GuardrailsInput {
83
- inputValidationRules: [GuardrailsRuleInput!] = []
90
+ inputValidationRules: GuardrailsRuleInput = {allowList: [], denyList: []}
84
91
  }
85
92
 
86
93
  input GuardrailsRuleInput {
87
94
  allowList: [String!] = []
88
95
  denyList: [String!] = []
89
- id: String!
90
96
  }
91
97
 
98
+ """
99
+ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
100
+ """
101
+ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
102
+
92
103
  """
93
104
  The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
94
105
  """
@@ -1,20 +1,19 @@
1
1
  import {
2
2
  getCommonConfig
3
- } from "./chunk-XPAUPJMW.mjs";
3
+ } from "./chunk-6YGDE3YI.mjs";
4
4
  import {
5
5
  __name
6
- } from "./chunk-NFCPM5AM.mjs";
6
+ } from "./chunk-RHQLCJGG.mjs";
7
7
 
8
8
  // src/lib/integrations/nextjs/app-router.ts
9
9
  import { createYoga } from "graphql-yoga";
10
- function copilotRuntimeNextJSAppRouterEndpoint({ runtime, endpoint, serviceAdapter }) {
11
- const commonConfig = getCommonConfig({
12
- runtime,
13
- serviceAdapter
14
- });
10
+ function copilotRuntimeNextJSAppRouterEndpoint(options) {
11
+ const commonConfig = getCommonConfig(options);
12
+ const logger = commonConfig.logging;
13
+ logger.debug("Creating NextJS App Router endpoint");
15
14
  const yoga = createYoga({
16
15
  ...commonConfig,
17
- graphqlEndpoint: endpoint,
16
+ graphqlEndpoint: options.endpoint,
18
17
  fetchAPI: {
19
18
  Response: globalThis.Response
20
19
  }
@@ -35,14 +34,13 @@ var config = {
35
34
  bodyParser: false
36
35
  }
37
36
  };
38
- function copilotRuntimeNextJSPagesRouterEndpoint({ runtime, endpoint, serviceAdapter }) {
39
- const commonConfig = getCommonConfig({
40
- runtime,
41
- serviceAdapter
42
- });
37
+ function copilotRuntimeNextJSPagesRouterEndpoint(options) {
38
+ const commonConfig = getCommonConfig(options);
39
+ const logger = commonConfig.logging;
40
+ logger.debug("Creating NextJS Pages Router endpoint");
43
41
  const yoga = createYoga2({
44
42
  ...commonConfig,
45
- graphqlEndpoint: endpoint
43
+ graphqlEndpoint: options.endpoint
46
44
  });
47
45
  return yoga;
48
46
  }
@@ -53,4 +51,4 @@ export {
53
51
  config,
54
52
  copilotRuntimeNextJSPagesRouterEndpoint
55
53
  };
56
- //# sourceMappingURL=chunk-2CCVVJDU.mjs.map
54
+ //# sourceMappingURL=chunk-2PJG3NAC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/integrations/nextjs/app-router.ts","../src/lib/integrations/nextjs/pages-router.ts"],"sourcesContent":["import { createYoga } from \"graphql-yoga\";\nimport { CreateCopilotRuntimeServerOptions, getCommonConfig } from \"../shared\";\n\nexport function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions) {\n const commonConfig = getCommonConfig(options);\n const logger = commonConfig.logging;\n logger.debug(\"Creating NextJS App Router endpoint\");\n\n const yoga = createYoga({\n ...commonConfig,\n graphqlEndpoint: options.endpoint,\n fetchAPI: { Response: globalThis.Response },\n });\n\n return {\n handleRequest: yoga,\n GET: yoga as any,\n POST: yoga as any,\n OPTIONS: yoga as any,\n };\n}\n","import { YogaServerInstance, createYoga } from \"graphql-yoga\";\nimport { CreateCopilotRuntimeServerOptions, GraphQLContext, getCommonConfig } from \"../shared\";\n\nexport const config = {\n api: {\n bodyParser: false,\n },\n};\n\nexport type CopilotRuntimeServerInstance<T> = YogaServerInstance<T, Partial<GraphQLContext>>;\n\n// This import is needed to fix the type error\n// Fix is currently in TypeScript 5.5 beta, waiting for stable version\n// https://github.com/microsoft/TypeScript/issues/42873#issuecomment-2066874644\nexport type {} from \"@whatwg-node/server\";\n\nexport function copilotRuntimeNextJSPagesRouterEndpoint(\n options: CreateCopilotRuntimeServerOptions,\n): CopilotRuntimeServerInstance<GraphQLContext> {\n const commonConfig = getCommonConfig(options);\n const logger = commonConfig.logging;\n logger.debug(\"Creating NextJS Pages Router endpoint\");\n\n const yoga = createYoga({\n ...commonConfig,\n graphqlEndpoint: options.endpoint,\n });\n\n return yoga;\n}\n"],"mappings":";;;;;;;;AAAA,SAASA,kBAAkB;AAGpB,SAASC,sCAAsCC,SAA0C;AAC9F,QAAMC,eAAeC,gBAAgBF,OAAAA;AACrC,QAAMG,SAASF,aAAaG;AAC5BD,SAAOE,MAAM,qCAAA;AAEb,QAAMC,OAAOC,WAAW;IACtB,GAAGN;IACHO,iBAAiBR,QAAQS;IACzBC,UAAU;MAAEC,UAAUC,WAAWD;IAAS;EAC5C,CAAA;AAEA,SAAO;IACLE,eAAeP;IACfQ,KAAKR;IACLS,MAAMT;IACNU,SAASV;EACX;AACF;AAjBgBP;;;ACHhB,SAA6BkB,cAAAA,mBAAkB;AAGxC,IAAMC,SAAS;EACpBC,KAAK;IACHC,YAAY;EACd;AACF;AASO,SAASC,wCACdC,SAA0C;AAE1C,QAAMC,eAAeC,gBAAgBF,OAAAA;AACrC,QAAMG,SAASF,aAAaG;AAC5BD,SAAOE,MAAM,uCAAA;AAEb,QAAMC,OAAOC,YAAW;IACtB,GAAGN;IACHO,iBAAiBR,QAAQS;EAC3B,CAAA;AAEA,SAAOH;AACT;AAbgBP;","names":["createYoga","copilotRuntimeNextJSAppRouterEndpoint","options","commonConfig","getCommonConfig","logger","logging","debug","yoga","createYoga","graphqlEndpoint","endpoint","fetchAPI","Response","globalThis","handleRequest","GET","POST","OPTIONS","createYoga","config","api","bodyParser","copilotRuntimeNextJSPagesRouterEndpoint","options","commonConfig","getCommonConfig","logger","logging","debug","yoga","createYoga","graphqlEndpoint","endpoint"]}
@@ -1,5 +1,6 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
1
+ import {
2
+ __name
3
+ } from "./chunk-RHQLCJGG.mjs";
3
4
 
4
5
  // src/graphql/types/base/index.ts
5
6
  import { Field, InputType } from "type-graphql";
@@ -37,7 +38,6 @@ BaseMessage = _ts_decorate([
37
38
  ], BaseMessage);
38
39
 
39
40
  export {
40
- __name,
41
41
  BaseMessage
42
42
  };
43
- //# sourceMappingURL=chunk-NFCPM5AM.mjs.map
43
+ //# sourceMappingURL=chunk-6NZ4UMOD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/graphql/types/base/index.ts"],"sourcesContent":["import { Field, InputType } from \"type-graphql\";\n\n@InputType()\nexport class BaseMessage {\n @Field(() => String)\n id: string;\n\n @Field(() => Date)\n createdAt: Date;\n}\n"],"mappings":";;;;;AAAA,SAASA,OAAOC,iBAAiB;;;;;;;;;;;;;;;;;AAG1B,IAAMC,cAAN,MAAMA;EAEXC;EAGAC;AACF;AANaF;;EACVG,MAAM,MAAMC,MAAAA;;GADFJ,YAAAA,WAAAA,MAAAA,MAAAA;;EAIVG,MAAM,MAAME,IAAAA;qCACF,SAAA,cAAA,SAAA,IAAA;GALAL,YAAAA,WAAAA,aAAAA,MAAAA;AAAAA,cAAAA,aAAAA;EADZM,UAAAA;GACYN,WAAAA;","names":["Field","InputType","BaseMessage","id","createdAt","Field","String","Date","InputType"]}