@task-mcp/shared 1.0.4 → 1.0.7

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.
Files changed (98) hide show
  1. package/dist/algorithms/critical-path.d.ts.map +1 -1
  2. package/dist/algorithms/critical-path.js +50 -26
  3. package/dist/algorithms/critical-path.js.map +1 -1
  4. package/dist/algorithms/dependency-integrity.d.ts +73 -0
  5. package/dist/algorithms/dependency-integrity.d.ts.map +1 -0
  6. package/dist/algorithms/dependency-integrity.js +189 -0
  7. package/dist/algorithms/dependency-integrity.js.map +1 -0
  8. package/dist/algorithms/index.d.ts +2 -0
  9. package/dist/algorithms/index.d.ts.map +1 -1
  10. package/dist/algorithms/index.js +2 -0
  11. package/dist/algorithms/index.js.map +1 -1
  12. package/dist/algorithms/tech-analysis.d.ts +106 -0
  13. package/dist/algorithms/tech-analysis.d.ts.map +1 -0
  14. package/dist/algorithms/tech-analysis.js +296 -0
  15. package/dist/algorithms/tech-analysis.js.map +1 -0
  16. package/dist/algorithms/tech-analysis.test.d.ts +2 -0
  17. package/dist/algorithms/tech-analysis.test.d.ts.map +1 -0
  18. package/dist/algorithms/tech-analysis.test.js +338 -0
  19. package/dist/algorithms/tech-analysis.test.js.map +1 -0
  20. package/dist/algorithms/topological-sort.d.ts.map +1 -1
  21. package/dist/algorithms/topological-sort.js +60 -8
  22. package/dist/algorithms/topological-sort.js.map +1 -1
  23. package/dist/schemas/inbox.d.ts +55 -0
  24. package/dist/schemas/inbox.d.ts.map +1 -0
  25. package/dist/schemas/inbox.js +25 -0
  26. package/dist/schemas/inbox.js.map +1 -0
  27. package/dist/schemas/index.d.ts +3 -1
  28. package/dist/schemas/index.d.ts.map +1 -1
  29. package/dist/schemas/index.js +9 -1
  30. package/dist/schemas/index.js.map +1 -1
  31. package/dist/schemas/project.d.ts +154 -41
  32. package/dist/schemas/project.d.ts.map +1 -1
  33. package/dist/schemas/project.js +38 -33
  34. package/dist/schemas/project.js.map +1 -1
  35. package/dist/schemas/response-format.d.ts +80 -0
  36. package/dist/schemas/response-format.d.ts.map +1 -0
  37. package/dist/schemas/response-format.js +17 -0
  38. package/dist/schemas/response-format.js.map +1 -0
  39. package/dist/schemas/task.d.ts +592 -94
  40. package/dist/schemas/task.d.ts.map +1 -1
  41. package/dist/schemas/task.js +124 -64
  42. package/dist/schemas/task.js.map +1 -1
  43. package/dist/schemas/view.d.ts +128 -37
  44. package/dist/schemas/view.d.ts.map +1 -1
  45. package/dist/schemas/view.js +38 -24
  46. package/dist/schemas/view.js.map +1 -1
  47. package/dist/utils/date.d.ts.map +1 -1
  48. package/dist/utils/date.js +17 -2
  49. package/dist/utils/date.js.map +1 -1
  50. package/dist/utils/hierarchy.d.ts +75 -0
  51. package/dist/utils/hierarchy.d.ts.map +1 -0
  52. package/dist/utils/hierarchy.js +179 -0
  53. package/dist/utils/hierarchy.js.map +1 -0
  54. package/dist/utils/id.d.ts +51 -1
  55. package/dist/utils/id.d.ts.map +1 -1
  56. package/dist/utils/id.js +124 -4
  57. package/dist/utils/id.js.map +1 -1
  58. package/dist/utils/id.test.d.ts +2 -0
  59. package/dist/utils/id.test.d.ts.map +1 -0
  60. package/dist/utils/id.test.js +228 -0
  61. package/dist/utils/id.test.js.map +1 -0
  62. package/dist/utils/index.d.ts +4 -2
  63. package/dist/utils/index.d.ts.map +1 -1
  64. package/dist/utils/index.js +7 -2
  65. package/dist/utils/index.js.map +1 -1
  66. package/dist/utils/natural-language.d.ts +45 -0
  67. package/dist/utils/natural-language.d.ts.map +1 -1
  68. package/dist/utils/natural-language.js +86 -0
  69. package/dist/utils/natural-language.js.map +1 -1
  70. package/dist/utils/projection.d.ts +65 -0
  71. package/dist/utils/projection.d.ts.map +1 -0
  72. package/dist/utils/projection.js +181 -0
  73. package/dist/utils/projection.js.map +1 -0
  74. package/dist/utils/projection.test.d.ts +2 -0
  75. package/dist/utils/projection.test.d.ts.map +1 -0
  76. package/dist/utils/projection.test.js +400 -0
  77. package/dist/utils/projection.test.js.map +1 -0
  78. package/package.json +2 -2
  79. package/src/algorithms/critical-path.ts +56 -24
  80. package/src/algorithms/dependency-integrity.ts +270 -0
  81. package/src/algorithms/index.ts +28 -0
  82. package/src/algorithms/tech-analysis.test.ts +413 -0
  83. package/src/algorithms/tech-analysis.ts +412 -0
  84. package/src/algorithms/topological-sort.ts +66 -9
  85. package/src/schemas/inbox.ts +32 -0
  86. package/src/schemas/index.ts +31 -0
  87. package/src/schemas/project.ts +43 -40
  88. package/src/schemas/response-format.ts +108 -0
  89. package/src/schemas/task.ts +145 -77
  90. package/src/schemas/view.ts +43 -33
  91. package/src/utils/date.ts +18 -2
  92. package/src/utils/hierarchy.ts +224 -0
  93. package/src/utils/id.test.ts +281 -0
  94. package/src/utils/id.ts +139 -4
  95. package/src/utils/index.ts +46 -2
  96. package/src/utils/natural-language.ts +113 -0
  97. package/src/utils/projection.test.ts +505 -0
  98. package/src/utils/projection.ts +251 -0
@@ -1,30 +1,216 @@
1
- export declare const Priority: import("arktype/internal/methods/string.ts").StringType<"critical" | "high" | "medium" | "low", {}>;
2
- export type Priority = typeof Priority.infer;
3
- export declare const TaskStatus: import("arktype/internal/methods/string.ts").StringType<"pending" | "in_progress" | "blocked" | "completed" | "cancelled", {}>;
4
- export type TaskStatus = typeof TaskStatus.infer;
5
- export declare const DependencyType: import("arktype/internal/methods/string.ts").StringType<"blocks" | "blocked_by" | "related", {}>;
6
- export type DependencyType = typeof DependencyType.infer;
7
- export declare const Dependency: import("arktype/internal/methods/object.ts").ObjectType<{
1
+ import { z } from "zod";
2
+ export declare const Priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
3
+ export type Priority = z.infer<typeof Priority>;
4
+ export declare const TaskStatus: z.ZodEnum<["pending", "in_progress", "blocked", "completed", "cancelled"]>;
5
+ export type TaskStatus = z.infer<typeof TaskStatus>;
6
+ export declare const DependencyType: z.ZodEnum<["blocks", "blocked_by", "related"]>;
7
+ export type DependencyType = z.infer<typeof DependencyType>;
8
+ export declare const Dependency: z.ZodObject<{
9
+ taskId: z.ZodString;
10
+ type: z.ZodEnum<["blocks", "blocked_by", "related"]>;
11
+ reason: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
8
13
  taskId: string;
9
14
  type: "blocks" | "blocked_by" | "related";
10
- reason?: string;
11
- }, {}>;
12
- export type Dependency = typeof Dependency.infer;
13
- export declare const TimeEstimate: import("arktype/internal/methods/object.ts").ObjectType<{
14
- optimistic?: number;
15
- expected?: number;
16
- pessimistic?: number;
17
- confidence?: "high" | "medium" | "low";
18
- }, {}>;
19
- export type TimeEstimate = typeof TimeEstimate.infer;
20
- export declare const Recurrence: import("arktype/internal/methods/object.ts").ObjectType<{
15
+ reason?: string | undefined;
16
+ }, {
17
+ taskId: string;
18
+ type: "blocks" | "blocked_by" | "related";
19
+ reason?: string | undefined;
20
+ }>;
21
+ export type Dependency = z.infer<typeof Dependency>;
22
+ export declare const TimeEstimate: z.ZodObject<{
23
+ optimistic: z.ZodOptional<z.ZodNumber>;
24
+ expected: z.ZodOptional<z.ZodNumber>;
25
+ pessimistic: z.ZodOptional<z.ZodNumber>;
26
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ expected?: number | undefined;
29
+ optimistic?: number | undefined;
30
+ pessimistic?: number | undefined;
31
+ confidence?: "high" | "medium" | "low" | undefined;
32
+ }, {
33
+ expected?: number | undefined;
34
+ optimistic?: number | undefined;
35
+ pessimistic?: number | undefined;
36
+ confidence?: "high" | "medium" | "low" | undefined;
37
+ }>;
38
+ export type TimeEstimate = z.infer<typeof TimeEstimate>;
39
+ export declare const Recurrence: z.ZodObject<{
40
+ pattern: z.ZodEnum<["daily", "weekly", "monthly", "after_completion"]>;
41
+ interval: z.ZodOptional<z.ZodNumber>;
42
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
43
+ endDate: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
46
+ interval?: number | undefined;
47
+ daysOfWeek?: number[] | undefined;
48
+ endDate?: string | undefined;
49
+ }, {
21
50
  pattern: "daily" | "weekly" | "monthly" | "after_completion";
22
- interval?: number;
23
- daysOfWeek?: number[];
24
- endDate?: string;
25
- }, {}>;
26
- export type Recurrence = typeof Recurrence.infer;
27
- export declare const Task: import("arktype/internal/methods/object.ts").ObjectType<{
51
+ interval?: number | undefined;
52
+ daysOfWeek?: number[] | undefined;
53
+ endDate?: string | undefined;
54
+ }>;
55
+ export type Recurrence = z.infer<typeof Recurrence>;
56
+ export declare const ComplexityFactor: z.ZodEnum<["cross_cutting", "state_management", "error_handling", "performance", "security", "external_dependency", "data_migration", "breaking_change", "unclear_requirements", "coordination"]>;
57
+ export type ComplexityFactor = z.infer<typeof ComplexityFactor>;
58
+ export declare const ComplexityAnalysis: z.ZodObject<{
59
+ score: z.ZodOptional<z.ZodNumber>;
60
+ factors: z.ZodOptional<z.ZodArray<z.ZodEnum<["cross_cutting", "state_management", "error_handling", "performance", "security", "external_dependency", "data_migration", "breaking_change", "unclear_requirements", "coordination"]>, "many">>;
61
+ suggestedSubtasks: z.ZodOptional<z.ZodNumber>;
62
+ rationale: z.ZodOptional<z.ZodString>;
63
+ analyzedAt: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ score?: number | undefined;
66
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
67
+ suggestedSubtasks?: number | undefined;
68
+ rationale?: string | undefined;
69
+ analyzedAt?: string | undefined;
70
+ }, {
71
+ score?: number | undefined;
72
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
73
+ suggestedSubtasks?: number | undefined;
74
+ rationale?: string | undefined;
75
+ analyzedAt?: string | undefined;
76
+ }>;
77
+ export type ComplexityAnalysis = z.infer<typeof ComplexityAnalysis>;
78
+ export declare const TechArea: z.ZodEnum<["schema", "backend", "frontend", "infra", "devops", "test", "docs", "refactor"]>;
79
+ export type TechArea = z.infer<typeof TechArea>;
80
+ export declare const RiskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
81
+ export type RiskLevel = z.infer<typeof RiskLevel>;
82
+ export declare const TechStackAnalysis: z.ZodObject<{
83
+ areas: z.ZodOptional<z.ZodArray<z.ZodEnum<["schema", "backend", "frontend", "infra", "devops", "test", "docs", "refactor"]>, "many">>;
84
+ hasBreakingChange: z.ZodOptional<z.ZodBoolean>;
85
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
86
+ affectedComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ rationale: z.ZodOptional<z.ZodString>;
88
+ analyzedAt: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ rationale?: string | undefined;
91
+ analyzedAt?: string | undefined;
92
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
93
+ hasBreakingChange?: boolean | undefined;
94
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
95
+ affectedComponents?: string[] | undefined;
96
+ }, {
97
+ rationale?: string | undefined;
98
+ analyzedAt?: string | undefined;
99
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
100
+ hasBreakingChange?: boolean | undefined;
101
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
102
+ affectedComponents?: string[] | undefined;
103
+ }>;
104
+ export type TechStackAnalysis = z.infer<typeof TechStackAnalysis>;
105
+ export declare const Task: z.ZodObject<{
106
+ id: z.ZodString;
107
+ title: z.ZodString;
108
+ description: z.ZodOptional<z.ZodString>;
109
+ status: z.ZodEnum<["pending", "in_progress", "blocked", "completed", "cancelled"]>;
110
+ priority: z.ZodEnum<["critical", "high", "medium", "low"]>;
111
+ projectId: z.ZodString;
112
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ level: z.ZodOptional<z.ZodNumber>;
114
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ taskId: z.ZodString;
116
+ type: z.ZodEnum<["blocks", "blocked_by", "related"]>;
117
+ reason: z.ZodOptional<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ taskId: string;
120
+ type: "blocks" | "blocked_by" | "related";
121
+ reason?: string | undefined;
122
+ }, {
123
+ taskId: string;
124
+ type: "blocks" | "blocked_by" | "related";
125
+ reason?: string | undefined;
126
+ }>, "many">>;
127
+ estimate: z.ZodOptional<z.ZodObject<{
128
+ optimistic: z.ZodOptional<z.ZodNumber>;
129
+ expected: z.ZodOptional<z.ZodNumber>;
130
+ pessimistic: z.ZodOptional<z.ZodNumber>;
131
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ expected?: number | undefined;
134
+ optimistic?: number | undefined;
135
+ pessimistic?: number | undefined;
136
+ confidence?: "high" | "medium" | "low" | undefined;
137
+ }, {
138
+ expected?: number | undefined;
139
+ optimistic?: number | undefined;
140
+ pessimistic?: number | undefined;
141
+ confidence?: "high" | "medium" | "low" | undefined;
142
+ }>>;
143
+ actualMinutes: z.ZodOptional<z.ZodNumber>;
144
+ dueDate: z.ZodOptional<z.ZodString>;
145
+ startDate: z.ZodOptional<z.ZodString>;
146
+ startedAt: z.ZodOptional<z.ZodString>;
147
+ completedAt: z.ZodOptional<z.ZodString>;
148
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
149
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
+ recurrence: z.ZodOptional<z.ZodObject<{
151
+ pattern: z.ZodEnum<["daily", "weekly", "monthly", "after_completion"]>;
152
+ interval: z.ZodOptional<z.ZodNumber>;
153
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
154
+ endDate: z.ZodOptional<z.ZodString>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
157
+ interval?: number | undefined;
158
+ daysOfWeek?: number[] | undefined;
159
+ endDate?: string | undefined;
160
+ }, {
161
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
162
+ interval?: number | undefined;
163
+ daysOfWeek?: number[] | undefined;
164
+ endDate?: string | undefined;
165
+ }>>;
166
+ createdAt: z.ZodString;
167
+ updatedAt: z.ZodString;
168
+ criticalPath: z.ZodOptional<z.ZodBoolean>;
169
+ slack: z.ZodOptional<z.ZodNumber>;
170
+ earliestStart: z.ZodOptional<z.ZodNumber>;
171
+ latestStart: z.ZodOptional<z.ZodNumber>;
172
+ complexity: z.ZodOptional<z.ZodObject<{
173
+ score: z.ZodOptional<z.ZodNumber>;
174
+ factors: z.ZodOptional<z.ZodArray<z.ZodEnum<["cross_cutting", "state_management", "error_handling", "performance", "security", "external_dependency", "data_migration", "breaking_change", "unclear_requirements", "coordination"]>, "many">>;
175
+ suggestedSubtasks: z.ZodOptional<z.ZodNumber>;
176
+ rationale: z.ZodOptional<z.ZodString>;
177
+ analyzedAt: z.ZodOptional<z.ZodString>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ score?: number | undefined;
180
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
181
+ suggestedSubtasks?: number | undefined;
182
+ rationale?: string | undefined;
183
+ analyzedAt?: string | undefined;
184
+ }, {
185
+ score?: number | undefined;
186
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
187
+ suggestedSubtasks?: number | undefined;
188
+ rationale?: string | undefined;
189
+ analyzedAt?: string | undefined;
190
+ }>>;
191
+ techStack: z.ZodOptional<z.ZodObject<{
192
+ areas: z.ZodOptional<z.ZodArray<z.ZodEnum<["schema", "backend", "frontend", "infra", "devops", "test", "docs", "refactor"]>, "many">>;
193
+ hasBreakingChange: z.ZodOptional<z.ZodBoolean>;
194
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
195
+ affectedComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
196
+ rationale: z.ZodOptional<z.ZodString>;
197
+ analyzedAt: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ rationale?: string | undefined;
200
+ analyzedAt?: string | undefined;
201
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
202
+ hasBreakingChange?: boolean | undefined;
203
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
204
+ affectedComponents?: string[] | undefined;
205
+ }, {
206
+ rationale?: string | undefined;
207
+ analyzedAt?: string | undefined;
208
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
209
+ hasBreakingChange?: boolean | undefined;
210
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
211
+ affectedComponents?: string[] | undefined;
212
+ }>>;
213
+ }, "strip", z.ZodTypeAny, {
28
214
  id: string;
29
215
  title: string;
30
216
  status: "pending" | "in_progress" | "blocked" | "completed" | "cancelled";
@@ -32,93 +218,405 @@ export declare const Task: import("arktype/internal/methods/object.ts").ObjectTy
32
218
  projectId: string;
33
219
  createdAt: string;
34
220
  updatedAt: string;
35
- description?: string;
221
+ description?: string | undefined;
222
+ parentId?: string | null | undefined;
223
+ level?: number | undefined;
36
224
  dependencies?: {
37
225
  taskId: string;
38
226
  type: "blocks" | "blocked_by" | "related";
39
- reason?: string;
40
- }[];
227
+ reason?: string | undefined;
228
+ }[] | undefined;
41
229
  estimate?: {
42
- optimistic?: number;
43
- expected?: number;
44
- pessimistic?: number;
45
- confidence?: "high" | "medium" | "low";
46
- };
47
- actualMinutes?: number;
48
- dueDate?: string;
49
- startDate?: string;
50
- startedAt?: string;
51
- completedAt?: string;
52
- contexts?: string[];
53
- tags?: string[];
230
+ expected?: number | undefined;
231
+ optimistic?: number | undefined;
232
+ pessimistic?: number | undefined;
233
+ confidence?: "high" | "medium" | "low" | undefined;
234
+ } | undefined;
235
+ actualMinutes?: number | undefined;
236
+ dueDate?: string | undefined;
237
+ startDate?: string | undefined;
238
+ startedAt?: string | undefined;
239
+ completedAt?: string | undefined;
240
+ contexts?: string[] | undefined;
241
+ tags?: string[] | undefined;
54
242
  recurrence?: {
55
243
  pattern: "daily" | "weekly" | "monthly" | "after_completion";
56
- interval?: number;
57
- daysOfWeek?: number[];
58
- endDate?: string;
59
- };
60
- criticalPath?: boolean;
61
- slack?: number;
62
- earliestStart?: number;
63
- latestStart?: number;
64
- }, {}>;
65
- export type Task = typeof Task.infer;
66
- export declare const TaskCreateInput: import("arktype/internal/methods/object.ts").ObjectType<{
244
+ interval?: number | undefined;
245
+ daysOfWeek?: number[] | undefined;
246
+ endDate?: string | undefined;
247
+ } | undefined;
248
+ criticalPath?: boolean | undefined;
249
+ slack?: number | undefined;
250
+ earliestStart?: number | undefined;
251
+ latestStart?: number | undefined;
252
+ complexity?: {
253
+ score?: number | undefined;
254
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
255
+ suggestedSubtasks?: number | undefined;
256
+ rationale?: string | undefined;
257
+ analyzedAt?: string | undefined;
258
+ } | undefined;
259
+ techStack?: {
260
+ rationale?: string | undefined;
261
+ analyzedAt?: string | undefined;
262
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
263
+ hasBreakingChange?: boolean | undefined;
264
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
265
+ affectedComponents?: string[] | undefined;
266
+ } | undefined;
267
+ }, {
268
+ id: string;
67
269
  title: string;
68
- description?: string;
69
- projectId?: string;
70
- priority?: "critical" | "high" | "medium" | "low";
270
+ status: "pending" | "in_progress" | "blocked" | "completed" | "cancelled";
271
+ priority: "critical" | "high" | "medium" | "low";
272
+ projectId: string;
273
+ createdAt: string;
274
+ updatedAt: string;
275
+ description?: string | undefined;
276
+ parentId?: string | null | undefined;
277
+ level?: number | undefined;
278
+ dependencies?: {
279
+ taskId: string;
280
+ type: "blocks" | "blocked_by" | "related";
281
+ reason?: string | undefined;
282
+ }[] | undefined;
283
+ estimate?: {
284
+ expected?: number | undefined;
285
+ optimistic?: number | undefined;
286
+ pessimistic?: number | undefined;
287
+ confidence?: "high" | "medium" | "low" | undefined;
288
+ } | undefined;
289
+ actualMinutes?: number | undefined;
290
+ dueDate?: string | undefined;
291
+ startDate?: string | undefined;
292
+ startedAt?: string | undefined;
293
+ completedAt?: string | undefined;
294
+ contexts?: string[] | undefined;
295
+ tags?: string[] | undefined;
296
+ recurrence?: {
297
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
298
+ interval?: number | undefined;
299
+ daysOfWeek?: number[] | undefined;
300
+ endDate?: string | undefined;
301
+ } | undefined;
302
+ criticalPath?: boolean | undefined;
303
+ slack?: number | undefined;
304
+ earliestStart?: number | undefined;
305
+ latestStart?: number | undefined;
306
+ complexity?: {
307
+ score?: number | undefined;
308
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
309
+ suggestedSubtasks?: number | undefined;
310
+ rationale?: string | undefined;
311
+ analyzedAt?: string | undefined;
312
+ } | undefined;
313
+ techStack?: {
314
+ rationale?: string | undefined;
315
+ analyzedAt?: string | undefined;
316
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
317
+ hasBreakingChange?: boolean | undefined;
318
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
319
+ affectedComponents?: string[] | undefined;
320
+ } | undefined;
321
+ }>;
322
+ export type Task = z.infer<typeof Task>;
323
+ export declare const TaskCreateInput: z.ZodObject<{
324
+ title: z.ZodString;
325
+ description: z.ZodOptional<z.ZodString>;
326
+ projectId: z.ZodOptional<z.ZodString>;
327
+ priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
328
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
+ taskId: z.ZodString;
331
+ type: z.ZodEnum<["blocks", "blocked_by", "related"]>;
332
+ reason: z.ZodOptional<z.ZodString>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ taskId: string;
335
+ type: "blocks" | "blocked_by" | "related";
336
+ reason?: string | undefined;
337
+ }, {
338
+ taskId: string;
339
+ type: "blocks" | "blocked_by" | "related";
340
+ reason?: string | undefined;
341
+ }>, "many">>;
342
+ estimate: z.ZodOptional<z.ZodObject<{
343
+ optimistic: z.ZodOptional<z.ZodNumber>;
344
+ expected: z.ZodOptional<z.ZodNumber>;
345
+ pessimistic: z.ZodOptional<z.ZodNumber>;
346
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ expected?: number | undefined;
349
+ optimistic?: number | undefined;
350
+ pessimistic?: number | undefined;
351
+ confidence?: "high" | "medium" | "low" | undefined;
352
+ }, {
353
+ expected?: number | undefined;
354
+ optimistic?: number | undefined;
355
+ pessimistic?: number | undefined;
356
+ confidence?: "high" | "medium" | "low" | undefined;
357
+ }>>;
358
+ dueDate: z.ZodOptional<z.ZodString>;
359
+ startDate: z.ZodOptional<z.ZodString>;
360
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
362
+ recurrence: z.ZodOptional<z.ZodObject<{
363
+ pattern: z.ZodEnum<["daily", "weekly", "monthly", "after_completion"]>;
364
+ interval: z.ZodOptional<z.ZodNumber>;
365
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
366
+ endDate: z.ZodOptional<z.ZodString>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
369
+ interval?: number | undefined;
370
+ daysOfWeek?: number[] | undefined;
371
+ endDate?: string | undefined;
372
+ }, {
373
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
374
+ interval?: number | undefined;
375
+ daysOfWeek?: number[] | undefined;
376
+ endDate?: string | undefined;
377
+ }>>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ title: string;
380
+ description?: string | undefined;
381
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
382
+ projectId?: string | undefined;
383
+ parentId?: string | null | undefined;
384
+ dependencies?: {
385
+ taskId: string;
386
+ type: "blocks" | "blocked_by" | "related";
387
+ reason?: string | undefined;
388
+ }[] | undefined;
389
+ estimate?: {
390
+ expected?: number | undefined;
391
+ optimistic?: number | undefined;
392
+ pessimistic?: number | undefined;
393
+ confidence?: "high" | "medium" | "low" | undefined;
394
+ } | undefined;
395
+ dueDate?: string | undefined;
396
+ startDate?: string | undefined;
397
+ contexts?: string[] | undefined;
398
+ tags?: string[] | undefined;
399
+ recurrence?: {
400
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
401
+ interval?: number | undefined;
402
+ daysOfWeek?: number[] | undefined;
403
+ endDate?: string | undefined;
404
+ } | undefined;
405
+ }, {
406
+ title: string;
407
+ description?: string | undefined;
408
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
409
+ projectId?: string | undefined;
410
+ parentId?: string | null | undefined;
411
+ dependencies?: {
412
+ taskId: string;
413
+ type: "blocks" | "blocked_by" | "related";
414
+ reason?: string | undefined;
415
+ }[] | undefined;
416
+ estimate?: {
417
+ expected?: number | undefined;
418
+ optimistic?: number | undefined;
419
+ pessimistic?: number | undefined;
420
+ confidence?: "high" | "medium" | "low" | undefined;
421
+ } | undefined;
422
+ dueDate?: string | undefined;
423
+ startDate?: string | undefined;
424
+ contexts?: string[] | undefined;
425
+ tags?: string[] | undefined;
426
+ recurrence?: {
427
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
428
+ interval?: number | undefined;
429
+ daysOfWeek?: number[] | undefined;
430
+ endDate?: string | undefined;
431
+ } | undefined;
432
+ }>;
433
+ export type TaskCreateInput = z.infer<typeof TaskCreateInput>;
434
+ export declare const TaskUpdateInput: z.ZodObject<{
435
+ title: z.ZodOptional<z.ZodString>;
436
+ description: z.ZodOptional<z.ZodString>;
437
+ status: z.ZodOptional<z.ZodEnum<["pending", "in_progress", "blocked", "completed", "cancelled"]>>;
438
+ priority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
439
+ projectId: z.ZodOptional<z.ZodString>;
440
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
442
+ taskId: z.ZodString;
443
+ type: z.ZodEnum<["blocks", "blocked_by", "related"]>;
444
+ reason: z.ZodOptional<z.ZodString>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ taskId: string;
447
+ type: "blocks" | "blocked_by" | "related";
448
+ reason?: string | undefined;
449
+ }, {
450
+ taskId: string;
451
+ type: "blocks" | "blocked_by" | "related";
452
+ reason?: string | undefined;
453
+ }>, "many">>;
454
+ estimate: z.ZodOptional<z.ZodObject<{
455
+ optimistic: z.ZodOptional<z.ZodNumber>;
456
+ expected: z.ZodOptional<z.ZodNumber>;
457
+ pessimistic: z.ZodOptional<z.ZodNumber>;
458
+ confidence: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ expected?: number | undefined;
461
+ optimistic?: number | undefined;
462
+ pessimistic?: number | undefined;
463
+ confidence?: "high" | "medium" | "low" | undefined;
464
+ }, {
465
+ expected?: number | undefined;
466
+ optimistic?: number | undefined;
467
+ pessimistic?: number | undefined;
468
+ confidence?: "high" | "medium" | "low" | undefined;
469
+ }>>;
470
+ actualMinutes: z.ZodOptional<z.ZodNumber>;
471
+ dueDate: z.ZodOptional<z.ZodString>;
472
+ startDate: z.ZodOptional<z.ZodString>;
473
+ contexts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
475
+ recurrence: z.ZodOptional<z.ZodObject<{
476
+ pattern: z.ZodEnum<["daily", "weekly", "monthly", "after_completion"]>;
477
+ interval: z.ZodOptional<z.ZodNumber>;
478
+ daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
479
+ endDate: z.ZodOptional<z.ZodString>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
482
+ interval?: number | undefined;
483
+ daysOfWeek?: number[] | undefined;
484
+ endDate?: string | undefined;
485
+ }, {
486
+ pattern: "daily" | "weekly" | "monthly" | "after_completion";
487
+ interval?: number | undefined;
488
+ daysOfWeek?: number[] | undefined;
489
+ endDate?: string | undefined;
490
+ }>>;
491
+ complexity: z.ZodOptional<z.ZodObject<{
492
+ score: z.ZodOptional<z.ZodNumber>;
493
+ factors: z.ZodOptional<z.ZodArray<z.ZodEnum<["cross_cutting", "state_management", "error_handling", "performance", "security", "external_dependency", "data_migration", "breaking_change", "unclear_requirements", "coordination"]>, "many">>;
494
+ suggestedSubtasks: z.ZodOptional<z.ZodNumber>;
495
+ rationale: z.ZodOptional<z.ZodString>;
496
+ analyzedAt: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ score?: number | undefined;
499
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
500
+ suggestedSubtasks?: number | undefined;
501
+ rationale?: string | undefined;
502
+ analyzedAt?: string | undefined;
503
+ }, {
504
+ score?: number | undefined;
505
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
506
+ suggestedSubtasks?: number | undefined;
507
+ rationale?: string | undefined;
508
+ analyzedAt?: string | undefined;
509
+ }>>;
510
+ techStack: z.ZodOptional<z.ZodObject<{
511
+ areas: z.ZodOptional<z.ZodArray<z.ZodEnum<["schema", "backend", "frontend", "infra", "devops", "test", "docs", "refactor"]>, "many">>;
512
+ hasBreakingChange: z.ZodOptional<z.ZodBoolean>;
513
+ riskLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
514
+ affectedComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
515
+ rationale: z.ZodOptional<z.ZodString>;
516
+ analyzedAt: z.ZodOptional<z.ZodString>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ rationale?: string | undefined;
519
+ analyzedAt?: string | undefined;
520
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
521
+ hasBreakingChange?: boolean | undefined;
522
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
523
+ affectedComponents?: string[] | undefined;
524
+ }, {
525
+ rationale?: string | undefined;
526
+ analyzedAt?: string | undefined;
527
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
528
+ hasBreakingChange?: boolean | undefined;
529
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
530
+ affectedComponents?: string[] | undefined;
531
+ }>>;
532
+ }, "strip", z.ZodTypeAny, {
533
+ title?: string | undefined;
534
+ description?: string | undefined;
535
+ status?: "pending" | "in_progress" | "blocked" | "completed" | "cancelled" | undefined;
536
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
537
+ projectId?: string | undefined;
538
+ parentId?: string | null | undefined;
71
539
  dependencies?: {
72
540
  taskId: string;
73
541
  type: "blocks" | "blocked_by" | "related";
74
- reason?: string;
75
- }[];
542
+ reason?: string | undefined;
543
+ }[] | undefined;
76
544
  estimate?: {
77
- optimistic?: number;
78
- expected?: number;
79
- pessimistic?: number;
80
- confidence?: "high" | "medium" | "low";
81
- };
82
- dueDate?: string;
83
- startDate?: string;
84
- contexts?: string[];
85
- tags?: string[];
545
+ expected?: number | undefined;
546
+ optimistic?: number | undefined;
547
+ pessimistic?: number | undefined;
548
+ confidence?: "high" | "medium" | "low" | undefined;
549
+ } | undefined;
550
+ actualMinutes?: number | undefined;
551
+ dueDate?: string | undefined;
552
+ startDate?: string | undefined;
553
+ contexts?: string[] | undefined;
554
+ tags?: string[] | undefined;
86
555
  recurrence?: {
87
556
  pattern: "daily" | "weekly" | "monthly" | "after_completion";
88
- interval?: number;
89
- daysOfWeek?: number[];
90
- endDate?: string;
91
- };
92
- }, {}>;
93
- export type TaskCreateInput = typeof TaskCreateInput.infer;
94
- export declare const TaskUpdateInput: import("arktype/internal/methods/object.ts").ObjectType<{
95
- title?: string;
96
- description?: string;
97
- status?: "pending" | "in_progress" | "blocked" | "completed" | "cancelled";
98
- priority?: "critical" | "high" | "medium" | "low";
99
- projectId?: string;
557
+ interval?: number | undefined;
558
+ daysOfWeek?: number[] | undefined;
559
+ endDate?: string | undefined;
560
+ } | undefined;
561
+ complexity?: {
562
+ score?: number | undefined;
563
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
564
+ suggestedSubtasks?: number | undefined;
565
+ rationale?: string | undefined;
566
+ analyzedAt?: string | undefined;
567
+ } | undefined;
568
+ techStack?: {
569
+ rationale?: string | undefined;
570
+ analyzedAt?: string | undefined;
571
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
572
+ hasBreakingChange?: boolean | undefined;
573
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
574
+ affectedComponents?: string[] | undefined;
575
+ } | undefined;
576
+ }, {
577
+ title?: string | undefined;
578
+ description?: string | undefined;
579
+ status?: "pending" | "in_progress" | "blocked" | "completed" | "cancelled" | undefined;
580
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
581
+ projectId?: string | undefined;
582
+ parentId?: string | null | undefined;
100
583
  dependencies?: {
101
584
  taskId: string;
102
585
  type: "blocks" | "blocked_by" | "related";
103
- reason?: string;
104
- }[];
586
+ reason?: string | undefined;
587
+ }[] | undefined;
105
588
  estimate?: {
106
- optimistic?: number;
107
- expected?: number;
108
- pessimistic?: number;
109
- confidence?: "high" | "medium" | "low";
110
- };
111
- actualMinutes?: number;
112
- dueDate?: string;
113
- startDate?: string;
114
- contexts?: string[];
115
- tags?: string[];
589
+ expected?: number | undefined;
590
+ optimistic?: number | undefined;
591
+ pessimistic?: number | undefined;
592
+ confidence?: "high" | "medium" | "low" | undefined;
593
+ } | undefined;
594
+ actualMinutes?: number | undefined;
595
+ dueDate?: string | undefined;
596
+ startDate?: string | undefined;
597
+ contexts?: string[] | undefined;
598
+ tags?: string[] | undefined;
116
599
  recurrence?: {
117
600
  pattern: "daily" | "weekly" | "monthly" | "after_completion";
118
- interval?: number;
119
- daysOfWeek?: number[];
120
- endDate?: string;
121
- };
122
- }, {}>;
123
- export type TaskUpdateInput = typeof TaskUpdateInput.infer;
601
+ interval?: number | undefined;
602
+ daysOfWeek?: number[] | undefined;
603
+ endDate?: string | undefined;
604
+ } | undefined;
605
+ complexity?: {
606
+ score?: number | undefined;
607
+ factors?: ("cross_cutting" | "state_management" | "error_handling" | "performance" | "security" | "external_dependency" | "data_migration" | "breaking_change" | "unclear_requirements" | "coordination")[] | undefined;
608
+ suggestedSubtasks?: number | undefined;
609
+ rationale?: string | undefined;
610
+ analyzedAt?: string | undefined;
611
+ } | undefined;
612
+ techStack?: {
613
+ rationale?: string | undefined;
614
+ analyzedAt?: string | undefined;
615
+ areas?: ("schema" | "backend" | "frontend" | "infra" | "devops" | "test" | "docs" | "refactor")[] | undefined;
616
+ hasBreakingChange?: boolean | undefined;
617
+ riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
618
+ affectedComponents?: string[] | undefined;
619
+ } | undefined;
620
+ }>;
621
+ export type TaskUpdateInput = z.infer<typeof TaskUpdateInput>;
124
622
  //# sourceMappingURL=task.d.ts.map