@capgo/cli
Version:
A CLI to upload to capgo servers
17 lines (16 loc) • 932 B
TypeScript
import type { McpRegistrar } from '../../../mcp/registrar.js';
import type { BuildJobDeps } from './build-job.js';
/**
* Production build-job deps: spawn the published CLI's `build request` as a
* tracked background child streaming to a local log file, read/clear the build
* record, and drain the log file by byte offset. No cloud cancel in v1 (cancel
* stops the local watcher; the cloud build may still finish — surfaced in the
* result). All injectable for tests (test-mcp-build-job covers the manager).
*/
export declare function buildJobDeps(cwd: string): BuildJobDeps;
/**
* Register the build tools onto an MCP server. `getAppId` resolves the current
* project's Capgo app id; `deps` are the build-job mechanics (production via
* buildJobDeps; injectable fakes in tests).
*/
export declare function registerBuildTools(server: McpRegistrar, getAppId: () => Promise<string | undefined>, deps: BuildJobDeps): void;