Repository navigation
docs: write script.forma before quickstart CLI invocations (#117) - #122
Open
viwe-monai wants to merge 1 commit into
Open
viwe-monai wants to merge 1 commit into
viwe-monai wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Every snippet that invokes the CLI with
script.formanow writes that input file first (or names it in a comment), so the documented commands work on a fresh clone / fresh shell.README.mdQuickstart Option 2: writesscript.formawith the same flange model Option 1 pipes via stdin, so the documentedflange.glb/flange.png/flange.svgoutputs are produced.README.md"invoke directly from any shell-capable agent" block,README.mdnpm section: oneecho ... > script.formaline before the first command that reads the file.llms.txt,SKILL.md(Option B),AGENTS.md(step 3): same one-line write step before thescript.formainvocations.Why (Fixes #117)
The quickstart builds the binary and then runs
forma eval ... script.forma, but nothing in the repo (or the documented steps) ever createsscript.forma, so the command fails withERR: cannot read 'script.forma'on a fresh clone. Option 1 pipes its model through a heredoc and never writes a file, yet Option 2 and the agent snippets reference that phantom file. Per the issue: the same one-line input fix applies to thellms.txt/SKILL.md/AGENTS.mdsnippets, whosepart.glboutputs are fine once the input exists.How it was verified
Built
cargo build --release(forma 0.4.x, Linux x86_64) and ran the documented sequences verbatim.Before (documented command, no input file):
After (README Option 2 as updated): writes
script.forma, then the same eval command:The one-line write step used in the other snippets was checked the same way (
echo 'flange = box(4, 2, 0.4) | cut(cyl(0.5, 1))' > script.formathenforma lint --json script.forma->{"clean":true,"findings":[],"contacts":[],"exit=0}).python3 scripts/check_local_paths.pypasses on all tracked files. Docs-only diff; no source changes.Follow-ups deliberately left out
docs/reference/cli.md.docs/tutorials/first-part.mdalready writes its input file and needs no change.