spine-rigc 0.28.0 → 0.30.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 +4 -4
- package/cli.ts +10 -0
- package/docs/AUTHORING.md +290 -105
- package/docs/INGEST.md +15 -2
- package/docs/SPEC_COVERAGE.md +5 -4
- package/package.json +1 -1
- package/src/compile.ts +480 -308
- package/src/ingest.ts +248 -22
- package/src/png.ts +162 -7
- package/src/rig.ts +32 -21
- package/src/timelines.ts +101 -13
- package/src/types.ts +13 -7
- package/src/validate.ts +541 -28
- package/tools/editor_roundtrip.ts +1 -1
- package/tools/plate.ts +6 -0
package/README.md
CHANGED
|
@@ -533,9 +533,9 @@ first three work on any reference you have, and `bench` is a repository workflow
|
|
|
533
533
|
and `bun run fetch-examples`. The reasoning behind them is in
|
|
534
534
|
[the benchmark dossier](https://github.com/firejune/rigc/blob/main/docs/BENCHMARK.md).
|
|
535
535
|
|
|
536
|
-
`build` and `validate` both default to `--profile spine` — the
|
|
536
|
+
`build` and `validate` both default to `--profile spine` — the 31 validity rules, which
|
|
537
537
|
ask *is this valid Spine 4.3 that any runtime plays correctly?* `--profile spine-html`
|
|
538
|
-
adds all
|
|
538
|
+
adds all 46: the other 15 are one renderer's policy and one canvas budget's, and they
|
|
539
539
|
fire on perfectly correct editor-produced Spine data, which is why they are opt-in.
|
|
540
540
|
⇒ **That reason is about foreign data and does not carry to a rig you are authoring
|
|
541
541
|
yourself: author under `--profile spine-html` and read the extra 15 as findings, and
|
|
@@ -681,7 +681,7 @@ letting `A17` blame the editor for the harness's own doing.
|
|
|
681
681
|
| 📥 **[docs/INGEST.md](docs/INGEST.md)** | **working with a skeleton you did not author.** What every command can and cannot do with a foreign `skeleton.json`, reading it with the toolchain, transcription as the route that makes it yours, what each validator complaint means on an export, and the re-pivot/rename/extend recipes. Ships in the package too |
|
|
682
682
|
| 🤖 **[docs/PROMPTING.md](docs/PROMPTING.md)** | **handing the authoring to an AI agent** — the prompt clauses a measured pilot run paid for, and what you can leave unsaid. Ships in the package too |
|
|
683
683
|
| 🔬 **[docs/SPEC_COVERAGE.md](docs/SPEC_COVERAGE.md)** | Spine 4.3's full export surface against what rigc emits and what the official examples measurably use, with the ordered gap list |
|
|
684
|
-
| 🎓 **[the benchmark dossier](https://github.com/firejune/rigc/blob/main/docs/BENCHMARK.md)** | **why you can trust the output.** The yardstick, `diff` and `check` and what neither can see, the eight-rung ladder and the spineboy graduation exam, the run viewer, the
|
|
684
|
+
| 🎓 **[the benchmark dossier](https://github.com/firejune/rigc/blob/main/docs/BENCHMARK.md)** | **why you can trust the output.** The yardstick, `diff` and `check` and what neither can see, the eight-rung ladder and the spineboy graduation exam, the run viewer, the 46 named assertions with their profiles, and the selftest that has watched every one of them fire. Repository material — it is not in the npm package |
|
|
685
685
|
| 📋 [LADDER.md](https://github.com/firejune/rigc/blob/main/docs/LADDER.md) · [GATE.md](https://github.com/firejune/rigc/blob/main/docs/GATE.md) · [PILOT.md](https://github.com/firejune/rigc/blob/main/docs/PILOT.md) | the live rung ledger, the clause statements a candidate is graded against, and how to run an agent through the ladder and score what comes back |
|
|
686
686
|
| 🗺️ [ROADMAP.md](https://github.com/firejune/rigc/blob/main/ROADMAP.md) | where this is going, and where it has been. What 1.0 has to mean before the number is claimed — conditions rather than a feature list, because direction here comes from what users hit |
|
|
687
687
|
| 📐 [CLAUDE.md](https://github.com/firejune/rigc/blob/main/CLAUDE.md) | **the doctrine** — why the validator's messages are the product, why nothing reaches disk before green, why no number is ever invented, and what a change has to keep. [CONTRIBUTING.md](https://github.com/firejune/rigc/blob/main/CONTRIBUTING.md) calls it worth ten minutes before a first patch. Repository material |
|
|
@@ -738,7 +738,7 @@ quality."* All six, with their verdicts, are in
|
|
|
738
738
|
[docs/LADDER.md](https://github.com/firejune/rigc/blob/main/docs/LADDER.md).
|
|
739
739
|
|
|
740
740
|
The whole dossier — the yardstick, `diff` and `check` and what neither of them can
|
|
741
|
-
see, every rung, the run viewer, the
|
|
741
|
+
see, every rung, the run viewer, the 46 assertions and the selftest behind them — is
|
|
742
742
|
[docs/BENCHMARK.md](https://github.com/firejune/rigc/blob/main/docs/BENCHMARK.md).
|
|
743
743
|
Live rung status is
|
|
744
744
|
[docs/LADDER.md](https://github.com/firejune/rigc/blob/main/docs/LADDER.md).
|
package/cli.ts
CHANGED
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
type DiffReport,
|
|
76
76
|
} from './src/diff.ts';
|
|
77
77
|
import { ingest, IngestError, IngestSpecRefused, INGEST_GUTTERS, type IngestFinding, type IngestStage } from './src/ingest.ts';
|
|
78
|
+
import { NotAPngError } from './src/png.ts';
|
|
78
79
|
import { copyAtlasPages } from './src/emit.ts';
|
|
79
80
|
import {
|
|
80
81
|
DEFAULT_PADDING,
|
|
@@ -3781,5 +3782,14 @@ try {
|
|
|
3781
3782
|
console.error(`rigc ingest: ${err.message}`);
|
|
3782
3783
|
process.exit(2);
|
|
3783
3784
|
}
|
|
3785
|
+
// A page or frame that is not a PNG rigc can read, from any command that
|
|
3786
|
+
// opens one (`render`, `check`, `preview`, …) — issue #732. The sentence is
|
|
3787
|
+
// the one reader's and already names the file, what it is and what rigc
|
|
3788
|
+
// reads; a stack under it is the tool describing its own internals instead.
|
|
3789
|
+
// Exit 1, like a compile error: the invocation was fine, a file was not.
|
|
3790
|
+
if (err instanceof NotAPngError) {
|
|
3791
|
+
console.error(`rigc: ${err.message}`);
|
|
3792
|
+
process.exit(1);
|
|
3793
|
+
}
|
|
3784
3794
|
throw err;
|
|
3785
3795
|
}
|