@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
@@ -3,13 +3,13 @@ import {
3
3
  config,
4
4
  copilotRuntimeNextJSAppRouterEndpoint,
5
5
  copilotRuntimeNextJSPagesRouterEndpoint
6
- } from "../chunk-GGXHVDCG.mjs";
6
+ } from "../chunk-NPWAEKGB.mjs";
7
7
  import {
8
8
  copilotRuntimeNestEndpoint
9
- } from "../chunk-WQZQTGHT.mjs";
9
+ } from "../chunk-IUD7KKAU.mjs";
10
10
  import {
11
11
  copilotRuntimeNodeExpressEndpoint
12
- } from "../chunk-574FKWP5.mjs";
12
+ } from "../chunk-AYW55OHA.mjs";
13
13
  import {
14
14
  CopilotRuntime,
15
15
  addCustomHeaderPlugin,
@@ -24,7 +24,7 @@ import {
24
24
  getCommonConfig,
25
25
  langGraphPlatformEndpoint,
26
26
  resolveEndpointType
27
- } from "../chunk-PKO7BUPS.mjs";
27
+ } from "../chunk-CTOM2OZ3.mjs";
28
28
  import {
29
29
  GoogleGenerativeAIAdapter,
30
30
  GroqAdapter,
@@ -1,5 +1,5 @@
1
- import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-86ec42e7.js';
2
- export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-86ec42e7.js';
1
+ import { b as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../shared-93687488.js';
2
+ export { e as CommonConfig, C as CopilotRequestContextProperties, a as addCustomHeaderPlugin, d as buildSchema, c as createContext, g as getCommonConfig } from '../../shared-93687488.js';
3
3
  import * as graphql_yoga from 'graphql-yoga';
4
4
  import { YogaServerInstance } from 'graphql-yoga';
5
5
  export { copilotRuntimeNodeHttpEndpoint } from './node-http/index.js';
@@ -13,6 +13,7 @@ import '../../index-5bec5424.js';
13
13
  import '../../graphql/types/base/index.js';
14
14
  import 'rxjs';
15
15
  import '../cloud/index.js';
16
+ import '@agentwire/client';
16
17
 
17
18
  declare function copilotRuntimeNextJSAppRouterEndpoint(options: CreateCopilotRuntimeServerOptions): {
18
19
  handleRequest: graphql_yoga.YogaServerInstance<{}, Partial<GraphQLContext>>;
@@ -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",
@@ -1564,14 +1568,15 @@ GenerateCopilotResponseInput = _ts_decorate17([
1564
1568
  var import_graphql_yoga = require("graphql-yoga");
1565
1569
 
1566
1570
  // src/service-adapters/events.ts
1567
- var import_shared4 = require("@copilotkit/shared");
1571
+ var import_shared5 = require("@copilotkit/shared");
1568
1572
  var import_rxjs2 = require("rxjs");
1569
1573
 
1570
1574
  // src/lib/telemetry-client.ts
1571
- var import_shared3 = require("@copilotkit/shared");
1575
+ var import_shared4 = require("@copilotkit/shared");
1572
1576
 
1573
1577
  // src/lib/runtime/remote-actions.ts
1574
1578
  var import_shared = require("@copilotkit/shared");
1579
+ var import_shared2 = require("@copilotkit/shared");
1575
1580
  var EndpointType;
1576
1581
  (function(EndpointType2) {
1577
1582
  EndpointType2["CopilotKit"] = "copilotKit";
@@ -1582,7 +1587,7 @@ var EndpointType;
1582
1587
  var import_node_crypto = require("crypto");
1583
1588
 
1584
1589
  // src/lib/runtime/copilot-runtime.ts
1585
- var import_shared2 = require("@copilotkit/shared");
1590
+ var import_shared3 = require("@copilotkit/shared");
1586
1591
 
1587
1592
  // src/graphql/types/converted/index.ts
1588
1593
  var Message = class extends BaseMessageInput {
@@ -1715,7 +1720,7 @@ __name(resolveEndpointType, "resolveEndpointType");
1715
1720
 
1716
1721
  // src/lib/telemetry-client.ts
1717
1722
  var packageJson = require_package();
1718
- var telemetryClient = new import_shared3.TelemetryClient({
1723
+ var telemetryClient = new import_shared4.TelemetryClient({
1719
1724
  packageName: packageJson.name,
1720
1725
  packageVersion: packageJson.version
1721
1726
  });
@@ -1819,7 +1824,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
1819
1824
  __name(UnknownErrorResponse, "UnknownErrorResponse");
1820
1825
 
1821
1826
  // src/graphql/resolvers/copilot.resolver.ts
1822
- var import_shared5 = require("@copilotkit/shared");
1827
+ var import_shared6 = require("@copilotkit/shared");
1823
1828
 
1824
1829
  // src/graphql/types/agents-response.type.ts
1825
1830
  var import_type_graphql19 = require("type-graphql");
@@ -2005,7 +2010,7 @@ var CopilotResolver = class {
2005
2010
  ctx.properties["copilotCloudPublicApiKey"] = copilotCloudPublicApiKey;
2006
2011
  }
2007
2012
  logger2.debug("Processing");
2008
- const { eventSource, threadId = (0, import_shared5.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
2013
+ const { eventSource, threadId = (0, import_shared6.randomId)(), runId, serverSideActions, actionInputsWithoutAgents, extensions } = await copilotRuntime.processRuntimeRequest({
2009
2014
  serviceAdapter,
2010
2015
  messages: data.messages,
2011
2016
  actions: data.frontend.actions.filter((action) => action.available !== ActionInputAvailability.disabled),
@@ -2138,7 +2143,7 @@ var CopilotResolver = class {
2138
2143
  });
2139
2144
  outputMessages = [
2140
2145
  (0, import_class_transformer2.plainToInstance)(TextMessage, {
2141
- id: (0, import_shared5.randomId)(),
2146
+ id: (0, import_shared6.randomId)(),
2142
2147
  createdAt: /* @__PURE__ */ new Date(),
2143
2148
  content: result.reason,
2144
2149
  role: MessageRole.assistant
@@ -2316,7 +2321,7 @@ var CopilotResolver = class {
2316
2321
  event
2317
2322
  }, "Agent message event received");
2318
2323
  pushMessage({
2319
- id: (0, import_shared5.randomId)(),
2324
+ id: (0, import_shared6.randomId)(),
2320
2325
  status: new SuccessMessageStatus(),
2321
2326
  threadId: event.threadId,
2322
2327
  agentName: event.agentName,
@@ -2329,7 +2334,7 @@ var CopilotResolver = class {
2329
2334
  createdAt: /* @__PURE__ */ new Date()
2330
2335
  });
2331
2336
  outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
2332
- id: (0, import_shared5.randomId)(),
2337
+ id: (0, import_shared6.randomId)(),
2333
2338
  threadId: event.threadId,
2334
2339
  agentName: event.agentName,
2335
2340
  nodeName: event.nodeName,