refactor(native-host): modularize host.js and holesail-manager.js
CI / Build & Test (push) Successful in 2m46s

Split host.js (435 lines) into host/{paths,logger,startup,message-router}.js.
Split holesail-manager.js (698 lines) into holesail-manager/{state,settings,
connections,port-allocator,servers,virtual-hosts,service-tunnels,index}.js.

Top-level host.js and holesail-manager.js become thin shims so index.mjs
requires no changes. Deleted dev scratch file test-cp.mjs.

Updated CI with 12 new node --check lines for all sub-modules.
Updated docs/ARCHITECTURE.md with per-file tables for host/ and
holesail-manager/ sub-modules.

No functionality changed. No new dependencies.
This commit is contained in:
Raven Scott
2026-02-28 23:15:08 -05:00
parent 82ab44c4b1
commit 15caac7032
17 changed files with 1274 additions and 1136 deletions
+12
View File
@@ -76,6 +76,18 @@ jobs:
node --check native-host/https-proxy.js
node --check native-host/connect-proxy.js
node --check native-host/messenger.js
node --check native-host/host/paths.js
node --check native-host/host/logger.js
node --check native-host/host/startup.js
node --check native-host/host/message-router.js
node --check native-host/holesail-manager/state.js
node --check native-host/holesail-manager/settings.js
node --check native-host/holesail-manager/connections.js
node --check native-host/holesail-manager/port-allocator.js
node --check native-host/holesail-manager/servers.js
node --check native-host/holesail-manager/virtual-hosts.js
node --check native-host/holesail-manager/service-tunnels.js
node --check native-host/holesail-manager/index.js
- name: Lint — syntax check build scripts
run: |