@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.
@@ -1,4 +1,4 @@
1
- import { cr as tokenBump, aW as changeKind, L as LayeredTokenSet, aN 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, ah as ConfigError, _ as DEFAULT_TOKEN_PATHS, ag as globToRegExp, ae 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, a1 as readPreviewComment, aV as canShip, cz as whoCanShipSentence, ct as unreadableShipTeams, cb as soloApprover, aR as approverLists, O as tokensPath, a6 as NEEDED_BY_LABEL, K as selectTokenFiles, R as parseContrastChecks } from "./prod-branch-Bdx_2bRQ.js";
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
- for (let p = mParts.get(id)?.parent; p; p = mParts.get(p)?.parent) out.push(p);
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
- for (let a = p.parent; a; a = sParts.get(a)?.parent) if (pairs2.has(a)) return pairs2.get(a);
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 autoShip = (input.figmaPush?.scope === "token-values" || valuesArmed) && state === "open" && !input.merged_at && !input.exploration;
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
- return { ...summary, stale, ignored: [...ignored].filter((l) => !summary.approvers.includes(l)) };
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
- composeProposalBody as $,
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
- overrideComment as L,
5694
- overrideRefusedComment as M,
5695
- suggestionStateFromLabels as N,
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
- suggestionStatus as Q,
5771
+ suggestionStateFromLabels as Q,
5699
5772
  REQUESTS_BRANCH as R,
5700
5773
  SPEC_FIELDS as S,
