From 49a281bf93c3714bfa2fdf302aa4b8a599076ca0 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Thu, 23 Jul 2026 19:13:36 -0600 Subject: [PATCH] feat: renamed --contents arg for fs_write/patch to --content since most models attempt that first and error otherwise --- assets/functions/tools/fs_patch.sh | 4 ++-- assets/functions/tools/fs_write.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/functions/tools/fs_patch.sh b/assets/functions/tools/fs_patch.sh index 13d8655..a934240 100755 --- a/assets/functions/tools/fs_patch.sh +++ b/assets/functions/tools/fs_patch.sh @@ -24,7 +24,7 @@ set -e # your changes). # @option --path! The path of the file to apply the patch to -# @option --contents! The patch to apply to the file +# @option --content! The patch to apply to the file # @env LLM_OUTPUT=/dev/stdout The output path @@ -33,7 +33,7 @@ source "$LLM_PROMPT_UTILS_FILE" # shellcheck disable=SC2154 main() { - argc_contents="$(jq -r '.contents' <<< "$LLM_TOOL_RAW_JSON")" + argc_contents="$(jq -r '.content' <<< "$LLM_TOOL_RAW_JSON")" argc_path="$(jq -r '.path' <<< "$LLM_TOOL_RAW_JSON")" if [[ ! -f "$argc_path" ]]; then diff --git a/assets/functions/tools/fs_write.sh b/assets/functions/tools/fs_write.sh index c977a7b..298d663 100755 --- a/assets/functions/tools/fs_write.sh +++ b/assets/functions/tools/fs_write.sh @@ -6,7 +6,7 @@ set -e # sending less data, and is less prone to accidental data loss. # @option --path! The path of the file to write to -# @option --contents! The full contents to write to the file +# @option --content! The full contents to write to the file # @env LLM_OUTPUT=/dev/stdout The output path @@ -15,7 +15,7 @@ source "$LLM_PROMPT_UTILS_FILE" # shellcheck disable=SC2154 main() { - argc_contents="$(jq -r '.contents' <<< "$LLM_TOOL_RAW_JSON")" + argc_contents="$(jq -r '.content' <<< "$LLM_TOOL_RAW_JSON")" argc_path="$(jq -r '.path' <<< "$LLM_TOOL_RAW_JSON")" if [[ -f "$argc_path" ]]; then