@vite-hub/forge 0.7.0 → 0.9.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.
Files changed (26) hide show
  1. package/README.md +8 -2
  2. package/dist/build/node.js +0 -6
  3. package/dist/{webhooks-Bc6QhmI8-CvF2iFBp.js → define-C9xZZNVR-C-oojQRP.js} +3 -997
  4. package/dist/{definition-BQFdu9ti-BURTyX81.js → definition-BQFdu9ti-BZgR-gkB.js} +5 -4
  5. package/dist/{github-Csy_qzZc.js → definition-s83gxg2p-JwDgFji9.js} +26 -28
  6. package/dist/{events-BL0zcgMf-DGySmhNt.js → events-BL0zcgMf-Exs7JLX1.js} +4 -2
  7. package/dist/{events-DDdJnmD2-BhNdO8U_.js → events-DDdJnmD2-CdPFePvp.js} +4 -3
  8. package/dist/{events-DHqSJ5KI-DfFbbwBb.js → events-DHqSJ5KI-mRtn-qQ0.js} +4 -3
  9. package/dist/{events-DXE-Ul2S-U2BH_jTW.js → events-DXE-Ul2S-BEUw4sQF.js} +4 -3
  10. package/dist/{feed-B1OiHFg0-a2dzl1Va.js → feed-B1OiHFg0-ppQHqkxG.js} +4 -2
  11. package/dist/{feed-DROLF1tb-A1eZev0R.js → feed-DROLF1tb-CMAanXw8.js} +4 -2
  12. package/dist/{feed-iWegqepj-id4yPYnY.js → feed-iWegqepj-DKBLqhvD.js} +4 -2
  13. package/dist/{forgejo-aZiaqKRW.js → forgejo-Deckk49p.js} +2 -2
  14. package/dist/{gitea-CCZ3fS7H.js → gitea-ChQKeRrf.js} +2 -2
  15. package/dist/{gitee-CKt4pEC0-dsy0hiLG.js → gitee-CKt4pEC0-BuzC1PrM.js} +1 -1
  16. package/dist/{gitlab-AAJN-eVR.js → gitlab-CzCikZzN.js} +5 -4
  17. package/dist/{graphql-DxRA9BGO-CiA7HWVp.js → graphql-DxRA9BGO-Cy511t8-.js} +2 -1
  18. package/dist/index.d.ts +50 -8
  19. package/dist/index.js +187 -20
  20. package/dist/kit-CrquHPqr.js +4 -0
  21. package/dist/{templates-0m5QBVIh-Bop0TOo9.js → templates-0m5QBVIh-C1DcQ_yo.js} +1 -2
  22. package/dist/utils-DEwhctg5-BM3AMnSs.js +1213 -0
  23. package/dist/webhooks-Bc6QhmI8-CgoCnwj1.js +71 -0
  24. package/package.json +2 -2
  25. package/dist/kit-UEdJKGws.js +0 -3
  26. package/dist/model-Biiu1CfI-CVLamGai.js +0 -288
