juno-code 1.0.23 → 1.0.24
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
package/dist/index.mjs
CHANGED
|
Binary file
|
|
@@ -260,7 +260,16 @@ Environment Variables:
|
|
|
260
260
|
if tool_use_data:
|
|
261
261
|
simplified["tool_use"] = tool_use_data
|
|
262
262
|
else:
|
|
263
|
-
|
|
263
|
+
# For multi-line content, render it in a readable format
|
|
264
|
+
# Check if content contains newline characters
|
|
265
|
+
if text_content and '\n' in text_content:
|
|
266
|
+
# Split into lines and create a readable multi-line representation
|
|
267
|
+
simplified["content"] = text_content
|
|
268
|
+
# Return a custom formatted output for multi-line content
|
|
269
|
+
# that preserves the structure but makes it readable
|
|
270
|
+
return json.dumps(simplified, indent=2, ensure_ascii=False)
|
|
271
|
+
else:
|
|
272
|
+
simplified["content"] = text_content
|
|
264
273
|
|
|
265
274
|
return json.dumps(simplified)
|
|
266
275
|
else:
|