@theholocron/holocron-plugin-sentry 5.0.0-alpha.270 → 5.0.0-alpha.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { AuthError, EnsureRelayInput, EnsureRelayResult, Errors, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
1
+ import { AuthError, EnsureRelayInput, EnsureRelayResult, Errors, PluginToken, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
2
2
  import { SentryClient, SentryClientOptions, createSentryClient } from "@theholocron/sentry-client";
3
- export declare const resolveToken: (input?: ResolveTokenInput) => string;
3
+ export declare const resolveToken: import("@theholocron/cli").TokenResolver;
4
4
  /**
5
5
  * The token for the Comlink relay: an integration, its client secret and an alert rule need more than the general token
6
6
  * (`alerts:write`, `org:write`, `event:read`), so it has its own.
@@ -11,6 +11,8 @@ export declare const resolveComlinkToken: import("@theholocron/cli").FeatureReso
11
11
  * fallback only helps if the general token happens to carry the scopes; otherwise Sentry's answer names what is missing.
12
12
  */
13
13
  export declare function resolveRelayToken(input?: ResolveTokenInput): string;
14
+ /** Every token this plugin takes, for `holocron doctor tokens`: the general one and the Comlink relay's own. */
15
+ export declare const tokens: PluginToken[];
14
16
  interface SentryErrorsOptions {
15
17
  /** Sentry organization slug. Required for `whoami` and `ensureProject`. */
16
18
  org?: string;
package/dist/index.mjs CHANGED
@@ -30,6 +30,8 @@ function resolveRelayToken(input = {}) {
30
30
  return resolveToken(input);
31
31
  }
32
32
  }
33
+ /** Every token this plugin takes, for `holocron doctor tokens`: the general one and the Comlink relay's own. */
34
+ const tokens = [resolveToken.token, resolveComlinkToken.token];
33
35
  // src/capabilities/relay.ts
34
36
  /** What the integration needs to read: the alert's event. It is also why reading its secret needs the same scope. */
35
37
  const INTEGRATION_SCOPES = ["event:read"];
@@ -601,4 +603,4 @@ function createPlugin(options) {
601
603
  };
602
604
  }
603
605
  const AUTH_HINT = "generate an auth token at https://sentry.io/settings/account/api/auth-tokens/ with project:read, project:write, and org:read scopes, then run: holocron auth set sentry <TOKEN>";
604
- export { AUTH_HINT, AuthError, SentryErrors, createContext, createPlugin, createSentryClient, errors, resolveComlinkToken, resolveRelayToken, resolveToken, verifyToken };
606
+ export { AUTH_HINT, AuthError, SentryErrors, createContext, createPlugin, createSentryClient, errors, resolveComlinkToken, resolveRelayToken, resolveToken, tokens, verifyToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-sentry",
3
- "version": "5.0.0-alpha.270",
3
+ "version": "5.0.0-alpha.272",
4
4
  "description": "Holocron plugin for Sentry. Implements the errors capability against Sentry's management API — project provisioning and DSN retrieval.",
5
5
  "keywords": [
6
6
  "errors",
@@ -41,19 +41,19 @@
41
41
  "tsx": "4.23.15",
42
42
  "typescript": "^5.9.3",
43
43
  "vitest": "^5.0.5",
44
- "@theholocron/eslint-config": "^8.9.0-alpha.3",
45
- "@theholocron/cli": "5.0.0-alpha.270",
44
+ "@theholocron/cli": "5.0.0-alpha.272",
46
45
  "@theholocron/http-client": "^1.58.0-alpha.2",
46
+ "@theholocron/eslint-config": "^8.9.0-alpha.3",
47
+ "@theholocron/misc-utils": "^1.16.1-alpha.1",
47
48
  "@theholocron/tsconfig": "^8.9.0-alpha.3",
48
- "@theholocron/vitest-config": "^8.9.0-alpha.3",
49
49
  "@theholocron/tsdown-config": "^8.9.0-alpha.3",
50
- "@theholocron/sentry-client": "^1.58.0-alpha.2",
51
- "@theholocron/misc-utils": "^1.16.1-alpha.1"
50
+ "@theholocron/vitest-config": "^8.9.0-alpha.3",
51
+ "@theholocron/sentry-client": "^1.58.0-alpha.2"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@theholocron/misc-utils": "^1.16.0",
55
55
  "@theholocron/sentry-client": "^1.56.0",
56
- "@theholocron/cli": "5.0.0-alpha.270"
56
+ "@theholocron/cli": "5.0.0-alpha.272"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@theholocron/sentry-client": {}