@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.
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-BTAHXIKM.mjs → chunk-3N5PRHNJ.mjs} +2 -2
- package/dist/{chunk-L23AVL2R.mjs → chunk-5IF2J3NL.mjs} +2 -2
- package/dist/{chunk-VQXA3N5D.mjs → chunk-6UQXCIKF.mjs} +14 -16
- package/dist/chunk-6UQXCIKF.mjs.map +1 -0
- package/dist/{chunk-2LR3IZ2Q.mjs → chunk-HFTU4B7Q.mjs} +2 -2
- package/dist/{chunk-CVLU3KWZ.mjs → chunk-PA6U4BDE.mjs} +2 -2
- package/dist/index.js +13 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +13 -15
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +4 -4
- package/src/lib/runtime/remote-lg-cloud-action.ts +14 -16
- package/dist/chunk-VQXA3N5D.mjs.map +0 -1
- /package/dist/{chunk-BTAHXIKM.mjs.map → chunk-3N5PRHNJ.mjs.map} +0 -0
- /package/dist/{chunk-L23AVL2R.mjs.map → chunk-5IF2J3NL.mjs.map} +0 -0
- /package/dist/{chunk-2LR3IZ2Q.mjs.map → chunk-HFTU4B7Q.mjs.map} +0 -0
- /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-
|
|
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-
|
|
21
|
+
} from "./chunk-PA6U4BDE.mjs";
|
|
22
22
|
import {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-HFTU4B7Q.mjs";
|
|
25
25
|
import {
|
|
26
26
|
copilotRuntimeNodeExpressEndpoint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5IF2J3NL.mjs";
|
|
28
28
|
import {
|
|
29
29
|
buildSchema,
|
|
30
30
|
copilotRuntimeNodeHttpEndpoint,
|
|
31
31
|
createContext,
|
|
32
32
|
getCommonConfig
|
|
33
|
-
} from "./chunk-
|
|
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.
|
|
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
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
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
|
}
|