@treeseed/sdk 0.6.9 → 0.6.10

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.
@@ -1,10 +1,10 @@
1
1
  import { resolveTreeseedWorkflowState, type TreeseedWorkflowStatusOptions } from '../workflow-state.ts';
2
2
  import { type TreeseedWorkflowRunCommand, type TreeseedWorkflowRunJournal } from './runs.ts';
3
3
  import { type TreeseedWorkflowMode } from './session.ts';
4
- import type { TreeseedCloseInput, TreeseedConfigInput, TreeseedDestroyInput, TreeseedExportInput, TreeseedReleaseInput, TreeseedRecoverInput, TreeseedResumeInput, TreeseedSaveInput, TreeseedStageInput, TreeseedSwitchInput, TreeseedTaskBranchMetadata, TreeseedWorkflowContext, TreeseedWorkflowDevInput, TreeseedWorkflowOperationId, TreeseedWorkflowResult } from '../workflow.ts';
4
+ import type { TreeseedCloseInput, TreeseedConfigInput, TreeseedDestroyInput, TreeseedExportInput, TreeseedReleaseInput, TreeseedRecoverInput, TreeseedResumeInput, TreeseedSaveInput, TreeseedStageInput, TreeseedSwitchInput, TreeseedTaskBranchMetadata, TreeseedWorkflowContext, TreeseedWorkflowDevInput, TreeseedWorkflowOperationId, TreeseedWorkflowResult, TreeseedWorkflowWorktreeMode } from '../workflow.ts';
5
5
  type WorkflowWrite = NonNullable<TreeseedWorkflowContext['write']>;
6
6
  type WorkflowStatePayload = ReturnType<typeof resolveTreeseedWorkflowState>;
