@sentry/craft 3.11.1 → 3.12.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 (2) hide show
  1. package/dist/craft +198 -70
  2. package/package.json +1 -1
package/dist/craft CHANGED
@@ -121861,13 +121861,13 @@ async function fetchPRFiles(prNumber) {
121861
121861
  function authorLogins(nodes = []) {
121862
121862
  return nodes.map((node3) => node3.user?.login).filter((login) => Boolean(login));
121863
121863
  }
121864
- async function fetchPRCoAuthors(prNumber) {
121864
+ async function fetchPRCoAuthors(prNumbers) {
121865
121865
  const { repo, owner } = await getGlobalGitHubConfig();
121866
- try {
121867
- const response = await getGitHubClient().graphql(
121868
- `query($owner: String!, $repo: String!, $number: Int!) {
121869
- repository(owner: $owner, name: $repo) {
121870
- pullRequest(number: $number) {
121866
+ const coAuthors = {};
121867
+ for (let start = 0; start < prNumbers.length; start += MAX_PRS_PER_QUERY) {
121868
+ const subset = prNumbers.slice(start, start + MAX_PRS_PER_QUERY);
121869
+ const prsQuery = subset.map(
121870
+ (number2) => `P${number2}: pullRequest(number: ${Number(number2)}) {
121871
121871
  commits(first: ${MAX_PR_COMMITS}) {
121872
121872
  nodes {
121873
121873
  commit {
@@ -121875,20 +121875,34 @@ async function fetchPRCoAuthors(prNumber) {
121875
121875
  }
121876
121876
  }
121877
121877
  }
121878
+ }`
121879
+ ).join("\n");
121880
+ let response;
121881
+ try {
121882
+ response = await getGitHubClient().graphql(
121883
+ `query($owner: String!, $repo: String!) {
121884
+ repository(owner: $owner, name: $repo) {
121885
+ ${prsQuery}
121878
121886
  }
121879
- }
121880
- }`,
121881
- { owner, repo, number: prNumber }
121882
- );
121883
- return (response?.repository?.pullRequest?.commits.nodes ?? []).flatMap(
121884
- (node3) => authorLogins(node3.commit.authors.nodes)
121885
- );
121886
- } catch (error3) {
121887
- logger.warn(
121888
- `Failed to fetch co-authors for PR #${prNumber}: ${error3.message || error3}`
121889
- );
121890
- return [];
121887
+ }`,
121888
+ { owner, repo }
121889
+ );
121890
+ } catch (error3) {
121891
+ logger.warn(
121892
+ `Failed to fetch co-authors for PRs ${subset.map((n5) => `#${n5}`).join(", ")}: ${error3.message || error3}`
121893
+ );
121894
+ response = error3.data;
121895
+ }
121896
+ for (const number2 of subset) {
121897
+ const pr3 = response?.repository?.[`P${number2}`];
121898
+ if (pr3) {
121899
+ coAuthors[number2] = pr3.commits.nodes.flatMap(
121900
+ (node3) => authorLogins(node3.commit.authors.nodes)
121901
+ );
121902
+ }
121903
+ }
121891
121904
  }
121905
+ return coAuthors;
121892
121906
  }
121893
121907
  function isBumpType(value) {
121894
121908
  return BUMP_TYPES.has(value);
@@ -122563,7 +122577,7 @@ async function generateChangelogWithHighlight(git, rev, currentPRNumber) {
122563
122577
  body: prInfo.body,
122564
122578
  author: prInfo.author,
122565
122579
  authorIsBot: prInfo.authorIsBot,
122566
- coAuthors: await fetchPRCoAuthors(currentPRNumber),
122580
+ coAuthors: (await fetchPRCoAuthors([currentPRStr]))[currentPRStr],
122567
122581
  pr: currentPRStr,
122568
122582
  prTitle: prInfo.title,
122569
122583
  prBody: prInfo.body,
@@ -122639,6 +122653,15 @@ async function fetchRawCommitInfo(git, rev, until) {
122639
122653
  }
122640
122654
  result.push(commit);
122641
122655
  }
122656
+ const withoutCoAuthors = [...seenPRs.values()].filter(
122657
+ (commit) => !commit.coAuthors?.length
122658
+ );
122659
+ const prCoAuthors = await fetchPRCoAuthors(
122660
+ withoutCoAuthors.map((commit) => String(commit.pr))
122661
+ );
122662
+ for (const commit of withoutCoAuthors) {
122663
+ commit.coAuthors = prCoAuthors[String(commit.pr)] ?? commit.coAuthors;
122664
+ }
122642
122665
  return result;
122643
122666
  }
122644
122667
  function categorizeCommits(rawCommits) {
@@ -123061,7 +123084,7 @@ async function getPRAndLabelsFromCommit(hashes) {
123061
123084
  })
123062
123085
  );
123063
123086
  }
123064
- var import_fs12, import_path12, BUMP_TYPES, DEFAULT_CHANGELOG_PATH, DEFAULT_UNRELEASED_TITLE, SKIP_CHANGELOG_MAGIC_WORD, DEFAULT_CHANGESET_BODY, VERSION_HEADER_LEVEL, SUBSECTION_HEADER_LEVEL, SCOPE_HEADER_LEVEL, MAX_COMMITS_PER_QUERY, MAX_PR_COMMITS, MAX_COMMIT_AUTHORS, MAX_CREDITED_AUTHORS, MAX_LEFTOVERS, DEFAULT_RELEASE_CONFIG, releaseConfigCache, SHORT_SHA_LENGTH, changesetCache, rawChangesetCache;
123087
+ var import_fs12, import_path12, BUMP_TYPES, DEFAULT_CHANGELOG_PATH, DEFAULT_UNRELEASED_TITLE, SKIP_CHANGELOG_MAGIC_WORD, DEFAULT_CHANGESET_BODY, VERSION_HEADER_LEVEL, SUBSECTION_HEADER_LEVEL, SCOPE_HEADER_LEVEL, MAX_COMMITS_PER_QUERY, MAX_PR_COMMITS, MAX_PRS_PER_QUERY, MAX_COMMIT_AUTHORS, MAX_CREDITED_AUTHORS, MAX_LEFTOVERS, DEFAULT_RELEASE_CONFIG, releaseConfigCache, SHORT_SHA_LENGTH, changesetCache, rawChangesetCache;
123065
123088
  var init_changelog = __esm({
123066
123089
  "src/utils/changelog.ts"() {
123067
123090
  "use strict";
@@ -123091,6 +123114,7 @@ var init_changelog = __esm({
123091
123114
  SCOPE_HEADER_LEVEL = SUBSECTION_HEADER_LEVEL + 1;
123092
123115
  MAX_COMMITS_PER_QUERY = 50;
123093
123116
  MAX_PR_COMMITS = 100;
123117
+ MAX_PRS_PER_QUERY = 25;
123094
123118
  MAX_COMMIT_AUTHORS = 10;
123095
123119
  MAX_CREDITED_AUTHORS = 3;
123096
123120
  MAX_LEFTOVERS = 24;
@@ -124814,6 +124838,42 @@ var init_dotnetWorkspaces = __esm({
124814
124838
  }
124815
124839
  });
124816
124840
 
124841
+ // src/utils/githubOidc.ts
124842
+ function getGitHubOidcRequest() {
124843
+ const url3 = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
124844
+ const token = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
124845
+ return url3 && token ? { url: url3, token } : void 0;
124846
+ }
124847
+ async function getGitHubOidcToken(request3, audience) {
124848
+ const url3 = new URL(request3.url);
124849
+ url3.searchParams.set("audience", audience);
124850
+ const response = await fetch(url3, {
124851
+ headers: {
124852
+ Accept: "application/json",
124853
+ Authorization: `Bearer ${request3.token}`
124854
+ },
124855
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
124856
+ });
124857
+ if (!response.ok) {
124858
+ throw new Error(
124859
+ `GitHub OIDC token request failed: HTTP ${response.status}`
124860
+ );
124861
+ }
124862
+ const { value } = await response.json();
124863
+ if (!value) {
124864
+ throw new Error("GitHub OIDC token response has no token");
124865
+ }
124866
+ return value;
124867
+ }
124868
+ var REQUEST_TIMEOUT_MS;
124869
+ var init_githubOidc = __esm({
124870
+ "src/utils/githubOidc.ts"() {
124871
+ "use strict";
124872
+ init_import_meta_url();
124873
+ REQUEST_TIMEOUT_MS = 3e4;
124874
+ }
124875
+ });
124876
+
124817
124877
  // src/utils/nugetRegistry.ts
124818
124878
  function normalizeNugetVersion(version2) {
124819
124879
  const withoutMetadata = version2.split("+")[0];
@@ -124997,7 +125057,7 @@ var init_nugetRegistry = __esm({
124997
125057
  function readXmlTag(content, tag2) {
124998
125058
  return new RegExp(`<${tag2}>([^<]+)</${tag2}>`).exec(content)?.[1].trim();
124999
125059
  }
125000
- var import_fs18, import_path15, import_crypto6, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
125060
+ var import_fs18, import_path15, import_crypto6, NUGET_DOTNET_BIN, DEFAULT_NUGET_SERVER_URL, NUGET_USER_ENV_VAR, NUGET_TOKEN_SERVICE_URL, NUGET_OIDC_AUDIENCE, TEMPORARY_API_KEY_MAX_AGE_MS, REQUEST_TIMEOUT_MS2, DEFAULT_NUGET_REGEX, SYMBOLS_NUGET_REGEX, DOTNET_SPAWN_OPTIONS, NugetTarget;
125001
125061
  var init_nuget = __esm({
125002
125062
  "src/targets/nuget.ts"() {
125003
125063
  "use strict";
@@ -125011,17 +125071,25 @@ var init_nuget = __esm({
125011
125071
  init_base5();
125012
125072
  init_dotnetWorkspaces();
125013
125073
  init_workspaces();
125074
+ init_githubOidc();
125014
125075
  init_nugetRegistry();
125015
125076
  init_logger2();
125016
125077
  init_versionPatterns();
125017
125078
  NUGET_DOTNET_BIN = process.env.NUGET_DOTNET_BIN || "dotnet";
125018
125079
  DEFAULT_NUGET_SERVER_URL = "https://api.nuget.org/v3/index.json";
125080
+ NUGET_USER_ENV_VAR = "NUGET_USER";
125081
+ NUGET_TOKEN_SERVICE_URL = "https://www.nuget.org/api/v2/token";
125082
+ NUGET_OIDC_AUDIENCE = "https://www.nuget.org";
125083
+ TEMPORARY_API_KEY_MAX_AGE_MS = 45 * 60 * 1e3;
125084
+ REQUEST_TIMEOUT_MS2 = 3e4;
125019
125085
  DEFAULT_NUGET_REGEX = /^.*\d\.\d.*\.nupkg$/;
125020
125086
  SYMBOLS_NUGET_REGEX = /^.*\d\.\d.*\.snupkg$/;
125021
125087
  DOTNET_SPAWN_OPTIONS = { cwd: "/" };
125022
125088
  NugetTarget = class _NugetTarget extends BaseTarget {
125023
125089
  name = "nuget";
125024
125090
  nugetConfig;
125091
+ /** Temporary API key from trusted publishing, shared by parallel pushes */
125092
+ temporaryApiKey;
125025
125093
  /**
125026
125094
  * Expand a nuget target config into multiple targets if workspaces is enabled.
125027
125095
  *
@@ -125097,6 +125165,9 @@ var init_nuget = __esm({
125097
125165
  if (config.serverUrl) {
125098
125166
  expandedTarget.serverUrl = config.serverUrl;
125099
125167
  }
125168
+ if (config.trustedPublishingUser) {
125169
+ expandedTarget.trustedPublishingUser = config.trustedPublishingUser;
125170
+ }
125100
125171
  return expandedTarget;
125101
125172
  });
125102
125173
  }
@@ -125216,41 +125287,123 @@ var init_nuget = __esm({
125216
125287
  * Extracts Nuget target options from the raw configuration
125217
125288
  */
125218
125289
  getNugetConfig() {
125290
+ const config = this.config;
125291
+ const serverUrl = config.serverUrl || DEFAULT_NUGET_SERVER_URL;
125292
+ const trustedPublishingUser = config.trustedPublishingUser || process.env[NUGET_USER_ENV_VAR];
125293
+ if (trustedPublishingUser) {
125294
+ if (!getGitHubOidcRequest()) {
125295
+ throw new ConfigurationError(
125296
+ `Cannot perform Nuget release: trusted publishing is enabled ("trustedPublishingUser" or ${NUGET_USER_ENV_VAR}), but GitHub Actions OIDC is not available. Run in GitHub Actions with the "id-token: write" permission.`
125297
+ );
125298
+ }
125299
+ if (serverUrl !== DEFAULT_NUGET_SERVER_URL) {
125300
+ throw new ConfigurationError(
125301
+ `Cannot perform Nuget release: trusted publishing only works with ${DEFAULT_NUGET_SERVER_URL}, but serverUrl is ${serverUrl}.`
125302
+ );
125303
+ }
125304
+ return { trustedPublishingUser, serverUrl };
125305
+ }
125219
125306
  if (!process.env.NUGET_API_TOKEN) {
125220
125307
  throw new ConfigurationError(
125221
125308
  `Cannot perform Nuget release: missing credentials.
125222
- Please use NUGET_API_TOKEN environment variable.`
125309
+ Please set "trustedPublishingUser" or ${NUGET_USER_ENV_VAR} (trusted publishing), or NUGET_API_TOKEN.`
125223
125310
  );
125224
125311
  }
125225
- const config = this.config;
125226
- return {
125227
- apiToken: process.env.NUGET_API_TOKEN,
125228
- serverUrl: config.serverUrl || DEFAULT_NUGET_SERVER_URL
125229
- };
125312
+ return { apiToken: process.env.NUGET_API_TOKEN, serverUrl };
125313
+ }
125314
+ /**
125315
+ * Returns the API key to push with: NUGET_API_TOKEN, or with trusted
125316
+ * publishing, a temporary key that is renewed before it expires.
125317
+ */
125318
+ getApiKey() {
125319
+ const { apiToken, trustedPublishingUser } = this.nugetConfig;
125320
+ if (!trustedPublishingUser) {
125321
+ return Promise.resolve(apiToken ?? "");
125322
+ }
125323
+ if (!this.temporaryApiKey || Date.now() >= this.temporaryApiKey.expiresAt) {
125324
+ this.temporaryApiKey = {
125325
+ value: this.requestTemporaryApiKey(trustedPublishingUser),
125326
+ expiresAt: Date.now() + TEMPORARY_API_KEY_MAX_AGE_MS
125327
+ };
125328
+ }
125329
+ return this.temporaryApiKey.value;
125330
+ }
125331
+ /**
125332
+ * Exchanges a GitHub Actions OIDC token for a temporary nuget.org API key,
125333
+ * as described in https://learn.microsoft.com/nuget/nuget-org/trusted-publishing
125334
+ */
125335
+ async requestTemporaryApiKey(user) {
125336
+ const oidcRequest = getGitHubOidcRequest();
125337
+ if (!oidcRequest) {
125338
+ throw new Error("GitHub Actions OIDC is no longer available");
125339
+ }
125340
+ const oidcToken = await getGitHubOidcToken(
125341
+ oidcRequest,
125342
+ NUGET_OIDC_AUDIENCE
125343
+ );
125344
+ this.logger.info(
125345
+ `Requesting a temporary NuGet API key for "${user}" with trusted publishing`
125346
+ );
125347
+ const response = await fetch(NUGET_TOKEN_SERVICE_URL, {
125348
+ method: "POST",
125349
+ headers: {
125350
+ Authorization: `Bearer ${oidcToken}`,
125351
+ "Content-Type": "application/json",
125352
+ "User-Agent": "getsentry/craft"
125353
+ },
125354
+ body: JSON.stringify({ username: user, tokenType: "ApiKey" }),
125355
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS2)
125356
+ });
125357
+ if (!response.ok) {
125358
+ const details = (await response.text().catch(() => "")).slice(0, 500);
125359
+ throw new Error(
125360
+ `NuGet trusted publishing token exchange failed: HTTP ${response.status}` + (details ? `: ${details}` : "") + `
125361
+
125362
+ Check that a trusted publishing policy on nuget.org matches this repository, workflow file and environment, and that "${user}" is the nuget.org user who created the policy, not the organization that owns it.`
125363
+ );
125364
+ }
125365
+ const { apiKey } = await response.json();
125366
+ if (!apiKey) {
125367
+ throw new Error(
125368
+ "NuGet trusted publishing token exchange returned no API key"
125369
+ );
125370
+ }
125371
+ if (process.env.GITHUB_ACTIONS === "true") {
125372
+ process.stdout.write(`::add-mask::${apiKey}
125373
+ `);
125374
+ }
125375
+ return apiKey;
125230
125376
  }
125231
125377
  /**
125232
125378
  * Uploads an archive to Nuget using "dotnet nuget"
125379
+ *
125380
+ * The key is passed as a `${...}` placeholder that spawnProcess fills in,
125381
+ * so it never shows up in the logged command line.
125233
125382
  */
125234
- async uploadAsset(path22) {
125383
+ async uploadAsset(path22, apiKey) {
125235
125384
  const args = [
125236
125385
  "nuget",
125237
125386
  "push",
125238
125387
  path22,
125239
125388
  "--api-key",
125240
- "${NUGET_API_TOKEN}",
125389
+ "${NUGET_API_KEY}",
125241
125390
  "--source",
125242
125391
  this.nugetConfig.serverUrl,
125243
125392
  "--timeout",
125244
125393
  "1800"
125245
125394
  ];
125246
- return spawnProcess(NUGET_DOTNET_BIN, args, DOTNET_SPAWN_OPTIONS);
125395
+ return spawnProcess(NUGET_DOTNET_BIN, args, {
125396
+ ...DOTNET_SPAWN_OPTIONS,
125397
+ env: { ...process.env, NUGET_API_KEY: apiKey }
125398
+ });
125247
125399
  }
125248
125400
  /**
125249
125401
  * Pushes a file, adding a hint when NuGet rejects it as a duplicate.
125250
125402
  */
125251
125403
  async push(path22) {
125404
+ const apiKey = await this.getApiKey();
125252
125405
  try {
125253
- await this.uploadAsset(path22);
125406
+ await this.uploadAsset(path22, apiKey);
125254
125407
  } catch (error3) {
125255
125408
  const message = error3 instanceof Error ? error3.message : String(error3);
125256
125409
  if (/\b409\b|already (contains|exists)/i.test(message)) {
@@ -158308,7 +158461,7 @@ function withoutSchema(server) {
158308
158461
  function errorMessage(err) {
158309
158462
  return err instanceof Error ? err.message : String(err);
158310
158463
  }
158311
- var import_fs23, import_path19, import_util23, DEFAULT_REGISTRY_URL, DEFAULT_MANIFEST, DEFAULT_NPM_REGISTRY_URL, GITHUB_TOKEN_ENV_VAR, OFFICIAL_META_KEY, REQUEST_TIMEOUT_MS, NPM_ATTEMPTS, NPM_RETRY_DELAY_MS, LISTING_ATTEMPTS, LISTING_RETRY_DELAY_MS, McpRegistryTarget;
158464
+ var import_fs23, import_path19, import_util23, DEFAULT_REGISTRY_URL, DEFAULT_MANIFEST, DEFAULT_NPM_REGISTRY_URL, GITHUB_TOKEN_ENV_VAR, OFFICIAL_META_KEY, REQUEST_TIMEOUT_MS3, NPM_ATTEMPTS, NPM_RETRY_DELAY_MS, LISTING_ATTEMPTS, LISTING_RETRY_DELAY_MS, McpRegistryTarget;
158312
158465
  var init_mcpRegistry = __esm({
158313
158466
  "src/targets/mcpRegistry.ts"() {
158314
158467
  "use strict";
@@ -158320,6 +158473,7 @@ var init_mcpRegistry = __esm({
158320
158473
  init_async();
158321
158474
  init_dryRun();
158322
158475
  init_errors2();
158476
+ init_githubOidc();
158323
158477
  init_helpers();
158324
158478
  init_base5();
158325
158479
  DEFAULT_REGISTRY_URL = "https://registry.modelcontextprotocol.io";
@@ -158327,7 +158481,7 @@ var init_mcpRegistry = __esm({
158327
158481
  DEFAULT_NPM_REGISTRY_URL = "https://registry.npmjs.org";
158328
158482
  GITHUB_TOKEN_ENV_VAR = "MCP_GITHUB_TOKEN";
158329
158483
  OFFICIAL_META_KEY = "io.modelcontextprotocol.registry/official";
158330
- REQUEST_TIMEOUT_MS = 3e4;
158484
+ REQUEST_TIMEOUT_MS3 = 3e4;
158331
158485
  NPM_ATTEMPTS = 30;
158332
158486
  NPM_RETRY_DELAY_MS = 1e4;
158333
158487
  LISTING_ATTEMPTS = 6;
@@ -158467,7 +158621,7 @@ var init_mcpRegistry = __esm({
158467
158621
  async getListing(name, version2) {
158468
158622
  const response = await fetch(this.listingUrl(name, version2), {
158469
158623
  headers: { Accept: "application/json" },
158470
- signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
158624
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS3)
158471
158625
  });
158472
158626
  if (response.status === 404) {
158473
158627
  return void 0;
@@ -158523,7 +158677,7 @@ var init_mcpRegistry = __esm({
158523
158677
  try {
158524
158678
  response = await fetch(url3, {
158525
158679
  headers: { Accept: "application/json" },
158526
- signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
158680
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS3)
158527
158681
  });
158528
158682
  reason = `HTTP ${response.status}`;
158529
158683
  } catch (err) {
@@ -158549,11 +158703,13 @@ var init_mcpRegistry = __esm({
158549
158703
  * `id-token: write`, otherwise exchanges `MCP_GITHUB_TOKEN`.
158550
158704
  */
158551
158705
  async getRegistryToken() {
158552
- const requestUrl = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
158553
- const requestToken = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
158554
- if (requestUrl && requestToken) {
158706
+ const oidcRequest = getGitHubOidcRequest();
158707
+ if (oidcRequest) {
158555
158708
  this.logger.debug("Authenticating with GitHub Actions OIDC");
158556
- const oidcToken = await this.getGitHubOidcToken(requestUrl, requestToken);
158709
+ const oidcToken = await getGitHubOidcToken(
158710
+ oidcRequest,
158711
+ new URL(this.mcpRegistryConfig.registryUrl).origin
158712
+ );
158557
158713
  return this.exchangeToken("github-oidc", { oidc_token: oidcToken });
158558
158714
  }
158559
158715
  const githubToken = process.env[GITHUB_TOKEN_ENV_VAR];
@@ -158565,34 +158721,6 @@ var init_mcpRegistry = __esm({
158565
158721
  `[mcp-registry] No credentials: run in GitHub Actions with "id-token: write" permission, or set ${GITHUB_TOKEN_ENV_VAR}`
158566
158722
  );
158567
158723
  }
158568
- /**
158569
- * Requests a GitHub Actions OIDC token. Its audience is the registry origin,
158570
- * which the registry checks (same as `mcp-publisher login github-oidc`).
158571
- */
158572
- async getGitHubOidcToken(requestUrl, requestToken) {
158573
- const url3 = new URL(requestUrl);
158574
- url3.searchParams.set(
158575
- "audience",
158576
- new URL(this.mcpRegistryConfig.registryUrl).origin
158577
- );
158578
- const response = await fetch(url3, {
158579
- headers: {
158580
- Accept: "application/json",
158581
- Authorization: `Bearer ${requestToken}`
158582
- },
158583
- signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
158584
- });
158585
- if (!response.ok) {
158586
- throw new Error(
158587
- `GitHub OIDC token request failed: HTTP ${response.status}`
158588
- );
158589
- }
158590
- const { value } = await response.json();
158591
- if (!value) {
158592
- throw new Error("GitHub OIDC token response has no token");
158593
- }
158594
- return value;
158595
- }
158596
158724
  /** Exchanges a GitHub credential for a short-lived registry token */
158597
158725
  async exchangeToken(method, body) {
158598
158726
  const response = await this.postJson(
@@ -158623,7 +158751,7 @@ var init_mcpRegistry = __esm({
158623
158751
  ...token ? { Authorization: `Bearer ${token}` } : {}
158624
158752
  },
158625
158753
  body: JSON.stringify(body),
158626
- signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
158754
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS3)
158627
158755
  }
158628
158756
  );
158629
158757
  if (!response.ok) {
@@ -230898,7 +231026,7 @@ var require_package7 = __commonJS({
230898
231026
  "package.json"(exports2, module2) {
230899
231027
  module2.exports = {
230900
231028
  name: "@sentry/craft",
230901
- version: "3.11.1",
231029
+ version: "3.12.0",
230902
231030
  description: "The universal sentry workflow CLI",
230903
231031
  main: "dist/craft",
230904
231032
  repository: "https://github.com/getsentry/craft",
@@ -231106,7 +231234,7 @@ function getPackage() {
231106
231234
  }
231107
231235
  function getPackageVersion3() {
231108
231236
  const { version: version2 } = getPackage();
231109
- const buildInfo = "866c07c3c690f0177fa94f340d24f9bc8f166936";
231237
+ const buildInfo = "0da9309228741a4c300d3c87ed7dcafa8f703525";
231110
231238
  return buildInfo ? `${version2} (${buildInfo})` : version2;
231111
231239
  }
231112
231240
  function semVerToString(s8) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/craft",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "description": "The universal sentry workflow CLI",
5
5
  "main": "dist/craft",
6
6
  "repository": "https://github.com/getsentry/craft",