@copilotkit/runtime 1.8.6-next.0 → 1.8.7-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.
- package/CHANGELOG.md +16 -0
- package/__snapshots__/schema/schema.graphql +18 -0
- package/dist/{chunk-NKMMHPPX.mjs → chunk-BXJZ5GEO.mjs} +2 -2
- package/dist/{chunk-3KFMOJC6.mjs → chunk-CWPYW7XE.mjs} +2 -2
- package/dist/{chunk-DNI7KA7Y.mjs → chunk-EY6RUVB7.mjs} +44 -1
- package/dist/chunk-EY6RUVB7.mjs.map +1 -0
- package/dist/{chunk-H2VC34X7.mjs → chunk-JSV26III.mjs} +97 -4
- package/dist/chunk-JSV26III.mjs.map +1 -0
- package/dist/{chunk-D4R6RNSD.mjs → chunk-RU5CS42E.mjs} +2 -2
- package/dist/{chunk-RTFJTJMA.mjs → chunk-SHBDMA63.mjs} +14 -2
- package/dist/chunk-SHBDMA63.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +13 -0
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +3 -1
- package/dist/{groq-adapter-fb9aa3ab.d.ts → groq-adapter-53d3fa48.d.ts} +1 -1
- package/dist/{index-5bec5424.d.ts → index-d4614f9b.d.ts} +17 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +147 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{langserve-6f7af8d3.d.ts → langserve-c9a20fe9.d.ts} +1 -1
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +116 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +71 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +6 -6
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +71 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +4 -4
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +71 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +4 -4
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +71 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +3 -3
- package/dist/service-adapters/index.d.ts +4 -4
- package/dist/service-adapters/index.js +43 -0
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -1
- package/dist/{shared-93687488.d.ts → shared-350db43f.d.ts} +2 -2
- package/package.json +2 -2
- package/src/graphql/inputs/message.input.ts +18 -0
- package/src/graphql/types/converted/index.ts +15 -1
- package/src/graphql/types/copilot-response.type.ts +17 -0
- package/src/lib/runtime/remote-lg-action.ts +19 -0
- package/src/service-adapters/anthropic/utils.ts +32 -0
- package/src/service-adapters/conversion.ts +10 -0
- package/src/service-adapters/openai/utils.ts +12 -0
- package/dist/chunk-DNI7KA7Y.mjs.map +0 -1
- package/dist/chunk-H2VC34X7.mjs.map +0 -1
- package/dist/chunk-RTFJTJMA.mjs.map +0 -1
- /package/dist/{chunk-NKMMHPPX.mjs.map → chunk-BXJZ5GEO.mjs.map} +0 -0
- /package/dist/{chunk-3KFMOJC6.mjs.map → chunk-CWPYW7XE.mjs.map} +0 -0
- /package/dist/{chunk-D4R6RNSD.mjs.map → chunk-RU5CS42E.mjs.map} +0 -0
package/dist/lib/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
config,
|
|
4
4
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
5
5
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-RU5CS42E.mjs";
|
|
7
7
|
import {
|
|
8
8
|
copilotRuntimeNestEndpoint
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-BXJZ5GEO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
copilotRuntimeNodeExpressEndpoint
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-CWPYW7XE.mjs";
|
|
13
13
|
import {
|
|
14
14
|
CopilotRuntime,
|
|
15
15
|
addCustomHeaderPlugin,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getCommonConfig,
|
|
25
25
|
langGraphPlatformEndpoint,
|
|
26
26
|
resolveEndpointType
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-JSV26III.mjs";
|
|
28
28
|
import {
|
|
29
29
|
GoogleGenerativeAIAdapter,
|
|
30
30
|
GroqAdapter,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
OpenAIAdapter,
|
|
33
33
|
OpenAIAssistantAdapter,
|
|
34
34
|
UnifyAdapter
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-EY6RUVB7.mjs";
|
|
36
36
|
import "../chunk-5BIEM2UU.mjs";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-SHBDMA63.mjs";
|
|
38
38
|
import "../chunk-2OZAGFV3.mjs";
|
|
39
39
|
import "../chunk-FHD4JECV.mjs";
|
|
40
40
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-
|
|
2
|
-
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-
|
|
1
|
+
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-350db43f.js';
|
|
2
|
+
export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-350db43f.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';
|
|
@@ -8,8 +8,8 @@ export { copilotRuntimeNestEndpoint } from './nest/index.js';
|
|
|
8
8
|
import 'graphql';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import '@copilotkit/shared';
|
|
11
|
-
import '../../langserve-
|
|
12
|
-
import '../../index-
|
|
11
|
+
import '../../langserve-c9a20fe9.js';
|
|
12
|
+
import '../../index-d4614f9b.js';
|
|
13
13
|
import '../../graphql/types/base/index.js';
|
|
14
14
|
import 'rxjs';
|
|
15
15
|
import '../cloud/index.js';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.8.
|
|
47
|
+
version: "1.8.7-next.0",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -249,6 +249,7 @@ var MessageInput = class extends BaseMessageInput {
|
|
|
249
249
|
actionExecutionMessage;
|
|
250
250
|
resultMessage;
|
|
251
251
|
agentStateMessage;
|
|
252
|
+
imageMessage;
|
|
252
253
|
};
|
|
253
254
|
__name(MessageInput, "MessageInput");
|
|
254
255
|
_ts_decorate2([
|
|
@@ -275,6 +276,12 @@ _ts_decorate2([
|
|
|
275
276
|
}),
|
|
276
277
|
_ts_metadata2("design:type", typeof AgentStateMessageInput === "undefined" ? Object : AgentStateMessageInput)
|
|
277
278
|
], MessageInput.prototype, "agentStateMessage", void 0);
|
|
279
|
+
_ts_decorate2([
|
|
280
|
+
(0, import_type_graphql3.Field)(() => ImageMessageInput, {
|
|
281
|
+
nullable: true
|
|
282
|
+
}),
|
|
283
|
+
_ts_metadata2("design:type", typeof ImageMessageInput === "undefined" ? Object : ImageMessageInput)
|
|
284
|
+
], MessageInput.prototype, "imageMessage", void 0);
|
|
278
285
|
MessageInput = _ts_decorate2([
|
|
279
286
|
(0, import_type_graphql3.InputType)()
|
|
280
287
|
], MessageInput);
|
|
@@ -406,6 +413,34 @@ _ts_decorate2([
|
|
|
406
413
|
AgentStateMessageInput = _ts_decorate2([
|
|
407
414
|
(0, import_type_graphql3.InputType)()
|
|
408
415
|
], AgentStateMessageInput);
|
|
416
|
+
var ImageMessageInput = class {
|
|
417
|
+
format;
|
|
418
|
+
bytes;
|
|
419
|
+
parentMessageId;
|
|
420
|
+
role;
|
|
421
|
+
};
|
|
422
|
+
__name(ImageMessageInput, "ImageMessageInput");
|
|
423
|
+
_ts_decorate2([
|
|
424
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
425
|
+
_ts_metadata2("design:type", String)
|
|
426
|
+
], ImageMessageInput.prototype, "format", void 0);
|
|
427
|
+
_ts_decorate2([
|
|
428
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
429
|
+
_ts_metadata2("design:type", String)
|
|
430
|
+
], ImageMessageInput.prototype, "bytes", void 0);
|
|
431
|
+
_ts_decorate2([
|
|
432
|
+
(0, import_type_graphql3.Field)(() => String, {
|
|
433
|
+
nullable: true
|
|
434
|
+
}),
|
|
435
|
+
_ts_metadata2("design:type", String)
|
|
436
|
+
], ImageMessageInput.prototype, "parentMessageId", void 0);
|
|
437
|
+
_ts_decorate2([
|
|
438
|
+
(0, import_type_graphql3.Field)(() => MessageRole),
|
|
439
|
+
_ts_metadata2("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
440
|
+
], ImageMessageInput.prototype, "role", void 0);
|
|
441
|
+
ImageMessageInput = _ts_decorate2([
|
|
442
|
+
(0, import_type_graphql3.InputType)()
|
|
443
|
+
], ImageMessageInput);
|
|
409
444
|
|
|
410
445
|
// src/graphql/inputs/frontend.input.ts
|
|
411
446
|
var import_type_graphql5 = require("type-graphql");
|
|
@@ -1085,6 +1120,8 @@ BaseMessageOutput = _ts_decorate14([
|
|
|
1085
1120
|
return ResultMessageOutput;
|
|
1086
1121
|
} else if (value.hasOwnProperty("state")) {
|
|
1087
1122
|
return AgentStateMessageOutput;
|
|
1123
|
+
} else if (value.hasOwnProperty("format") && value.hasOwnProperty("bytes")) {
|
|
1124
|
+
return ImageMessageOutput;
|
|
1088
1125
|
}
|
|
1089
1126
|
return void 0;
|
|
1090
1127
|
}
|
|
@@ -1223,6 +1260,36 @@ AgentStateMessageOutput = _ts_decorate14([
|
|
|
1223
1260
|
implements: BaseMessageOutput
|
|
1224
1261
|
})
|
|
1225
1262
|
], AgentStateMessageOutput);
|
|
1263
|
+
var ImageMessageOutput = class {
|
|
1264
|
+
format;
|
|
1265
|
+
bytes;
|
|
1266
|
+
role;
|
|
1267
|
+
parentMessageId;
|
|
1268
|
+
};
|
|
1269
|
+
__name(ImageMessageOutput, "ImageMessageOutput");
|
|
1270
|
+
_ts_decorate14([
|
|
1271
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1272
|
+
_ts_metadata14("design:type", String)
|
|
1273
|
+
], ImageMessageOutput.prototype, "format", void 0);
|
|
1274
|
+
_ts_decorate14([
|
|
1275
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1276
|
+
_ts_metadata14("design:type", String)
|
|
1277
|
+
], ImageMessageOutput.prototype, "bytes", void 0);
|
|
1278
|
+
_ts_decorate14([
|
|
1279
|
+
(0, import_type_graphql15.Field)(() => MessageRole),
|
|
1280
|
+
_ts_metadata14("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
1281
|
+
], ImageMessageOutput.prototype, "role", void 0);
|
|
1282
|
+
_ts_decorate14([
|
|
1283
|
+
(0, import_type_graphql15.Field)(() => String, {
|
|
1284
|
+
nullable: true
|
|
1285
|
+
}),
|
|
1286
|
+
_ts_metadata14("design:type", String)
|
|
1287
|
+
], ImageMessageOutput.prototype, "parentMessageId", void 0);
|
|
1288
|
+
ImageMessageOutput = _ts_decorate14([
|
|
1289
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1290
|
+
implements: BaseMessageOutput
|
|
1291
|
+
})
|
|
1292
|
+
], ImageMessageOutput);
|
|
1226
1293
|
var CopilotResponse = class {
|
|
1227
1294
|
threadId;
|
|
1228
1295
|
status;
|
|
@@ -1604,6 +1671,9 @@ var Message = class extends BaseMessageInput {
|
|
|
1604
1671
|
isAgentStateMessage() {
|
|
1605
1672
|
return this.type === "AgentStateMessage";
|
|
1606
1673
|
}
|
|
1674
|
+
isImageMessage() {
|
|
1675
|
+
return this.type === "ImageMessage";
|
|
1676
|
+
}
|
|
1607
1677
|
};
|
|
1608
1678
|
__name(Message, "Message");
|
|
1609
1679
|
var TextMessage = class extends Message {
|