UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

29 lines (28 loc) 1.21 kB
import { z } from "zod"; import type { McpContext } from "./context.js"; /** The same schemas the tool uses, so a bad key is rejected here rather than by get_report. */ export declare const ReportPromptArgs: z.ZodObject<{ key: z.ZodOptional<z.ZodEnum<{ health: "health"; }>>; environment: z.ZodOptional<z.ZodEnum<{ dev: "dev"; preview: "preview"; prod: "prod"; staging: "staging"; }>>; period: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type ReportPromptArgs = z.input<typeof ReportPromptArgs>; /** Values go through `JSON.stringify` so a quote or newline can't close the snippet. */ export declare function formatToolArgs(args: Record<string, string>): string; /** Build the prompt text, rejecting arguments `get_report` would not accept. */ export declare function buildReportPromptText(rawArgs: ReportPromptArgs, options?: { devOnly?: boolean; }): string; /** * MCP prompts surface as slash commands in hosts that support them (Claude Code renders * this as /mcp__trigger__report), so `/report health` is a real command — no per-project * files needed. */ export declare function registerPrompts(context: McpContext): void;