@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.
@@ -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", () => waitForWorkflowGates("save", [
2968
- ...savedRootRepo.pushed && savedRootRepo.commitSha && branch ? [{
2969
- name: savedRootRepo.name,
2970
- repoPath: savedRootRepo.path,
2971
- workflow: "verify.yml",
2972
- branch,
2973
- headSha: savedRootRepo.commitSha
2974
- }] : [],
2975
- ...effectiveInput.verifyDeployedResources === true && scope !== "local" && savedRootRepo.pushed && savedRootRepo.commitSha && branch ? [{
2976
- name: savedRootRepo.name,
2977
- repoPath: savedRootRepo.path,
2978
- workflow: "deploy.yml",
2979
- branch,
2980
- headSha: savedRootRepo.commitSha
2981
- }] : [],
2982
- ...savedPackageReports.filter((repo) => repo.pushed && repo.commitSha && repo.branch).map((repo) => ({
2983
- name: repo.name,
2984
- repoPath: repo.path,
2985
- workflow: "verify.yml",
2986
- branch: String(repo.branch),
2987
- headSha: String(repo.commitSha)
2988
- }))
2989
- ], "hosted", {
2990
- root,
2991
- runId: workflowRun.runId,
2992
- onProgress: (line, stream) => helpers.write(line, stream)
2993
- }).then((workflowGates) => ({ workflowGates }))) : { workflowGates: [] };
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.6.50",
3
+ "version": "0.7.0",
4
4
  "description": "Shared Treeseed SDK for content-backed and D1-backed object models.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {