M0: core — notebook parser, params, shellQuote, renderStep #1

Closed
opened 2026-11-15 23:51:19 +01:00 by schmidt.florian · 1 comment
Owner

Implement packages/core per docs/spec.md §3 and the signatures in packages/core/src/index.ts.
Done when: the §3.1 example parses into the expected model, shellQuote is property/fuzz-tested, resolveParams/renderStep/renderText/secretEnv covered by unit tests.

Implement packages/core per docs/spec.md §3 and the signatures in packages/core/src/index.ts. Done when: the §3.1 example parses into the expected model, shellQuote is property/fuzz-tested, resolveParams/renderStep/renderText/secretEnv covered by unit tests.
Author
Owner

Landed on main (f0d5de6, c993089): packages/core parser (frontmatter, run/check steps with all §3.3 attributes, :::after containers, line ranges, diagnostics instead of throws), resolveParams (typed validation, default references, cycle detection), renderStep as the single substitution path, renderText, secretEnv, and shellQuote with 256 random POSIX sh round trips. Follow-up fix: CRLF notebooks no longer leak \r into scripts. 59 core tests (pnpm test). Done-when criteria met; closing.

Landed on main (f0d5de6, c993089): `packages/core` parser (frontmatter, run/check steps with all §3.3 attributes, `:::after` containers, line ranges, diagnostics instead of throws), `resolveParams` (typed validation, default references, cycle detection), `renderStep` as the single substitution path, `renderText`, `secretEnv`, and `shellQuote` with 256 random POSIX sh round trips. Follow-up fix: CRLF notebooks no longer leak \r into scripts. 59 core tests (`pnpm test`). Done-when criteria met; closing.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FinalFactory/ShellBook#1