@theholocron/holocron-plugin-slack 5.0.0-alpha.231 → 5.0.0-alpha.233

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
@@ -42,6 +42,9 @@ declare function createContext(options?: SlackPluginOptions): PluginContext;
42
42
  declare function notifications(ctx: PluginContext): Notifications;
43
43
  declare function createPlugin(options?: SlackPluginOptions): {
44
44
  name: string;
45
+ probes: {
46
+ connection: import("@theholocron/cli").Probe;
47
+ };
45
48
  capabilities: {
46
49
  notifications: () => Notifications;
47
50
  };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { AuthError, createResolveToken } from "@theholocron/cli";
1
+ import { AuthError, connectionProbe, createResolveToken } from "@theholocron/cli";
2
2
  import { createSlackClient } from "@theholocron/slack-client";
3
3
  import { errorMessage } from "@theholocron/misc-utils";
4
4
  //#region src/auth.ts
@@ -66,6 +66,16 @@ function createPlugin(options = {}) {
66
66
  const ctx = createContext(options);
67
67
  return {
68
68
  name: "@theholocron/holocron-plugin-slack",
69
+ probes: { connection: connectionProbe({
70
+ provider: "Slack",
71
+ url: options.baseUrl ?? "https://slack.com",
72
+ fetch: options.fetch,
73
+ token: () => resolveToken(options),
74
+ verify: (token) => verifyToken(token, {
75
+ baseUrl: options.baseUrl,
76
+ fetch: options.fetch
77
+ })
78
+ }) },
69
79
  capabilities: { notifications: () => notifications(ctx) }
70
80
  };
71
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-slack",
3
- "version": "5.0.0-alpha.231",
3
+ "version": "5.0.0-alpha.233",
4
4
  "description": "Holocron plugin for Slack. Implements the notifications capability via Slack's bot API.",
5
5
  "keywords": [
6
6
  "holocron",
@@ -48,12 +48,12 @@
48
48
  "tsx": "4.23.15",
49
49
  "typescript": "^5.9.3",
50
50
  "vitest": "^4.1.11",
51
- "@theholocron/cli": "5.0.0-alpha.231"
51
+ "@theholocron/cli": "5.0.0-alpha.233"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@theholocron/misc-utils": "^1.16.0",
55
55
  "@theholocron/slack-client": "^1.43.1",
56
- "@theholocron/cli": "5.0.0-alpha.231"
56
+ "@theholocron/cli": "5.0.0-alpha.233"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=22"