@copilotkit/runtime 1.4.4 → 1.4.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 (82) hide show
  1. package/CHANGELOG.md +12 -32
  2. package/__snapshots__/schema/schema.graphql +263 -0
  3. package/dist/chunk-37LZS4PV.mjs +25 -0
  4. package/dist/chunk-37LZS4PV.mjs.map +1 -0
  5. package/dist/chunk-44O2JGUY.mjs +12 -0
  6. package/dist/chunk-44O2JGUY.mjs.map +1 -0
  7. package/dist/chunk-55FONM7Y.mjs +3155 -0
  8. package/dist/chunk-55FONM7Y.mjs.map +1 -0
  9. package/dist/chunk-6KZNQI7Z.mjs +25 -0
  10. package/dist/chunk-6KZNQI7Z.mjs.map +1 -0
  11. package/dist/chunk-B74M7FXG.mjs +65 -0
  12. package/dist/chunk-B74M7FXG.mjs.map +1 -0
  13. package/dist/chunk-D2WLFQS6.mjs +43 -0
  14. package/dist/chunk-D2WLFQS6.mjs.map +1 -0
  15. package/dist/chunk-DFOKBSIS.mjs +1 -0
  16. package/dist/chunk-DFOKBSIS.mjs.map +1 -0
  17. package/dist/chunk-OKQVDDJ2.mjs +1173 -0
  18. package/dist/chunk-OKQVDDJ2.mjs.map +1 -0
  19. package/dist/chunk-U3V2BCGI.mjs +152 -0
  20. package/dist/chunk-U3V2BCGI.mjs.map +1 -0
  21. package/dist/chunk-XA3KCJ6P.mjs +80 -0
  22. package/dist/chunk-XA3KCJ6P.mjs.map +1 -0
  23. package/dist/copilot-runtime-12e7ac40.d.ts +189 -0
  24. package/dist/graphql/types/base/index.d.ts +6 -0
  25. package/dist/graphql/types/base/index.js +63 -0
  26. package/dist/graphql/types/base/index.js.map +1 -0
  27. package/dist/graphql/types/base/index.mjs +8 -0
  28. package/dist/graphql/types/base/index.mjs.map +1 -0
  29. package/dist/graphql/types/converted/index.d.ts +2 -0
  30. package/dist/graphql/types/converted/index.js +123 -0
  31. package/dist/graphql/types/converted/index.js.map +1 -0
  32. package/dist/graphql/types/converted/index.mjs +17 -0
  33. package/dist/graphql/types/converted/index.mjs.map +1 -0
  34. package/dist/groq-adapter-24abe931.d.ts +281 -0
  35. package/dist/index-10b1c870.d.ts +88 -0
  36. package/dist/index.d.ts +23 -0
  37. package/dist/index.js +4675 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/index.mjs +72 -0
  40. package/dist/index.mjs.map +1 -0
  41. package/dist/langserve-f021ab9c.d.ts +136 -0
  42. package/dist/lib/cloud/index.d.ts +6 -0
  43. package/dist/lib/cloud/index.js +18 -0
  44. package/dist/lib/cloud/index.js.map +1 -0
  45. package/dist/lib/cloud/index.mjs +1 -0
  46. package/dist/lib/cloud/index.mjs.map +1 -0
  47. package/dist/lib/index.d.ts +20 -0
  48. package/dist/lib/index.js +4400 -0
  49. package/dist/lib/index.js.map +1 -0
  50. package/dist/lib/index.mjs +58 -0
  51. package/dist/lib/index.mjs.map +1 -0
  52. package/dist/lib/integrations/index.d.ts +33 -0
  53. package/dist/lib/integrations/index.js +2043 -0
  54. package/dist/lib/integrations/index.js.map +1 -0
  55. package/dist/lib/integrations/index.mjs +34 -0
  56. package/dist/lib/integrations/index.mjs.map +1 -0
  57. package/dist/lib/integrations/nest/index.d.ts +14 -0
  58. package/dist/lib/integrations/nest/index.js +1952 -0
  59. package/dist/lib/integrations/nest/index.js.map +1 -0
  60. package/dist/lib/integrations/nest/index.mjs +13 -0
  61. package/dist/lib/integrations/nest/index.mjs.map +1 -0
  62. package/dist/lib/integrations/node-express/index.d.ts +14 -0
  63. package/dist/lib/integrations/node-express/index.js +1952 -0
  64. package/dist/lib/integrations/node-express/index.js.map +1 -0
  65. package/dist/lib/integrations/node-express/index.mjs +13 -0
  66. package/dist/lib/integrations/node-express/index.mjs.map +1 -0
  67. package/dist/lib/integrations/node-http/index.d.ts +14 -0
  68. package/dist/lib/integrations/node-http/index.js +1938 -0
  69. package/dist/lib/integrations/node-http/index.js.map +1 -0
  70. package/dist/lib/integrations/node-http/index.mjs +12 -0
  71. package/dist/lib/integrations/node-http/index.mjs.map +1 -0
  72. package/dist/service-adapters/index.d.ts +53 -0
  73. package/dist/service-adapters/index.js +1211 -0
  74. package/dist/service-adapters/index.js.map +1 -0
  75. package/dist/service-adapters/index.mjs +22 -0
  76. package/dist/service-adapters/index.mjs.map +1 -0
  77. package/dist/utils/index.d.ts +49 -0
  78. package/dist/utils/index.js +174 -0
  79. package/dist/utils/index.js.map +1 -0
  80. package/dist/utils/index.mjs +12 -0
  81. package/dist/utils/index.mjs.map +1 -0
  82. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,48 +1,28 @@
