Repository navigation
feat(plugins): add native CI Runners plugin with direct runner API and deployment - #29
Open
drakestapleton wants to merge 1 commit into
Open
drakestapleton wants to merge 1 commit into
drakestapleton wants to merge 1 commit into
Conversation
Owner
|
Not merged. The builtin-discovery change is small, but the bundled CI Runners plugin can't ship as is:
Scope-wise, a ~2,700-line deployment tool belongs in a separately installable plugin, not bundled and default-on in every install. A PR with only the builtin-discovery change (default off, packaged, no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds bundled native plugin support to
m3/plugin-hostand ships a first-party CI Runners native plugin (m3/plugins/ci-runners/) for managing self-hosted CI runners, running a direct API layer to those runners, and deploying new runners.What's Included
Bundled Native Plugin Support (
m3/plugin-host/)PluginHostManagernow discovers bundled native plugins underm3/plugins/alongside user-installed plugins in~/.m3/plugins/(with user overrides taking precedence).builtin: true, prevents accidentaluninstalldeletion (while still allowing Enable/Disable), resolves"node"sidecar commands toprocess.execPathunder Node, and passesM3_HOME_DIR/M3_PLUGIN_DATA_DIR(~/.m3/userdata/plugins/<id>) to sidecars.M3PluginSlotHosthides theRemovebutton for built-in plugins.Native CI Runners Plugin (
m3/plugins/ci-runners/)runnerApi.mjs,server.mjs): Uniform REST API for probing live health/capacity, listing runs, triggering runs, cancelling runs, and fetching logs across:runnerDeployer.mjs): Generates auditable Docker Compose,docker run, hardened Linuxsystemdunits, and SSH bootstrap scripts, plus direct argv-based execution for local Docker or remote SSH (POST /api/deploy/execute) with optional auto-registration. Includes a zero-dependencym3-runner-agent.mjsself-hosted HTTP runner daemon (GET /api/deploy/agent-script).ui/index.html): Three tabs (Runners,Runs & Logs,Deploy Runner) wired to/api/m3-plugins/sdk.js, including one-click "Send Logs to Agent" (M3Plugin.injectPrompt) to hand failing CI traces straight to the active coding agent.runnerStore.mjs): Tokens are stored locally at0600under~/.m3/userdata/plugins/ci-runners/runners.jsonand always masked in API responses (tokenSet+tokenPreview).Verification
vp test run m3/plugin-host/PluginHostManager.test.ts m3/plugins/ci-runners/ciRunners.test.ts— 6/6 tests passed (built-in auto-discovery + sidecar spawn + uninstall guard, secret masking, end-to-end loopback probe/trigger/list/logs/cancel, Docker/systemd/SSH deployment plan generation).vp fmt --check,vp lint(0 errors),vp run --filter @t3tools/web typecheck, andvp run i18n:checkall passed.Model & harness: Gemini 4 Neon (Medium) via Antigravity.