jssm 5.119.0 → 5.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-render.cjs +9 -0
- package/dist/cli/fsl.cjs +8 -0
- package/dist/deno/README.md +60 -1
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/package.json +24 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Please edit the file it's derived from, instead: `./src/md/readme_base.md`
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
* Generated for version 5.119.0 at 5/13/2026, 4:
|
|
21
|
+
* Generated for version 5.119.0 at 5/13/2026, 4:32:50 PM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
24
|
# jssm 5.119.0
|
|
@@ -120,6 +120,65 @@ usage patterns.
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
|
+
<br/>
|
|
124
|
+
|
|
125
|
+
## Command-line interface
|
|
126
|
+
|
|
127
|
+
`jssm` ships a CLI for rendering FSL machines to images and other formats.
|
|
128
|
+
|
|
129
|
+
### Installation
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
npm install -g jssm
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
This installs three binaries: `fsl` (the dispatcher), `jssm` (alias for `fsl`), and `fsl-render` (the render plugin).
|
|
136
|
+
|
|
137
|
+
### Render
|
|
138
|
+
|
|
139
|
+
Render a single machine to SVG (default):
|
|
140
|
+
|
|
141
|
+
```sh
|
|
142
|
+
fsl render machine.fsl
|
|
143
|
+
# → machine.svg next to input
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Specify a format:
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
fsl render machine.fsl --target=png --width=800
|
|
150
|
+
fsl render machine.fsl --target=dot --stdout > machine.dot
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Render multiple machines:
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
fsl render *.fsl --target=svg --out-dir=./diagrams
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Pipe FSL via stdin:
|
|
160
|
+
|
|
161
|
+
```sh
|
|
162
|
+
cat machine.fsl | fsl render --target=dot | dot -Tpng > out.png
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Plugin architecture
|
|
166
|
+
|
|
167
|
+
Every `fsl-<name>` executable on PATH is dispatched when you run `fsl <name>`. Third-party plugins follow the same contract as first-party `fsl-render`. See `notes/superpowers/specs/2026-05-12-fsl-cli-design.md` for the contract.
|
|
168
|
+
|
|
169
|
+
### Library API
|
|
170
|
+
|
|
171
|
+
The same render functions are available programmatically:
|
|
172
|
+
|
|
173
|
+
```js
|
|
174
|
+
import { render, renderSet } from 'jssm/cli';
|
|
175
|
+
|
|
176
|
+
const result = await render(fslText, { target: 'svg' });
|
|
177
|
+
if (result.kind === 'text') console.log(result.content);
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
123
182
|
<br/>
|
|
124
183
|
|
|
125
184
|
## Web Components
|
package/dist/cdn/viz.js
CHANGED
|
@@ -21038,7 +21038,7 @@ var constants = /*#__PURE__*/Object.freeze({
|
|
|
21038
21038
|
* Useful for runtime diagnostics and for embedding in serialized machine
|
|
21039
21039
|
* snapshots so that deserializers can detect version-skew.
|
|
21040
21040
|
*/
|
|
21041
|
-
const version = "5.
|
|
21041
|
+
const version = "5.120.0";
|
|
21042
21042
|
|
|
21043
21043
|
// whargarbl lots of these return arrays could/should be sets
|
|
21044
21044
|
const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
|