@bridge-ds/core 0.22.0 → 0.24.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.
@@ -69,8 +69,19 @@ export interface CiSummary {
69
69
  url?: string;
70
70
  }[];
71
71
  }
72
- /** Combines check runs and commit statuses into one verdict. Any failure wins over pending. */
73
- export declare function summarizeCi(runs: CiRunLike[], statuses?: CiStatusLike[]): CiSummary;
72
+ export interface SummarizeCiOptions {
73
+ /**
74
+ * The pull request is an exploration (explorations isGuardedExploration): its guard check, "Exploration not merged
75
+ * as is" (EXPLORATION_CHECK), fails by design while it is one, so it is left out of the verdict. Without it the
76
+ * check counts like any other: a pull request that is no exploration and still fails it has a real problem.
77
+ */
78
+ exploration?: boolean | undefined;
79
+ }
80
+ /**
81
+ * Combines check runs and commit statuses into one verdict. Any failure wins over pending. The one check summary of
82
+ * Studio, the MCP server and the CLI: pass `exploration` for an exploration so its guard never reads as a failure.
83
+ */
84
+ export declare function summarizeCi(runs: CiRunLike[], statuses?: CiStatusLike[], opts?: SummarizeCiOptions): CiSummary;
74
85
  export interface ReviewLike {
75
86
  user: {
76
87
  login: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/core",
3
- "version": "0.22.0",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "description": "Bridge core: bridge.config.json, DTCG token loading (tiers and layered modes), alias resolution, WCAG contrast, diffs, minimal-diff edits, PR body, the shared risk tier classifier, changesets and a fetch-based GitHub client. No Figma API, no DOM; Node-only helpers (git, reading a product folder) under @bridge-ds/core/node; the adoption audit under @bridge-ds/core/audit.",
6
6
  "license": "MIT",