Skip to content

Sterling version update + viz options update#336

Open
sidprasad wants to merge 10 commits into
devfrom
edit-update
Open

Sterling version update + viz options update#336
sidprasad wants to merge 10 commits into
devfrom
edit-update

Conversation

@sidprasad
Copy link
Copy Markdown
Collaborator

@sidprasad sidprasad commented Apr 29, 2026

  • Important aesthetic fixes and temporal fixes
  • Support for projection and temporal policy "above" spytial.
  • CnD becomes its own language above spytial, implemented by this fork of sterling.
  • Experimental support for input

Separate Sterling launch options from viz options

Decouples where/whether Sterling opens from which visualization it loads, so a diagram auto-applies no matter the launch mode:

  • run_sterling stays the launch mode: on / off / serve / headless (dispatch unchanged).
  • New sterling_viz option (string | list of strings | #f) holds the CnD/JS viz file(s), path-translated relative to the model file.
  • The embedded <visualizer cnd=.../script=.../> is now driven by sterling_viz, falling back to a legacy path/list in run_sterling for backward compatibility. So the diagram auto-applies in browser, headless, or serve mode alike.

Motivation: tooling that forces headless Sterling (e.g. the VS Code webview integration, via -O run_sterling headless) no longer clobbers a user's viz file — it now lives in its own orthogonal option. Additive and non-breaking: run_sterling's behavior is unchanged, and its previously-unused string/path form still works via the fallback.

@sidprasad sidprasad requested a review from tnelson April 29, 2026 21:20
sidprasad and others added 5 commits April 30, 2026 09:41
… mode

Introduces `sterling_viz` (string | list-of-strings | #f, default #f): a
CnD/JS visualization-script path (or paths) to auto-load in Sterling,
path-translated relative to the model file like run_sterling's legacy path
form. This separates "which viz file to load" from run_sterling, which stays
the open mode (on/off/serve/headless).

Motivation: tooling that forces headless Sterling (e.g. the VSCode webview
integration, via `-O run_sterling headless`) no longer has to clobber a viz
file the user specified — the file now lives in its own orthogonal option.

Additive and non-breaking: run_sterling's dispatch is unchanged, and the
previously-unused string/path form of run_sterling keeps its current behavior.

- sigs-structs.rkt: default, validator, and type description for sterling_viz
- sigs-functional.rkt: path-translate sterling_viz relative to the model file

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
sterling-viz-to-xml now sources the viz file(s) from the dedicated sterling_viz
option, falling back to a legacy path/list in run_sterling for back-compat. This
makes the embedded <visualizer cnd=.../script=.../> auto-apply in Sterling
regardless of the launch mode (browser/headless/webview) — previously it only
fired when run_sterling itself was the path, which also forced browser mode and
was wiped by tooling that forces -O run_sterling headless.

Completes the launch-options (run_sterling) vs viz-options (sterling_viz) split.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sidprasad sidprasad changed the title Sterling -> Cope and Drag Sterling version update + viz options update May 30, 2026
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.

1 participant