supipowers 2.1.0 → 2.2.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/src/types.ts CHANGED
@@ -1826,6 +1826,46 @@ export interface HarnessCiConfig {
1826
1826
  * an explicit truthy `enabled`, so legacy specs do not trip it.
1827
1827
  */
1828
1828
  prComment?: HarnessPrCommentConfig;
1829
+ /**
1830
+ * Optional Git topology + branch-protection wiring captured by the interactive
1831
+ * `git-verify` sub-step run between Design and Plan. Absent on legacy specs.
1832
+ *
1833
+ * - `mainBranch` is the canonical protected branch (typically `main` or `master`).
1834
+ * - `devBranch` is the development branch dev work flows through; `null` when the user
1835
+ * opts out of the convention.
1836
+ * - `enforceMainFromDevOnly` controls both the CI-side guardrail (a `verify-pr-source`
1837
+ * job appended to the rendered workflow) and the opportunistic server-side ruleset
1838
+ * applied via `gh api`. The CI guardrail is deterministic; the ruleset is best-effort.
1839
+ * - `verification` records what the interactive helper actually did. `appliedProtections`
1840
+ * is the set of enforcement layers that landed (e.g. `"ci-guardrail"`, `"ruleset"`).
1841
+ * `findings` carries non-fatal issues surfaced during the run; the validate stage
1842
+ * folds them into its report. `manualInstructionsPath` points at the rendered
1843
+ * fallback doc when `gh` is unavailable or lacks scope.
1844
+ */
1845
+ git?: HarnessCiGitConfig;
1846
+ }
1847
+
1848
+ /** Git/branch-protection block recorded by the interactive verification helper. */
1849
+ export interface HarnessCiGitConfig {
1850
+ mainBranch: string;
1851
+ devBranch: string | null;
1852
+ enforceMainFromDevOnly: boolean;
1853
+ verification: HarnessCiGitVerification | null;
1854
+ }
1855
+
1856
+ /** Result block recorded by `runGitVerificationQa` for downstream stages to consume. */
1857
+ export interface HarnessCiGitVerification {
1858
+ checkedAt: string;
1859
+ appliedProtections: string[];
1860
+ findings: HarnessCiGitFinding[];
1861
+ /** Relative path (under the session dir) to the rendered manual-instructions doc, or null. */
1862
+ manualInstructionsPath: string | null;
1863
+ }
1864
+
1865
+ export interface HarnessCiGitFinding {
1866
+ severity: "info" | "warning" | "error";
1867
+ message: string;
1868
+ remediation?: string;
1829
1869
  }
1830
1870
 
1831
1871