@meetopenbot/slack 1.0.0 → 1.0.1
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/config.js +6 -4
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lookupSecret, modelConfigField, trimmedString, } from "@meetopenbot/plugin-sdk";
|
|
1
|
+
import { lookupSecret, modelConfigField, settingsVariablesPath, SETTINGS_VARIABLES_MARKDOWN, trimmedString, } from "@meetopenbot/plugin-sdk";
|
|
2
2
|
export const DEFAULT_OPENBOT_CHANNEL_ID = "general";
|
|
3
3
|
export const ROUTING_AGENT_ID = "system";
|
|
4
4
|
export const SLACK_USER_DISPLAY_NAME = "Slack user";
|
|
@@ -54,12 +54,14 @@ export function resolveSlackSigningSecret() {
|
|
|
54
54
|
return lookupSecret({ envKeys: ["SLACK_SIGNING_SECRET"] });
|
|
55
55
|
}
|
|
56
56
|
export function formatMissingCredentials(missing) {
|
|
57
|
-
const lines = [
|
|
57
|
+
const lines = [
|
|
58
|
+
`Slack agent setup is incomplete. Set these workspace variables in ${SETTINGS_VARIABLES_MARKDOWN}:`,
|
|
59
|
+
];
|
|
58
60
|
if (missing.includes("botToken")) {
|
|
59
|
-
lines.push(
|
|
61
|
+
lines.push(`- [\`SLACK_BOT_TOKEN\`](${settingsVariablesPath("SLACK_BOT_TOKEN")}) — Slack bot OAuth token (\`xoxb-…\`). You can get one from https://api.slack.com/apps.`);
|
|
60
62
|
}
|
|
61
63
|
if (missing.includes("teamId")) {
|
|
62
|
-
lines.push(
|
|
64
|
+
lines.push(`- [\`SLACK_TEAM_ID\`](${settingsVariablesPath("SLACK_TEAM_ID")}) — workspace team id (\`T…\`)`);
|
|
63
65
|
}
|
|
64
66
|
return lines.join("\n");
|
|
65
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetopenbot/slack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Slack Events API ingress, simple agent replies, and thread delivery for OpenBot",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@meetopenbot/plugin-sdk": "^1.0.
|
|
22
|
+
"@meetopenbot/plugin-sdk": "^1.0.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^20.10.1",
|