@agent-plan/core 0.2.20 → 0.2.22-next.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/dist/display-status.d.ts +2 -2
- package/dist/display-status.js +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/package-version.d.ts +9 -0
- package/dist/package-version.d.ts.map +1 -0
- package/dist/package-version.js +35 -0
- package/dist/plan-store.d.ts +26 -10
- package/dist/plan-store.d.ts.map +1 -1
- package/dist/plan-store.js +289 -45
- package/dist/planner-rules.d.ts +21 -0
- package/dist/planner-rules.d.ts.map +1 -0
- package/dist/planner-rules.js +58 -0
- package/dist/read-tracking.d.ts +58 -0
- package/dist/read-tracking.d.ts.map +1 -0
- package/dist/read-tracking.js +87 -0
- package/dist/recap.d.ts.map +1 -1
- package/dist/recap.js +78 -5
- package/dist/schema.d.ts +880 -21
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +27 -1
- package/dist/task-selection.d.ts +37 -0
- package/dist/task-selection.d.ts.map +1 -1
- package/dist/task-selection.js +57 -21
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -272,6 +272,39 @@ export declare const AcceptedDecisionSchema: z.ZodObject<{
|
|
|
272
272
|
rationale?: string | undefined;
|
|
273
273
|
implementationNotes?: string | undefined;
|
|
274
274
|
}>;
|
|
275
|
+
export declare const TaskPauseSnapshotSchema: z.ZodObject<{
|
|
276
|
+
id: z.ZodString;
|
|
277
|
+
/** Why work stopped or changed focus. */
|
|
278
|
+
reason: z.ZodString;
|
|
279
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
280
|
+
whatWasBeingDone: z.ZodString;
|
|
281
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
282
|
+
resumeLocation: z.ZodString;
|
|
283
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
284
|
+
howToResume: z.ZodString;
|
|
285
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
286
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
287
|
+
pausedAt: z.ZodString;
|
|
288
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
id: string;
|
|
291
|
+
reason: string;
|
|
292
|
+
whatWasBeingDone: string;
|
|
293
|
+
resumeLocation: string;
|
|
294
|
+
howToResume: string;
|
|
295
|
+
relatedTaskId: string;
|
|
296
|
+
pausedAt: string;
|
|
297
|
+
pausedBy: string;
|
|
298
|
+
}, {
|
|
299
|
+
id: string;
|
|
300
|
+
reason: string;
|
|
301
|
+
whatWasBeingDone: string;
|
|
302
|
+
resumeLocation: string;
|
|
303
|
+
howToResume: string;
|
|
304
|
+
pausedAt: string;
|
|
305
|
+
relatedTaskId?: string | undefined;
|
|
306
|
+
pausedBy?: string | undefined;
|
|
307
|
+
}>;
|
|
275
308
|
export declare const WorkDeviationSchema: z.ZodObject<{
|
|
276
309
|
id: z.ZodString;
|
|
277
310
|
/** Task the priority selector recommended when the deviation was approved. */
|
|
@@ -281,24 +314,75 @@ export declare const WorkDeviationSchema: z.ZodObject<{
|
|
|
281
314
|
/** Task to surface explicitly after the temporary work is resolved. */
|
|
282
315
|
resumeTaskId: z.ZodString;
|
|
283
316
|
reason: z.ZodDefault<z.ZodString>;
|
|
317
|
+
/** Durable checkpoint captured when the resume task was paused. */
|
|
318
|
+
snapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
319
|
+
id: z.ZodString;
|
|
320
|
+
/** Why work stopped or changed focus. */
|
|
321
|
+
reason: z.ZodString;
|
|
322
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
323
|
+
whatWasBeingDone: z.ZodString;
|
|
324
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
325
|
+
resumeLocation: z.ZodString;
|
|
326
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
327
|
+
howToResume: z.ZodString;
|
|
328
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
329
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
330
|
+
pausedAt: z.ZodString;
|
|
331
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
id: string;
|
|
334
|
+
reason: string;
|
|
335
|
+
whatWasBeingDone: string;
|
|
336
|
+
resumeLocation: string;
|
|
337
|
+
howToResume: string;
|
|
338
|
+
relatedTaskId: string;
|
|
339
|
+
pausedAt: string;
|
|
340
|
+
pausedBy: string;
|
|
341
|
+
}, {
|
|
342
|
+
id: string;
|
|
343
|
+
reason: string;
|
|
344
|
+
whatWasBeingDone: string;
|
|
345
|
+
resumeLocation: string;
|
|
346
|
+
howToResume: string;
|
|
347
|
+
pausedAt: string;
|
|
348
|
+
relatedTaskId?: string | undefined;
|
|
349
|
+
pausedBy?: string | undefined;
|
|
350
|
+
}>>>;
|
|
284
351
|
requestedBy: z.ZodDefault<z.ZodEnum<["agent", "user"]>>;
|
|
285
352
|
approvedBy: z.ZodDefault<z.ZodString>;
|
|
286
|
-
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resolved", "canceled"]>>;
|
|
353
|
+
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resume-required", "resolved", "resumed", "canceled"]>>;
|
|
287
354
|
createdAt: z.ZodString;
|
|
288
355
|
activatedAt: z.ZodDefault<z.ZodString>;
|
|
356
|
+
/** When temporary work ended and the resume target became mandatory. */
|
|
357
|
+
resumeRequiredAt: z.ZodDefault<z.ZodString>;
|
|
358
|
+
/** Legacy temporary-work completion timestamp. */
|
|
289
359
|
resolvedAt: z.ZodDefault<z.ZodString>;
|
|
360
|
+
/** When the preserved resume target was actually started again. */
|
|
361
|
+
resumedAt: z.ZodDefault<z.ZodString>;
|
|
290
362
|
}, "strip", z.ZodTypeAny, {
|
|
291
363
|
id: string;
|
|
292
364
|
createdAt: string;
|
|
365
|
+
reason: string;
|
|
293
366
|
recommendedTaskId: string;
|
|
294
367
|
temporaryTaskId: string;
|
|
295
368
|
resumeTaskId: string;
|
|
296
|
-
|
|
369
|
+
snapshot: {
|
|
370
|
+
id: string;
|
|
371
|
+
reason: string;
|
|
372
|
+
whatWasBeingDone: string;
|
|
373
|
+
resumeLocation: string;
|
|
374
|
+
howToResume: string;
|
|
375
|
+
relatedTaskId: string;
|
|
376
|
+
pausedAt: string;
|
|
377
|
+
pausedBy: string;
|
|
378
|
+
} | null;
|
|
297
379
|
requestedBy: "agent" | "user";
|
|
298
380
|
approvedBy: string;
|
|
299
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
381
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
300
382
|
activatedAt: string;
|
|
383
|
+
resumeRequiredAt: string;
|
|
301
384
|
resolvedAt: string;
|
|
385
|
+
resumedAt: string;
|
|
302
386
|
}, {
|
|
303
387
|
id: string;
|
|
304
388
|
createdAt: string;
|
|
@@ -306,11 +390,23 @@ export declare const WorkDeviationSchema: z.ZodObject<{
|
|
|
306
390
|
temporaryTaskId: string;
|
|
307
391
|
resumeTaskId: string;
|
|
308
392
|
reason?: string | undefined;
|
|
393
|
+
snapshot?: {
|
|
394
|
+
id: string;
|
|
395
|
+
reason: string;
|
|
396
|
+
whatWasBeingDone: string;
|
|
397
|
+
resumeLocation: string;
|
|
398
|
+
howToResume: string;
|
|
399
|
+
pausedAt: string;
|
|
400
|
+
relatedTaskId?: string | undefined;
|
|
401
|
+
pausedBy?: string | undefined;
|
|
402
|
+
} | null | undefined;
|
|
309
403
|
requestedBy?: "agent" | "user" | undefined;
|
|
310
404
|
approvedBy?: string | undefined;
|
|
311
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
405
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
312
406
|
activatedAt?: string | undefined;
|
|
407
|
+
resumeRequiredAt?: string | undefined;
|
|
313
408
|
resolvedAt?: string | undefined;
|
|
409
|
+
resumedAt?: string | undefined;
|
|
314
410
|
}>;
|
|
315
411
|
export declare const ProjectSchema: z.ZodObject<{
|
|
316
412
|
name: z.ZodString;
|
|
@@ -374,24 +470,75 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
374
470
|
/** Task to surface explicitly after the temporary work is resolved. */
|
|
375
471
|
resumeTaskId: z.ZodString;
|
|
376
472
|
reason: z.ZodDefault<z.ZodString>;
|
|
473
|
+
/** Durable checkpoint captured when the resume task was paused. */
|
|
474
|
+
snapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
475
|
+
id: z.ZodString;
|
|
476
|
+
/** Why work stopped or changed focus. */
|
|
477
|
+
reason: z.ZodString;
|
|
478
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
479
|
+
whatWasBeingDone: z.ZodString;
|
|
480
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
481
|
+
resumeLocation: z.ZodString;
|
|
482
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
483
|
+
howToResume: z.ZodString;
|
|
484
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
485
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
486
|
+
pausedAt: z.ZodString;
|
|
487
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
id: string;
|
|
490
|
+
reason: string;
|
|
491
|
+
whatWasBeingDone: string;
|
|
492
|
+
resumeLocation: string;
|
|
493
|
+
howToResume: string;
|
|
494
|
+
relatedTaskId: string;
|
|
495
|
+
pausedAt: string;
|
|
496
|
+
pausedBy: string;
|
|
497
|
+
}, {
|
|
498
|
+
id: string;
|
|
499
|
+
reason: string;
|
|
500
|
+
whatWasBeingDone: string;
|
|
501
|
+
resumeLocation: string;
|
|
502
|
+
howToResume: string;
|
|
503
|
+
pausedAt: string;
|
|
504
|
+
relatedTaskId?: string | undefined;
|
|
505
|
+
pausedBy?: string | undefined;
|
|
506
|
+
}>>>;
|
|
377
507
|
requestedBy: z.ZodDefault<z.ZodEnum<["agent", "user"]>>;
|
|
378
508
|
approvedBy: z.ZodDefault<z.ZodString>;
|
|
379
|
-
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resolved", "canceled"]>>;
|
|
509
|
+
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resume-required", "resolved", "resumed", "canceled"]>>;
|
|
380
510
|
createdAt: z.ZodString;
|
|
381
511
|
activatedAt: z.ZodDefault<z.ZodString>;
|
|
512
|
+
/** When temporary work ended and the resume target became mandatory. */
|
|
513
|
+
resumeRequiredAt: z.ZodDefault<z.ZodString>;
|
|
514
|
+
/** Legacy temporary-work completion timestamp. */
|
|
382
515
|
resolvedAt: z.ZodDefault<z.ZodString>;
|
|
516
|
+
/** When the preserved resume target was actually started again. */
|
|
517
|
+
resumedAt: z.ZodDefault<z.ZodString>;
|
|
383
518
|
}, "strip", z.ZodTypeAny, {
|
|
384
519
|
id: string;
|
|
385
520
|
createdAt: string;
|
|
521
|
+
reason: string;
|
|
386
522
|
recommendedTaskId: string;
|
|
387
523
|
temporaryTaskId: string;
|
|
388
524
|
resumeTaskId: string;
|
|
389
|
-
|
|
525
|
+
snapshot: {
|
|
526
|
+
id: string;
|
|
527
|
+
reason: string;
|
|
528
|
+
whatWasBeingDone: string;
|
|
529
|
+
resumeLocation: string;
|
|
530
|
+
howToResume: string;
|
|
531
|
+
relatedTaskId: string;
|
|
532
|
+
pausedAt: string;
|
|
533
|
+
pausedBy: string;
|
|
534
|
+
} | null;
|
|
390
535
|
requestedBy: "agent" | "user";
|
|
391
536
|
approvedBy: string;
|
|
392
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
537
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
393
538
|
activatedAt: string;
|
|
539
|
+
resumeRequiredAt: string;
|
|
394
540
|
resolvedAt: string;
|
|
541
|
+
resumedAt: string;
|
|
395
542
|
}, {
|
|
396
543
|
id: string;
|
|
397
544
|
createdAt: string;
|
|
@@ -399,11 +546,23 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
399
546
|
temporaryTaskId: string;
|
|
400
547
|
resumeTaskId: string;
|
|
401
548
|
reason?: string | undefined;
|
|
549
|
+
snapshot?: {
|
|
550
|
+
id: string;
|
|
551
|
+
reason: string;
|
|
552
|
+
whatWasBeingDone: string;
|
|
553
|
+
resumeLocation: string;
|
|
554
|
+
howToResume: string;
|
|
555
|
+
pausedAt: string;
|
|
556
|
+
relatedTaskId?: string | undefined;
|
|
557
|
+
pausedBy?: string | undefined;
|
|
558
|
+
} | null | undefined;
|
|
402
559
|
requestedBy?: "agent" | "user" | undefined;
|
|
403
560
|
approvedBy?: string | undefined;
|
|
404
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
561
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
405
562
|
activatedAt?: string | undefined;
|
|
563
|
+
resumeRequiredAt?: string | undefined;
|
|
406
564
|
resolvedAt?: string | undefined;
|
|
565
|
+
resumedAt?: string | undefined;
|
|
407
566
|
}>, "many">>;
|
|
408
567
|
}, "strip", z.ZodTypeAny, {
|
|
409
568
|
name: string;
|
|
@@ -437,15 +596,27 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
437
596
|
workDeviations: {
|
|
438
597
|
id: string;
|
|
439
598
|
createdAt: string;
|
|
599
|
+
reason: string;
|
|
440
600
|
recommendedTaskId: string;
|
|
441
601
|
temporaryTaskId: string;
|
|
442
602
|
resumeTaskId: string;
|
|
443
|
-
|
|
603
|
+
snapshot: {
|
|
604
|
+
id: string;
|
|
605
|
+
reason: string;
|
|
606
|
+
whatWasBeingDone: string;
|
|
607
|
+
resumeLocation: string;
|
|
608
|
+
howToResume: string;
|
|
609
|
+
relatedTaskId: string;
|
|
610
|
+
pausedAt: string;
|
|
611
|
+
pausedBy: string;
|
|
612
|
+
} | null;
|
|
444
613
|
requestedBy: "agent" | "user";
|
|
445
614
|
approvedBy: string;
|
|
446
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
615
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
447
616
|
activatedAt: string;
|
|
617
|
+
resumeRequiredAt: string;
|
|
448
618
|
resolvedAt: string;
|
|
619
|
+
resumedAt: string;
|
|
449
620
|
}[];
|
|
450
621
|
}, {
|
|
451
622
|
name: string;
|
|
@@ -483,11 +654,23 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
483
654
|
temporaryTaskId: string;
|
|
484
655
|
resumeTaskId: string;
|
|
485
656
|
reason?: string | undefined;
|
|
657
|
+
snapshot?: {
|
|
658
|
+
id: string;
|
|
659
|
+
reason: string;
|
|
660
|
+
whatWasBeingDone: string;
|
|
661
|
+
resumeLocation: string;
|
|
662
|
+
howToResume: string;
|
|
663
|
+
pausedAt: string;
|
|
664
|
+
relatedTaskId?: string | undefined;
|
|
665
|
+
pausedBy?: string | undefined;
|
|
666
|
+
} | null | undefined;
|
|
486
667
|
requestedBy?: "agent" | "user" | undefined;
|
|
487
668
|
approvedBy?: string | undefined;
|
|
488
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
669
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
489
670
|
activatedAt?: string | undefined;
|
|
671
|
+
resumeRequiredAt?: string | undefined;
|
|
490
672
|
resolvedAt?: string | undefined;
|
|
673
|
+
resumedAt?: string | undefined;
|
|
491
674
|
}[] | undefined;
|
|
492
675
|
}>;
|
|
493
676
|
export declare const SubtaskStatusSchema: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
|
|
@@ -694,6 +877,74 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
694
877
|
description?: string | undefined;
|
|
695
878
|
}>, "many">>;
|
|
696
879
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
880
|
+
/** Current durable checkpoint while this task is paused. */
|
|
881
|
+
pauseSnapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
882
|
+
id: z.ZodString;
|
|
883
|
+
/** Why work stopped or changed focus. */
|
|
884
|
+
reason: z.ZodString;
|
|
885
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
886
|
+
whatWasBeingDone: z.ZodString;
|
|
887
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
888
|
+
resumeLocation: z.ZodString;
|
|
889
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
890
|
+
howToResume: z.ZodString;
|
|
891
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
892
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
893
|
+
pausedAt: z.ZodString;
|
|
894
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
895
|
+
}, "strip", z.ZodTypeAny, {
|
|
896
|
+
id: string;
|
|
897
|
+
reason: string;
|
|
898
|
+
whatWasBeingDone: string;
|
|
899
|
+
resumeLocation: string;
|
|
900
|
+
howToResume: string;
|
|
901
|
+
relatedTaskId: string;
|
|
902
|
+
pausedAt: string;
|
|
903
|
+
pausedBy: string;
|
|
904
|
+
}, {
|
|
905
|
+
id: string;
|
|
906
|
+
reason: string;
|
|
907
|
+
whatWasBeingDone: string;
|
|
908
|
+
resumeLocation: string;
|
|
909
|
+
howToResume: string;
|
|
910
|
+
pausedAt: string;
|
|
911
|
+
relatedTaskId?: string | undefined;
|
|
912
|
+
pausedBy?: string | undefined;
|
|
913
|
+
}>>>;
|
|
914
|
+
/** Append-only checkpoint history retained after each resume. */
|
|
915
|
+
pauseHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
916
|
+
id: z.ZodString;
|
|
917
|
+
/** Why work stopped or changed focus. */
|
|
918
|
+
reason: z.ZodString;
|
|
919
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
920
|
+
whatWasBeingDone: z.ZodString;
|
|
921
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
922
|
+
resumeLocation: z.ZodString;
|
|
923
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
924
|
+
howToResume: z.ZodString;
|
|
925
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
926
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
927
|
+
pausedAt: z.ZodString;
|
|
928
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
id: string;
|
|
931
|
+
reason: string;
|
|
932
|
+
whatWasBeingDone: string;
|
|
933
|
+
resumeLocation: string;
|
|
934
|
+
howToResume: string;
|
|
935
|
+
relatedTaskId: string;
|
|
936
|
+
pausedAt: string;
|
|
937
|
+
pausedBy: string;
|
|
938
|
+
}, {
|
|
939
|
+
id: string;
|
|
940
|
+
reason: string;
|
|
941
|
+
whatWasBeingDone: string;
|
|
942
|
+
resumeLocation: string;
|
|
943
|
+
howToResume: string;
|
|
944
|
+
pausedAt: string;
|
|
945
|
+
relatedTaskId?: string | undefined;
|
|
946
|
+
pausedBy?: string | undefined;
|
|
947
|
+
}>, "many">>;
|
|
697
948
|
startedAt: z.ZodDefault<z.ZodString>;
|
|
698
949
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
699
950
|
createdAt: z.ZodString;
|
|
@@ -744,6 +995,26 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
744
995
|
description: string;
|
|
745
996
|
}[];
|
|
746
997
|
dependsOn: string[];
|
|
998
|
+
pauseSnapshot: {
|
|
999
|
+
id: string;
|
|
1000
|
+
reason: string;
|
|
1001
|
+
whatWasBeingDone: string;
|
|
1002
|
+
resumeLocation: string;
|
|
1003
|
+
howToResume: string;
|
|
1004
|
+
relatedTaskId: string;
|
|
1005
|
+
pausedAt: string;
|
|
1006
|
+
pausedBy: string;
|
|
1007
|
+
} | null;
|
|
1008
|
+
pauseHistory: {
|
|
1009
|
+
id: string;
|
|
1010
|
+
reason: string;
|
|
1011
|
+
whatWasBeingDone: string;
|
|
1012
|
+
resumeLocation: string;
|
|
1013
|
+
howToResume: string;
|
|
1014
|
+
relatedTaskId: string;
|
|
1015
|
+
pausedAt: string;
|
|
1016
|
+
pausedBy: string;
|
|
1017
|
+
}[];
|
|
747
1018
|
startedAt: string;
|
|
748
1019
|
completedAt: string;
|
|
749
1020
|
}, {
|
|
@@ -792,6 +1063,26 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
792
1063
|
description?: string | undefined;
|
|
793
1064
|
}[] | undefined;
|
|
794
1065
|
dependsOn?: string[] | undefined;
|
|
1066
|
+
pauseSnapshot?: {
|
|
1067
|
+
id: string;
|
|
1068
|
+
reason: string;
|
|
1069
|
+
whatWasBeingDone: string;
|
|
1070
|
+
resumeLocation: string;
|
|
1071
|
+
howToResume: string;
|
|
1072
|
+
pausedAt: string;
|
|
1073
|
+
relatedTaskId?: string | undefined;
|
|
1074
|
+
pausedBy?: string | undefined;
|
|
1075
|
+
} | null | undefined;
|
|
1076
|
+
pauseHistory?: {
|
|
1077
|
+
id: string;
|
|
1078
|
+
reason: string;
|
|
1079
|
+
whatWasBeingDone: string;
|
|
1080
|
+
resumeLocation: string;
|
|
1081
|
+
howToResume: string;
|
|
1082
|
+
pausedAt: string;
|
|
1083
|
+
relatedTaskId?: string | undefined;
|
|
1084
|
+
pausedBy?: string | undefined;
|
|
1085
|
+
}[] | undefined;
|
|
795
1086
|
startedAt?: string | undefined;
|
|
796
1087
|
completedAt?: string | undefined;
|
|
797
1088
|
}>, {
|
|
@@ -840,6 +1131,26 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
840
1131
|
description: string;
|
|
841
1132
|
}[];
|
|
842
1133
|
dependsOn: string[];
|
|
1134
|
+
pauseSnapshot: {
|
|
1135
|
+
id: string;
|
|
1136
|
+
reason: string;
|
|
1137
|
+
whatWasBeingDone: string;
|
|
1138
|
+
resumeLocation: string;
|
|
1139
|
+
howToResume: string;
|
|
1140
|
+
relatedTaskId: string;
|
|
1141
|
+
pausedAt: string;
|
|
1142
|
+
pausedBy: string;
|
|
1143
|
+
} | null;
|
|
1144
|
+
pauseHistory: {
|
|
1145
|
+
id: string;
|
|
1146
|
+
reason: string;
|
|
1147
|
+
whatWasBeingDone: string;
|
|
1148
|
+
resumeLocation: string;
|
|
1149
|
+
howToResume: string;
|
|
1150
|
+
relatedTaskId: string;
|
|
1151
|
+
pausedAt: string;
|
|
1152
|
+
pausedBy: string;
|
|
1153
|
+
}[];
|
|
843
1154
|
startedAt: string;
|
|
844
1155
|
completedAt: string;
|
|
845
1156
|
}, {
|
|
@@ -888,6 +1199,26 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
|
|
|
888
1199
|
description?: string | undefined;
|
|
889
1200
|
}[] | undefined;
|
|
890
1201
|
dependsOn?: string[] | undefined;
|
|
1202
|
+
pauseSnapshot?: {
|
|
1203
|
+
id: string;
|
|
1204
|
+
reason: string;
|
|
1205
|
+
whatWasBeingDone: string;
|
|
1206
|
+
resumeLocation: string;
|
|
1207
|
+
howToResume: string;
|
|
1208
|
+
pausedAt: string;
|
|
1209
|
+
relatedTaskId?: string | undefined;
|
|
1210
|
+
pausedBy?: string | undefined;
|
|
1211
|
+
} | null | undefined;
|
|
1212
|
+
pauseHistory?: {
|
|
1213
|
+
id: string;
|
|
1214
|
+
reason: string;
|
|
1215
|
+
whatWasBeingDone: string;
|
|
1216
|
+
resumeLocation: string;
|
|
1217
|
+
howToResume: string;
|
|
1218
|
+
pausedAt: string;
|
|
1219
|
+
relatedTaskId?: string | undefined;
|
|
1220
|
+
pausedBy?: string | undefined;
|
|
1221
|
+
}[] | undefined;
|
|
891
1222
|
startedAt?: string | undefined;
|
|
892
1223
|
completedAt?: string | undefined;
|
|
893
1224
|
}>;
|
|
@@ -1060,6 +1391,74 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1060
1391
|
description?: string | undefined;
|
|
1061
1392
|
}>, "many">>;
|
|
1062
1393
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1394
|
+
/** Current durable checkpoint while this task is paused. */
|
|
1395
|
+
pauseSnapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1396
|
+
id: z.ZodString;
|
|
1397
|
+
/** Why work stopped or changed focus. */
|
|
1398
|
+
reason: z.ZodString;
|
|
1399
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
1400
|
+
whatWasBeingDone: z.ZodString;
|
|
1401
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
1402
|
+
resumeLocation: z.ZodString;
|
|
1403
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
1404
|
+
howToResume: z.ZodString;
|
|
1405
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
1406
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
1407
|
+
pausedAt: z.ZodString;
|
|
1408
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
1409
|
+
}, "strip", z.ZodTypeAny, {
|
|
1410
|
+
id: string;
|
|
1411
|
+
reason: string;
|
|
1412
|
+
whatWasBeingDone: string;
|
|
1413
|
+
resumeLocation: string;
|
|
1414
|
+
howToResume: string;
|
|
1415
|
+
relatedTaskId: string;
|
|
1416
|
+
pausedAt: string;
|
|
1417
|
+
pausedBy: string;
|
|
1418
|
+
}, {
|
|
1419
|
+
id: string;
|
|
1420
|
+
reason: string;
|
|
1421
|
+
whatWasBeingDone: string;
|
|
1422
|
+
resumeLocation: string;
|
|
1423
|
+
howToResume: string;
|
|
1424
|
+
pausedAt: string;
|
|
1425
|
+
relatedTaskId?: string | undefined;
|
|
1426
|
+
pausedBy?: string | undefined;
|
|
1427
|
+
}>>>;
|
|
1428
|
+
/** Append-only checkpoint history retained after each resume. */
|
|
1429
|
+
pauseHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1430
|
+
id: z.ZodString;
|
|
1431
|
+
/** Why work stopped or changed focus. */
|
|
1432
|
+
reason: z.ZodString;
|
|
1433
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
1434
|
+
whatWasBeingDone: z.ZodString;
|
|
1435
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
1436
|
+
resumeLocation: z.ZodString;
|
|
1437
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
1438
|
+
howToResume: z.ZodString;
|
|
1439
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
1440
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
1441
|
+
pausedAt: z.ZodString;
|
|
1442
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
1443
|
+
}, "strip", z.ZodTypeAny, {
|
|
1444
|
+
id: string;
|
|
1445
|
+
reason: string;
|
|
1446
|
+
whatWasBeingDone: string;
|
|
1447
|
+
resumeLocation: string;
|
|
1448
|
+
howToResume: string;
|
|
1449
|
+
relatedTaskId: string;
|
|
1450
|
+
pausedAt: string;
|
|
1451
|
+
pausedBy: string;
|
|
1452
|
+
}, {
|
|
1453
|
+
id: string;
|
|
1454
|
+
reason: string;
|
|
1455
|
+
whatWasBeingDone: string;
|
|
1456
|
+
resumeLocation: string;
|
|
1457
|
+
howToResume: string;
|
|
1458
|
+
pausedAt: string;
|
|
1459
|
+
relatedTaskId?: string | undefined;
|
|
1460
|
+
pausedBy?: string | undefined;
|
|
1461
|
+
}>, "many">>;
|
|
1063
1462
|
startedAt: z.ZodDefault<z.ZodString>;
|
|
1064
1463
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
1065
1464
|
createdAt: z.ZodString;
|
|
@@ -1110,6 +1509,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1110
1509
|
description: string;
|
|
1111
1510
|
}[];
|
|
1112
1511
|
dependsOn: string[];
|
|
1512
|
+
pauseSnapshot: {
|
|
1513
|
+
id: string;
|
|
1514
|
+
reason: string;
|
|
1515
|
+
whatWasBeingDone: string;
|
|
1516
|
+
resumeLocation: string;
|
|
1517
|
+
howToResume: string;
|
|
1518
|
+
relatedTaskId: string;
|
|
1519
|
+
pausedAt: string;
|
|
1520
|
+
pausedBy: string;
|
|
1521
|
+
} | null;
|
|
1522
|
+
pauseHistory: {
|
|
1523
|
+
id: string;
|
|
1524
|
+
reason: string;
|
|
1525
|
+
whatWasBeingDone: string;
|
|
1526
|
+
resumeLocation: string;
|
|
1527
|
+
howToResume: string;
|
|
1528
|
+
relatedTaskId: string;
|
|
1529
|
+
pausedAt: string;
|
|
1530
|
+
pausedBy: string;
|
|
1531
|
+
}[];
|
|
1113
1532
|
startedAt: string;
|
|
1114
1533
|
completedAt: string;
|
|
1115
1534
|
}, {
|
|
@@ -1158,6 +1577,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1158
1577
|
description?: string | undefined;
|
|
1159
1578
|
}[] | undefined;
|
|
1160
1579
|
dependsOn?: string[] | undefined;
|
|
1580
|
+
pauseSnapshot?: {
|
|
1581
|
+
id: string;
|
|
1582
|
+
reason: string;
|
|
1583
|
+
whatWasBeingDone: string;
|
|
1584
|
+
resumeLocation: string;
|
|
1585
|
+
howToResume: string;
|
|
1586
|
+
pausedAt: string;
|
|
1587
|
+
relatedTaskId?: string | undefined;
|
|
1588
|
+
pausedBy?: string | undefined;
|
|
1589
|
+
} | null | undefined;
|
|
1590
|
+
pauseHistory?: {
|
|
1591
|
+
id: string;
|
|
1592
|
+
reason: string;
|
|
1593
|
+
whatWasBeingDone: string;
|
|
1594
|
+
resumeLocation: string;
|
|
1595
|
+
howToResume: string;
|
|
1596
|
+
pausedAt: string;
|
|
1597
|
+
relatedTaskId?: string | undefined;
|
|
1598
|
+
pausedBy?: string | undefined;
|
|
1599
|
+
}[] | undefined;
|
|
1161
1600
|
startedAt?: string | undefined;
|
|
1162
1601
|
completedAt?: string | undefined;
|
|
1163
1602
|
}>, {
|
|
@@ -1206,6 +1645,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1206
1645
|
description: string;
|
|
1207
1646
|
}[];
|
|
1208
1647
|
dependsOn: string[];
|
|
1648
|
+
pauseSnapshot: {
|
|
1649
|
+
id: string;
|
|
1650
|
+
reason: string;
|
|
1651
|
+
whatWasBeingDone: string;
|
|
1652
|
+
resumeLocation: string;
|
|
1653
|
+
howToResume: string;
|
|
1654
|
+
relatedTaskId: string;
|
|
1655
|
+
pausedAt: string;
|
|
1656
|
+
pausedBy: string;
|
|
1657
|
+
} | null;
|
|
1658
|
+
pauseHistory: {
|
|
1659
|
+
id: string;
|
|
1660
|
+
reason: string;
|
|
1661
|
+
whatWasBeingDone: string;
|
|
1662
|
+
resumeLocation: string;
|
|
1663
|
+
howToResume: string;
|
|
1664
|
+
relatedTaskId: string;
|
|
1665
|
+
pausedAt: string;
|
|
1666
|
+
pausedBy: string;
|
|
1667
|
+
}[];
|
|
1209
1668
|
startedAt: string;
|
|
1210
1669
|
completedAt: string;
|
|
1211
1670
|
}, {
|
|
@@ -1254,6 +1713,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1254
1713
|
description?: string | undefined;
|
|
1255
1714
|
}[] | undefined;
|
|
1256
1715
|
dependsOn?: string[] | undefined;
|
|
1716
|
+
pauseSnapshot?: {
|
|
1717
|
+
id: string;
|
|
1718
|
+
reason: string;
|
|
1719
|
+
whatWasBeingDone: string;
|
|
1720
|
+
resumeLocation: string;
|
|
1721
|
+
howToResume: string;
|
|
1722
|
+
pausedAt: string;
|
|
1723
|
+
relatedTaskId?: string | undefined;
|
|
1724
|
+
pausedBy?: string | undefined;
|
|
1725
|
+
} | null | undefined;
|
|
1726
|
+
pauseHistory?: {
|
|
1727
|
+
id: string;
|
|
1728
|
+
reason: string;
|
|
1729
|
+
whatWasBeingDone: string;
|
|
1730
|
+
resumeLocation: string;
|
|
1731
|
+
howToResume: string;
|
|
1732
|
+
pausedAt: string;
|
|
1733
|
+
relatedTaskId?: string | undefined;
|
|
1734
|
+
pausedBy?: string | undefined;
|
|
1735
|
+
}[] | undefined;
|
|
1257
1736
|
startedAt?: string | undefined;
|
|
1258
1737
|
completedAt?: string | undefined;
|
|
1259
1738
|
}>, "many">>;
|
|
@@ -1395,6 +1874,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1395
1874
|
description: string;
|
|
1396
1875
|
}[];
|
|
1397
1876
|
dependsOn: string[];
|
|
1877
|
+
pauseSnapshot: {
|
|
1878
|
+
id: string;
|
|
1879
|
+
reason: string;
|
|
1880
|
+
whatWasBeingDone: string;
|
|
1881
|
+
resumeLocation: string;
|
|
1882
|
+
howToResume: string;
|
|
1883
|
+
relatedTaskId: string;
|
|
1884
|
+
pausedAt: string;
|
|
1885
|
+
pausedBy: string;
|
|
1886
|
+
} | null;
|
|
1887
|
+
pauseHistory: {
|
|
1888
|
+
id: string;
|
|
1889
|
+
reason: string;
|
|
1890
|
+
whatWasBeingDone: string;
|
|
1891
|
+
resumeLocation: string;
|
|
1892
|
+
howToResume: string;
|
|
1893
|
+
relatedTaskId: string;
|
|
1894
|
+
pausedAt: string;
|
|
1895
|
+
pausedBy: string;
|
|
1896
|
+
}[];
|
|
1398
1897
|
startedAt: string;
|
|
1399
1898
|
completedAt: string;
|
|
1400
1899
|
}[];
|
|
@@ -1495,6 +1994,26 @@ export declare const PhaseSchema: z.ZodObject<{
|
|
|
1495
1994
|
description?: string | undefined;
|
|
1496
1995
|
}[] | undefined;
|
|
1497
1996
|
dependsOn?: string[] | undefined;
|
|
1997
|
+
pauseSnapshot?: {
|
|
1998
|
+
id: string;
|
|
1999
|
+
reason: string;
|
|
2000
|
+
whatWasBeingDone: string;
|
|
2001
|
+
resumeLocation: string;
|
|
2002
|
+
howToResume: string;
|
|
2003
|
+
pausedAt: string;
|
|
2004
|
+
relatedTaskId?: string | undefined;
|
|
2005
|
+
pausedBy?: string | undefined;
|
|
2006
|
+
} | null | undefined;
|
|
2007
|
+
pauseHistory?: {
|
|
2008
|
+
id: string;
|
|
2009
|
+
reason: string;
|
|
2010
|
+
whatWasBeingDone: string;
|
|
2011
|
+
resumeLocation: string;
|
|
2012
|
+
howToResume: string;
|
|
2013
|
+
pausedAt: string;
|
|
2014
|
+
relatedTaskId?: string | undefined;
|
|
2015
|
+
pausedBy?: string | undefined;
|
|
2016
|
+
}[] | undefined;
|
|
1498
2017
|
startedAt?: string | undefined;
|
|
1499
2018
|
completedAt?: string | undefined;
|
|
1500
2019
|
}[] | undefined;
|
|
@@ -2125,24 +2644,75 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2125
2644
|
/** Task to surface explicitly after the temporary work is resolved. */
|
|
2126
2645
|
resumeTaskId: z.ZodString;
|
|
2127
2646
|
reason: z.ZodDefault<z.ZodString>;
|
|
2647
|
+
/** Durable checkpoint captured when the resume task was paused. */
|
|
2648
|
+
snapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2649
|
+
id: z.ZodString;
|
|
2650
|
+
/** Why work stopped or changed focus. */
|
|
2651
|
+
reason: z.ZodString;
|
|
2652
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
2653
|
+
whatWasBeingDone: z.ZodString;
|
|
2654
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
2655
|
+
resumeLocation: z.ZodString;
|
|
2656
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
2657
|
+
howToResume: z.ZodString;
|
|
2658
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
2659
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
2660
|
+
pausedAt: z.ZodString;
|
|
2661
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
2662
|
+
}, "strip", z.ZodTypeAny, {
|
|
2663
|
+
id: string;
|
|
2664
|
+
reason: string;
|
|
2665
|
+
whatWasBeingDone: string;
|
|
2666
|
+
resumeLocation: string;
|
|
2667
|
+
howToResume: string;
|
|
2668
|
+
relatedTaskId: string;
|
|
2669
|
+
pausedAt: string;
|
|
2670
|
+
pausedBy: string;
|
|
2671
|
+
}, {
|
|
2672
|
+
id: string;
|
|
2673
|
+
reason: string;
|
|
2674
|
+
whatWasBeingDone: string;
|
|
2675
|
+
resumeLocation: string;
|
|
2676
|
+
howToResume: string;
|
|
2677
|
+
pausedAt: string;
|
|
2678
|
+
relatedTaskId?: string | undefined;
|
|
2679
|
+
pausedBy?: string | undefined;
|
|
2680
|
+
}>>>;
|
|
2128
2681
|
requestedBy: z.ZodDefault<z.ZodEnum<["agent", "user"]>>;
|
|
2129
2682
|
approvedBy: z.ZodDefault<z.ZodString>;
|
|
2130
|
-
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resolved", "canceled"]>>;
|
|
2683
|
+
state: z.ZodDefault<z.ZodEnum<["approved", "active", "resume-required", "resolved", "resumed", "canceled"]>>;
|
|
2131
2684
|
createdAt: z.ZodString;
|
|
2132
2685
|
activatedAt: z.ZodDefault<z.ZodString>;
|
|
2686
|
+
/** When temporary work ended and the resume target became mandatory. */
|
|
2687
|
+
resumeRequiredAt: z.ZodDefault<z.ZodString>;
|
|
2688
|
+
/** Legacy temporary-work completion timestamp. */
|
|
2133
2689
|
resolvedAt: z.ZodDefault<z.ZodString>;
|
|
2690
|
+
/** When the preserved resume target was actually started again. */
|
|
2691
|
+
resumedAt: z.ZodDefault<z.ZodString>;
|
|
2134
2692
|
}, "strip", z.ZodTypeAny, {
|
|
2135
2693
|
id: string;
|
|
2136
2694
|
createdAt: string;
|
|
2695
|
+
reason: string;
|
|
2137
2696
|
recommendedTaskId: string;
|
|
2138
2697
|
temporaryTaskId: string;
|
|
2139
2698
|
resumeTaskId: string;
|
|
2140
|
-
|
|
2699
|
+
snapshot: {
|
|
2700
|
+
id: string;
|
|
2701
|
+
reason: string;
|
|
2702
|
+
whatWasBeingDone: string;
|
|
2703
|
+
resumeLocation: string;
|
|
2704
|
+
howToResume: string;
|
|
2705
|
+
relatedTaskId: string;
|
|
2706
|
+
pausedAt: string;
|
|
2707
|
+
pausedBy: string;
|
|
2708
|
+
} | null;
|
|
2141
2709
|
requestedBy: "agent" | "user";
|
|
2142
2710
|
approvedBy: string;
|
|
2143
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
2711
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
2144
2712
|
activatedAt: string;
|
|
2713
|
+
resumeRequiredAt: string;
|
|
2145
2714
|
resolvedAt: string;
|
|
2715
|
+
resumedAt: string;
|
|
2146
2716
|
}, {
|
|
2147
2717
|
id: string;
|
|
2148
2718
|
createdAt: string;
|
|
@@ -2150,11 +2720,23 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2150
2720
|
temporaryTaskId: string;
|
|
2151
2721
|
resumeTaskId: string;
|
|
2152
2722
|
reason?: string | undefined;
|
|
2723
|
+
snapshot?: {
|
|
2724
|
+
id: string;
|
|
2725
|
+
reason: string;
|
|
2726
|
+
whatWasBeingDone: string;
|
|
2727
|
+
resumeLocation: string;
|
|
2728
|
+
howToResume: string;
|
|
2729
|
+
pausedAt: string;
|
|
2730
|
+
relatedTaskId?: string | undefined;
|
|
2731
|
+
pausedBy?: string | undefined;
|
|
2732
|
+
} | null | undefined;
|
|
2153
2733
|
requestedBy?: "agent" | "user" | undefined;
|
|
2154
2734
|
approvedBy?: string | undefined;
|
|
2155
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
2735
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
2156
2736
|
activatedAt?: string | undefined;
|
|
2737
|
+
resumeRequiredAt?: string | undefined;
|
|
2157
2738
|
resolvedAt?: string | undefined;
|
|
2739
|
+
resumedAt?: string | undefined;
|
|
2158
2740
|
}>, "many">>;
|
|
2159
2741
|
}, "strip", z.ZodTypeAny, {
|
|
2160
2742
|
name: string;
|
|
@@ -2188,15 +2770,27 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2188
2770
|
workDeviations: {
|
|
2189
2771
|
id: string;
|
|
2190
2772
|
createdAt: string;
|
|
2773
|
+
reason: string;
|
|
2191
2774
|
recommendedTaskId: string;
|
|
2192
2775
|
temporaryTaskId: string;
|
|
2193
2776
|
resumeTaskId: string;
|
|
2194
|
-
|
|
2777
|
+
snapshot: {
|
|
2778
|
+
id: string;
|
|
2779
|
+
reason: string;
|
|
2780
|
+
whatWasBeingDone: string;
|
|
2781
|
+
resumeLocation: string;
|
|
2782
|
+
howToResume: string;
|
|
2783
|
+
relatedTaskId: string;
|
|
2784
|
+
pausedAt: string;
|
|
2785
|
+
pausedBy: string;
|
|
2786
|
+
} | null;
|
|
2195
2787
|
requestedBy: "agent" | "user";
|
|
2196
2788
|
approvedBy: string;
|
|
2197
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
2789
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
2198
2790
|
activatedAt: string;
|
|
2791
|
+
resumeRequiredAt: string;
|
|
2199
2792
|
resolvedAt: string;
|
|
2793
|
+
resumedAt: string;
|
|
2200
2794
|
}[];
|
|
2201
2795
|
}, {
|
|
2202
2796
|
name: string;
|
|
@@ -2234,11 +2828,23 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2234
2828
|
temporaryTaskId: string;
|
|
2235
2829
|
resumeTaskId: string;
|
|
2236
2830
|
reason?: string | undefined;
|
|
2831
|
+
snapshot?: {
|
|
2832
|
+
id: string;
|
|
2833
|
+
reason: string;
|
|
2834
|
+
whatWasBeingDone: string;
|
|
2835
|
+
resumeLocation: string;
|
|
2836
|
+
howToResume: string;
|
|
2837
|
+
pausedAt: string;
|
|
2838
|
+
relatedTaskId?: string | undefined;
|
|
2839
|
+
pausedBy?: string | undefined;
|
|
2840
|
+
} | null | undefined;
|
|
2237
2841
|
requestedBy?: "agent" | "user" | undefined;
|
|
2238
2842
|
approvedBy?: string | undefined;
|
|
2239
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
2843
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
2240
2844
|
activatedAt?: string | undefined;
|
|
2845
|
+
resumeRequiredAt?: string | undefined;
|
|
2241
2846
|
resolvedAt?: string | undefined;
|
|
2847
|
+
resumedAt?: string | undefined;
|
|
2242
2848
|
}[] | undefined;
|
|
2243
2849
|
}>;
|
|
2244
2850
|
features: z.ZodObject<{
|
|
@@ -2709,6 +3315,74 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2709
3315
|
description?: string | undefined;
|
|
2710
3316
|
}>, "many">>;
|
|
2711
3317
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3318
|
+
/** Current durable checkpoint while this task is paused. */
|
|
3319
|
+
pauseSnapshot: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3320
|
+
id: z.ZodString;
|
|
3321
|
+
/** Why work stopped or changed focus. */
|
|
3322
|
+
reason: z.ZodString;
|
|
3323
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
3324
|
+
whatWasBeingDone: z.ZodString;
|
|
3325
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
3326
|
+
resumeLocation: z.ZodString;
|
|
3327
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
3328
|
+
howToResume: z.ZodString;
|
|
3329
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
3330
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
3331
|
+
pausedAt: z.ZodString;
|
|
3332
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
3333
|
+
}, "strip", z.ZodTypeAny, {
|
|
3334
|
+
id: string;
|
|
3335
|
+
reason: string;
|
|
3336
|
+
whatWasBeingDone: string;
|
|
3337
|
+
resumeLocation: string;
|
|
3338
|
+
howToResume: string;
|
|
3339
|
+
relatedTaskId: string;
|
|
3340
|
+
pausedAt: string;
|
|
3341
|
+
pausedBy: string;
|
|
3342
|
+
}, {
|
|
3343
|
+
id: string;
|
|
3344
|
+
reason: string;
|
|
3345
|
+
whatWasBeingDone: string;
|
|
3346
|
+
resumeLocation: string;
|
|
3347
|
+
howToResume: string;
|
|
3348
|
+
pausedAt: string;
|
|
3349
|
+
relatedTaskId?: string | undefined;
|
|
3350
|
+
pausedBy?: string | undefined;
|
|
3351
|
+
}>>>;
|
|
3352
|
+
/** Append-only checkpoint history retained after each resume. */
|
|
3353
|
+
pauseHistory: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3354
|
+
id: z.ZodString;
|
|
3355
|
+
/** Why work stopped or changed focus. */
|
|
3356
|
+
reason: z.ZodString;
|
|
3357
|
+
/** Concrete checkpoint: what was underway when the task was paused. */
|
|
3358
|
+
whatWasBeingDone: z.ZodString;
|
|
3359
|
+
/** File, symbol, command, or other exact location from which to continue. */
|
|
3360
|
+
resumeLocation: z.ZodString;
|
|
3361
|
+
/** Ordered, actionable instructions for resuming the task. */
|
|
3362
|
+
howToResume: z.ZodString;
|
|
3363
|
+
/** Optional temporary/prerequisite task that caused the pause. */
|
|
3364
|
+
relatedTaskId: z.ZodDefault<z.ZodString>;
|
|
3365
|
+
pausedAt: z.ZodString;
|
|
3366
|
+
pausedBy: z.ZodDefault<z.ZodString>;
|
|
3367
|
+
}, "strip", z.ZodTypeAny, {
|
|
3368
|
+
id: string;
|
|
3369
|
+
reason: string;
|
|
3370
|
+
whatWasBeingDone: string;
|
|
3371
|
+
resumeLocation: string;
|
|
3372
|
+
howToResume: string;
|
|
3373
|
+
relatedTaskId: string;
|
|
3374
|
+
pausedAt: string;
|
|
3375
|
+
pausedBy: string;
|
|
3376
|
+
}, {
|
|
3377
|
+
id: string;
|
|
3378
|
+
reason: string;
|
|
3379
|
+
whatWasBeingDone: string;
|
|
3380
|
+
resumeLocation: string;
|
|
3381
|
+
howToResume: string;
|
|
3382
|
+
pausedAt: string;
|
|
3383
|
+
relatedTaskId?: string | undefined;
|
|
3384
|
+
pausedBy?: string | undefined;
|
|
3385
|
+
}>, "many">>;
|
|
2712
3386
|
startedAt: z.ZodDefault<z.ZodString>;
|
|
2713
3387
|
completedAt: z.ZodDefault<z.ZodString>;
|
|
2714
3388
|
createdAt: z.ZodString;
|
|
@@ -2759,6 +3433,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2759
3433
|
description: string;
|
|
2760
3434
|
}[];
|
|
2761
3435
|
dependsOn: string[];
|
|
3436
|
+
pauseSnapshot: {
|
|
3437
|
+
id: string;
|
|
3438
|
+
reason: string;
|
|
3439
|
+
whatWasBeingDone: string;
|
|
3440
|
+
resumeLocation: string;
|
|
3441
|
+
howToResume: string;
|
|
3442
|
+
relatedTaskId: string;
|
|
3443
|
+
pausedAt: string;
|
|
3444
|
+
pausedBy: string;
|
|
3445
|
+
} | null;
|
|
3446
|
+
pauseHistory: {
|
|
3447
|
+
id: string;
|
|
3448
|
+
reason: string;
|
|
3449
|
+
whatWasBeingDone: string;
|
|
3450
|
+
resumeLocation: string;
|
|
3451
|
+
howToResume: string;
|
|
3452
|
+
relatedTaskId: string;
|
|
3453
|
+
pausedAt: string;
|
|
3454
|
+
pausedBy: string;
|
|
3455
|
+
}[];
|
|
2762
3456
|
startedAt: string;
|
|
2763
3457
|
completedAt: string;
|
|
2764
3458
|
}, {
|
|
@@ -2807,6 +3501,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2807
3501
|
description?: string | undefined;
|
|
2808
3502
|
}[] | undefined;
|
|
2809
3503
|
dependsOn?: string[] | undefined;
|
|
3504
|
+
pauseSnapshot?: {
|
|
3505
|
+
id: string;
|
|
3506
|
+
reason: string;
|
|
3507
|
+
whatWasBeingDone: string;
|
|
3508
|
+
resumeLocation: string;
|
|
3509
|
+
howToResume: string;
|
|
3510
|
+
pausedAt: string;
|
|
3511
|
+
relatedTaskId?: string | undefined;
|
|
3512
|
+
pausedBy?: string | undefined;
|
|
3513
|
+
} | null | undefined;
|
|
3514
|
+
pauseHistory?: {
|
|
3515
|
+
id: string;
|
|
3516
|
+
reason: string;
|
|
3517
|
+
whatWasBeingDone: string;
|
|
3518
|
+
resumeLocation: string;
|
|
3519
|
+
howToResume: string;
|
|
3520
|
+
pausedAt: string;
|
|
3521
|
+
relatedTaskId?: string | undefined;
|
|
3522
|
+
pausedBy?: string | undefined;
|
|
3523
|
+
}[] | undefined;
|
|
2810
3524
|
startedAt?: string | undefined;
|
|
2811
3525
|
completedAt?: string | undefined;
|
|
2812
3526
|
}>, {
|
|
@@ -2855,6 +3569,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2855
3569
|
description: string;
|
|
2856
3570
|
}[];
|
|
2857
3571
|
dependsOn: string[];
|
|
3572
|
+
pauseSnapshot: {
|
|
3573
|
+
id: string;
|
|
3574
|
+
reason: string;
|
|
3575
|
+
whatWasBeingDone: string;
|
|
3576
|
+
resumeLocation: string;
|
|
3577
|
+
howToResume: string;
|
|
3578
|
+
relatedTaskId: string;
|
|
3579
|
+
pausedAt: string;
|
|
3580
|
+
pausedBy: string;
|
|
3581
|
+
} | null;
|
|
3582
|
+
pauseHistory: {
|
|
3583
|
+
id: string;
|
|
3584
|
+
reason: string;
|
|
3585
|
+
whatWasBeingDone: string;
|
|
3586
|
+
resumeLocation: string;
|
|
3587
|
+
howToResume: string;
|
|
3588
|
+
relatedTaskId: string;
|
|
3589
|
+
pausedAt: string;
|
|
3590
|
+
pausedBy: string;
|
|
3591
|
+
}[];
|
|
2858
3592
|
startedAt: string;
|
|
2859
3593
|
completedAt: string;
|
|
2860
3594
|
}, {
|
|
@@ -2903,6 +3637,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
2903
3637
|
description?: string | undefined;
|
|
2904
3638
|
}[] | undefined;
|
|
2905
3639
|
dependsOn?: string[] | undefined;
|
|
3640
|
+
pauseSnapshot?: {
|
|
3641
|
+
id: string;
|
|
3642
|
+
reason: string;
|
|
3643
|
+
whatWasBeingDone: string;
|
|
3644
|
+
resumeLocation: string;
|
|
3645
|
+
howToResume: string;
|
|
3646
|
+
pausedAt: string;
|
|
3647
|
+
relatedTaskId?: string | undefined;
|
|
3648
|
+
pausedBy?: string | undefined;
|
|
3649
|
+
} | null | undefined;
|
|
3650
|
+
pauseHistory?: {
|
|
3651
|
+
id: string;
|
|
3652
|
+
reason: string;
|
|
3653
|
+
whatWasBeingDone: string;
|
|
3654
|
+
resumeLocation: string;
|
|
3655
|
+
howToResume: string;
|
|
3656
|
+
pausedAt: string;
|
|
3657
|
+
relatedTaskId?: string | undefined;
|
|
3658
|
+
pausedBy?: string | undefined;
|
|
3659
|
+
}[] | undefined;
|
|
2906
3660
|
startedAt?: string | undefined;
|
|
2907
3661
|
completedAt?: string | undefined;
|
|
2908
3662
|
}>, "many">>;
|
|
@@ -3044,6 +3798,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3044
3798
|
description: string;
|
|
3045
3799
|
}[];
|
|
3046
3800
|
dependsOn: string[];
|
|
3801
|
+
pauseSnapshot: {
|
|
3802
|
+
id: string;
|
|
3803
|
+
reason: string;
|
|
3804
|
+
whatWasBeingDone: string;
|
|
3805
|
+
resumeLocation: string;
|
|
3806
|
+
howToResume: string;
|
|
3807
|
+
relatedTaskId: string;
|
|
3808
|
+
pausedAt: string;
|
|
3809
|
+
pausedBy: string;
|
|
3810
|
+
} | null;
|
|
3811
|
+
pauseHistory: {
|
|
3812
|
+
id: string;
|
|
3813
|
+
reason: string;
|
|
3814
|
+
whatWasBeingDone: string;
|
|
3815
|
+
resumeLocation: string;
|
|
3816
|
+
howToResume: string;
|
|
3817
|
+
relatedTaskId: string;
|
|
3818
|
+
pausedAt: string;
|
|
3819
|
+
pausedBy: string;
|
|
3820
|
+
}[];
|
|
3047
3821
|
startedAt: string;
|
|
3048
3822
|
completedAt: string;
|
|
3049
3823
|
}[];
|
|
@@ -3144,6 +3918,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3144
3918
|
description?: string | undefined;
|
|
3145
3919
|
}[] | undefined;
|
|
3146
3920
|
dependsOn?: string[] | undefined;
|
|
3921
|
+
pauseSnapshot?: {
|
|
3922
|
+
id: string;
|
|
3923
|
+
reason: string;
|
|
3924
|
+
whatWasBeingDone: string;
|
|
3925
|
+
resumeLocation: string;
|
|
3926
|
+
howToResume: string;
|
|
3927
|
+
pausedAt: string;
|
|
3928
|
+
relatedTaskId?: string | undefined;
|
|
3929
|
+
pausedBy?: string | undefined;
|
|
3930
|
+
} | null | undefined;
|
|
3931
|
+
pauseHistory?: {
|
|
3932
|
+
id: string;
|
|
3933
|
+
reason: string;
|
|
3934
|
+
whatWasBeingDone: string;
|
|
3935
|
+
resumeLocation: string;
|
|
3936
|
+
howToResume: string;
|
|
3937
|
+
pausedAt: string;
|
|
3938
|
+
relatedTaskId?: string | undefined;
|
|
3939
|
+
pausedBy?: string | undefined;
|
|
3940
|
+
}[] | undefined;
|
|
3147
3941
|
startedAt?: string | undefined;
|
|
3148
3942
|
completedAt?: string | undefined;
|
|
3149
3943
|
}[] | undefined;
|
|
@@ -3253,15 +4047,27 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3253
4047
|
workDeviations: {
|
|
3254
4048
|
id: string;
|
|
3255
4049
|
createdAt: string;
|
|
4050
|
+
reason: string;
|
|
3256
4051
|
recommendedTaskId: string;
|
|
3257
4052
|
temporaryTaskId: string;
|
|
3258
4053
|
resumeTaskId: string;
|
|
3259
|
-
|
|
4054
|
+
snapshot: {
|
|
4055
|
+
id: string;
|
|
4056
|
+
reason: string;
|
|
4057
|
+
whatWasBeingDone: string;
|
|
4058
|
+
resumeLocation: string;
|
|
4059
|
+
howToResume: string;
|
|
4060
|
+
relatedTaskId: string;
|
|
4061
|
+
pausedAt: string;
|
|
4062
|
+
pausedBy: string;
|
|
4063
|
+
} | null;
|
|
3260
4064
|
requestedBy: "agent" | "user";
|
|
3261
4065
|
approvedBy: string;
|
|
3262
|
-
state: "approved" | "active" | "resolved" | "canceled";
|
|
4066
|
+
state: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled";
|
|
3263
4067
|
activatedAt: string;
|
|
4068
|
+
resumeRequiredAt: string;
|
|
3264
4069
|
resolvedAt: string;
|
|
4070
|
+
resumedAt: string;
|
|
3265
4071
|
}[];
|
|
3266
4072
|
};
|
|
3267
4073
|
phases: {
|
|
@@ -3351,6 +4157,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3351
4157
|
description: string;
|
|
3352
4158
|
}[];
|
|
3353
4159
|
dependsOn: string[];
|
|
4160
|
+
pauseSnapshot: {
|
|
4161
|
+
id: string;
|
|
4162
|
+
reason: string;
|
|
4163
|
+
whatWasBeingDone: string;
|
|
4164
|
+
resumeLocation: string;
|
|
4165
|
+
howToResume: string;
|
|
4166
|
+
relatedTaskId: string;
|
|
4167
|
+
pausedAt: string;
|
|
4168
|
+
pausedBy: string;
|
|
4169
|
+
} | null;
|
|
4170
|
+
pauseHistory: {
|
|
4171
|
+
id: string;
|
|
4172
|
+
reason: string;
|
|
4173
|
+
whatWasBeingDone: string;
|
|
4174
|
+
resumeLocation: string;
|
|
4175
|
+
howToResume: string;
|
|
4176
|
+
relatedTaskId: string;
|
|
4177
|
+
pausedAt: string;
|
|
4178
|
+
pausedBy: string;
|
|
4179
|
+
}[];
|
|
3354
4180
|
startedAt: string;
|
|
3355
4181
|
completedAt: string;
|
|
3356
4182
|
}[];
|
|
@@ -3465,11 +4291,23 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3465
4291
|
temporaryTaskId: string;
|
|
3466
4292
|
resumeTaskId: string;
|
|
3467
4293
|
reason?: string | undefined;
|
|
4294
|
+
snapshot?: {
|
|
4295
|
+
id: string;
|
|
4296
|
+
reason: string;
|
|
4297
|
+
whatWasBeingDone: string;
|
|
4298
|
+
resumeLocation: string;
|
|
4299
|
+
howToResume: string;
|
|
4300
|
+
pausedAt: string;
|
|
4301
|
+
relatedTaskId?: string | undefined;
|
|
4302
|
+
pausedBy?: string | undefined;
|
|
4303
|
+
} | null | undefined;
|
|
3468
4304
|
requestedBy?: "agent" | "user" | undefined;
|
|
3469
4305
|
approvedBy?: string | undefined;
|
|
3470
|
-
state?: "approved" | "active" | "resolved" | "canceled" | undefined;
|
|
4306
|
+
state?: "approved" | "active" | "resume-required" | "resolved" | "resumed" | "canceled" | undefined;
|
|
3471
4307
|
activatedAt?: string | undefined;
|
|
4308
|
+
resumeRequiredAt?: string | undefined;
|
|
3472
4309
|
resolvedAt?: string | undefined;
|
|
4310
|
+
resumedAt?: string | undefined;
|
|
3473
4311
|
}[] | undefined;
|
|
3474
4312
|
};
|
|
3475
4313
|
phases: {
|
|
@@ -3560,6 +4398,26 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
|
|
|
3560
4398
|
description?: string | undefined;
|
|
3561
4399
|
}[] | undefined;
|
|
3562
4400
|
dependsOn?: string[] | undefined;
|
|
4401
|
+
pauseSnapshot?: {
|
|
4402
|
+
id: string;
|
|
4403
|
+
reason: string;
|
|
4404
|
+
whatWasBeingDone: string;
|
|
4405
|
+
resumeLocation: string;
|
|
4406
|
+
howToResume: string;
|
|
4407
|
+
pausedAt: string;
|
|
4408
|
+
relatedTaskId?: string | undefined;
|
|
4409
|
+
pausedBy?: string | undefined;
|
|
4410
|
+
} | null | undefined;
|
|
4411
|
+
pauseHistory?: {
|
|
4412
|
+
id: string;
|
|
4413
|
+
reason: string;
|
|
4414
|
+
whatWasBeingDone: string;
|
|
4415
|
+
resumeLocation: string;
|
|
4416
|
+
howToResume: string;
|
|
4417
|
+
pausedAt: string;
|
|
4418
|
+
relatedTaskId?: string | undefined;
|
|
4419
|
+
pausedBy?: string | undefined;
|
|
4420
|
+
}[] | undefined;
|
|
3563
4421
|
startedAt?: string | undefined;
|
|
3564
4422
|
completedAt?: string | undefined;
|
|
3565
4423
|
}[] | undefined;
|
|
@@ -3596,6 +4454,7 @@ export type WorkflowRules = z.infer<typeof WorkflowRulesSchema>;
|
|
|
3596
4454
|
export type AcceptedDecision = z.infer<typeof AcceptedDecisionSchema>;
|
|
3597
4455
|
export type Project = z.infer<typeof ProjectSchema>;
|
|
3598
4456
|
export type WorkDeviation = z.infer<typeof WorkDeviationSchema>;
|
|
4457
|
+
export type TaskPauseSnapshot = z.infer<typeof TaskPauseSnapshotSchema>;
|
|
3599
4458
|
export type Subtask = z.infer<typeof SubtaskSchema>;
|
|
3600
4459
|
export type ChecklistItem = z.infer<typeof ChecklistItemSchema>;
|
|
3601
4460
|
export type StatusLogEntry = z.infer<typeof StatusLogEntrySchema>;
|