@copilotkit/runtime 1.3.12-feat-langgraph-cloud-release-alpha.0 → 1.3.12-lgc-alpha-1.0

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 (33) hide show
  1. package/CHANGELOG.md +3 -3
  2. package/dist/{chunk-BPLF4QB2.mjs → chunk-6B3NPPSR.mjs} +2 -2
  3. package/dist/{chunk-Z5LICW7Z.mjs → chunk-6HXQC7IT.mjs} +2 -2
  4. package/dist/{chunk-RKGJG3QX.mjs → chunk-E6ZFCM3B.mjs} +9 -4
  5. package/dist/chunk-E6ZFCM3B.mjs.map +1 -0
  6. package/dist/{chunk-IPCABAGS.mjs → chunk-TM7ZRU3M.mjs} +2 -2
  7. package/dist/{chunk-6A7HQSQE.mjs → chunk-XMDH5MKI.mjs} +2 -2
  8. package/dist/index.js +8 -3
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +8 -3
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs +5 -5
  14. package/dist/lib/integrations/index.js +1 -1
  15. package/dist/lib/integrations/index.js.map +1 -1
  16. package/dist/lib/integrations/index.mjs +4 -4
  17. package/dist/lib/integrations/nest/index.js +1 -1
  18. package/dist/lib/integrations/nest/index.js.map +1 -1
  19. package/dist/lib/integrations/nest/index.mjs +2 -2
  20. package/dist/lib/integrations/node-express/index.js +1 -1
  21. package/dist/lib/integrations/node-express/index.js.map +1 -1
  22. package/dist/lib/integrations/node-express/index.mjs +2 -2
  23. package/dist/lib/integrations/node-http/index.js +1 -1
  24. package/dist/lib/integrations/node-http/index.js.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/package.json +4 -4
  27. package/src/lib/runtime/remote-action-constructors.ts +2 -0
  28. package/src/lib/runtime/remote-lg-cloud-action.ts +6 -3
  29. package/dist/chunk-RKGJG3QX.mjs.map +0 -1
  30. /package/dist/{chunk-BPLF4QB2.mjs.map → chunk-6B3NPPSR.mjs.map} +0 -0
  31. /package/dist/{chunk-Z5LICW7Z.mjs.map → chunk-6HXQC7IT.mjs.map} +0 -0
  32. /package/dist/{chunk-IPCABAGS.mjs.map → chunk-TM7ZRU3M.mjs.map} +0 -0
  33. /package/dist/{chunk-6A7HQSQE.mjs.map → chunk-XMDH5MKI.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  copilotKitEndpoint,
4
4
  flattenToolCallsNoDuplicates,
5
5
  langGraphCloudEndpoint
6
- } from "./chunk-Z5LICW7Z.mjs";
6
+ } from "./chunk-6HXQC7IT.mjs";
7
7
  import {
8
8
  AnthropicAdapter,
9
9
  GoogleGenerativeAIAdapter,
@@ -18,19 +18,19 @@ import {
18
18
  config,
19
19
  copilotRuntimeNextJSAppRouterEndpoint,
20
20
  copilotRuntimeNextJSPagesRouterEndpoint
21
- } from "./chunk-IPCABAGS.mjs";
21
+ } from "./chunk-TM7ZRU3M.mjs";
22
22
  import {
23
23
  copilotRuntimeNestEndpoint
24
- } from "./chunk-BPLF4QB2.mjs";
24
+ } from "./chunk-6B3NPPSR.mjs";
25
25
  import {
26
26
  copilotRuntimeNodeExpressEndpoint
27
- } from "./chunk-6A7HQSQE.mjs";
27
+ } from "./chunk-XMDH5MKI.mjs";
28
28
  import {
29
29
  buildSchema,
30
30
  copilotRuntimeNodeHttpEndpoint,
31
31
  createContext,
32
32
  getCommonConfig
33
- } from "./chunk-RKGJG3QX.mjs";
33
+ } from "./chunk-E6ZFCM3B.mjs";
34
34
  import "./chunk-V7SK6QZN.mjs";
35
35
  import {
36
36
  GuardrailsValidationFailureResponse,
package/dist/lib/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.3.12-feat-langgraph-cloud-release-alpha.0",
47
+ version: "1.3.12-lgc-alpha-1.0",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -1322,11 +1322,14 @@ async function execute(args) {
1322
1322
  }
1323
1323
  __name(execute, "execute");
1324
1324
  async function streamEvents(controller, args) {
1325
- const { threadId: agrsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions } = args;
1325
+ const { deploymentUrl, langsmithApiKey, threadId: agrsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions } = args;
1326
1326
  let nodeName = initialNodeName;
1327
1327
  let state = initialState;
1328
1328
  const { name, assistantId: initialAssistantId } = agent;
1329
- const client = new import_langgraph_sdk.Client();
1329
+ const client = new import_langgraph_sdk.Client({
1330
+ apiUrl: deploymentUrl,
1331
+ apiKey: langsmithApiKey
1332
+ });
1330
1333
  let initialThreadId = agrsInitialThreadId;
1331
1334
  const wasInitiatedWithExistingThread = !!initialThreadId;
1332
1335
  if (initialThreadId && initialThreadId.startsWith("ck-")) {
@@ -1673,6 +1676,8 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
1673
1676
  }
1674
1677
  try {
1675
1678
  const response = await execute({
1679
+ deploymentUrl: endpoint.deploymentUrl,
1680
+ langsmithApiKey: endpoint.langsmithApiKey,
1676
1681
  agent,
1677
1682
  threadId,
1678
1683
  nodeName,