@copilotkit/runtime 1.5.1-next.3 → 1.5.1-next.4
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.
- package/CHANGELOG.md +10 -2
- package/package.json +2 -2
- package/__snapshots__/schema/schema.graphql +0 -263
- package/dist/chunk-44O2JGUY.mjs +0 -12
- package/dist/chunk-44O2JGUY.mjs.map +0 -1
- package/dist/chunk-B74M7FXG.mjs +0 -65
- package/dist/chunk-B74M7FXG.mjs.map +0 -1
- package/dist/chunk-D2WLFQS6.mjs +0 -43
- package/dist/chunk-D2WLFQS6.mjs.map +0 -1
- package/dist/chunk-DFOKBSIS.mjs +0 -1
- package/dist/chunk-DFOKBSIS.mjs.map +0 -1
- package/dist/chunk-M4QD67S3.mjs +0 -80
- package/dist/chunk-M4QD67S3.mjs.map +0 -1
- package/dist/chunk-OKQVDDJ2.mjs +0 -1173
- package/dist/chunk-OKQVDDJ2.mjs.map +0 -1
- package/dist/chunk-U3AYI5XZ.mjs +0 -25
- package/dist/chunk-U3AYI5XZ.mjs.map +0 -1
- package/dist/chunk-U3V2BCGI.mjs +0 -152
- package/dist/chunk-U3V2BCGI.mjs.map +0 -1
- package/dist/chunk-U75F2RAQ.mjs +0 -25
- package/dist/chunk-U75F2RAQ.mjs.map +0 -1
- package/dist/chunk-ZSWCEADS.mjs +0 -3147
- package/dist/chunk-ZSWCEADS.mjs.map +0 -1
- package/dist/copilot-runtime-12e7ac40.d.ts +0 -189
- package/dist/graphql/types/base/index.d.ts +0 -6
- package/dist/graphql/types/base/index.js +0 -63
- package/dist/graphql/types/base/index.js.map +0 -1
- package/dist/graphql/types/base/index.mjs +0 -8
- package/dist/graphql/types/base/index.mjs.map +0 -1
- package/dist/graphql/types/converted/index.d.ts +0 -2
- package/dist/graphql/types/converted/index.js +0 -123
- package/dist/graphql/types/converted/index.js.map +0 -1
- package/dist/graphql/types/converted/index.mjs +0 -17
- package/dist/graphql/types/converted/index.mjs.map +0 -1
- package/dist/groq-adapter-24abe931.d.ts +0 -281
- package/dist/index-10b1c870.d.ts +0 -88
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -4667
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -72
- package/dist/index.mjs.map +0 -1
- package/dist/langserve-f021ab9c.d.ts +0 -136
- package/dist/lib/cloud/index.d.ts +0 -6
- package/dist/lib/cloud/index.js +0 -18
- package/dist/lib/cloud/index.js.map +0 -1
- package/dist/lib/cloud/index.mjs +0 -1
- package/dist/lib/cloud/index.mjs.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.js +0 -4392
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -58
- package/dist/lib/index.mjs.map +0 -1
- package/dist/lib/integrations/index.d.ts +0 -33
- package/dist/lib/integrations/index.js +0 -2043
- package/dist/lib/integrations/index.js.map +0 -1
- package/dist/lib/integrations/index.mjs +0 -34
- package/dist/lib/integrations/index.mjs.map +0 -1
- package/dist/lib/integrations/nest/index.d.ts +0 -14
- package/dist/lib/integrations/nest/index.js +0 -1952
- package/dist/lib/integrations/nest/index.js.map +0 -1
- package/dist/lib/integrations/nest/index.mjs +0 -13
- package/dist/lib/integrations/nest/index.mjs.map +0 -1
- package/dist/lib/integrations/node-express/index.d.ts +0 -14
- package/dist/lib/integrations/node-express/index.js +0 -1952
- package/dist/lib/integrations/node-express/index.js.map +0 -1
- package/dist/lib/integrations/node-express/index.mjs +0 -13
- package/dist/lib/integrations/node-express/index.mjs.map +0 -1
- package/dist/lib/integrations/node-http/index.d.ts +0 -14
- package/dist/lib/integrations/node-http/index.js +0 -1938
- package/dist/lib/integrations/node-http/index.js.map +0 -1
- package/dist/lib/integrations/node-http/index.mjs +0 -12
- package/dist/lib/integrations/node-http/index.mjs.map +0 -1
- package/dist/service-adapters/index.d.ts +0 -53
- package/dist/service-adapters/index.js +0 -1211
- package/dist/service-adapters/index.js.map +0 -1
- package/dist/service-adapters/index.mjs +0 -22
- package/dist/service-adapters/index.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -49
- package/dist/utils/index.js +0 -174
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -12
- package/dist/utils/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.5.1-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5c01e9e: test prerelease #4
|
|
8
|
+
- Updated dependencies [5c01e9e]
|
|
9
|
+
- @copilotkit/shared@1.5.1-next.4
|
|
10
|
+
|
|
3
11
|
## 1.5.1-next.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
6
14
|
|
|
7
|
-
- test prerelease #3
|
|
8
|
-
- Updated dependencies
|
|
15
|
+
- 33218fe: test prerelease #3
|
|
16
|
+
- Updated dependencies [33218fe]
|
|
9
17
|
- @copilotkit/shared@1.5.1-next.3
|
|
10
18
|
|
|
11
19
|
## 1.5.1-next.2
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.5.1-next.
|
|
12
|
+
"version": "1.5.1-next.4",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"rxjs": "^7.8.1",
|
|
59
59
|
"type-graphql": "2.0.0-rc.1",
|
|
60
60
|
"zod": "^3.23.3",
|
|
61
|
-
"@copilotkit/shared": "1.5.1-next.
|
|
61
|
+
"@copilotkit/shared": "1.5.1-next.4"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"copilotkit",
|
|
@@ -1,263 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/chunk-44O2JGUY.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/chunk-B74M7FXG.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseMessageInput
|
|
3
|
-
} from "./chunk-D2WLFQS6.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__name
|
|
6
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/graphql/types/converted/index.ts
|
|
9
|
-
var Message = class extends BaseMessageInput {
|
|
10
|
-
type;
|
|
11
|
-
isTextMessage() {
|
|
12
|
-
return this.type === "TextMessage";
|
|
13
|
-
}
|
|
14
|
-
isActionExecutionMessage() {
|
|
15
|
-
return this.type === "ActionExecutionMessage";
|
|
16
|
-
}
|
|
17
|
-
isResultMessage() {
|
|
18
|
-
return this.type === "ResultMessage";
|
|
19
|
-
}
|
|
20
|
-
isAgentStateMessage() {
|
|
21
|
-
return this.type === "AgentStateMessage";
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
__name(Message, "Message");
|
|
25
|
-
var TextMessage = class extends Message {
|
|
26
|
-
type = "TextMessage";
|
|
27
|
-
content;
|
|
28
|
-
role;
|
|
29
|
-
};
|
|
30
|
-
__name(TextMessage, "TextMessage");
|
|
31
|
-
var ActionExecutionMessage = class extends Message {
|
|
32
|
-
type = "ActionExecutionMessage";
|
|
33
|
-
name;
|
|
34
|
-
arguments;
|
|
35
|
-
scope;
|
|
36
|
-
};
|
|
37
|
-
__name(ActionExecutionMessage, "ActionExecutionMessage");
|
|
38
|
-
var ResultMessage = class extends Message {
|
|
39
|
-
type = "ResultMessage";
|
|
40
|
-
actionExecutionId;
|
|
41
|
-
actionName;
|
|
42
|
-
result;
|
|
43
|
-
};
|
|
44
|
-
__name(ResultMessage, "ResultMessage");
|
|
45
|
-
var AgentStateMessage = class extends Message {
|
|
46
|
-
type = "AgentStateMessage";
|
|
47
|
-
threadId;
|
|
48
|
-
agentName;
|
|
49
|
-
nodeName;
|
|
50
|
-
runId;
|
|
51
|
-
active;
|
|
52
|
-
role;
|
|
53
|
-
state;
|
|
54
|
-
running;
|
|
55
|
-
};
|
|
56
|
-
__name(AgentStateMessage, "AgentStateMessage");
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
Message,
|
|
60
|
-
TextMessage,
|
|
61
|
-
ActionExecutionMessage,
|
|
62
|
-
ResultMessage,
|
|
63
|
-
AgentStateMessage
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=chunk-B74M7FXG.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphql/types/converted/index.ts"],"sourcesContent":["import {\n ActionExecutionMessageInput,\n ResultMessageInput,\n TextMessageInput,\n AgentStateMessageInput,\n} from \"../../inputs/message.input\";\nimport { BaseMessageInput } from \"../base\";\nimport { ActionExecutionScope, MessageRole } from \"../enums\";\n\nexport type MessageType =\n | \"TextMessage\"\n | \"ActionExecutionMessage\"\n | \"ResultMessage\"\n | \"AgentStateMessage\";\n\nexport class Message extends BaseMessageInput {\n type: MessageType;\n\n isTextMessage(): this is TextMessage {\n return this.type === \"TextMessage\";\n }\n\n isActionExecutionMessage(): this is ActionExecutionMessage {\n return this.type === \"ActionExecutionMessage\";\n }\n\n isResultMessage(): this is ResultMessage {\n return this.type === \"ResultMessage\";\n }\n\n isAgentStateMessage(): this is AgentStateMessage {\n return this.type === \"AgentStateMessage\";\n }\n}\n\nexport class TextMessage extends Message implements TextMessageInput {\n type: MessageType = \"TextMessage\";\n content: string;\n role: MessageRole;\n}\n\nexport class ActionExecutionMessage\n extends Message\n implements Omit<ActionExecutionMessageInput, \"arguments\">\n{\n type: MessageType = \"ActionExecutionMessage\";\n name: string;\n arguments: Record<string, any>;\n scope: ActionExecutionScope;\n}\n\nexport class ResultMessage extends Message implements ResultMessageInput {\n type: MessageType = \"ResultMessage\";\n actionExecutionId: string;\n actionName: string;\n result: string;\n}\n\nexport class AgentStateMessage extends Message implements Omit<AgentStateMessageInput, \"state\"> {\n type: MessageType = \"AgentStateMessage\";\n threadId: string;\n agentName: string;\n nodeName: string;\n runId: string;\n active: boolean;\n role: MessageRole;\n state: any;\n running: boolean;\n}\n"],"mappings":";;;;;;;;AAeO,IAAMA,UAAN,cAAsBC,iBAAAA;EAC3BC;EAEAC,gBAAqC;AACnC,WAAO,KAAKD,SAAS;EACvB;EAEAE,2BAA2D;AACzD,WAAO,KAAKF,SAAS;EACvB;EAEAG,kBAAyC;AACvC,WAAO,KAAKH,SAAS;EACvB;EAEAI,sBAAiD;AAC/C,WAAO,KAAKJ,SAAS;EACvB;AACF;AAlBaF;AAoBN,IAAMO,cAAN,cAA0BP,QAAAA;EAC/BE,OAAoB;EACpBM;EACAC;AACF;AAJaF;AAMN,IAAMG,yBAAN,cACGV,QAAAA;EAGRE,OAAoB;EACpBS;EACAC;EACAC;AACF;AARaH;AAUN,IAAMI,gBAAN,cAA4Bd,QAAAA;EACjCE,OAAoB;EACpBa;EACAC;EACAC;AACF;AALaH;AAON,IAAMI,oBAAN,cAAgClB,QAAAA;EACrCE,OAAoB;EACpBiB;EACAC;EACAC;EACAC;EACAC;EACAd;EACAe;EACAC;AACF;AAVaP;","names":["Message","BaseMessageInput","type","isTextMessage","isActionExecutionMessage","isResultMessage","isAgentStateMessage","TextMessage","content","role","ActionExecutionMessage","name","arguments","scope","ResultMessage","actionExecutionId","actionName","result","AgentStateMessage","threadId","agentName","nodeName","runId","active","state","running"]}
|
package/dist/chunk-D2WLFQS6.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
4
|
-
|
|
5
|
-
// src/graphql/types/base/index.ts
|
|
6
|
-
import { Field, InputType } from "type-graphql";
|
|
7
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
8
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
10
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
11
|
-
else
|
|
12
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
13
|
-
if (d = decorators[i])
|
|
14
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16
|
-
}
|
|
17
|
-
__name(_ts_decorate, "_ts_decorate");
|
|
18
|
-
function _ts_metadata(k, v) {
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
20
|
-
return Reflect.metadata(k, v);
|
|
21
|
-
}
|
|
22
|
-
__name(_ts_metadata, "_ts_metadata");
|
|
23
|
-
var BaseMessageInput = class {
|
|
24
|
-
id;
|
|
25
|
-
createdAt;
|
|
26
|
-
};
|
|
27
|
-
__name(BaseMessageInput, "BaseMessageInput");
|
|
28
|
-
_ts_decorate([
|
|
29
|
-
Field(() => String),
|
|
30
|
-
_ts_metadata("design:type", String)
|
|
31
|
-
], BaseMessageInput.prototype, "id", void 0);
|
|
32
|
-
_ts_decorate([
|
|
33
|
-
Field(() => Date),
|
|
34
|
-
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
35
|
-
], BaseMessageInput.prototype, "createdAt", void 0);
|
|
36
|
-
BaseMessageInput = _ts_decorate([
|
|
37
|
-
InputType()
|
|
38
|
-
], BaseMessageInput);
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
BaseMessageInput
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=chunk-D2WLFQS6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphql/types/base/index.ts"],"sourcesContent":["import { Field, InputType } from \"type-graphql\";\n\n@InputType()\nexport class BaseMessageInput {\n @Field(() => String)\n id: string;\n\n @Field(() => Date)\n createdAt: Date;\n}\n"],"mappings":";;;;;AAAA,SAASA,OAAOC,iBAAiB;;;;;;;;;;;;;;;;;AAG1B,IAAMC,mBAAN,MAAMA;EAEXC;EAGAC;AACF;AANaF;;EACVG,MAAM,MAAMC,MAAAA;;GADFJ,iBAAAA,WAAAA,MAAAA,MAAAA;;EAIVG,MAAM,MAAME,IAAAA;qCACF,SAAA,cAAA,SAAA,IAAA;GALAL,iBAAAA,WAAAA,aAAAA,MAAAA;AAAAA,mBAAAA,aAAAA;EADZM,UAAAA;GACYN,gBAAAA;","names":["Field","InputType","BaseMessageInput","id","createdAt","Field","String","Date","InputType"]}
|
package/dist/chunk-DFOKBSIS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-DFOKBSIS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/chunk-M4QD67S3.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getCommonConfig,
|
|
3
|
-
getRuntimeInstanceTelemetryInfo,
|
|
4
|
-
telemetry_client_default
|
|
5
|
-
} from "./chunk-ZSWCEADS.mjs";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
9
|
-
|
|
10
|
-
// src/lib/integrations/nextjs/app-router.ts
|
|
11
|
-
import { createYoga } from "graphql-yoga";
|
|
12
|
-
function copilotRuntimeNextJSAppRouterEndpoint(options) {
|
|
13
|
-
var _a;
|
|
14
|
-
const commonConfig = getCommonConfig(options);
|
|
15
|
-
telemetry_client_default.setGlobalProperties({
|
|
16
|
-
runtime: {
|
|
17
|
-
framework: "nextjs-app-router"
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
21
|
-
telemetry_client_default.setGlobalProperties({
|
|
22
|
-
_copilotkit: options.properties._copilotkit
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
|
|
26
|
-
const logger = commonConfig.logging;
|
|
27
|
-
logger.debug("Creating NextJS App Router endpoint");
|
|
28
|
-
const yoga = createYoga({
|
|
29
|
-
...commonConfig,
|
|
30
|
-
graphqlEndpoint: options.endpoint,
|
|
31
|
-
fetchAPI: {
|
|
32
|
-
Response: globalThis.Response
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
return {
|
|
36
|
-
handleRequest: yoga,
|
|
37
|
-
GET: yoga,
|
|
38
|
-
POST: yoga,
|
|
39
|
-
OPTIONS: yoga
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
__name(copilotRuntimeNextJSAppRouterEndpoint, "copilotRuntimeNextJSAppRouterEndpoint");
|
|
43
|
-
|
|
44
|
-
// src/lib/integrations/nextjs/pages-router.ts
|
|
45
|
-
import { createYoga as createYoga2 } from "graphql-yoga";
|
|
46
|
-
var config = {
|
|
47
|
-
api: {
|
|
48
|
-
bodyParser: false
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
function copilotRuntimeNextJSPagesRouterEndpoint(options) {
|
|
52
|
-
var _a;
|
|
53
|
-
const commonConfig = getCommonConfig(options);
|
|
54
|
-
telemetry_client_default.setGlobalProperties({
|
|
55
|
-
runtime: {
|
|
56
|
-
framework: "nextjs-pages-router"
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if ((_a = options.properties) == null ? void 0 : _a._copilotkit) {
|
|
60
|
-
telemetry_client_default.setGlobalProperties({
|
|
61
|
-
_copilotkit: options.properties._copilotkit
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
|
|
65
|
-
const logger = commonConfig.logging;
|
|
66
|
-
logger.debug("Creating NextJS Pages Router endpoint");
|
|
67
|
-
const yoga = createYoga2({
|
|
68
|
-
...commonConfig,
|
|
69
|
-
graphqlEndpoint: options.endpoint
|
|
70
|
-
});
|
|
71
|
-
return yoga;
|
|
72
|
-
}
|
|
73
|
-
__name(copilotRuntimeNextJSPagesRouterEndpoint, "copilotRuntimeNextJSPagesRouterEndpoint");
|
|
74
|
-
|
|
75
|
-
export {
|
|
76
|
-
copilotRuntimeNextJSAppRouterEndpoint,
|
|
77
|
-
config,
|
|
78
|
-
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=chunk-M4QD67S3.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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\";\nimport telemetry, { getRuntimeInstanceTelemetryInfo } from \"../../telemetry-client\";\n\nexport function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions) {\n const commonConfig = getCommonConfig(options);\n\n telemetry.setGlobalProperties({\n runtime: {\n framework: \"nextjs-app-router\",\n },\n });\n\n if (options.properties?._copilotkit) {\n telemetry.setGlobalProperties({\n _copilotkit: options.properties._copilotkit,\n });\n }\n\n telemetry.capture(\n \"oss.runtime.instance_created\",\n getRuntimeInstanceTelemetryInfo(options.runtime),\n );\n\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\";\nimport telemetry, { getRuntimeInstanceTelemetryInfo } from \"../../telemetry-client\";\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\n telemetry.setGlobalProperties({\n runtime: {\n framework: \"nextjs-pages-router\",\n },\n });\n\n if (options.properties?._copilotkit) {\n telemetry.setGlobalProperties({\n _copilotkit: options.properties._copilotkit,\n });\n }\n\n telemetry.capture(\n \"oss.runtime.instance_created\",\n getRuntimeInstanceTelemetryInfo(options.runtime),\n );\n\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;AAIpB,SAASC,sCAAsCC,SAA0C;AAJhG;AAKE,QAAMC,eAAeC,gBAAgBF,OAAAA;AAErCG,2BAAUC,oBAAoB;IAC5BC,SAAS;MACPC,WAAW;IACb;EACF,CAAA;AAEA,OAAIN,aAAQO,eAARP,mBAAoBQ,aAAa;AACnCL,6BAAUC,oBAAoB;MAC5BI,aAAaR,QAAQO,WAAWC;IAClC,CAAA;EACF;AAEAL,2BAAUM,QACR,gCACAC,gCAAgCV,QAAQK,OAAO,CAAA;AAGjD,QAAMM,SAASV,aAAaW;AAC5BD,SAAOE,MAAM,qCAAA;AAEb,QAAMC,OAAOC,WAAW;IACtB,GAAGd;IACHe,iBAAiBhB,QAAQiB;IACzBC,UAAU;MAAEC,UAAUC,WAAWD;IAAS;EAC5C,CAAA;AAEA,SAAO;IACLE,eAAeP;IACfQ,KAAKR;IACLS,MAAMT;IACNU,SAASV;EACX;AACF;AAnCgBf;;;ACJhB,SAA6B0B,cAAAA,mBAAkB;AAIxC,IAAMC,SAAS;EACpBC,KAAK;IACHC,YAAY;EACd;AACF;AASO,SAASC,wCACdC,SAA0C;AAlB5C;AAoBE,QAAMC,eAAeC,gBAAgBF,OAAAA;AAErCG,2BAAUC,oBAAoB;IAC5BC,SAAS;MACPC,WAAW;IACb;EACF,CAAA;AAEA,OAAIN,aAAQO,eAARP,mBAAoBQ,aAAa;AACnCL,6BAAUC,oBAAoB;MAC5BI,aAAaR,QAAQO,WAAWC;IAClC,CAAA;EACF;AAEAL,2BAAUM,QACR,gCACAC,gCAAgCV,QAAQK,OAAO,CAAA;AAGjD,QAAMM,SAASV,aAAaW;AAC5BD,SAAOE,MAAM,uCAAA;AAEb,QAAMC,OAAOC,YAAW;IACtB,GAAGd;IACHe,iBAAiBhB,QAAQiB;EAC3B,CAAA;AAEA,SAAOH;AACT;AA/BgBf;","names":["createYoga","copilotRuntimeNextJSAppRouterEndpoint","options","commonConfig","getCommonConfig","telemetry","setGlobalProperties","runtime","framework","properties","_copilotkit","capture","getRuntimeInstanceTelemetryInfo","logger","logging","debug","yoga","createYoga","graphqlEndpoint","endpoint","fetchAPI","Response","globalThis","handleRequest","GET","POST","OPTIONS","createYoga","config","api","bodyParser","copilotRuntimeNextJSPagesRouterEndpoint","options","commonConfig","getCommonConfig","telemetry","setGlobalProperties","runtime","framework","properties","_copilotkit","capture","getRuntimeInstanceTelemetryInfo","logger","logging","debug","yoga","createYoga","graphqlEndpoint","endpoint"]}
|