You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ReadFiles): simplify content output for single file reads (#33)
Improve ReadFiles executor to return simplified content when reading a
single file instead of YAML-wrapped structure.
Changes:
- Single file: Return file content directly (string)
- Multiple files: Keep existing YAML structure with files array
- All other outputs unchanged (files, total_files, etc.)
Benefits:
- More intuitive for common single-file use case
- Easier to consume in workflow templates
- Backward compatible for multiple file scenarios
Updated test snapshots to reflect new behavior.
Copy file name to clipboardExpand all lines: tests/snapshots/editfile-interpolation-test.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"outputs": {
3
3
"all_operations_succeeded": true,
4
4
"delete_lines_count": 2,
5
-
"final_content": "files:\n- path: test.py\n content: |\n# Test completed successfully: true\n# Lines added: 1\n# Modified by /tmp/editfile-interpolation-test\n# Interpolated header\n def test():\nvalue = \"OPERATIONS_INTERPOLATED\"\nlogger.info(\"Hello, World!\")\n# Extra line 1\n# Extra line 2\n size_bytes: 235",
5
+
"final_content": "# Test completed successfully: true\n# Lines added: 1\n# Modified by test_multiple_operations_interpolation\n# Interpolated header\ndef test():\n value = \"OPERATIONS_INTERPOLATED\"\n logger.info(\"Hello, World!\")\n# Extra line 1\n# Extra line 2",
0 commit comments