@theholocron/holocron-plugin-slack 5.0.0-alpha.270 → 5.0.0-alpha.271
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 +4 -2
- package/dist/index.mjs +3 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AuthError, Notifications, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, Notifications, PluginToken, ResolveTokenInput, VerifyTokenFailure, VerifyTokenResult, VerifyTokenResult as VerifyTokenResult$1, VerifyTokenSuccess } from "@theholocron/cli";
|
|
2
2
|
import { SlackClient, SlackClientOptions, createSlackClient } from "@theholocron/slack-client";
|
|
3
|
-
export declare const resolveToken: (
|
|
3
|
+
export declare const resolveToken: import("@theholocron/cli").TokenResolver;
|
|
4
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
5
|
+
export declare const tokens: PluginToken[];
|
|
4
6
|
interface SlackNotificationsOptions {
|
|
5
7
|
/** Default channel id used when `send()` is called without an explicit channel. */
|
|
6
8
|
defaultChannel?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,8 @@ const resolveToken = createResolveToken({
|
|
|
8
8
|
keyringService: "slack",
|
|
9
9
|
errorMessage: "no Slack bot token found. Pass --token <TOKEN>, set HOLOCRON_SLACK_TOKEN / SLACK_BOT_TOKEN, or run: holocron auth set slack <xoxb-TOKEN>"
|
|
10
10
|
});
|
|
11
|
+
/** Every token this plugin takes, for `holocron doctor tokens`. */
|
|
12
|
+
const tokens = [resolveToken.token];
|
|
11
13
|
// src/capabilities/notifications.ts
|
|
12
14
|
var SlackNotifications = class {
|
|
13
15
|
client;
|
|
@@ -77,4 +79,4 @@ function createPlugin(options = {}) {
|
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
81
|
const AUTH_HINT = "create a Slack app at https://api.slack.com/apps, add the chat:write bot scope, install it to your workspace, copy the Bot User OAuth Token (xoxb-...), then run: holocron auth set slack <xoxb-TOKEN>";
|
|
80
|
-
export { AUTH_HINT, AuthError, SlackNotifications, createContext, createPlugin, createSlackClient, notifications, resolveToken, verifyToken };
|
|
82
|
+
export { AUTH_HINT, AuthError, SlackNotifications, createContext, createPlugin, createSlackClient, notifications, resolveToken, tokens, verifyToken };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-slack",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.271",
|
|
4
4
|
"description": "Holocron plugin for Slack. Implements the notifications capability via Slack's bot API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holocron",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"tsx": "4.23.15",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
43
|
"vitest": "^5.0.5",
|
|
44
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
45
|
-
"@theholocron/http-client": "^1.58.0-alpha.2",
|
|
44
|
+
"@theholocron/cli": "5.0.0-alpha.271",
|
|
46
45
|
"@theholocron/eslint-config": "^8.9.0-alpha.3",
|
|
46
|
+
"@theholocron/http-client": "^1.58.0-alpha.2",
|
|
47
|
+
"@theholocron/slack-client": "^1.58.0-alpha.2",
|
|
48
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.3",
|
|
47
49
|
"@theholocron/misc-utils": "^1.16.1-alpha.1",
|
|
48
50
|
"@theholocron/tsconfig": "^8.9.0-alpha.3",
|
|
49
|
-
"@theholocron/
|
|
50
|
-
"@theholocron/vitest-config": "^8.9.0-alpha.3",
|
|
51
|
-
"@theholocron/slack-client": "^1.58.0-alpha.2"
|
|
51
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.3"
|
|
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.
|
|
56
|
+
"@theholocron/cli": "5.0.0-alpha.271"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=22"
|