@copilotkit/runtime 1.8.5-next.4 → 1.8.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 +86 -0
- package/dist/{chunk-574FKWP5.mjs → chunk-AYW55OHA.mjs} +2 -2
- package/dist/{chunk-PKO7BUPS.mjs → chunk-CTOM2OZ3.mjs} +124 -4
- package/dist/chunk-CTOM2OZ3.mjs.map +1 -0
- package/dist/{chunk-WQZQTGHT.mjs → chunk-IUD7KKAU.mjs} +2 -2
- package/dist/{chunk-GGXHVDCG.mjs → chunk-NPWAEKGB.mjs} +2 -2
- 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-574FKWP5.mjs.map → chunk-AYW55OHA.mjs.map} +0 -0
- /package/dist/{chunk-WQZQTGHT.mjs.map → chunk-IUD7KKAU.mjs.map} +0 -0
- /package/dist/{chunk-GGXHVDCG.mjs.map → chunk-NPWAEKGB.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNestEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-IUD7KKAU.mjs";
|
|
4
|
+
import "../../../chunk-CTOM2OZ3.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 copilotRuntimeNodeExpressEndpoint(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
|
|
47
|
+
version: "1.8.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",
|
|
@@ -1558,14 +1562,15 @@ GenerateCopilotResponseInput = _ts_decorate17([
|
|
|
1558
1562
|
var import_graphql_yoga = require("graphql-yoga");
|
|
1559
1563
|
|
|
1560
1564
|
// src/service-adapters/events.ts
|
|
1561
|
-
var
|
|
1565
|
+
var import_shared5 = require("@copilotkit/shared");
|
|
1562
1566
|
var import_rxjs2 = require("rxjs");
|
|
1563
1567
|
|
|
1564
1568
|
// src/lib/telemetry-client.ts
|
|
1565
|
-
var
|
|
1569
|
+
var import_shared4 = require("@copilotkit/shared");
|
|
1566
1570
|
|
|
1567
1571
|
// src/lib/runtime/remote-actions.ts
|
|
1568
1572
|
var import_shared = require("@copilotkit/shared");
|
|
1573
|
+
var import_shared2 = require("@copilotkit/shared");
|
|
1569
1574
|
var EndpointType;
|
|
1570
1575
|
(function(EndpointType2) {
|
|
1571
1576
|
EndpointType2["CopilotKit"] = "copilotKit";
|
|
@@ -1576,7 +1581,7 @@ var EndpointType;
|
|
|
1576
1581
|
var import_node_crypto = require("crypto");
|
|
1577
1582
|
|
|
1578
1583
|
// src/lib/runtime/copilot-runtime.ts
|
|
1579
|
-
var
|
|
1584
|
+
var import_shared3 = require("@copilotkit/shared");
|
|
1580
1585
|
|
|
1581
1586
|
// src/graphql/types/converted/index.ts
|
|
1582
1587
|
var Message = class extends BaseMessageInput {
|
|
@@ -1709,7 +1714,7 @@ __name(resolveEndpointType, "resolveEndpointType");
|
|
|
1709
1714
|
|
|
1710
1715
|
// src/lib/telemetry-client.ts
|
|
1711
1716
|
var packageJson = require_package();
|
|
1712
|
-
var telemetryClient = new
|
|
1717
|
+
var telemetryClient = new import_shared4.TelemetryClient({
|
|
1713
1718
|
packageName: packageJson.name,
|
|
1714
1719
|
packageVersion: packageJson.version
|
|
1715
1720
|
});
|
|
@@ -1813,7 +1818,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
|
|
|
1813
1818
|
__name(UnknownErrorResponse, "UnknownErrorResponse");
|
|
1814
1819
|
|
|
1815
1820
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1816
|
-
var
|
|
1821
|
+
var import_shared6 = require("@copilotkit/shared");
|
|
1817
1822
|
|
|
1818
1823
|
// src/graphql/types/agents-response.type.ts
|
|
1819
1824
|
var import_type_graphql19 = require("type-graphql");
|
|
@@ -1999,7 +2004,7 @@ var CopilotResolver = class {
|
|
|
1999
2004
|
ctx.properties["copilotCloudPublicApiKey"] = copilotCloudPublicApiKey;
|
|
2000
2005
|
}
|
|
2001
2006
|
logger2.debug("Processing");
|
|
2002
|
-
const { eventSource, threadId = (0,
|
|
2007
|
+
const { eventSource, threadId = (0, import_shared6.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
|
|
2003
2008
|
serviceAdapter,
|
|
2004
2009
|
messages: data.messages,
|
|
2005
2010
|
actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
|
|
@@ -2132,7 +2137,7 @@ var CopilotResolver = class {
|
|
|
2132
2137
|
});
|
|
2133
2138
|
outputMessages = [
|
|
2134
2139
|
(0, import_class_transformer2.plainToInstance)(TextMessage, {
|
|
2135
|
-
id: (0,
|
|
2140
|
+
id: (0, import_shared6.randomId)(),
|
|
2136
2141
|
createdAt: /* @__PURE__ */ new Date(),
|
|
2137
2142
|
content: result.reason,
|
|
2138
2143
|
role: MessageRole.assistant
|
|
@@ -2310,7 +2315,7 @@ var CopilotResolver = class {
|
|
|
2310
2315
|
event
|
|
2311
2316
|
}, "Agent message event received");
|
|
2312
2317
|
pushMessage({
|
|
2313
|
-
id: (0,
|
|
2318
|
+
id: (0, import_shared6.randomId)(),
|
|
2314
2319
|
status: new SuccessMessageStatus(),
|
|
2315
2320
|
threadId: event.threadId,
|
|
2316
2321
|
agentName: event.agentName,
|
|
@@ -2323,7 +2328,7 @@ var CopilotResolver = class {
|
|
|
2323
2328
|
createdAt: /* @__PURE__ */ new Date()
|
|
2324
2329
|
});
|
|
2325
2330
|
outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
|
|
2326
|
-
id: (0,
|
|
2331
|
+
id: (0, import_shared6.randomId)(),
|
|
2327
2332
|
threadId: event.threadId,
|
|
2328
2333
|
agentName: event.agentName,
|
|
2329
2334
|
nodeName: event.nodeName,
|