@task-mcp/shared 1.0.27 → 1.0.29
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/dist/algorithms/index.d.ts +1 -1
- package/dist/algorithms/index.d.ts.map +1 -1
- package/dist/algorithms/index.js +1 -1
- package/dist/algorithms/index.js.map +1 -1
- package/dist/algorithms/topological-sort.d.ts +21 -1
- package/dist/algorithms/topological-sort.d.ts.map +1 -1
- package/dist/algorithms/topological-sort.js +12 -1
- package/dist/algorithms/topological-sort.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +4 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/response-format.d.ts +8 -0
- package/dist/schemas/response-format.d.ts.map +1 -1
- package/dist/schemas/response-format.js.map +1 -1
- package/dist/schemas/session.d.ts +521 -0
- package/dist/schemas/session.d.ts.map +1 -0
- package/dist/schemas/session.js +79 -0
- package/dist/schemas/session.js.map +1 -0
- package/dist/schemas/task.d.ts +285 -0
- package/dist/schemas/task.d.ts.map +1 -1
- package/dist/schemas/task.js +64 -6
- package/dist/schemas/task.js.map +1 -1
- package/dist/schemas/view.d.ts +18 -18
- package/dist/schemas/work-context.test.d.ts +2 -0
- package/dist/schemas/work-context.test.d.ts.map +1 -0
- package/dist/schemas/work-context.test.js +192 -0
- package/dist/schemas/work-context.test.js.map +1 -0
- package/dist/utils/hierarchy.d.ts.map +1 -1
- package/dist/utils/hierarchy.js +6 -3
- package/dist/utils/hierarchy.js.map +1 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/natural-language.d.ts.map +1 -1
- package/dist/utils/natural-language.js +54 -2
- package/dist/utils/natural-language.js.map +1 -1
- package/dist/utils/natural-language.test.js +46 -0
- package/dist/utils/natural-language.test.js.map +1 -1
- package/dist/utils/plan-parser.d.ts +57 -0
- package/dist/utils/plan-parser.d.ts.map +1 -0
- package/dist/utils/plan-parser.js +377 -0
- package/dist/utils/plan-parser.js.map +1 -0
- package/dist/utils/projection.d.ts.map +1 -1
- package/dist/utils/projection.js +29 -8
- package/dist/utils/projection.js.map +1 -1
- package/dist/utils/terminal-ui.d.ts +129 -0
- package/dist/utils/terminal-ui.d.ts.map +1 -1
- package/dist/utils/terminal-ui.js +191 -0
- package/dist/utils/terminal-ui.js.map +1 -1
- package/dist/utils/terminal-ui.test.js +236 -0
- package/dist/utils/terminal-ui.test.js.map +1 -1
- package/package.json +2 -2
- package/src/algorithms/index.ts +3 -0
- package/src/algorithms/topological-sort.ts +31 -1
- package/src/schemas/index.ts +16 -0
- package/src/schemas/response-format.ts +13 -1
- package/src/schemas/session.ts +100 -0
- package/src/schemas/task.ts +85 -16
- package/src/schemas/work-context.test.ts +221 -0
- package/src/utils/hierarchy.ts +8 -3
- package/src/utils/index.ts +31 -0
- package/src/utils/natural-language.test.ts +56 -0
- package/src/utils/natural-language.ts +60 -3
- package/src/utils/plan-parser.ts +478 -0
- package/src/utils/projection.ts +29 -8
- package/src/utils/terminal-ui.test.ts +286 -0
- package/src/utils/terminal-ui.ts +315 -0
package/dist/schemas/task.d.ts
CHANGED
|
@@ -148,6 +148,87 @@ export declare const TechStackAnalysis: z.ZodObject<{
|
|
|
148
148
|
affectedComponents?: string[] | undefined;
|
|
149
149
|
}>;
|
|
150
150
|
export type TechStackAnalysis = z.infer<typeof TechStackAnalysis>;
|
|
151
|
+
export declare const QualityLevel: z.ZodEnum<["quick", "standard", "thorough", "exhaustive"]>;
|
|
152
|
+
export type QualityLevel = z.infer<typeof QualityLevel>;
|
|
153
|
+
export declare const WorkPatterns: z.ZodObject<{
|
|
154
|
+
parallelExecution: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
fileByFileAnalysis: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
testFirst: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
parallelExecution?: boolean | undefined;
|
|
160
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
161
|
+
testFirst?: boolean | undefined;
|
|
162
|
+
reviewRequired?: boolean | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
parallelExecution?: boolean | undefined;
|
|
165
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
166
|
+
testFirst?: boolean | undefined;
|
|
167
|
+
reviewRequired?: boolean | undefined;
|
|
168
|
+
}>;
|
|
169
|
+
export type WorkPatterns = z.infer<typeof WorkPatterns>;
|
|
170
|
+
/**
|
|
171
|
+
* WorkContext - Captures the "how" of task execution
|
|
172
|
+
*
|
|
173
|
+
* When a session is interrupted and resumed, this context enables
|
|
174
|
+
* Claude to continue with the same quality level and methodology.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```typescript
|
|
178
|
+
* workContext: {
|
|
179
|
+
* intent: "Migrate API layer to service pattern",
|
|
180
|
+
* methodology: "Analyze each file → Review types → Extract service → Test",
|
|
181
|
+
* qualityLevel: "thorough",
|
|
182
|
+
* patterns: { fileByFileAnalysis: true, reviewRequired: true },
|
|
183
|
+
* acceptanceCriteria: ["All tests pass", "No type errors"]
|
|
184
|
+
* }
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
export declare const WorkContext: z.ZodObject<{
|
|
188
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
189
|
+
methodology: z.ZodOptional<z.ZodString>;
|
|
190
|
+
qualityLevel: z.ZodOptional<z.ZodEnum<["quick", "standard", "thorough", "exhaustive"]>>;
|
|
191
|
+
patterns: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
parallelExecution: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
fileByFileAnalysis: z.ZodOptional<z.ZodBoolean>;
|
|
194
|
+
testFirst: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
parallelExecution?: boolean | undefined;
|
|
198
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
199
|
+
testFirst?: boolean | undefined;
|
|
200
|
+
reviewRequired?: boolean | undefined;
|
|
201
|
+
}, {
|
|
202
|
+
parallelExecution?: boolean | undefined;
|
|
203
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
204
|
+
testFirst?: boolean | undefined;
|
|
205
|
+
reviewRequired?: boolean | undefined;
|
|
206
|
+
}>>;
|
|
207
|
+
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
intent?: string | undefined;
|
|
210
|
+
methodology?: string | undefined;
|
|
211
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
212
|
+
patterns?: {
|
|
213
|
+
parallelExecution?: boolean | undefined;
|
|
214
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
215
|
+
testFirst?: boolean | undefined;
|
|
216
|
+
reviewRequired?: boolean | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
acceptanceCriteria?: string[] | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
intent?: string | undefined;
|
|
221
|
+
methodology?: string | undefined;
|
|
222
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
223
|
+
patterns?: {
|
|
224
|
+
parallelExecution?: boolean | undefined;
|
|
225
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
226
|
+
testFirst?: boolean | undefined;
|
|
227
|
+
reviewRequired?: boolean | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
acceptanceCriteria?: string[] | undefined;
|
|
230
|
+
}>;
|
|
231
|
+
export type WorkContext = z.infer<typeof WorkContext>;
|
|
151
232
|
export declare const Task: z.ZodObject<{
|
|
152
233
|
id: z.ZodString;
|
|
153
234
|
title: z.ZodString;
|
|
@@ -303,6 +384,50 @@ export declare const Task: z.ZodObject<{
|
|
|
303
384
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
304
385
|
affectedComponents?: string[] | undefined;
|
|
305
386
|
}>>;
|
|
387
|
+
workContext: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
389
|
+
methodology: z.ZodOptional<z.ZodString>;
|
|
390
|
+
qualityLevel: z.ZodOptional<z.ZodEnum<["quick", "standard", "thorough", "exhaustive"]>>;
|
|
391
|
+
patterns: z.ZodOptional<z.ZodObject<{
|
|
392
|
+
parallelExecution: z.ZodOptional<z.ZodBoolean>;
|
|
393
|
+
fileByFileAnalysis: z.ZodOptional<z.ZodBoolean>;
|
|
394
|
+
testFirst: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
396
|
+
}, "strip", z.ZodTypeAny, {
|
|
397
|
+
parallelExecution?: boolean | undefined;
|
|
398
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
399
|
+
testFirst?: boolean | undefined;
|
|
400
|
+
reviewRequired?: boolean | undefined;
|
|
401
|
+
}, {
|
|
402
|
+
parallelExecution?: boolean | undefined;
|
|
403
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
404
|
+
testFirst?: boolean | undefined;
|
|
405
|
+
reviewRequired?: boolean | undefined;
|
|
406
|
+
}>>;
|
|
407
|
+
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
408
|
+
}, "strip", z.ZodTypeAny, {
|
|
409
|
+
intent?: string | undefined;
|
|
410
|
+
methodology?: string | undefined;
|
|
411
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
412
|
+
patterns?: {
|
|
413
|
+
parallelExecution?: boolean | undefined;
|
|
414
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
415
|
+
testFirst?: boolean | undefined;
|
|
416
|
+
reviewRequired?: boolean | undefined;
|
|
417
|
+
} | undefined;
|
|
418
|
+
acceptanceCriteria?: string[] | undefined;
|
|
419
|
+
}, {
|
|
420
|
+
intent?: string | undefined;
|
|
421
|
+
methodology?: string | undefined;
|
|
422
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
423
|
+
patterns?: {
|
|
424
|
+
parallelExecution?: boolean | undefined;
|
|
425
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
426
|
+
testFirst?: boolean | undefined;
|
|
427
|
+
reviewRequired?: boolean | undefined;
|
|
428
|
+
} | undefined;
|
|
429
|
+
acceptanceCriteria?: string[] | undefined;
|
|
430
|
+
}>>;
|
|
306
431
|
}, "strip", z.ZodTypeAny, {
|
|
307
432
|
id: string;
|
|
308
433
|
title: string;
|
|
@@ -370,6 +495,18 @@ export declare const Task: z.ZodObject<{
|
|
|
370
495
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
371
496
|
affectedComponents?: string[] | undefined;
|
|
372
497
|
} | undefined;
|
|
498
|
+
workContext?: {
|
|
499
|
+
intent?: string | undefined;
|
|
500
|
+
methodology?: string | undefined;
|
|
501
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
502
|
+
patterns?: {
|
|
503
|
+
parallelExecution?: boolean | undefined;
|
|
504
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
505
|
+
testFirst?: boolean | undefined;
|
|
506
|
+
reviewRequired?: boolean | undefined;
|
|
507
|
+
} | undefined;
|
|
508
|
+
acceptanceCriteria?: string[] | undefined;
|
|
509
|
+
} | undefined;
|
|
373
510
|
}, {
|
|
374
511
|
id: string;
|
|
375
512
|
title: string;
|
|
@@ -437,6 +574,18 @@ export declare const Task: z.ZodObject<{
|
|
|
437
574
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
438
575
|
affectedComponents?: string[] | undefined;
|
|
439
576
|
} | undefined;
|
|
577
|
+
workContext?: {
|
|
578
|
+
intent?: string | undefined;
|
|
579
|
+
methodology?: string | undefined;
|
|
580
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
581
|
+
patterns?: {
|
|
582
|
+
parallelExecution?: boolean | undefined;
|
|
583
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
584
|
+
testFirst?: boolean | undefined;
|
|
585
|
+
reviewRequired?: boolean | undefined;
|
|
586
|
+
} | undefined;
|
|
587
|
+
acceptanceCriteria?: string[] | undefined;
|
|
588
|
+
} | undefined;
|
|
440
589
|
}>;
|
|
441
590
|
export type Task = z.infer<typeof Task>;
|
|
442
591
|
export declare const TaskCreateInput: z.ZodObject<{
|
|
@@ -540,6 +689,50 @@ export declare const TaskCreateInput: z.ZodObject<{
|
|
|
540
689
|
interval: number;
|
|
541
690
|
endDate?: string | undefined;
|
|
542
691
|
}>]>>;
|
|
692
|
+
workContext: z.ZodOptional<z.ZodObject<{
|
|
693
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
694
|
+
methodology: z.ZodOptional<z.ZodString>;
|
|
695
|
+
qualityLevel: z.ZodOptional<z.ZodEnum<["quick", "standard", "thorough", "exhaustive"]>>;
|
|
696
|
+
patterns: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
parallelExecution: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
fileByFileAnalysis: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
testFirst: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
701
|
+
}, "strip", z.ZodTypeAny, {
|
|
702
|
+
parallelExecution?: boolean | undefined;
|
|
703
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
704
|
+
testFirst?: boolean | undefined;
|
|
705
|
+
reviewRequired?: boolean | undefined;
|
|
706
|
+
}, {
|
|
707
|
+
parallelExecution?: boolean | undefined;
|
|
708
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
709
|
+
testFirst?: boolean | undefined;
|
|
710
|
+
reviewRequired?: boolean | undefined;
|
|
711
|
+
}>>;
|
|
712
|
+
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
713
|
+
}, "strip", z.ZodTypeAny, {
|
|
714
|
+
intent?: string | undefined;
|
|
715
|
+
methodology?: string | undefined;
|
|
716
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
717
|
+
patterns?: {
|
|
718
|
+
parallelExecution?: boolean | undefined;
|
|
719
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
720
|
+
testFirst?: boolean | undefined;
|
|
721
|
+
reviewRequired?: boolean | undefined;
|
|
722
|
+
} | undefined;
|
|
723
|
+
acceptanceCriteria?: string[] | undefined;
|
|
724
|
+
}, {
|
|
725
|
+
intent?: string | undefined;
|
|
726
|
+
methodology?: string | undefined;
|
|
727
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
728
|
+
patterns?: {
|
|
729
|
+
parallelExecution?: boolean | undefined;
|
|
730
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
731
|
+
testFirst?: boolean | undefined;
|
|
732
|
+
reviewRequired?: boolean | undefined;
|
|
733
|
+
} | undefined;
|
|
734
|
+
acceptanceCriteria?: string[] | undefined;
|
|
735
|
+
}>>;
|
|
543
736
|
}, "strip", z.ZodTypeAny, {
|
|
544
737
|
title: string;
|
|
545
738
|
description?: string | undefined;
|
|
@@ -579,6 +772,18 @@ export declare const TaskCreateInput: z.ZodObject<{
|
|
|
579
772
|
interval: number;
|
|
580
773
|
endDate?: string | undefined;
|
|
581
774
|
} | undefined;
|
|
775
|
+
workContext?: {
|
|
776
|
+
intent?: string | undefined;
|
|
777
|
+
methodology?: string | undefined;
|
|
778
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
779
|
+
patterns?: {
|
|
780
|
+
parallelExecution?: boolean | undefined;
|
|
781
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
782
|
+
testFirst?: boolean | undefined;
|
|
783
|
+
reviewRequired?: boolean | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
acceptanceCriteria?: string[] | undefined;
|
|
786
|
+
} | undefined;
|
|
582
787
|
}, {
|
|
583
788
|
title: string;
|
|
584
789
|
description?: string | undefined;
|
|
@@ -618,6 +823,18 @@ export declare const TaskCreateInput: z.ZodObject<{
|
|
|
618
823
|
interval: number;
|
|
619
824
|
endDate?: string | undefined;
|
|
620
825
|
} | undefined;
|
|
826
|
+
workContext?: {
|
|
827
|
+
intent?: string | undefined;
|
|
828
|
+
methodology?: string | undefined;
|
|
829
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
830
|
+
patterns?: {
|
|
831
|
+
parallelExecution?: boolean | undefined;
|
|
832
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
833
|
+
testFirst?: boolean | undefined;
|
|
834
|
+
reviewRequired?: boolean | undefined;
|
|
835
|
+
} | undefined;
|
|
836
|
+
acceptanceCriteria?: string[] | undefined;
|
|
837
|
+
} | undefined;
|
|
621
838
|
}>;
|
|
622
839
|
export type TaskCreateInput = z.infer<typeof TaskCreateInput>;
|
|
623
840
|
export declare const TaskUpdateInput: z.ZodObject<{
|
|
@@ -764,6 +981,50 @@ export declare const TaskUpdateInput: z.ZodObject<{
|
|
|
764
981
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
765
982
|
affectedComponents?: string[] | undefined;
|
|
766
983
|
}>>;
|
|
984
|
+
workContext: z.ZodOptional<z.ZodObject<{
|
|
985
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
986
|
+
methodology: z.ZodOptional<z.ZodString>;
|
|
987
|
+
qualityLevel: z.ZodOptional<z.ZodEnum<["quick", "standard", "thorough", "exhaustive"]>>;
|
|
988
|
+
patterns: z.ZodOptional<z.ZodObject<{
|
|
989
|
+
parallelExecution: z.ZodOptional<z.ZodBoolean>;
|
|
990
|
+
fileByFileAnalysis: z.ZodOptional<z.ZodBoolean>;
|
|
991
|
+
testFirst: z.ZodOptional<z.ZodBoolean>;
|
|
992
|
+
reviewRequired: z.ZodOptional<z.ZodBoolean>;
|
|
993
|
+
}, "strip", z.ZodTypeAny, {
|
|
994
|
+
parallelExecution?: boolean | undefined;
|
|
995
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
996
|
+
testFirst?: boolean | undefined;
|
|
997
|
+
reviewRequired?: boolean | undefined;
|
|
998
|
+
}, {
|
|
999
|
+
parallelExecution?: boolean | undefined;
|
|
1000
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
1001
|
+
testFirst?: boolean | undefined;
|
|
1002
|
+
reviewRequired?: boolean | undefined;
|
|
1003
|
+
}>>;
|
|
1004
|
+
acceptanceCriteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
intent?: string | undefined;
|
|
1007
|
+
methodology?: string | undefined;
|
|
1008
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
1009
|
+
patterns?: {
|
|
1010
|
+
parallelExecution?: boolean | undefined;
|
|
1011
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
1012
|
+
testFirst?: boolean | undefined;
|
|
1013
|
+
reviewRequired?: boolean | undefined;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
acceptanceCriteria?: string[] | undefined;
|
|
1016
|
+
}, {
|
|
1017
|
+
intent?: string | undefined;
|
|
1018
|
+
methodology?: string | undefined;
|
|
1019
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
1020
|
+
patterns?: {
|
|
1021
|
+
parallelExecution?: boolean | undefined;
|
|
1022
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
1023
|
+
testFirst?: boolean | undefined;
|
|
1024
|
+
reviewRequired?: boolean | undefined;
|
|
1025
|
+
} | undefined;
|
|
1026
|
+
acceptanceCriteria?: string[] | undefined;
|
|
1027
|
+
}>>;
|
|
767
1028
|
}, "strip", z.ZodTypeAny, {
|
|
768
1029
|
title?: string | undefined;
|
|
769
1030
|
description?: string | undefined;
|
|
@@ -820,6 +1081,18 @@ export declare const TaskUpdateInput: z.ZodObject<{
|
|
|
820
1081
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
821
1082
|
affectedComponents?: string[] | undefined;
|
|
822
1083
|
} | undefined;
|
|
1084
|
+
workContext?: {
|
|
1085
|
+
intent?: string | undefined;
|
|
1086
|
+
methodology?: string | undefined;
|
|
1087
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
1088
|
+
patterns?: {
|
|
1089
|
+
parallelExecution?: boolean | undefined;
|
|
1090
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
1091
|
+
testFirst?: boolean | undefined;
|
|
1092
|
+
reviewRequired?: boolean | undefined;
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
acceptanceCriteria?: string[] | undefined;
|
|
1095
|
+
} | undefined;
|
|
823
1096
|
}, {
|
|
824
1097
|
title?: string | undefined;
|
|
825
1098
|
description?: string | undefined;
|
|
@@ -876,6 +1149,18 @@ export declare const TaskUpdateInput: z.ZodObject<{
|
|
|
876
1149
|
riskLevel?: "critical" | "high" | "medium" | "low" | undefined;
|
|
877
1150
|
affectedComponents?: string[] | undefined;
|
|
878
1151
|
} | undefined;
|
|
1152
|
+
workContext?: {
|
|
1153
|
+
intent?: string | undefined;
|
|
1154
|
+
methodology?: string | undefined;
|
|
1155
|
+
qualityLevel?: "quick" | "standard" | "thorough" | "exhaustive" | undefined;
|
|
1156
|
+
patterns?: {
|
|
1157
|
+
parallelExecution?: boolean | undefined;
|
|
1158
|
+
fileByFileAnalysis?: boolean | undefined;
|
|
1159
|
+
testFirst?: boolean | undefined;
|
|
1160
|
+
reviewRequired?: boolean | undefined;
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
acceptanceCriteria?: string[] | undefined;
|
|
1163
|
+
} | undefined;
|
|
879
1164
|
}>;
|
|
880
1165
|
export type TaskUpdateInput = z.infer<typeof TaskUpdateInput>;
|
|
881
1166
|
//# sourceMappingURL=task.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/schemas/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,QAAQ,kDAAgD,CAAC;AACtE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGhD,eAAO,MAAM,UAAU,4EAA0E,CAAC;AAClG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGpD,eAAO,MAAM,cAAc,gDAA8C,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAG5D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAIrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/schemas/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,QAAQ,kDAAgD,CAAC;AACtE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGhD,eAAO,MAAM,UAAU,4EAA0E,CAAC;AAClG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAGpD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAI9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
package/dist/schemas/task.js
CHANGED
|
@@ -19,19 +19,33 @@ export const TimeEstimate = z
|
|
|
19
19
|
pessimistic: z.number().min(0).max(10080).optional(), // minutes
|
|
20
20
|
confidence: z.enum(["low", "medium", "high"]).optional(),
|
|
21
21
|
})
|
|
22
|
-
.
|
|
22
|
+
.superRefine((data, ctx) => {
|
|
23
23
|
const { optimistic, expected, pessimistic } = data;
|
|
24
|
+
// Check: optimistic <= expected
|
|
24
25
|
if (optimistic !== undefined && expected !== undefined && optimistic > expected) {
|
|
25
|
-
|
|
26
|
+
ctx.addIssue({
|
|
27
|
+
code: z.ZodIssueCode.custom,
|
|
28
|
+
message: `optimistic (${optimistic}min) must be <= expected (${expected}min)`,
|
|
29
|
+
path: ["optimistic"],
|
|
30
|
+
});
|
|
26
31
|
}
|
|
32
|
+
// Check: expected <= pessimistic
|
|
27
33
|
if (expected !== undefined && pessimistic !== undefined && expected > pessimistic) {
|
|
28
|
-
|
|
34
|
+
ctx.addIssue({
|
|
35
|
+
code: z.ZodIssueCode.custom,
|
|
36
|
+
message: `expected (${expected}min) must be <= pessimistic (${pessimistic}min)`,
|
|
37
|
+
path: ["expected"],
|
|
38
|
+
});
|
|
29
39
|
}
|
|
40
|
+
// Check: optimistic <= pessimistic (when expected is not provided)
|
|
30
41
|
if (optimistic !== undefined && pessimistic !== undefined && optimistic > pessimistic) {
|
|
31
|
-
|
|
42
|
+
ctx.addIssue({
|
|
43
|
+
code: z.ZodIssueCode.custom,
|
|
44
|
+
message: `optimistic (${optimistic}min) must be <= pessimistic (${pessimistic}min)`,
|
|
45
|
+
path: ["optimistic"],
|
|
46
|
+
});
|
|
32
47
|
}
|
|
33
|
-
|
|
34
|
-
}, { message: "Time estimates must satisfy: optimistic <= expected <= pessimistic" });
|
|
48
|
+
});
|
|
35
49
|
// Recurrence pattern (discriminated union for type-safe pattern handling)
|
|
36
50
|
export const Recurrence = z.discriminatedUnion("pattern", [
|
|
37
51
|
z.object({
|
|
@@ -99,6 +113,44 @@ export const TechStackAnalysis = z.object({
|
|
|
99
113
|
rationale: z.string().optional(),
|
|
100
114
|
analyzedAt: z.string().optional(),
|
|
101
115
|
});
|
|
116
|
+
// Quality level for work context
|
|
117
|
+
export const QualityLevel = z.enum(["quick", "standard", "thorough", "exhaustive"]);
|
|
118
|
+
// Work patterns for task execution
|
|
119
|
+
export const WorkPatterns = z.object({
|
|
120
|
+
parallelExecution: z.boolean().optional(), // Use parallel agents
|
|
121
|
+
fileByFileAnalysis: z.boolean().optional(), // Analyze each file individually
|
|
122
|
+
testFirst: z.boolean().optional(), // Write tests before implementation
|
|
123
|
+
reviewRequired: z.boolean().optional(), // Require review before completion
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* WorkContext - Captures the "how" of task execution
|
|
127
|
+
*
|
|
128
|
+
* When a session is interrupted and resumed, this context enables
|
|
129
|
+
* Claude to continue with the same quality level and methodology.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```typescript
|
|
133
|
+
* workContext: {
|
|
134
|
+
* intent: "Migrate API layer to service pattern",
|
|
135
|
+
* methodology: "Analyze each file → Review types → Extract service → Test",
|
|
136
|
+
* qualityLevel: "thorough",
|
|
137
|
+
* patterns: { fileByFileAnalysis: true, reviewRequired: true },
|
|
138
|
+
* acceptanceCriteria: ["All tests pass", "No type errors"]
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
export const WorkContext = z.object({
|
|
143
|
+
// Work intent - why this task exists
|
|
144
|
+
intent: z.string().optional(),
|
|
145
|
+
// Methodology - how to approach the work
|
|
146
|
+
methodology: z.string().optional(),
|
|
147
|
+
// Quality level - how thorough the work should be
|
|
148
|
+
qualityLevel: QualityLevel.optional(),
|
|
149
|
+
// Work patterns - specific execution patterns
|
|
150
|
+
patterns: WorkPatterns.optional(),
|
|
151
|
+
// Acceptance criteria - conditions for completion
|
|
152
|
+
acceptanceCriteria: z.array(z.string()).optional(),
|
|
153
|
+
});
|
|
102
154
|
// Core Task schema
|
|
103
155
|
export const Task = z.object({
|
|
104
156
|
id: z.string(),
|
|
@@ -136,6 +188,8 @@ export const Task = z.object({
|
|
|
136
188
|
// Analysis fields (populated by Claude)
|
|
137
189
|
complexity: ComplexityAnalysis.optional(),
|
|
138
190
|
techStack: TechStackAnalysis.optional(),
|
|
191
|
+
// Work context - captures execution methodology for session resumption
|
|
192
|
+
workContext: WorkContext.optional(),
|
|
139
193
|
});
|
|
140
194
|
// Task creation input (minimal required fields)
|
|
141
195
|
// Note: workspace is auto-detected and set by TaskStore, not user-provided
|
|
@@ -152,6 +206,8 @@ export const TaskCreateInput = z.object({
|
|
|
152
206
|
tags: z.array(z.string()).optional(),
|
|
153
207
|
sortOrder: z.number().optional(),
|
|
154
208
|
recurrence: Recurrence.optional(),
|
|
209
|
+
// Work context for session resumption
|
|
210
|
+
workContext: WorkContext.optional(),
|
|
155
211
|
});
|
|
156
212
|
// Task update input
|
|
157
213
|
// Note: workspace cannot be changed after creation
|
|
@@ -173,5 +229,7 @@ export const TaskUpdateInput = z.object({
|
|
|
173
229
|
// Analysis fields
|
|
174
230
|
complexity: ComplexityAnalysis.optional(),
|
|
175
231
|
techStack: TechStackAnalysis.optional(),
|
|
232
|
+
// Work context for session resumption
|
|
233
|
+
workContext: WorkContext.optional(),
|
|
176
234
|
});
|
|
177
235
|
//# sourceMappingURL=task.js.map
|
package/dist/schemas/task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../src/schemas/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,kBAAkB;AAClB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAGtE,uCAAuC;AACvC,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AAGlG,gCAAgC;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;AAG1E,2BAA2B;AAC3B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAGH,0DAA0D;AAC1D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CA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CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,+DAA+D;IAC3G,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,UAAU,CAAC,QAAQ,EAAE;IACjC,kBAAkB;IAClB,UAAU,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IACvC,sCAAsC;IACtC,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
package/dist/schemas/view.d.ts
CHANGED
|
@@ -13,10 +13,10 @@ export declare const SmartViewFilter: z.ZodObject<{
|
|
|
13
13
|
hasNoDependencies: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
search: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
contexts?: string[] | undefined;
|
|
17
|
-
tags?: string[] | undefined;
|
|
18
16
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
19
17
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
18
|
+
contexts?: string[] | undefined;
|
|
19
|
+
tags?: string[] | undefined;
|
|
20
20
|
workspaces?: string[] | undefined;
|
|
21
21
|
allWorkspaces?: boolean | undefined;
|
|
22
22
|
dueBefore?: string | undefined;
|
|
@@ -26,10 +26,10 @@ export declare const SmartViewFilter: z.ZodObject<{
|
|
|
26
26
|
hasNoDependencies?: boolean | undefined;
|
|
27
27
|
search?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
contexts?: string[] | undefined;
|
|
30
|
-
tags?: string[] | undefined;
|
|
31
29
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
32
30
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
31
|
+
contexts?: string[] | undefined;
|
|
32
|
+
tags?: string[] | undefined;
|
|
33
33
|
workspaces?: string[] | undefined;
|
|
34
34
|
allWorkspaces?: boolean | undefined;
|
|
35
35
|
dueBefore?: string | undefined;
|
|
@@ -62,10 +62,10 @@ export declare const SmartView: z.ZodObject<{
|
|
|
62
62
|
hasNoDependencies: z.ZodOptional<z.ZodBoolean>;
|
|
63
63
|
search: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
contexts?: string[] | undefined;
|
|
66
|
-
tags?: string[] | undefined;
|
|
67
65
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
68
66
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
67
|
+
contexts?: string[] | undefined;
|
|
68
|
+
tags?: string[] | undefined;
|
|
69
69
|
workspaces?: string[] | undefined;
|
|
70
70
|
allWorkspaces?: boolean | undefined;
|
|
71
71
|
dueBefore?: string | undefined;
|
|
@@ -75,10 +75,10 @@ export declare const SmartView: z.ZodObject<{
|
|
|
75
75
|
hasNoDependencies?: boolean | undefined;
|
|
76
76
|
search?: string | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
contexts?: string[] | undefined;
|
|
79
|
-
tags?: string[] | undefined;
|
|
80
78
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
81
79
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
80
|
+
contexts?: string[] | undefined;
|
|
81
|
+
tags?: string[] | undefined;
|
|
82
82
|
workspaces?: string[] | undefined;
|
|
83
83
|
allWorkspaces?: boolean | undefined;
|
|
84
84
|
dueBefore?: string | undefined;
|
|
@@ -93,12 +93,11 @@ export declare const SmartView: z.ZodObject<{
|
|
|
93
93
|
createdAt: z.ZodString;
|
|
94
94
|
updatedAt: z.ZodString;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
id: string;
|
|
97
96
|
filter: {
|
|
98
|
-
contexts?: string[] | undefined;
|
|
99
|
-
tags?: string[] | undefined;
|
|
100
97
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
101
98
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
99
|
+
contexts?: string[] | undefined;
|
|
100
|
+
tags?: string[] | undefined;
|
|
102
101
|
workspaces?: string[] | undefined;
|
|
103
102
|
allWorkspaces?: boolean | undefined;
|
|
104
103
|
dueBefore?: string | undefined;
|
|
@@ -109,18 +108,18 @@ export declare const SmartView: z.ZodObject<{
|
|
|
109
108
|
search?: string | undefined;
|
|
110
109
|
};
|
|
111
110
|
createdAt: string;
|
|
112
|
-
|
|
111
|
+
id: string;
|
|
113
112
|
name: string;
|
|
113
|
+
updatedAt: string;
|
|
114
114
|
description?: string | undefined;
|
|
115
|
+
sortBy?: "priority" | "dueDate" | "createdAt" | "criticalPath" | "slack" | "title" | undefined;
|
|
115
116
|
sortOrder?: "asc" | "desc" | undefined;
|
|
116
|
-
sortBy?: "title" | "priority" | "dueDate" | "createdAt" | "criticalPath" | "slack" | undefined;
|
|
117
117
|
}, {
|
|
118
|
-
id: string;
|
|
119
118
|
filter: {
|
|
120
|
-
contexts?: string[] | undefined;
|
|
121
|
-
tags?: string[] | undefined;
|
|
122
119
|
statuses?: ("pending" | "in_progress" | "blocked" | "completed" | "cancelled")[] | undefined;
|
|
123
120
|
priorities?: ("critical" | "high" | "medium" | "low")[] | undefined;
|
|
121
|
+
contexts?: string[] | undefined;
|
|
122
|
+
tags?: string[] | undefined;
|
|
124
123
|
workspaces?: string[] | undefined;
|
|
125
124
|
allWorkspaces?: boolean | undefined;
|
|
126
125
|
dueBefore?: string | undefined;
|
|
@@ -131,11 +130,12 @@ export declare const SmartView: z.ZodObject<{
|
|
|
131
130
|
search?: string | undefined;
|
|
132
131
|
};
|
|
133
132
|
createdAt: string;
|
|
134
|
-
|
|
133
|
+
id: string;
|
|
135
134
|
name: string;
|
|
135
|
+
updatedAt: string;
|
|
136
136
|
description?: string | undefined;
|
|
137
|
+
sortBy?: "priority" | "dueDate" | "createdAt" | "criticalPath" | "slack" | "title" | undefined;
|
|
137
138
|
sortOrder?: "asc" | "desc" | undefined;
|
|
138
|
-
sortBy?: "title" | "priority" | "dueDate" | "createdAt" | "criticalPath" | "slack" | undefined;
|
|
139
139
|
}>;
|
|
140
140
|
export type SmartView = z.infer<typeof SmartView>;
|
|
141
141
|
export declare const BuiltInView: z.ZodEnum<["today", "this_week", "blocked", "critical_path", "quick_wins", "all"]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-context.test.d.ts","sourceRoot":"","sources":["../../src/schemas/work-context.test.ts"],"names":[],"mappings":""}
|