chore: v2.8.13 — Artifacts reinstall/edit/installs, agent steps in chat, pick a local file to attach, Windows paths as links
- Chat: an Agent step shows its task, status and tool calls and opens its conversation in place; Windows paths (E:\…, C:/…) in replies open as files - Prompt: attach a file on this computer by path (native picker), clearer too-large messages - Artifacts: edit title/description and a skill's files (new snapshot), Reinstall, install history, Hub-only rows, skills installed into ~/.claude/skills and ~/.agents/skills - Files: batch upload of small files in one extract - AI Tools: npm install falls back to --prefix ~/.local when the global prefix is not writable
This commit is contained in:
@@ -21,10 +21,13 @@
|
||||
# copy the path, recursively, to the 3rd argument (symlinks copied as
|
||||
# links, never followed; mode and times kept; never onto an
|
||||
# existing name)
|
||||
# extract a tar on stdin unpacked into the directory (the dashboard's
|
||||
# batch upload, a tar it wrote itself: folders and regular files
|
||||
# only); an existing file is never replaced (`-k` fails instead)
|
||||
# @author Nguyễn Ngọc Trí Vĩ <vinnt@smartgift.vn>
|
||||
set -eu
|
||||
usage() {
|
||||
echo "usage: write-as <absolute path> [append|replace|private|mkdir|remove] | <path> move|copy <absolute dest>" >&2
|
||||
echo "usage: write-as <absolute path> [append|replace|private|mkdir|remove|extract] | <path> move|copy <absolute dest>" >&2
|
||||
exit 2
|
||||
}
|
||||
case "${2:-}" in
|
||||
@@ -48,6 +51,7 @@ case "${2:-}" in
|
||||
private) swap "$1" 0600 ;;
|
||||
mkdir) exec mkdir -p -m 0755 -- "$1" ;;
|
||||
remove) exec rm -rf -- "$1" ;;
|
||||
extract) exec tar -x -k -p --no-same-owner -f - -C "$1" ;;
|
||||
move)
|
||||
[ -e "$3" ] || [ -L "$3" ] && { echo "write-as: $3 exists" >&2; exit 1; }
|
||||
exec mv -T -- "$1" "$3" ;;
|
||||
|
||||
Reference in New Issue
Block a user