Repository navigation
GRFON documents you can navigate, with the format's own reader deciding what gets a squiggle, and notebooks that run multi-line literals, answer input, and export to Markdown.
GRFON navigation and squiggles
Ctrl-click on an @group reference goes to the group's declaration, and Find All References lists the declaration and every use. The Outline shows a groups section with each group's name and the parts it holds.
A reference the reader would refuse is squiggled with the reader's own wording: a group that no groups: block declares, a group used as a part it doesn't hold (for example, a once: naming a group that holds facts), or the wrong number of arguments for the group's takes. A clause that its level doesn't have is squiggled too. The list of clauses comes from the reader itself, asked once per folder and cached until it changes, so the editor and the reader can't disagree. In a folder with no reader, only the reference squiggles apply.
The rules are tested against the reader: every services/*.grfon document is checked unchanged and then with one reference broken at a time, and the editor's squiggle has to match the reader's refusal.
Notebooks
Brackets spanning lines. A map, list or call laid out over several lines now runs in a cell just as it does in a file. Before, the REPL behind a notebook rejected an open { at the end of a line, and every line after it failed too.
Errors are reported. The interpreter's REPL prompts were hiding error lines, so a cell that failed could show as a success with the prompts in its output. Errors now end the cell and are shown in red.
input works. input("Enter a word: ") opens an input box with that prompt, and the cell's output shows the prompt and your answer, as a terminal would. Escape stops the cell.
Export to Markdown. Export MiniScript Notebook as Markdown (notebook toolbar or Command Palette) writes the open notebook as one .md file with the outputs each cell shows. Code goes in miniscript blocks, and printed text and errors in text blocks. A Mermaid diagram stays a mermaid block, which GitHub and VS Code's preview render. An SVG is saved beside the document and linked. To export without VS Code, run the notebook fresh from a terminal:
node export-notebook.js notes.msnb [out.md] [--answer <line>]...
--answer supplies input lines in order; after those, it asks in the terminal.
Fixes
The test suite passes on a checkout of the extension alone (as in CI) and on Windows. The GRFON checks no longer fail when the micro-expert documents aren't present or have CRLF line endings.
Installing
Requires VS Code 1.75 or newer. Download the .vsix below and install it with Extensions: Install from VSIX…, or from a terminal:
code --install-extension miniscript2-0.6.0.vsix