speckl/compiler/dist
Engineering (agent-engineering) ade3fe2177 fix: correct enum value rewriting and parser quoted-string handling
Two bugs fixed:

1. TS Generator: Enum values in guard expressions and emit fields
   were prefixed with the wrong enum name (always using the state
   enum). Now builds a value→enumName map from enumMap and passes it
   to rewriteExpr so each value gets its correct enum prefix
   (e.g., ArtifactKind.Provenance instead of CompilerPhase.Provenance).

2. Parser: emit field splitting used simple comma-split which broke
   quoted strings containing commas (e.g., join(outputDir, ".prov.jsonld")).
   Now respects quotes and parentheses when splitting.

Also: join() calls now generate path.join() instead of String.join(),
and generated TS includes 'import path from path'.

Fixes: marcus/engineering#9
2026-05-05 21:50:49 -07:00
..
__tests__ Wire up compiler generators + fix parser for SpeckDL edge cases 2026-05-02 15:14:31 -07:00
generators Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.d.ts Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.d.ts.map Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.js fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
index.js.map fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
parser.d.ts speckl: TypeScript state machine generator + Forgejo issue workflow spec 2026-05-03 12:23:33 -07:00
parser.d.ts.map speckl: TypeScript state machine generator + Forgejo issue workflow spec 2026-05-03 12:23:33 -07:00
parser.js fix: correct enum value rewriting and parser quoted-string handling 2026-05-05 21:50:49 -07:00
parser.js.map fix: correct enum value rewriting and parser quoted-string handling 2026-05-05 21:50:49 -07:00