@treeseed/sdk 0.10.20 → 0.10.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.
@@ -2133,7 +2133,8 @@ async function verifyRailwayUnit(input) {
2133
2133
  const topology = await resolveRailwayTopologyForScope(input, scope, {
2134
2134
  serviceKeys: [serviceKey],
2135
2135
  includeInstances: true,
2136
- includeVariables: true
2136
+ includeVariables: true,
2137
+ refresh: true
2137
2138
  });
2138
2139
  const entry = topology.services.get(serviceKey) ?? null;
2139
2140
  const service = entry?.configuredService ?? null;
@@ -408,7 +408,7 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
408
408
  };
409
409
  ciMode: "hosted" | "off";
410
410
  verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
411
- workflowGates: Record<string, unknown>[] | {
411
+ workflowGates: (Record<string, unknown> | {
412
412
  name: string;
413
413
  repository: string | null;
414
414
  workflow: string;
@@ -423,7 +423,7 @@ export declare function workflowSave(helpers: WorkflowOperationHelpers, input: T
423
423
  updatedAt: null;
424
424
  timeoutSeconds: number | null;
425
425
  cached: boolean;
426
- }[];
426
+ })[];
427
427
  releaseCandidate: ReleaseCandidateReport | null;
428
428
  hostingAudit: import("../workflow-support.ts").TreeseedHostingAuditReport | null;
429
429
  } & {
@@ -551,7 +551,7 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
551
551
  };
552
552
  ciMode: "hosted" | "off";
553
553
  verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
554
- workflowGates: Record<string, unknown>[] | {
554
+ workflowGates: (Record<string, unknown> | {
555
555
  name: string;
556
556
  repository: string | null;
557
557
  workflow: string;
@@ -566,7 +566,7 @@ export declare function workflowClose(helpers: WorkflowOperationHelpers, input:
566
566
  updatedAt: null;
567
567
  timeoutSeconds: number | null;
568
568
  cached: boolean;
569
- }[];
569
+ })[];
570
570
  releaseCandidate: ReleaseCandidateReport | null;
571
571
  hostingAudit: import("../workflow-support.ts").TreeseedHostingAuditReport | null;
572
572
  } & {
@@ -735,7 +735,7 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
735
735
  };
736
736
  ciMode: "hosted" | "off";
737
737
  verifyMode: "action-first" | "local-only" | import("../workflow.ts").TreeseedWorkflowVerifyMode;
738
- workflowGates: Record<string, unknown>[] | {
738
+ workflowGates: (Record<string, unknown> | {
739
739
  name: string;
740
740
  repository: string | null;
741
741
  workflow: string;
@@ -750,7 +750,7 @@ export declare function workflowStage(helpers: WorkflowOperationHelpers, input:
750
750
  updatedAt: null;
751
751
  timeoutSeconds: number | null;
752
752
  cached: boolean;
753
- }[];
753
+ })[];
754
754
  releaseCandidate: ReleaseCandidateReport | null;
755
755
  hostingAudit: import("../workflow-support.ts").TreeseedHostingAuditReport | null;
756
756
  } & {
@@ -3134,7 +3134,7 @@ async function workflowSave(helpers, input) {
3134
3134
  const saveWorkflowGates = shouldUseHostedSaveCi(effectiveInput, branch) ? await executeJournalStep(root, workflowRun.runId, "hosted-ci", async () => {
3135
3135
  if (branch === STAGING_BRANCH) {
3136
3136
  const workflowGates = saveResult?.workflowGates ?? [];
3137
- if (workflowGates.length > 0 || effectiveInput.verifyDeployedResources !== true || scope === "local" || !savedRootRepo.commitSha) {
3137
+ if (effectiveInput.verifyDeployedResources !== true || scope === "local" || !savedRootRepo.commitSha) {
3138
3138
  return { workflowGates };
3139
3139
  }
3140
3140
  helpers.write("[save][workflow] Dispatching hosted market deploy gate for deployed resource verification.");
@@ -3163,7 +3163,12 @@ async function workflowSave(helpers, input) {
3163
3163
  runId: workflowRun.runId,
3164
3164
  onProgress: (line, stream) => helpers.write(line, stream)
3165
3165
  });
3166
- return { workflowGates: dispatchedGates };
3166
+ return {
3167
+ workflowGates: [
3168
+ ...workflowGates.filter((gate) => !(gate.repository === repository && gate.workflow === "deploy.yml")),
3169
+ ...dispatchedGates
3170
+ ]
3171
+ };
3167
3172
  }
3168
3173
  helpers.write("[save][workflow] Waiting for hosted save workflow gates.");
3169
3174
  return waitForWorkflowGates("save", [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/sdk",
3
- "version": "0.10.20",
3
+ "version": "0.10.21",
4
4
  "description": "Shared Treeseed SDK for content-backed and D1-backed object models.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {