@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
|
copilotRuntimeNodeExpressEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-XM2VJFL6.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",
|
|
@@ -1233,13 +1233,14 @@ CopilotResponse = _ts_decorate13([
|
|
|
1233
1233
|
var import_graphql_yoga = require("graphql-yoga");
|
|
1234
1234
|
|
|
1235
1235
|
// src/service-adapters/events.ts
|
|
1236
|
-
var
|
|
1236
|
+
var import_shared4 = require("@copilotkit/shared");
|
|
1237
1237
|
var import_rxjs2 = require("rxjs");
|
|
1238
1238
|
|
|
1239
1239
|
// src/lib/telemetry-client.ts
|
|
1240
|
-
var
|
|
1240
|
+
var import_shared3 = require("@copilotkit/shared");
|
|
1241
1241
|
|
|
1242
1242
|
// src/lib/runtime/remote-actions.ts
|
|
1243
|
+
var import_shared = require("@copilotkit/shared");
|
|
1243
1244
|
var EndpointType;
|
|
1244
1245
|
(function(EndpointType2) {
|
|
1245
1246
|
EndpointType2["CopilotKit"] = "copilotKit";
|
|
@@ -1250,7 +1251,8 @@ var EndpointType;
|
|
|
1250
1251
|
var import_node_crypto = require("crypto");
|
|
1251
1252
|
|
|
1252
1253
|
// src/lib/runtime/copilot-runtime.ts
|
|
1253
|
-
var
|
|
1254
|
+
var import_shared2 = require("@copilotkit/shared");
|
|
1255
|
+
var import_langgraph_sdk = require("@langchain/langgraph-sdk");
|
|
1254
1256
|
|
|
1255
1257
|
// src/graphql/types/converted/index.ts
|
|
1256
1258
|
var Message = class extends BaseMessageInput {
|
|
@@ -1382,7 +1384,7 @@ __name(resolveEndpointType, "resolveEndpointType");
|
|
|
1382
1384
|
|
|
1383
1385
|
// src/lib/telemetry-client.ts
|
|
1384
1386
|
var packageJson = require_package();
|
|
1385
|
-
var telemetryClient = new
|
|
1387
|
+
var telemetryClient = new import_shared3.TelemetryClient({
|
|
1386
1388
|
packageName: packageJson.name,
|
|
1387
1389
|
packageVersion: packageJson.version
|
|
1388
1390
|
});
|
|
@@ -1479,7 +1481,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
|
|
|
1479
1481
|
__name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
1480
1482
|
|
|
1481
1483
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1482
|
-
var
|
|
1484
|
+
var import_shared5 = require("@copilotkit/shared");
|
|
1483
1485
|
|
|
1484
1486
|
// src/graphql/types/agents-response.type.ts
|
|
1485
1487
|
var import_type_graphql15 = require("type-graphql");
|
|
@@ -1662,7 +1664,7 @@ var CopilotResolver = class {
|
|
|
1662
1664
|
rejectOutputMessagesPromise = reject;
|
|
1663
1665
|
});
|
|
1664
1666
|
logger2.debug("Processing");
|
|
1665
|
-
const { eventSource, threadId = (0,
|
|
1667
|
+
const { eventSource, threadId = (0, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
|
|
1666
1668
|
serviceAdapter,
|
|
1667
1669
|
messages: data.messages,
|
|
1668
1670
|
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
@@ -1707,7 +1709,7 @@ var CopilotResolver = class {
|
|
|
1707
1709
|
});
|
|
1708
1710
|
outputMessages = [
|
|
1709
1711
|
(0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
1710
|
-
id: (0,
|
|
1712
|
+
id: (0, import_shared5.randomId)(),
|
|
1711
1713
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1712
1714
|
content: result.reason,
|
|
1713
1715
|
role: MessageRole.assistant
|
|
@@ -1898,7 +1900,7 @@ var CopilotResolver = class {
|
|
|
1898
1900
|
event
|
|
1899
1901
|
}, "Agent message event received");
|
|
1900
1902
|
pushMessage({
|
|
1901
|
-
id: (0,
|
|
1903
|
+
id: (0, import_shared5.randomId)(),
|
|
1902
1904
|
status: new SuccessMessageStatus(),
|
|
1903
1905
|
threadId: event.threadId,
|
|
1904
1906
|
agentName: event.agentName,
|
|
@@ -1911,7 +1913,7 @@ var CopilotResolver = class {
|
|
|
1911
1913
|
createdAt: /* @__PURE__ */ new Date()
|
|
1912
1914
|
});
|
|
1913
1915
|
outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
|
|
1914
|
-
id: (0,
|
|
1916
|
+
id: (0, import_shared5.randomId)(),
|
|
1915
1917
|
threadId: event.threadId,
|
|
1916
1918
|
agentName: event.agentName,
|
|
1917
1919
|
nodeName: event.nodeName,
|