mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 18:21:27 +00:00
When HTTPS_PROXY or HTTP_PROXY env vars are set, create an HttpsProxyAgent and pass it as the `agent` option through @slack/bolt → @slack/socket-mode → ws, so the WebSocket upgrade request is tunneled through the proxy. This fixes Slack Socket Mode in environments where all outbound traffic must go through an HTTP CONNECT proxy (e.g. sandboxed containers, corporate networks). Previously the ws library opened a direct connection to wss-primary.slack.com, ignoring proxy env vars entirely. The approach mirrors the existing Discord gateway proxy support (extensions/discord/src/monitor/gateway-plugin.ts) which uses the same https-proxy-agent library. Fixes #57405
40 lines
949 B
JSON
40 lines
949 B
JSON
{
|
|
"name": "@openclaw/slack",
|
|
"version": "2026.4.8",
|
|
"private": true,
|
|
"description": "OpenClaw Slack channel plugin",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@slack/bolt": "^4.6.0",
|
|
"@slack/web-api": "^7.15.0",
|
|
"https-proxy-agent": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@openclaw/plugin-sdk": "workspace:*"
|
|
},
|
|
"openclaw": {
|
|
"extensions": [
|
|
"./index.ts"
|
|
],
|
|
"setupEntry": "./setup-entry.ts",
|
|
"channel": {
|
|
"id": "slack",
|
|
"label": "Slack",
|
|
"selectionLabel": "Slack (Socket Mode)",
|
|
"detailLabel": "Slack Bot",
|
|
"docsPath": "/channels/slack",
|
|
"docsLabel": "slack",
|
|
"blurb": "supported (Socket Mode).",
|
|
"systemImage": "number",
|
|
"markdownCapable": true,
|
|
"configuredState": {
|
|
"specifier": "./configured-state",
|
|
"exportName": "hasSlackConfiguredState"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"stageRuntimeDependencies": true
|
|
}
|
|
}
|
|
}
|