MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ensureMcpAppsShell

Function ensureMcpAppsShell

apps/cli/src/build.ts:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41const mcpAppsShellHtml = join(mcpAppsShellDir, "dist/mcp-app.html");
42
43const ensureMcpAppsShell = async (): Promise<string> => {
44 if (!existsSync(mcpAppsShellHtml)) {
45 console.log("Building MCP-Apps shell (mcp-app.html)...");
46 await $`bun run --cwd ${mcpAppsShellDir} build:shell`.quiet();
47 }
48 if (!existsSync(mcpAppsShellHtml)) {
49 throw new Error(`MCP-Apps shell missing at ${mcpAppsShellHtml} after build:shell`);
50 }
51 return mcpAppsShellHtml;
52};
53
54const resolveOnePasswordCoreWasmPath = (): string => {
55 const req = createRequire(join(repoRoot, "packages/plugins/onepassword/package.json"));

Callers 1

buildBinariesFunction · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected