run402-mcp
Version:
MCP server for Run402 — full-stack backend infrastructure for AI agents: Postgres, auth, storage, serverless functions and atomic deploys. Paid with x402/MPP. Includes $0.03 image generation.
78 lines • 2.23 kB
TypeScript
import type { ReleaseSpec } from "../namespaces/deploy.types.js";
/**
* `summary.site` for `--check`: how many paths the site slice ships and a
* per-content-type tally, so "can I ship a .webp?" is answered by the
* preflight rather than by reading the SDK.
*/
export declare function summarizeSiteInventory(spec: Partial<ReleaseSpec>): {
paths: number;
by_content_type: Record<string, number>;
};
export interface LocalPreflightTarget {
project_id: string | null;
project_name: string | null;
source: "explicit" | "workspace_link" | "manifest" | "create" | "unresolved";
}
export declare function describeLocalPreflight(input: {
appRoot: string;
manifestPath: string | null;
spec?: Partial<ReleaseSpec>;
authoring?: unknown;
entryPoint?: "up" | "deploy";
target: LocalPreflightTarget;
buildDeferred?: boolean;
apiBase?: string;
profile?: string;
}): {
app_root: string;
manifest_path: string | null;
gateway_validated: false;
target: {
api_base: string | null;
profile: string | null;
project_id: string | null;
project_name: string | null;
source: "explicit" | "workspace_link" | "manifest" | "create" | "unresolved";
};
checks: ({
name: string;
status: string;
scope: string | null;
evidence_count: number;
} | {
reason?: string | undefined;
name: string;
status: string;
scope: string;
evidence_count: number;
})[];
warnings: (import("./source-scan.js").SourceScanFinding | {
code: string;
message: string;
pattern: string;
})[];
summary: {
file_references: number | null;
site: {
paths: number;
by_content_type: Record<string, number>;
};
functions: number;
migrations: number;
routes: number;
};
next_actions: ({
why: string;
argv: string[];
type: string;
} | {
why: string;
sdk_call: string;
type: string;
})[] | {
type: string;
safe_to_auto_execute: boolean;
why: string;
}[];
};
//# sourceMappingURL=preflight.d.ts.map