trigger.dev
Version:
A Command-Line Interface for Trigger.dev projects
13 lines (12 loc) • 599 B
TypeScript
import type { McpCommandOptions } from "../commands/mcp.js";
import type { McpContextOptions } from "./context.js";
import type { FileLogger } from "./logger.js";
/**
* Map parsed CLI options onto the `McpContext` options. `devOnly` must be
* forwarded here or the context sees `undefined` and its dev-only guards
* never fire.
*
* Kept in its own module (type-only imports) so the wiring can be
* unit-tested without loading the full command/tool/build chain.
*/
export declare function toMcpContextOptions(options: McpCommandOptions, fileLogger: FileLogger | undefined): McpContextOptions;