refactor: improve coder agent (#131)

This commit is contained in:
sigoden
2024-11-29 20:18:33 +08:00
committed by GitHub
parent 139bd5a3f6
commit c4ba6ff379
5 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ build-declarations@tool() {
if [[ -n "$build_failed_tools" ]]; then
_die "error: invalid tools: ${build_failed_tools[*]}"
fi
json_data="$(echo "["$(IFS=,; echo "${json_list[*]}")"]" | jq '.')"
json_data="$(echo "${json_list[@]}" | jq -s '.')"
if [[ "$argc_declarations_file" == "-" ]]; then
echo "$json_data"
else