7
- export type TreeseedWorkflowErrorCode = 'validation_failed' | 'merge_conflict' | 'missing_runtime_auth' | 'deployment_timeout' | 'confirmation_required' | 'unsupported_transport' | 'unsupported_state' | 'workflow_locked' | 'resume_unavailable' | 'workflow_contract_missing';
7
+ export type TreeseedWorkflowErrorCode = 'validation_failed' | 'merge_conflict' | 'missing_runtime_auth' | 'deployment_timeout' | 'confirmation_required' | 'unsupported_transport' | 'unsupported_state' | 'workflow_locked' | 'resume_unavailable' | 'workflow_contract_missing' | 'github_workflow_failed' | 'github_auth_unavailable';
8
8
  export declare class TreeseedWorkflowError extends Error {
9
9
  code: TreeseedWorkflowErrorCode;
10
10
  operation: TreeseedWorkflowOperationId;
@@ -41,6 +41,7 @@ type WorkflowRepoReport = {
41
41
  commitSha: string | null;
42
42
  skippedReason: string | null;
43
43
  publishWait: Record<string, unknown> | null;
44
+ workflowGates: Array<Record<string, unknown>>;
44
45
  };
45
46
  export declare function workflowStatus(helpers: WorkflowOperationHelpers, input?: TreeseedWorkflowStatusOptions): Promise<TreeseedWorkflowResult<import("../workflow-state.ts").TreeseedWorkflowState>>;
46
47
  export declare function workflowTasks(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<{
@@ -246,44 +247,28 @@ export declare function workflowConfig(helpers: WorkflowOperationHelpers, input?
246
247
  } & {
247
248
  finalState?: WorkflowStatePayload;
248
249
  }>>;
249
- export declare function workflowExport(helpers: WorkflowOperationHelpers, input?: TreeseedExportInput): Promise<TreeseedWorkflowResult<import("../operations/services/export-runtime.ts").TreeseedExportResult & {
250
- finalState?: WorkflowStatePayload;
251
- }>>;
252
- export declare function workflowSwitch(helpers: WorkflowOperationHelpers, input: TreeseedSwitchInput): Promise<TreeseedWorkflowResult<{
253
- mode: TreeseedWorkflowMode;
254
- branchName: string;
255
- rootRepo: WorkflowRepoReport;
256
- repos: WorkflowRepoReport[];
257
- previewRequested: boolean;
258
- blockers: string[];
259
- plannedSteps: {
260
- id: string;
261
- description: string;
262
- }[];
263
- } & {
264
- finalState?: WorkflowStatePayload;
265
- }> | TreeseedWorkflowResult<{
266
- mode: TreeseedWorkflowMode;
267
- branchName: string;
268
- created: boolean;
269
- resumed: boolean;
270
- repos: WorkflowRepoReport[];
271
- rootRepo: WorkflowRepoReport;
272
- previewRequested: boolean;
273
- preview: {
274
- enabled: boolean;
275
- url: string | null;
276
- lastDeploymentTimestamp: string | null;
277
- };
278
- previewResult: Record<string, unknown> | null;
279
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
280
- preconditions: {
281
- cleanWorktreeRequired: boolean;
282
- baseBranch: string;
250
+ export declare function workflowExport(helpers: WorkflowOperationHelpers, input?: TreeseedExportInput): Promise<TreeseedWorkflowResult<{
251
+ worktreeMode: TreeseedWorkflowWorktreeMode;
252
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
253
+ worktreePath: string | null;
254
+ primaryRoot: string | null;
255
+ directory: string;
256
+ tenantRoot: string;
257
+ outputPath: string;
258
+ branch: string;
259
+ timestamp: string;
260
+ includedBundlePaths: string[];
261
+ ignorePatterns: string[];
262
+ summary: {
263
+ totalFiles: number;
264
+ totalCharacters: number;
265
+ totalTokens: number;
266
+ outputFiles: string[];
283
267
  };
284
268
  } & {
285
269
  finalState?: WorkflowStatePayload;
286
270
  }>>;
271
+ export declare function workflowSwitch(helpers: WorkflowOperationHelpers, input: TreeseedSwitchInput): any;
287
272
  export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: TreeseedWorkflowDevInput): Promise<TreeseedWorkflowResult<{
288
273
  watch: boolean;
289
274
  background: boolean;
@@ -328,6 +313,17 @@ export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: T
328
313
  finalState?: WorkflowStatePayload;
329
314
  }>>;
330
315
  export declare function workflowSave(helpers: WorkflowOperationHelpers, input: TreeseedSaveInput): Promise<TreeseedWorkflowResult<{
316
+ repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
317
+ waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
318
+ plannedVersions: Record<string, string>;
319
+ plannedSteps: {
320
+ id: string;
321
+ description: string;
322
+ }[];
323
+ worktreeMode: TreeseedWorkflowWorktreeMode;
324
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
325
+ worktreePath: string | null;
326
+ primaryRoot: string | null;
331
327
  mode: TreeseedWorkflowMode;
332
328
  branch: string;
333
329
  scope: string;
@@ -347,16 +343,15 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
347
343
  } | null;
348
344
  } | null;
349
345
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
350
- repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
351
- waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
352
- plannedVersions: Record<string, string>;
353
- plannedSteps: {
354
- id: string;
355
- description: string;
356
- }[];
346
+ ciMode: "hosted" | "off";
347
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
357
348
  } & {
358
349
  finalState?: WorkflowStatePayload;
359
350
  }> | TreeseedWorkflowResult<{
351
+ worktreeMode: TreeseedWorkflowWorktreeMode;
352
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
353
+ worktreePath: string | null;
354
+ primaryRoot: string | null;
360
355
  mode: "root-only" | "recursive-workspace";
361
356
  branch: string;
362
357
  scope: string;
@@ -404,13 +399,24 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
404
399
  lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
405
400
  }[];
406
401
  };
402
+ ciMode: "hosted" | "off";
403
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
404
+ workflowGates: Record<string, unknown>[] | {
405
+ name: string;
406
+ repository: string | null;
407
+ workflow: string;
408
+ branch: string;
409
+ headSha: string;
410
+ status: string;
411
+ reason: string;
412
+ conclusion: null;
413
+ runId: null;
414
+ url: null;
415
+ }[];
407
416
  } & {
408
417
  finalState?: WorkflowStatePayload;
409
418
  }>>;
410
419
  export declare function workflowClose(helpers: WorkflowOperationHelpers, input: TreeseedCloseInput): Promise<TreeseedWorkflowResult<{
411
- mode: TreeseedWorkflowMode;
412
- branchName: string | null;
413
- message: string;
414
420
  autoSaveRequired: boolean;
415
421
  repos: WorkflowRepoReport[];
416
422
  rootRepo: WorkflowRepoReport;
@@ -419,6 +425,23 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
419
425
  id: string;
420
426
  description: string;
421
427
  }[];
428
+ worktreeMode: TreeseedWorkflowWorktreeMode;
429
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
430
+ worktreePath: string | null;
431
+ primaryRoot: string | null;
432
+ mode: TreeseedWorkflowMode;
433
+ branchName: string | null;
434
+ message: string;
435
+ autoResumeCandidate: {
436
+ runId: string;
437
+ branch: string | null;
438
+ failure: {
439
+ code: string;
440
+ message: string;
441
+ details: Record<string, unknown> | null;
442
+ at: string;
443
+ } | null;
444
+ } | null;
422
445
  } & {
423
446
  finalState?: WorkflowStatePayload;
424
447
  }> | TreeseedWorkflowResult<{
@@ -427,6 +450,17 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
427
450
  message: string;
428
451
  autoSaved: boolean;
429
452
  autoSaveResult: ({
453
+ repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
454
+ waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
455
+ plannedVersions: Record<string, string>;
456
+ plannedSteps: {
457
+ id: string;
458
+ description: string;
459
+ }[];
460
+ worktreeMode: TreeseedWorkflowWorktreeMode;
461
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
462
+ worktreePath: string | null;
463
+ primaryRoot: string | null;
430
464
  mode: TreeseedWorkflowMode;
431
465
  branch: string;
432
466
  scope: string;
@@ -446,16 +480,15 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
446
480
  } | null;
447
481
  } | null;
448
482
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
449
- repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
450
- waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
451
- plannedVersions: Record<string, string>;
452
- plannedSteps: {
453
- id: string;
454
- description: string;
455
- }[];
483
+ ciMode: "hosted" | "off";
484
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
456
485
  } & {
457
486
  finalState?: WorkflowStatePayload;
458
487
  }) | ({
488
+ worktreeMode: TreeseedWorkflowWorktreeMode;
489
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
490
+ worktreePath: string | null;
491
+ primaryRoot: string | null;
459
492
  mode: "root-only" | "recursive-workspace";
460
493
  branch: string;
461
494
  scope: string;
@@ -503,6 +536,20 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
503
536
  lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
504
537
  }[];
505
538
  };
539
+ ciMode: "hosted" | "off";
540
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
541
+ workflowGates: Record<string, unknown>[] | {
542
+ name: string;
543
+ repository: string | null;
544
+ workflow: string;
545
+ branch: string;
546
+ headSha: string;
547
+ status: string;
548
+ reason: string;
549
+ conclusion: null;
550
+ runId: null;
551
+ url: null;
552
+ }[];
506
553
  } & {
507
554
  finalState?: WorkflowStatePayload;
508
555
  }) | null;
@@ -522,15 +569,27 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
522
569
  localDeleted: boolean;
523
570
  finalBranch: string;
524
571
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
572
+ worktreeCleanup: {
573
+ removed: boolean;
574
+ reason: string;
575
+ worktreePath?: undefined;
576
+ primaryRoot?: undefined;
577
+ branch?: undefined;
578
+ } | {
579
+ removed: boolean;
580
+ worktreePath: string;
581
+ primaryRoot: string;
582
+ branch: string;
583
+ reason?: undefined;
584
+ };
585
+ worktreeMode: TreeseedWorkflowWorktreeMode;
586
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
587
+ worktreePath: string | null;
588
+ primaryRoot: string | null;
525
589
  } & {
526
590
  finalState?: WorkflowStatePayload;
527
591
  }>>;
528
592
  export declare function workflowStage(helpers: WorkflowOperationHelpers, input: TreeseedStageInput): Promise<TreeseedWorkflowResult<{
529
- mode: TreeseedWorkflowMode;
530
- branchName: string | null;
531
- mergeTarget: string;
532
- mergeStrategy: string;
533
- message: string;
534
593
  autoSaveRequired: boolean;
535
594
  blockers: string[];
536
595
  rootRepo: WorkflowRepoReport;
@@ -539,6 +598,26 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
539
598
  id: string;
540
599
  description: string;
541
600
  }[];
601
+ worktreeMode: TreeseedWorkflowWorktreeMode;
602
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
603
+ worktreePath: string | null;
604
+ primaryRoot: string | null;
605
+ mode: TreeseedWorkflowMode;
606
+ branchName: string | null;
607
+ mergeTarget: string;
608
+ mergeStrategy: string;
609
+ message: string;
610
+ ciMode: "hosted" | "off";
611
+ autoResumeCandidate: {
612
+ runId: string;
613
+ branch: string | null;
614
+ failure: {
615
+ code: string;
616
+ message: string;
617
+ details: Record<string, unknown> | null;
618
+ at: string;
619
+ } | null;
620
+ } | null;
542
621
  } & {
543
622
  finalState?: WorkflowStatePayload;
544
623
  }> | TreeseedWorkflowResult<{
@@ -549,6 +628,17 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
549
628
  message: string;
550
629
  autoSaved: boolean;
551
630
  autoSaveResult: ({
631
+ repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
632
+ waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
633
+ plannedVersions: Record<string, string>;
634
+ plannedSteps: {
635
+ id: string;
636
+ description: string;
637
+ }[];
638
+ worktreeMode: TreeseedWorkflowWorktreeMode;
639
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
640
+ worktreePath: string | null;
641
+ primaryRoot: string | null;
552
642
  mode: TreeseedWorkflowMode;
553
643
  branch: string;
554
644
  scope: string;
@@ -568,16 +658,15 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
568
658
  } | null;
569
659
  } | null;
570
660
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
571
- repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
572
- waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
573
- plannedVersions: Record<string, string>;
574
- plannedSteps: {
575
- id: string;
576
- description: string;
577
- }[];
661
+ ciMode: "hosted" | "off";
662
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
578
663
  } & {
579
664
  finalState?: WorkflowStatePayload;
580
665
  }) | ({
666
+ worktreeMode: TreeseedWorkflowWorktreeMode;
667
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
668
+ worktreePath: string | null;
669
+ primaryRoot: string | null;
581
670
  mode: "root-only" | "recursive-workspace";
582
671
  branch: string;
583
672
  scope: string;
@@ -625,6 +714,20 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
625
714
  lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
626
715
  }[];
627
716
  };
717
+ ciMode: "hosted" | "off";
718
+ verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
719
+ workflowGates: Record<string, unknown>[] | {
720
+ name: string;
721
+ repository: string | null;
722
+ workflow: string;
723
+ branch: string;
724
+ headSha: string;
725
+ status: string;
726
+ reason: string;
727
+ conclusion: null;
728
+ runId: null;
729
+ url: null;
730
+ }[];
628
731
  } & {
629
732
  finalState?: WorkflowStatePayload;
630
733
  }) | null;
@@ -636,12 +739,7 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
636
739
  rootRepo: WorkflowRepoReport;
637
740
  stagingWait: {
638
741
  status: string;
639
- reason: string;
640
- branch?: undefined;
641
- } | {
642
- status: string;
643
- branch: string;
644
- reason?: undefined;
742
+ workflowGates: any;
645
743
  };
646
744
  previewCleanup: {
647
745
  performed: boolean;
@@ -655,6 +753,25 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
655
753
  localDeleted: boolean;
656
754
  finalBranch: string;
657
755
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
756
+ ciMode: "hosted" | "off";
757
+ workflowGates: any;
758
+ worktreeCleanup: {
759
+ removed: boolean;
760
+ reason: string;
761
+ worktreePath?: undefined;
762
+ primaryRoot?: undefined;
763
+ branch?: undefined;
764
+ } | {
765
+ removed: boolean;
766
+ worktreePath: string;
767
+ primaryRoot: string;
768
+ branch: string;
769
+ reason?: undefined;
770
+ };
771
+ worktreeMode: TreeseedWorkflowWorktreeMode;
772
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
773
+ worktreePath: string | null;
774
+ primaryRoot: string | null;
658
775
  } & {
659
776
  finalState?: WorkflowStatePayload;
660
777
  }>>;
@@ -669,6 +786,11 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
669
786
  at: string;
670
787
  } | null;
671
788
  } | null;
789
+ worktreeMode: TreeseedWorkflowWorktreeMode;
790
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
791
+ worktreePath: string | null;
792
+ primaryRoot: string | null;
793
+ ciMode: "hosted" | "off";
672
794
  mode: TreeseedWorkflowMode;
673
795
  mergeStrategy: string;
674
796
  level: string;
@@ -708,6 +830,10 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
708
830
  } & {
709
831
  finalState?: WorkflowStatePayload;
710
832
  }> | TreeseedWorkflowResult<{
833
+ worktreeMode: TreeseedWorkflowWorktreeMode;
834
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
835
+ worktreePath: string | null;
836
+ primaryRoot: string | null;
711
837
  mode: "root-only";
712
838
  mergeStrategy: string;
713
839
  level: "patch" | "major" | "minor";
@@ -735,9 +861,26 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
735
861
  tagPushed: boolean;
736
862
  };
737
863
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
864
+ ciMode: "hosted" | "off";
865
+ workflowGates: Record<string, unknown>[] | {
866
+ name: string;
867
+ repository: string | null;
868
+ workflow: string;
869
+ branch: string;
870
+ headSha: string;
871
+ status: string;
872
+ reason: string;
873
+ conclusion: null;
874
+ runId: null;
875
+ url: null;
876
+ }[];
738
877
  } & {
739
878
  finalState?: WorkflowStatePayload;
740
879
  }> | TreeseedWorkflowResult<{
880
+ worktreeMode: TreeseedWorkflowWorktreeMode;
881
+ managedWorktree: import("./worktrees.ts").ManagedWorkflowWorktreeMetadata | null;
882
+ worktreePath: string | null;
883
+ primaryRoot: string | null;
741
884
  mode: "recursive-workspace";
742
885
  mergeStrategy: string;
743
886
  level: "patch" | "major" | "minor";
@@ -777,383 +920,70 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
777
920
  tagPushed: boolean;
778
921
  };
779
922
  workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
923
+ ciMode: "hosted" | "off";
924
+ workflowGates: (Record<string, unknown> | {
925
+ name: string;
926
+ repository: string | null;
927
+ workflow: string;
928
+ branch: string;
929
+ headSha: string;
930
+ status: string;
931
+ reason: string;
932
+ conclusion: null;
933
+ runId: null;
934
+ url: null;
935
+ })[];
780
936
  } & {
781
937
  finalState?: WorkflowStatePayload;
782
938
  }>>;
783
- export declare function workflowResume(helpers: WorkflowOperationHelpers, input: TreeseedResumeInput): Promise<TreeseedWorkflowResult<{
784
- mode: TreeseedWorkflowMode;
785
- branch: string;
786
- scope: string;
787
- hotfix: boolean;
788
- message: string;
789
- repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
790
- rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
791
- blockers: string[];
792
- autoResumeCandidate: {
939
+ export declare function workflowResume(helpers: WorkflowOperationHelpers, input: TreeseedResumeInput): Promise<any>;
940
+ export declare function workflowRecover(helpers: WorkflowOperationHelpers, input?: TreeseedRecoverInput): Promise<TreeseedWorkflowResult<{
941
+ lock: import("./runs.ts").TreeseedWorkflowLockInspection;
942
+ interruptedRuns: {
793
943
  runId: string;
794
- branch: string | null;
944
+ command: TreeseedWorkflowRunCommand;
945
+ status: import("./runs.ts").TreeseedWorkflowRunStatus;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ nextStep: string | null;
795
949
  failure: {
796
950
  code: string;
797
951
  message: string;
798
952
  details: Record<string, unknown> | null;
799
953
  at: string;
800
954
  } | null;
801
- } | null;
802
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
803
- repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
804
- waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
805
- plannedVersions: Record<string, string>;
806
- plannedSteps: {
807
- id: string;
808
- description: string;
955
+ resumeCommand: string;
809
956
  }[];
810
- } & {
811
- finalState?: WorkflowStatePayload;
812
- }> | TreeseedWorkflowResult<{
813
- mode: "root-only" | "recursive-workspace";
814
- branch: string;
815
- scope: string;
816
- hotfix: boolean;
817
- message: string;
818
- resumed: boolean;
819
- resumedRunId: string | null;
820
- autoResumed: boolean;
821
- commitSha: string;
822
- commitCreated: boolean;
823
- noChanges: boolean;
824
- branchSync: {
825
- pushed: boolean;
826
- };
827
- repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport[];
828
- rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport;
829
- waves: string[][];
830
- plannedVersions: Record<string, string>;
831
- partialFailure: null;
832
- previewAction: Record<string, unknown>;
833
- mergeConflict: null;
834
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
835
- commandReadiness: {
836
- status: string;
837
- checks: {
838
- exists: boolean;
839
- id: string;
840
- path: string;
841
- }[];
842
- missing: {
843
- id: string;
844
- path: string;
845
- }[];
846
- } | {
847
- status: string;
848
- reason: string;
849
- checks: never[];
850
- missing: never[];
851
- };
852
- lockfileValidation: {
853
- root: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
854
- repos: {
855
- name: string;
856
- path: string;
857
- lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
858
- }[];
859
- };
860
- } & {
861
- finalState?: WorkflowStatePayload;
862
- }> | TreeseedWorkflowResult<{
863
- mode: TreeseedWorkflowMode;
864
- branchName: string;
865
- rootRepo: WorkflowRepoReport;
866
- repos: WorkflowRepoReport[];
867
- previewRequested: boolean;
868
- blockers: string[];
869
- plannedSteps: {
870
- id: string;
871
- description: string;
957
+ staleRuns: {
958
+ runId: string;
959
+ command: TreeseedWorkflowRunCommand;
960
+ status: import("./runs.ts").TreeseedWorkflowRunStatus;
961
+ createdAt: string;
962
+ updatedAt: string;
963
+ nextStep: string | null;
964
+ failure: {
965
+ code: string;
966
+ message: string;
967
+ details: Record<string, unknown> | null;
968
+ at: string;
969
+ } | null;
970
+ classification: import("./runs.ts").TreeseedWorkflowRunClassification;
872
971
  }[];
873
- } & {
874
- finalState?: WorkflowStatePayload;
875
- }> | TreeseedWorkflowResult<{
876
- mode: TreeseedWorkflowMode;
877
- branchName: string;
878
- created: boolean;
879
- resumed: boolean;
880
- repos: WorkflowRepoReport[];
881
- rootRepo: WorkflowRepoReport;
882
- previewRequested: boolean;
883
- preview: {
884
- enabled: boolean;
885
- url: string | null;
886
- lastDeploymentTimestamp: string | null;
887
- };
888
- previewResult: Record<string, unknown> | null;
889
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
890
- preconditions: {
891
- cleanWorktreeRequired: boolean;
892
- baseBranch: string;
893
- };
894
- } & {
895
- finalState?: WorkflowStatePayload;
896
- }> | TreeseedWorkflowResult<{
897
- mode: TreeseedWorkflowMode;
898
- branchName: string | null;
899
- message: string;
900
- autoSaveRequired: boolean;
901
- repos: WorkflowRepoReport[];
902
- rootRepo: WorkflowRepoReport;
903
- blockers: string[];
904
- plannedSteps: {
905
- id: string;
906
- description: string;
907
- }[];
908
- } & {
909
- finalState?: WorkflowStatePayload;
910
- }> | TreeseedWorkflowResult<{
911
- mode: TreeseedWorkflowMode;
912
- branchName: string;
913
- message: string;
914
- autoSaved: boolean;
915
- autoSaveResult: ({
916
- mode: TreeseedWorkflowMode;
917
- branch: string;
918
- scope: string;
919
- hotfix: boolean;
920
- message: string;
921
- repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
922
- rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
923
- blockers: string[];
924
- autoResumeCandidate: {
925
- runId: string;
926
- branch: string | null;
927
- failure: {
928
- code: string;
929
- message: string;
930
- details: Record<string, unknown> | null;
931
- at: string;
932
- } | null;
933
- } | null;
934
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
935
- repositoryPlan: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlan;
936
- waves: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanWave[];
937
- plannedVersions: Record<string, string>;
938
- plannedSteps: {
939
- id: string;
940
- description: string;
941
- }[];
942
- } & {
943
- finalState?: WorkflowStatePayload;
944
- }) | ({
945
- mode: "root-only" | "recursive-workspace";
946
- branch: string;
947
- scope: string;
948
- hotfix: boolean;
949
- message: string;
950
- resumed: boolean;
951
- resumedRunId: string | null;
952
- autoResumed: boolean;
953
- commitSha: string;
954
- commitCreated: boolean;
955
- noChanges: boolean;
956
- branchSync: {
957
- pushed: boolean;
958
- };
959
- repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport[];
960
- rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport;
961
- waves: string[][];
962
- plannedVersions: Record<string, string>;
963
- partialFailure: null;
964
- previewAction: Record<string, unknown>;
965
- mergeConflict: null;
966
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
967
- commandReadiness: {
968
- status: string;
969
- checks: {
970
- exists: boolean;
971
- id: string;
972
- path: string;
973
- }[];
974
- missing: {
975
- id: string;
976
- path: string;
977
- }[];
978
- } | {
979
- status: string;
980
- reason: string;
981
- checks: never[];
982
- missing: never[];
983
- };
984
- lockfileValidation: {
985
- root: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
986
- repos: {
987
- name: string;
988
- path: string;
989
- lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
990
- }[];
991
- };
992
- } & {
993
- finalState?: WorkflowStatePayload;
994
- }) | null;
995
- deprecatedTag: {
996
- tagName: string;
997
- head: string;
998
- };
999
- repos: WorkflowRepoReport[];
1000
- rootRepo: WorkflowRepoReport;
1001
- previewCleanup: {
1002
- performed: boolean;
1003
- state: any;
1004
- } | {
1005
- performed: boolean;
1006
- };
1007
- remoteDeleted: boolean;
1008
- localDeleted: boolean;
1009
- finalBranch: string;
1010
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
1011
- } & {
1012
- finalState?: WorkflowStatePayload;
1013
- }> | TreeseedWorkflowResult<{
1014
- autoResumeCandidate: {
972
+ obsoleteRuns: {
1015
973
  runId: string;
1016
- branch: string | null;
974
+ command: TreeseedWorkflowRunCommand;
975
+ status: import("./runs.ts").TreeseedWorkflowRunStatus;
976
+ createdAt: string;
977
+ updatedAt: string;
1017
978
  failure: {
1018
979
  code: string;
1019
980
  message: string;
1020
981
  details: Record<string, unknown> | null;
1021
982
  at: string;
1022
983
  } | null;
1023
- } | null;
1024
- mode: TreeseedWorkflowMode;
1025
- mergeStrategy: string;
1026
- level: string;
1027
- rootVersion: string;
1028
- releaseTag: string;
1029
- stagingBranch: string;
1030
- productionBranch: string;
1031
- packageSelection: {
1032
- changed: string[];
1033
- dependents: string[];
1034
- selected: string[];
1035
- };
1036
- plannedVersions: any;
1037
- plannedDevReferenceRewrites: {
1038
- repoName: string;
1039
- filePath: string;
1040
- field?: string;
1041
- dependencyName?: string;
1042
- spec: string;
1043
- reason: string;
1044
- }[];
1045
- plannedPublishWaits: {
1046
- name: string;
1047
- workflow: string;
1048
- branch: string;
1049
- status: string;
1050
- }[];
1051
- touchedPackages: string[];
1052
- repos: WorkflowRepoReport[];
1053
- rootRepo: WorkflowRepoReport;
1054
- finalBranch: string;
1055
- plannedSteps: {
1056
- id: string;
1057
- description: string;
1058
- }[];
1059
- blockers: string[];
1060
- } & {
1061
- finalState?: WorkflowStatePayload;
1062
- }> | TreeseedWorkflowResult<{
1063
- mode: "root-only";
1064
- mergeStrategy: string;
1065
- level: "patch" | "major" | "minor";
1066
- resumed: boolean;
1067
- resumedRunId: string | null;
1068
- autoResumed: boolean;
1069
- rootVersion: string;
1070
- releaseTag: string;
1071
- releasedCommit: string;
1072
- stagingBranch: string;
1073
- productionBranch: string;
1074
- touchedPackages: never[];
1075
- packageSelection: {
1076
- changed: never[];
1077
- dependents: never[];
1078
- selected: never[];
1079
- };
1080
- publishWait: never[];
1081
- repos: never[];
1082
- rootRepo: WorkflowRepoReport;
1083
- finalBranch: string;
1084
- pushStatus: {
1085
- stagingPushed: boolean;
1086
- productionPushed: boolean;
1087
- tagPushed: boolean;
1088
- };
1089
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
1090
- } & {
1091
- finalState?: WorkflowStatePayload;
1092
- }> | TreeseedWorkflowResult<{
1093
- mode: "recursive-workspace";
1094
- mergeStrategy: string;
1095
- level: "patch" | "major" | "minor";
1096
- resumed: boolean;
1097
- resumedRunId: string | null;
1098
- autoResumed: boolean;
1099
- rootVersion: string;
1100
- releaseTag: string;
1101
- releasedCommit: string;
1102
- stagingBranch: string;
1103
- productionBranch: string;
1104
- touchedPackages: string[];
1105
- packageSelection: {
1106
- changed: string[];
1107
- dependents: string[];
1108
- selected: string[];
1109
- };
1110
- replacedDevReferences: (import("../operations/services/package-reference-policy.ts").RewrittenDevReference & {
1111
- repoName: string;
1112
- packageJsonPath: string;
1113
- })[];
1114
- releaseInstalls: Record<string, unknown>[];
1115
- devTagCleanup: {
1116
- status: string;
1117
- repos: Record<string, unknown>[];
1118
- } | {
1119
- status: string;
1120
- reason: string;
1121
- };
1122
- publishWait: Record<string, unknown>[];
1123
- repos: WorkflowRepoReport[];
1124
- rootRepo: WorkflowRepoReport;
1125
- finalBranch: string;
1126
- pushStatus: {
1127
- stagingPushed: boolean;
1128
- productionPushed: boolean;
1129
- tagPushed: boolean;
1130
- };
1131
- workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
1132
- } & {
1133
- finalState?: WorkflowStatePayload;
1134
- }> | TreeseedWorkflowResult<{
1135
- dryRun: boolean;
1136
- remoteResult: Record<string, unknown> | null;
1137
- scope: string;
1138
- force: boolean;
1139
- destroyRemote: boolean;
1140
- destroyLocal: boolean;
1141
- removeBuildArtifacts: boolean;
1142
- expectedConfirmation: string;
1143
- stateSummary: {
1144
- workerName: any;
1145
- lastDeploymentTimestamp: any;
1146
- };
1147
- plannedSteps: {
1148
- id: string;
1149
- description: string;
984
+ classification: import("./runs.ts").TreeseedWorkflowRunClassification;
1150
985
  }[];
1151
- } & {
1152
- finalState?: WorkflowStatePayload;
1153
- }>>;
1154
- export declare function workflowRecover(helpers: WorkflowOperationHelpers, input?: TreeseedRecoverInput): Promise<TreeseedWorkflowResult<{
1155
- lock: import("./runs.ts").TreeseedWorkflowLockInspection;
1156
- interruptedRuns: {
986
+ prunedRuns: {
1157
987
  runId: string;
1158
988
  command: TreeseedWorkflowRunCommand;
1159
989
  status: import("./runs.ts").TreeseedWorkflowRunStatus;
@@ -1166,7 +996,7 @@ export declare function workflowRecover(helpers: WorkflowOperationHelpers, input
1166
996
  details: Record<string, unknown> | null;
1167
997
  at: string;
1168
998
  } | null;
1169
- resumeCommand: string;
999
+ classification: import("./runs.ts").TreeseedWorkflowRunClassification;
1170
1000
  }[];
1171
1001
  selectedRun: TreeseedWorkflowRunJournal | null;
1172
1002
  runCount: number;