acp-kernel 0.0.84-pr.365.231 → 0.0.84-pr.367.232
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
CHANGED
|
@@ -1256,7 +1256,12 @@ function hasMediaPayload(msg) {
|
|
|
1256
1256
|
if (m.rawOpenaiContent != null) return true;
|
|
1257
1257
|
if (Array.isArray(m.rawOpenaiContentParts) && m.rawOpenaiContentParts.length > 0)
|
|
1258
1258
|
return true;
|
|
1259
|
-
|
|
1259
|
+
const ab = m.rawAnthropicBlock;
|
|
1260
|
+
if (isObjWith(ab, "type", "image")) return true;
|
|
1261
|
+
if (isObjWith(ab, "type", "tool_result")) {
|
|
1262
|
+
const content = ab.content;
|
|
1263
|
+
if (Array.isArray(content)) return content.some((p) => !isObjWith(p, "type", "text"));
|
|
1264
|
+
}
|
|
1260
1265
|
const item = m.rawResponsesItem;
|
|
1261
1266
|
if (isObjWith(item, "type", "input_image")) return true;
|
|
1262
1267
|
if (item && typeof item === "object") {
|