@tryarcanist/cli 0.1.56 → 0.1.58
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 +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -852,6 +852,7 @@ function projectToolTruncated(data, index) {
|
|
|
852
852
|
type: "tool_truncated",
|
|
853
853
|
id: typeof data?.callId === "string" ? data.callId : String(index),
|
|
854
854
|
tool: typeof data?.tool === "string" ? data.tool : "",
|
|
855
|
+
...data?.reason === "truncation_marker" || data?.reason === "size_threshold" ? { reason: data.reason } : {},
|
|
855
856
|
...resolvePromptId(data) ? { promptId: resolvePromptId(data) } : {}
|
|
856
857
|
};
|
|
857
858
|
}
|
|
@@ -1252,6 +1253,10 @@ ${event.answer ? `**Answer:** ${event.answer}
|
|
|
1252
1253
|
return `*[context ${Math.round(event.fillPercent * 100)}% full]*
|
|
1253
1254
|
`;
|
|
1254
1255
|
case "tool_truncated":
|
|
1256
|
+
if (event.reason === "size_threshold") {
|
|
1257
|
+
return `*[${event.tool} output exceeded safe size]*
|
|
1258
|
+
`;
|
|
1259
|
+
}
|
|
1255
1260
|
return `*[${event.tool} output truncated]*
|
|
1256
1261
|
`;
|
|
1257
1262
|
case "branch_changed":
|