@copilotkit/runtime 1.8.5-next.4 → 1.8.5-next.5
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 +41 -0
- package/dist/{chunk-WQZQTGHT.mjs → chunk-AIQJ5N22.mjs} +2 -2
- package/dist/{chunk-GGXHVDCG.mjs → chunk-FP7EJSMU.mjs} +2 -2
- package/dist/{chunk-574FKWP5.mjs → chunk-GQEDXH53.mjs} +2 -2
- package/dist/{chunk-PKO7BUPS.mjs → chunk-Q4KJZACA.mjs} +124 -4
- package/dist/chunk-Q4KJZACA.mjs.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +166 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +159 -39
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -2
- package/dist/lib/integrations/index.js +15 -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 +2 -1
- package/dist/lib/integrations/nest/index.js +15 -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 +2 -1
- package/dist/lib/integrations/node-express/index.js +15 -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 +2 -1
- package/dist/lib/integrations/node-http/index.js +15 -10
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/{shared-86ec42e7.d.ts → shared-93687488.d.ts} +3 -0
- package/package.json +6 -2
- package/src/lib/runtime/agentwire-action.ts +123 -0
- package/src/lib/runtime/copilot-runtime.ts +9 -1
- package/src/lib/runtime/remote-action-constructors.ts +2 -7
- package/src/lib/runtime/remote-actions.ts +25 -1
- package/dist/chunk-PKO7BUPS.mjs.map +0 -1
- /package/dist/{chunk-WQZQTGHT.mjs.map → chunk-AIQJ5N22.mjs.map} +0 -0
- /package/dist/{chunk-GGXHVDCG.mjs.map → chunk-FP7EJSMU.mjs.map} +0 -0
- /package/dist/{chunk-574FKWP5.mjs.map → chunk-GQEDXH53.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeExpressEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-GQEDXH53.mjs";
|
|
4
|
+
import "../../../chunk-Q4KJZACA.mjs";
|
|
5
5
|
import "../../../chunk-DNI7KA7Y.mjs";
|
|
6
6
|
import "../../../chunk-5BIEM2UU.mjs";
|
|
7
7
|
import "../../../chunk-RTFJTJMA.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-93687488.js';
|
|
3
3
|
import 'graphql';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import '@copilotkit/shared';
|
|
@@ -8,6 +8,7 @@ import '../../../index-5bec5424.js';
|
|
|
8
8
|
import '../../../graphql/types/base/index.js';
|
|
9
9
|
import 'rxjs';
|
|
10
10
|
import '../../cloud/index.js';
|
|
11
|
+
import '@agentwire/client';
|
|
11
12
|
|
|
12
13
|
declare function copilotRuntimeNodeHttpEndpoint(options: CreateCopilotRuntimeServerOptions): graphql_yoga.YogaServerInstance<{}, Partial<GraphQLContext>>;
|
|
13
14
|
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.8.5-next.
|
|
47
|
+
version: "1.8.5-next.5",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -81,6 +81,10 @@ var require_package = __commonJS({
|
|
|
81
81
|
"zod-to-json-schema": "^3.23.5"
|
|
82
82
|
},
|
|
83
83
|
dependencies: {
|
|
84
|
+
"@agentwire/client": "0.0.26",
|
|
85
|
+
"@agentwire/proto": "0.0.26",
|
|
86
|
+
"@agentwire/core": "0.0.26",
|
|
87
|
+
"@agentwire/encoder": "0.0.26",
|
|
84
88
|
"@anthropic-ai/sdk": "^0.27.3",
|
|
85
89
|
"@copilotkit/shared": "workspace:*",
|
|
86
90
|
"@graphql-yoga/plugin-defer-stream": "^3.3.1",
|
|
@@ -1556,14 +1560,15 @@ GenerateCopilotResponseInput = _ts_decorate17([
|
|
|
1556
1560
|
var import_graphql_yoga = require("graphql-yoga");
|
|
1557
1561
|
|
|
1558
1562
|
// src/service-adapters/events.ts
|
|
1559
|
-
var
|
|
1563
|
+
var import_shared5 = require("@copilotkit/shared");
|
|
1560
1564
|
var import_rxjs2 = require("rxjs");
|
|
1561
1565
|
|
|
1562
1566
|
// src/lib/telemetry-client.ts
|
|
1563
|
-
var
|
|
1567
|
+
var import_shared4 = require("@copilotkit/shared");
|
|
1564
1568
|
|
|
1565
1569
|
// src/lib/runtime/remote-actions.ts
|
|
1566
1570
|
var import_shared = require("@copilotkit/shared");
|
|
1571
|
+
var import_shared2 = require("@copilotkit/shared");
|
|
1567
1572
|
var EndpointType;
|
|
1568
1573
|
(function(EndpointType2) {
|
|
1569
1574
|
EndpointType2["CopilotKit"] = "copilotKit";
|
|
@@ -1574,7 +1579,7 @@ var EndpointType;
|
|
|
1574
1579
|
var import_node_crypto = require("crypto");
|
|
1575
1580
|
|
|
1576
1581
|
// src/lib/runtime/copilot-runtime.ts
|
|
1577
|
-
var
|
|
1582
|
+
var import_shared3 = require("@copilotkit/shared");
|
|
1578
1583
|
|
|
1579
1584
|
// src/graphql/types/converted/index.ts
|
|
1580
1585
|
var Message = class extends BaseMessageInput {
|
|
@@ -1707,7 +1712,7 @@ __name(resolveEndpointType, "resolveEndpointType");
|
|
|
1707
1712
|
|
|
1708
1713
|
// src/lib/telemetry-client.ts
|
|
1709
1714
|
var packageJson = require_package();
|
|
1710
|
-
var telemetryClient = new
|
|
1715
|
+
var telemetryClient = new import_shared4.TelemetryClient({
|
|
1711
1716
|
packageName: packageJson.name,
|
|
1712
1717
|
packageVersion: packageJson.version
|
|
1713
1718
|
});
|
|
@@ -1811,7 +1816,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
|
|
|
1811
1816
|
__name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
1812
1817
|
|
|
1813
1818
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1814
|
-
var
|
|
1819
|
+
var import_shared6 = require("@copilotkit/shared");
|
|
1815
1820
|
|
|
1816
1821
|
// src/graphql/types/agents-response.type.ts
|
|
1817
1822
|
var import_type_graphql19 = require("type-graphql");
|
|
@@ -1997,7 +2002,7 @@ var CopilotResolver = class {
|
|
|
1997
2002
|
ctx.properties["copilotCloudPublicApiKey"] = copilotCloudPublicApiKey;
|
|
1998
2003
|
}
|
|
1999
2004
|
logger2.debug("Processing");
|
|
2000
|
-
const { eventSource, threadId = (0,
|
|
2005
|
+
const { eventSource, threadId = (0, import_shared6.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
|
|
2001
2006
|
serviceAdapter,
|
|
2002
2007
|
messages: data.messages,
|
|
2003
2008
|
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
@@ -2130,7 +2135,7 @@ var CopilotResolver = class {
|
|
|
2130
2135
|
});
|
|
2131
2136
|
outputMessages = [
|
|
2132
2137
|
(0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
2133
|
-
id: (0,
|
|
2138
|
+
id: (0, import_shared6.randomId)(),
|
|
2134
2139
|
createdAt: /* @__PURE__ */ new Date(),
|
|
2135
2140
|
content: result.reason,
|
|
2136
2141
|
role: MessageRole.assistant
|
|
@@ -2308,7 +2313,7 @@ var CopilotResolver = class {
|
|
|
2308
2313
|
event
|
|
2309
2314
|
}, "Agent message event received");
|
|
2310
2315
|
pushMessage({
|
|
2311
|
-
id: (0,
|
|
2316
|
+
id: (0, import_shared6.randomId)(),
|
|
2312
2317
|
status: new SuccessMessageStatus(),
|
|
2313
2318
|
threadId: event.threadId,
|
|
2314
2319
|
agentName: event.agentName,
|
|
@@ -2321,7 +2326,7 @@ var CopilotResolver = class {
|
|
|
2321
2326
|
createdAt: /* @__PURE__ */ new Date()
|
|
2322
2327
|
});
|
|
2323
2328
|
outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
|
|
2324
|
-
id: (0,
|
|
2329
|
+
id: (0, import_shared6.randomId)(),
|
|
2325
2330
|
threadId: event.threadId,
|
|
2326
2331
|
agentName: event.agentName,
|
|
2327
2332
|
nodeName: event.nodeName,
|