@copilotkit/runtime 1.3.16-mme-sdk-js.1 → 1.3.16-mme-sdk-js.2

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 (32) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-BTAHXIKM.mjs → chunk-3N5PRHNJ.mjs} +2 -2
  3. package/dist/{chunk-L23AVL2R.mjs → chunk-5IF2J3NL.mjs} +2 -2
  4. package/dist/{chunk-VQXA3N5D.mjs → chunk-6UQXCIKF.mjs} +14 -16
  5. package/dist/chunk-6UQXCIKF.mjs.map +1 -0
  6. package/dist/{chunk-2LR3IZ2Q.mjs → chunk-HFTU4B7Q.mjs} +2 -2
  7. package/dist/{chunk-CVLU3KWZ.mjs → chunk-PA6U4BDE.mjs} +2 -2
  8. package/dist/index.js +13 -15
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.mjs +5 -5
  11. package/dist/lib/index.js +13 -15
  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-lg-cloud-action.ts +14 -16
  28. package/dist/chunk-VQXA3N5D.mjs.map +0 -1
  29. /package/dist/{chunk-BTAHXIKM.mjs.map → chunk-3N5PRHNJ.mjs.map} +0 -0
  30. /package/dist/{chunk-L23AVL2R.mjs.map → chunk-5IF2J3NL.mjs.map} +0 -0
  31. /package/dist/{chunk-2LR3IZ2Q.mjs.map → chunk-HFTU4B7Q.mjs.map} +0 -0
  32. /package/dist/{chunk-CVLU3KWZ.mjs.map → chunk-PA6U4BDE.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-BTAHXIKM.mjs";
6
+ } from "./chunk-3N5PRHNJ.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-CVLU3KWZ.mjs";
21
+ } from "./chunk-PA6U4BDE.mjs";
22
22
  import {
23
23
  copilotRuntimeNestEndpoint
24
- } from "./chunk-2LR3IZ2Q.mjs";
24
+ } from "./chunk-HFTU4B7Q.mjs";
25
25
  import {
26
26
  copilotRuntimeNodeExpressEndpoint
27
- } from "./chunk-L23AVL2R.mjs";
27
+ } from "./chunk-5IF2J3NL.mjs";
28
28
  import {
29
29
  buildSchema,
30
30
  copilotRuntimeNodeHttpEndpoint,
31
31
  createContext,
32
32
  getCommonConfig
33
- } from "./chunk-VQXA3N5D.mjs";
33
+ } from "./chunk-6UQXCIKF.mjs";
34
34
  import "./chunk-MXXPWWBF.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.16-mme-sdk-js.1",
47
+ version: "1.3.16-mme-sdk-js.2",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -1458,18 +1458,16 @@ async function streamEvents(controller, args) {
1458
1458
  continue;
1459
1459
  }
1460
1460
  if (manuallyEmitIntermediateState) {
1461
- if (eventType === LangGraphEventTypes.OnChainEnd) {
1462
- state = event.data.output;
1463
- emit(getStateSyncEvent({
1464
- threadId,
1465
- runId,
1466
- agentName: agent.name,
1467
- nodeName,
1468
- state: event.data.output,
1469
- running: true,
1470
- active: true
1471
- }));
1472
- }
1461
+ state = event.data;
1462
+ emit(getStateSyncEvent({
1463
+ threadId,
1464
+ runId,
1465
+ agentName: agent.name,
1466
+ nodeName,
1467
+ state,
1468
+ running: true,
1469
+ active: true
1470
+ }));
1473
1471
  continue;
1474
1472
  }
1475
1473
  if (emitIntermediateState && emitIntermediateStateUntilEnd == null) {
@@ -1559,10 +1557,10 @@ var StreamingStateExtractor = /* @__PURE__ */ __name(class StreamingStateExtract
1559
1557
  bufferToolCalls(event) {
1560
1558
  if (event.data.chunk.tool_call_chunks.length > 0) {
1561
1559
  const chunk = event.data.chunk.tool_call_chunks[0];
1562
- if (chunk.name !== null) {
1560
+ if (chunk.name !== null && chunk.name !== void 0) {
1563
1561
  this.currentToolCall = chunk.name;
1564
1562
  this.toolCallBuffer[this.currentToolCall] = chunk.args;
1565
- } else if (this.currentToolCall !== null) {
1563
+ } else if (this.currentToolCall !== null && this.currentToolCall !== void 0) {
1566
1564
  this.toolCallBuffer[this.currentToolCall] += chunk.args;
1567
1565
  }
1568
1566
  }