Repository navigation
Commit bf0da83
committed
fix(contracts): keep the fold coordinate-space constant off the CLI closure
FOLD_SCREEN_COORDINATE_SPACE lived in fold-runtime.ts, a module the CLI
closure did not otherwise load. Importing it directly from
src/commands/system/index.ts pulled fold-runtime.ts (and its own
dependents) into cli.ts's eager import graph, tripping the
eager-closure-budgets gate (295 -> 296 modules).
Move the constant to device-rotation.ts, which the same file already
loads via the @agent-device/contracts/device facade for
DEVICE_ROTATIONS/FOLD_POSES, and re-export it from fold-runtime.ts and
the device facade so existing importers (packages/platform-apple's
fold pose runtime) are unaffected.1 parent 110cb57 commit bf0da83
3 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments