@agent-plan/core 0.2.20 → 0.2.21

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/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
- reason: string;
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
- reason: string;
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
- reason: string;
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,34 +654,46 @@ 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
- export declare const SubtaskStatusSchema: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
494
- export declare const TaskStatusSchema: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
495
- export declare const PhaseStatusSchema: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
496
- export declare const RequirementStatusSchema: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
497
- export declare const FeatureStatusSchema: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
676
+ export declare const SubtaskStatusSchema: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
677
+ export declare const TaskStatusSchema: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
678
+ export declare const PhaseStatusSchema: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
679
+ export declare const RequirementStatusSchema: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
680
+ export declare const FeatureStatusSchema: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
498
681
  export declare const SubtaskSchema: z.ZodObject<{
499
682
  id: z.ZodString;
500
683
  title: z.ZodString;
501
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
684
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
502
685
  description: z.ZodDefault<z.ZodString>;
503
686
  createdAt: z.ZodString;
504
687
  updatedAt: z.ZodString;
505
688
  }, "strip", z.ZodTypeAny, {
506
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
689
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
507
690
  updatedAt: string;
508
691
  id: string;
509
692
  createdAt: string;
510
693
  title: string;
511
694
  description: string;
512
695
  }, {
513
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
696
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
514
697
  updatedAt: string;
515
698
  id: string;
516
699
  createdAt: string;
@@ -548,8 +731,8 @@ export declare function needsMotivation(fromStatus: string, toStatus: string): b
548
731
  export declare const StatusLogEntrySchema: z.ZodObject<{
549
732
  id: z.ZodString;
550
733
  date: z.ZodString;
551
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
552
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
734
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
735
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
553
736
  title: z.ZodString;
554
737
  description: z.ZodDefault<z.ZodString>;
555
738
  }, "strip", z.ZodTypeAny, {
@@ -557,14 +740,14 @@ export declare const StatusLogEntrySchema: z.ZodObject<{
557
740
  date: string;
558
741
  title: string;
559
742
  description: string;
560
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
561
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
743
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
744
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
562
745
  }, {
563
746
  id: string;
564
747
  date: string;
565
748
  title: string;
566
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
567
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
749
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
750
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
568
751
  description?: string | undefined;
569
752
  }>;
570
753
  /** Like StatusLogEntrySchema but for the DERIVED PHASE status, which includes
@@ -572,8 +755,8 @@ export declare const StatusLogEntrySchema: z.ZodObject<{
572
755
  export declare const PhaseStatusLogEntrySchema: z.ZodObject<{
573
756
  id: z.ZodString;
574
757
  date: z.ZodString;
575
- fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
576
- toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
758
+ fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
759
+ toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
577
760
  title: z.ZodString;
578
761
  description: z.ZodDefault<z.ZodString>;
579
762
  }, "strip", z.ZodTypeAny, {
@@ -581,14 +764,14 @@ export declare const PhaseStatusLogEntrySchema: z.ZodObject<{
581
764
  date: string;
582
765
  title: string;
583
766
  description: string;
584
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
585
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
767
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
768
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
586
769
  }, {
587
770
  id: string;
588
771
  date: string;
589
772
  title: string;
590
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
591
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
773
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
774
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
592
775
  description?: string | undefined;
593
776
  }>;
594
777
  export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
@@ -602,7 +785,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
602
785
  priority: z.ZodDefault<z.ZodNumber>;
603
786
  shortName: z.ZodString;
604
787
  title: z.ZodString;
605
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
788
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
606
789
  description: z.ZodDefault<z.ZodString>;
607
790
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
608
791
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
@@ -610,8 +793,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
610
793
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
611
794
  id: z.ZodString;
612
795
  date: z.ZodString;
613
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
614
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
796
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
797
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
615
798
  title: z.ZodString;
616
799
  description: z.ZodDefault<z.ZodString>;
617
800
  }, "strip", z.ZodTypeAny, {
@@ -619,14 +802,14 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
619
802
  date: string;
620
803
  title: string;
621
804
  description: string;
622
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
623
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
805
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
806
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
624
807
  }, {
625
808
  id: string;
626
809
  date: string;
627
810
  title: string;
628
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
629
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
811
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
812
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
630
813
  description?: string | undefined;
631
814
  }>, "many">>;
632
815
  decisions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -674,19 +857,19 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
674
857
  subtasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
675
858
  id: z.ZodString;
676
859
  title: z.ZodString;
677
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
860
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
678
861
  description: z.ZodDefault<z.ZodString>;
679
862
  createdAt: z.ZodString;
680
863
  updatedAt: z.ZodString;
681
864
  }, "strip", z.ZodTypeAny, {
682
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
865
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
683
866
  updatedAt: string;
684
867
  id: string;
685
868
  createdAt: string;
686
869
  title: string;
687
870
  description: string;
688
871
  }, {
689
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
872
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
690
873
  updatedAt: string;
691
874
  id: string;
692
875
  createdAt: string;
@@ -694,13 +877,81 @@ 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;
700
951
  updatedAt: z.ZodString;
701
952
  }, "strip", z.ZodTypeAny, {
702
953
  number: number;
703
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
954
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
704
955
  updatedAt: string;
705
956
  notes: string;
706
957
  id: string;
@@ -726,8 +977,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
726
977
  date: string;
727
978
  title: string;
728
979
  description: string;
729
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
730
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
980
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
981
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
731
982
  }[];
732
983
  checklist: (string | {
733
984
  number: number;
@@ -736,7 +987,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
736
987
  checked: boolean;
737
988
  })[];
738
989
  subtasks: {
739
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
990
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
740
991
  updatedAt: string;
741
992
  id: string;
742
993
  createdAt: string;
@@ -744,10 +995,30 @@ 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
  }, {
750
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1021
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
751
1022
  updatedAt: string;
752
1023
  id: string;
753
1024
  createdAt: string;
@@ -773,8 +1044,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
773
1044
  id: string;
774
1045
  date: string;
775
1046
  title: string;
776
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
777
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1047
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1048
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
778
1049
  description?: string | undefined;
779
1050
  }[] | undefined;
780
1051
  checklist?: (string | {
@@ -784,7 +1055,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
784
1055
  checked?: boolean | undefined;
785
1056
  })[] | undefined;
786
1057
  subtasks?: {
787
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1058
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
788
1059
  updatedAt: string;
789
1060
  id: string;
790
1061
  createdAt: string;
@@ -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
  }>, {
@@ -802,7 +1093,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
802
1093
  checked: boolean;
803
1094
  }[];
804
1095
  number: number;
805
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1096
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
806
1097
  updatedAt: string;
807
1098
  notes: string;
808
1099
  id: string;
@@ -828,11 +1119,11 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
828
1119
  date: string;
829
1120
  title: string;
830
1121
  description: string;
831
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
832
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1122
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1123
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
833
1124
  }[];
834
1125
  subtasks: {
835
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1126
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
836
1127
  updatedAt: string;
837
1128
  id: string;
838
1129
  createdAt: string;
@@ -840,10 +1131,30 @@ 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
  }, {
846
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1157
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
847
1158
  updatedAt: string;
848
1159
  id: string;
849
1160
  createdAt: string;
@@ -869,8 +1180,8 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
869
1180
  id: string;
870
1181
  date: string;
871
1182
  title: string;
872
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
873
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1183
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1184
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
874
1185
  description?: string | undefined;
875
1186
  }[] | undefined;
876
1187
  checklist?: (string | {
@@ -880,7 +1191,7 @@ export declare const TaskSchema: z.ZodEffects<z.ZodObject<{
880
1191
  checked?: boolean | undefined;
881
1192
  })[] | undefined;
882
1193
  subtasks?: {
883
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1194
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
884
1195
  updatedAt: string;
885
1196
  id: string;
886
1197
  createdAt: string;
@@ -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
  }>;
@@ -968,7 +1299,7 @@ export declare const PhaseSchema: z.ZodObject<{
968
1299
  priority: z.ZodDefault<z.ZodNumber>;
969
1300
  shortName: z.ZodString;
970
1301
  title: z.ZodString;
971
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1302
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
972
1303
  description: z.ZodDefault<z.ZodString>;
973
1304
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
974
1305
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
@@ -976,8 +1307,8 @@ export declare const PhaseSchema: z.ZodObject<{
976
1307
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
977
1308
  id: z.ZodString;
978
1309
  date: z.ZodString;
979
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
980
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1310
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1311
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
981
1312
  title: z.ZodString;
982
1313
  description: z.ZodDefault<z.ZodString>;
983
1314
  }, "strip", z.ZodTypeAny, {
@@ -985,14 +1316,14 @@ export declare const PhaseSchema: z.ZodObject<{
985
1316
  date: string;
986
1317
  title: string;
987
1318
  description: string;
988
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
989
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1319
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1320
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
990
1321
  }, {
991
1322
  id: string;
992
1323
  date: string;
993
1324
  title: string;
994
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
995
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1325
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1326
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
996
1327
  description?: string | undefined;
997
1328
  }>, "many">>;
998
1329
  decisions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -1040,19 +1371,19 @@ export declare const PhaseSchema: z.ZodObject<{
1040
1371
  subtasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1041
1372
  id: z.ZodString;
1042
1373
  title: z.ZodString;
1043
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1374
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1044
1375
  description: z.ZodDefault<z.ZodString>;
1045
1376
  createdAt: z.ZodString;
1046
1377
  updatedAt: z.ZodString;
1047
1378
  }, "strip", z.ZodTypeAny, {
1048
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1379
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1049
1380
  updatedAt: string;
1050
1381
  id: string;
1051
1382
  createdAt: string;
1052
1383
  title: string;
1053
1384
  description: string;
1054
1385
  }, {
1055
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1386
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1056
1387
  updatedAt: string;
1057
1388
  id: string;
1058
1389
  createdAt: string;
@@ -1060,13 +1391,81 @@ 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;
1066
1465
  updatedAt: z.ZodString;
1067
1466
  }, "strip", z.ZodTypeAny, {
1068
1467
  number: number;
1069
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1468
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1070
1469
  updatedAt: string;
1071
1470
  notes: string;
1072
1471
  id: string;
@@ -1092,8 +1491,8 @@ export declare const PhaseSchema: z.ZodObject<{
1092
1491
  date: string;
1093
1492
  title: string;
1094
1493
  description: string;
1095
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1096
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1494
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1495
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1097
1496
  }[];
1098
1497
  checklist: (string | {
1099
1498
  number: number;
@@ -1102,7 +1501,7 @@ export declare const PhaseSchema: z.ZodObject<{
1102
1501
  checked: boolean;
1103
1502
  })[];
1104
1503
  subtasks: {
1105
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1504
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1106
1505
  updatedAt: string;
1107
1506
  id: string;
1108
1507
  createdAt: string;
@@ -1110,10 +1509,30 @@ 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
  }, {
1116
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1535
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1117
1536
  updatedAt: string;
1118
1537
  id: string;
1119
1538
  createdAt: string;
@@ -1139,8 +1558,8 @@ export declare const PhaseSchema: z.ZodObject<{
1139
1558
  id: string;
1140
1559
  date: string;
1141
1560
  title: string;
1142
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1143
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1561
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1562
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1144
1563
  description?: string | undefined;
1145
1564
  }[] | undefined;
1146
1565
  checklist?: (string | {
@@ -1150,7 +1569,7 @@ export declare const PhaseSchema: z.ZodObject<{
1150
1569
  checked?: boolean | undefined;
1151
1570
  })[] | undefined;
1152
1571
  subtasks?: {
1153
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1572
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1154
1573
  updatedAt: string;
1155
1574
  id: string;
1156
1575
  createdAt: string;
@@ -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
  }>, {
@@ -1168,7 +1607,7 @@ export declare const PhaseSchema: z.ZodObject<{
1168
1607
  checked: boolean;
1169
1608
  }[];
1170
1609
  number: number;
1171
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1610
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1172
1611
  updatedAt: string;
1173
1612
  notes: string;
1174
1613
  id: string;
@@ -1194,11 +1633,11 @@ export declare const PhaseSchema: z.ZodObject<{
1194
1633
  date: string;
1195
1634
  title: string;
1196
1635
  description: string;
1197
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1198
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1636
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1637
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1199
1638
  }[];
1200
1639
  subtasks: {
1201
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1640
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1202
1641
  updatedAt: string;
1203
1642
  id: string;
1204
1643
  createdAt: string;
@@ -1206,10 +1645,30 @@ 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
  }, {
1212
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1671
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1213
1672
  updatedAt: string;
1214
1673
  id: string;
1215
1674
  createdAt: string;
@@ -1235,8 +1694,8 @@ export declare const PhaseSchema: z.ZodObject<{
1235
1694
  id: string;
1236
1695
  date: string;
1237
1696
  title: string;
1238
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1239
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1697
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1698
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1240
1699
  description?: string | undefined;
1241
1700
  }[] | undefined;
1242
1701
  checklist?: (string | {
@@ -1246,7 +1705,7 @@ export declare const PhaseSchema: z.ZodObject<{
1246
1705
  checked?: boolean | undefined;
1247
1706
  })[] | undefined;
1248
1707
  subtasks?: {
1249
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1708
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1250
1709
  updatedAt: string;
1251
1710
  id: string;
1252
1711
  createdAt: string;
@@ -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">>;
@@ -1289,8 +1768,8 @@ export declare const PhaseSchema: z.ZodObject<{
1289
1768
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
1290
1769
  id: z.ZodString;
1291
1770
  date: z.ZodString;
1292
- fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1293
- toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1771
+ fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1772
+ toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1294
1773
  title: z.ZodString;
1295
1774
  description: z.ZodDefault<z.ZodString>;
1296
1775
  }, "strip", z.ZodTypeAny, {
@@ -1298,14 +1777,14 @@ export declare const PhaseSchema: z.ZodObject<{
1298
1777
  date: string;
1299
1778
  title: string;
1300
1779
  description: string;
1301
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1302
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1780
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1781
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1303
1782
  }, {
1304
1783
  id: string;
1305
1784
  date: string;
1306
1785
  title: string;
1307
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1308
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1786
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1787
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1309
1788
  description?: string | undefined;
1310
1789
  }>, "many">>;
1311
1790
  }, "strip", z.ZodTypeAny, {
@@ -1335,8 +1814,8 @@ export declare const PhaseSchema: z.ZodObject<{
1335
1814
  date: string;
1336
1815
  title: string;
1337
1816
  description: string;
1338
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1339
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1817
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1818
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1340
1819
  }[];
1341
1820
  dependsOn: string[];
1342
1821
  slug: string;
@@ -1357,7 +1836,7 @@ export declare const PhaseSchema: z.ZodObject<{
1357
1836
  checked: boolean;
1358
1837
  }[];
1359
1838
  number: number;
1360
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1839
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1361
1840
  updatedAt: string;
1362
1841
  notes: string;
1363
1842
  id: string;
@@ -1383,11 +1862,11 @@ export declare const PhaseSchema: z.ZodObject<{
1383
1862
  date: string;
1384
1863
  title: string;
1385
1864
  description: string;
1386
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1387
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1865
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1866
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1388
1867
  }[];
1389
1868
  subtasks: {
1390
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1869
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1391
1870
  updatedAt: string;
1392
1871
  id: string;
1393
1872
  createdAt: string;
@@ -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
  }[];
@@ -1434,8 +1933,8 @@ export declare const PhaseSchema: z.ZodObject<{
1434
1933
  id: string;
1435
1934
  date: string;
1436
1935
  title: string;
1437
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1438
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1936
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1937
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
1439
1938
  description?: string | undefined;
1440
1939
  }[] | undefined;
1441
1940
  dependsOn?: string[] | undefined;
@@ -1450,7 +1949,7 @@ export declare const PhaseSchema: z.ZodObject<{
1450
1949
  completionCriteria?: string[] | undefined;
1451
1950
  taskIds?: string[] | undefined;
1452
1951
  tasks?: {
1453
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1952
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1454
1953
  updatedAt: string;
1455
1954
  id: string;
1456
1955
  createdAt: string;
@@ -1476,8 +1975,8 @@ export declare const PhaseSchema: z.ZodObject<{
1476
1975
  id: string;
1477
1976
  date: string;
1478
1977
  title: string;
1479
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1480
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1978
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1979
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1481
1980
  description?: string | undefined;
1482
1981
  }[] | undefined;
1483
1982
  checklist?: (string | {
@@ -1487,7 +1986,7 @@ export declare const PhaseSchema: z.ZodObject<{
1487
1986
  checked?: boolean | undefined;
1488
1987
  })[] | undefined;
1489
1988
  subtasks?: {
1490
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1989
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1491
1990
  updatedAt: string;
1492
1991
  id: string;
1493
1992
  createdAt: string;
@@ -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;
@@ -1552,8 +2071,8 @@ export declare const FeatureSchema: z.ZodObject<{
1552
2071
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
1553
2072
  id: z.ZodString;
1554
2073
  date: z.ZodString;
1555
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1556
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2074
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2075
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1557
2076
  title: z.ZodString;
1558
2077
  description: z.ZodDefault<z.ZodString>;
1559
2078
  }, "strip", z.ZodTypeAny, {
@@ -1561,14 +2080,14 @@ export declare const FeatureSchema: z.ZodObject<{
1561
2080
  date: string;
1562
2081
  title: string;
1563
2082
  description: string;
1564
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1565
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2083
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2084
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1566
2085
  }, {
1567
2086
  id: string;
1568
2087
  date: string;
1569
2088
  title: string;
1570
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1571
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2089
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2090
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1572
2091
  description?: string | undefined;
1573
2092
  }>, "many">>;
1574
2093
  createdAt: z.ZodString;
@@ -1596,8 +2115,8 @@ export declare const FeatureSchema: z.ZodObject<{
1596
2115
  date: string;
1597
2116
  title: string;
1598
2117
  description: string;
1599
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1600
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2118
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2119
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1601
2120
  }[];
1602
2121
  dependsOn: string[];
1603
2122
  discussedAt: string;
@@ -1630,8 +2149,8 @@ export declare const FeatureSchema: z.ZodObject<{
1630
2149
  id: string;
1631
2150
  date: string;
1632
2151
  title: string;
1633
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1634
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2152
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2153
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1635
2154
  description?: string | undefined;
1636
2155
  }[] | undefined;
1637
2156
  dependsOn?: string[] | undefined;
@@ -1690,8 +2209,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1690
2209
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
1691
2210
  id: z.ZodString;
1692
2211
  date: z.ZodString;
1693
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1694
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2212
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2213
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1695
2214
  title: z.ZodString;
1696
2215
  description: z.ZodDefault<z.ZodString>;
1697
2216
  }, "strip", z.ZodTypeAny, {
@@ -1699,14 +2218,14 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1699
2218
  date: string;
1700
2219
  title: string;
1701
2220
  description: string;
1702
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1703
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2221
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2222
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1704
2223
  }, {
1705
2224
  id: string;
1706
2225
  date: string;
1707
2226
  title: string;
1708
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1709
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2227
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2228
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1710
2229
  description?: string | undefined;
1711
2230
  }>, "many">>;
1712
2231
  createdAt: z.ZodString;
@@ -1734,8 +2253,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1734
2253
  date: string;
1735
2254
  title: string;
1736
2255
  description: string;
1737
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1738
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2256
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2257
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1739
2258
  }[];
1740
2259
  dependsOn: string[];
1741
2260
  discussedAt: string;
@@ -1768,8 +2287,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1768
2287
  id: string;
1769
2288
  date: string;
1770
2289
  title: string;
1771
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1772
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2290
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2291
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1773
2292
  description?: string | undefined;
1774
2293
  }[] | undefined;
1775
2294
  dependsOn?: string[] | undefined;
@@ -1806,8 +2325,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1806
2325
  date: string;
1807
2326
  title: string;
1808
2327
  description: string;
1809
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1810
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2328
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2329
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1811
2330
  }[];
1812
2331
  dependsOn: string[];
1813
2332
  discussedAt: string;
@@ -1842,8 +2361,8 @@ export declare const FeaturesDocumentSchema: z.ZodObject<{
1842
2361
  id: string;
1843
2362
  date: string;
1844
2363
  title: string;
1845
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1846
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2364
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2365
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1847
2366
  description?: string | undefined;
1848
2367
  }[] | undefined;
1849
2368
  dependsOn?: string[] | undefined;
@@ -1861,18 +2380,18 @@ export declare const MacroTaskSchema: z.ZodObject<{
1861
2380
  id: z.ZodString;
1862
2381
  title: z.ZodString;
1863
2382
  description: z.ZodDefault<z.ZodString>;
1864
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2383
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1865
2384
  createdAt: z.ZodString;
1866
2385
  updatedAt: z.ZodString;
1867
2386
  }, "strip", z.ZodTypeAny, {
1868
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2387
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1869
2388
  updatedAt: string;
1870
2389
  id: string;
1871
2390
  createdAt: string;
1872
2391
  title: string;
1873
2392
  description: string;
1874
2393
  }, {
1875
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2394
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1876
2395
  updatedAt: string;
1877
2396
  id: string;
1878
2397
  createdAt: string;
@@ -1883,23 +2402,23 @@ export declare const RequirementSchema: z.ZodObject<{
1883
2402
  id: z.ZodString;
1884
2403
  title: z.ZodString;
1885
2404
  description: z.ZodDefault<z.ZodString>;
1886
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2405
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1887
2406
  macroTasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1888
2407
  id: z.ZodString;
1889
2408
  title: z.ZodString;
1890
2409
  description: z.ZodDefault<z.ZodString>;
1891
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2410
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1892
2411
  createdAt: z.ZodString;
1893
2412
  updatedAt: z.ZodString;
1894
2413
  }, "strip", z.ZodTypeAny, {
1895
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2414
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1896
2415
  updatedAt: string;
1897
2416
  id: string;
1898
2417
  createdAt: string;
1899
2418
  title: string;
1900
2419
  description: string;
1901
2420
  }, {
1902
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2421
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1903
2422
  updatedAt: string;
1904
2423
  id: string;
1905
2424
  createdAt: string;
@@ -1910,14 +2429,14 @@ export declare const RequirementSchema: z.ZodObject<{
1910
2429
  createdAt: z.ZodString;
1911
2430
  updatedAt: z.ZodString;
1912
2431
  }, "strip", z.ZodTypeAny, {
1913
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2432
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1914
2433
  updatedAt: string;
1915
2434
  id: string;
1916
2435
  createdAt: string;
1917
2436
  title: string;
1918
2437
  description: string;
1919
2438
  macroTasks: {
1920
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2439
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1921
2440
  updatedAt: string;
1922
2441
  id: string;
1923
2442
  createdAt: string;
@@ -1926,14 +2445,14 @@ export declare const RequirementSchema: z.ZodObject<{
1926
2445
  }[];
1927
2446
  linkedPhaseIds: string[];
1928
2447
  }, {
1929
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2448
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1930
2449
  updatedAt: string;
1931
2450
  id: string;
1932
2451
  createdAt: string;
1933
2452
  title: string;
1934
2453
  description?: string | undefined;
1935
2454
  macroTasks?: {
1936
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2455
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1937
2456
  updatedAt: string;
1938
2457
  id: string;
1939
2458
  createdAt: string;
@@ -1947,23 +2466,23 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
1947
2466
  id: z.ZodString;
1948
2467
  title: z.ZodString;
1949
2468
  description: z.ZodDefault<z.ZodString>;
1950
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2469
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1951
2470
  macroTasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
1952
2471
  id: z.ZodString;
1953
2472
  title: z.ZodString;
1954
2473
  description: z.ZodDefault<z.ZodString>;
1955
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2474
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
1956
2475
  createdAt: z.ZodString;
1957
2476
  updatedAt: z.ZodString;
1958
2477
  }, "strip", z.ZodTypeAny, {
1959
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2478
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1960
2479
  updatedAt: string;
1961
2480
  id: string;
1962
2481
  createdAt: string;
1963
2482
  title: string;
1964
2483
  description: string;
1965
2484
  }, {
1966
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2485
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1967
2486
  updatedAt: string;
1968
2487
  id: string;
1969
2488
  createdAt: string;
@@ -1974,14 +2493,14 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
1974
2493
  createdAt: z.ZodString;
1975
2494
  updatedAt: z.ZodString;
1976
2495
  }, "strip", z.ZodTypeAny, {
1977
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2496
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1978
2497
  updatedAt: string;
1979
2498
  id: string;
1980
2499
  createdAt: string;
1981
2500
  title: string;
1982
2501
  description: string;
1983
2502
  macroTasks: {
1984
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2503
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1985
2504
  updatedAt: string;
1986
2505
  id: string;
1987
2506
  createdAt: string;
@@ -1990,14 +2509,14 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
1990
2509
  }[];
1991
2510
  linkedPhaseIds: string[];
1992
2511
  }, {
1993
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2512
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
1994
2513
  updatedAt: string;
1995
2514
  id: string;
1996
2515
  createdAt: string;
1997
2516
  title: string;
1998
2517
  description?: string | undefined;
1999
2518
  macroTasks?: {
2000
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2519
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2001
2520
  updatedAt: string;
2002
2521
  id: string;
2003
2522
  createdAt: string;
@@ -2008,14 +2527,14 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2008
2527
  }>, "many">;
2009
2528
  }, "strip", z.ZodTypeAny, {
2010
2529
  requirements: {
2011
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2530
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2012
2531
  updatedAt: string;
2013
2532
  id: string;
2014
2533
  createdAt: string;
2015
2534
  title: string;
2016
2535
  description: string;
2017
2536
  macroTasks: {
2018
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2537
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2019
2538
  updatedAt: string;
2020
2539
  id: string;
2021
2540
  createdAt: string;
@@ -2026,14 +2545,14 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
2026
2545
  }[];
2027
2546
  }, {
2028
2547
  requirements: {
2029
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2548
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2030
2549
  updatedAt: string;
2031
2550
  id: string;
2032
2551
  createdAt: string;
2033
2552
  title: string;
2034
2553
  description?: string | undefined;
2035
2554
  macroTasks?: {
2036
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2555
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2037
2556
  updatedAt: string;
2038
2557
  id: string;
2039
2558
  createdAt: string;
@@ -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
- reason: string;
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
- reason: string;
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<{
@@ -2287,8 +2893,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2287
2893
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
2288
2894
  id: z.ZodString;
2289
2895
  date: z.ZodString;
2290
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2291
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2896
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2897
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2292
2898
  title: z.ZodString;
2293
2899
  description: z.ZodDefault<z.ZodString>;
2294
2900
  }, "strip", z.ZodTypeAny, {
@@ -2296,14 +2902,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2296
2902
  date: string;
2297
2903
  title: string;
2298
2904
  description: string;
2299
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2300
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2905
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2906
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2301
2907
  }, {
2302
2908
  id: string;
2303
2909
  date: string;
2304
2910
  title: string;
2305
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2306
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2911
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2912
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2307
2913
  description?: string | undefined;
2308
2914
  }>, "many">>;
2309
2915
  createdAt: z.ZodString;
@@ -2331,8 +2937,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2331
2937
  date: string;
2332
2938
  title: string;
2333
2939
  description: string;
2334
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2335
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2940
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2941
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2336
2942
  }[];
2337
2943
  dependsOn: string[];
2338
2944
  discussedAt: string;
@@ -2365,8 +2971,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2365
2971
  id: string;
2366
2972
  date: string;
2367
2973
  title: string;
2368
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2369
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2974
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2975
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2370
2976
  description?: string | undefined;
2371
2977
  }[] | undefined;
2372
2978
  dependsOn?: string[] | undefined;
@@ -2403,8 +3009,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2403
3009
  date: string;
2404
3010
  title: string;
2405
3011
  description: string;
2406
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2407
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3012
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3013
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2408
3014
  }[];
2409
3015
  dependsOn: string[];
2410
3016
  discussedAt: string;
@@ -2439,8 +3045,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2439
3045
  id: string;
2440
3046
  date: string;
2441
3047
  title: string;
2442
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2443
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3048
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3049
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2444
3050
  description?: string | undefined;
2445
3051
  }[] | undefined;
2446
3052
  dependsOn?: string[] | undefined;
@@ -2459,23 +3065,23 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2459
3065
  id: z.ZodString;
2460
3066
  title: z.ZodString;
2461
3067
  description: z.ZodDefault<z.ZodString>;
2462
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3068
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2463
3069
  macroTasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2464
3070
  id: z.ZodString;
2465
3071
  title: z.ZodString;
2466
3072
  description: z.ZodDefault<z.ZodString>;
2467
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3073
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2468
3074
  createdAt: z.ZodString;
2469
3075
  updatedAt: z.ZodString;
2470
3076
  }, "strip", z.ZodTypeAny, {
2471
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3077
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2472
3078
  updatedAt: string;
2473
3079
  id: string;
2474
3080
  createdAt: string;
2475
3081
  title: string;
2476
3082
  description: string;
2477
3083
  }, {
2478
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3084
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2479
3085
  updatedAt: string;
2480
3086
  id: string;
2481
3087
  createdAt: string;
@@ -2486,14 +3092,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2486
3092
  createdAt: z.ZodString;
2487
3093
  updatedAt: z.ZodString;
2488
3094
  }, "strip", z.ZodTypeAny, {
2489
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3095
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2490
3096
  updatedAt: string;
2491
3097
  id: string;
2492
3098
  createdAt: string;
2493
3099
  title: string;
2494
3100
  description: string;
2495
3101
  macroTasks: {
2496
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3102
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2497
3103
  updatedAt: string;
2498
3104
  id: string;
2499
3105
  createdAt: string;
@@ -2502,14 +3108,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2502
3108
  }[];
2503
3109
  linkedPhaseIds: string[];
2504
3110
  }, {
2505
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3111
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2506
3112
  updatedAt: string;
2507
3113
  id: string;
2508
3114
  createdAt: string;
2509
3115
  title: string;
2510
3116
  description?: string | undefined;
2511
3117
  macroTasks?: {
2512
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3118
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2513
3119
  updatedAt: string;
2514
3120
  id: string;
2515
3121
  createdAt: string;
@@ -2520,14 +3126,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2520
3126
  }>, "many">;
2521
3127
  }, "strip", z.ZodTypeAny, {
2522
3128
  requirements: {
2523
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3129
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2524
3130
  updatedAt: string;
2525
3131
  id: string;
2526
3132
  createdAt: string;
2527
3133
  title: string;
2528
3134
  description: string;
2529
3135
  macroTasks: {
2530
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3136
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2531
3137
  updatedAt: string;
2532
3138
  id: string;
2533
3139
  createdAt: string;
@@ -2538,14 +3144,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2538
3144
  }[];
2539
3145
  }, {
2540
3146
  requirements: {
2541
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3147
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2542
3148
  updatedAt: string;
2543
3149
  id: string;
2544
3150
  createdAt: string;
2545
3151
  title: string;
2546
3152
  description?: string | undefined;
2547
3153
  macroTasks?: {
2548
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3154
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2549
3155
  updatedAt: string;
2550
3156
  id: string;
2551
3157
  createdAt: string;
@@ -2617,7 +3223,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2617
3223
  priority: z.ZodDefault<z.ZodNumber>;
2618
3224
  shortName: z.ZodString;
2619
3225
  title: z.ZodString;
2620
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3226
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2621
3227
  description: z.ZodDefault<z.ZodString>;
2622
3228
  /** Updated only when this task's description changes; distinct from entity updatedAt. */
2623
3229
  descriptionUpdatedAt: z.ZodDefault<z.ZodString>;
@@ -2625,8 +3231,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2625
3231
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
2626
3232
  id: z.ZodString;
2627
3233
  date: z.ZodString;
2628
- fromStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2629
- toStatus: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3234
+ fromStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3235
+ toStatus: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2630
3236
  title: z.ZodString;
2631
3237
  description: z.ZodDefault<z.ZodString>;
2632
3238
  }, "strip", z.ZodTypeAny, {
@@ -2634,14 +3240,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2634
3240
  date: string;
2635
3241
  title: string;
2636
3242
  description: string;
2637
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2638
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3243
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3244
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2639
3245
  }, {
2640
3246
  id: string;
2641
3247
  date: string;
2642
3248
  title: string;
2643
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2644
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3249
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3250
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2645
3251
  description?: string | undefined;
2646
3252
  }>, "many">>;
2647
3253
  decisions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -2689,19 +3295,19 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2689
3295
  subtasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2690
3296
  id: z.ZodString;
2691
3297
  title: z.ZodString;
2692
- status: z.ZodEnum<["planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3298
+ status: z.ZodEnum<["planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2693
3299
  description: z.ZodDefault<z.ZodString>;
2694
3300
  createdAt: z.ZodString;
2695
3301
  updatedAt: z.ZodString;
2696
3302
  }, "strip", z.ZodTypeAny, {
2697
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3303
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2698
3304
  updatedAt: string;
2699
3305
  id: string;
2700
3306
  createdAt: string;
2701
3307
  title: string;
2702
3308
  description: string;
2703
3309
  }, {
2704
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3310
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2705
3311
  updatedAt: string;
2706
3312
  id: string;
2707
3313
  createdAt: string;
@@ -2709,13 +3315,81 @@ 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;
2715
3389
  updatedAt: z.ZodString;
2716
3390
  }, "strip", z.ZodTypeAny, {
2717
3391
  number: number;
2718
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3392
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2719
3393
  updatedAt: string;
2720
3394
  notes: string;
2721
3395
  id: string;
@@ -2741,8 +3415,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2741
3415
  date: string;
2742
3416
  title: string;
2743
3417
  description: string;
2744
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2745
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3418
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3419
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2746
3420
  }[];
2747
3421
  checklist: (string | {
2748
3422
  number: number;
@@ -2751,7 +3425,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2751
3425
  checked: boolean;
2752
3426
  })[];
2753
3427
  subtasks: {
2754
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3428
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2755
3429
  updatedAt: string;
2756
3430
  id: string;
2757
3431
  createdAt: string;
@@ -2759,10 +3433,30 @@ 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
  }, {
2765
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3459
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2766
3460
  updatedAt: string;
2767
3461
  id: string;
2768
3462
  createdAt: string;
@@ -2788,8 +3482,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2788
3482
  id: string;
2789
3483
  date: string;
2790
3484
  title: string;
2791
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2792
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3485
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3486
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2793
3487
  description?: string | undefined;
2794
3488
  }[] | undefined;
2795
3489
  checklist?: (string | {
@@ -2799,7 +3493,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2799
3493
  checked?: boolean | undefined;
2800
3494
  })[] | undefined;
2801
3495
  subtasks?: {
2802
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3496
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2803
3497
  updatedAt: string;
2804
3498
  id: string;
2805
3499
  createdAt: string;
@@ -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
  }>, {
@@ -2817,7 +3531,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2817
3531
  checked: boolean;
2818
3532
  }[];
2819
3533
  number: number;
2820
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3534
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2821
3535
  updatedAt: string;
2822
3536
  notes: string;
2823
3537
  id: string;
@@ -2843,11 +3557,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2843
3557
  date: string;
2844
3558
  title: string;
2845
3559
  description: string;
2846
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2847
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3560
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3561
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2848
3562
  }[];
2849
3563
  subtasks: {
2850
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3564
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2851
3565
  updatedAt: string;
2852
3566
  id: string;
2853
3567
  createdAt: string;
@@ -2855,10 +3569,30 @@ 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
  }, {
2861
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3595
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2862
3596
  updatedAt: string;
2863
3597
  id: string;
2864
3598
  createdAt: string;
@@ -2884,8 +3618,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2884
3618
  id: string;
2885
3619
  date: string;
2886
3620
  title: string;
2887
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2888
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3621
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3622
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2889
3623
  description?: string | undefined;
2890
3624
  }[] | undefined;
2891
3625
  checklist?: (string | {
@@ -2895,7 +3629,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2895
3629
  checked?: boolean | undefined;
2896
3630
  })[] | undefined;
2897
3631
  subtasks?: {
2898
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3632
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
2899
3633
  updatedAt: string;
2900
3634
  id: string;
2901
3635
  createdAt: string;
@@ -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">>;
@@ -2938,8 +3692,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2938
3692
  statusLog: z.ZodDefault<z.ZodArray<z.ZodObject<{
2939
3693
  id: z.ZodString;
2940
3694
  date: z.ZodString;
2941
- fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2942
- toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3695
+ fromStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
3696
+ toStatus: z.ZodEnum<["draft", "discovery", "planned", "in-progress", "paused", "done", "blocked", "canceled", "rejected", "deferred", "waiting"]>;
2943
3697
  title: z.ZodString;
2944
3698
  description: z.ZodDefault<z.ZodString>;
2945
3699
  }, "strip", z.ZodTypeAny, {
@@ -2947,14 +3701,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2947
3701
  date: string;
2948
3702
  title: string;
2949
3703
  description: string;
2950
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2951
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3704
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3705
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2952
3706
  }, {
2953
3707
  id: string;
2954
3708
  date: string;
2955
3709
  title: string;
2956
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2957
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3710
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3711
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2958
3712
  description?: string | undefined;
2959
3713
  }>, "many">>;
2960
3714
  }, "strip", z.ZodTypeAny, {
@@ -2984,8 +3738,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
2984
3738
  date: string;
2985
3739
  title: string;
2986
3740
  description: string;
2987
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2988
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3741
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3742
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
2989
3743
  }[];
2990
3744
  dependsOn: string[];
2991
3745
  slug: string;
@@ -3006,7 +3760,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3006
3760
  checked: boolean;
3007
3761
  }[];
3008
3762
  number: number;
3009
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3763
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3010
3764
  updatedAt: string;
3011
3765
  notes: string;
3012
3766
  id: string;
@@ -3032,11 +3786,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3032
3786
  date: string;
3033
3787
  title: string;
3034
3788
  description: string;
3035
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3036
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3789
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3790
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3037
3791
  }[];
3038
3792
  subtasks: {
3039
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3793
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3040
3794
  updatedAt: string;
3041
3795
  id: string;
3042
3796
  createdAt: string;
@@ -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
  }[];
@@ -3083,8 +3857,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3083
3857
  id: string;
3084
3858
  date: string;
3085
3859
  title: string;
3086
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3087
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3860
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3861
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3088
3862
  description?: string | undefined;
3089
3863
  }[] | undefined;
3090
3864
  dependsOn?: string[] | undefined;
@@ -3099,7 +3873,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3099
3873
  completionCriteria?: string[] | undefined;
3100
3874
  taskIds?: string[] | undefined;
3101
3875
  tasks?: {
3102
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3876
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3103
3877
  updatedAt: string;
3104
3878
  id: string;
3105
3879
  createdAt: string;
@@ -3125,8 +3899,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3125
3899
  id: string;
3126
3900
  date: string;
3127
3901
  title: string;
3128
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3129
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3902
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3903
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3130
3904
  description?: string | undefined;
3131
3905
  }[] | undefined;
