Skip to content

docs: input-form decision rule + @- heredoc as the hook-safe path#334

Merged
fdaviddpt merged 1 commit into
masterfrom
docs/input-form-decision-rule-328
Jun 25, 2026
Merged

docs: input-form decision rule + @- heredoc as the hook-safe path#334
fdaviddpt merged 1 commit into
masterfrom
docs/input-form-decision-rule-328

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Context

Filed as #328 ("no supertool-native way to build an @file edit payload → forces cat heredocs"). Investigating it showed the capability was never missing: edit:@- with a TOML heredoc already makes a single multi-line edit with no file, and because the command line starts with ./supertool (not cat/echo), it survives enforced/autonomous runs that block bare shell builtins. The real gap was guidance — the docs covered each mechanic but never the decision of when to pick colon-CLI vs @- vs @file, so readers (and agents) defaulted to the cat > file detour that trips shell-tool guards and forces hand-escaped \n JSON.

Changes

  • docs/input-forms.md — new Which form? table choosing by content shape; frames @- heredoc as the no-file/hook-safe single-edit path and names the cat > file trap explicitly.
  • docs/operations/edits.md — expand the bare @- one-liner into a working edit:@- heredoc example + cross-link to the decision table.

Docs only, no code change. The @- route itself is unchanged — verified edit:@- with a TOML body edits + runs validators correctly.

Closes #328

🤖 Generated by Max — turns out the missing feature was a paragraph.

…path

The @- stdin/heredoc route already works and is the cleanest way to make a
single multi-line edit without writing a file — and because the command line
starts with ./supertool (no cat/echo), it survives enforced/autonomous runs
that block bare shell builtins. The docs covered the mechanic but never the
decision: when to pick colon-CLI vs @- vs @file. Add a 'Which form?' table to
input-forms.md naming the cat-to-file trap, and expand the bare @- line in
edits.md with a working heredoc example and cross-link.

Refs #328

Co-Authored-By: Max <noreply>
@fdaviddpt fdaviddpt merged commit d57cbc2 into master Jun 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No supertool-native way to build an @file edit payload → forces cat heredocs

1 participant