MCPcopy Create free account
hub / github.com/cortexkit/magic-context / ensurePluginAvailable

Function ensurePluginAvailable

packages/e2e-tests/src/pi-runner/spawn.ts:108–116  ·  view source on GitHub ↗
(env: PiIsolatedEnv)

Source from the content-addressed store, hash-verified

106}
107
108export function ensurePluginAvailable(env: PiIsolatedEnv): void {
109 const distEntry = join(PI_PLUGIN_ROOT, "dist", "index.js");
110 if (!existsSync(distEntry)) {
111 throw new Error(`${distEntry} is missing. Run: cd packages/pi-plugin && bun run build`);
112 }
113 if (!existsSync(env.pluginDir)) {
114 symlinkSync(PI_PLUGIN_ROOT, env.pluginDir, "dir");
115 }
116}
117
118export function writeConfigs(env: PiIsolatedEnv, opts: PiRunnerOptions): void {
119 ensurePluginAvailable(env);

Callers 1

writeConfigsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected