@treeseed/sdk 0.6.6 → 0.6.8
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/copilot.d.ts +15 -0
- package/dist/copilot.js +75 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/dist/managed-dependencies.d.ts +56 -0
- package/dist/managed-dependencies.js +668 -0
- package/dist/operations/providers/default.js +30 -1
- package/dist/operations/services/commit-message-provider.d.ts +33 -0
- package/dist/operations/services/commit-message-provider.js +319 -0
- package/dist/operations/services/config-runtime.js +41 -20
- package/dist/operations/services/git-remote-policy.d.ts +9 -0
- package/dist/operations/services/git-remote-policy.js +55 -0
- package/dist/operations/services/git-workflow.js +22 -3
- package/dist/operations/services/github-api.js +9 -4
- package/dist/operations/services/knowledge-coop-launch.js +4 -0
- package/dist/operations/services/local-dev.js +7 -2
- package/dist/operations/services/package-reference-policy.d.ts +70 -0
- package/dist/operations/services/package-reference-policy.js +314 -0
- package/dist/operations/services/project-platform.d.ts +4 -0
- package/dist/operations/services/project-platform.js +30 -4
- package/dist/operations/services/railway-deploy.d.ts +4 -1
- package/dist/operations/services/railway-deploy.js +76 -38
- package/dist/operations/services/repository-save-orchestrator.d.ts +172 -0
- package/dist/operations/services/repository-save-orchestrator.js +1462 -0
- package/dist/operations/services/workspace-dependency-mode.d.ts +70 -0
- package/dist/operations/services/workspace-dependency-mode.js +404 -0
- package/dist/operations/services/workspace-preflight.js +5 -0
- package/dist/operations/services/workspace-save.js +10 -6
- package/dist/operations-registry.js +5 -0
- package/dist/operations-types.d.ts +1 -0
- package/dist/platform/books-data.js +4 -1
- package/dist/platform/env.yaml +6 -3
- package/dist/reconcile/builtin-adapters.js +37 -7
- package/dist/scripts/cleanup-markdown.js +4 -0
- package/dist/scripts/publish-package.js +5 -0
- package/dist/scripts/tenant-workflow-action.js +11 -2
- package/dist/verification.js +24 -12
- package/dist/workflow/operations.d.ts +381 -55
- package/dist/workflow/operations.js +718 -258
- package/dist/workflow-state.d.ts +40 -1
- package/dist/workflow-state.js +220 -17
- package/dist/workflow-support.d.ts +3 -0
- package/dist/workflow-support.js +34 -0
- package/dist/workflow.d.ts +19 -3
- package/dist/workflow.js +3 -3
- package/dist/wrangler-d1.js +6 -1
- package/package.json +17 -1
- package/templates/github/deploy.workflow.yml +28 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveTreeseedWorkflowState } from '../workflow-state.ts';
|
|
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
4
|
import type { TreeseedCloseInput, TreeseedConfigInput, TreeseedDestroyInput, TreeseedExportInput, TreeseedReleaseInput, TreeseedRecoverInput, TreeseedResumeInput, TreeseedSaveInput, TreeseedStageInput, TreeseedSwitchInput, TreeseedTaskBranchMetadata, TreeseedWorkflowContext, TreeseedWorkflowDevInput, TreeseedWorkflowOperationId, TreeseedWorkflowResult } from '../workflow.ts';
|
|
@@ -42,7 +42,7 @@ type WorkflowRepoReport = {
|
|
|
42
42
|
skippedReason: string | null;
|
|
43
43
|
publishWait: Record<string, unknown> | null;
|
|
44
44
|
};
|
|
45
|
-
export declare function workflowStatus(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<import("../workflow-state.ts").TreeseedWorkflowState>>;
|
|
45
|
+
export declare function workflowStatus(helpers: WorkflowOperationHelpers, input?: TreeseedWorkflowStatusOptions): Promise<TreeseedWorkflowResult<import("../workflow-state.ts").TreeseedWorkflowState>>;
|
|
46
46
|
export declare function workflowTasks(helpers: WorkflowOperationHelpers): Promise<TreeseedWorkflowResult<{
|
|
47
47
|
tasks: TreeseedTaskBranchMetadata[];
|
|
48
48
|
workstreams: Array<{
|
|
@@ -276,6 +276,7 @@ export declare function workflowSwitch(helpers: WorkflowOperationHelpers, input:
|
|
|
276
276
|
lastDeploymentTimestamp: string | null;
|
|
277
277
|
};
|
|
278
278
|
previewResult: Record<string, unknown> | null;
|
|
279
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
279
280
|
preconditions: {
|
|
280
281
|
cleanWorktreeRequired: boolean;
|
|
281
282
|
baseBranch: string;
|
|
@@ -301,6 +302,7 @@ export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: T
|
|
|
301
302
|
blockers: string[];
|
|
302
303
|
warnings: string[];
|
|
303
304
|
};
|
|
305
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
304
306
|
} & {
|
|
305
307
|
finalState?: WorkflowStatePayload;
|
|
306
308
|
}> | TreeseedWorkflowResult<{
|
|
@@ -321,6 +323,7 @@ export declare function workflowDev(helpers: WorkflowOperationHelpers, input?: T
|
|
|
321
323
|
blockers: string[];
|
|
322
324
|
warnings: string[];
|
|
323
325
|
};
|
|
326
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
324
327
|
} & {
|
|
325
328
|
finalState?: WorkflowStatePayload;
|
|
326
329
|
}>>;
|
|
@@ -330,9 +333,23 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
|
|
|
330
333
|
scope: string;
|
|
331
334
|
hotfix: boolean;
|
|
332
335
|
message: string;
|
|
333
|
-
repos:
|
|
334
|
-
rootRepo:
|
|
336
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
|
|
337
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
|
|
335
338
|
blockers: string[];
|
|
339
|
+
autoResumeCandidate: {
|
|
340
|
+
runId: string;
|
|
341
|
+
branch: string | null;
|
|
342
|
+
failure: {
|
|
343
|
+
code: string;
|
|
344
|
+
message: string;
|
|
345
|
+
details: Record<string, unknown> | null;
|
|
346
|
+
at: string;
|
|
347
|
+
} | null;
|
|
348
|
+
} | null;
|
|
349
|
+
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>;
|
|
336
353
|
plannedSteps: {
|
|
337
354
|
id: string;
|
|
338
355
|
description: string;
|
|
@@ -340,26 +357,53 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
|
|
|
340
357
|
} & {
|
|
341
358
|
finalState?: WorkflowStatePayload;
|
|
342
359
|
}> | TreeseedWorkflowResult<{
|
|
343
|
-
mode:
|
|
360
|
+
mode: "root-only" | "recursive-workspace";
|
|
344
361
|
branch: string;
|
|
345
362
|
scope: string;
|
|
346
363
|
hotfix: boolean;
|
|
347
364
|
message: string;
|
|
365
|
+
resumed: boolean;
|
|
366
|
+
resumedRunId: string | null;
|
|
367
|
+
autoResumed: boolean;
|
|
348
368
|
commitSha: string;
|
|
349
369
|
commitCreated: boolean;
|
|
350
370
|
noChanges: boolean;
|
|
351
371
|
branchSync: {
|
|
352
|
-
remoteBranchExisted: boolean;
|
|
353
|
-
pulledRebase: boolean;
|
|
354
372
|
pushed: boolean;
|
|
355
|
-
createdRemoteBranch: boolean;
|
|
356
|
-
conflicts: boolean;
|
|
357
373
|
};
|
|
358
|
-
repos:
|
|
359
|
-
rootRepo:
|
|
374
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport[];
|
|
375
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport;
|
|
376
|
+
waves: string[][];
|
|
377
|
+
plannedVersions: Record<string, string>;
|
|
360
378
|
partialFailure: null;
|
|
361
379
|
previewAction: Record<string, unknown>;
|
|
362
380
|
mergeConflict: null;
|
|
381
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
382
|
+
commandReadiness: {
|
|
383
|
+
status: string;
|
|
384
|
+
checks: {
|
|
385
|
+
exists: boolean;
|
|
386
|
+
id: string;
|
|
387
|
+
path: string;
|
|
388
|
+
}[];
|
|
389
|
+
missing: {
|
|
390
|
+
id: string;
|
|
391
|
+
path: string;
|
|
392
|
+
}[];
|
|
393
|
+
} | {
|
|
394
|
+
status: string;
|
|
395
|
+
reason: string;
|
|
396
|
+
checks: never[];
|
|
397
|
+
missing: never[];
|
|
398
|
+
};
|
|
399
|
+
lockfileValidation: {
|
|
400
|
+
root: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
401
|
+
repos: {
|
|
402
|
+
name: string;
|
|
403
|
+
path: string;
|
|
404
|
+
lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
405
|
+
}[];
|
|
406
|
+
};
|
|
363
407
|
} & {
|
|
364
408
|
finalState?: WorkflowStatePayload;
|
|
365
409
|
}>>;
|
|
@@ -388,9 +432,23 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
|
|
|
388
432
|
scope: string;
|
|
389
433
|
hotfix: boolean;
|
|
390
434
|
message: string;
|
|
391
|
-
repos:
|
|
392
|
-
rootRepo:
|
|
435
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
|
|
436
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
|
|
393
437
|
blockers: string[];
|
|
438
|
+
autoResumeCandidate: {
|
|
439
|
+
runId: string;
|
|
440
|
+
branch: string | null;
|
|
441
|
+
failure: {
|
|
442
|
+
code: string;
|
|
443
|
+
message: string;
|
|
444
|
+
details: Record<string, unknown> | null;
|
|
445
|
+
at: string;
|
|
446
|
+
} | null;
|
|
447
|
+
} | null;
|
|
448
|
+
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>;
|
|
394
452
|
plannedSteps: {
|
|
395
453
|
id: string;
|
|
396
454
|
description: string;
|
|
@@ -398,26 +456,53 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
|
|
|
398
456
|
} & {
|
|
399
457
|
finalState?: WorkflowStatePayload;
|
|
400
458
|
}) | ({
|
|
401
|
-
mode:
|
|
459
|
+
mode: "root-only" | "recursive-workspace";
|
|
402
460
|
branch: string;
|
|
403
461
|
scope: string;
|
|
404
462
|
hotfix: boolean;
|
|
405
463
|
message: string;
|
|
464
|
+
resumed: boolean;
|
|
465
|
+
resumedRunId: string | null;
|
|
466
|
+
autoResumed: boolean;
|
|
406
467
|
commitSha: string;
|
|
407
468
|
commitCreated: boolean;
|
|
408
469
|
noChanges: boolean;
|
|
409
470
|
branchSync: {
|
|
410
|
-
remoteBranchExisted: boolean;
|
|
411
|
-
pulledRebase: boolean;
|
|
412
471
|
pushed: boolean;
|
|
413
|
-
createdRemoteBranch: boolean;
|
|
414
|
-
conflicts: boolean;
|
|
415
472
|
};
|
|
416
|
-
repos:
|
|
417
|
-
rootRepo:
|
|
473
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport[];
|
|
474
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport;
|
|
475
|
+
waves: string[][];
|
|
476
|
+
plannedVersions: Record<string, string>;
|
|
418
477
|
partialFailure: null;
|
|
419
478
|
previewAction: Record<string, unknown>;
|
|
420
479
|
mergeConflict: null;
|
|
480
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
481
|
+
commandReadiness: {
|
|
482
|
+
status: string;
|
|
483
|
+
checks: {
|
|
484
|
+
exists: boolean;
|
|
485
|
+
id: string;
|
|
486
|
+
path: string;
|
|
487
|
+
}[];
|
|
488
|
+
missing: {
|
|
489
|
+
id: string;
|
|
490
|
+
path: string;
|
|
491
|
+
}[];
|
|
492
|
+
} | {
|
|
493
|
+
status: string;
|
|
494
|
+
reason: string;
|
|
495
|
+
checks: never[];
|
|
496
|
+
missing: never[];
|
|
497
|
+
};
|
|
498
|
+
lockfileValidation: {
|
|
499
|
+
root: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
500
|
+
repos: {
|
|
501
|
+
name: string;
|
|
502
|
+
path: string;
|
|
503
|
+
lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
504
|
+
}[];
|
|
505
|
+
};
|
|
421
506
|
} & {
|
|
422
507
|
finalState?: WorkflowStatePayload;
|
|
423
508
|
}) | null;
|
|
@@ -436,6 +521,7 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
|
|
|
436
521
|
remoteDeleted: boolean;
|
|
437
522
|
localDeleted: boolean;
|
|
438
523
|
finalBranch: string;
|
|
524
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
439
525
|
} & {
|
|
440
526
|
finalState?: WorkflowStatePayload;
|
|
441
527
|
}>>;
|
|
@@ -468,9 +554,23 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
|
|
|
468
554
|
scope: string;
|
|
469
555
|
hotfix: boolean;
|
|
470
556
|
message: string;
|
|
471
|
-
repos:
|
|
472
|
-
rootRepo:
|
|
557
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
|
|
558
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
|
|
473
559
|
blockers: string[];
|
|
560
|
+
autoResumeCandidate: {
|
|
561
|
+
runId: string;
|
|
562
|
+
branch: string | null;
|
|
563
|
+
failure: {
|
|
564
|
+
code: string;
|
|
565
|
+
message: string;
|
|
566
|
+
details: Record<string, unknown> | null;
|
|
567
|
+
at: string;
|
|
568
|
+
} | null;
|
|
569
|
+
} | null;
|
|
570
|
+
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>;
|
|
474
574
|
plannedSteps: {
|
|
475
575
|
id: string;
|
|
476
576
|
description: string;
|
|
@@ -478,26 +578,53 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
|
|
|
478
578
|
} & {
|
|
479
579
|
finalState?: WorkflowStatePayload;
|
|
480
580
|
}) | ({
|
|
481
|
-
mode:
|
|
581
|
+
mode: "root-only" | "recursive-workspace";
|
|
482
582
|
branch: string;
|
|
483
583
|
scope: string;
|
|
484
584
|
hotfix: boolean;
|
|
485
585
|
message: string;
|
|
586
|
+
resumed: boolean;
|
|
587
|
+
resumedRunId: string | null;
|
|
588
|
+
autoResumed: boolean;
|
|
486
589
|
commitSha: string;
|
|
487
590
|
commitCreated: boolean;
|
|
488
591
|
noChanges: boolean;
|
|
489
592
|
branchSync: {
|
|
490
|
-
remoteBranchExisted: boolean;
|
|
491
|
-
pulledRebase: boolean;
|
|
492
593
|
pushed: boolean;
|
|
493
|
-
createdRemoteBranch: boolean;
|
|
494
|
-
conflicts: boolean;
|
|
495
594
|
};
|
|
496
|
-
repos:
|
|
497
|
-
rootRepo:
|
|
595
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport[];
|
|
596
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySaveReport;
|
|
597
|
+
waves: string[][];
|
|
598
|
+
plannedVersions: Record<string, string>;
|
|
498
599
|
partialFailure: null;
|
|
499
600
|
previewAction: Record<string, unknown>;
|
|
500
601
|
mergeConflict: null;
|
|
602
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
603
|
+
commandReadiness: {
|
|
604
|
+
status: string;
|
|
605
|
+
checks: {
|
|
606
|
+
exists: boolean;
|
|
607
|
+
id: string;
|
|
608
|
+
path: string;
|
|
609
|
+
}[];
|
|
610
|
+
missing: {
|
|
611
|
+
id: string;
|
|
612
|
+
path: string;
|
|
613
|
+
}[];
|
|
614
|
+
} | {
|
|
615
|
+
status: string;
|
|
616
|
+
reason: string;
|
|
617
|
+
checks: never[];
|
|
618
|
+
missing: never[];
|
|
619
|
+
};
|
|
620
|
+
lockfileValidation: {
|
|
621
|
+
root: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
622
|
+
repos: {
|
|
623
|
+
name: string;
|
|
624
|
+
path: string;
|
|
625
|
+
lockfileValidation: import("../operations/services/repository-save-orchestrator.ts").RepositoryLockfileValidationResult | null;
|
|
626
|
+
}[];
|
|
627
|
+
};
|
|
501
628
|
} & {
|
|
502
629
|
finalState?: WorkflowStatePayload;
|
|
503
630
|
}) | null;
|
|
@@ -522,22 +649,57 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
|
|
|
522
649
|
} | {
|
|
523
650
|
performed: boolean;
|
|
524
651
|
};
|
|
652
|
+
lockfileValidation: {} | null;
|
|
653
|
+
lockfileInstall: {} | null;
|
|
525
654
|
remoteDeleted: boolean;
|
|
526
655
|
localDeleted: boolean;
|
|
527
656
|
finalBranch: string;
|
|
657
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
528
658
|
} & {
|
|
529
659
|
finalState?: WorkflowStatePayload;
|
|
530
660
|
}>>;
|
|
531
661
|
export declare function workflowRelease(helpers: WorkflowOperationHelpers, input: TreeseedReleaseInput): Promise<TreeseedWorkflowResult<{
|
|
662
|
+
autoResumeCandidate: {
|
|
663
|
+
runId: string;
|
|
664
|
+
branch: string | null;
|
|
665
|
+
failure: {
|
|
666
|
+
code: string;
|
|
667
|
+
message: string;
|
|
668
|
+
details: Record<string, unknown> | null;
|
|
669
|
+
at: string;
|
|
670
|
+
} | null;
|
|
671
|
+
} | null;
|
|
532
672
|
mode: TreeseedWorkflowMode;
|
|
533
673
|
mergeStrategy: string;
|
|
534
|
-
level:
|
|
674
|
+
level: string;
|
|
675
|
+
rootVersion: string;
|
|
676
|
+
releaseTag: string;
|
|
535
677
|
stagingBranch: string;
|
|
536
678
|
productionBranch: string;
|
|
537
|
-
packageSelection:
|
|
679
|
+
packageSelection: {
|
|
680
|
+
changed: string[];
|
|
681
|
+
dependents: string[];
|
|
682
|
+
selected: string[];
|
|
683
|
+
};
|
|
538
684
|
plannedVersions: any;
|
|
685
|
+
plannedDevReferenceRewrites: {
|
|
686
|
+
repoName: string;
|
|
687
|
+
filePath: string;
|
|
688
|
+
field?: string;
|
|
689
|
+
dependencyName?: string;
|
|
690
|
+
spec: string;
|
|
691
|
+
reason: string;
|
|
692
|
+
}[];
|
|
693
|
+
plannedPublishWaits: {
|
|
694
|
+
name: string;
|
|
695
|
+
workflow: string;
|
|
696
|
+
branch: string;
|
|
697
|
+
status: string;
|
|
698
|
+
}[];
|
|
699
|
+
touchedPackages: string[];
|
|
539
700
|
repos: WorkflowRepoReport[];
|
|
540
701
|
rootRepo: WorkflowRepoReport;
|
|
702
|
+
finalBranch: string;
|
|
541
703
|
plannedSteps: {
|
|
542
704
|
id: string;
|
|
543
705
|
description: string;
|
|
@@ -549,12 +711,15 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
|
|
|
549
711
|
mode: "root-only";
|
|
550
712
|
mergeStrategy: string;
|
|
551
713
|
level: "patch" | "major" | "minor";
|
|
714
|
+
resumed: boolean;
|
|
715
|
+
resumedRunId: string | null;
|
|
716
|
+
autoResumed: boolean;
|
|
552
717
|
rootVersion: string;
|
|
553
718
|
releaseTag: string;
|
|
554
719
|
releasedCommit: string;
|
|
555
720
|
stagingBranch: string;
|
|
556
721
|
productionBranch: string;
|
|
557
|
-
touchedPackages:
|
|
722
|
+
touchedPackages: never[];
|
|
558
723
|
packageSelection: {
|
|
559
724
|
changed: never[];
|
|
560
725
|
dependents: never[];
|
|
@@ -569,19 +734,39 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
|
|
|
569
734
|
productionPushed: boolean;
|
|
570
735
|
tagPushed: boolean;
|
|
571
736
|
};
|
|
737
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
572
738
|
} & {
|
|
573
739
|
finalState?: WorkflowStatePayload;
|
|
574
740
|
}> | TreeseedWorkflowResult<{
|
|
575
741
|
mode: "recursive-workspace";
|
|
576
742
|
mergeStrategy: string;
|
|
577
743
|
level: "patch" | "major" | "minor";
|
|
744
|
+
resumed: boolean;
|
|
745
|
+
resumedRunId: string | null;
|
|
746
|
+
autoResumed: boolean;
|
|
578
747
|
rootVersion: string;
|
|
579
748
|
releaseTag: string;
|
|
580
749
|
releasedCommit: string;
|
|
581
750
|
stagingBranch: string;
|
|
582
751
|
productionBranch: string;
|
|
583
752
|
touchedPackages: string[];
|
|
584
|
-
packageSelection:
|
|
753
|
+
packageSelection: {
|
|
754
|
+
changed: string[];
|
|
755
|
+
dependents: string[];
|
|
756
|
+
selected: string[];
|
|
757
|
+
};
|
|
758
|
+
replacedDevReferences: (import("../operations/services/package-reference-policy.ts").RewrittenDevReference & {
|
|
759
|
+
repoName: string;
|
|
760
|
+
packageJsonPath: string;
|
|
761
|
+
})[];
|
|
762
|
+
releaseInstalls: Record<string, unknown>[];
|
|
763
|
+
devTagCleanup: {
|
|
764
|
+
status: string;
|
|
765
|
+
repos: Record<string, unknown>[];
|
|
766
|
+
} | {
|
|
767
|
+
status: string;
|
|
768
|
+
reason: string;
|
|
769
|
+
};
|
|
585
770
|
publishWait: Record<string, unknown>[];
|
|
586
771
|
repos: WorkflowRepoReport[];
|
|
587
772
|
rootRepo: WorkflowRepoReport;
|
|
@@ -591,6 +776,7 @@ export declare function workflowRelease(helpers: WorkflowOperationHelpers, input
|
|
|
591
776
|
productionPushed: boolean;
|
|
592
777
|
tagPushed: boolean;
|
|
593
778
|
};
|
|
779
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
594
780
|
} & {
|
|
595
781
|
finalState?: WorkflowStatePayload;
|
|
596
782
|
}>>;
|
|
@@ -600,9 +786,23 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
600
786
|
scope: string;
|
|
601
787
|
hotfix: boolean;
|
|
602
788
|
message: string;
|
|
603
|
-
repos:
|
|
604
|
-
rootRepo:
|
|
789
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
|
|
790
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
|
|
605
791
|
blockers: string[];
|
|
792
|
+
autoResumeCandidate: {
|
|
793
|
+
runId: string;
|
|
794
|
+
branch: string | null;
|
|
795
|
+
failure: {
|
|
796
|
+
code: string;
|
|
797
|
+
message: string;
|
|
798
|
+
details: Record<string, unknown> | null;
|
|
799
|
+
at: string;
|
|
800
|
+
} | 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>;
|
|
606
806
|
plannedSteps: {
|
|
607
807
|
id: string;
|
|
608
808
|
description: string;
|
|
@@ -610,26 +810,53 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
610
810
|
} & {
|
|
611
811
|
finalState?: WorkflowStatePayload;
|
|
612
812
|
}> | TreeseedWorkflowResult<{
|
|
613
|
-
mode:
|
|
813
|
+
mode: "root-only" | "recursive-workspace";
|
|
614
814
|
branch: string;
|
|
615
815
|
scope: string;
|
|
616
816
|
hotfix: boolean;
|
|
617
817
|
message: string;
|
|
818
|
+
resumed: boolean;
|
|
819
|
+
resumedRunId: string | null;
|
|
820
|
+
autoResumed: boolean;
|
|
618
821
|
commitSha: string;
|
|
619
822
|
commitCreated: boolean;
|
|
620
823
|
noChanges: boolean;
|
|
621
824
|
branchSync: {
|
|
622
|
-
remoteBranchExisted: boolean;
|
|
623
|
-
pulledRebase: boolean;
|
|
624
825
|
pushed: boolean;
|
|
625
|
-
createdRemoteBranch: boolean;
|
|
626
|
-
conflicts: boolean;
|
|
627
826
|
};
|
|
628
|
-
repos:
|
|
629
|
-
rootRepo:
|
|
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>;
|
|
630
831
|
partialFailure: null;
|
|
631
832
|
previewAction: Record<string, unknown>;
|
|
632
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
|
+
};
|
|
633
860
|
} & {
|
|
634
861
|
finalState?: WorkflowStatePayload;
|
|
635
862
|
}> | TreeseedWorkflowResult<{
|
|
@@ -659,6 +886,7 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
659
886
|
lastDeploymentTimestamp: string | null;
|
|
660
887
|
};
|
|
661
888
|
previewResult: Record<string, unknown> | null;
|
|
889
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
662
890
|
preconditions: {
|
|
663
891
|
cleanWorktreeRequired: boolean;
|
|
664
892
|
baseBranch: string;
|
|
@@ -690,9 +918,23 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
690
918
|
scope: string;
|
|
691
919
|
hotfix: boolean;
|
|
692
920
|
message: string;
|
|
693
|
-
repos:
|
|
694
|
-
rootRepo:
|
|
921
|
+
repos: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo[];
|
|
922
|
+
rootRepo: import("../operations/services/repository-save-orchestrator.ts").RepositorySavePlanRepo;
|
|
695
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>;
|
|
696
938
|
plannedSteps: {
|
|
697
939
|
id: string;
|
|
698
940
|
description: string;
|
|
@@ -700,26 +942,53 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
700
942
|
} & {
|
|
701
943
|
finalState?: WorkflowStatePayload;
|
|
702
944
|
}) | ({
|
|
703
|
-
mode:
|
|
945
|
+
mode: "root-only" | "recursive-workspace";
|
|
704
946
|
branch: string;
|
|
705
947
|
scope: string;
|
|
706
948
|
hotfix: boolean;
|
|
707
949
|
message: string;
|
|
950
|
+
resumed: boolean;
|
|
951
|
+
resumedRunId: string | null;
|
|
952
|
+
autoResumed: boolean;
|
|
708
953
|
commitSha: string;
|
|
709
954
|
commitCreated: boolean;
|
|
710
955
|
noChanges: boolean;
|
|
711
956
|
branchSync: {
|
|
712
|
-
remoteBranchExisted: boolean;
|
|
713
|
-
pulledRebase: boolean;
|
|
714
957
|
pushed: boolean;
|
|
715
|
-
createdRemoteBranch: boolean;
|
|
716
|
-
conflicts: boolean;
|
|
717
958
|
};
|
|
718
|
-
repos:
|
|
719
|
-
rootRepo:
|
|
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>;
|
|
720
963
|
partialFailure: null;
|
|
721
964
|
previewAction: Record<string, unknown>;
|
|
722
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
|
+
};
|
|
723
992
|
} & {
|
|
724
993
|
finalState?: WorkflowStatePayload;
|
|
725
994
|
}) | null;
|
|
@@ -738,18 +1007,51 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
738
1007
|
remoteDeleted: boolean;
|
|
739
1008
|
localDeleted: boolean;
|
|
740
1009
|
finalBranch: string;
|
|
1010
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
741
1011
|
} & {
|
|
742
1012
|
finalState?: WorkflowStatePayload;
|
|
743
1013
|
}> | TreeseedWorkflowResult<{
|
|
1014
|
+
autoResumeCandidate: {
|
|
1015
|
+
runId: string;
|
|
1016
|
+
branch: string | null;
|
|
1017
|
+
failure: {
|
|
1018
|
+
code: string;
|
|
1019
|
+
message: string;
|
|
1020
|
+
details: Record<string, unknown> | null;
|
|
1021
|
+
at: string;
|
|
1022
|
+
} | null;
|
|
1023
|
+
} | null;
|
|
744
1024
|
mode: TreeseedWorkflowMode;
|
|
745
1025
|
mergeStrategy: string;
|
|
746
|
-
level:
|
|
1026
|
+
level: string;
|
|
1027
|
+
rootVersion: string;
|
|
1028
|
+
releaseTag: string;
|
|
747
1029
|
stagingBranch: string;
|
|
748
1030
|
productionBranch: string;
|
|
749
|
-
packageSelection:
|
|
1031
|
+
packageSelection: {
|
|
1032
|
+
changed: string[];
|
|
1033
|
+
dependents: string[];
|
|
1034
|
+
selected: string[];
|
|
1035
|
+
};
|
|
750
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[];
|
|
751
1052
|
repos: WorkflowRepoReport[];
|
|
752
1053
|
rootRepo: WorkflowRepoReport;
|
|
1054
|
+
finalBranch: string;
|
|
753
1055
|
plannedSteps: {
|
|
754
1056
|
id: string;
|
|
755
1057
|
description: string;
|
|
@@ -761,12 +1063,15 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
761
1063
|
mode: "root-only";
|
|
762
1064
|
mergeStrategy: string;
|
|
763
1065
|
level: "patch" | "major" | "minor";
|
|
1066
|
+
resumed: boolean;
|
|
1067
|
+
resumedRunId: string | null;
|
|
1068
|
+
autoResumed: boolean;
|
|
764
1069
|
rootVersion: string;
|
|
765
1070
|
releaseTag: string;
|
|
766
1071
|
releasedCommit: string;
|
|
767
1072
|
stagingBranch: string;
|
|
768
1073
|
productionBranch: string;
|
|
769
|
-
touchedPackages:
|
|
1074
|
+
touchedPackages: never[];
|
|
770
1075
|
packageSelection: {
|
|
771
1076
|
changed: never[];
|
|
772
1077
|
dependents: never[];
|
|
@@ -781,19 +1086,39 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
781
1086
|
productionPushed: boolean;
|
|
782
1087
|
tagPushed: boolean;
|
|
783
1088
|
};
|
|
1089
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
784
1090
|
} & {
|
|
785
1091
|
finalState?: WorkflowStatePayload;
|
|
786
1092
|
}> | TreeseedWorkflowResult<{
|
|
787
1093
|
mode: "recursive-workspace";
|
|
788
1094
|
mergeStrategy: string;
|
|
789
1095
|
level: "patch" | "major" | "minor";
|
|
1096
|
+
resumed: boolean;
|
|
1097
|
+
resumedRunId: string | null;
|
|
1098
|
+
autoResumed: boolean;
|
|
790
1099
|
rootVersion: string;
|
|
791
1100
|
releaseTag: string;
|
|
792
1101
|
releasedCommit: string;
|
|
793
1102
|
stagingBranch: string;
|
|
794
1103
|
productionBranch: string;
|
|
795
1104
|
touchedPackages: string[];
|
|
796
|
-
packageSelection:
|
|
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
|
+
};
|
|
797
1122
|
publishWait: Record<string, unknown>[];
|
|
798
1123
|
repos: WorkflowRepoReport[];
|
|
799
1124
|
rootRepo: WorkflowRepoReport;
|
|
@@ -803,6 +1128,7 @@ export declare function workflowResume(helpers: WorkflowOperationHelpers, input:
|
|
|
803
1128
|
productionPushed: boolean;
|
|
804
1129
|
tagPushed: boolean;
|
|
805
1130
|
};
|
|
1131
|
+
workspaceLinks: import("../operations/services/workspace-dependency-mode.ts").WorkspaceDependencyModeReport;
|
|
806
1132
|
} & {
|
|
807
1133
|
finalState?: WorkflowStatePayload;
|
|
808
1134
|
}> | TreeseedWorkflowResult<{
|