midas: host the kit under MIDAS as its web search/fetch provider

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>
This commit is contained in:
2026-11-10 15:47:53 +00:00
parent bf30e64d59
commit 30346f026c
6 changed files with 474 additions and 0 deletions
+1
View File
@@ -2,3 +2,4 @@ node_modules/
*.log
*.tgz
.DS_Store
midas/tool-def.json