@copilotkit/runtime 1.3.16-mme-reset-chat.10 → 1.3.16-mme-reset-chat.11
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 +21 -43
- package/dist/{chunk-2S6JGN2A.mjs → chunk-NJH4ZBXT.mjs} +2 -2
- package/dist/{chunk-TBNMKEWV.mjs → chunk-T2MGJXW2.mjs} +2 -2
- package/dist/{chunk-3XICZ4K2.mjs → chunk-XR3QOJ47.mjs} +2 -2
- package/dist/{chunk-ODOSADGH.mjs → chunk-YILXJQFD.mjs} +78 -57
- package/dist/chunk-YILXJQFD.mjs.map +1 -0
- package/dist/{copilot-runtime-b9715bd4.d.ts → copilot-runtime-335a610d.d.ts} +8 -8
- package/dist/{groq-adapter-dbfba3eb.d.ts → groq-adapter-2f8fd767.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +80 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/{langserve-f00629d2.d.ts → langserve-cc06e76e.d.ts} +1 -0
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +80 -59
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +12 -11
- 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 +2 -2
- package/dist/lib/integrations/nest/index.js +12 -11
- 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 +2 -2
- package/dist/lib/integrations/node-express/index.js +12 -11
- 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 +2 -2
- package/dist/lib/integrations/node-http/index.js +12 -11
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/package.json +4 -4
- package/src/agents/langgraph/event-source.ts +2 -2
- package/src/lib/runtime/copilot-runtime.ts +40 -33
- package/src/lib/runtime/remote-action-constructors.ts +7 -7
- package/src/lib/runtime/remote-actions.ts +9 -9
- package/src/lib/runtime/{remote-lg-cloud-action.ts → remote-lg-action.ts} +34 -31
- package/src/lib/telemetry-client.ts +3 -3
- package/src/service-adapters/events.ts +13 -1
- package/dist/chunk-ODOSADGH.mjs.map +0 -1
- /package/dist/{chunk-2S6JGN2A.mjs.map → chunk-NJH4ZBXT.mjs.map} +0 -0
- /package/dist/{chunk-TBNMKEWV.mjs.map → chunk-T2MGJXW2.mjs.map} +0 -0
- /package/dist/{chunk-3XICZ4K2.mjs.map → chunk-XR3QOJ47.mjs.map} +0 -0
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
config,
|
|
3
3
|
copilotRuntimeNextJSAppRouterEndpoint,
|
|
4
4
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-XR3QOJ47.mjs";
|
|
6
6
|
import {
|
|
7
7
|
copilotRuntimeNestEndpoint
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-T2MGJXW2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
copilotRuntimeNodeExpressEndpoint
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-NJH4ZBXT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
buildSchema,
|
|
14
14
|
copilotRuntimeNodeHttpEndpoint,
|
|
15
15
|
createContext,
|
|
16
16
|
getCommonConfig
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-YILXJQFD.mjs";
|
|
18
18
|
import "../../chunk-WHJ3DAYL.mjs";
|
|
19
19
|
import "../../chunk-U3V2BCGI.mjs";
|
|
20
20
|
import "../../chunk-B74M7FXG.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-335a610d.js';
|
|
3
3
|
import '@copilotkit/shared';
|
|
4
|
-
import '../../../langserve-
|
|
4
|
+
import '../../../langserve-cc06e76e.js';
|
|
5
5
|
import '../../../index-83ee522f.js';
|
|
6
6
|
import '../../../graphql/types/base/index.js';
|
|
7
7
|
import 'rxjs';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.3.16-mme-reset-chat.
|
|
47
|
+
version: "1.3.16-mme-reset-chat.11",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -1180,6 +1180,7 @@ CopilotResponse = _ts_decorate13([
|
|
|
1180
1180
|
var import_graphql_yoga = require("graphql-yoga");
|
|
1181
1181
|
|
|
1182
1182
|
// src/service-adapters/events.ts
|
|
1183
|
+
var import_shared3 = require("@copilotkit/shared");
|
|
1183
1184
|
var import_rxjs2 = require("rxjs");
|
|
1184
1185
|
|
|
1185
1186
|
// src/lib/telemetry-client.ts
|
|
@@ -1189,7 +1190,7 @@ var import_shared2 = require("@copilotkit/shared");
|
|
|
1189
1190
|
var EndpointType;
|
|
1190
1191
|
(function(EndpointType2) {
|
|
1191
1192
|
EndpointType2["CopilotKit"] = "copilotKit";
|
|
1192
|
-
EndpointType2["
|
|
1193
|
+
EndpointType2["LangGraphPlatform"] = "langgraph-platform";
|
|
1193
1194
|
})(EndpointType || (EndpointType = {}));
|
|
1194
1195
|
|
|
1195
1196
|
// src/lib/telemetry-client.ts
|
|
@@ -1253,7 +1254,7 @@ var import_rxjs = require("rxjs");
|
|
|
1253
1254
|
function resolveEndpointType(endpoint) {
|
|
1254
1255
|
if (!endpoint.type) {
|
|
1255
1256
|
if ("langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
|
|
1256
|
-
return EndpointType.
|
|
1257
|
+
return EndpointType.LangGraphPlatform;
|
|
1257
1258
|
} else {
|
|
1258
1259
|
return EndpointType.CopilotKit;
|
|
1259
1260
|
}
|
|
@@ -1283,7 +1284,7 @@ function getRuntimeInstanceTelemetryInfo(runtime) {
|
|
|
1283
1284
|
]
|
|
1284
1285
|
};
|
|
1285
1286
|
}
|
|
1286
|
-
if (endpointType === EndpointType.
|
|
1287
|
+
if (endpointType === EndpointType.LangGraphPlatform) {
|
|
1287
1288
|
const ep = endpoint;
|
|
1288
1289
|
info = {
|
|
1289
1290
|
...info,
|
|
@@ -1360,7 +1361,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
|
|
|
1360
1361
|
__name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
1361
1362
|
|
|
1362
1363
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1363
|
-
var
|
|
1364
|
+
var import_shared4 = require("@copilotkit/shared");
|
|
1364
1365
|
function _ts_decorate14(decorators, target, key, desc) {
|
|
1365
1366
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1366
1367
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -1477,7 +1478,7 @@ var CopilotResolver = class {
|
|
|
1477
1478
|
rejectOutputMessagesPromise = reject;
|
|
1478
1479
|
});
|
|
1479
1480
|
logger2.debug("Processing");
|
|
1480
|
-
const { eventSource, threadId = (0,
|
|
1481
|
+
const { eventSource, threadId = (0, import_shared4.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
|
|
1481
1482
|
serviceAdapter,
|
|
1482
1483
|
messages: data.messages,
|
|
1483
1484
|
actions: data.frontend.actions,
|
|
@@ -1522,7 +1523,7 @@ var CopilotResolver = class {
|
|
|
1522
1523
|
});
|
|
1523
1524
|
outputMessages = [
|
|
1524
1525
|
(0, import_class_transformer.plainToInstance)(TextMessage, {
|
|
1525
|
-
id: (0,
|
|
1526
|
+
id: (0, import_shared4.randomId)(),
|
|
1526
1527
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1527
1528
|
content: result.reason,
|
|
1528
1529
|
role: MessageRole.assistant
|
|
@@ -1685,7 +1686,7 @@ var CopilotResolver = class {
|
|
|
1685
1686
|
result: event.result
|
|
1686
1687
|
}, "Action execution result event received");
|
|
1687
1688
|
pushMessage({
|
|
1688
|
-
id: (0,
|
|
1689
|
+
id: (0, import_shared4.randomId)(),
|
|
1689
1690
|
status: new SuccessMessageStatus(),
|
|
1690
1691
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1691
1692
|
actionExecutionId: event.actionExecutionId,
|
|
@@ -1693,7 +1694,7 @@ var CopilotResolver = class {
|
|
|
1693
1694
|
result: event.result
|
|
1694
1695
|
});
|
|
1695
1696
|
outputMessages.push((0, import_class_transformer.plainToInstance)(ResultMessage, {
|
|
1696
|
-
id: (0,
|
|
1697
|
+
id: (0, import_shared4.randomId)(),
|
|
1697
1698
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1698
1699
|
actionExecutionId: event.actionExecutionId,
|
|
1699
1700
|
actionName: event.actionName,
|
|
@@ -1705,7 +1706,7 @@ var CopilotResolver = class {
|
|
|
1705
1706
|
event
|
|
1706
1707
|
}, "Agent message event received");
|
|
1707
1708
|
pushMessage({
|
|
1708
|
-
id: (0,
|
|
1709
|
+
id: (0, import_shared4.randomId)(),
|
|
1709
1710
|
status: new SuccessMessageStatus(),
|
|
1710
1711
|
threadId: event.threadId,
|
|
1711
1712
|
agentName: event.agentName,
|
|
@@ -1718,7 +1719,7 @@ var CopilotResolver = class {
|
|
|
1718
1719
|
createdAt: /* @__PURE__ */ new Date()
|
|
1719
1720
|
});
|
|
1720
1721
|
outputMessages.push((0, import_class_transformer.plainToInstance)(AgentStateMessage, {
|
|
1721
|
-
id: (0,
|
|
1722
|
+
id: (0, import_shared4.randomId)(),
|
|
1722
1723
|
threadId: event.threadId,
|
|
1723
1724
|
agentName: event.agentName,
|
|
1724
1725
|
nodeName: event.nodeName,
|