[Types] detach-bar-modules#7289
Conversation
Integration Test Results14 tests 6 ✅ 3s ⏱️ Results for commit f29ff49. ♻️ This comment has been updated with latest results. |
8f584a3 to
b13a5b4
Compare
b13a5b4 to
0417977
Compare
0417977 to
5ed91cc
Compare
|
why? |
6ef63d5 to
ccc2169
Compare
Short answer: they aren't engine API, and having them on This came directly out of working on spring-split. When you split Detaching them makes the split cleaner: Totally open to other ideas, this just seemed accurate to me if I was trying for "pure" types for the engine API. |
f04b32f to
f331bbf
Compare
f331bbf to
ed0fd6d
Compare
0393dcb to
8587d66
Compare
|
I don't dislike separating code not sourced from the engine like this. But I kind of do dislike a top-level "Utilities". |
8587d66 to
90f9ef8
Compare
be096b2 to
7888a85
Compare
7888a85 to
d8e03ee
Compare
d8e03ee to
5421cdb
Compare
5421cdb to
9dc84af
Compare
9dc84af to
8a312e6
Compare
8a312e6 to
1c6c6b9
Compare
1c6c6b9 to
1a561e2
Compare
1a561e2 to
b2e43fc
Compare
b2e43fc to
ec96204
Compare
ec96204 to
b7ca372
Compare
b7ca372 to
a88f00c
Compare
a88f00c to
e822b48
Compare
e822b48 to
c67bd19
Compare
Add Utilities, I18N, Debug, Lava, and GetModOptionsCopy to the System tables in luaui/system.lua and luarules/system.lua so that widgets and gadgets can access them after detach-bar-modules moves them off the Spring table. Also create .emmyrc.json (the EmmyLua analyzer config) with the detached modules in the globals list, plus type stubs for LSP/CLI support. The .emmyrc.json content matches what vscode-recommended-extensions ships, with 5 extra globals (Utilities/Debug/Lava/GetModOptionsCopy/I18N) that only become real top-level identifiers after detach-bar-modules runs. When vscode-recommended-extensions has already merged, -Xtheirs in the cherry-pick keeps this version (the superset). # Conflicts: # .emmyrc.json
Part of BAR type-error cleanup. Rebuilds idempotently from
masterviajust bar::fmt-mig-generate.What it does: Moves BAR-added helpers off the
Springtable into aBARnamespace —Spring.I18N→BAR.I18N, plusBAR.Utilities,BAR.Debug,BAR.Lava, andBAR.GetModOptionsCopy— since they aren't engine API and otherwise break type-checking against theSpringstubs.The
detach-bar-modules-envprereq exposesBARto the widget/gadget sandbox (luarules/system.lua,luaui/system.lua), bootstrapsBAR = BAR or {}ininit.lua/springOverrides.luabefore the detached defs, adds the consolidatedtypes/BAR.luastub, and listsBARas a global in.emmyrc.json. Cherry-picked on top offmtbefore the codemod runs.Branch Topology
All branches in the BAR type-error cleanup stack. Regenerated deterministically by
just bar::fmt-mig-generate. Generated 2026-07-17 07:18:45 UTC.Leaves — each targets
master, mergeable independently:styluabar-lua-codemod bracket-to-dotbar-lua-codemod rename-aliasesbar-lua-codemod detach-bar-modules<hand curated><hand curated>Rollups — composite branches stacking the leaves and (for
fmt-llm) the env + LLM layers:mastermaster.emmyrc.json,types/*stubs, CI gate) + manual fixes that drive type errors to 0 in concert with the LLM passfmt-llm-source+ one LLM type-triage commit — the mergeable tip