Fixtures and static runs
Fixtures written to stress the tool
| Fixture | Exercises | Result |
|---|---|---|
tests/fixtures/async |
async functions on both bridges | 900/900, both gates pass |
tests/fixtures/classes |
classes: state, constructor errors, Map order, split('') on emoji |
600/600 scenarios, both gates pass |
tests/fixtures/aliases |
tsconfig paths with extends, comments, trailing commas |
analyze and record follow them |
tests/fixtures/monorepo |
a package importing a sibling with no build output | record resolves it to source |
Found in the tool, and fixed: napi turned None into null (JS gives undefined); scenarios
too short and too random to catch a stateful bug (now up to 12 calls, reusing earlier strings);
generated let out = () and immediately-called closures that clippy rejects.
External libraries (static only)
unjs/scule, unjs/ufo and unjs/pathe were cloned and analyzed and bridged. Running their
code (record executes the original) was refused by the session's safety policy for code
downloaded from the internet, so these runs stop before record.
| Library | analyze | bridge |
|---|---|---|
| scule (case conversion) | 2 units, ready | all 11 functions bridgeable after the fix below |
| ufo (URL utilities) | 7 units, ready; punycode.ts ranked first |
toASCII bridged (untyped JS: crosses as JSON) |
| pathe (path utilities) | 5 units; _glob.ts caution (dynamic regex) |
13 functions bridged; typeof path.join-typed exports cross as JSON |
Found in the tool, and fixed: constrained generics (camelCase<T extends string | readonly string[]>) were treated as "any value, functions included", which kept 10 of scule's 11
functions in TS. Type parameters with data constraints are now substituted by the constraint.
A port of scule was written (demo not included: it was never recorded against the original).