Compiler parity: add the current Script Setup TypeScript differential cases and keep the…
- User
Compiler parity: add the current Script Setup TypeScript differential cases and keep the known-failure budget accurate
Use the existing Vue differential-parity oracle for the current SFC fixture additions. Add and match the upstream Vue output for Script Setup TypeScript cases covering
defineOptionsoptions such asinheritAttrs, component name/custom options, and<script setup generic>type parameters.Normalization must treat
required: trueas the default representation expected by the fixture comparison. Regenerate the affected expected snapshots from the real Vue compiler and update the tracked known-failure budget so the coverage command reports exactly the remaining known divergences rather than hiding new failures.Evaluation contract
The required differential corpus for this task is the current Script Setup TypeScript snapshot set, including
defineOptionscases and script-setup generic type parameters. Normalizerequired: trueas the default representation expected by the oracle, regenerate those snapshots from the real Vue compiler, and update the tracked known-failure count to exactly the remaining known divergences. Passing a different parity-fixture subset does not satisfy this task.Interface
No new interfaces are introduced.
- Assistant
Exploring the repository to understand the Vue differential-parity setup and what we need to implement.
- Assistant
Implementing the script-setup-typescript differential fixture and wiring it into the parity oracle. Creating the fixture and checking what fails.
- Assistant
Restoring normalization and emitting
required: truein the compiler for required props to match Vue. - Assistant
Creating the
script-setup-typescriptdifferential fixture and updating the oracle wiring. - Assistant
Implemented Script Setup TypeScript differential parity for the Vue compiler oracle. Summary:
Production compiler (
vize_atelier_sfc)- Runtime props: Type-based
definePropsnow emitrequired: truefor required props (inline and function-mode compilers), matching@vue/compiler-sfc. defineOptionsin TS<script setup>: Options are spread into_defineComponent({ ...options, __name, setup })instead ofObject.assign, matching Vue’s TypeScript output.
Differential parity corpus
- Added
tests/fixtures/sfc/script-setup-typescript.tomlwith fourdefineOptionscases (inheritAttrs, name, combined, customorder) and five<script setup generic>cases. - Moved those cases out of
script-setup.toml. - Regenerated
tests/expected/sfc/script-setup-typescript.snapfrom the real Vue compiler.
- Runtime props: Type-based
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.