Files
Peter Steinberger 99d662473c fix(channels): fail-fast headless channel setup with plugin-declared env contracts (#122530)
* fix(channels): validate headless channel setup

* docs(channels): document headless provisioning

* fix(channels): repair setup metadata typing

* chore(channels): regenerate official channel catalog for env metadata

* fix(slack): keep mode-conditional env contract plugin-owned

Static --use-env declaration keeps only the unconditional SLACK_BOT_TOKEN;
socket-vs-HTTP conditional requirements (app token, signing secret) stay in
Slack's own setup validation so HTTP mode no longer demands an irrelevant
SLACK_APP_TOKEN.

* chore(sdk): regenerate api baselines and catalog after rebase

* fix(slack): align manifest env declaration with runtime contract

* chore(sdk): regenerate api baselines after rebase

* chore(sdk): regenerate api baselines after rebase

* chore(sdk): regenerate api baselines after rebase
2026-08-12 17:12:15 +00:00

167 lines
4.0 KiB
JSON

{
"name": "@openclaw/slack",
"version": "2026.8.1",
"description": "OpenClaw Slack channel plugin for channels, DMs, commands, and app events.",
"repository": {
"type": "git",
"url": "https://github.com/openclaw/openclaw"
},
"type": "module",
"dependencies": {
"@slack/bolt": "5.0.0",
"@slack/socket-mode": "3.0.0",
"@slack/types": "3.0.0",
"@slack/web-api": "8.0.0",
"get-east-asian-width": "1.6.0",
"p-map": "7.0.6",
"typebox": "1.3.6",
"undici": "7.29.0",
"ws": "8.21.1",
"zod": "4.4.3"
},
"devDependencies": {
"@openclaw/plugin-sdk": "workspace:*",
"openclaw": "workspace:*"
},
"peerDependencies": {
"openclaw": ">=2026.8.1"
},
"peerDependenciesMeta": {
"openclaw": {
"optional": true
}
},
"openclaw": {
"extensions": [
"./index.ts"
],
"setupEntry": "./setup-entry.ts",
"setupFeatures": {
"configPromotion": true
},
"channel": {
"id": "slack",
"configuredState": {
"env": {
"anyOf": [
"SLACK_BOT_TOKEN",
"SLACK_APP_TOKEN",
"SLACK_USER_TOKEN"
]
}
},
"approvalFlags": [
"native"
],
"label": "Slack",
"selectionLabel": "Slack (Socket Mode)",
"detailLabel": "Slack Bot",
"docsPath": "/channels/slack",
"docsLabel": "slack",
"blurb": "supported (Socket Mode).",
"systemImage": "number",
"markdownCapable": true,
"doctorCapabilities": {
"dmAllowFromMode": "topOnly",
"groupModel": "route",
"groupAllowFromFallbackToAllowFrom": false,
"warnOnEmptyGroupSenderAllowlist": false
},
"commands": {
"nativeCommandsAutoEnabled": false,
"nativeSkillsAutoEnabled": false
},
"setup": {
"fields": [
{
"key": "botToken",
"kind": "string",
"sensitive": true,
"cli": {
"flags": "--bot-token <token>",
"description": "Slack bot token"
}
},
{
"key": "appToken",
"kind": "string",
"sensitive": true,
"cli": {
"flags": "--app-token <token>",
"description": "Slack app token"
}
},
{
"key": "userToken",
"kind": "string",
"sensitive": true,
"cli": {
"flags": "--user-token <token>",
"description": "Slack user token"
}
},
{
"key": "signingSecret",
"kind": "string",
"sensitive": true,
"cli": {
"flags": "--signing-secret <secret>",
"description": "Slack signing secret"
}
},
{
"key": "identity",
"kind": "choice",
"choices": [
"bot",
"user"
],
"cli": {
"flags": "--identity <kind>",
"description": "Slack identity"
}
},
{
"key": "mode",
"kind": "choice",
"choices": [
"socket",
"http"
],
"cli": {
"flags": "--mode <mode>",
"description": "Slack connection mode"
}
},
{
"key": "useEnv",
"kind": "boolean",
"cli": {
"flags": "--use-env",
"description": "Use Slack environment credentials"
},
"envVars": ["SLACK_BOT_TOKEN"]
}
]
}
},
"install": {
"npmSpec": "@openclaw/slack",
"defaultChoice": "npm",
"minHostVersion": ">=2026.5.28",
"allowInvalidConfigRecovery": true
},
"compat": {
"pluginApi": ">=2026.8.1"
},
"build": {
"openclawVersion": "2026.8.1",
"bundledDist": false
},
"release": {
"publishToClawHub": true,
"publishToNpm": true
}
}
}