1
1
  # @copilotkit/runtime
2
2
 
3
- ## 1.4.4
4
-
5
- ### Patch Changes
6
-
7
- - 665deab: test prerelease
8
- - 57a6012: test next prerelease automation
9
- - 7cfc2e7: test prerelease stuff
10
- - af36f1a: - feat(runtime): readme update
11
- - @copilotkit/shared@1.4.4
12
-
13
- ## 1.4.4-next.4
14
-
15
- ### Patch Changes
16
-
17
- - 57a6012: test next prerelease automation
18
- - @copilotkit/shared@1.4.4-next.4
19
-
20
- ## 1.4.4-next.3
3
+ ## 1.4.6
21
4
 
22
5
  ### Patch Changes
23
6
 
24
- - 7cfc2e7: test prerelease stuff
25
- - @copilotkit/shared@1.4.4-next.3
26
-
27
- ## 1.4.4-next.2
28
-
29
- ### Patch Changes
30
-
31
- - 665deab: test prerelease
32
- - @copilotkit/shared@1.4.4-next.2
7
+ - .
8
+ - Updated dependencies
9
+ - @copilotkit/shared@1.4.6
33
10
 
34
- ## 1.4.4-next.1
11
+ ## 1.4.5
35
12
 
36
13
  ### Patch Changes
37
14
 
38
- - af36f1a: - feat(runtime): readme update
39
- - @copilotkit/shared@1.4.4-next.1
15
+ - .
16
+ - Updated dependencies
17
+ - @copilotkit/shared@1.4.5
40
18
 
41
- ## 1.4.4-next.0
19
+ ## 1.4.4
42
20
 
43
21
  ### Patch Changes
44
22
 
45
- - @copilotkit/shared@1.4.4-next.0
23
+ - .
24
+ - Updated dependencies
25
+ - @copilotkit/shared@1.4.4
46
26
 
47
27
  ## 1.4.3
48
28
 