5701
- composeRequestIssue as T,
5702
- EXPLORATION_NOTES_DIR as U,
5703
- isExplorationBranch as V,
5704
- diffLayered as W,
5705
- contrastDelta as X,
5706
- runLayeredContrast as Y,
5707
- layeredImpact as Z,
5708
- classifyLayered as _,
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
- createSuggestionOnGitHub as a0,
5712
- gitBlobSha as a1,
5713
- SUGGESTION_SCHEMA as a2,
5714
- branchWithJiraKey as a3,
5715
- titleWithJiraKey as a4,
5716
- figmaSpecPath as a5,
5717
- formatFigmaSpec as a6,
5718
- figmaDraftBrief as a7,
5719
- parseFigmaOrigin as a8,
5720
- figmaPushStatus as a9,
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
- parseFigmaSpec as aa,
5749
- FIGMA_SPEC_DIR as ab,
5750
- FROM_FIGMA_LABEL as ac,
5751
- withFigmaOrigin as ad,
5752
- WAITING_FOR_CLAUDE_LABEL as ae,
5753
- DRAFTED_BY_CLAUDE_LABEL as af,
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
- docsText as b$,
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
- SUGGESTION_REVIEW_MARK as b6,
5783
- SUGGESTION_STATE_LABELS as b7,
5784
- SUGGESTION_STATUS_LABEL as b8,
5785
- SUGGESTION_STATUS_LABELS as b9,
5786
- cleanDocs as bA,
5787
- clearSharedEtags as bB,
5788
- commitFileOnGitHub as bC,
5789
- componentContrastPairs as bD,
5790
- componentsUsingMotionToken as bE,
5791
- composeChangeset as bF,
5792
- composeSuggestionAppliedComment as bG,
5793
- composeSuggestionIssue as bH,
5794
- composeSuggestionReviewComment as bI,
5795
- continueDocsProposalOnGitHub as bJ,
5796
- contrastDeltaTable as bK,
5797
- countChanges as bL,
5798
- coverageSummary as bM,
5799
- cssColorToRgb as bN,
5800
- cssColorsToRgb as bO,
5801
- cssModuleClasses as bP,
5802
- declineComment as bQ,
5803
- declineReasonProblems as bR,
5804
- declineRequestOnGitHub as bS,
5805
- declineSuggestionOnGitHub as bT,
5806
- defaultDocsFooter as bU,
5807
- docsAuthorLine as bV,
5808
- docsFileText as bW,
5809
- docsProposal as bX,
5810
- docsSectionShapes as bY,
5811
- docsSlug as bZ,
5812
- docsSuggestionPayload as b_,
5813
- SUGGESTION_TOO_LARGE as ba,
5814
- StorybookIndexError as bb,
5815
- SuggestionError as bc,
5816
- TOKEN_REJECTED_MESSAGE as bd,
5817
- TOKEN_SETTINGS_URL as be,
5818
- TRIGGER_LABELS as bf,
5819
- UNRELEASED as bg,
5820
- acceptDocsDraft as bh,
5821
- acceptDocsText as bi,
5822
- allowedMergeMethods as bj,
5823
- anatomyLabel as bk,
5824
- appliedStatus as bl,
5825
- approvedSuggestionNumber as bm,
5826
- approvedSuggestionOnGitHub as bn,
5827
- assertSafeBranch as bo,
5828
- assignRequestOnGitHub as bp,
5829
- assignVersions as bq,
5830
- base64ToUtf8 as br,
5831
- branchVerdict as bs,
5832
- bridgeMcpInstallCommand as bt,
5833
- canOverride as bu,
5834
- canonicalJson as bv,
5835
- changeTable as bw,
5836
- changesetBump as bx,
5837
- classifyAuth as by,
5838
- claudeStage as bz,
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
- parseOverrideComment as c$,
5841
- draftChangeLine as c0,
5842
- draftPushDescription as c1,
5843
- draftRequestText as c2,
5844
- eligibleReviewers as c3,
5845
- evalCalc as c4,
5846
- explorationBranch as c5,
5847
- explorationRules as c6,
5848
- explorationShareMessage as c7,
5849
- explorationSlugFromBranch as c8,
5850
- fetchStorybookIndex as c9,
5851
- jiraKeyOf as cA,
5852
- joinRepoPath as cB,
5853
- linkRequestToExplorationOnGitHub as cC,
5854
- linkSuggestionPrOnGitHub as cD,
5855
- linkedPullsOf as cE,
5856
- loadRepoFiles as cF,
5857
- lookAgainReviewers as cG,
5858
- lowerFirstWord as cH,
5859
- markSuggestionsAppliedOnGitHub as cI,
5860
- markUsedTokens as cJ,
5861
- memoryEtagStore as cK,
5862
- memorySource as cL,
5863
- mergeGate as cM,
5864
- missingPermissionMessage as cN,
5865
- missingProse as cO,
5866
- modeLabel as cP,
5867
- needsDocsReview as cQ,
5868
- normalizeStorybookUrl as cR,
5869
- openPulls as cS,
5870
- overrideHolders as cT,
5871
- overrideReasonMin as cU,
5872
- overrideReasonProblem as cV,
5873
- ownerOverridePolicy as cW,
5874
- parseBoxShadow as cX,
5875
- parseChangesetText as cY,
5876
- parseJiraKey as cZ,
5877
- parseMeasuredSpecsFile as c_,
5878
- figmaCell as ca,
5879
- fileModes as cb,
5880
- filterHistory as cc,
5881
- findOpenDocsProposal as cd,
5882
- findOpenDocsProposalOnGitHub as ce,
5883
- firstParagraph as cf,
5884
- formatDocsJson as cg,
5885
- friendlyMessage as ch,
5886
- githubSuggestionWorkspace as ci,
5887
- groupStorybookComponents as cj,
5888
- hasOwnerApproval as ck,
5889
- hasSuggestionBlock as cl,
5890
- hasWriteAccess as cm,
5891
- iconComponentName as cn,
5892
- installationFor as co,
5893
- isActiveExploration as cp,
5894
- isAutomationPull as cq,
5895
- isDocsProposalBranch as cr,
5896
- isDraft as cs,
5897
- isGuardrailPath as ct,
5898
- isJiraKey as cu,
5899
- isMissingPermission as cv,
5900
- isPlatformRefusal as cw,
5901
- isReleasePull as cx,
5902
- isTokenRejected as cy,
5903
- jiraIssueFields as cz,
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
- summarizeSuggestionApprovals as d$,
5906
- parseRepo as d0,
5907
- parseStorybookIndex as d1,
5908
- parseStructureChange as d2,
5909
- parseSuggestionAppliedComment as d3,
5910
- parseSuggestionIssue as d4,
5911
- parseSuggestionReviewComment as d5,
5912
- parseTier as d6,
5913
- patchDocsJson as d7,
5914
- pendingApprovals as d8,
5915
- permissionLabel as d9,
5916
- sha256Hex as dA,
5917
- sharedTokenPrefix as dB,
5918
- shortVariant as dC,
5919
- shortVariants as dD,
5920
- specHash as dE,
5921
- specsUsage as dF,
5922
- stalenessStatus as dG,
5923
- storybookIframeUrl as dH,
5924
- storybookIndexUrls as dI,
5925
- storybookManagerUrl as dJ,
5926
- subjectTitle as dK,
5927
- suggestionAllowedRoots as dL,
5928
- suggestionAppliedComment as dM,
5929
- suggestionApplyTable as dN,
5930
- suggestionIsTokenValues as dO,
5931
- suggestionIssueTitle as dP,
5932
- suggestionKindFromLabels as dQ,
5933
- suggestionLabelChanges as dR,
5934
- suggestionLabels as dS,
5935
- suggestionPathProblems as dT,
5936
- suggestionPayloadSha as dU,
5937
- suggestionReviewState as dV,
5938
- suggestionShapeProblems as dW,
5939
- suggestionStalenessOnGitHub as dX,
5940
- suggestionStateLabel as dY,
5941
- suggestionSubject as dZ,
5942
- suggestionTouches as d_,
5943
- planRestore as da,
5944
- planRevert as db,
5945
- planSuggestionApply as dc,
5946
- planToJson as dd,
5947
- prNumberFromSubject as de,
5948
- prefillDocs as df,
5949
- proposeDocsOnGitHub as dg,
5950
- propsTable as dh,
5951
- pushChangeRows as di,
5952
- rateLimitMessage as dj,
5953
- releasePull as dk,
5954
- reopenEligibility as dl,
5955
- requestBrief as dm,
5956
- requestImagePath as dn,
5957
- requesterFirstName as dp,
5958
- requesterLine as dq,
5959
- requesterOf as dr,
5960
- requiredApprovals as ds,
5961
- requiredPermission as dt,
5962
- reviewQueue as du,
5963
- reviewStatusKind as dv,
5964
- reviewStatusLabel as dw,
5965
- reviewSuggestionOnGitHub as dx,
5966
- reviewersToAsk as dy,
5967
- sectionsNeedingReview as dz,
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
- syncSuggestionStateLabel as e0,
5970
- titleOf as e1,
5971
- toChangeSummary as e2,
5972
- tokenCssVar as e3,
5973
- tokenFingerprint as e4,
5974
- tokenHistory as e5,
5975
- tokenVariablePath as e6,
5976
- unsafePathProblem as e7,
5977
- utf8ToBase64 as e8,
5978
- validateComponentSpec as e9,
5979
- validateDocs as ea,
5980
- validateIntegrations as eb,
5981
- variantName as ec,
5982
- versionTimeline as ed,
5983
- webStorageEtagStore as ee,
5984
- withAuthorLine as ef,
5985
- withFigmaPushApprovals as eg,
5986
- withOutdated as eh,
5987
- withRequestExploration as ei,
5988
- withSrgbColors as ej,
5989
- withSuggestionApprovals as ek,
5990
- withTokenValueApprovals as el,
5991
- withoutJiraKey as em,
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-m0Tc603o.js.map
6093
+ //# sourceMappingURL=repo-source-CshjjC7x.js.map