@copilotkit/runtime 1.5.12-next.5 → 1.5.12-next.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.
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-QDMAQO2C.mjs → chunk-BKIGYRXE.mjs} +2 -2
- package/dist/{chunk-MFDRA3BJ.mjs → chunk-ON4AESON.mjs} +125 -77
- package/dist/chunk-ON4AESON.mjs.map +1 -0
- package/dist/{chunk-NORCONUM.mjs → chunk-XM2VJFL6.mjs} +2 -2
- package/dist/{chunk-XRW7ZSWJ.mjs → chunk-YGXAWYRB.mjs} +2 -2
- package/dist/{copilot-runtime-1a224a0f.d.ts → copilot-runtime-da917bd5.d.ts} +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +136 -88
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +136 -88
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +2 -2
- package/dist/lib/integrations/index.js +12 -10
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +1 -1
- package/dist/lib/integrations/nest/index.js +12 -10
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.d.ts +1 -1
- package/dist/lib/integrations/node-express/index.js +12 -10
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.d.ts +1 -1
- package/dist/lib/integrations/node-http/index.js +12 -10
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +61 -27
- package/src/lib/runtime/remote-action-constructors.ts +42 -33
- package/src/lib/runtime/remote-actions.ts +12 -7
- package/dist/chunk-MFDRA3BJ.mjs.map +0 -1
- /package/dist/{chunk-QDMAQO2C.mjs.map → chunk-BKIGYRXE.mjs.map} +0 -0
- /package/dist/{chunk-NORCONUM.mjs.map → chunk-XM2VJFL6.mjs.map} +0 -0
- /package/dist/{chunk-XRW7ZSWJ.mjs.map → chunk-YGXAWYRB.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNestEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-YGXAWYRB.mjs";
|
|
4
|
+
import "../../../chunk-ON4AESON.mjs";
|
|
5
5
|
import "../../../chunk-TPTCSIAR.mjs";
|
|
6
6
|
import "../../../chunk-U3V2BCGI.mjs";
|
|
7
7
|
import "../../../chunk-HNUNXFTW.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-
|
|
2
|
+
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-da917bd5.js';
|
|
3
3
|
import '@copilotkit/shared';
|
|
4
4
|
import '../../../langserve-a16ef8f4.js';
|
|
5
5
|
import '../../../index-24315d90.js';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.5.12-next.
|
|
47
|
+
version: "1.5.12-next.6",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1235,13 +1235,14 @@ CopilotResponse = _ts_decorate13([
|
|
|
1235
1235
|
var import_graphql_yoga = require("graphql-yoga");
|
|
1236
1236
|
|
|
1237
1237
|
// src/service-adapters/events.ts
|
|
1238
|
-
var
|
|
1238
|
+
var import_shared4 = require("@copilotkit/shared");
|
|
1239
1239
|
var import_rxjs2 = require("rxjs");
|
|
1240
1240
|
|
|
1241
1241
|
// src/lib/telemetry-client.ts
|
|
1242
|
-
var
|
|
1242
|
+
var import_shared3 = require("@copilotkit/shared");
|
|
1243
1243
|
|
|
1244
1244
|
// src/lib/runtime/remote-actions.ts
|
|
1245
|
+
var import_shared = require("@copilotkit/shared");
|
|
1245
1246
|
var EndpointType;
|
|
1246
1247
|
(function(EndpointType2) {
|
|
1247
1248
|
EndpointType2["CopilotKit"] = "copilotKit";
|
|
@@ -1252,7 +1253,8 @@ var EndpointType;
|
|
|
1252
1253
|
var import_node_crypto = require("crypto");
|
|
1253
1254
|
|
|
1254
1255
|
// src/lib/runtime/copilot-runtime.ts
|
|
1255
|
-
var
|
|
1256
|
+
var import_shared2 = require("@copilotkit/shared");
|
|
1257
|
+
var import_langgraph_sdk = require("@langchain/langgraph-sdk");
|
|
1256
1258
|
|
|
1257
1259
|
// src/graphql/types/converted/index.ts
|
|
1258
1260
|
var Message = class extends BaseMessageInput {
|
|
@@ -1384,7 +1386,7 @@ __name(resolveEndpointType, "resolveEndpointType");
|
|
|
1384
1386
|
|
|
1385
1387
|
// src/lib/telemetry-client.ts
|
|
1386
1388
|
var packageJson = require_package();
|
|
1387
|
-
var telemetryClient = new
|
|
1389
|
+
var telemetryClient = new import_shared3.TelemetryClient({
|
|
1388
1390
|
packageName: packageJson.name,
|
|
1389
1391
|
packageVersion: packageJson.version
|
|
1390
1392
|
});
|
|
@@ -1481,7 +1483,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
|
|
|
1481
1483
|
__name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
1482
1484
|
|
|
1483
1485
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1484
|
-
var
|
|
1486
|
+
var import_shared5 = require("@copilotkit/shared");
|
|
1485
1487
|
|
|
1486
1488
|
// src/graphql/types/agents-response.type.ts
|
|
1487
1489
|
var import_type_graphql15 = require("type-graphql");
|
|
@@ -1664,7 +1666,7 @@ var CopilotResolver = class {
|
|
|
1664
1666
|
rejectOutputMessagesPromise = reject;
|
|
1665
1667
|
});
|
|
1666
1668
|
logger2.debug("Processing");
|
|
1667
|
-
const { eventSource, threadId = (0,
|
|
1669
|
+
const { eventSource, threadId = (0, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
|
|
1668
1670
|
serviceAdapter,
|
|
1669
1671
|
messages: data.messages,
|
|
1670
1672
|
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
@@ -1709,7 +1711,7 @@ var CopilotResolver = class {
|
|
|
1709
1711
|
});
|
|
1710
1712
|
outputMessages = [
|
|
1711
1713
|
(0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
1712
|
-
id: (0,
|
|
1714
|
+
id: (0, import_shared5.randomId)(),
|
|
1713
1715
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1714
1716
|
content: result.reason,
|
|
1715
1717
|
role: MessageRole.assistant
|
|
@@ -1900,7 +1902,7 @@ var CopilotResolver = class {
|
|
|
1900
1902
|
event
|
|
1901
1903
|
}, "Agent message event received");
|
|
1902
1904
|
pushMessage({
|
|
1903
|
-
id: (0,
|
|
1905
|
+
id: (0, import_shared5.randomId)(),
|
|
1904
1906
|
status: new SuccessMessageStatus(),
|
|
1905
1907
|
threadId: event.threadId,
|
|
1906
1908
|
agentName: event.agentName,
|
|
@@ -1913,7 +1915,7 @@ var CopilotResolver = class {
|
|
|
1913
1915
|
createdAt: /* @__PURE__ */ new Date()
|
|
1914
1916
|
});
|
|
1915
1917
|
outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
|
|
1916
|
-
id: (0,
|
|
1918
|
+
id: (0, import_shared5.randomId)(),
|
|
1917
1919
|
threadId: event.threadId,
|
|
1918
1920
|
agentName: event.agentName,
|
|
1919
1921
|
nodeName: event.nodeName,
|