@tscircuit/cli 0.1.1797 → 0.1.1798
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 +18 -0
- package/dist/cli/build/build.worker.js +272 -150
- package/dist/cli/main.js +1315 -1171
- package/dist/cli/snapshot/snapshot.worker.js +178 -60
- package/dist/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,6 +126,24 @@ The debug directory contains:
|
|
|
126
126
|
Use `--autorouter-dump-srj failed` to keep only failed-stage routing data, or
|
|
127
127
|
`--autorouter-dump-srj phase:N` to capture a single stage.
|
|
128
128
|
|
|
129
|
+
### Debug solver inputs
|
|
130
|
+
|
|
131
|
+
Use `--solver-debug` to record the constructor inputs for every solver that
|
|
132
|
+
the circuit reports while it renders:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
tsci build index.circuit.tsx \
|
|
136
|
+
--solver-debug \
|
|
137
|
+
--solver-debug-dir dist/solver-debug
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Each circuit writes a `solver-inputs.json` artifact beneath the debug
|
|
141
|
+
directory. The file preserves solver event order, identifies the component
|
|
142
|
+
that started each solver, and contains the full constructor argument tuple so
|
|
143
|
+
the solver can be reproduced independently. Values that JSON cannot represent
|
|
144
|
+
directly, such as `undefined`, `NaN`, maps, sets, or circular references, use
|
|
145
|
+
explicit `value_type` records instead of being silently discarded.
|
|
146
|
+
|
|
129
147
|
## Development
|
|
130
148
|
|
|
131
149
|
This command will open the `index.tsx` file for editing.
|