@aexol/spectral 0.2.9 → 0.2.10
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.
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* keeps individual tool results manageable even across multiple MCP calls
|
|
16
16
|
* in the same turn.
|
|
17
17
|
*/
|
|
18
|
-
const MAX_MCP_TEXT_LENGTH =
|
|
18
|
+
const MAX_MCP_TEXT_LENGTH = 100_000;
|
|
19
19
|
function truncateTextBlock(block) {
|
|
20
20
|
if (block.type !== "text")
|
|
21
21
|
return block;
|
package/dist/server/pi-bridge.js
CHANGED
|
@@ -211,7 +211,7 @@ function parseWireToolEvents(eventsJsonl) {
|
|
|
211
211
|
* or context-window overflow — both surface as "skipping empty intermediate
|
|
212
212
|
* message" / hung sessions after reconnect.
|
|
213
213
|
*/
|
|
214
|
-
const MAX_REHYDRATED_TEXT =
|
|
214
|
+
const MAX_REHYDRATED_TEXT = 100_000;
|
|
215
215
|
function sanitizeRehydratedBlock(block) {
|
|
216
216
|
// Convert images to text placeholders — most LLM APIs reject
|
|
217
217
|
// ImageContent inside tool-result messages (even multimodal
|