/** * Issues Tools * MCP tools for tracking bugs and features as Markdown files (title + body + labels + comments) */ import { z } from 'zod'; import type { ExecuteToolCall } from '../types.js'; /** * Upper bound on how long `resolve` will wait for a human to respond to the * interactive "ready to begin?" / "is this fixed?" overlays. Kept comfortably * under Puppeteer's default protocolTimeout (180_000ms) so that a human * simply walking away surfaces as our own typed ISSUES_RESOLVE_TIMEOUT error * instead of a raw `Runtime.callFunctionOn timed out` leaking through from * the underlying page.evaluate() call that waits on the overlay's Promise. * Exported so tests can pass a much shorter value. */ export declare const DEFAULT_RESOLVE_VERIFICATION_TIMEOUT_MS = 150000; export declare function createIssuesTools(executeToolCall: ExecuteToolCall, getSequencePath?: (name: string) => Promise, getPageForConnection?: (connectionReason: string) => Promise): { issues: { description: string; zodSchema: z.ZodObject<{ action: z.ZodEnum<["list", "create", "workOn", "resolve", "acknowledge", "comment"]>; id: z.ZodOptional; type: z.ZodOptional>; status: z.ZodOptional>; title: z.ZodOptional; body: z.ZodOptional; labels: z.ZodOptional>; text: z.ZodOptional; sequenceName: z.ZodOptional; startUrl: z.ZodOptional; connectionReason: z.ZodOptional; connections: z.ZodOptional>; keepBrowserOpen: z.ZodOptional; search: z.ZodOptional; includeCompleted: z.ZodOptional; includeSequence: z.ZodOptional; }, "strict", z.ZodTypeAny, { action: "acknowledge" | "list" | "comment" | "create" | "workOn" | "resolve"; type?: "bug" | "feature" | undefined; status?: "pending" | "fixed" | "acknowledged" | "in_progress" | "implemented" | undefined; search?: string | undefined; id?: number | undefined; text?: string | undefined; body?: string | undefined; title?: string | undefined; labels?: string[] | undefined; startUrl?: string | undefined; includeCompleted?: boolean | undefined; connectionReason?: string | undefined; sequenceName?: string | undefined; connections?: Record | undefined; keepBrowserOpen?: boolean | undefined; includeSequence?: boolean | undefined; }, { action: "acknowledge" | "list" | "comment" | "create" | "workOn" | "resolve"; type?: "bug" | "feature" | undefined; status?: "pending" | "fixed" | "acknowledged" | "in_progress" | "implemented" | undefined; search?: string | undefined; id?: number | undefined; text?: string | undefined; body?: string | undefined; title?: string | undefined; labels?: string[] | undefined; startUrl?: string | undefined; includeCompleted?: boolean | undefined; connectionReason?: string | undefined; sequenceName?: string | undefined; connections?: Record | undefined; keepBrowserOpen?: boolean | undefined; includeSequence?: boolean | undefined; }>; inputSchema: import("zod-to-json-schema").JsonSchema7Type & { $schema?: string | undefined; definitions?: { [key: string]: import("zod-to-json-schema").JsonSchema7Type; } | undefined; }; handler: (args: { action: "acknowledge" | "list" | "comment" | "create" | "workOn" | "resolve"; type?: "bug" | "feature" | undefined; status?: "pending" | "fixed" | "acknowledged" | "in_progress" | "implemented" | undefined; search?: string | undefined; id?: number | undefined; text?: string | undefined; body?: string | undefined; title?: string | undefined; labels?: string[] | undefined; startUrl?: string | undefined; includeCompleted?: boolean | undefined; connectionReason?: string | undefined; sequenceName?: string | undefined; connections?: Record | undefined; keepBrowserOpen?: boolean | undefined; includeSequence?: boolean | undefined; }, abortSignal?: AbortSignal) => Promise; }; }; //# sourceMappingURL=issues-tools.d.ts.map