refactor: extract contracts workspace package - #1499
Conversation
f82a936 to
0a0a30d
Compare
Size Report
Startup median (7 runs, lower is better):
Top changed chunks:
|
|
|
Review finding — not ready yet:
Please keep the screenshot-diff result contract local and exact for now, or first move its complete neutral vocabulary below the package boundary. |
|
Reviewed current head |
4d925ae to
e4cdf8d
Compare
|
Addressed in
Validation:
|
|
Re-reviewed |
|
Follow-up complete:
Validation: |
|
Re-review at |
Summary
Extract shared contracts into the private
@agent-device/contractsworkspace package behind 12 domain-oriented subpaths.Keep mutable runtime composition and registries in the root package, enforce zero package back-imports, and reduce the largest type SCC from 102 to 76.
This is W1a of #1490. The large file count is predominantly contract moves and mechanical import rewrites.
Validation
pnpm checkVITEST_MAX_WORKERS=1 pnpm check:affected --runorigin/main: +1.1 kB raw JS, -502 B gzip, -1.7 kB tarball, -4.9 kB unpacked