@@ -1,5 +1,6 @@
1
- import { $ as requireThread, A as createListing, E as actorLogin, F as getManyConcurrently, H as mapConcurrent, I as hasEveryLabel, K as milestoneId, L as hexColour, Q as requireIssueOrPull, R as hostOf, U as memo, V as latestCommentOf, W as memoBy, X as rateLimitPart, a as verifyHmacSignature, at as toDate, c as WRITE_VERBS, ct as toPullStats, et as resolveToken, f as eventTime, ft as changeBase64, ht as inDirectories, it as teamOrg, lt as toWarning, m as reviewState, mt as fromBase64, nt as summariseChecks, ot as toFileStatus, p as perKind, pt as existingFiles, r as nativeEventsFor, st as toPage, t as eventKindsOf, ut as versionAtLeast, v as verb, vt as toFileContent, x as githubShapedWeb, z as isFirstPage } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { A as toMergeError, T as UnsupportedOperationError, b as NotFoundError, k as soleMergeMethod, m as ForgeError, n as isNamespaceRef, s as reactionContent, u as BranchMovedError } from "./model-Biiu1CfI-CVLamGai.js";
1
+ import { S as inDirectories, T as toFileContent, b as existingFiles, c as reviewState, f as verb, h as githubShapedWeb, n as WRITE_VERBS, o as eventTime, s as perKind, x as fromBase64, y as changeBase64 } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { A as resolveToken, B as versionAtLeast, E as rateLimitPart, F as toDate, I as toFileStatus, J as reactionContent, L as toPage, M as summariseChecks, O as requireIssueOrPull, P as teamOrg, R as toPullStats, S as milestoneId, U as isNamespaceRef, Z as BranchMovedError, _ as latestCommentOf, b as memoBy, d as getManyConcurrently, dt as UnsupportedOperationError, f as hasEveryLabel, h as isFirstPage, ht as toMergeError, k as requireThread, m as hostOf, mt as soleMergeMethod, n as actorLogin, o as createListing, ot as NotFoundError, p as hexColour, tt as ForgeError, v as mapConcurrent, y as memo, z as toWarning } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { a as verifyHmacSignature, r as nativeEventsFor, t as eventKindsOf } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
3
4
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/web-C0rMyC0A.mjs
4
5
  const RESERVED_PATHS = [
5
6
  "-",
@@ -1027,7 +1028,7 @@ function forgejoWebhooks(profile) {
1027
1028
  return ({ options, origin }) => ({
1028
1029
  events: FORGEJO_WEBHOOK_EVENTS,
1029
1030
  verify: (delivery) => verifyForgejoSignature(delivery, options.webhookSecret, profile.headers),
1030
- translate: async (delivery) => (await import("./events-DXE-Ul2S-U2BH_jTW.js")).translateForgejoWebhook(origin, delivery, profile.headers)
1031
+ translate: async (delivery) => (await import("./events-DXE-Ul2S-BEUw4sQF.js")).translateForgejoWebhook(origin, delivery, profile.headers)
1031
1032
  });
1032
1033
  }
1033
1034
  const YAML_FILE = /\.ya?ml$/i;
@@ -1528,7 +1529,7 @@ function setupForgejo({ options, origin, fetcher: baseFetcher, baseUrl }, profil
1528
1529
  return released(isGitea ? giteaMinimum : forgejoMinimum);
1529
1530
  }
1530
1531
  async function feedPage(path, listOptions, query) {
1531
- const { toFeedEvent } = await import("./feed-iWegqepj-id4yPYnY.js");
1532
+ const { toFeedEvent } = await import("./feed-iWegqepj-DKBLqhvD.js");
1532
1533
  return list(path, listOptions, (raw) => toFeedEvent(origin, raw), { query });
1533
1534
  }
1534
1535
  async function setBlocked(scope, login, blocked, options) {
@@ -1,5 +1,6 @@
1
- import { $ as requireThread, A as createListing, B as iteratePages, D as anySignal, E as actorLogin, F as getManyConcurrently, J as phased, K as milestoneId, M as degradesToWarning, O as checkRunState, P as forgeIterable, Q as requireIssueOrPull, R as hostOf, T as abortable, U as memo, V as latestCommentOf, X as rateLimitPart, Y as rateLimitOf, Z as rateLimitReset, _t as splitMessage, a as verifyHmacSignature, at as toDate, c as WRITE_VERBS, ct as toPullStats, et as resolveToken, f as eventTime, ft as changeBase64, g as supportOnly, gt as isSha, ht as inDirectories, it as teamOrg, k as createFetcher, lt as toWarning, m as reviewState, mt as fromBase64, nt as summariseChecks, ot as toFileStatus, p as perKind, pt as existingFiles, r as nativeEventsFor, st as toPage, t as eventKindsOf, tt as sleep, u as defineForgeProvider, ut as versionAtLeast, v as verb, vt as toFileContent, x as githubShapedWeb, y as OWNER_NAME, z as isFirstPage } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { A as toMergeError, O as isSecondaryRateLimit, S as ReadOnlyError, T as UnsupportedOperationError, _ as InsufficientScopeError, b as NotFoundError, f as ForbiddenError, g as ForgeTimeoutError, k as soleMergeMethod, l as AuthenticationRequiredError, m as ForgeError, n as isNamespaceRef, p as ForgeApiError, r as isResolvedThread, s as reactionContent, t as REACTION_CONTENTS, u as BranchMovedError, v as MergeBlockedError, x as RateLimitedError, y as MergeConflictError } from "./model-Biiu1CfI-CVLamGai.js";
1
+ import { C as isSha, S as inDirectories, T as toFileContent, b as existingFiles, c as reviewState, f as verb, h as githubShapedWeb, n as WRITE_VERBS, o as eventTime, p as OWNER_NAME, s as perKind, u as supportOnly, w as splitMessage, x as fromBase64, y as changeBase64 } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { $ as ForbiddenError, A as resolveToken, B as versionAtLeast, D as rateLimitReset, E as rateLimitPart, F as toDate, H as REACTION_CONTENTS, I as toFileStatus, J as reactionContent, L as toPage, M as summariseChecks, O as requireIssueOrPull, P as teamOrg, R as toPullStats, S as milestoneId, T as rateLimitOf, U as isNamespaceRef, W as isResolvedThread, X as AuthenticationRequiredError, Z as BranchMovedError, _ as latestCommentOf, a as createFetcher, at as MergeConflictError, c as degradesToWarning, ct as ReadOnlyError, d as getManyConcurrently, dt as UnsupportedOperationError, et as ForgeApiError, g as iteratePages, h as isFirstPage, ht as toMergeError, i as checkRunState, it as MergeBlockedError, j as sleep, k as requireThread, m as hostOf, mt as soleMergeMethod, n as actorLogin, nt as ForgeTimeoutError, o as createListing, ot as NotFoundError, pt as isSecondaryRateLimit, r as anySignal, rt as InsufficientScopeError, st as RateLimitedError, t as abortable, tt as ForgeError, u as forgeIterable, w as phased, y as memo, z as toWarning } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { a as verifyHmacSignature, r as nativeEventsFor, t as eventKindsOf } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
3
4
  import { i as signRs256Jwt } from "./crypto-DydCoK4e-BCG61qh5.js";
4
5
  import { t as toAuthorAssociation } from "./association-Ds6Tgs0W-CgBVH3ii.js";
5
6
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/web-C4ZtN2uk.mjs
@@ -226,7 +227,7 @@ function graphqlOperations(document) {
226
227
  }
227
228
  function createGraphQLClient(fetcher, url, context) {
228
229
  return async (document, variables, options) => {
229
- const query = typeof document === "string" ? (await import("./graphql-DxRA9BGO-CiA7HWVp.js"))[document] : document.query;
230
+ const query = typeof document === "string" ? (await import("./graphql-DxRA9BGO-Cy511t8-.js"))[document] : document.query;
230
231
  const operationName = graphqlOperations(query)[0]?.name;
231
232
  const { data, response } = await fetcher.json(url, {
232
233
  method: "POST",
@@ -1536,7 +1537,7 @@ function githubWebhooks(events) {
1536
1537
  return ({ options, origin }) => ({
1537
1538
  events,
1538
1539
  verify: (delivery) => verifyGitHubSignature(delivery, options.webhookSecret),
1539
- translate: async (delivery) => (await import("./events-DHqSJ5KI-DfFbbwBb.js")).translateGitHubWebhook(origin, delivery)
1540
+ translate: async (delivery) => (await import("./events-DHqSJ5KI-mRtn-qQ0.js")).translateGitHubWebhook(origin, delivery)
1540
1541
  });
1541
1542
  }
1542
1543
  const DISCUSSION_CLOSE_REASONS = {
@@ -1666,7 +1667,7 @@ function setupGitHub(ctx, profile) {
1666
1667
  })).values()];
1667
1668
  let result;
1668
1669
  try {
1669
- const { query, variables } = (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).recentDiscussionsQuery(repos);
1670
+ const { query, variables } = (await import("./graphql-DxRA9BGO-Cy511t8-.js")).recentDiscussionsQuery(repos);
1670
1671
  result = await graphql({ query }, variables);
1671
1672
  } catch (error) {
1672
1673
  if (error instanceof InsufficientScopeError || error instanceof ForgeApiError && error.status === 200) return [toWarning("discussion_unresolved", error)];
@@ -1748,7 +1749,7 @@ function setupGitHub(ctx, profile) {
1748
1749
  number: Number(ref.number)
1749
1750
  }, options)).repository?.discussion;
1750
1751
  if (!discussion) throw new NotFoundError(`Discussion ${ref.number} not found`, 404, "", context);
1751
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionThread(ref, discussion);
1752
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionThread(ref, discussion);
1752
1753
  }
1753
1754
  async function discussionCommentPage(ref, listOptions) {
1754
1755
  const comments = (await graphql("DISCUSSION_COMMENTS", {
@@ -1829,7 +1830,7 @@ function setupGitHub(ctx, profile) {
1829
1830
  ref
1830
1831
  });
1831
1832
  if (!batchable.length) return results;
1832
- const g = await import("./graphql-DxRA9BGO-CiA7HWVp.js");
1833
+ const g = await import("./graphql-DxRA9BGO-Cy511t8-.js");
1833
1834
  for (let start = 0; start < batchable.length; start += GRAPHQL_BATCH) {
1834
1835
  const chunk = batchable.slice(start, start + GRAPHQL_BATCH);
1835
1836
  const { query, variables } = g.threadsBatchQuery(chunk.map((item) => item.ref));
@@ -1891,7 +1892,7 @@ function setupGitHub(ctx, profile) {
1891
1892
  async function sponsorableMany(logins, options) {
1892
1893
  const results = Array.from({ length: logins.length });
1893
1894
  if (!logins.length) return results;
1894
- const g = await import("./graphql-DxRA9BGO-CiA7HWVp.js");
1895
+ const g = await import("./graphql-DxRA9BGO-Cy511t8-.js");
1895
1896
  const url = graphqlUrl(baseUrl);
1896
1897
  for (let start = 0; start < logins.length; start += SPONSORABLE_BATCH) {
1897
1898
  const chunk = logins.slice(start, start + SPONSORABLE_BATCH);
@@ -1985,7 +1986,7 @@ function setupGitHub(ctx, profile) {
1985
1986
  field: query.sort === "created" || !query.sort ? "CREATED_AT" : "UPDATED_AT",
1986
1987
  direction: direction.toUpperCase()
1987
1988
  }, query);
1988
- const { toDiscussionThread } = await import("./graphql-DxRA9BGO-CiA7HWVp.js");
1989
+ const { toDiscussionThread } = await import("./graphql-DxRA9BGO-Cy511t8-.js");
1989
1990
  const discussions = data.repository?.discussions;
1990
1991
  return {
1991
1992
  items: (discussions?.nodes ?? []).map((node) => toDiscussionThread({
@@ -2096,7 +2097,7 @@ function setupGitHub(ctx, profile) {
2096
2097
  async function commentsPage(thread, listOptions = {}) {
2097
2098
  const ref = requireThread(thread, context);
2098
2099
  if (ref.kind === "discussion") {
2099
- const [page, { toDiscussionComment }] = await Promise.all([discussionCommentPage(ref, listOptions), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
2100
+ const [page, { toDiscussionComment }] = await Promise.all([discussionCommentPage(ref, listOptions), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
2100
2101
  return {
2101
2102
  ...page,
2102
2103
  items: page.items.map(({ comment }) => toDiscussionComment(ref, comment))
@@ -2127,7 +2128,7 @@ function setupGitHub(ctx, profile) {
2127
2128
  id,
2128
2129
  reason: reason?.toUpperCase() ?? null
2129
2130
  }, options_)).closeDiscussion : (await graphql("REOPEN_DISCUSSION", { id }, options_)).reopenDiscussion;
2130
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionThread(ref, data.discussion);
2131
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionThread(ref, data.discussion);
2131
2132
  }
2132
2133
  const reason = options_.reasonRaw ?? options_.reason;
2133
2134
  const { data } = await fetcher.json(threadPath(ref), {
@@ -2381,7 +2382,7 @@ function setupGitHub(ctx, profile) {
2381
2382
  number: Number(ref.number),
2382
2383
  first: Math.min(listOptions.perPage ?? 50, 100),
2383
2384
  after: listOptions.cursor?.token ?? null
2384
- }, listOptions), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
2385
+ }, listOptions), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
2385
2386
  const pull = data.repository?.pullRequest;
2386
2387
  if (!pull) throw new NotFoundError(`Pull request ${ref.number} not found`, 404, "", context);
2387
2388
  const { nodes, pageInfo } = pull.reviewThreads;
@@ -2408,7 +2409,7 @@ function setupGitHub(ctx, profile) {
2408
2409
  if (thread.kind === "discussion") {
2409
2410
  const data = await graphql("GET_DISCUSSION_COMMENT", { id: ref.id }, options);
2410
2411
  if (!data.node?.id) throw new NotFoundError(`Comment ${ref.id} not found`, 404, "", context);
2411
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionComment(thread, data.node);
2412
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionComment(thread, data.node);
2412
2413
  }
2413
2414
  const { data } = await fetcher.json(commentPath(ref), { signal: options?.signal });
2414
2415
  return toComment(thread, data);
@@ -2465,7 +2466,7 @@ function setupGitHub(ctx, profile) {
2465
2466
  number: Number(ref.number),
2466
2467
  first: Math.min(listOptions.perPage ?? 50, 100),
2467
2468
  after: listOptions.cursor?.token ?? null
2468
- }, listOptions), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
2469
+ }, listOptions), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
2469
2470
  const references = data.repository?.thread?.references;
2470
2471
  if (!references) throw new NotFoundError(`Thread ${ref.number} not found`, 404, "", context);
2471
2472
  return {
@@ -2787,7 +2788,7 @@ function setupGitHub(ctx, profile) {
2787
2788
  signal: listOptions.signal
2788
2789
  });
2789
2790
  const poll = recordPoll(path, listOptions.cursor, result.response);
2790
- const { toFeedEvents } = await import("./events-DHqSJ5KI-DfFbbwBb.js");
2791
+ const { toFeedEvents } = await import("./events-DHqSJ5KI-mRtn-qQ0.js");
2791
2792
  const page = toPage(result, (raw) => toFeedEvents(context, raw));
2792
2793
  return {
2793
2794
  ...page,
@@ -2882,7 +2883,7 @@ function setupGitHub(ctx, profile) {
2882
2883
  }
2883
2884
  async function templates(repo, options = {}) {
2884
2885
  const signal = options.signal;
2885
- return (await import("./templates-0m5QBVIh-Bop0TOo9.js")).readTemplates(repo, options.kind ? [options.kind] : ["issue", "pull_request"], {
2886
+ return (await import("./templates-0m5QBVIh-C1DcQ_yo.js")).readTemplates(repo, options.kind ? [options.kind] : ["issue", "pull_request"], {
2886
2887
  list: async (ref, path) => {
2887
2888
  const { data } = await fetcher.json(`${repoPath(ref)}/contents${path ? `/${path.split("/").map(encodeURIComponent).join("/")}` : ""}`, { signal });
2888
2889
  return Array.isArray(data) ? data : [];
@@ -3004,7 +3005,7 @@ function setupGitHub(ctx, profile) {
3004
3005
  expectedHeadOid: head,
3005
3006
  message: splitMessage(input.message),
3006
3007
  fileChanges
3007
- } }, options), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
3008
+ } }, options), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
3008
3009
  return toGraphQLCommit(repo, data.createCommitOnBranch.commit);
3009
3010
  } catch (error) {
3010
3011
  if (input.createFrom !== void 0) await swapBranch(repo, input.branch, head, ZERO_OID).catch(() => {});
@@ -3172,7 +3173,7 @@ function setupGitHub(ctx, profile) {
3172
3173
  const [data, { toGraphQLActor, GRAPHQL_REACTIONS }] = await Promise.all([graphql("NODE_REACTIONS", {
3173
3174
  id,
3174
3175
  after: listOptions.cursor?.token ?? null
3175
- }, listOptions), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
3176
+ }, listOptions), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
3176
3177
  const reactions = data.node?.reactions;
3177
3178
  return {
3178
3179
  items: (reactions?.nodes ?? []).flatMap((raw) => {
@@ -3210,7 +3211,7 @@ function setupGitHub(ctx, profile) {
3210
3211
  if (thread.kind === "discussion") {
3211
3212
  await graphql("ADD_REACTION", {
3212
3213
  id: "thread" in target ? target.id : await nodeId(thread, options),
3213
- content: (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).REACTION_CONTENT[reaction]
3214
+ content: (await import("./graphql-DxRA9BGO-Cy511t8-.js")).REACTION_CONTENT[reaction]
3214
3215
  }, options);
3215
3216
  return;
3216
3217
  }
@@ -3225,7 +3226,7 @@ function setupGitHub(ctx, profile) {
3225
3226
  if (thread.kind === "discussion") {
3226
3227
  await graphql("REMOVE_REACTION", {
3227
3228
  id: "thread" in target ? target.id : await nodeId(thread, options),
3228
- content: (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).REACTION_CONTENT[reaction]
3229
+ content: (await import("./graphql-DxRA9BGO-Cy511t8-.js")).REACTION_CONTENT[reaction]
3229
3230
  }, options);
3230
3231
  return;
3231
3232
  }
@@ -3692,7 +3693,7 @@ function setupGitHub(ctx, profile) {
3692
3693
  eventsPage: verb(true, async (thread, listOptions = {}) => {
3693
3694
  const ref = requireThread(thread, context);
3694
3695
  if (ref.kind === "discussion") {
3695
- const [page, { toDiscussionCommentEvent }] = await Promise.all([discussionCommentPage(ref, listOptions), import("./graphql-DxRA9BGO-CiA7HWVp.js")]);
3696
+ const [page, { toDiscussionCommentEvent }] = await Promise.all([discussionCommentPage(ref, listOptions), import("./graphql-DxRA9BGO-Cy511t8-.js")]);
3696
3697
  return {
3697
3698
  ...page,
3698
3699
  items: page.items.map(({ comment, isReply }) => toDiscussionCommentEvent(ref, comment, isReply))
@@ -3763,7 +3764,7 @@ function setupGitHub(ctx, profile) {
3763
3764
  id: await discussionId(ref, options),
3764
3765
  body
3765
3766
  }, options);
3766
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionComment(ref, data.addDiscussionComment.comment);
3767
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionComment(ref, data.addDiscussionComment.comment);
3767
3768
  }
3768
3769
  const { data } = await fetcher.json(`${repoPath(ref.repo)}/issues/${encodeURIComponent(ref.number)}/comments`, {
3769
3770
  method: "POST",
@@ -3783,7 +3784,7 @@ function setupGitHub(ctx, profile) {
3783
3784
  id: ref.id,
3784
3785
  body
3785
3786
  }, options);
3786
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionComment(thread, data.updateDiscussionComment.comment);
3787
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionComment(thread, data.updateDiscussionComment.comment);
3787
3788
  }
3788
3789
  const { data } = await fetcher.json(commentPath(ref), {
3789
3790
  method: "PATCH",
@@ -3885,7 +3886,7 @@ function setupGitHub(ctx, profile) {
3885
3886
  title: input.title,
3886
3887
  body: input.body
3887
3888
  }, options);
3888
- return (await import("./graphql-DxRA9BGO-CiA7HWVp.js")).toDiscussionThread(ref, data.updateDiscussion.discussion);
3889
+ return (await import("./graphql-DxRA9BGO-Cy511t8-.js")).toDiscussionThread(ref, data.updateDiscussion.discussion);
3889
3890
  }
3890
3891
  const target = requireIssueOrPull(ref, context, "update");
3891
3892
  const json = {
@@ -4265,7 +4266,4 @@ function githubScopesFor(verb) {
4265
4266
  };
4266
4267
  return {};
4267
4268
  }
4268
- // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/github/index.mjs
4269
- /** Creates a GitHub provider for github.com or a GitHub Enterprise Server instance. */
4270
- const github = /* @__PURE__ */ defineForgeProvider(/* @__PURE__ */ githubDefinition(GITHUB_PROFILE));
4271
- export { toThreadState as a, github, toRepoRef as i, toIssueType as n, toLabels as r, toActor as t };
4269
+ export { toLabels as a, toIssueType as i, githubDefinition as n, toRepoRef as o, toActor as r, toThreadState as s, GITHUB_PROFILE as t };
@@ -1,6 +1,8 @@
1
1
  import { n as headerValue, t as bodyText } from "./crypto-DydCoK4e-BCG61qh5.js";
2
- import { at as toDate, f as eventTime, h as snapshotOfThread, i as refEvent } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
3
- import { a as toRepoRef, i as toPullThread, n as toActor, r as toIssueThread, t as FORGE } from "./gitee-CKt4pEC0-dsy0hiLG.js";
2
+ import { l as snapshotOfThread, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
3
+ import { F as toDate } from "./utils-DEwhctg5-BM3AMnSs.js";
4
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
5
+ import { a as toRepoRef, i as toPullThread, n as toActor, r as toIssueThread, t as FORGE } from "./gitee-CKt4pEC0-BuzC1PrM.js";
4
6
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/events-BL0zcgMf.mjs
5
7
  const STATES = {
6
8
  open: "open",
@@ -1,7 +1,8 @@
1
1
  import { n as headerValue, t as bodyText } from "./crypto-DydCoK4e-BCG61qh5.js";
2
- import { E as WebhookVerificationError } from "./model-Biiu1CfI-CVLamGai.js";
3
- import { _ as threadSnapshot, at as toDate, d as eventAction, f as eventTime, i as refEvent } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
4
- import { a as toRepoRef, i as toLabel, n as approvalId, o as toState, r as toActor, t as FORGE } from "./gitlab-AAJN-eVR.js";
2
+ import { F as toDate, ft as WebhookVerificationError } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { a as eventAction, d as threadSnapshot, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
4
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
5
+ import { a as toRepoRef, i as toLabel, n as approvalId, o as toState, r as toActor, t as FORGE } from "./gitlab-CzCikZzN.js";
5
6
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/events-DDdJnmD2.mjs
6
7
  const EVENT_HEADER = "x-gitlab-event";
7
8
  function snapshotOf(instance, raw) {
@@ -1,7 +1,8 @@
1
1
  import { n as headerValue, t as bodyText } from "./crypto-DydCoK4e-BCG61qh5.js";
2
- import { E as WebhookVerificationError } from "./model-Biiu1CfI-CVLamGai.js";
3
- import { _ as threadSnapshot, at as toDate, ct as toPullStats, d as eventAction, f as eventTime, i as refEvent, m as reviewState } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
4
- import { a as toThreadState, i as toRepoRef, n as toIssueType, r as toLabels, t as toActor } from "./github-Csy_qzZc.js";
2
+ import { F as toDate, R as toPullStats, ft as WebhookVerificationError } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { a as eventAction, c as reviewState, d as threadSnapshot, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
4
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
5
+ import { a as toLabels, i as toIssueType, o as toRepoRef, r as toActor, s as toThreadState } from "./definition-s83gxg2p-JwDgFji9.js";
5
6
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/events-DHqSJ5KI.mjs
6
7
  const EVENT_HEADER = "x-github-event";
7
8
  const DELIVERY_HEADER = "x-github-delivery";
@@ -1,7 +1,8 @@
1
1
  import { t as bodyText } from "./crypto-DydCoK4e-BCG61qh5.js";
2
- import { E as WebhookVerificationError } from "./model-Biiu1CfI-CVLamGai.js";
3
- import { at as toDate, d as eventAction, f as eventTime, h as snapshotOfThread, i as refEvent, m as reviewState, n as firstHeader } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
4
- import { a as toActor, o as toRepoRef, s as toThread, t as FORGEJO_HEADERS } from "./definition-BQFdu9ti-BURTyX81.js";
2
+ import { F as toDate, ft as WebhookVerificationError } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { a as eventAction, c as reviewState, l as snapshotOfThread, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
4
+ import { i as refEvent, n as firstHeader } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
5
+ import { a as toActor, o as toRepoRef, s as toThread, t as FORGEJO_HEADERS } from "./definition-BQFdu9ti-BZgR-gkB.js";
5
6
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/events-DXE-Ul2S.mjs
6
7
  const EVENT_KINDS = {
7
8
  issue_comment: "comment",
@@ -1,5 +1,7 @@
1
- import { at as toDate, d as eventAction, f as eventTime, i as refEvent } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { n as approvalId, r as toActor, s as toThreadKind, t as FORGE } from "./gitlab-AAJN-eVR.js";
1
+ import { a as eventAction, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { F as toDate } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
4
+ import { n as approvalId, r as toActor, s as toThreadKind, t as FORGE } from "./gitlab-CzCikZzN.js";
3
5
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/feed-B1OiHFg0.mjs
4
6
  const FEED_STATES = {
5
7
  opened: {
@@ -1,5 +1,7 @@
1
- import { at as toDate, d as eventAction, f as eventTime, i as refEvent } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { a as toRepoRef, n as toActor, t as FORGE } from "./gitee-CKt4pEC0-dsy0hiLG.js";
1
+ import { a as eventAction, o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { F as toDate } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
4
+ import { a as toRepoRef, n as toActor, t as FORGE } from "./gitee-CKt4pEC0-BuzC1PrM.js";
3
5
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/feed-DROLF1tb.mjs
4
6
  /** Summaries of the feed event types that have no shared kind. */
5
7
  const FEED_SUMMARIES = { WatchEvent: "watched the repository" };
@@ -1,5 +1,7 @@
1
- import { at as toDate, f as eventTime, i as refEvent } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { a as toActor, o as toRepoRef } from "./definition-BQFdu9ti-BURTyX81.js";
1
+ import { o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { F as toDate } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { i as refEvent } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
4
+ import { a as toActor, o as toRepoRef } from "./definition-BQFdu9ti-BZgR-gkB.js";
3
5
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/feed-iWegqepj.mjs
4
6
  /** Activity types about an issue or a pull request, whose `content` starts with its number. */
5
7
  const FEED_THREAD_OPS = {
@@ -1,5 +1,5 @@
1
- import { u as defineForgeProvider } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { i as forgejoDefinition, n as FORGEJO_PROFILE } from "./definition-BQFdu9ti-BURTyX81.js";
1
+ import { i as defineForgeProvider } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { i as forgejoDefinition, n as FORGEJO_PROFILE } from "./definition-BQFdu9ti-BZgR-gkB.js";
3
3
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/forgejo/index.mjs
4
4
  /** Creates a Forgejo provider for Codeberg or any self-hosted Forgejo instance. */
5
5
  const forgejo = /* @__PURE__ */ defineForgeProvider(/* @__PURE__ */ forgejoDefinition(FORGEJO_PROFILE));
@@ -1,5 +1,5 @@
1
- import { u as defineForgeProvider } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { c as GITEA_WEB, i as forgejoDefinition, r as GITEA_HEADERS } from "./definition-BQFdu9ti-BURTyX81.js";
1
+ import { i as defineForgeProvider } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { c as GITEA_WEB, i as forgejoDefinition, r as GITEA_HEADERS } from "./definition-BQFdu9ti-BZgR-gkB.js";
3
3
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/gitea/index.mjs
4
4
  /** Creates a Gitea provider for gitea.com or any self-hosted Gitea instance. */
5
5
  const gitea = /* @__PURE__ */ defineForgeProvider(/* @__PURE__ */ forgejoDefinition({
@@ -1,4 +1,4 @@
1
- import { at as toDate } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
1
+ import { F as toDate } from "./utils-DEwhctg5-BM3AMnSs.js";
2
2
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/gitee-CKt4pEC0.mjs
3
3
  const FORGE = "gitee";
4
4
  function toActor(instance, user) {
@@ -1,5 +1,6 @@
1
- import { $ as requireThread, A as createListing, B as iteratePages, C as rangeOf, F as getManyConcurrently, G as mergeCommitMessage, H as mapConcurrent, J as phased, K as milestoneId, L as hexColour, M as degradesToWarning, N as firstPageEtag, Q as requireIssueOrPull, S as lineOf, U as memo, W as memoBy, X as rateLimitPart, at as toDate, b as bareSha, c as WRITE_VERBS, dt as withEtag, et as resolveToken, f as eventTime, ft as changeBase64, it as teamOrg, lt as toWarning, mt as fromBase64, o as verifySharedToken, p as perKind, pt as existingFiles, r as nativeEventsFor, rt as syntheticReview, st as toPage, t as eventKindsOf, u as defineForgeProvider, ut as versionAtLeast, v as verb, vt as toFileContent, w as webUrlFor, z as isFirstPage } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
2
- import { A as toMergeError, C as TokenRevokedError, T as UnsupportedOperationError, _ as InsufficientScopeError, b as NotFoundError, f as ForbiddenError, k as soleMergeMethod, l as AuthenticationRequiredError, n as isNamespaceRef, p as ForgeApiError, s as reactionContent, u as BranchMovedError, w as UnresolvedThreadError } from "./model-Biiu1CfI-CVLamGai.js";
1
+ import { T as toFileContent, _ as rangeOf, b as existingFiles, f as verb, g as lineOf, i as defineForgeProvider, m as bareSha, n as WRITE_VERBS, o as eventTime, s as perKind, v as webUrlFor, x as fromBase64, y as changeBase64 } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { $ as ForbiddenError, A as resolveToken, B as versionAtLeast, E as rateLimitPart, F as toDate, J as reactionContent, L as toPage, N as syntheticReview, O as requireIssueOrPull, P as teamOrg, S as milestoneId, U as isNamespaceRef, V as withEtag, X as AuthenticationRequiredError, Z as BranchMovedError, b as memoBy, c as degradesToWarning, d as getManyConcurrently, dt as UnsupportedOperationError, et as ForgeApiError, g as iteratePages, h as isFirstPage, ht as toMergeError, k as requireThread, l as firstPageEtag, lt as TokenRevokedError, mt as soleMergeMethod, o as createListing, ot as NotFoundError, p as hexColour, rt as InsufficientScopeError, ut as UnresolvedThreadError, v as mapConcurrent, w as phased, x as mergeCommitMessage, y as memo, z as toWarning } from "./utils-DEwhctg5-BM3AMnSs.js";
3
+ import { o as verifySharedToken, r as nativeEventsFor, t as eventKindsOf } from "./webhooks-Bc6QhmI8-CgoCnwj1.js";
3
4
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/web-DpJoUDx4.mjs
4
5
  const SECTIONS = {
5
6
  issue: "work_items",
@@ -1083,7 +1084,7 @@ async function verifyGitLabToken(delivery, secret) {
1083
1084
  const gitlabWebhooks = ({ options, instance }) => ({
1084
1085
  events: GITLAB_WEBHOOK_EVENTS,
1085
1086
  verify: (delivery) => verifyGitLabToken(delivery, options.webhookSecret),
1086
- translate: async (delivery) => (await import("./events-DDdJnmD2-BhNdO8U_.js")).translateGitLabWebhook(instance, delivery)
1087
+ translate: async (delivery) => (await import("./events-DDdJnmD2-CdPFePvp.js")).translateGitLabWebhook(instance, delivery)
1087
1088
  });
1088
1089
  const PROJECT_ORDER = {
1089
1090
  created: "created_at",
@@ -1645,7 +1646,7 @@ const gitlab = /* @__PURE__ */ defineForgeProvider({
1645
1646
  });
1646
1647
  const warnings = [];
1647
1648
  if (!repo) await resolveProjects([...new Set((result.data ?? []).flatMap((raw) => typeof raw.project_id === "number" ? [raw.project_id] : []))].filter((id) => !projectRefs.has(id)), listOptions.signal, warnings);
1648
- const { toFeedEvent } = await import("./feed-B1OiHFg0-a2dzl1Va.js");
1649
+ const { toFeedEvent } = await import("./feed-B1OiHFg0-ppQHqkxG.js");
1649
1650
  return toPage(result, (raw) => toFeedEvent(instance, raw, repo ?? (typeof raw.project_id === "number" ? projectRefs.get(raw.project_id) : void 0)), warnings);
1650
1651
  }
1651
1652
  async function setSubscribed(thread, subscribed, options) {
@@ -1,4 +1,5 @@
1
- import { at as toDate, ct as toPullStats, f as eventTime } from "./webhooks-Bc6QhmI8-CvF2iFBp.js";
1
+ import { o as eventTime } from "./define-C9xZZNVR-C-oojQRP.js";
2
+ import { F as toDate, R as toPullStats } from "./utils-DEwhctg5-BM3AMnSs.js";
2
3
  import { t as toAuthorAssociation } from "./association-Ds6Tgs0W-CgBVH3ii.js";
3
4
  // ../../node_modules/.pnpm/forges@0.4.1/node_modules/forges/dist/graphql-DxRA9BGO.mjs
4
5
  const ACTOR_FIELDS = `__typename login avatarUrl url ... on User { databaseId name } ... on Bot { databaseId }`;
package/dist/index.d.ts CHANGED
@@ -3752,6 +3752,45 @@ interface GitHubProvider extends ForgeProvider<true> {
3752
3752
  */
3753
3753
  graphql: GitHubGraphQL;
3754
3754
  }
3755
+ /** The tokens of one person who authorized the GitHub App, and who that person is. */
3756
+ interface ForgeUserGrant {
3757
+ token: string;
3758
+ /** `undefined` when the GitHub App has user token expiry turned off. */
3759
+ expiresAt: Date | undefined;
3760
+ refreshToken: string | undefined;
3761
+ refreshTokenExpiresAt: Date | undefined;
3762
+ /** From `GET /user` with the new token. */
3763
+ login: string;
3764
+ id: number;
3765
+ }
3766
+ /** Codes of the errors that `forge.user` returns. */
3767
+ type ForgeUserErrorCode = "FORGE_USER_AUTH_FAILED" | "FORGE_REQUEST_FAILED";
3768
+ /**
3769
+ * GitHub App user-to-server tokens: send a person to GitHub, trade the code for their token, and act as them.
3770
+ * Set only for GitHub when `VITEHUB_GITHUB_CLIENT_ID` and `VITEHUB_GITHUB_CLIENT_SECRET` are set.
3771
+ */
3772
+ interface ForgeUser {
3773
+ /** The GitHub page that asks the person to authorize the App. GitHub redirects to `redirectUri` with `code` and `state`. */
3774
+ authorizeUrl(options: {
3775
+ redirectUri: string;
3776
+ state: string;
3777
+ }): string;
3778
+ /** Trades the `code` of the callback for a user token. */
3779
+ exchange(options: {
3780
+ code: string;
3781
+ redirectUri: string;
3782
+ signal?: AbortSignal;
3783
+ }): Promise<Result<ForgeUserGrant, ForgeUserErrorCode>>;
3784
+ /** Trades a refresh token for a new user token. GitHub revokes the old refresh token. */
3785
+ refresh(options: {
3786
+ refreshToken: string;
3787
+ signal?: AbortSignal;
3788
+ }): Promise<Result<ForgeUserGrant, ForgeUserErrorCode>>;
3789
+ /** A `forges` GitHub provider that acts as the person who owns `token`. */
3790
+ provider(options: {
3791
+ token: string;
3792
+ }): GitHubProvider;
3793
+ }
3755
3794
  /** A response body that a later request can revalidate with `If-None-Match`. */
3756
3795
  interface ForgeCachedResponse {
3757
3796
  etag: string;
@@ -3788,10 +3827,6 @@ export declare function forgeMemoryCache(options?: ForgeMemoryCacheOptions): For
3788
3827
  * Every read still reaches the Forge, so a cached body is only returned when the Forge says it is current.
3789
3828
  */
3790
3829
  export declare function conditionalFetch(fetcher: typeof fetch, options?: ForgeConditionalRequests): typeof fetch;
3791
- /**
3792
- * The Server Env names of each Forge, and the HTTP status of a failed Forge request. `@vite-hub/forge` exports them.
3793
- * Channels and Workspaces import them from here, so an app without a Forge does not install or bundle `@vite-hub/forge`.
3794
- */
3795
3830
  /** One Server Env value of a Forge. */
3796
3831
  interface ForgeEnvField {
3797
3832
  /** Host variable names in lookup order. The `VITEHUB_` name comes first, then the `forges` name. */
@@ -3802,7 +3837,7 @@ interface ForgeEnvField {
3802
3837
  }
3803
3838
  /** Server Env fields of each Forge. */
3804
3839
  type ForgeEnv = {
3805
- github: Record<"appId" | "baseUrl" | "installationId" | "appOwner" | "appInstallations" | "privateKey" | "privateKeyPath" | "token" | "webhookSecret", ForgeEnvField>;
3840
+ github: Record<"appId" | "baseUrl" | "clientId" | "clientSecret" | "installationId" | "appOwner" | "appInstallations" | "privateKey" | "privateKeyPath" | "token" | "webhookSecret", ForgeEnvField>;
3806
3841
  gitlab: Record<"baseUrl" | "token" | "webhookSecret", ForgeEnvField>;
3807
3842
  forgejo: Record<"baseUrl" | "token" | "webhookSecret", ForgeEnvField>;
3808
3843
  gitea: Record<"baseUrl" | "token" | "webhookSecret", ForgeEnvField>;
@@ -3924,6 +3959,11 @@ interface Forge$1<TKind extends ForgeKind = ForgeKind> {
3924
3959
  /** `"app"`: GitHub App installation tokens. `"token"`: the configured token. */
3925
3960
  readonly auth: "app" | "token";
3926
3961
  readonly baseUrl: string | undefined;
3962
+ /**
3963
+ * GitHub App user-to-server tokens, to act as a person who authorized the App.
3964
+ * `undefined` unless the Forge is GitHub and `VITEHUB_GITHUB_CLIENT_ID` and `VITEHUB_GITHUB_CLIENT_SECRET` are set.
3965
+ */
3966
+ readonly user: ForgeUser | undefined;
3927
3967
  /** A token for API calls, `git`, or `gh`. Installation tokens are cached until one minute before they expire. */
3928
3968
  token(options?: ForgeCallOptions): Promise<Result<ForgeToken, ForgeTokenErrorCode>>;
3929
3969
  /** A `forges` provider that uses `token()`. Get a new one for each job: an installation token expires after one hour. */
@@ -3943,15 +3983,17 @@ interface Forge$1<TKind extends ForgeKind = ForgeKind> {
3943
3983
  * ```
3944
3984
  */
3945
3985
  export declare function useForge<TKind extends ForgeKind = "github">(options?: UseForgeOptions<TKind>): Forge$1<TKind>;
3946
- /** What `checkForge()` found: the Forge and how it signs in. */
3986
+ /** What `checkForge()` found: the Forge, how it signs in, and whether `forge.user` is set. */
3947
3987
  interface ForgeCheck<TKind extends ForgeKind = ForgeKind> {
3948
3988
  kind: TKind;
3949
3989
  auth: "app" | "token";
3990
+ /** Whether the GitHub App client ID and secret are set, so `forge.user` can sign people in. */
3991
+ user: boolean;
3950
3992
  }
3951
3993
  /** Codes that `checkForge()` returns. */
3952
3994
  type ForgeCheckErrorCode = "FORGE_MISSING_ENV" | "FORGE_INVALID_ENV";
3953
3995
  /**
3954
- * Checks the Forge env and sends no request, for example for a Setup page. It returns `[undefined, { kind, auth }]`
3996
+ * Checks the Forge env and sends no request, for example for a Setup page. It returns `[undefined, { kind, auth, user }]`
3955
3997
  * when local configuration is valid, or `[error, undefined]` with a configuration error. It checks the base URL
3956
3998
  * and signs locally with the GitHub App private key, but does not check that the forge accepts the credentials.
3957
3999
  *
@@ -4185,4 +4227,4 @@ export declare function githubInstallationRouting(env: GitHubInstallationEnv): G
4185
4227
  * reach the repository.
4186
4228
  */
4187
4229
  export declare function githubInstallationFor(routing: GitHubInstallationRouting, repository: string | undefined): number | undefined;
4188
- export { type BaseOptions, BranchMovedError, type BranchRules, type Check, type CiRun, type CiRunRef, type Commit, type Forge$1 as Forge, ForgeApiError, type ForgeAppIdentity, type ForgeArchive, type ForgeArchiveOptions, type ForgeCachedResponse, type ForgeCallOptions, type ForgeCheck, type ForgeCheckErrorCode, type ForgeCommitFilesInput, type ForgeConditionalRequests, type ForgeConnection, type ForgeEnv, type ForgeEnvField, type ForgeEnvSource, type ForgeErrorCode, type ForgeFileChange, type ForgeFileMode, type ForgeGitCredentials, type ForgeGitCredentialsInput, type ForgeKind, type ForgeMemoryCacheOptions, type ForgeMergeOptions, type ForgeProvider, type ForgeProviderOf, type ForgeResponseCache, ForgeTimeoutError, type ForgeToken, type ForgeTokenErrorCode, type GitHubAppCredentials, type GitHubAppDelivery, type GitHubAppInput, type GitHubAppRepository, type GitHubBranchRuleDetails, type GitHubInstallationEnv, type GitHubInstallationRouting, type GitHubProvider, MergeBlockedError, type MergeMethod, type MergeOptions, type MergeResult, NotFoundError, type Page, RateLimitedError, type ReadForgeArchiveOptions, type RepoRef, type RequiredCheck, type Thread, type ThreadRef, type TreeEntry, type UseForgeOptions, repoRef };
4230
+ export { type BaseOptions, BranchMovedError, type BranchRules, type Check, type CiRun, type CiRunRef, type Comment, type Commit, type Forge$1 as Forge, ForgeApiError, type ForgeAppIdentity, type ForgeArchive, type ForgeArchiveOptions, type ForgeCachedResponse, type ForgeCallOptions, type ForgeCheck, type ForgeCheckErrorCode, type ForgeCommitFilesInput, type ForgeConditionalRequests, type ForgeConnection, type ForgeEnv, type ForgeEnvField, type ForgeEnvSource, type ForgeErrorCode, type ForgeFileChange, type ForgeFileMode, type ForgeGitCredentials, type ForgeGitCredentialsInput, type ForgeKind, type ForgeMemoryCacheOptions, type ForgeMergeOptions, type ForgeProvider, type ForgeProviderOf, type ForgeResponseCache, ForgeTimeoutError, type ForgeToken, type ForgeTokenErrorCode, type ForgeUser, type ForgeUserErrorCode, type ForgeUserGrant, type GitHubAppCredentials, type GitHubAppDelivery, type GitHubAppInput, type GitHubAppRepository, type GitHubBranchRuleDetails, type GitHubInstallationEnv, type GitHubInstallationRouting, type GitHubProvider, MergeBlockedError, type MergeMethod, type MergeOptions, type MergeResult, NotFoundError, type Page, RateLimitedError, type ReadForgeArchiveOptions, type RepoRef, type RequiredCheck, type Thread, type ThreadRef, type TreeEntry, type UseForgeOptions, repoRef };