@@ -0,0 +1,263 @@
1
+ # -----------------------------------------------
2
+ # !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
3
+ # !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
4
+ # -----------------------------------------------
5
+
6
+ input ActionExecutionMessageInput {
7
+ arguments: String!
8
+ name: String!
9
+ scope: ActionExecutionScope!
10
+ }
11
+
12
+ type ActionExecutionMessageOutput implements BaseMessageOutput {
13
+ arguments: [String!]!
14
+ createdAt: DateTimeISO!
15
+ id: String!
16
+ name: String!
17
+ scope: ActionExecutionScope!
18
+ status: MessageStatus!
19
+ }
20
+
21
+ """The scope of the action"""
22
+ enum ActionExecutionScope {
23
+ client
24
+ passThrough
25
+ server
26
+ }
27
+
28
+ input ActionInput {
29
+ available: ActionInputAvailability
30
+ description: String!
31
+ jsonSchema: String!
32
+ name: String!
33
+ }
34
+
35
+ """The availability of the frontend action"""
36
+ enum ActionInputAvailability {
37
+ disabled
38
+ enabled
39
+ remote
40
+ }
41
+
42
+ input AgentSessionInput {
43
+ agentName: String!
44
+ nodeName: String
45
+ threadId: String
46
+ }
47
+
48
+ input AgentStateInput {
49
+ agentName: String!
50
+ state: String!
51
+ }
52
+
53
+ input AgentStateMessageInput {
54
+ active: Boolean!
55
+ agentName: String!
56
+ nodeName: String!
57
+ role: MessageRole!
58
+ runId: String!
59
+ running: Boolean!
60
+ state: String!
61
+ threadId: String!
62
+ }
63
+
64
+ type AgentStateMessageOutput implements BaseMessageOutput {
65
+ active: Boolean!
66
+ agentName: String!
67
+ createdAt: DateTimeISO!
68
+ id: String!
69
+ nodeName: String!
70
+ role: MessageRole!
71
+ runId: String!
72
+ running: Boolean!
73
+ state: String!
74
+ status: MessageStatus!
75
+ threadId: String!
76
+ }
77
+
78
+ interface BaseMessageOutput {
79
+ createdAt: DateTimeISO!
80
+ id: String!
81
+ status: MessageStatus!
82
+ }
83
+
84
+ interface BaseResponseStatus {
85
+ code: ResponseStatusCode!
86
+ }
87
+
88
+ input CloudInput {
89
+ guardrails: GuardrailsInput
90
+ }
91
+
92
+ """The type of Copilot request"""
93
+ enum CopilotRequestType {
94
+ Chat
95
+ Suggestion
96
+ Task
97
+ TextareaCompletion
98
+ TextareaPopover
99
+ }
100
+
101
+ type CopilotResponse {
102
+ messages: [BaseMessageOutput!]!
103
+ runId: String
104
+ status: ResponseStatus!
105
+ threadId: String!
106
+ }
107
+
108
+ """
109
+ A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.
110
+ """
111
+ scalar DateTimeISO
112
+
113
+ type FailedMessageStatus {
114
+ code: MessageStatusCode!
115
+ reason: String!
116
+ }
117
+
118
+ type FailedResponseStatus implements BaseResponseStatus {
119
+ code: ResponseStatusCode!
120
+ details: JSON
121
+ reason: FailedResponseStatusReason!
122
+ }
123
+
124
+ enum FailedResponseStatusReason {
125
+ GUARDRAILS_VALIDATION_FAILED
126
+ MESSAGE_STREAM_INTERRUPTED
127
+ UNKNOWN_ERROR
128
+ }
129
+
130
+ input ForwardedParametersInput {
131
+ maxTokens: Float
132
+ model: String
133
+ stop: [String!]
134
+ toolChoice: String
135
+ toolChoiceFunctionName: String
136
+ }
137
+
138
+ input FrontendInput {
139
+ actions: [ActionInput!]!
140
+ toDeprecate_fullContext: String
141
+ url: String
142
+ }
143
+
144
+ input GenerateCopilotResponseInput {
145
+ agentSession: AgentSessionInput
146
+ agentState: AgentStateInput
147
+ agentStates: [AgentStateInput!]
148
+ cloud: CloudInput
149
+ forwardedParameters: ForwardedParametersInput
150
+ frontend: FrontendInput!
151
+ messages: [MessageInput!]!
152
+ metadata: GenerateCopilotResponseMetadataInput!
153
+ runId: String
154
+ threadId: String
155
+ }
156
+
157
+ input GenerateCopilotResponseMetadataInput {
158
+ requestType: CopilotRequestType
159
+ }
160
+
161
+ input GuardrailsInput {
162
+ inputValidationRules: GuardrailsRuleInput!
163
+ }
164
+
165
+ input GuardrailsRuleInput {
166
+ allowList: [String!] = []
167
+ denyList: [String!] = []
168
+ }
169
+
170
+ """
171
+ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
172
+ """
173
+ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
174
+
175
+ """
176
+ The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
177
+ """
178
+ scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
179
+
180
+ input MessageInput {
181
+ actionExecutionMessage: ActionExecutionMessageInput
182
+ agentStateMessage: AgentStateMessageInput
183
+ createdAt: DateTimeISO!
184
+ id: String!
185
+ resultMessage: ResultMessageInput
186
+ textMessage: TextMessageInput
187
+ }
188
+
189
+ """The role of the message"""
190
+ enum MessageRole {
191
+ assistant
192
+ system
193
+ tool
194
+ user
195
+ }
196
+
197
+ union MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus
198
+
199
+ enum MessageStatusCode {
200
+ Failed
201
+ Pending
202
+ Success
203
+ }
204
+
205
+ type Mutation {
206
+ generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
207
+ }
208
+
209
+ type PendingMessageStatus {
210
+ code: MessageStatusCode!
211
+ }
212
+
213
+ type PendingResponseStatus implements BaseResponseStatus {
214
+ code: ResponseStatusCode!
215
+ }
216
+
217
+ type Query {
218
+ hello: String!
219
+ }
220
+
221
+ union ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus
222
+
223
+ enum ResponseStatusCode {
224
+ Failed
225
+ Pending
226
+ Success
227
+ }
228
+
229
+ input ResultMessageInput {
230
+ actionExecutionId: String!
231
+ actionName: String!
232
+ result: String!
233
+ }
234
+
235
+ type ResultMessageOutput implements BaseMessageOutput {
236
+ actionExecutionId: String!
237
+ actionName: String!
238
+ createdAt: DateTimeISO!
239
+ id: String!
240
+ result: String!
241
+ status: MessageStatus!
242
+ }
243
+
244
+ type SuccessMessageStatus {
245
+ code: MessageStatusCode!
246
+ }
247
+
248
+ type SuccessResponseStatus implements BaseResponseStatus {
249
+ code: ResponseStatusCode!
250
+ }
251
+
252
+ input TextMessageInput {
253
+ content: String!
254
+ role: MessageRole!
255
+ }
256
+
257
+ type TextMessageOutput implements BaseMessageOutput {
258
+ content: [String!]!
259
+ createdAt: DateTimeISO!
260
+ id: String!
261
+ role: MessageRole!
262
+ status: MessageStatus!
263
+ }
@@ -0,0 +1,25 @@
1
+ import {
2
+ copilotRuntimeNodeHttpEndpoint,
3
+ getRuntimeInstanceTelemetryInfo,
4
+ telemetry_client_default
5
+ } from "./chunk-55FONM7Y.mjs";
6
+ import {
7
+ __name
8
+ } from "./chunk-44O2JGUY.mjs";
9
+
10
+ // src/lib/integrations/node-express/index.ts
11
+ function copilotRuntimeNodeExpressEndpoint(options) {
12
+ telemetry_client_default.setGlobalProperties({
13
+ runtime: {
14
+ framework: "node-express"
15
+ }
16
+ });
17
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
18
+ return copilotRuntimeNodeHttpEndpoint(options);
19
+ }
20
+ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
21
+
22
+ export {
23
+ copilotRuntimeNodeExpressEndpoint
24
+ };
25
+ //# sourceMappingURL=chunk-37LZS4PV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/integrations/node-express/index.ts"],"sourcesContent":["import { CreateCopilotRuntimeServerOptions } from \"../shared\";\nimport { copilotRuntimeNodeHttpEndpoint } from \"../node-http\";\nimport telemetry, { getRuntimeInstanceTelemetryInfo } from \"../../telemetry-client\";\n\nexport function copilotRuntimeNodeExpressEndpoint(options: CreateCopilotRuntimeServerOptions) {\n telemetry.setGlobalProperties({\n runtime: {\n framework: \"node-express\",\n },\n });\n\n telemetry.capture(\n \"oss.runtime.instance_created\",\n getRuntimeInstanceTelemetryInfo(options.runtime),\n );\n return copilotRuntimeNodeHttpEndpoint(options);\n}\n"],"mappings":";;;;;;;;;;AAIO,SAASA,kCAAkCC,SAA0C;AAC1FC,2BAAUC,oBAAoB;IAC5BC,SAAS;MACPC,WAAW;IACb;EACF,CAAA;AAEAH,2BAAUI,QACR,gCACAC,gCAAgCN,QAAQG,OAAO,CAAA;AAEjD,SAAOI,+BAA+BP,OAAAA;AACxC;AAZgBD;","names":["copilotRuntimeNodeExpressEndpoint","options","telemetry","setGlobalProperties","runtime","framework","capture","getRuntimeInstanceTelemetryInfo","copilotRuntimeNodeHttpEndpoint"]}
@@ -0,0 +1,12 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
+ var __commonJS = (cb, mod) => function __require() {
5
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
6
+ };
7
+
8
+ export {
9
+ __name,
10
+ __commonJS
11
+ };
12
+ //# sourceMappingURL=chunk-44O2JGUY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}