@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.mjs
CHANGED
|
@@ -1098,6 +1098,9 @@ var RunHandler = class {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
if (!errorMessage || !isArgumentError) {
|
|
1100
1100
|
const messageIndex = agent.messages.findIndex((m) => m.id === message.id);
|
|
1101
|
+
if (messageIndex === -1) {
|
|
1102
|
+
return false;
|
|
1103
|
+
}
|
|
1101
1104
|
const toolMessage = {
|
|
1102
1105
|
id: randomUUID3(),
|
|
1103
1106
|
role: "tool",
|
|
@@ -1203,6 +1206,9 @@ var RunHandler = class {
|
|
|
1203
1206
|
}
|
|
1204
1207
|
if (!errorMessage || !isArgumentError) {
|
|
1205
1208
|
const messageIndex = agent.messages.findIndex((m) => m.id === message.id);
|
|
1209
|
+
if (messageIndex === -1) {
|
|
1210
|
+
return false;
|
|
1211
|
+
}
|
|
1206
1212
|
const toolMessage = {
|
|
1207
1213
|
id: randomUUID3(),
|
|
1208
1214
|
role: "tool",
|