3132
3906
  checklist?: (string | {
@@ -3136,7 +3910,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3136
3910
  checked?: boolean | undefined;
3137
3911
  })[] | undefined;
3138
3912
  subtasks?: {
3139
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3913
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3140
3914
  updatedAt: string;
3141
3915
  id: string;
3142
3916
  createdAt: string;
@@ -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;
@@ -3181,8 +3975,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3181
3975
  date: string;
3182
3976
  title: string;
3183
3977
  description: string;
3184
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3185
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3978
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3979
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3186
3980
  }[];
3187
3981
  dependsOn: string[];
3188
3982
  discussedAt: string;
@@ -3197,14 +3991,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3197
3991
  };
3198
3992
  requirements: {
3199
3993
  requirements: {
3200
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3994
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3201
3995
  updatedAt: string;
3202
3996
  id: string;
3203
3997
  createdAt: string;
3204
3998
  title: string;
3205
3999
  description: string;
3206
4000
  macroTasks: {
3207
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4001
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3208
4002
  updatedAt: string;
3209
4003
  id: string;
3210
4004
  createdAt: string;
@@ -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
- reason: string;
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: {
@@ -3291,8 +4097,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3291
4097
  date: string;
3292
4098
  title: string;
3293
4099
  description: string;
3294
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3295
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4100
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4101
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3296
4102
  }[];
3297
4103
  dependsOn: string[];
3298
4104
  slug: string;
@@ -3313,7 +4119,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3313
4119
  checked: boolean;
3314
4120
  }[];
3315
4121
  number: number;
3316
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4122
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3317
4123
  updatedAt: string;
3318
4124
  notes: string;
3319
4125
  id: string;
@@ -3339,11 +4145,11 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3339
4145
  date: string;
3340
4146
  title: string;
3341
4147
  description: string;
3342
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3343
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4148
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4149
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3344
4150
  }[];
3345
4151
  subtasks: {
3346
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4152
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3347
4153
  updatedAt: string;
3348
4154
  id: string;
3349
4155
  createdAt: string;
@@ -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
  }[];
@@ -3388,8 +4214,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3388
4214
  id: string;
3389
4215
  date: string;
3390
4216
  title: string;
3391
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3392
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4217
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4218
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3393
4219
  description?: string | undefined;
3394
4220
  }[] | undefined;
