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

Open
8ball wants to merge 1 commits from midas/edge-kit-midas-host into main
Owner

Adds midas/kitd.mjs (a minimal Cordis-shaped host that applies the kit and republishes its tool + web providers over a loopback seam), midas/plugin.js (the MIDAS plugin: edge_kit, edge_kit_search, edge_kit_fetch, plus a tool.execute.after upgrade for the built-in webfetch), and midas/kit.settings.json.

Two small additions to index.js make headless Linux runs work: --no-sandbox is appended automatically when running as uid 0, and the new chromiumArgs setting appends container-specific flags. Verified with Google Chrome 157 on WSL2: /search returns organic Bing results, /fetch renders a JS-only page, and goto/see drive a live tab.

Co-Authored-By: MIDAS hello@trymidas.io

Adds midas/kitd.mjs (a minimal Cordis-shaped host that applies the kit and republishes its tool + web providers over a loopback seam), midas/plugin.js (the MIDAS plugin: edge_kit, edge_kit_search, edge_kit_fetch, plus a tool.execute.after upgrade for the built-in webfetch), and midas/kit.settings.json. Two small additions to index.js make headless Linux runs work: --no-sandbox is appended automatically when running as uid 0, and the new chromiumArgs setting appends container-specific flags. Verified with Google Chrome 157 on WSL2: /search returns organic Bing results, /fetch renders a JS-only page, and goto/see drive a live tab. Co-Authored-By: MIDAS <hello@trymidas.io>
8ball added 1 commit 2026-11-10 15:48:19 +00:00
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 pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin midas/edge-kit-midas-host:midas/edge-kit-midas-host
git checkout midas/edge-kit-midas-host
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 8ball/edge-kit#1