MIDAS loads plugins but has no Cordis runtime, so the kit had no way to
register its tool or its web providers here. midas/kitd.mjs builds the
smallest ctx the plugin asks for and republishes the tool and both
providers over a loopback seam; midas/plugin.js is that seam's client and
brings up the host on demand, keeping the browser warm across restarts.
Headless Linux runs need two additions in index.js: --no-sandbox when
running as uid 0, and a chromiumArgs setting for container-specific flags.
Co-Authored-By: MIDAS <hello@trymidas.io>
Re-applies the reviewed fixes on top of upstream v3.6.4 (db71dd9), keeping the
new v3.6.4 logic intact: transparent-proxy rejection (directEgressOf), Edge
startup-boost survivor-proof restartSession (with a Firefox safety guard so
proxy relaunch never taskkills every Firefox window), and deploy-script
hardening.
Contents (unchanged from the previously reviewed branch, only rebased):
- Firefox/WebDriver BiDi: per-code-point typing, named-key table + always keyUp
(Enter/Delete/PageUp/Escape), newTab create+navigate, readyState polling in
waitForLoad, explicit session.end on detach, protocol browser.close before
restart/dispose (no orphan browsers / "Maximum number of active sessions"),
proxy relaunch + -proxy-server host:port, engine-scoped relaunch (Firefox
refuses), attach guard for a browser this process already drives.
- Shared: Space key, shadow-DOM click{text}/type{into}, aria-label-first names,
click{index} re-resolve + scrollIntoView.
- Native portability carried in: asar-aware schemastery loader, home-relative
probe path, close action no longer leaking its session before Browser.close.