The proto_package / go_package / event_suffix directives were stored on (parseSpeck as any)._protoPackage etc — static function fields that leaked between parse calls (cycle 61 added a reset at the top, but the pattern was still wrong). Now collected in a local metadata object inside parseSpeck, spread into the return value. No reset needed — the object is local to the invocation. This is the durable fix referenced in the spec-compiler-dogfood skill's anti-pattern section 'Storing per-speck parser metadata on a static function field as a quick hack.' 57/57 tests pass, both specs protoc-clean. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| dist | ||
| node_modules | ||
| out/speckl-compile | ||
| specs | ||
| src | ||
| test-output | ||
| test-output-rust/TigerBeetleLedger | ||
| .gitignore | ||
| .last-build | ||
| check-dist.sh | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||