@treeseed/sdk 0.6.50 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -2
- package/dist/index.js +21 -5
- package/dist/operations/providers/default.js +453 -5
- package/dist/operations/runtime.js +1 -0
- package/dist/operations/services/github-automation.d.ts +3 -1
- package/dist/operations/services/github-automation.js +2 -2
- package/dist/operations/services/hub-launch.d.ts +182 -0
- package/dist/operations/services/hub-launch.js +308 -0
- package/dist/operations/services/{knowledge-coop-launch.d.ts → hub-provider-launch.d.ts} +47 -17
- package/dist/operations/services/{knowledge-coop-launch.js → hub-provider-launch.js} +144 -41
- package/dist/operations/services/project-platform.js +5 -1
- package/dist/operations/services/railway-deploy.d.ts +2 -2
- package/dist/operations/services/railway-deploy.js +27 -3
- package/dist/operations-registry.js +15 -0
- package/dist/operations-types.d.ts +1 -0
- package/dist/operations.d.ts +2 -0
- package/dist/operations.js +17 -1
- package/dist/remote.d.ts +11 -0
- package/dist/remote.js +6 -0
- package/dist/workflow/operations.js +34 -27
- package/package.json +1 -1
|
@@ -2923,8 +2923,10 @@ async function workflowSave(helpers, input) {
|
|
|
2923
2923
|
if (autoResumeRun) {
|
|
2924
2924
|
helpers.write(`[workflow][resume] Resuming interrupted save ${autoResumeRun.runId} on ${branch}.`);
|
|
2925
2925
|
}
|
|
2926
|
+
helpers.write(`[save][workflow] Preparing save on ${branch} (${mode}, ${scope}).`);
|
|
2926
2927
|
try {
|
|
2927
2928
|
const saveResult = await executeJournalStep(root, workflowRun.runId, "save-repositories", () => (async () => {
|
|
2929
|
+
helpers.write("[save][workflow] Saving repositories and validating lockfiles.");
|
|
2928
2930
|
unlinkWorkflowWorkspaceLinks(root, helpers, effectiveInput.workspaceLinks ?? "auto");
|
|
2929
2931
|
try {
|
|
2930
2932
|
return await runRepositorySaveOrchestrator({
|
|
@@ -2948,6 +2950,7 @@ async function workflowSave(helpers, input) {
|
|
|
2948
2950
|
})());
|
|
2949
2951
|
const savedPackageReports = saveResult?.repos ?? packageReports;
|
|
2950
2952
|
const savedRootRepo = saveResult?.rootRepo ?? rootRepo;
|
|
2953
|
+
helpers.write("[save][workflow] Repository save phase complete; checking command readiness.");
|
|
2951
2954
|
const head = savedRootRepo.commitSha ?? run("git", ["rev-parse", "HEAD"], { cwd: gitRoot, capture: true }).trim();
|
|
2952
2955
|
const commitCreated = savedRootRepo.committed === true;
|
|
2953
2956
|
const branchSync = {
|
|
@@ -2964,34 +2967,38 @@ async function workflowSave(helpers, input) {
|
|
|
2964
2967
|
lockfileValidation: repo.lockfileValidation
|
|
2965
2968
|
}))
|
|
2966
2969
|
};
|
|
2967
|
-
const saveWorkflowGates = shouldUseHostedSaveCi(effectiveInput) ? await executeJournalStep(root, workflowRun.runId, "hosted-ci", () =>
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2970
|
+
const saveWorkflowGates = shouldUseHostedSaveCi(effectiveInput) ? await executeJournalStep(root, workflowRun.runId, "hosted-ci", () => {
|
|
2971
|
+
helpers.write("[save][workflow] Waiting for hosted save workflow gates.");
|
|
2972
|
+
return waitForWorkflowGates("save", [
|
|
2973
|
+
...savedRootRepo.pushed && savedRootRepo.commitSha && branch ? [{
|
|
2974
|
+
name: savedRootRepo.name,
|
|
2975
|
+
repoPath: savedRootRepo.path,
|
|
2976
|
+
workflow: "verify.yml",
|
|
2977
|
+
branch,
|
|
2978
|
+
headSha: savedRootRepo.commitSha
|
|
2979
|
+
}] : [],
|
|
2980
|
+
...effectiveInput.verifyDeployedResources === true && scope !== "local" && savedRootRepo.pushed && savedRootRepo.commitSha && branch ? [{
|
|
2981
|
+
name: savedRootRepo.name,
|
|
2982
|
+
repoPath: savedRootRepo.path,
|
|
2983
|
+
workflow: "deploy.yml",
|
|
2984
|
+
branch,
|
|
2985
|
+
headSha: savedRootRepo.commitSha
|
|
2986
|
+
}] : [],
|
|
2987
|
+
...savedPackageReports.filter((repo) => repo.pushed && repo.commitSha && repo.branch).map((repo) => ({
|
|
2988
|
+
name: repo.name,
|
|
2989
|
+
repoPath: repo.path,
|
|
2990
|
+
workflow: "verify.yml",
|
|
2991
|
+
branch: String(repo.branch),
|
|
2992
|
+
headSha: String(repo.commitSha)
|
|
2993
|
+
}))
|
|
2994
|
+
], "hosted", {
|
|
2995
|
+
root,
|
|
2996
|
+
runId: workflowRun.runId,
|
|
2997
|
+
onProgress: (line, stream) => helpers.write(line, stream)
|
|
2998
|
+
}).then((workflowGates) => ({ workflowGates }));
|
|
2999
|
+
}) : { workflowGates: [] };
|
|
2994
3000
|
const releaseCandidate = branch === STAGING_BRANCH ? await executeJournalStep(root, workflowRun.runId, "release-candidate", () => {
|
|
3001
|
+
helpers.write("[save][workflow] Running staging release-candidate readiness checks.");
|
|
2995
3002
|
const releaseSession = resolveTreeseedWorkflowSession(root);
|
|
2996
3003
|
const stagingReleasePlan = buildReleasePlanSnapshot({
|
|
2997
3004
|
root,
|