@meetopenbot/slack 1.0.0 → 1.0.2

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
@@ -26,7 +26,7 @@ plugins:
26
26
  botToken: xoxb-your-bot-token
27
27
  teamId: T01234567
28
28
  authMode: credits
29
- model: openai/gpt-4o-mini
29
+ model: openai/gpt-6-luna
30
30
  channelMappings: "C01234567:engineering,C89ABCDEF:support"
31
31
  ```
32
32
 
package/dist/agent.js CHANGED
@@ -13,7 +13,7 @@ export async function* runSlackAgent(args) {
13
13
  }),
14
14
  },
15
15
  apiKey: args.botToken,
16
- model: args.model ?? "openai/gpt-4o-mini",
16
+ model: args.model ?? "openai/gpt-6-luna",
17
17
  system: SYSTEM_PROMPT,
18
18
  prompt: args.prompt,
19
19
  maxSteps: 10,
package/dist/config.js CHANGED
@@ -1,11 +1,11 @@
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";
5
5
  const modelField = await modelConfigField({
6
6
  providers: ["openai"],
7
7
  override: true,
8
- defaultValue: "openai/gpt-4o-mini",
8
+ defaultValue: "openai/gpt-6-luna",
9
9
  });
10
10
  export const pluginConfigSchema = {
11
11
  type: "object",
@@ -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 = ["Slack agent setup is incomplete. Set these workspace variables:"];
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("- `SLACK_BOT_TOKEN` — Slack bot OAuth token (`xoxb-…`)");
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("- `SLACK_TEAM_ID` — workspace team id (`T…`)");
64
+ lines.push(`- [\`SLACK_TEAM_ID\`](${settingsVariablesPath("SLACK_TEAM_ID")}) — workspace team id (\`T…\`)`);
63
65
  }
64
66
  return lines.join("\n");
65
67
  }
@@ -67,7 +69,7 @@ export function resolveSlackCredentials(config) {
67
69
  const signingSecret = lookupSecret({ envKeys: ["SLACK_SIGNING_SECRET"] }) ?? "";
68
70
  const botToken = lookupSecret({ envKeys: ["SLACK_BOT_TOKEN"] });
69
71
  const teamId = lookupSecret({ envKeys: ["SLACK_TEAM_ID"] });
70
- const model = trimmedString(config.model) ?? "openai/gpt-4o-mini";
72
+ const model = trimmedString(config.model) ?? "openai/gpt-6-luna";
71
73
  const missing = [];
72
74
  if (!botToken)
73
75
  missing.push("botToken");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/slack",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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.0"
22
+ "@meetopenbot/plugin-sdk": "^1.2.2"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^20.10.1",