You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
Repair bundled development runtime ordering
Work in /app/vendor/vite. The frozen source implements an experimental bundled
development mode, but its client runtime is currently attached at the wrong layer.
Repair the existing production source so all of these behaviors hold:
Define one exported canonical filename for the bundled development client in the
shared node constants module, and use it consistently for both the built client entry
path and the in-memory server filename.
During serve for a bundled client environment, generated HTML must contain a
<script type="module"> for that client. Its src must honor the configured base.
The client script must be the first element injected into <head>, before generated
application chunk scripts. Existing application script order must otherwise remain
unchanged.
The in-memory bundled server must continue serving the client runtime file, but entry
chunk source must be returned unchanged: it must not prepend another client import.
Normal production builds, server/SSR consumers, and unbundled development behavior
must remain unchanged.
Modify the existing production modules; do not solve this by replacing the repository,
adding a parallel evaluator, changing upstream tests, or hard-coding only the root-base
case. At minimum, the repair is expected to involve:
The command must write /app/regression-report.json using the schema documented in
/app/REPAIR_CONTRACT.md. The private verifier independently recomputes the behaviors
from the repaired production source; the report alone is not sufficient.