mcp-taskflow 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/LICENSE.md +21 -0
- package/README.md +275 -0
- package/dist/config/pathResolver.d.ts +33 -0
- package/dist/config/pathResolver.d.ts.map +1 -0
- package/dist/config/pathResolver.js +130 -0
- package/dist/config/pathResolver.js.map +1 -0
- package/dist/data/fileOperations.d.ts +43 -0
- package/dist/data/fileOperations.d.ts.map +1 -0
- package/dist/data/fileOperations.js +248 -0
- package/dist/data/fileOperations.js.map +1 -0
- package/dist/data/memoryStore.d.ts +86 -0
- package/dist/data/memoryStore.d.ts.map +1 -0
- package/dist/data/memoryStore.js +216 -0
- package/dist/data/memoryStore.js.map +1 -0
- package/dist/data/rulesStore.d.ts +63 -0
- package/dist/data/rulesStore.d.ts.map +1 -0
- package/dist/data/rulesStore.js +196 -0
- package/dist/data/rulesStore.js.map +1 -0
- package/dist/data/schemas.d.ts +840 -0
- package/dist/data/schemas.d.ts.map +1 -0
- package/dist/data/schemas.js +265 -0
- package/dist/data/schemas.js.map +1 -0
- package/dist/data/taskSearchService.d.ts +110 -0
- package/dist/data/taskSearchService.d.ts.map +1 -0
- package/dist/data/taskSearchService.js +165 -0
- package/dist/data/taskSearchService.js.map +1 -0
- package/dist/data/taskStore.d.ts +192 -0
- package/dist/data/taskStore.d.ts.map +1 -0
- package/dist/data/taskStore.js +347 -0
- package/dist/data/taskStore.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +17 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/projectPromptBuilder.d.ts +13 -0
- package/dist/prompts/projectPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/projectPromptBuilder.js +29 -0
- package/dist/prompts/projectPromptBuilder.js.map +1 -0
- package/dist/prompts/researchPromptBuilder.d.ts +10 -0
- package/dist/prompts/researchPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/researchPromptBuilder.js +20 -0
- package/dist/prompts/researchPromptBuilder.js.map +1 -0
- package/dist/prompts/taskPromptBuilders.d.ts +87 -0
- package/dist/prompts/taskPromptBuilders.d.ts.map +1 -0
- package/dist/prompts/taskPromptBuilders.js +529 -0
- package/dist/prompts/taskPromptBuilders.js.map +1 -0
- package/dist/prompts/templateEngine.d.ts +102 -0
- package/dist/prompts/templateEngine.d.ts.map +1 -0
- package/dist/prompts/templateEngine.js +145 -0
- package/dist/prompts/templateEngine.js.map +1 -0
- package/dist/prompts/templateLoader.d.ts +61 -0
- package/dist/prompts/templateLoader.d.ts.map +1 -0
- package/dist/prompts/templateLoader.js +129 -0
- package/dist/prompts/templateLoader.js.map +1 -0
- package/dist/prompts/templates/v1/templates_en/analyzeTask/index.md +65 -0
- package/dist/prompts/templates/v1/templates_en/analyzeTask/iteration.md +12 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/backupInfo.md +1 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/cancel.md +7 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/empty.md +5 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/index.md +5 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/result.md +7 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/success.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/completed.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/index.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/notFound.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/result.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/success.md +5 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/analysisResult.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/complexity.md +15 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/dependencies.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/dependencyTasks.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/implementationGuide.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/index.md +39 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/notes.md +1 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/relatedFilesSummary.md +5 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/verificationCriteria.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/complatedSummary.md +5 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/dependencies.md +1 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/error.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/implementationGuide.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/index.md +25 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/notFound.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/notes.md +1 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/relatedFiles.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/verificationCriteria.md +3 -0
- package/dist/prompts/templates/v1/templates_en/initProjectRules/index.md +81 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/index.md +7 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/notFound.md +3 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/taskDetails.md +13 -0
- package/dist/prompts/templates/v1/templates_en/planTask/hasThought.md +4 -0
- package/dist/prompts/templates/v1/templates_en/planTask/index.md +96 -0
- package/dist/prompts/templates/v1/templates_en/planTask/noThought.md +4 -0
- package/dist/prompts/templates/v1/templates_en/planTask/tasks.md +17 -0
- package/dist/prompts/templates/v1/templates_en/processThought/complatedThought.md +6 -0
- package/dist/prompts/templates/v1/templates_en/processThought/index.md +13 -0
- package/dist/prompts/templates/v1/templates_en/processThought/moreThought.md +1 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/index.md +24 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/notFound.md +15 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/taskDetails.md +5 -0
- package/dist/prompts/templates/v1/templates_en/reflectTask/index.md +57 -0
- package/dist/prompts/templates/v1/templates_en/researchMode/index.md +95 -0
- package/dist/prompts/templates/v1/templates_en/researchMode/previousState.md +9 -0
- package/dist/prompts/templates/v1/templates_en/splitTasks/index.md +34 -0
- package/dist/prompts/templates/v1/templates_en/splitTasks/taskDetails.md +12 -0
- package/dist/prompts/templates/v1/templates_en/tests/basic.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/analyzeTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/clearAllTasks.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/deleteTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/executeTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/getTaskDetail.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/initProjectRules.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/listTasks.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/planTask.md +3 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/processThought.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/queryTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/reflectTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/researchMode.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/splitTasks.md +83 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/updateTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/verifyTask.md +37 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/emptyUpdate.md +5 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/fileDetails.md +1 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/index.md +7 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/notFound.md +5 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/success.md +9 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/successDetails.md +3 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/validation.md +5 -0
- package/dist/prompts/templates/v1/templates_en/verifyTask/index.md +19 -0
- package/dist/prompts/templates/v1/templates_en/verifyTask/noPass.md +12 -0
- package/dist/prompts/thoughtPromptBuilder.d.ts +11 -0
- package/dist/prompts/thoughtPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/thoughtPromptBuilder.js +30 -0
- package/dist/prompts/thoughtPromptBuilder.js.map +1 -0
- package/dist/server/container.d.ts +111 -0
- package/dist/server/container.d.ts.map +1 -0
- package/dist/server/container.js +135 -0
- package/dist/server/container.js.map +1 -0
- package/dist/server/logger.d.ts +98 -0
- package/dist/server/logger.d.ts.map +1 -0
- package/dist/server/logger.js +295 -0
- package/dist/server/logger.js.map +1 -0
- package/dist/server/mcpServer.d.ts +162 -0
- package/dist/server/mcpServer.d.ts.map +1 -0
- package/dist/server/mcpServer.js +236 -0
- package/dist/server/mcpServer.js.map +1 -0
- package/dist/tools/project/index.d.ts +7 -0
- package/dist/tools/project/index.d.ts.map +1 -0
- package/dist/tools/project/index.js +7 -0
- package/dist/tools/project/index.js.map +1 -0
- package/dist/tools/project/projectTools.d.ts +17 -0
- package/dist/tools/project/projectTools.d.ts.map +1 -0
- package/dist/tools/project/projectTools.js +73 -0
- package/dist/tools/project/projectTools.js.map +1 -0
- package/dist/tools/research/index.d.ts +7 -0
- package/dist/tools/research/index.d.ts.map +1 -0
- package/dist/tools/research/index.js +7 -0
- package/dist/tools/research/index.js.map +1 -0
- package/dist/tools/research/researchTools.d.ts +16 -0
- package/dist/tools/research/researchTools.d.ts.map +1 -0
- package/dist/tools/research/researchTools.js +41 -0
- package/dist/tools/research/researchTools.js.map +1 -0
- package/dist/tools/task/index.d.ts +8 -0
- package/dist/tools/task/index.d.ts.map +1 -0
- package/dist/tools/task/index.js +8 -0
- package/dist/tools/task/index.js.map +1 -0
- package/dist/tools/task/taskTools.d.ts +32 -0
- package/dist/tools/task/taskTools.d.ts.map +1 -0
- package/dist/tools/task/taskTools.js +542 -0
- package/dist/tools/task/taskTools.js.map +1 -0
- package/dist/tools/thought/index.d.ts +7 -0
- package/dist/tools/thought/index.d.ts.map +1 -0
- package/dist/tools/thought/index.js +7 -0
- package/dist/tools/thought/index.js.map +1 -0
- package/dist/tools/thought/thoughtTools.d.ts +16 -0
- package/dist/tools/thought/thoughtTools.d.ts.map +1 -0
- package/dist/tools/thought/thoughtTools.js +47 -0
- package/dist/tools/thought/thoughtTools.js.map +1 -0
- package/docs/API.md +32 -0
- package/docs/ARCHITECTURE.md +44 -0
- package/docs/COMPATIBILITY_REPORT.md +26 -0
- package/docs/PERFORMANCE.md +66 -0
- package/package.json +77 -0
|
@@ -0,0 +1,840 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for runtime validation
|
|
3
|
+
*
|
|
4
|
+
* These schemas validate all external input from MCP clients.
|
|
5
|
+
* TypeScript types alone provide no runtime protection!
|
|
6
|
+
*/
|
|
7
|
+
import { z } from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Task status validation
|
|
10
|
+
* Allowlist validation - only these 4 values permitted.
|
|
11
|
+
*/
|
|
12
|
+
export declare const TaskStatusSchema: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
13
|
+
/**
|
|
14
|
+
* Task dependency schema
|
|
15
|
+
* NOTE: The 'name' field is computed at runtime for display purposes
|
|
16
|
+
*/
|
|
17
|
+
export declare const TaskDependencySchema: z.ZodObject<{
|
|
18
|
+
taskId: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
taskId: string;
|
|
21
|
+
}, {
|
|
22
|
+
taskId: string;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Related file type enum
|
|
26
|
+
* Allowlist validation - only permitted file relationship types.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RelatedFileTypeSchema: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
29
|
+
/**
|
|
30
|
+
* Related file schema
|
|
31
|
+
* Note: Paths will be sanitized separately before file operations.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RelatedFileSchema: z.ZodObject<{
|
|
34
|
+
path: z.ZodString;
|
|
35
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
36
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
path: string;
|
|
41
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
42
|
+
description?: string | null | undefined;
|
|
43
|
+
lineStart?: number | null | undefined;
|
|
44
|
+
lineEnd?: number | null | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
path: string;
|
|
47
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
48
|
+
description?: string | null | undefined;
|
|
49
|
+
lineStart?: number | null | undefined;
|
|
50
|
+
lineEnd?: number | null | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Main task item schema
|
|
54
|
+
* Validates all task fields with strict limits to prevent malformed data.
|
|
55
|
+
*/
|
|
56
|
+
export declare const TaskItemSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
description: z.ZodString;
|
|
60
|
+
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
61
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
62
|
+
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
63
|
+
taskId: z.ZodString;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
taskId: string;
|
|
66
|
+
}, {
|
|
67
|
+
taskId: string;
|
|
68
|
+
}>, "many">>;
|
|
69
|
+
createdAt: z.ZodString;
|
|
70
|
+
updatedAt: z.ZodString;
|
|
71
|
+
completedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
72
|
+
summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
relatedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
76
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
77
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
78
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
path: string;
|
|
81
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
82
|
+
description?: string | null | undefined;
|
|
83
|
+
lineStart?: number | null | undefined;
|
|
84
|
+
lineEnd?: number | null | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
path: string;
|
|
87
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
88
|
+
description?: string | null | undefined;
|
|
89
|
+
lineStart?: number | null | undefined;
|
|
90
|
+
lineEnd?: number | null | undefined;
|
|
91
|
+
}>, "many">>;
|
|
92
|
+
analysisResult: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
94
|
+
implementationGuide: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
|
+
verificationCriteria: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
98
|
+
description: string;
|
|
99
|
+
id: string;
|
|
100
|
+
name: string;
|
|
101
|
+
dependencies: {
|
|
102
|
+
taskId: string;
|
|
103
|
+
}[];
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
relatedFiles: {
|
|
107
|
+
path: string;
|
|
108
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
109
|
+
description?: string | null | undefined;
|
|
110
|
+
lineStart?: number | null | undefined;
|
|
111
|
+
lineEnd?: number | null | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
notes?: string | null | undefined;
|
|
114
|
+
completedAt?: string | null | undefined;
|
|
115
|
+
summary?: string | null | undefined;
|
|
116
|
+
analysisResult?: string | null | undefined;
|
|
117
|
+
agent?: string | null | undefined;
|
|
118
|
+
implementationGuide?: string | null | undefined;
|
|
119
|
+
verificationCriteria?: string | null | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
122
|
+
description: string;
|
|
123
|
+
id: string;
|
|
124
|
+
name: string;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
notes?: string | null | undefined;
|
|
128
|
+
dependencies?: {
|
|
129
|
+
taskId: string;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
completedAt?: string | null | undefined;
|
|
132
|
+
summary?: string | null | undefined;
|
|
133
|
+
relatedFiles?: {
|
|
134
|
+
path: string;
|
|
135
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
136
|
+
description?: string | null | undefined;
|
|
137
|
+
lineStart?: number | null | undefined;
|
|
138
|
+
lineEnd?: number | null | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
analysisResult?: string | null | undefined;
|
|
141
|
+
agent?: string | null | undefined;
|
|
142
|
+
implementationGuide?: string | null | undefined;
|
|
143
|
+
verificationCriteria?: string | null | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
* Task document schema (root JSON structure)
|
|
147
|
+
* Version field used for schema migration support.
|
|
148
|
+
*/
|
|
149
|
+
export declare const TaskDocumentSchema: z.ZodObject<{
|
|
150
|
+
version: z.ZodString;
|
|
151
|
+
tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
description: z.ZodString;
|
|
155
|
+
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
|
+
status: z.ZodEnum<["pending", "in_progress", "completed", "blocked"]>;
|
|
157
|
+
dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
158
|
+
taskId: z.ZodString;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
taskId: string;
|
|
161
|
+
}, {
|
|
162
|
+
taskId: string;
|
|
163
|
+
}>, "many">>;
|
|
164
|
+
createdAt: z.ZodString;
|
|
165
|
+
updatedAt: z.ZodString;
|
|
166
|
+
completedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
167
|
+
summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
168
|
+
relatedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
169
|
+
path: z.ZodString;
|
|
170
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
171
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
172
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
173
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
path: string;
|
|
176
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
177
|
+
description?: string | null | undefined;
|
|
178
|
+
lineStart?: number | null | undefined;
|
|
179
|
+
lineEnd?: number | null | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
path: string;
|
|
182
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
183
|
+
description?: string | null | undefined;
|
|
184
|
+
lineStart?: number | null | undefined;
|
|
185
|
+
lineEnd?: number | null | undefined;
|
|
186
|
+
}>, "many">>;
|
|
187
|
+
analysisResult: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
188
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
189
|
+
implementationGuide: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
190
|
+
verificationCriteria: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
193
|
+
description: string;
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
dependencies: {
|
|
197
|
+
taskId: string;
|
|
198
|
+
}[];
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
relatedFiles: {
|
|
202
|
+
path: string;
|
|
203
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
204
|
+
description?: string | null | undefined;
|
|
205
|
+
lineStart?: number | null | undefined;
|
|
206
|
+
lineEnd?: number | null | undefined;
|
|
207
|
+
}[];
|
|
208
|
+
notes?: string | null | undefined;
|
|
209
|
+
completedAt?: string | null | undefined;
|
|
210
|
+
summary?: string | null | undefined;
|
|
211
|
+
analysisResult?: string | null | undefined;
|
|
212
|
+
agent?: string | null | undefined;
|
|
213
|
+
implementationGuide?: string | null | undefined;
|
|
214
|
+
verificationCriteria?: string | null | undefined;
|
|
215
|
+
}, {
|
|
216
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
217
|
+
description: string;
|
|
218
|
+
id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
createdAt: string;
|
|
221
|
+
updatedAt: string;
|
|
222
|
+
notes?: string | null | undefined;
|
|
223
|
+
dependencies?: {
|
|
224
|
+
taskId: string;
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
completedAt?: string | null | undefined;
|
|
227
|
+
summary?: string | null | undefined;
|
|
228
|
+
relatedFiles?: {
|
|
229
|
+
path: string;
|
|
230
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
231
|
+
description?: string | null | undefined;
|
|
232
|
+
lineStart?: number | null | undefined;
|
|
233
|
+
lineEnd?: number | null | undefined;
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
analysisResult?: string | null | undefined;
|
|
236
|
+
agent?: string | null | undefined;
|
|
237
|
+
implementationGuide?: string | null | undefined;
|
|
238
|
+
verificationCriteria?: string | null | undefined;
|
|
239
|
+
}>, "many">>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
version: string;
|
|
242
|
+
tasks: {
|
|
243
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
244
|
+
description: string;
|
|
245
|
+
id: string;
|
|
246
|
+
name: string;
|
|
247
|
+
dependencies: {
|
|
248
|
+
taskId: string;
|
|
249
|
+
}[];
|
|
250
|
+
createdAt: string;
|
|
251
|
+
updatedAt: string;
|
|
252
|
+
relatedFiles: {
|
|
253
|
+
path: string;
|
|
254
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
255
|
+
description?: string | null | undefined;
|
|
256
|
+
lineStart?: number | null | undefined;
|
|
257
|
+
lineEnd?: number | null | undefined;
|
|
258
|
+
}[];
|
|
259
|
+
notes?: string | null | undefined;
|
|
260
|
+
completedAt?: string | null | undefined;
|
|
261
|
+
summary?: string | null | undefined;
|
|
262
|
+
analysisResult?: string | null | undefined;
|
|
263
|
+
agent?: string | null | undefined;
|
|
264
|
+
implementationGuide?: string | null | undefined;
|
|
265
|
+
verificationCriteria?: string | null | undefined;
|
|
266
|
+
}[];
|
|
267
|
+
}, {
|
|
268
|
+
version: string;
|
|
269
|
+
tasks?: {
|
|
270
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
271
|
+
description: string;
|
|
272
|
+
id: string;
|
|
273
|
+
name: string;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
updatedAt: string;
|
|
276
|
+
notes?: string | null | undefined;
|
|
277
|
+
dependencies?: {
|
|
278
|
+
taskId: string;
|
|
279
|
+
}[] | undefined;
|
|
280
|
+
completedAt?: string | null | undefined;
|
|
281
|
+
summary?: string | null | undefined;
|
|
282
|
+
relatedFiles?: {
|
|
283
|
+
path: string;
|
|
284
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
285
|
+
description?: string | null | undefined;
|
|
286
|
+
lineStart?: number | null | undefined;
|
|
287
|
+
lineEnd?: number | null | undefined;
|
|
288
|
+
}[] | undefined;
|
|
289
|
+
analysisResult?: string | null | undefined;
|
|
290
|
+
agent?: string | null | undefined;
|
|
291
|
+
implementationGuide?: string | null | undefined;
|
|
292
|
+
verificationCriteria?: string | null | undefined;
|
|
293
|
+
}[] | undefined;
|
|
294
|
+
}>;
|
|
295
|
+
/**
|
|
296
|
+
* Update mode validation
|
|
297
|
+
*/
|
|
298
|
+
export declare const UpdateModeSchema: z.ZodEnum<["append", "overwrite", "selective", "clearAllTasks"]>;
|
|
299
|
+
/**
|
|
300
|
+
* create_task / plan_task parameters
|
|
301
|
+
* Strict validation on input to ensure data integrity.
|
|
302
|
+
*/
|
|
303
|
+
export declare const CreateTaskParamsSchema: z.ZodObject<{
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
description: z.ZodString;
|
|
306
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
307
|
+
relatedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
308
|
+
path: z.ZodString;
|
|
309
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
310
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
311
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
312
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
path: string;
|
|
315
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
316
|
+
description?: string | null | undefined;
|
|
317
|
+
lineStart?: number | null | undefined;
|
|
318
|
+
lineEnd?: number | null | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
path: string;
|
|
321
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
322
|
+
description?: string | null | undefined;
|
|
323
|
+
lineStart?: number | null | undefined;
|
|
324
|
+
lineEnd?: number | null | undefined;
|
|
325
|
+
}>, "many">>;
|
|
326
|
+
implementationGuide: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
327
|
+
verificationCriteria: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
328
|
+
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
329
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
description: string;
|
|
332
|
+
name: string;
|
|
333
|
+
notes?: string | null | undefined;
|
|
334
|
+
dependencies?: string[] | undefined;
|
|
335
|
+
relatedFiles?: {
|
|
336
|
+
path: string;
|
|
337
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
338
|
+
description?: string | null | undefined;
|
|
339
|
+
lineStart?: number | null | undefined;
|
|
340
|
+
lineEnd?: number | null | undefined;
|
|
341
|
+
}[] | undefined;
|
|
342
|
+
agent?: string | null | undefined;
|
|
343
|
+
implementationGuide?: string | null | undefined;
|
|
344
|
+
verificationCriteria?: string | null | undefined;
|
|
345
|
+
}, {
|
|
346
|
+
description: string;
|
|
347
|
+
name: string;
|
|
348
|
+
notes?: string | null | undefined;
|
|
349
|
+
dependencies?: string[] | undefined;
|
|
350
|
+
relatedFiles?: {
|
|
351
|
+
path: string;
|
|
352
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
353
|
+
description?: string | null | undefined;
|
|
354
|
+
lineStart?: number | null | undefined;
|
|
355
|
+
lineEnd?: number | null | undefined;
|
|
356
|
+
}[] | undefined;
|
|
357
|
+
agent?: string | null | undefined;
|
|
358
|
+
implementationGuide?: string | null | undefined;
|
|
359
|
+
verificationCriteria?: string | null | undefined;
|
|
360
|
+
}>;
|
|
361
|
+
/**
|
|
362
|
+
* update_task parameters
|
|
363
|
+
* Validates task ID is GUID, all fields optional for partial update.
|
|
364
|
+
*/
|
|
365
|
+
export declare const UpdateTaskParamsSchema: z.ZodObject<{
|
|
366
|
+
taskId: z.ZodString;
|
|
367
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
368
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
369
|
+
dependencies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
370
|
+
relatedFiles: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
371
|
+
path: z.ZodString;
|
|
372
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
373
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
374
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
375
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
path: string;
|
|
378
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
379
|
+
description?: string | null | undefined;
|
|
380
|
+
lineStart?: number | null | undefined;
|
|
381
|
+
lineEnd?: number | null | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
path: string;
|
|
384
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
385
|
+
description?: string | null | undefined;
|
|
386
|
+
lineStart?: number | null | undefined;
|
|
387
|
+
lineEnd?: number | null | undefined;
|
|
388
|
+
}>, "many">>>;
|
|
389
|
+
implementationGuide: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
390
|
+
verificationCriteria: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
391
|
+
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
taskId: string;
|
|
394
|
+
description?: string | null | undefined;
|
|
395
|
+
name?: string | null | undefined;
|
|
396
|
+
notes?: string | null | undefined;
|
|
397
|
+
dependencies?: string[] | null | undefined;
|
|
398
|
+
relatedFiles?: {
|
|
399
|
+
path: string;
|
|
400
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
401
|
+
description?: string | null | undefined;
|
|
402
|
+
lineStart?: number | null | undefined;
|
|
403
|
+
lineEnd?: number | null | undefined;
|
|
404
|
+
}[] | null | undefined;
|
|
405
|
+
implementationGuide?: string | null | undefined;
|
|
406
|
+
verificationCriteria?: string | null | undefined;
|
|
407
|
+
}, {
|
|
408
|
+
taskId: string;
|
|
409
|
+
description?: string | null | undefined;
|
|
410
|
+
name?: string | null | undefined;
|
|
411
|
+
notes?: string | null | undefined;
|
|
412
|
+
dependencies?: string[] | null | undefined;
|
|
413
|
+
relatedFiles?: {
|
|
414
|
+
path: string;
|
|
415
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
416
|
+
description?: string | null | undefined;
|
|
417
|
+
lineStart?: number | null | undefined;
|
|
418
|
+
lineEnd?: number | null | undefined;
|
|
419
|
+
}[] | null | undefined;
|
|
420
|
+
implementationGuide?: string | null | undefined;
|
|
421
|
+
verificationCriteria?: string | null | undefined;
|
|
422
|
+
}>;
|
|
423
|
+
/**
|
|
424
|
+
* split_tasks parameters
|
|
425
|
+
* Validates array of tasks and update mode.
|
|
426
|
+
*/
|
|
427
|
+
export declare const SplitTasksParamsSchema: z.ZodObject<{
|
|
428
|
+
updateMode: z.ZodEnum<["append", "overwrite", "selective", "clearAllTasks"]>;
|
|
429
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
description: z.ZodString;
|
|
432
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
433
|
+
relatedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
|
+
path: z.ZodString;
|
|
435
|
+
type: z.ZodEnum<["TO_MODIFY", "REFERENCE", "CREATE", "DEPENDENCY", "OTHER"]>;
|
|
436
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
437
|
+
lineStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
438
|
+
lineEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
439
|
+
}, "strip", z.ZodTypeAny, {
|
|
440
|
+
path: string;
|
|
441
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
442
|
+
description?: string | null | undefined;
|
|
443
|
+
lineStart?: number | null | undefined;
|
|
444
|
+
lineEnd?: number | null | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
path: string;
|
|
447
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
448
|
+
description?: string | null | undefined;
|
|
449
|
+
lineStart?: number | null | undefined;
|
|
450
|
+
lineEnd?: number | null | undefined;
|
|
451
|
+
}>, "many">>;
|
|
452
|
+
implementationGuide: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
453
|
+
verificationCriteria: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
454
|
+
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
455
|
+
agent: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
description: string;
|
|
458
|
+
name: string;
|
|
459
|
+
notes?: string | null | undefined;
|
|
460
|
+
dependencies?: string[] | undefined;
|
|
461
|
+
relatedFiles?: {
|
|
462
|
+
path: string;
|
|
463
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
464
|
+
description?: string | null | undefined;
|
|
465
|
+
lineStart?: number | null | undefined;
|
|
466
|
+
lineEnd?: number | null | undefined;
|
|
467
|
+
}[] | undefined;
|
|
468
|
+
agent?: string | null | undefined;
|
|
469
|
+
implementationGuide?: string | null | undefined;
|
|
470
|
+
verificationCriteria?: string | null | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
description: string;
|
|
473
|
+
name: string;
|
|
474
|
+
notes?: string | null | undefined;
|
|
475
|
+
dependencies?: string[] | undefined;
|
|
476
|
+
relatedFiles?: {
|
|
477
|
+
path: string;
|
|
478
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
479
|
+
description?: string | null | undefined;
|
|
480
|
+
lineStart?: number | null | undefined;
|
|
481
|
+
lineEnd?: number | null | undefined;
|
|
482
|
+
}[] | undefined;
|
|
483
|
+
agent?: string | null | undefined;
|
|
484
|
+
implementationGuide?: string | null | undefined;
|
|
485
|
+
verificationCriteria?: string | null | undefined;
|
|
486
|
+
}>, "many">;
|
|
487
|
+
globalAnalysisResult: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
tasks: {
|
|
490
|
+
description: string;
|
|
491
|
+
name: string;
|
|
492
|
+
notes?: string | null | undefined;
|
|
493
|
+
dependencies?: string[] | undefined;
|
|
494
|
+
relatedFiles?: {
|
|
495
|
+
path: string;
|
|
496
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
497
|
+
description?: string | null | undefined;
|
|
498
|
+
lineStart?: number | null | undefined;
|
|
499
|
+
lineEnd?: number | null | undefined;
|
|
500
|
+
}[] | undefined;
|
|
501
|
+
agent?: string | null | undefined;
|
|
502
|
+
implementationGuide?: string | null | undefined;
|
|
503
|
+
verificationCriteria?: string | null | undefined;
|
|
504
|
+
}[];
|
|
505
|
+
updateMode: "append" | "overwrite" | "selective" | "clearAllTasks";
|
|
506
|
+
globalAnalysisResult?: string | null | undefined;
|
|
507
|
+
}, {
|
|
508
|
+
tasks: {
|
|
509
|
+
description: string;
|
|
510
|
+
name: string;
|
|
511
|
+
notes?: string | null | undefined;
|
|
512
|
+
dependencies?: string[] | undefined;
|
|
513
|
+
relatedFiles?: {
|
|
514
|
+
path: string;
|
|
515
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
516
|
+
description?: string | null | undefined;
|
|
517
|
+
lineStart?: number | null | undefined;
|
|
518
|
+
lineEnd?: number | null | undefined;
|
|
519
|
+
}[] | undefined;
|
|
520
|
+
agent?: string | null | undefined;
|
|
521
|
+
implementationGuide?: string | null | undefined;
|
|
522
|
+
verificationCriteria?: string | null | undefined;
|
|
523
|
+
}[];
|
|
524
|
+
updateMode: "append" | "overwrite" | "selective" | "clearAllTasks";
|
|
525
|
+
globalAnalysisResult?: string | null | undefined;
|
|
526
|
+
}>;
|
|
527
|
+
/**
|
|
528
|
+
* list_tasks parameters
|
|
529
|
+
*/
|
|
530
|
+
export declare const ListTasksParamsSchema: z.ZodObject<{
|
|
531
|
+
status: z.ZodDefault<z.ZodEnum<["all", "pending", "in_progress", "completed", "blocked"]>>;
|
|
532
|
+
}, "strip", z.ZodTypeAny, {
|
|
533
|
+
status: "pending" | "in_progress" | "completed" | "blocked" | "all";
|
|
534
|
+
}, {
|
|
535
|
+
status?: "pending" | "in_progress" | "completed" | "blocked" | "all" | undefined;
|
|
536
|
+
}>;
|
|
537
|
+
/**
|
|
538
|
+
* query_task parameters
|
|
539
|
+
* Pagination limits prevent excessive result sets.
|
|
540
|
+
*/
|
|
541
|
+
export declare const QueryTaskParamsSchema: z.ZodObject<{
|
|
542
|
+
query: z.ZodString;
|
|
543
|
+
isId: z.ZodDefault<z.ZodBoolean>;
|
|
544
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
545
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
|
+
query: string;
|
|
548
|
+
isId: boolean;
|
|
549
|
+
page: number;
|
|
550
|
+
pageSize: number;
|
|
551
|
+
}, {
|
|
552
|
+
query: string;
|
|
553
|
+
isId?: boolean | undefined;
|
|
554
|
+
page?: number | undefined;
|
|
555
|
+
pageSize?: number | undefined;
|
|
556
|
+
}>;
|
|
557
|
+
/**
|
|
558
|
+
* get_task_detail parameters
|
|
559
|
+
*/
|
|
560
|
+
export declare const GetTaskDetailParamsSchema: z.ZodObject<{
|
|
561
|
+
taskId: z.ZodString;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
taskId: string;
|
|
564
|
+
}, {
|
|
565
|
+
taskId: string;
|
|
566
|
+
}>;
|
|
567
|
+
/**
|
|
568
|
+
* execute_task parameters
|
|
569
|
+
*/
|
|
570
|
+
export declare const ExecuteTaskParamsSchema: z.ZodObject<{
|
|
571
|
+
taskId: z.ZodString;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
taskId: string;
|
|
574
|
+
}, {
|
|
575
|
+
taskId: string;
|
|
576
|
+
}>;
|
|
577
|
+
/**
|
|
578
|
+
* verify_task parameters
|
|
579
|
+
*/
|
|
580
|
+
export declare const VerifyTaskParamsSchema: z.ZodObject<{
|
|
581
|
+
taskId: z.ZodString;
|
|
582
|
+
score: z.ZodNumber;
|
|
583
|
+
summary: z.ZodString;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
taskId: string;
|
|
586
|
+
summary: string;
|
|
587
|
+
score: number;
|
|
588
|
+
}, {
|
|
589
|
+
taskId: string;
|
|
590
|
+
summary: string;
|
|
591
|
+
score: number;
|
|
592
|
+
}>;
|
|
593
|
+
/**
|
|
594
|
+
* delete_task parameters
|
|
595
|
+
*/
|
|
596
|
+
export declare const DeleteTaskParamsSchema: z.ZodObject<{
|
|
597
|
+
taskId: z.ZodString;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
taskId: string;
|
|
600
|
+
}, {
|
|
601
|
+
taskId: string;
|
|
602
|
+
}>;
|
|
603
|
+
/**
|
|
604
|
+
* clear_all_tasks parameters
|
|
605
|
+
*/
|
|
606
|
+
export declare const ClearAllTasksParamsSchema: z.ZodObject<{
|
|
607
|
+
confirm: z.ZodDefault<z.ZodBoolean>;
|
|
608
|
+
}, "strip", z.ZodTypeAny, {
|
|
609
|
+
confirm: boolean;
|
|
610
|
+
}, {
|
|
611
|
+
confirm?: boolean | undefined;
|
|
612
|
+
}>;
|
|
613
|
+
/**
|
|
614
|
+
* analyze_task parameters
|
|
615
|
+
*/
|
|
616
|
+
export declare const AnalyzeTaskParamsSchema: z.ZodObject<{
|
|
617
|
+
summary: z.ZodString;
|
|
618
|
+
initialConcept: z.ZodString;
|
|
619
|
+
previousAnalysis: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
620
|
+
}, "strip", z.ZodTypeAny, {
|
|
621
|
+
summary: string;
|
|
622
|
+
initialConcept: string;
|
|
623
|
+
previousAnalysis?: string | null | undefined;
|
|
624
|
+
}, {
|
|
625
|
+
summary: string;
|
|
626
|
+
initialConcept: string;
|
|
627
|
+
previousAnalysis?: string | null | undefined;
|
|
628
|
+
}>;
|
|
629
|
+
/**
|
|
630
|
+
* reflect_task parameters
|
|
631
|
+
*/
|
|
632
|
+
export declare const ReflectTaskParamsSchema: z.ZodObject<{
|
|
633
|
+
summary: z.ZodString;
|
|
634
|
+
analysis: z.ZodString;
|
|
635
|
+
}, "strip", z.ZodTypeAny, {
|
|
636
|
+
summary: string;
|
|
637
|
+
analysis: string;
|
|
638
|
+
}, {
|
|
639
|
+
summary: string;
|
|
640
|
+
analysis: string;
|
|
641
|
+
}>;
|
|
642
|
+
/**
|
|
643
|
+
* plan_task parameters
|
|
644
|
+
*/
|
|
645
|
+
export declare const PlanTaskParamsSchema: z.ZodObject<{
|
|
646
|
+
description: z.ZodString;
|
|
647
|
+
requirements: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
648
|
+
existingTasksReference: z.ZodDefault<z.ZodBoolean>;
|
|
649
|
+
}, "strip", z.ZodTypeAny, {
|
|
650
|
+
description: string;
|
|
651
|
+
existingTasksReference: boolean;
|
|
652
|
+
requirements?: string | null | undefined;
|
|
653
|
+
}, {
|
|
654
|
+
description: string;
|
|
655
|
+
requirements?: string | null | undefined;
|
|
656
|
+
existingTasksReference?: boolean | undefined;
|
|
657
|
+
}>;
|
|
658
|
+
/**
|
|
659
|
+
* research_mode parameters
|
|
660
|
+
*/
|
|
661
|
+
export declare const ResearchModeParamsSchema: z.ZodObject<{
|
|
662
|
+
topic: z.ZodString;
|
|
663
|
+
previousState: z.ZodString;
|
|
664
|
+
currentState: z.ZodString;
|
|
665
|
+
nextSteps: z.ZodString;
|
|
666
|
+
}, "strip", z.ZodTypeAny, {
|
|
667
|
+
topic: string;
|
|
668
|
+
previousState: string;
|
|
669
|
+
currentState: string;
|
|
670
|
+
nextSteps: string;
|
|
671
|
+
}, {
|
|
672
|
+
topic: string;
|
|
673
|
+
previousState: string;
|
|
674
|
+
currentState: string;
|
|
675
|
+
nextSteps: string;
|
|
676
|
+
}>;
|
|
677
|
+
/**
|
|
678
|
+
* process_thought parameters
|
|
679
|
+
*/
|
|
680
|
+
export declare const ProcessThoughtParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
681
|
+
thought: z.ZodString;
|
|
682
|
+
thoughtNumber: z.ZodNumber;
|
|
683
|
+
totalThoughts: z.ZodNumber;
|
|
684
|
+
stage: z.ZodString;
|
|
685
|
+
tags: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
686
|
+
axiomsUsed: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
687
|
+
assumptionsChallenged: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
688
|
+
nextThoughtNeeded: z.ZodDefault<z.ZodBoolean>;
|
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
|
690
|
+
thought: string;
|
|
691
|
+
thoughtNumber: number;
|
|
692
|
+
totalThoughts: number;
|
|
693
|
+
stage: string;
|
|
694
|
+
nextThoughtNeeded: boolean;
|
|
695
|
+
tags?: string[] | null | undefined;
|
|
696
|
+
axiomsUsed?: string[] | null | undefined;
|
|
697
|
+
assumptionsChallenged?: string[] | null | undefined;
|
|
698
|
+
}, {
|
|
699
|
+
thought: string;
|
|
700
|
+
thoughtNumber: number;
|
|
701
|
+
totalThoughts: number;
|
|
702
|
+
stage: string;
|
|
703
|
+
tags?: string[] | null | undefined;
|
|
704
|
+
axiomsUsed?: string[] | null | undefined;
|
|
705
|
+
assumptionsChallenged?: string[] | null | undefined;
|
|
706
|
+
nextThoughtNeeded?: boolean | undefined;
|
|
707
|
+
}>, {
|
|
708
|
+
thought: string;
|
|
709
|
+
thoughtNumber: number;
|
|
710
|
+
totalThoughts: number;
|
|
711
|
+
stage: string;
|
|
712
|
+
nextThoughtNeeded: boolean;
|
|
713
|
+
tags?: string[] | null | undefined;
|
|
714
|
+
axiomsUsed?: string[] | null | undefined;
|
|
715
|
+
assumptionsChallenged?: string[] | null | undefined;
|
|
716
|
+
}, {
|
|
717
|
+
thought: string;
|
|
718
|
+
thoughtNumber: number;
|
|
719
|
+
totalThoughts: number;
|
|
720
|
+
stage: string;
|
|
721
|
+
tags?: string[] | null | undefined;
|
|
722
|
+
axiomsUsed?: string[] | null | undefined;
|
|
723
|
+
assumptionsChallenged?: string[] | null | undefined;
|
|
724
|
+
nextThoughtNeeded?: boolean | undefined;
|
|
725
|
+
}>;
|
|
726
|
+
/**
|
|
727
|
+
* init_project_rules parameters
|
|
728
|
+
*/
|
|
729
|
+
export declare const InitProjectRulesParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
730
|
+
/**
|
|
731
|
+
* get_server_info parameters
|
|
732
|
+
*/
|
|
733
|
+
export declare const GetServerInfoParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
734
|
+
export type CreateTaskParams = z.infer<typeof CreateTaskParamsSchema>;
|
|
735
|
+
export type UpdateTaskParams = z.infer<typeof UpdateTaskParamsSchema>;
|
|
736
|
+
export type SplitTasksParams = z.infer<typeof SplitTasksParamsSchema>;
|
|
737
|
+
export type ListTasksParams = z.infer<typeof ListTasksParamsSchema>;
|
|
738
|
+
export type QueryTaskParams = z.infer<typeof QueryTaskParamsSchema>;
|
|
739
|
+
export type GetTaskDetailParams = z.infer<typeof GetTaskDetailParamsSchema>;
|
|
740
|
+
export type ExecuteTaskParams = z.infer<typeof ExecuteTaskParamsSchema>;
|
|
741
|
+
export type VerifyTaskParams = z.infer<typeof VerifyTaskParamsSchema>;
|
|
742
|
+
export type DeleteTaskParams = z.infer<typeof DeleteTaskParamsSchema>;
|
|
743
|
+
export type ClearAllTasksParams = z.infer<typeof ClearAllTasksParamsSchema>;
|
|
744
|
+
export type AnalyzeTaskParams = z.infer<typeof AnalyzeTaskParamsSchema>;
|
|
745
|
+
export type ReflectTaskParams = z.infer<typeof ReflectTaskParamsSchema>;
|
|
746
|
+
export type PlanTaskParams = z.infer<typeof PlanTaskParamsSchema>;
|
|
747
|
+
export type ResearchModeParams = z.infer<typeof ResearchModeParamsSchema>;
|
|
748
|
+
export type ProcessThoughtParams = z.infer<typeof ProcessThoughtParamsSchema>;
|
|
749
|
+
export type InitProjectRulesParams = z.infer<typeof InitProjectRulesParamsSchema>;
|
|
750
|
+
export type GetServerInfoParams = z.infer<typeof GetServerInfoParamsSchema>;
|
|
751
|
+
export type TaskStatus = z.infer<typeof TaskStatusSchema>;
|
|
752
|
+
export type RelatedFileType = z.infer<typeof RelatedFileTypeSchema>;
|
|
753
|
+
export type TaskDependency = z.infer<typeof TaskDependencySchema>;
|
|
754
|
+
export type RelatedFile = z.infer<typeof RelatedFileSchema>;
|
|
755
|
+
export type TaskItem = z.infer<typeof TaskItemSchema>;
|
|
756
|
+
export type TaskDocument = z.infer<typeof TaskDocumentSchema>;
|
|
757
|
+
export type UpdateMode = z.infer<typeof UpdateModeSchema>;
|
|
758
|
+
/**
|
|
759
|
+
* Validate and parse a task document from unknown data
|
|
760
|
+
* Use this for all JSON file reads to ensure data integrity.
|
|
761
|
+
*
|
|
762
|
+
* @param data - Unknown data from file or external source
|
|
763
|
+
* @returns Validated TaskDocument
|
|
764
|
+
* @throws ZodError if validation fails
|
|
765
|
+
*/
|
|
766
|
+
export declare function validateTaskDocument(data: unknown): TaskDocument;
|
|
767
|
+
/**
|
|
768
|
+
* Safely validate a task document, returning success/error result
|
|
769
|
+
*
|
|
770
|
+
* @param data - Unknown data from file or external source
|
|
771
|
+
* @returns { success: true, data: TaskDocument } or { success: false, error: ZodError }
|
|
772
|
+
*/
|
|
773
|
+
export declare function safeValidateTaskDocument(data: unknown): z.SafeParseReturnType<{
|
|
774
|
+
version: string;
|
|
775
|
+
tasks?: {
|
|
776
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
777
|
+
description: string;
|
|
778
|
+
id: string;
|
|
779
|
+
name: string;
|
|
780
|
+
createdAt: string;
|
|
781
|
+
updatedAt: string;
|
|
782
|
+
notes?: string | null | undefined;
|
|
783
|
+
dependencies?: {
|
|
784
|
+
taskId: string;
|
|
785
|
+
}[] | undefined;
|
|
786
|
+
completedAt?: string | null | undefined;
|
|
787
|
+
summary?: string | null | undefined;
|
|
788
|
+
relatedFiles?: {
|
|
789
|
+
path: string;
|
|
790
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
791
|
+
description?: string | null | undefined;
|
|
792
|
+
lineStart?: number | null | undefined;
|
|
793
|
+
lineEnd?: number | null | undefined;
|
|
794
|
+
}[] | undefined;
|
|
795
|
+
analysisResult?: string | null | undefined;
|
|
796
|
+
agent?: string | null | undefined;
|
|
797
|
+
implementationGuide?: string | null | undefined;
|
|
798
|
+
verificationCriteria?: string | null | undefined;
|
|
799
|
+
}[] | undefined;
|
|
800
|
+
}, {
|
|
801
|
+
version: string;
|
|
802
|
+
tasks: {
|
|
803
|
+
status: "pending" | "in_progress" | "completed" | "blocked";
|
|
804
|
+
description: string;
|
|
805
|
+
id: string;
|
|
806
|
+
name: string;
|
|
807
|
+
dependencies: {
|
|
808
|
+
taskId: string;
|
|
809
|
+
}[];
|
|
810
|
+
createdAt: string;
|
|
811
|
+
updatedAt: string;
|
|
812
|
+
relatedFiles: {
|
|
813
|
+
path: string;
|
|
814
|
+
type: "TO_MODIFY" | "REFERENCE" | "CREATE" | "DEPENDENCY" | "OTHER";
|
|
815
|
+
description?: string | null | undefined;
|
|
816
|
+
lineStart?: number | null | undefined;
|
|
817
|
+
lineEnd?: number | null | undefined;
|
|
818
|
+
}[];
|
|
819
|
+
notes?: string | null | undefined;
|
|
820
|
+
completedAt?: string | null | undefined;
|
|
821
|
+
summary?: string | null | undefined;
|
|
822
|
+
analysisResult?: string | null | undefined;
|
|
823
|
+
agent?: string | null | undefined;
|
|
824
|
+
implementationGuide?: string | null | undefined;
|
|
825
|
+
verificationCriteria?: string | null | undefined;
|
|
826
|
+
}[];
|
|
827
|
+
}>;
|
|
828
|
+
/**
|
|
829
|
+
* Validate a single task item
|
|
830
|
+
*
|
|
831
|
+
* @param data - Unknown data
|
|
832
|
+
* @returns Validated TaskItem
|
|
833
|
+
* @throws ZodError if validation fails
|
|
834
|
+
*/
|
|
835
|
+
export declare function validateTaskItem(data: unknown): TaskItem;
|
|
836
|
+
/**
|
|
837
|
+
* Create an empty task document
|
|
838
|
+
*/
|
|
839
|
+
export declare function createEmptyTaskDocument(): TaskDocument;
|
|
840
|
+
//# sourceMappingURL=schemas.d.ts.map
|