UNPKG

mcp-shrimp-task-manager

Version:

Shrimp Task Manager is a task tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like develope

117 lines (116 loc) 3.96 kB
import { z } from "zod"; import { RelatedFileType } from "../../types/index.js"; export declare const splitTasksSchema: z.ZodObject<{ updateMode: z.ZodEnum<["append", "overwrite", "selective", "clearAllTasks"]>; tasks: z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; implementationGuide: z.ZodString; dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; notes: z.ZodOptional<z.ZodString>; relatedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{ path: z.ZodString; type: z.ZodNativeEnum<typeof RelatedFileType>; description: z.ZodString; lineStart: z.ZodOptional<z.ZodNumber>; lineEnd: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }, { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }>, "many">>; verificationCriteria: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; description: string; implementationGuide: string; relatedFiles?: { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }[] | undefined; notes?: string | undefined; dependencies?: string[] | undefined; verificationCriteria?: string | undefined; }, { name: string; description: string; implementationGuide: string; relatedFiles?: { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }[] | undefined; notes?: string | undefined; dependencies?: string[] | undefined; verificationCriteria?: string | undefined; }>, "many">; globalAnalysisResult: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { tasks: { name: string; description: string; implementationGuide: string; relatedFiles?: { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }[] | undefined; notes?: string | undefined; dependencies?: string[] | undefined; verificationCriteria?: string | undefined; }[]; updateMode: "append" | "overwrite" | "selective" | "clearAllTasks"; globalAnalysisResult?: string | undefined; }, { tasks: { name: string; description: string; implementationGuide: string; relatedFiles?: { path: string; type: RelatedFileType; description: string; lineStart?: number | undefined; lineEnd?: number | undefined; }[] | undefined; notes?: string | undefined; dependencies?: string[] | undefined; verificationCriteria?: string | undefined; }[]; updateMode: "append" | "overwrite" | "selective" | "clearAllTasks"; globalAnalysisResult?: string | undefined; }>; export declare function splitTasks({ updateMode, tasks, globalAnalysisResult, }: z.infer<typeof splitTasksSchema>): Promise<{ content: { type: "text"; text: string; }[]; ephemeral?: undefined; } | { content: { type: "text"; text: string; }[]; ephemeral: { taskCreationResult: { success: boolean; message: string; backupFilePath: string | null | undefined; }; }; }>;