mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 17:08:21 -04:00
7c5182ecaf
Vite's built-in asset plugin claims known asset types (.txt) before normal-priority plugins load, rewriting the import to an asset URL string — the models.dev snapshot shipped as "/assets/snapshot-*.txt" and cold-cache catalog access died decoding it. Pre-existing instances of the same class: the node bundle's prompt and tool-description .txt imports. enforce: "pre" intercepts first; a build assertion now fails the build if text imports surface as asset URLs, since the bundle still builds and runs --help convincingly without their content. Also: drop the redundant text.d.ts (bun-types already declares *.txt), give the snapshot refresh script a provider-count floor and Windows-safe path printing.