refactor: numerous improvements (#32)

This commit is contained in:
sigoden
2024-06-07 21:36:34 +08:00
committed by GitHub
parent e1d895cc9a
commit 63df67acea
11 changed files with 159 additions and 115 deletions
+1 -1
View File
@@ -12,5 +12,5 @@
* @param {Args} args
*/
exports.run = function run(args) {
console.log(args);
console.log(JSON.stringify(args, null, 2));
}
+2 -2
View File
@@ -6,9 +6,9 @@ set -e
# @option --contents! The contents to save.
main() {
base_dir="$LLM_FUNCTIONS_DIR/tmp/files"
output_file="$base_dir/$argc_file_name"
base_dir="${LLM_TOOL_CACHE_DIR:-/tmp}"
mkdir -p "$base_dir"
output_file="$base_dir/$argc_file_name"
echo "$argc_contents" > "$output_file"
echo "$output_file"
}