build(repo): restore build tools and define the workspace layout

Restore the reviewed pack, PE, and patch tooling. Specify a TypeScript
build pipeline, a type-preserving BLK codec, and a configurable loopback
port selected at launch. Document the package boundaries.
This commit is contained in:
N0VAN0M4LY committed 2026-11-24 00:19:04 +08:00
1 parent 7b6d8973d1
commit 89aa5198c3
25 files changed
+1155

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
"""Locate and apply the declared changes to aces.exe.
The patches themselves live as data under exe-patches/; this package is only the engine.
Order of work, and the reason for it: find every site and verify every original byte first
(plan), then write (apply). A site that is missing or ambiguous is reported, never guessed,
so a game update produces a list of unavailable patches and the features they cover rather
than a broken executable.
`authoring` and `assemble` are development-side only: they need a disassembler and an
assembler, and are imported explicitly rather than from here.
"""
from .apply import apply_writes, changed_ranges
from .definition import PatchDefinition, PatchEdit, load_patches
from .errors import DefinitionError, LocateError, PatchError, VerifyError
from .plan import PatchFailure, PatchPlan, PlannedWrite, plan_patches
__all__ = [
"DefinitionError",
"LocateError",
"PatchDefinition",
"PatchEdit",
"PatchError",
"PatchFailure",
"PatchPlan",
"PlannedWrite",
"VerifyError",
"apply_writes",
"changed_ranges",
"load_patches",
"plan_patches",
]