mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-27 02:14:30 +01:00
chore: regenerate after the free-text mktemp guard
This commit is contained in:
1 parent
b7f16261e8
commit
4e7593fdc6
13 files changed
+17
-17
No files matched your search
+1
-1
@@ -632,7 +632,7 @@ fi
|
||||
_GT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)/.gstack/tmp"
|
||||
mkdir -p "$_GT" && chmod 700 "$_GT" || { echo "Not sent: cannot create $_GT for the text file." >&2; exit 1; }
|
||||
_EX=$(git rev-parse --git-path info/exclude 2>/dev/null) && mkdir -p "$(dirname "$_EX")" && { grep -qxF '/.gstack/tmp/' "$_EX" 2>/dev/null || echo '/.gstack/tmp/' >> "$_EX"; }
|
||||
PROMPT_FILE=$(mktemp "$_GT/aside-prompt.XXXXXX") && echo "PROMPT_FILE: $PROMPT_FILE (name: ${PROMPT_FILE##*/})"
|
||||
PROMPT_FILE=$(mktemp "$_GT/aside-prompt.XXXXXX") || { echo "Not sent: cannot create a file in $_GT." >&2; exit 1; }; echo "PROMPT_FILE: $PROMPT_FILE (name: ${PROMPT_FILE##*/})"
|
||||
```
|
||||
|
||||
It holds the query and the reply format (e.g. up to 8 bullets, each with its source URL). Write the text into each printed file with your file-write tool (Claude Code's Write tool needs a Read of the empty file first), exactly as it should appear. The text never goes into a shell command, heredoc or quoted argument. If a write fails or is refused, do not send: print the cause, the file path and the command below for sending by hand. Then substitute the printed name for `<prompt-file-name>`:
|
||||
|
||||
Reference in new issue
Block a user