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 differential-parity setup and what we need to implement.
- Assistant
Implementing defineOptions TypeScript output to match Vue 3.6's spread-in-
_defineComponentform, adding fixture cases, emittingrequired: truefor required props, and updating the coverage budget. - Assistant
Summary
Compiler parity work for Script Setup TypeScript is in place against the Vue differential oracle (
vize_test_runner+tests/expected/sfc/script-setup.snapfrom@vue/compiler-sfc@3.6.0-beta.10).Production changes (
vize_atelier_sfc)defineOptionsin TypeScript – Forlang="ts", options are merged with object spread inside_defineComponent(...{ inheritAttrs: false }), matching Vue 3.6. JS still usesObject.assign.- Typed props – Non-optional
defineProps<>fields now emitrequired: truein runtime props (inline and function-mode compilers), aligned with Vue and withnormalize_default_required_truein the oracle.
Fixtures & oracle
- Added three TS
defineOptionscases: inheritAttrs only, name only, custom options. - Regenerated
tests/expected/sfc/script-setup.snapfrom the real Vue compiler (72 cases). - Updated TS insta snapshots under for the new cases and .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.