3395
4221
  dependsOn?: string[] | undefined;
@@ -3405,14 +4231,14 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3405
4231
  };
3406
4232
  requirements: {
3407
4233
  requirements: {
3408
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4234
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3409
4235
  updatedAt: string;
3410
4236
  id: string;
3411
4237
  createdAt: string;
3412
4238
  title: string;
3413
4239
  description?: string | undefined;
3414
4240
  macroTasks?: {
3415
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4241
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3416
4242
  updatedAt: string;
3417
4243
  id: string;
3418
4244
  createdAt: string;
@@ -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: {
@@ -3499,8 +4337,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3499
4337
  id: string;
3500
4338
  date: string;
3501
4339
  title: string;
3502
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3503
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4340
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
4341
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting" | "draft" | "discovery";
3504
4342
  description?: string | undefined;
3505
4343
  }[] | undefined;
3506
4344
  dependsOn?: string[] | undefined;
@@ -3515,7 +4353,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3515
4353
  completionCriteria?: string[] | undefined;
3516
4354
  taskIds?: string[] | undefined;
3517
4355
  tasks?: {
3518
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4356
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3519
4357
  updatedAt: string;
3520
4358
  id: string;
3521
4359
  createdAt: string;
@@ -3541,8 +4379,8 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3541
4379
  id: string;
3542
4380
  date: string;
3543
4381
  title: string;
3544
- fromStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3545
- toStatus: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4382
+ fromStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4383
+ toStatus: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3546
4384
  description?: string | undefined;
3547
4385
  }[] | undefined;
3548
4386
  checklist?: (string | {
@@ -3552,7 +4390,7 @@ export declare const PlanWorkspaceSchema: z.ZodObject<{
3552
4390
  checked?: boolean | undefined;
3553
4391
  })[] | undefined;
3554
4392
  subtasks?: {
3555
- status: "canceled" | "planned" | "in-progress" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
4393
+ status: "canceled" | "planned" | "in-progress" | "paused" | "done" | "blocked" | "rejected" | "deferred" | "waiting";
3556
4394
  updatedAt: string;
3557
4395
  id: string;
3558
4396
  createdAt: string;
@@ -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>;