@theholocron/holocron-plugin-checkly 5.0.0-alpha.560 → 5.0.0-alpha.562

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/README.md CHANGED
@@ -102,6 +102,7 @@ subscribed to a channel it is routed away from.
102
102
  the API check accordingly.
103
103
  - `monitoring.ensureAlertChannel(input)` / `monitoring.inspectAlertChannel(name)` — the Discord alert channel, its
104
104
  alert settings and its routed subscriptions.
105
+ - `holocron provider checkly whoami` — who the API key is (accounts it sees); no expiry exposed, no minting API.
105
106
  - `monitoring.whoami()` — lightweight auth probe (`GET /checks?limit=1`).
106
107
  - `monitoring.checks` — the configured check list, read by
107
108
  `holocron setup` to loop over `ensureCheck`.
package/dist/index.d.mts CHANGED
@@ -155,6 +155,7 @@ export declare function createPlugin(options: ChecklyPluginOptions): {
155
155
  token: import("@theholocron/cli").Probe;
156
156
  connection: import("@theholocron/cli").Probe;
157
157
  };
158
+ whoami: import("@theholocron/cli").ProviderAction;
158
159
  capabilities: {
159
160
  monitoring: () => Monitoring;
160
161
  };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthError, ProviderApiError, connectionProbe, createResolveToken, createRestClient, tokenExpectations } from "@theholocron/cli";
1
+ import { AuthError, ProviderApiError, connectionProbe, createResolveToken, createRestClient, tokenExpectations, whoamiAction } from "@theholocron/cli";
2
2
  import { DISCORD_TEMPLATE, createChecklyClient } from "@theholocron/checkly-client";
3
3
  import { createEnvLookup } from "@theholocron/env-utils/lookup";
4
4
  import { errorMessage } from "@theholocron/misc-utils";
@@ -1474,6 +1474,15 @@ function createPlugin(options) {
1474
1474
  })
1475
1475
  })
1476
1476
  },
1477
+ whoami: whoamiAction({
1478
+ provider: "checkly",
1479
+ token: () => resolveToken(options),
1480
+ verify: (token) => verifyToken(token, {
1481
+ baseUrl: options.baseUrl,
1482
+ fetch: options.fetch
1483
+ }),
1484
+ tokens
1485
+ }),
1477
1486
  capabilities: { monitoring: () => monitoring(ctx) }
1478
1487
  };
1479
1488
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-checkly",
3
- "version": "5.0.0-alpha.560",
3
+ "version": "5.0.0-alpha.562",
4
4
  "description": "Holocron plugin for Checkly. Implements the monitoring capability against Checkly's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
5
5
  "keywords": [
6
6
  "checkly",
@@ -41,16 +41,16 @@
41
41
  "tsx": "4.23.15",
42
42
  "typescript": "^6.0.3",
43
43
  "vitest": "^5.1.1",
44
- "@theholocron/checkly-client": "^1.58.0-alpha.61",
45
- "@theholocron/cli": "5.0.0-alpha.560",
46
- "@theholocron/http-client": "^1.58.0-alpha.61",
44
+ "@theholocron/checkly-client": "^1.58.0-alpha.62",
45
+ "@theholocron/cli": "5.0.0-alpha.562",
46
+ "@theholocron/http-client": "^1.58.0-alpha.62",
47
47
  "@theholocron/misc-utils": "^1.17.0-alpha.8",
48
48
  "@theholocron/tsconfig": "^8.9.0-alpha.24"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@theholocron/checkly-client": "^1.55.0",
52
52
  "@theholocron/misc-utils": "^1.16.0",
53
- "@theholocron/cli": "5.0.0-alpha.560"
53
+ "@theholocron/cli": "5.0.0-alpha.562"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=22"