feat(vite-plugins): Introduce caching simulation modes for asset validation in simCachePlugin

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-29 06:07:10 -07:00
parent ec61cc91c0
commit ba4b240bfa

View file

@ -32,8 +32,8 @@ export function simCachePlugin(): Plugin {
}
}
// Load climate params (extract only numeric values)
const paramsPath = path.join(dataDir, 'climate_params.json')
// Load climate params (extract only numeric values) — from world definition
const paramsPath = path.resolve(root, '../../engine/src/worlds/earth/climate_params.json')
const rawParams = JSON.parse(fs.readFileSync(paramsPath, 'utf8')) as Record<string, unknown>
climateParams = {}
for (const [k, v] of Object.entries(rawParams)) {