@theholocron/holocron-plugin-checkly 5.0.0-alpha.231 → 5.0.0-alpha.232

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
@@ -81,7 +81,9 @@ declare function createContext(options: ChecklyPluginOptions): PluginContext;
81
81
  declare function monitoring(ctx: PluginContext): Monitoring;
82
82
  declare function createPlugin(options: ChecklyPluginOptions): {
83
83
  name: string;
84
- probes: import("@theholocron/cli").PluginProbes;
84
+ probes: {
85
+ connection: import("@theholocron/cli").Probe;
86
+ };
85
87
  capabilities: {
86
88
  monitoring: () => Monitoring;
87
89
  };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthError, ProviderApiError, createResolveToken, createRestClient } from "@theholocron/cli";
1
+ import { AuthError, ProviderApiError, connectionProbe, createResolveToken, createRestClient } from "@theholocron/cli";
2
2
  import { DISCORD_TEMPLATE, createChecklyClient } from "@theholocron/checkly-client";
3
3
  import { errorMessage } from "@theholocron/misc-utils";
4
4
  //#region src/auth.ts
@@ -504,7 +504,19 @@ function createPlugin(options) {
504
504
  const ctx = createContext(options);
505
505
  return {
506
506
  name: "@theholocron/holocron-plugin-checkly",
507
- probes: checklyProbes({ client: ctx.client }),
507
+ probes: {
508
+ ...checklyProbes({ client: ctx.client }),
509
+ connection: connectionProbe({
510
+ provider: "Checkly",
511
+ url: options.baseUrl ?? "https://api.checklyhq.com",
512
+ fetch: options.fetch,
513
+ token: () => resolveToken(options),
514
+ verify: (token) => verifyToken(token, {
515
+ baseUrl: options.baseUrl,
516
+ fetch: options.fetch
517
+ })
518
+ })
519
+ },
508
520
  capabilities: { monitoring: () => monitoring(ctx) }
509
521
  };
510
522
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-checkly",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.232",
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",
@@ -42,12 +42,12 @@
42
42
  "tsx": "4.23.15",
43
43
  "typescript": "^5.9.3",
44
44
  "vitest": "^4.1.11",
45
- "@theholocron/cli": "5.0.0-alpha.231"
45
+ "@theholocron/cli": "5.0.0-alpha.232"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@theholocron/checkly-client": "^1.55.0",
49
49
  "@theholocron/misc-utils": "^1.16.0",
50
- "@theholocron/cli": "5.0.0-alpha.231"
50
+ "@theholocron/cli": "5.0.0-alpha.232"
51
51
  },
52
52
  "engines": {
53
53
  "node": ">=22"