@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/{chunk-574FKWP5.mjs → chunk-AYW55OHA.mjs} +2 -2
  3. package/dist/{chunk-PKO7BUPS.mjs → chunk-CTOM2OZ3.mjs} +124 -4
  4. package/dist/chunk-CTOM2OZ3.mjs.map +1 -0
  5. package/dist/{chunk-WQZQTGHT.mjs → chunk-IUD7KKAU.mjs} +2 -2
  6. package/dist/{chunk-GGXHVDCG.mjs → chunk-NPWAEKGB.mjs} +2 -2
  7. package/dist/index.d.ts +2 -1
  8. package/dist/index.js +166 -46
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +4 -4
  11. package/dist/lib/index.d.ts +2 -1
  12. package/dist/lib/index.js +159 -39
  13. package/dist/lib/index.js.map +1 -1
  14. package/dist/lib/index.mjs +4 -4
  15. package/dist/lib/integrations/index.d.ts +3 -2
  16. package/dist/lib/integrations/index.js +15 -10
  17. package/dist/lib/integrations/index.js.map +1 -1
  18. package/dist/lib/integrations/index.mjs +4 -4
  19. package/dist/lib/integrations/nest/index.d.ts +2 -1
  20. package/dist/lib/integrations/nest/index.js +15 -10
  21. package/dist/lib/integrations/nest/index.js.map +1 -1
  22. package/dist/lib/integrations/nest/index.mjs +2 -2
  23. package/dist/lib/integrations/node-express/index.d.ts +2 -1
  24. package/dist/lib/integrations/node-express/index.js +15 -10
  25. package/dist/lib/integrations/node-express/index.js.map +1 -1
  26. package/dist/lib/integrations/node-express/index.mjs +2 -2
  27. package/dist/lib/integrations/node-http/index.d.ts +2 -1
  28. package/dist/lib/integrations/node-http/index.js +15 -10
  29. package/dist/lib/integrations/node-http/index.js.map +1 -1
  30. package/dist/lib/integrations/node-http/index.mjs +1 -1
  31. package/dist/{shared-86ec42e7.d.ts → shared-93687488.d.ts} +3 -0
  32. package/package.json +6 -2
  33. package/src/lib/runtime/agentwire-action.ts +123 -0
  34. package/src/lib/runtime/copilot-runtime.ts +9 -1
  35. package/src/lib/runtime/remote-action-constructors.ts +2 -7
  36. package/src/lib/runtime/remote-actions.ts +25 -1
  37. package/dist/chunk-PKO7BUPS.mjs.map +0 -1
  38. /package/dist/{chunk-574FKWP5.mjs.map → chunk-AYW55OHA.mjs.map} +0 -0
  39. /package/dist/{chunk-WQZQTGHT.mjs.map → chunk-IUD7KKAU.mjs.map} +0 -0
  40. /package/dist/{chunk-GGXHVDCG.mjs.map → chunk-NPWAEKGB.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  copilotRuntimeNodeExpressEndpoint
3
- } from "../../../chunk-574FKWP5.mjs";
4
- import "../../../chunk-PKO7BUPS.mjs";
3
+ } from "../../../chunk-AYW55OHA.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-86ec42e7.js';
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.4",
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",
@@ -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 import_shared4 = require("@copilotkit/shared");
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 import_shared3 = require("@copilotkit/shared");
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 import_shared2 = require("@copilotkit/shared");
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 import_shared3.TelemetryClient({
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 import_shared5 = require("@copilotkit/shared");
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, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
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, import_shared5.randomId)(),
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, import_shared5.randomId)(),
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, import_shared5.randomId)(),
2329
+ id: (0, import_shared6.randomId)(),
2325
2330
  threadId: event.threadId,
2326
2331
  agentName: event.agentName,
2327
2332
  nodeName: event.nodeName,