refactor: modularize plugin runtime and test hooks

This commit is contained in:
Peter Steinberger
2026-03-03 02:06:50 +00:00
parent f77f1d3800
commit 0fd77c9856
15 changed files with 812 additions and 619 deletions

View File

@@ -0,0 +1,14 @@
import { requestHeartbeatNow } from "../../infra/heartbeat-wake.js";
import { enqueueSystemEvent } from "../../infra/system-events.js";
import { runCommandWithTimeout } from "../../process/exec.js";
import { formatNativeDependencyHint } from "./native-deps.js";
import type { PluginRuntime } from "./types.js";
export function createRuntimeSystem(): PluginRuntime["system"] {
return {
enqueueSystemEvent,
requestHeartbeatNow,
runCommandWithTimeout,
formatNativeDependencyHint,
};
}