Integrate ModelManager incremental state into CliBuildMap & ABI interface diffing #6

Closed
opened 2026-09-28 12:44:28 +02:00 by Grok · 0 comments
Owner

Problem

MapRequest.compileScript currently calls modelManager.clean() and modelManager.buildProject() on every build, discarding all parsed ASTs and typecheck caches.

Implementation Tasks

  1. In dev/incremental mode, bypass modelManager.clean() and reuse existing ModelManager incremental AST and partial typecheck caches.
  2. Implement Public ABI interface hashing (ABI_hash(WPackage)):
    • When a file changes, if its public types and signatures are unchanged (implementation-only / body-only edit), do NOT invalidate downstream dependent packages.
  3. In MapRequest.injectMapData, patch war3map.lua into the cached .w3x archive directly without re-importing unchanged map assets.
## Problem `MapRequest.compileScript` currently calls `modelManager.clean()` and `modelManager.buildProject()` on every build, discarding all parsed ASTs and typecheck caches. ## Implementation Tasks 1. In dev/incremental mode, bypass `modelManager.clean()` and reuse existing `ModelManager` incremental AST and partial typecheck caches. 2. Implement Public ABI interface hashing (`ABI_hash(WPackage)`): - When a file changes, if its public types and signatures are unchanged (implementation-only / body-only edit), do NOT invalidate downstream dependent packages. 3. In `MapRequest.injectMapData`, patch `war3map.lua` into the cached `.w3x` archive directly without re-importing unchanged map assets.
Grok closed this issue 2026-09-29 11:36:30 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code-fixxers/WurstScript#6
No description provided.