@copilotkitnext/core 1.51.4-next.2 → 1.51.4-next.4
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/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1130,6 +1130,9 @@ var RunHandler = class {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
if (!errorMessage || !isArgumentError) {
|
|
1132
1132
|
const messageIndex = agent.messages.findIndex((m) => m.id === message.id);
|
|
1133
|
+
if (messageIndex === -1) {
|
|
1134
|
+
return false;
|
|
1135
|
+
}
|
|
1133
1136
|
const toolMessage = {
|
|
1134
1137
|
id: (0, import_shared4.randomUUID)(),
|
|
1135
1138
|
role: "tool",
|
|
@@ -1235,6 +1238,9 @@ var RunHandler = class {
|
|
|
1235
1238
|
}
|
|
1236
1239
|
if (!errorMessage || !isArgumentError) {
|
|
1237
1240
|
const messageIndex = agent.messages.findIndex((m) => m.id === message.id);
|
|
1241
|
+
if (messageIndex === -1) {
|
|
1242
|
+
return false;
|
|
1243
|
+
}
|
|
1238
1244
|
const toolMessage = {
|
|
1239
1245
|
id: (0, import_shared4.randomUUID)(),
|
|
1240
1246
|
role: "tool",
|