@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
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-RU5CS42E.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-BXJZ5GEO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-CWPYW7XE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addCustomHeaderPlugin,
|
|
14
14
|
buildSchema,
|
|
15
15
|
copilotRuntimeNodeHttpEndpoint,
|
|
16
16
|
createContext,
|
|
17
17
|
getCommonConfig
|
|
18
|
-
} from "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
18
|
+
} from "../../chunk-JSV26III.mjs";
|
|
19
|
+
import "../../chunk-EY6RUVB7.mjs";
|
|
20
20
|
import "../../chunk-5BIEM2UU.mjs";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-SHBDMA63.mjs";
|
|
22
22
|
import "../../chunk-2OZAGFV3.mjs";
|
|
23
23
|
import "../../chunk-FHD4JECV.mjs";
|
|
24
24
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-
|
|
2
|
+
import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../shared-350db43f.js';
|
|
3
3
|
import 'graphql';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import '@copilotkit/shared';
|
|
6
|
-
import '../../../langserve-
|
|
7
|
-
import '../../../index-
|
|
6
|
+
import '../../../langserve-c9a20fe9.js';
|
|
7
|
+
import '../../../index-d4614f9b.js';
|
|
8
8
|
import '../../../graphql/types/base/index.js';
|
|
9
9
|
import 'rxjs';
|
|
10
10
|
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",
|
|
@@ -243,6 +243,7 @@ var MessageInput = class extends BaseMessageInput {
|
|
|
243
243
|
actionExecutionMessage;
|
|
244
244
|
resultMessage;
|
|
245
245
|
agentStateMessage;
|
|
246
|
+
imageMessage;
|
|
246
247
|
};
|
|
247
248
|
__name(MessageInput, "MessageInput");
|
|
248
249
|
_ts_decorate2([
|
|
@@ -269,6 +270,12 @@ _ts_decorate2([
|
|
|
269
270
|
}),
|
|
270
271
|
_ts_metadata2("design:type", typeof AgentStateMessageInput === "undefined" ? Object : AgentStateMessageInput)
|
|
271
272
|
], MessageInput.prototype, "agentStateMessage", void 0);
|
|
273
|
+
_ts_decorate2([
|
|
274
|
+
(0, import_type_graphql3.Field)(() => ImageMessageInput, {
|
|
275
|
+
nullable: true
|
|
276
|
+
}),
|
|
277
|
+
_ts_metadata2("design:type", typeof ImageMessageInput === "undefined" ? Object : ImageMessageInput)
|
|
278
|
+
], MessageInput.prototype, "imageMessage", void 0);
|
|
272
279
|
MessageInput = _ts_decorate2([
|
|
273
280
|
(0, import_type_graphql3.InputType)()
|
|
274
281
|
], MessageInput);
|
|
@@ -400,6 +407,34 @@ _ts_decorate2([
|
|
|
400
407
|
AgentStateMessageInput = _ts_decorate2([
|
|
401
408
|
(0, import_type_graphql3.InputType)()
|
|
402
409
|
], AgentStateMessageInput);
|
|
410
|
+
var ImageMessageInput = class {
|
|
411
|
+
format;
|
|
412
|
+
bytes;
|
|
413
|
+
parentMessageId;
|
|
414
|
+
role;
|
|
415
|
+
};
|
|
416
|
+
__name(ImageMessageInput, "ImageMessageInput");
|
|
417
|
+
_ts_decorate2([
|
|
418
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
419
|
+
_ts_metadata2("design:type", String)
|
|
420
|
+
], ImageMessageInput.prototype, "format", void 0);
|
|
421
|
+
_ts_decorate2([
|
|
422
|
+
(0, import_type_graphql3.Field)(() => String),
|
|
423
|
+
_ts_metadata2("design:type", String)
|
|
424
|
+
], ImageMessageInput.prototype, "bytes", void 0);
|
|
425
|
+
_ts_decorate2([
|
|
426
|
+
(0, import_type_graphql3.Field)(() => String, {
|
|
427
|
+
nullable: true
|
|
428
|
+
}),
|
|
429
|
+
_ts_metadata2("design:type", String)
|
|
430
|
+
], ImageMessageInput.prototype, "parentMessageId", void 0);
|
|
431
|
+
_ts_decorate2([
|
|
432
|
+
(0, import_type_graphql3.Field)(() => MessageRole),
|
|
433
|
+
_ts_metadata2("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
434
|
+
], ImageMessageInput.prototype, "role", void 0);
|
|
435
|
+
ImageMessageInput = _ts_decorate2([
|
|
436
|
+
(0, import_type_graphql3.InputType)()
|
|
437
|
+
], ImageMessageInput);
|
|
403
438
|
|
|
404
439
|
// src/graphql/inputs/frontend.input.ts
|
|
405
440
|
var import_type_graphql5 = require("type-graphql");
|
|
@@ -1079,6 +1114,8 @@ BaseMessageOutput = _ts_decorate14([
|
|
|
1079
1114
|
return ResultMessageOutput;
|
|
1080
1115
|
} else if (value.hasOwnProperty("state")) {
|
|
1081
1116
|
return AgentStateMessageOutput;
|
|
1117
|
+
} else if (value.hasOwnProperty("format") && value.hasOwnProperty("bytes")) {
|
|
1118
|
+
return ImageMessageOutput;
|
|
1082
1119
|
}
|
|
1083
1120
|
return void 0;
|
|
1084
1121
|
}
|
|
@@ -1217,6 +1254,36 @@ AgentStateMessageOutput = _ts_decorate14([
|
|
|
1217
1254
|
implements: BaseMessageOutput
|
|
1218
1255
|
})
|
|
1219
1256
|
], AgentStateMessageOutput);
|
|
1257
|
+
var ImageMessageOutput = class {
|
|
1258
|
+
format;
|
|
1259
|
+
bytes;
|
|
1260
|
+
role;
|
|
1261
|
+
parentMessageId;
|
|
1262
|
+
};
|
|
1263
|
+
__name(ImageMessageOutput, "ImageMessageOutput");
|
|
1264
|
+
_ts_decorate14([
|
|
1265
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1266
|
+
_ts_metadata14("design:type", String)
|
|
1267
|
+
], ImageMessageOutput.prototype, "format", void 0);
|
|
1268
|
+
_ts_decorate14([
|
|
1269
|
+
(0, import_type_graphql15.Field)(() => String),
|
|
1270
|
+
_ts_metadata14("design:type", String)
|
|
1271
|
+
], ImageMessageOutput.prototype, "bytes", void 0);
|
|
1272
|
+
_ts_decorate14([
|
|
1273
|
+
(0, import_type_graphql15.Field)(() => MessageRole),
|
|
1274
|
+
_ts_metadata14("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
1275
|
+
], ImageMessageOutput.prototype, "role", void 0);
|
|
1276
|
+
_ts_decorate14([
|
|
1277
|
+
(0, import_type_graphql15.Field)(() => String, {
|
|
1278
|
+
nullable: true
|
|
1279
|
+
}),
|
|
1280
|
+
_ts_metadata14("design:type", String)
|
|
1281
|
+
], ImageMessageOutput.prototype, "parentMessageId", void 0);
|
|
1282
|
+
ImageMessageOutput = _ts_decorate14([
|
|
1283
|
+
(0, import_type_graphql15.ObjectType)({
|
|
1284
|
+
implements: BaseMessageOutput
|
|
1285
|
+
})
|
|
1286
|
+
], ImageMessageOutput);
|
|
1220
1287
|
var CopilotResponse = class {
|
|
1221
1288
|
threadId;
|
|
1222
1289
|
status;
|
|
@@ -1598,6 +1665,9 @@ var Message = class extends BaseMessageInput {
|
|
|
1598
1665
|
isAgentStateMessage() {
|
|
1599
1666
|
return this.type === "AgentStateMessage";
|
|
1600
1667
|
}
|
|
1668
|
+
isImageMessage() {
|
|
1669
|
+
return this.type === "ImageMessage";
|
|
1670
|
+
}
|
|
1601
1671
|
};
|
|
1602
1672
|
__name(Message, "Message");
|
|
1603
1673
|
var TextMessage = class extends Message {
|