@bridge-ds/core 0.12.0 → 0.13.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/README.md +1 -1
- package/bridge.config.schema.json +5 -0
- package/dist/audit/index.js +3 -3
- package/dist/config.d.ts +5 -0
- package/dist/index.js +31 -28
- package/dist/node/index.js +3 -3
- package/dist/{prod-branch-BdMPKffE.js → prod-branch-6ftQWwdu.js} +41 -23
- package/dist/prod-branch-6ftQWwdu.js.map +1 -0
- package/dist/{report-DOnKUw8G.js → report-BeWNSjPk.js} +2 -2
- package/dist/{report-DOnKUw8G.js.map → report-BeWNSjPk.js.map} +1 -1
- package/dist/review-gate.d.ts +8 -1
- package/dist/rights.d.ts +20 -0
- package/dist/{suggestion-apply-DxXRGQrO.js → suggestion-apply-bH6-gZrE.js} +7 -6
- package/dist/suggestion-apply-bH6-gZrE.js.map +1 -0
- package/dist/suggestion-review.d.ts +4 -1
- package/package.json +1 -1
- package/dist/prod-branch-BdMPKffE.js.map +0 -1
- package/dist/suggestion-apply-DxXRGQrO.js.map +0 -1
|
@@ -49,6 +49,8 @@ export interface SuggestionGovernance {
|
|
|
49
49
|
rights?: Rights | null | undefined;
|
|
50
50
|
/** Team members once read (teams.ts). Undefined: owner entries are used as listed. */
|
|
51
51
|
teams?: TeamStates | null | undefined;
|
|
52
|
+
/** `governance.soloOwnerCanApproveBoth`: the only owner's approval covers design and tech (review-gate summarizeApprovals). */
|
|
53
|
+
soloOwnerCanApproveBoth?: boolean | undefined;
|
|
52
54
|
}
|
|
53
55
|
export interface SuggestionApprovals extends ApprovalSummary {
|
|
54
56
|
/** People whose latest review is on an older payload: it no longer counts. */
|
|
@@ -60,7 +62,8 @@ export interface SuggestionApprovals extends ApprovalSummary {
|
|
|
60
62
|
* Approvals on a suggestion, as summarizeApprovals counts them on a pull request, from the review comments: only
|
|
61
63
|
* comments by people in the approver lists (governance owners and rights) count; with no owner configured at all, only
|
|
62
64
|
* repository owners, members and collaborators (GitHub's author association). Only reviews of the current payload
|
|
63
|
-
* sha count; the suggestion's author never approves their own suggestion.
|
|
65
|
+
* sha count; the suggestion's author never approves their own suggestion. With `soloOwnerCanApproveBoth` and one
|
|
66
|
+
* owner holding both roles, that owner's approval covers design and tech.
|
|
64
67
|
*/
|
|
65
68
|
export declare function summarizeSuggestionApprovals(comments: readonly SuggestionCommentLike[], gov: SuggestionGovernance, opts: {
|
|
66
69
|
payloadSha: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.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",
|