@bridge-ds/core 0.19.0 → 0.20.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/LICENSE +17 -0
- package/bridge.config.schema.json +5 -0
- package/dist/audit/index.js +3 -3
- package/dist/config.d.ts +5 -0
- package/dist/fidelity.d.ts +12 -1
- package/dist/figma-fix-run.d.ts +103 -0
- package/dist/gap-case.d.ts +1 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +741 -317
- package/dist/index.js.map +1 -1
- package/dist/measure-location.d.ts +42 -0
- package/dist/measure-workflow.d.ts +48 -0
- package/dist/measured-only.d.ts +2 -0
- package/dist/node/index.js +11 -8
- package/dist/node/index.js.map +1 -1
- package/dist/{prod-branch-Bdx_2bRQ.js → prod-branch-CJZwMfVD.js} +61 -59
- package/dist/prod-branch-CJZwMfVD.js.map +1 -0
- package/dist/repo-model.d.ts +2 -0
- package/dist/{repo-source-m0Tc603o.js → repo-source-CshjjC7x.js} +323 -244
- package/dist/repo-source-CshjjC7x.js.map +1 -0
- package/dist/{report-DFPKygfk.js → report-CE-jHAuw.js} +2 -2
- package/dist/{report-DFPKygfk.js.map → report-CE-jHAuw.js.map} +1 -1
- package/dist/review-gate.d.ts +6 -0
- package/dist/suggestion-review.d.ts +43 -2
- package/dist/suggestions-github.d.ts +12 -1
- package/dist/tier1-publish.d.ts +48 -0
- package/package.json +1 -1
- package/dist/prod-branch-Bdx_2bRQ.js.map +0 -1
- package/dist/repo-source-m0Tc603o.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cr as tokenBump, aW as changeKind, L as LayeredTokenSet,
|
|
1
|
+
import { cr as tokenBump, aW as changeKind, L as LayeredTokenSet, aO as aliasOf, c4 as rgbaToDtcg, bu as hexToRgba, w as parseTokenFile, q as emptyTokenFile, s as serializeTokenFile, C as moveToken, r as removeToken, bx as inheritedTypeAt, u as upsertToken, H as readTokenAt, b0 as comboKey, c3 as renderedColor, b8 as contrastRatio, z as rgbaToHex, U as classifyRisk, bh as figmaPushNextLine, W as RISK_LABELS, bi as figmaPushTierLabel, V as CONFIG_FILE, N as loadConfig, ai as ConfigError, $ as DEFAULT_TOKEN_PATHS, ah as globToRegExp, af as slugify, Q as validateLayered, bP as parseJson, c8 as serializeJson, bU as plainEqual, cq as toPlain, br as getEntry, bp as fromPlain, m as modeDisplayName, A as formatValue, X as previewLinks, a2 as readPreviewComment, aV as canShip, cz as whoCanShipSentence, ct as unreadableShipTeams, cb as soloApprover, aS as approverLists, O as tokensPath, a7 as NEEDED_BY_LABEL, K as selectTokenFiles, R as parseContrastChecks } from "./prod-branch-CJZwMfVD.js";
|
|
2
2
|
function changesetBump(changes) {
|
|
3
3
|
return tokenBump(changes) ?? "patch";
|
|
4
4
|
}
|
|
@@ -1026,6 +1026,7 @@ class GitHubClient {
|
|
|
1026
1026
|
const q = ref ? `?ref=${encodeURIComponent(ref)}` : "";
|
|
1027
1027
|
const r = await this.request("GET", `${this.repoPath}/contents/${encodeRef(path)}${q}`);
|
|
1028
1028
|
if (r.type !== "file") return void 0;
|
|
1029
|
+
if (r.encoding === "none" || !r.content && (r.size ?? 0) > 0) return await this.request("GET", `${this.repoPath}/contents/${encodeRef(path)}${q}`, void 0, true, { accept: ACCEPT_RAW, text: true });
|
|
1029
1030
|
if (r.encoding === "base64" && r.content !== void 0) return base64ToUtf8(r.content);
|
|
1030
1031
|
return r.content;
|
|
1031
1032
|
} catch (err) {
|
|
@@ -3166,11 +3167,19 @@ function pairParts(staticParts, measured, o = {}) {
|
|
|
3166
3167
|
};
|
|
3167
3168
|
const ancestors = (id) => {
|
|
3168
3169
|
const out = [];
|
|
3169
|
-
|
|
3170
|
+
const seen = /* @__PURE__ */ new Set([id]);
|
|
3171
|
+
for (let p = mParts.get(id)?.parent; p && !seen.has(p); p = mParts.get(p)?.parent) {
|
|
3172
|
+
seen.add(p);
|
|
3173
|
+
out.push(p);
|
|
3174
|
+
}
|
|
3170
3175
|
return out;
|
|
3171
3176
|
};
|
|
3172
3177
|
const pairedAncestor = (p) => {
|
|
3173
|
-
|
|
3178
|
+
const seen = /* @__PURE__ */ new Set([p.id]);
|
|
3179
|
+
for (let a = p.parent; a && !seen.has(a); a = sParts.get(a)?.parent) {
|
|
3180
|
+
if (pairs2.has(a)) return pairs2.get(a);
|
|
3181
|
+
seen.add(a);
|
|
3182
|
+
}
|
|
3174
3183
|
return void 0;
|
|
3175
3184
|
};
|
|
3176
3185
|
const best = (p, cands) => {
|
|
@@ -3883,7 +3892,8 @@ function branchVerdict(input) {
|
|
|
3883
3892
|
const status = reviewStatusKind({ state, draft, merged_at: input.merged_at, ci: input.ci, approvals, tier: input.tier, mergeable: input.mergeable });
|
|
3884
3893
|
const gate = input.ci && approvals ? mergeGate({ tier: input.tier, ci: input.ci, approvals, draft, mergeable: input.mergeable, state, merged_at: input.merged_at, viewer: input.viewer, override, exploration: input.exploration, ship: input.ship }) : null;
|
|
3885
3894
|
const valuesArmed = Boolean(input.autoMerge && approvals?.valuesOnly && approvals.design);
|
|
3886
|
-
const
|
|
3895
|
+
const tier1Armed = Boolean(input.tier1Published && input.autoMerge && input.tier === 1 && input.ci?.state !== "fail");
|
|
3896
|
+
const autoShip = (input.figmaPush?.scope === "token-values" || valuesArmed || tier1Armed) && state === "open" && !input.merged_at && !input.exploration;
|
|
3887
3897
|
const lookAgain = status === "changes-requested" ? [...input.lookAgain ?? []] : [];
|
|
3888
3898
|
return { approvals, override, gate, status, label: reviewStatusLabel(status, lookAgain), lookAgain, autoShip };
|
|
3889
3899
|
}
|
|
@@ -4105,6 +4115,46 @@ function parseSuggestionAppliedComment(body) {
|
|
|
4105
4115
|
return null;
|
|
4106
4116
|
}
|
|
4107
4117
|
}
|
|
4118
|
+
const SUGGESTION_OVERRIDE_MARK = "bridge-suggestion-override";
|
|
4119
|
+
function composeSuggestionOverrideComment(r) {
|
|
4120
|
+
const audit = overrideComment(r.login, r.reason, r.missing).replace(/ Merged from Bridge\.$/, " Approved as owner from Bridge.");
|
|
4121
|
+
const record = { payloadSha: r.payloadSha, login: r.login.replace(/^@/, "").toLowerCase(), missing: r.missing };
|
|
4122
|
+
return [audit, "", `<sub>Applies to version \`${r.payloadSha.slice(0, 7)}\` of this suggestion.</sub>`, "", `<!-- ${SUGGESTION_OVERRIDE_MARK} ${JSON.stringify(record)} -->`].join("\n");
|
|
4123
|
+
}
|
|
4124
|
+
function parseSuggestionOverrideComment(body) {
|
|
4125
|
+
const text = (body ?? "").trim();
|
|
4126
|
+
if (!text.startsWith(OVERRIDE_HEADING)) return null;
|
|
4127
|
+
const m = new RegExp(`<!-- ${SUGGESTION_OVERRIDE_MARK} (\\{[^\\n]*?\\}) -->`).exec(text);
|
|
4128
|
+
if (!m) return null;
|
|
4129
|
+
try {
|
|
4130
|
+
const r = JSON.parse(m[1]);
|
|
4131
|
+
if (typeof r.payloadSha !== "string" || typeof r.login !== "string") return null;
|
|
4132
|
+
const why = /Owner override by @[\w-]+: ([\s\S]*?)\. Missing:/.exec(text);
|
|
4133
|
+
return { login: r.login, reason: why?.[1] ?? "", missing: Array.isArray(r.missing) ? r.missing.map(String) : [], payloadSha: r.payloadSha };
|
|
4134
|
+
} catch {
|
|
4135
|
+
return null;
|
|
4136
|
+
}
|
|
4137
|
+
}
|
|
4138
|
+
function suggestionOverrideProblem(x) {
|
|
4139
|
+
const lists = approverLists(x.gov.owners, x.gov.rights ?? null, x.gov.teams);
|
|
4140
|
+
const holders = overrideHolders(x.gov.override, lists).map(norm);
|
|
4141
|
+
if (!x.viewer || !holders.includes(norm(x.viewer))) return "Only an owner the review rules allow to use the owner override can approve as owner.";
|
|
4142
|
+
if (norm(x.viewer) !== norm(x.author)) return "The owner override is for your own suggestion: approve this one the usual way.";
|
|
4143
|
+
const others = eligibleReviewers("approval", { owners: lists, author: x.author });
|
|
4144
|
+
if (others.open || others.logins.length) return "Someone else can review it: ask them instead.";
|
|
4145
|
+
return null;
|
|
4146
|
+
}
|
|
4147
|
+
function suggestionOverrideOf(comments, gov, opts) {
|
|
4148
|
+
if (!gov.override || !opts.author) return null;
|
|
4149
|
+
for (const c of [...comments].reverse()) {
|
|
4150
|
+
const r = parseSuggestionOverrideComment(c.body);
|
|
4151
|
+
if (!r || r.payloadSha !== opts.payloadSha || !c.author || norm(c.author) !== norm(r.login)) continue;
|
|
4152
|
+
if (suggestionOverrideProblem({ viewer: c.author, author: opts.author, gov })) continue;
|
|
4153
|
+
if (overrideReasonProblem(r.reason, gov.override)) continue;
|
|
4154
|
+
return r;
|
|
4155
|
+
}
|
|
4156
|
+
return null;
|
|
4157
|
+
}
|
|
4108
4158
|
const norm = (l) => l.trim().replace(/^@/, "").toLowerCase();
|
|
4109
4159
|
const COLLABORATOR = ["OWNER", "MEMBER", "COLLABORATOR"];
|
|
4110
4160
|
function summarizeSuggestionApprovals(comments, gov, opts) {
|
|
@@ -4136,7 +4186,9 @@ function summarizeSuggestionApprovals(comments, gov, opts) {
|
|
|
4136
4186
|
});
|
|
4137
4187
|
const summary = withTokenValueApprovals(summarizeApprovals(reviews, lists, opts.author ?? void 0, { soloOwnerCanApproveBoth: gov.soloOwnerCanApproveBoth }), opts.valuesOnly);
|
|
4138
4188
|
const stale = [...latestOld.keys()].filter((l) => !summary.approvers.includes(l) && !summary.changesRequested.includes(l));
|
|
4139
|
-
|
|
4189
|
+
const out = { ...summary, stale, ignored: [...ignored].filter((l) => !summary.approvers.includes(l)) };
|
|
4190
|
+
const override = summary.changesRequested.length ? null : suggestionOverrideOf(comments, gov, { payloadSha: opts.payloadSha, author: opts.author });
|
|
4191
|
+
return override ? { ...out, design: true, tech: true, owner: true, override } : out;
|
|
4140
4192
|
}
|
|
4141
4193
|
function suggestionReviewState(tier, approvals) {
|
|
4142
4194
|
if (approvals.changesRequested.length) return "changes-requested";
|
|
@@ -4952,7 +5004,7 @@ async function planSuggestionApply(input) {
|
|
|
4952
5004
|
for (const p of new Set(targets)) if (await ws.isSymlink(p)) links.push(`"${p}" is a symbolic link (or inside one): Bridge never writes through links.`);
|
|
4953
5005
|
if (links.length) return out("refused", "Not applied: the suggestion writes through a symbolic link.", { problems: links });
|
|
4954
5006
|
}
|
|
4955
|
-
const governance = input.governance ?? { owners: config.governance.owners, rights: config.governance.rights ?? null, soloOwnerCanApproveBoth: config.governance.soloOwnerCanApproveBoth };
|
|
5007
|
+
const governance = input.governance ?? { owners: config.governance.owners, rights: config.governance.rights ?? null, soloOwnerCanApproveBoth: config.governance.soloOwnerCanApproveBoth, override: config.governance.override ?? null };
|
|
4956
5008
|
const approvals = summarizeSuggestionApprovals(input.comments, governance, { payloadSha: parsed.sha, author: input.author, valuesOnly: suggestionIsTokenValues(payload) });
|
|
4957
5009
|
const review = suggestionReviewState(payload.tier.tier, approvals);
|
|
4958
5010
|
const missing = pendingApprovals(payload.tier.tier, approvals);
|
|
@@ -5248,6 +5300,27 @@ async function reviewSuggestionOnGitHub(gh, n, input, gov) {
|
|
|
5248
5300
|
if (labelWarning) warnings.push(labelWarning);
|
|
5249
5301
|
return { commentUrl: posted.url, payloadSha: sha, status, counts, warnings };
|
|
5250
5302
|
}
|
|
5303
|
+
async function overrideSuggestionOnGitHub(gh, n, input, gov) {
|
|
5304
|
+
if (!gov.override) throw new GitHubError(422, "The review rules allow no owner override.");
|
|
5305
|
+
const before = await getSuggestionOnGitHub(gh, n, gov);
|
|
5306
|
+
if (!before.parsed.ok) throw new GitHubError(422, `#${n} cannot be approved: ${before.parsed.message}`);
|
|
5307
|
+
if (before.issue.state === "closed") throw new GitHubError(422, `#${n} is closed.`);
|
|
5308
|
+
const sha = before.parsed.sha;
|
|
5309
|
+
if (input.payloadSha && input.payloadSha !== sha) throw new GitHubError(409, `#${n} changed since you opened it. Reload it and approve the new version.`);
|
|
5310
|
+
const by = input.by ?? (await gh.getViewer().catch(() => ({ login: "" }))).login;
|
|
5311
|
+
const problem = suggestionOverrideProblem({ viewer: by, author: before.issue.author, gov }) ?? overrideReasonProblem(input.reason, gov.override);
|
|
5312
|
+
if (problem) throw new GitHubError(422, problem);
|
|
5313
|
+
if (before.approvals?.changesRequested.length) throw new GitHubError(422, `Changes were asked for on #${n}: the owner override covers missing approvals only.`);
|
|
5314
|
+
const missing = pendingApprovals(before.parsed.payload.tier.tier, before.approvals ?? { approvers: [], changesRequested: [], design: false, tech: false }).map((r) => r === "design" ? "design approval" : r === "tech" ? "tech approval" : "approval");
|
|
5315
|
+
const posted = await gh.createIssueComment(n, composeSuggestionOverrideComment({ login: by, reason: input.reason, missing, payloadSha: sha }));
|
|
5316
|
+
const after = await getSuggestionOnGitHub(gh, n, gov);
|
|
5317
|
+
const counts = Boolean(after.approvals?.override);
|
|
5318
|
+
const warnings = [];
|
|
5319
|
+
if (!counts) warnings.push("The owner override is posted but does not count: check the owners and the override in bridge.config.json.");
|
|
5320
|
+
const labelWarning = await syncSuggestionStateLabel(gh, n, before.issue.labels, after.status);
|
|
5321
|
+
if (labelWarning) warnings.push(labelWarning);
|
|
5322
|
+
return { commentUrl: posted.url, payloadSha: sha, status: after.status, counts, warnings };
|
|
5323
|
+
}
|
|
5251
5324
|
async function linkSuggestionPrOnGitHub(gh, n, link) {
|
|
5252
5325
|
if (!link.pr && !link.branch && !link.commit) throw new GitHubError(422, "Say where it is applied: a pull request number, a branch or a commit.");
|
|
5253
5326
|
const issue = await gh.getIssue(n);
|
|
@@ -5678,7 +5751,7 @@ async function readRepoTexts(source, paths, concurrency = 4, onError = (_path, e
|
|
|
5678
5751
|
return out;
|
|
5679
5752
|
}
|
|
5680
5753
|
export {
|
|
5681
|
-
|
|
5754
|
+
classifyLayered as $,
|
|
5682
5755
|
explorationPrTitle as A,
|
|
5683
5756
|
explorationPrBody as B,
|
|
5684
5757
|
compareSpecToMeasured as C,
|
|
@@ -5690,34 +5763,34 @@ export {
|
|
|
5690
5763
|
pairParts as I,
|
|
5691
5764
|
COLOR_FIELDS as J,
|
|
5692
5765
|
hashSpec as K,
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5766
|
+
DRAFTED_BY_CLAUDE_LABEL as L,
|
|
5767
|
+
overrideComment as M,
|
|
5768
|
+
overrideRefusedComment as N,
|
|
5696
5769
|
OVERRIDE_HEADING as O,
|
|
5697
5770
|
PROSE_KEYS as P,
|
|
5698
|
-
|
|
5771
|
+
suggestionStateFromLabels as Q,
|
|
5699
5772
|
REQUESTS_BRANCH as R,
|
|
5700
5773
|
SPEC_FIELDS as S,
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5774
|
+
suggestionStatus as T,
|
|
5775
|
+
composeRequestIssue as U,
|
|
5776
|
+
EXPLORATION_NOTES_DIR as V,
|
|
5777
|
+
isExplorationBranch as W,
|
|
5778
|
+
diffLayered as X,
|
|
5779
|
+
contrastDelta as Y,
|
|
5780
|
+
runLayeredContrast as Z,
|
|
5781
|
+
layeredImpact as _,
|
|
5709
5782
|
parseChangelog as a,
|
|
5710
5783
|
REVIEW_STATUS_ORDER as a$,
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5784
|
+
composeProposalBody as a0,
|
|
5785
|
+
createSuggestionOnGitHub as a1,
|
|
5786
|
+
gitBlobSha as a2,
|
|
5787
|
+
SUGGESTION_SCHEMA as a3,
|
|
5788
|
+
branchWithJiraKey as a4,
|
|
5789
|
+
titleWithJiraKey as a5,
|
|
5790
|
+
figmaSpecPath as a6,
|
|
5791
|
+
formatFigmaSpec as a7,
|
|
5792
|
+
figmaDraftBrief as a8,
|
|
5793
|
+
parseFigmaOrigin as a9,
|
|
5721
5794
|
requestIssueTitle as aA,
|
|
5722
5795
|
pullState as aB,
|
|
5723
5796
|
summarizeCi as aC,
|
|
@@ -5745,12 +5818,12 @@ export {
|
|
|
5745
5818
|
REDUCED_MOTION_NOTE as aY,
|
|
5746
5819
|
REQUEST_STATUS_LABEL as aZ,
|
|
5747
5820
|
REVIEW_STATUS_LABEL as a_,
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5821
|
+
figmaPushStatus as aa,
|
|
5822
|
+
parseFigmaSpec as ab,
|
|
5823
|
+
FIGMA_SPEC_DIR as ac,
|
|
5824
|
+
FROM_FIGMA_LABEL as ad,
|
|
5825
|
+
withFigmaOrigin as ae,
|
|
5826
|
+
WAITING_FOR_CLAUDE_LABEL as af,
|
|
5754
5827
|
planComponentPush as ag,
|
|
5755
5828
|
figmaOriginSection as ah,
|
|
5756
5829
|
figmaBranchTitle as ai,
|
|
@@ -5772,223 +5845,229 @@ export {
|
|
|
5772
5845
|
getSuggestionOnGitHub as ay,
|
|
5773
5846
|
closingIssueNumbers as az,
|
|
5774
5847
|
buildReport as b,
|
|
5775
|
-
|
|
5848
|
+
docsSlug as b$,
|
|
5776
5849
|
SUGGESTION_APPLIED_MARK as b0,
|
|
5777
5850
|
SUGGESTION_APPLY_EXIT as b1,
|
|
5778
5851
|
SUGGESTION_FINAL_LABELS as b2,
|
|
5779
5852
|
SUGGESTION_KINDS as b3,
|
|
5780
5853
|
SUGGESTION_LABEL as b4,
|
|
5781
5854
|
SUGGESTION_LIMITS as b5,
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5855
|
+
SUGGESTION_OVERRIDE_MARK as b6,
|
|
5856
|
+
SUGGESTION_REVIEW_MARK as b7,
|
|
5857
|
+
SUGGESTION_STATE_LABELS as b8,
|
|
5858
|
+
SUGGESTION_STATUS_LABEL as b9,
|
|
5859
|
+
claudeStage as bA,
|
|
5860
|
+
cleanDocs as bB,
|
|
5861
|
+
clearSharedEtags as bC,
|
|
5862
|
+
commitFileOnGitHub as bD,
|
|
5863
|
+
componentContrastPairs as bE,
|
|
5864
|
+
componentsUsingMotionToken as bF,
|
|
5865
|
+
composeChangeset as bG,
|
|
5866
|
+
composeSuggestionAppliedComment as bH,
|
|
5867
|
+
composeSuggestionIssue as bI,
|
|
5868
|
+
composeSuggestionOverrideComment as bJ,
|
|
5869
|
+
composeSuggestionReviewComment as bK,
|
|
5870
|
+
continueDocsProposalOnGitHub as bL,
|
|
5871
|
+
contrastDeltaTable as bM,
|
|
5872
|
+
countChanges as bN,
|
|
5873
|
+
coverageSummary as bO,
|
|
5874
|
+
cssColorToRgb as bP,
|
|
5875
|
+
cssColorsToRgb as bQ,
|
|
5876
|
+
cssModuleClasses as bR,
|
|
5877
|
+
declineComment as bS,
|
|
5878
|
+
declineReasonProblems as bT,
|
|
5879
|
+
declineRequestOnGitHub as bU,
|
|
5880
|
+
declineSuggestionOnGitHub as bV,
|
|
5881
|
+
defaultDocsFooter as bW,
|
|
5882
|
+
docsAuthorLine as bX,
|
|
5883
|
+
docsFileText as bY,
|
|
5884
|
+
docsProposal as bZ,
|
|
5885
|
+
docsSectionShapes as b_,
|
|
5886
|
+
SUGGESTION_STATUS_LABELS as ba,
|
|
5887
|
+
SUGGESTION_TOO_LARGE as bb,
|
|
5888
|
+
StorybookIndexError as bc,
|
|
5889
|
+
SuggestionError as bd,
|
|
5890
|
+
TOKEN_REJECTED_MESSAGE as be,
|
|
5891
|
+
TOKEN_SETTINGS_URL as bf,
|
|
5892
|
+
TRIGGER_LABELS as bg,
|
|
5893
|
+
UNRELEASED as bh,
|
|
5894
|
+
acceptDocsDraft as bi,
|
|
5895
|
+
acceptDocsText as bj,
|
|
5896
|
+
allowedMergeMethods as bk,
|
|
5897
|
+
anatomyLabel as bl,
|
|
5898
|
+
appliedStatus as bm,
|
|
5899
|
+
approvedSuggestionNumber as bn,
|
|
5900
|
+
approvedSuggestionOnGitHub as bo,
|
|
5901
|
+
assertSafeBranch as bp,
|
|
5902
|
+
assignRequestOnGitHub as bq,
|
|
5903
|
+
assignVersions as br,
|
|
5904
|
+
base64ToUtf8 as bs,
|
|
5905
|
+
branchVerdict as bt,
|
|
5906
|
+
bridgeMcpInstallCommand as bu,
|
|
5907
|
+
canOverride as bv,
|
|
5908
|
+
canonicalJson as bw,
|
|
5909
|
+
changeTable as bx,
|
|
5910
|
+
changesetBump as by,
|
|
5911
|
+
classifyAuth as bz,
|
|
5839
5912
|
collectHistory as c,
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5913
|
+
parseChangesetText as c$,
|
|
5914
|
+
docsSuggestionPayload as c0,
|
|
5915
|
+
docsText as c1,
|
|
5916
|
+
draftChangeLine as c2,
|
|
5917
|
+
draftPushDescription as c3,
|
|
5918
|
+
draftRequestText as c4,
|
|
5919
|
+
eligibleReviewers as c5,
|
|
5920
|
+
evalCalc as c6,
|
|
5921
|
+
explorationBranch as c7,
|
|
5922
|
+
explorationRules as c8,
|
|
5923
|
+
explorationShareMessage as c9,
|
|
5924
|
+
isTokenRejected as cA,
|
|
5925
|
+
jiraIssueFields as cB,
|
|
5926
|
+
jiraKeyOf as cC,
|
|
5927
|
+
joinRepoPath as cD,
|
|
5928
|
+
linkRequestToExplorationOnGitHub as cE,
|
|
5929
|
+
linkSuggestionPrOnGitHub as cF,
|
|
5930
|
+
linkedPullsOf as cG,
|
|
5931
|
+
loadRepoFiles as cH,
|
|
5932
|
+
lookAgainReviewers as cI,
|
|
5933
|
+
lowerFirstWord as cJ,
|
|
5934
|
+
markSuggestionsAppliedOnGitHub as cK,
|
|
5935
|
+
markUsedTokens as cL,
|
|
5936
|
+
memoryEtagStore as cM,
|
|
5937
|
+
memorySource as cN,
|
|
5938
|
+
mergeGate as cO,
|
|
5939
|
+
missingPermissionMessage as cP,
|
|
5940
|
+
missingProse as cQ,
|
|
5941
|
+
modeLabel as cR,
|
|
5942
|
+
needsDocsReview as cS,
|
|
5943
|
+
normalizeStorybookUrl as cT,
|
|
5944
|
+
openPulls as cU,
|
|
5945
|
+
overrideHolders as cV,
|
|
5946
|
+
overrideReasonMin as cW,
|
|
5947
|
+
overrideReasonProblem as cX,
|
|
5948
|
+
overrideSuggestionOnGitHub as cY,
|
|
5949
|
+
ownerOverridePolicy as cZ,
|
|
5950
|
+
parseBoxShadow as c_,
|
|
5951
|
+
explorationSlugFromBranch as ca,
|
|
5952
|
+
fetchStorybookIndex as cb,
|
|
5953
|
+
figmaCell as cc,
|
|
5954
|
+
fileModes as cd,
|
|
5955
|
+
filterHistory as ce,
|
|
5956
|
+
findOpenDocsProposal as cf,
|
|
5957
|
+
findOpenDocsProposalOnGitHub as cg,
|
|
5958
|
+
firstParagraph as ch,
|
|
5959
|
+
formatDocsJson as ci,
|
|
5960
|
+
friendlyMessage as cj,
|
|
5961
|
+
githubSuggestionWorkspace as ck,
|
|
5962
|
+
groupStorybookComponents as cl,
|
|
5963
|
+
hasOwnerApproval as cm,
|
|
5964
|
+
hasSuggestionBlock as cn,
|
|
5965
|
+
hasWriteAccess as co,
|
|
5966
|
+
iconComponentName as cp,
|
|
5967
|
+
installationFor as cq,
|
|
5968
|
+
isActiveExploration as cr,
|
|
5969
|
+
isAutomationPull as cs,
|
|
5970
|
+
isDocsProposalBranch as ct,
|
|
5971
|
+
isDraft as cu,
|
|
5972
|
+
isGuardrailPath as cv,
|
|
5973
|
+
isJiraKey as cw,
|
|
5974
|
+
isMissingPermission as cx,
|
|
5975
|
+
isPlatformRefusal as cy,
|
|
5976
|
+
isReleasePull as cz,
|
|
5904
5977
|
applyTokenEdits as d,
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5978
|
+
suggestionReviewState as d$,
|
|
5979
|
+
parseJiraKey as d0,
|
|
5980
|
+
parseMeasuredSpecsFile as d1,
|
|
5981
|
+
parseOverrideComment as d2,
|
|
5982
|
+
parseRepo as d3,
|
|
5983
|
+
parseStorybookIndex as d4,
|
|
5984
|
+
parseStructureChange as d5,
|
|
5985
|
+
parseSuggestionAppliedComment as d6,
|
|
5986
|
+
parseSuggestionIssue as d7,
|
|
5987
|
+
parseSuggestionOverrideComment as d8,
|
|
5988
|
+
parseSuggestionReviewComment as d9,
|
|
5989
|
+
reviewStatusLabel as dA,
|
|
5990
|
+
reviewSuggestionOnGitHub as dB,
|
|
5991
|
+
reviewersToAsk as dC,
|
|
5992
|
+
sectionsNeedingReview as dD,
|
|
5993
|
+
sha256Hex as dE,
|
|
5994
|
+
sharedTokenPrefix as dF,
|
|
5995
|
+
shortVariant as dG,
|
|
5996
|
+
shortVariants as dH,
|
|
5997
|
+
specHash as dI,
|
|
5998
|
+
specsUsage as dJ,
|
|
5999
|
+
stalenessStatus as dK,
|
|
6000
|
+
storybookIframeUrl as dL,
|
|
6001
|
+
storybookIndexUrls as dM,
|
|
6002
|
+
storybookManagerUrl as dN,
|
|
6003
|
+
subjectTitle as dO,
|
|
6004
|
+
suggestionAllowedRoots as dP,
|
|
6005
|
+
suggestionAppliedComment as dQ,
|
|
6006
|
+
suggestionApplyTable as dR,
|
|
6007
|
+
suggestionIsTokenValues as dS,
|
|
6008
|
+
suggestionIssueTitle as dT,
|
|
6009
|
+
suggestionKindFromLabels as dU,
|
|
6010
|
+
suggestionLabelChanges as dV,
|
|
6011
|
+
suggestionLabels as dW,
|
|
6012
|
+
suggestionOverrideOf as dX,
|
|
6013
|
+
suggestionOverrideProblem as dY,
|
|
6014
|
+
suggestionPathProblems as dZ,
|
|
6015
|
+
suggestionPayloadSha as d_,
|
|
6016
|
+
parseTier as da,
|
|
6017
|
+
patchDocsJson as db,
|
|
6018
|
+
pendingApprovals as dc,
|
|
6019
|
+
permissionLabel as dd,
|
|
6020
|
+
planRestore as de,
|
|
6021
|
+
planRevert as df,
|
|
6022
|
+
planSuggestionApply as dg,
|
|
6023
|
+
planToJson as dh,
|
|
6024
|
+
prNumberFromSubject as di,
|
|
6025
|
+
prefillDocs as dj,
|
|
6026
|
+
proposeDocsOnGitHub as dk,
|
|
6027
|
+
propsTable as dl,
|
|
6028
|
+
pushChangeRows as dm,
|
|
6029
|
+
rateLimitMessage as dn,
|
|
6030
|
+
releasePull as dp,
|
|
6031
|
+
reopenEligibility as dq,
|
|
6032
|
+
requestBrief as dr,
|
|
6033
|
+
requestImagePath as ds,
|
|
6034
|
+
requesterFirstName as dt,
|
|
6035
|
+
requesterLine as du,
|
|
6036
|
+
requesterOf as dv,
|
|
6037
|
+
requiredApprovals as dw,
|
|
6038
|
+
requiredPermission as dx,
|
|
6039
|
+
reviewQueue as dy,
|
|
6040
|
+
reviewStatusKind as dz,
|
|
5968
6041
|
buildHistoryEntry as e,
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
6042
|
+
suggestionShapeProblems as e0,
|
|
6043
|
+
suggestionStalenessOnGitHub as e1,
|
|
6044
|
+
suggestionStateLabel as e2,
|
|
6045
|
+
suggestionSubject as e3,
|
|
6046
|
+
suggestionTouches as e4,
|
|
6047
|
+
summarizeSuggestionApprovals as e5,
|
|
6048
|
+
syncSuggestionStateLabel as e6,
|
|
6049
|
+
titleOf as e7,
|
|
6050
|
+
toChangeSummary as e8,
|
|
6051
|
+
tokenCssVar as e9,
|
|
6052
|
+
tokenFingerprint as ea,
|
|
6053
|
+
tokenHistory as eb,
|
|
6054
|
+
tokenVariablePath as ec,
|
|
6055
|
+
unsafePathProblem as ed,
|
|
6056
|
+
utf8ToBase64 as ee,
|
|
6057
|
+
validateComponentSpec as ef,
|
|
6058
|
+
validateDocs as eg,
|
|
6059
|
+
validateIntegrations as eh,
|
|
6060
|
+
variantName as ei,
|
|
6061
|
+
versionTimeline as ej,
|
|
6062
|
+
webStorageEtagStore as ek,
|
|
6063
|
+
withAuthorLine as el,
|
|
6064
|
+
withFigmaPushApprovals as em,
|
|
6065
|
+
withOutdated as en,
|
|
6066
|
+
withRequestExploration as eo,
|
|
6067
|
+
withSrgbColors as ep,
|
|
6068
|
+
withSuggestionApprovals as eq,
|
|
6069
|
+
withTokenValueApprovals as er,
|
|
6070
|
+
withoutJiraKey as es,
|
|
5992
6071
|
coerceValue as f,
|
|
5993
6072
|
checkLayeredPair as g,
|
|
5994
6073
|
formatChangeset as h,
|
|
@@ -6011,4 +6090,4 @@ export {
|
|
|
6011
6090
|
explorationNote as y,
|
|
6012
6091
|
explorationNotePath as z
|
|
6013
6092
|
};
|
|
6014
|
-
//# sourceMappingURL=repo-source-
|
|
6093
|
+
//# sourceMappingURL=repo-source-CshjjC7x.js.map
|