@quantumclaw/quantumclaw 2026.3.22
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/CHANGELOG.md +4601 -0
- package/LICENSE +21 -0
- package/README.md +559 -0
- package/assets/avatar-placeholder.svg +19 -0
- package/assets/chrome-extension/icons/icon128.png +0 -0
- package/assets/chrome-extension/icons/icon16.png +0 -0
- package/assets/chrome-extension/icons/icon32.png +0 -0
- package/assets/chrome-extension/icons/icon48.png +0 -0
- package/assets/dmg-background-small.png +0 -0
- package/assets/dmg-background.png +0 -0
- package/docs/.i18n/README.md +31 -0
- package/docs/.i18n/glossary.ja-JP.json +14 -0
- package/docs/.i18n/glossary.zh-CN.json +302 -0
- package/docs/.i18n/ja-JP.tm.jsonl +0 -0
- package/docs/assets/install-script.svg +1 -0
- package/docs/assets/macos-onboarding/01-macos-warning.jpeg +0 -0
- package/docs/assets/macos-onboarding/02-local-networks.jpeg +0 -0
- package/docs/assets/macos-onboarding/03-security-notice.png +0 -0
- package/docs/assets/macos-onboarding/04-choose-gateway.png +0 -0
- package/docs/assets/macos-onboarding/05-permissions.png +0 -0
- package/docs/assets/pixel-lobster.svg +60 -0
- package/docs/assets/quantumclaw-logo-text-dark.png +0 -0
- package/docs/assets/quantumclaw-logo-text-dark.svg +418 -0
- package/docs/assets/quantumclaw-logo-text.png +0 -0
- package/docs/assets/quantumclaw-logo-text.svg +418 -0
- package/docs/assets/showcase/agents-ui.jpg +0 -0
- package/docs/assets/showcase/bambu-cli.png +0 -0
- package/docs/assets/showcase/codexmonitor.png +0 -0
- package/docs/assets/showcase/gohome-grafana.png +0 -0
- package/docs/assets/showcase/ios-testflight.jpg +0 -0
- package/docs/assets/showcase/oura-health.png +0 -0
- package/docs/assets/showcase/padel-cli.svg +11 -0
- package/docs/assets/showcase/padel-screenshot.jpg +0 -0
- package/docs/assets/showcase/papla-tts.jpg +0 -0
- package/docs/assets/showcase/pr-review-telegram.jpg +0 -0
- package/docs/assets/showcase/roborock-screenshot.jpg +0 -0
- package/docs/assets/showcase/roborock-status.svg +13 -0
- package/docs/assets/showcase/roof-camera-sky.jpg +0 -0
- package/docs/assets/showcase/snag.png +0 -0
- package/docs/assets/showcase/tesco-shop.jpg +0 -0
- package/docs/assets/showcase/wienerlinien.png +0 -0
- package/docs/assets/showcase/wine-cellar-skill.jpg +0 -0
- package/docs/assets/showcase/winix-air-purifier.jpg +0 -0
- package/docs/assets/showcase/xuezh-pronunciation.jpeg +0 -0
- package/docs/assets/sponsors/blacksmith.svg +14 -0
- package/docs/assets/sponsors/convex.svg +16 -0
- package/docs/assets/sponsors/openai.svg +3 -0
- package/docs/assets/sponsors/vercel.svg +5 -0
- package/docs/auth-credential-semantics.md +53 -0
- package/docs/automation/auth-monitoring.md +44 -0
- package/docs/automation/cron-jobs.md +727 -0
- package/docs/automation/cron-vs-heartbeat.md +286 -0
- package/docs/automation/gmail-pubsub.md +256 -0
- package/docs/automation/hooks.md +1056 -0
- package/docs/automation/poll.md +86 -0
- package/docs/automation/standing-orders.md +251 -0
- package/docs/automation/troubleshooting.md +122 -0
- package/docs/automation/webhook.md +217 -0
- package/docs/brave-search.md +93 -0
- package/docs/channels/bluebubbles.md +347 -0
- package/docs/channels/broadcast-groups.md +442 -0
- package/docs/channels/channel-routing.md +139 -0
- package/docs/channels/discord.md +1229 -0
- package/docs/channels/feishu.md +747 -0
- package/docs/channels/googlechat.md +261 -0
- package/docs/channels/group-messages.md +84 -0
- package/docs/channels/groups.md +379 -0
- package/docs/channels/imessage.md +367 -0
- package/docs/channels/index.md +47 -0
- package/docs/channels/irc.md +242 -0
- package/docs/channels/line.md +194 -0
- package/docs/channels/location.md +56 -0
- package/docs/channels/matrix.md +677 -0
- package/docs/channels/mattermost.md +427 -0
- package/docs/channels/msteams.md +780 -0
- package/docs/channels/nextcloud-talk.md +138 -0
- package/docs/channels/nostr.md +249 -0
- package/docs/channels/pairing.md +114 -0
- package/docs/channels/signal.md +329 -0
- package/docs/channels/slack.md +603 -0
- package/docs/channels/synology-chat.md +134 -0
- package/docs/channels/telegram.md +987 -0
- package/docs/channels/tlon.md +276 -0
- package/docs/channels/troubleshooting.md +118 -0
- package/docs/channels/twitch.md +379 -0
- package/docs/channels/whatsapp.md +460 -0
- package/docs/channels/zalo.md +243 -0
- package/docs/channels/zalouser.md +181 -0
- package/docs/ci.md +55 -0
- package/docs/cli/acp.md +288 -0
- package/docs/cli/agent.md +29 -0
- package/docs/cli/agents.md +123 -0
- package/docs/cli/approvals.md +50 -0
- package/docs/cli/backup.md +76 -0
- package/docs/cli/browser.md +106 -0
- package/docs/cli/channels.md +102 -0
- package/docs/cli/clawbot.md +21 -0
- package/docs/cli/completion.md +35 -0
- package/docs/cli/config.md +295 -0
- package/docs/cli/configure.md +36 -0
- package/docs/cli/cron.md +77 -0
- package/docs/cli/daemon.md +53 -0
- package/docs/cli/dashboard.md +22 -0
- package/docs/cli/devices.md +139 -0
- package/docs/cli/directory.md +63 -0
- package/docs/cli/dns.md +23 -0
- package/docs/cli/docs.md +15 -0
- package/docs/cli/doctor.md +48 -0
- package/docs/cli/gateway.md +235 -0
- package/docs/cli/health.md +21 -0
- package/docs/cli/hooks.md +329 -0
- package/docs/cli/index.md +1150 -0
- package/docs/cli/logs.md +28 -0
- package/docs/cli/memory.md +66 -0
- package/docs/cli/message.md +278 -0
- package/docs/cli/models.md +81 -0
- package/docs/cli/node.md +127 -0
- package/docs/cli/nodes.md +75 -0
- package/docs/cli/onboard.md +157 -0
- package/docs/cli/pairing.md +32 -0
- package/docs/cli/plugins.md +210 -0
- package/docs/cli/qr.md +46 -0
- package/docs/cli/reset.md +20 -0
- package/docs/cli/sandbox.md +197 -0
- package/docs/cli/secrets.md +188 -0
- package/docs/cli/security.md +79 -0
- package/docs/cli/sessions.md +110 -0
- package/docs/cli/setup.md +29 -0
- package/docs/cli/skills.md +36 -0
- package/docs/cli/status.md +30 -0
- package/docs/cli/system.md +60 -0
- package/docs/cli/tui.md +30 -0
- package/docs/cli/uninstall.md +20 -0
- package/docs/cli/update.md +103 -0
- package/docs/cli/voicecall.md +34 -0
- package/docs/cli/webhooks.md +25 -0
- package/docs/concepts/agent-loop.md +148 -0
- package/docs/concepts/agent-workspace.md +236 -0
- package/docs/concepts/agent.md +122 -0
- package/docs/concepts/architecture.md +137 -0
- package/docs/concepts/compaction.md +123 -0
- package/docs/concepts/context-engine.md +268 -0
- package/docs/concepts/context.md +172 -0
- package/docs/concepts/delegate-architecture.md +296 -0
- package/docs/concepts/features.md +73 -0
- package/docs/concepts/markdown-formatting.md +130 -0
- package/docs/concepts/memory.md +108 -0
- package/docs/concepts/messages.md +154 -0
- package/docs/concepts/model-failover.md +152 -0
- package/docs/concepts/model-providers.md +607 -0
- package/docs/concepts/models.md +225 -0
- package/docs/concepts/multi-agent.md +552 -0
- package/docs/concepts/oauth.md +158 -0
- package/docs/concepts/presence.md +102 -0
- package/docs/concepts/queue.md +89 -0
- package/docs/concepts/retry.md +69 -0
- package/docs/concepts/session-pruning.md +121 -0
- package/docs/concepts/session-tool.md +242 -0
- package/docs/concepts/session.md +310 -0
- package/docs/concepts/streaming.md +155 -0
- package/docs/concepts/system-prompt.md +132 -0
- package/docs/concepts/timezone.md +91 -0
- package/docs/concepts/typebox.md +291 -0
- package/docs/concepts/typing-indicators.md +68 -0
- package/docs/concepts/usage-tracking.md +35 -0
- package/docs/date-time.md +128 -0
- package/docs/debug/node-issue.md +85 -0
- package/docs/diagnostics/flags.md +91 -0
- package/docs/docs.json +2078 -0
- package/docs/gateway/authentication.md +179 -0
- package/docs/gateway/background-process.md +97 -0
- package/docs/gateway/bonjour.md +177 -0
- package/docs/gateway/bridge-protocol.md +91 -0
- package/docs/gateway/cli-backends.md +225 -0
- package/docs/gateway/configuration-examples.md +651 -0
- package/docs/gateway/configuration-reference.md +3123 -0
- package/docs/gateway/configuration.md +633 -0
- package/docs/gateway/discovery.md +123 -0
- package/docs/gateway/doctor.md +362 -0
- package/docs/gateway/gateway-lock.md +34 -0
- package/docs/gateway/health.md +44 -0
- package/docs/gateway/heartbeat.md +393 -0
- package/docs/gateway/index.md +261 -0
- package/docs/gateway/local-models.md +152 -0
- package/docs/gateway/logging.md +113 -0
- package/docs/gateway/multiple-gateways.md +112 -0
- package/docs/gateway/network-model.md +22 -0
- package/docs/gateway/openai-http-api.md +132 -0
- package/docs/gateway/openresponses-http-api.md +295 -0
- package/docs/gateway/openshell.md +307 -0
- package/docs/gateway/pairing.md +99 -0
- package/docs/gateway/protocol.md +267 -0
- package/docs/gateway/remote-gateway-readme.md +158 -0
- package/docs/gateway/remote.md +153 -0
- package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +134 -0
- package/docs/gateway/sandboxing.md +469 -0
- package/docs/gateway/secrets-plan-contract.md +116 -0
- package/docs/gateway/secrets.md +503 -0
- package/docs/gateway/security/index.md +1220 -0
- package/docs/gateway/tailscale.md +132 -0
- package/docs/gateway/tools-invoke-http-api.md +118 -0
- package/docs/gateway/troubleshooting.md +378 -0
- package/docs/gateway/trusted-proxy-auth.md +330 -0
- package/docs/help/debugging.md +168 -0
- package/docs/help/environment.md +163 -0
- package/docs/help/faq.md +2997 -0
- package/docs/help/index.md +28 -0
- package/docs/help/scripts.md +28 -0
- package/docs/help/testing.md +526 -0
- package/docs/help/troubleshooting.md +297 -0
- package/docs/images/configure-model-picker-unsearchable.png +0 -0
- package/docs/images/feishu-step2-create-app.png +0 -0
- package/docs/images/feishu-step3-credentials.png +0 -0
- package/docs/images/feishu-step4-permissions.png +0 -0
- package/docs/images/feishu-step5-bot-capability.png +0 -0
- package/docs/images/feishu-step6-event-subscription.png +0 -0
- package/docs/images/feishu-verification-token.png +0 -0
- package/docs/images/groups-flow.svg +52 -0
- package/docs/images/mobile-ui-screenshot.png +0 -0
- package/docs/index.md +196 -0
- package/docs/install/ansible.md +230 -0
- package/docs/install/azure.md +311 -0
- package/docs/install/bun.md +55 -0
- package/docs/install/development-channels.md +120 -0
- package/docs/install/digitalocean.md +129 -0
- package/docs/install/docker-vm-runtime.md +142 -0
- package/docs/install/docker.md +375 -0
- package/docs/install/exe-dev.md +126 -0
- package/docs/install/fly.md +501 -0
- package/docs/install/gcp.md +402 -0
- package/docs/install/hetzner.md +251 -0
- package/docs/install/index.md +183 -0
- package/docs/install/installer.md +415 -0
- package/docs/install/kubernetes.md +191 -0
- package/docs/install/macos-vm.md +281 -0
- package/docs/install/migrating-matrix.md +346 -0
- package/docs/install/migrating.md +110 -0
- package/docs/install/nix.md +89 -0
- package/docs/install/node.md +138 -0
- package/docs/install/northflank.mdx +54 -0
- package/docs/install/oracle.md +156 -0
- package/docs/install/podman.md +133 -0
- package/docs/install/railway.mdx +100 -0
- package/docs/install/raspberry-pi.md +159 -0
- package/docs/install/render.mdx +169 -0
- package/docs/install/uninstall.md +128 -0
- package/docs/install/updating.md +128 -0
- package/docs/ja-JP/index.md +186 -0
- package/docs/ja-JP/start/getting-started.md +125 -0
- package/docs/ja-JP/start/wizard.md +77 -0
- package/docs/logging.md +352 -0
- package/docs/nav-tabs-underline.js +100 -0
- package/docs/network.md +54 -0
- package/docs/nodes/audio.md +187 -0
- package/docs/nodes/camera.md +162 -0
- package/docs/nodes/images.md +72 -0
- package/docs/nodes/index.md +393 -0
- package/docs/nodes/location-command.md +98 -0
- package/docs/nodes/media-understanding.md +394 -0
- package/docs/nodes/talk.md +92 -0
- package/docs/nodes/troubleshooting.md +114 -0
- package/docs/nodes/voicewake.md +66 -0
- package/docs/perplexity.md +174 -0
- package/docs/pi-dev.md +80 -0
- package/docs/pi.md +567 -0
- package/docs/platforms/android.md +168 -0
- package/docs/platforms/digitalocean.md +266 -0
- package/docs/platforms/index.md +54 -0
- package/docs/platforms/ios.md +220 -0
- package/docs/platforms/linux.md +94 -0
- package/docs/platforms/mac/bundled-gateway.md +73 -0
- package/docs/platforms/mac/canvas.md +125 -0
- package/docs/platforms/mac/child-process.md +69 -0
- package/docs/platforms/mac/dev-setup.md +104 -0
- package/docs/platforms/mac/health.md +34 -0
- package/docs/platforms/mac/icon.md +31 -0
- package/docs/platforms/mac/logging.md +57 -0
- package/docs/platforms/mac/menu-bar.md +81 -0
- package/docs/platforms/mac/peekaboo.md +65 -0
- package/docs/platforms/mac/permissions.md +50 -0
- package/docs/platforms/mac/remote.md +84 -0
- package/docs/platforms/mac/signing.md +47 -0
- package/docs/platforms/mac/skills.md +33 -0
- package/docs/platforms/mac/voice-overlay.md +60 -0
- package/docs/platforms/mac/voicewake.md +67 -0
- package/docs/platforms/mac/webchat.md +43 -0
- package/docs/platforms/mac/xpc.md +61 -0
- package/docs/platforms/macos.md +226 -0
- package/docs/platforms/oracle.md +303 -0
- package/docs/platforms/raspberry-pi.md +412 -0
- package/docs/platforms/windows.md +241 -0
- package/docs/plugins/agent-tools.md +10 -0
- package/docs/plugins/architecture.md +1366 -0
- package/docs/plugins/building-extensions.md +10 -0
- package/docs/plugins/building-plugins.md +239 -0
- package/docs/plugins/bundles.md +181 -0
- package/docs/plugins/community.md +145 -0
- package/docs/plugins/manifest.md +241 -0
- package/docs/plugins/sdk-channel-plugins.md +370 -0
- package/docs/plugins/sdk-entrypoints.md +161 -0
- package/docs/plugins/sdk-migration.md +172 -0
- package/docs/plugins/sdk-overview.md +196 -0
- package/docs/plugins/sdk-provider-plugins.md +370 -0
- package/docs/plugins/sdk-runtime.md +345 -0
- package/docs/plugins/sdk-setup.md +331 -0
- package/docs/plugins/sdk-testing.md +263 -0
- package/docs/plugins/voice-call.md +380 -0
- package/docs/plugins/zalouser.md +77 -0
- package/docs/prose.md +134 -0
- package/docs/providers/anthropic.md +259 -0
- package/docs/providers/bedrock.md +176 -0
- package/docs/providers/claude-max-api-proxy.md +154 -0
- package/docs/providers/cloudflare-ai-gateway.md +71 -0
- package/docs/providers/deepgram.md +93 -0
- package/docs/providers/github-copilot.md +72 -0
- package/docs/providers/glm.md +43 -0
- package/docs/providers/google.md +78 -0
- package/docs/providers/groq.md +96 -0
- package/docs/providers/huggingface.md +209 -0
- package/docs/providers/index.md +69 -0
- package/docs/providers/kilocode.md +74 -0
- package/docs/providers/litellm.md +154 -0
- package/docs/providers/minimax.md +224 -0
- package/docs/providers/mistral.md +54 -0
- package/docs/providers/models.md +45 -0
- package/docs/providers/modelstudio.md +66 -0
- package/docs/providers/moonshot.md +175 -0
- package/docs/providers/nvidia.md +55 -0
- package/docs/providers/ollama.md +352 -0
- package/docs/providers/openai.md +303 -0
- package/docs/providers/opencode-go.md +45 -0
- package/docs/providers/opencode.md +64 -0
- package/docs/providers/openrouter.md +37 -0
- package/docs/providers/perplexity-provider.md +62 -0
- package/docs/providers/qianfan.md +38 -0
- package/docs/providers/qwen.md +53 -0
- package/docs/providers/sglang.md +104 -0
- package/docs/providers/synthetic.md +99 -0
- package/docs/providers/together.md +66 -0
- package/docs/providers/venice.md +282 -0
- package/docs/providers/vercel-ai-gateway.md +60 -0
- package/docs/providers/vllm.md +92 -0
- package/docs/providers/volcengine.md +74 -0
- package/docs/providers/xai.md +60 -0
- package/docs/providers/xiaomi.md +86 -0
- package/docs/providers/zai.md +46 -0
- package/docs/reference/AGENTS.default.md +126 -0
- package/docs/reference/RELEASING.md +42 -0
- package/docs/reference/api-usage-costs.md +144 -0
- package/docs/reference/credits.md +30 -0
- package/docs/reference/device-models.md +47 -0
- package/docs/reference/memory-config.md +711 -0
- package/docs/reference/prompt-caching.md +185 -0
- package/docs/reference/rpc.md +43 -0
- package/docs/reference/secretref-credential-surface.md +140 -0
- package/docs/reference/secretref-user-supplied-credentials-matrix.json +563 -0
- package/docs/reference/session-management-compaction.md +324 -0
- package/docs/reference/templates/AGENTS.dev.md +83 -0
- package/docs/reference/templates/AGENTS.md +219 -0
- package/docs/reference/templates/BOOT.md +11 -0
- package/docs/reference/templates/BOOTSTRAP.md +62 -0
- package/docs/reference/templates/HEARTBEAT.md +14 -0
- package/docs/reference/templates/IDENTITY.dev.md +47 -0
- package/docs/reference/templates/IDENTITY.md +29 -0
- package/docs/reference/templates/SOUL.dev.md +76 -0
- package/docs/reference/templates/SOUL.md +43 -0
- package/docs/reference/templates/TOOLS.dev.md +24 -0
- package/docs/reference/templates/TOOLS.md +47 -0
- package/docs/reference/templates/USER.dev.md +18 -0
- package/docs/reference/templates/USER.md +23 -0
- package/docs/reference/test.md +90 -0
- package/docs/reference/token-use.md +175 -0
- package/docs/reference/transcript-hygiene.md +151 -0
- package/docs/reference/wizard.md +235 -0
- package/docs/security/CONTRIBUTING-THREAT-MODEL.md +98 -0
- package/docs/security/THREAT-MODEL-ATLAS.md +611 -0
- package/docs/security/formal-verification.md +167 -0
- package/docs/start/bootstrapping.md +41 -0
- package/docs/start/docs-directory.md +66 -0
- package/docs/start/getting-started.md +116 -0
- package/docs/start/hubs.md +198 -0
- package/docs/start/lore.md +219 -0
- package/docs/start/onboarding-overview.md +67 -0
- package/docs/start/onboarding.md +91 -0
- package/docs/start/openclaw.md +221 -0
- package/docs/start/quickstart.md +22 -0
- package/docs/start/setup.md +164 -0
- package/docs/start/showcase.md +418 -0
- package/docs/start/wizard-cli-automation.md +215 -0
- package/docs/start/wizard-cli-reference.md +299 -0
- package/docs/start/wizard.md +125 -0
- package/docs/style.css +37 -0
- package/docs/tools/acp-agents.md +623 -0
- package/docs/tools/agent-send.md +100 -0
- package/docs/tools/apply-patch.md +51 -0
- package/docs/tools/brave-search.md +93 -0
- package/docs/tools/browser-linux-troubleshooting.md +138 -0
- package/docs/tools/browser-login.md +73 -0
- package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +211 -0
- package/docs/tools/browser.md +731 -0
- package/docs/tools/btw.md +142 -0
- package/docs/tools/capability-cookbook.md +119 -0
- package/docs/tools/clawhub.md +298 -0
- package/docs/tools/creating-skills.md +117 -0
- package/docs/tools/diffs.md +386 -0
- package/docs/tools/elevated.md +114 -0
- package/docs/tools/exec-approvals.md +430 -0
- package/docs/tools/exec.md +207 -0
- package/docs/tools/firecrawl.md +140 -0
- package/docs/tools/index.md +137 -0
- package/docs/tools/llm-task.md +119 -0
- package/docs/tools/lobster.md +340 -0
- package/docs/tools/loop-detection.md +100 -0
- package/docs/tools/multi-agent-sandbox-tools.md +364 -0
- package/docs/tools/pdf.md +156 -0
- package/docs/tools/perplexity-search.md +174 -0
- package/docs/tools/plugin.md +255 -0
- package/docs/tools/reactions.md +64 -0
- package/docs/tools/skills-config.md +86 -0
- package/docs/tools/skills.md +309 -0
- package/docs/tools/slash-commands.md +294 -0
- package/docs/tools/subagents.md +295 -0
- package/docs/tools/tavily.md +125 -0
- package/docs/tools/thinking.md +96 -0
- package/docs/tools/tts.md +406 -0
- package/docs/tools/web.md +516 -0
- package/docs/tts.md +406 -0
- package/docs/vps.md +112 -0
- package/docs/web/control-ui.md +275 -0
- package/docs/web/dashboard.md +54 -0
- package/docs/web/index.md +120 -0
- package/docs/web/tui.md +170 -0
- package/docs/web/webchat.md +61 -0
- package/docs/whatsapp-openclaw-ai-zh.jpg +0 -0
- package/docs/whatsapp-openclaw.jpg +0 -0
- package/docs/zh-CN/AGENTS.md +61 -0
- package/docs/zh-CN/automation/auth-monitoring.md +47 -0
- package/docs/zh-CN/automation/cron-jobs.md +435 -0
- package/docs/zh-CN/automation/cron-vs-heartbeat.md +286 -0
- package/docs/zh-CN/automation/gmail-pubsub.md +249 -0
- package/docs/zh-CN/automation/hooks.md +1051 -0
- package/docs/zh-CN/automation/poll.md +76 -0
- package/docs/zh-CN/automation/troubleshooting.md +8 -0
- package/docs/zh-CN/automation/webhook.md +163 -0
- package/docs/zh-CN/brave-search.md +60 -0
- package/docs/zh-CN/channels/bluebubbles.md +354 -0
- package/docs/zh-CN/channels/broadcast-groups.md +449 -0
- package/docs/zh-CN/channels/channel-routing.md +117 -0
- package/docs/zh-CN/channels/discord.md +468 -0
- package/docs/zh-CN/channels/feishu.md +728 -0
- package/docs/zh-CN/channels/googlechat.md +257 -0
- package/docs/zh-CN/channels/grammy.md +38 -0
- package/docs/zh-CN/channels/group-messages.md +91 -0
- package/docs/zh-CN/channels/groups.md +379 -0
- package/docs/zh-CN/channels/imessage.md +302 -0
- package/docs/zh-CN/channels/index.md +53 -0
- package/docs/zh-CN/channels/line.md +180 -0
- package/docs/zh-CN/channels/location.md +63 -0
- package/docs/zh-CN/channels/matrix.md +221 -0
- package/docs/zh-CN/channels/mattermost.md +144 -0
- package/docs/zh-CN/channels/msteams.md +775 -0
- package/docs/zh-CN/channels/nextcloud-talk.md +142 -0
- package/docs/zh-CN/channels/nostr.md +249 -0
- package/docs/zh-CN/channels/pairing.md +89 -0
- package/docs/zh-CN/channels/signal.md +209 -0
- package/docs/zh-CN/channels/slack.md +531 -0
- package/docs/zh-CN/channels/synology-chat.md +138 -0
- package/docs/zh-CN/channels/telegram.md +751 -0
- package/docs/zh-CN/channels/tlon.md +136 -0
- package/docs/zh-CN/channels/troubleshooting.md +36 -0
- package/docs/zh-CN/channels/twitch.md +385 -0
- package/docs/zh-CN/channels/whatsapp.md +411 -0
- package/docs/zh-CN/channels/zalo.md +196 -0
- package/docs/zh-CN/channels/zalouser.md +147 -0
- package/docs/zh-CN/cli/acp.md +173 -0
- package/docs/zh-CN/cli/agent.md +30 -0
- package/docs/zh-CN/cli/agents.md +82 -0
- package/docs/zh-CN/cli/approvals.md +57 -0
- package/docs/zh-CN/cli/browser.md +114 -0
- package/docs/zh-CN/cli/channels.md +86 -0
- package/docs/zh-CN/cli/config.md +57 -0
- package/docs/zh-CN/cli/configure.md +38 -0
- package/docs/zh-CN/cli/cron.md +43 -0
- package/docs/zh-CN/cli/dashboard.md +23 -0
- package/docs/zh-CN/cli/devices.md +74 -0
- package/docs/zh-CN/cli/directory.md +70 -0
- package/docs/zh-CN/cli/dns.md +30 -0
- package/docs/zh-CN/cli/docs.md +22 -0
- package/docs/zh-CN/cli/doctor.md +48 -0
- package/docs/zh-CN/cli/gateway.md +206 -0
- package/docs/zh-CN/cli/health.md +28 -0
- package/docs/zh-CN/cli/hooks.md +298 -0
- package/docs/zh-CN/cli/index.md +1143 -0
- package/docs/zh-CN/cli/logs.md +31 -0
- package/docs/zh-CN/cli/memory.md +52 -0
- package/docs/zh-CN/cli/message.md +246 -0
- package/docs/zh-CN/cli/models.md +85 -0
- package/docs/zh-CN/cli/node.md +115 -0
- package/docs/zh-CN/cli/nodes.md +80 -0
- package/docs/zh-CN/cli/onboard.md +164 -0
- package/docs/zh-CN/cli/pairing.md +28 -0
- package/docs/zh-CN/cli/plugins.md +66 -0
- package/docs/zh-CN/cli/reset.md +24 -0
- package/docs/zh-CN/cli/sandbox.md +158 -0
- package/docs/zh-CN/cli/security.md +33 -0
- package/docs/zh-CN/cli/sessions.md +23 -0
- package/docs/zh-CN/cli/setup.md +36 -0
- package/docs/zh-CN/cli/skills.md +33 -0
- package/docs/zh-CN/cli/status.md +33 -0
- package/docs/zh-CN/cli/system.md +63 -0
- package/docs/zh-CN/cli/tui.md +30 -0
- package/docs/zh-CN/cli/uninstall.md +24 -0
- package/docs/zh-CN/cli/update.md +101 -0
- package/docs/zh-CN/cli/voicecall.md +41 -0
- package/docs/zh-CN/cli/webhooks.md +32 -0
- package/docs/zh-CN/concepts/agent-loop.md +146 -0
- package/docs/zh-CN/concepts/agent-workspace.md +219 -0
- package/docs/zh-CN/concepts/agent.md +115 -0
- package/docs/zh-CN/concepts/architecture.md +123 -0
- package/docs/zh-CN/concepts/compaction.md +67 -0
- package/docs/zh-CN/concepts/context.md +168 -0
- package/docs/zh-CN/concepts/features.md +59 -0
- package/docs/zh-CN/concepts/markdown-formatting.md +117 -0
- package/docs/zh-CN/concepts/memory.md +412 -0
- package/docs/zh-CN/concepts/messages.md +141 -0
- package/docs/zh-CN/concepts/model-failover.md +145 -0
- package/docs/zh-CN/concepts/model-providers.md +606 -0
- package/docs/zh-CN/concepts/models.md +225 -0
- package/docs/zh-CN/concepts/multi-agent.md +372 -0
- package/docs/zh-CN/concepts/oauth.md +164 -0
- package/docs/zh-CN/concepts/presence.md +99 -0
- package/docs/zh-CN/concepts/queue.md +94 -0
- package/docs/zh-CN/concepts/retry.md +76 -0
- package/docs/zh-CN/concepts/session-pruning.md +129 -0
- package/docs/zh-CN/concepts/session-tool.md +200 -0
- package/docs/zh-CN/concepts/session.md +166 -0
- package/docs/zh-CN/concepts/streaming.md +133 -0
- package/docs/zh-CN/concepts/system-prompt.md +101 -0
- package/docs/zh-CN/concepts/timezone.md +96 -0
- package/docs/zh-CN/concepts/typebox.md +284 -0
- package/docs/zh-CN/concepts/typing-indicators.md +74 -0
- package/docs/zh-CN/concepts/usage-tracking.md +42 -0
- package/docs/zh-CN/date-time.md +129 -0
- package/docs/zh-CN/debug/node-issue.md +90 -0
- package/docs/zh-CN/diagnostics/flags.md +98 -0
- package/docs/zh-CN/gateway/authentication.md +184 -0
- package/docs/zh-CN/gateway/background-process.md +100 -0
- package/docs/zh-CN/gateway/bonjour.md +174 -0
- package/docs/zh-CN/gateway/bridge-protocol.md +86 -0
- package/docs/zh-CN/gateway/cli-backends.md +213 -0
- package/docs/zh-CN/gateway/configuration-examples.md +587 -0
- package/docs/zh-CN/gateway/configuration-reference.md +3103 -0
- package/docs/zh-CN/gateway/configuration.md +640 -0
- package/docs/zh-CN/gateway/discovery.md +123 -0
- package/docs/zh-CN/gateway/doctor.md +238 -0
- package/docs/zh-CN/gateway/gateway-lock.md +41 -0
- package/docs/zh-CN/gateway/health.md +42 -0
- package/docs/zh-CN/gateway/heartbeat.md +274 -0
- package/docs/zh-CN/gateway/index.md +335 -0
- package/docs/zh-CN/gateway/local-models.md +159 -0
- package/docs/zh-CN/gateway/logging.md +114 -0
- package/docs/zh-CN/gateway/multiple-gateways.md +119 -0
- package/docs/zh-CN/gateway/network-model.md +23 -0
- package/docs/zh-CN/gateway/openai-http-api.md +125 -0
- package/docs/zh-CN/gateway/openresponses-http-api.md +317 -0
- package/docs/zh-CN/gateway/pairing.md +99 -0
- package/docs/zh-CN/gateway/protocol.md +220 -0
- package/docs/zh-CN/gateway/remote-gateway-readme.md +164 -0
- package/docs/zh-CN/gateway/remote.md +133 -0
- package/docs/zh-CN/gateway/sandbox-vs-tool-policy-vs-elevated.md +135 -0
- package/docs/zh-CN/gateway/sandboxing.md +188 -0
- package/docs/zh-CN/gateway/security/index.md +777 -0
- package/docs/zh-CN/gateway/tailscale.md +124 -0
- package/docs/zh-CN/gateway/tools-invoke-http-api.md +92 -0
- package/docs/zh-CN/gateway/troubleshooting.md +771 -0
- package/docs/zh-CN/help/debugging.md +160 -0
- package/docs/zh-CN/help/environment.md +88 -0
- package/docs/zh-CN/help/faq.md +2640 -0
- package/docs/zh-CN/help/index.md +28 -0
- package/docs/zh-CN/help/scripts.md +35 -0
- package/docs/zh-CN/help/testing.md +375 -0
- package/docs/zh-CN/help/troubleshooting.md +104 -0
- package/docs/zh-CN/index.md +186 -0
- package/docs/zh-CN/install/ansible.md +215 -0
- package/docs/zh-CN/install/bun.md +65 -0
- package/docs/zh-CN/install/development-channels.md +81 -0
- package/docs/zh-CN/install/docker.md +532 -0
- package/docs/zh-CN/install/exe-dev.md +133 -0
- package/docs/zh-CN/install/fly.md +490 -0
- package/docs/zh-CN/install/gcp.md +510 -0
- package/docs/zh-CN/install/hetzner.md +337 -0
- package/docs/zh-CN/install/index.md +235 -0
- package/docs/zh-CN/install/installer.md +422 -0
- package/docs/zh-CN/install/macos-vm.md +288 -0
- package/docs/zh-CN/install/migrating.md +199 -0
- package/docs/zh-CN/install/nix.md +99 -0
- package/docs/zh-CN/install/node.md +8 -0
- package/docs/zh-CN/install/northflank.mdx +60 -0
- package/docs/zh-CN/install/railway.mdx +106 -0
- package/docs/zh-CN/install/render.mdx +169 -0
- package/docs/zh-CN/install/uninstall.md +135 -0
- package/docs/zh-CN/install/updating.md +233 -0
- package/docs/zh-CN/logging.md +329 -0
- package/docs/zh-CN/network.md +59 -0
- package/docs/zh-CN/nodes/audio.md +120 -0
- package/docs/zh-CN/nodes/camera.md +162 -0
- package/docs/zh-CN/nodes/images.md +79 -0
- package/docs/zh-CN/nodes/index.md +348 -0
- package/docs/zh-CN/nodes/location-command.md +120 -0
- package/docs/zh-CN/nodes/media-understanding.md +380 -0
- package/docs/zh-CN/nodes/talk.md +97 -0
- package/docs/zh-CN/nodes/troubleshooting.md +8 -0
- package/docs/zh-CN/nodes/voicewake.md +72 -0
- package/docs/zh-CN/perplexity.md +102 -0
- package/docs/zh-CN/pi-dev.md +77 -0
- package/docs/zh-CN/pi.md +619 -0
- package/docs/zh-CN/platforms/android.md +155 -0
- package/docs/zh-CN/platforms/digitalocean.md +273 -0
- package/docs/zh-CN/platforms/index.md +60 -0
- package/docs/zh-CN/platforms/ios.md +114 -0
- package/docs/zh-CN/platforms/linux.md +100 -0
- package/docs/zh-CN/platforms/mac/bundled-gateway.md +75 -0
- package/docs/zh-CN/platforms/mac/canvas.md +128 -0
- package/docs/zh-CN/platforms/mac/child-process.md +73 -0
- package/docs/zh-CN/platforms/mac/dev-setup.md +109 -0
- package/docs/zh-CN/platforms/mac/health.md +41 -0
- package/docs/zh-CN/platforms/mac/icon.md +38 -0
- package/docs/zh-CN/platforms/mac/logging.md +64 -0
- package/docs/zh-CN/platforms/mac/menu-bar.md +88 -0
- package/docs/zh-CN/platforms/mac/peekaboo.md +62 -0
- package/docs/zh-CN/platforms/mac/permissions.md +46 -0
- package/docs/zh-CN/platforms/mac/remote.md +90 -0
- package/docs/zh-CN/platforms/mac/signing.md +54 -0
- package/docs/zh-CN/platforms/mac/skills.md +40 -0
- package/docs/zh-CN/platforms/mac/voice-overlay.md +67 -0
- package/docs/zh-CN/platforms/mac/voicewake.md +74 -0
- package/docs/zh-CN/platforms/mac/webchat.md +43 -0
- package/docs/zh-CN/platforms/mac/xpc.md +68 -0
- package/docs/zh-CN/platforms/macos.md +193 -0
- package/docs/zh-CN/platforms/oracle.md +310 -0
- package/docs/zh-CN/platforms/raspberry-pi.md +416 -0
- package/docs/zh-CN/platforms/windows.md +247 -0
- package/docs/zh-CN/plugins/agent-tools.md +99 -0
- package/docs/zh-CN/plugins/manifest.md +68 -0
- package/docs/zh-CN/plugins/voice-call.md +250 -0
- package/docs/zh-CN/plugins/zalouser.md +88 -0
- package/docs/zh-CN/prose.md +141 -0
- package/docs/zh-CN/providers/anthropic.md +265 -0
- package/docs/zh-CN/providers/bedrock.md +170 -0
- package/docs/zh-CN/providers/claude-max-api-proxy.md +155 -0
- package/docs/zh-CN/providers/cloudflare-ai-gateway.md +78 -0
- package/docs/zh-CN/providers/deepgram.md +97 -0
- package/docs/zh-CN/providers/github-copilot.md +67 -0
- package/docs/zh-CN/providers/glm.md +50 -0
- package/docs/zh-CN/providers/huggingface.md +216 -0
- package/docs/zh-CN/providers/index.md +69 -0
- package/docs/zh-CN/providers/kilocode.md +80 -0
- package/docs/zh-CN/providers/litellm.md +160 -0
- package/docs/zh-CN/providers/minimax.md +222 -0
- package/docs/zh-CN/providers/mistral.md +61 -0
- package/docs/zh-CN/providers/models.md +51 -0
- package/docs/zh-CN/providers/moonshot.md +182 -0
- package/docs/zh-CN/providers/nvidia.md +62 -0
- package/docs/zh-CN/providers/ollama.md +359 -0
- package/docs/zh-CN/providers/openai.md +308 -0
- package/docs/zh-CN/providers/opencode-go.md +52 -0
- package/docs/zh-CN/providers/opencode.md +71 -0
- package/docs/zh-CN/providers/openrouter.md +44 -0
- package/docs/zh-CN/providers/qianfan.md +45 -0
- package/docs/zh-CN/providers/qwen.md +55 -0
- package/docs/zh-CN/providers/sglang.md +111 -0
- package/docs/zh-CN/providers/synthetic.md +106 -0
- package/docs/zh-CN/providers/together.md +72 -0
- package/docs/zh-CN/providers/venice.md +289 -0
- package/docs/zh-CN/providers/vercel-ai-gateway.md +66 -0
- package/docs/zh-CN/providers/xiaomi.md +93 -0
- package/docs/zh-CN/providers/zai.md +53 -0
- package/docs/zh-CN/reference/AGENTS.default.md +131 -0
- package/docs/zh-CN/reference/RELEASING.md +48 -0
- package/docs/zh-CN/reference/api-usage-costs.md +141 -0
- package/docs/zh-CN/reference/credits.md +34 -0
- package/docs/zh-CN/reference/device-models.md +54 -0
- package/docs/zh-CN/reference/rpc.md +48 -0
- package/docs/zh-CN/reference/session-management-compaction.md +287 -0
- package/docs/zh-CN/reference/templates/AGENTS.dev.md +89 -0
- package/docs/zh-CN/reference/templates/AGENTS.md +225 -0
- package/docs/zh-CN/reference/templates/BOOT.md +17 -0
- package/docs/zh-CN/reference/templates/BOOTSTRAP.md +68 -0
- package/docs/zh-CN/reference/templates/HEARTBEAT.md +18 -0
- package/docs/zh-CN/reference/templates/IDENTITY.dev.md +54 -0
- package/docs/zh-CN/reference/templates/IDENTITY.md +36 -0
- package/docs/zh-CN/reference/templates/SOUL.dev.md +83 -0
- package/docs/zh-CN/reference/templates/SOUL.md +49 -0
- package/docs/zh-CN/reference/templates/TOOLS.dev.md +31 -0
- package/docs/zh-CN/reference/templates/TOOLS.md +53 -0
- package/docs/zh-CN/reference/templates/USER.dev.md +25 -0
- package/docs/zh-CN/reference/templates/USER.md +30 -0
- package/docs/zh-CN/reference/test.md +57 -0
- package/docs/zh-CN/reference/token-use.md +119 -0
- package/docs/zh-CN/reference/transcript-hygiene.md +109 -0
- package/docs/zh-CN/reference/wizard.md +242 -0
- package/docs/zh-CN/security/formal-verification.md +171 -0
- package/docs/zh-CN/start/bootstrapping.md +9 -0
- package/docs/zh-CN/start/docs-directory.md +70 -0
- package/docs/zh-CN/start/getting-started.md +143 -0
- package/docs/zh-CN/start/hubs.md +194 -0
- package/docs/zh-CN/start/lore.md +226 -0
- package/docs/zh-CN/start/onboarding-overview.md +58 -0
- package/docs/zh-CN/start/onboarding.md +105 -0
- package/docs/zh-CN/start/openclaw.md +248 -0
- package/docs/zh-CN/start/quickstart.md +88 -0
- package/docs/zh-CN/start/setup.md +153 -0
- package/docs/zh-CN/start/showcase.md +423 -0
- package/docs/zh-CN/start/wizard-cli-automation.md +222 -0
- package/docs/zh-CN/start/wizard-cli-reference.md +306 -0
- package/docs/zh-CN/start/wizard.md +132 -0
- package/docs/zh-CN/tools/agent-send.md +59 -0
- package/docs/zh-CN/tools/apply-patch.md +57 -0
- package/docs/zh-CN/tools/browser-linux-troubleshooting.md +144 -0
- package/docs/zh-CN/tools/browser-login.md +75 -0
- package/docs/zh-CN/tools/browser.md +553 -0
- package/docs/zh-CN/tools/chrome-extension.md +183 -0
- package/docs/zh-CN/tools/clawhub.md +209 -0
- package/docs/zh-CN/tools/creating-skills.md +61 -0
- package/docs/zh-CN/tools/elevated.md +64 -0
- package/docs/zh-CN/tools/exec-approvals.md +234 -0
- package/docs/zh-CN/tools/exec.md +169 -0
- package/docs/zh-CN/tools/firecrawl.md +68 -0
- package/docs/zh-CN/tools/index.md +515 -0
- package/docs/zh-CN/tools/llm-task.md +117 -0
- package/docs/zh-CN/tools/lobster.md +349 -0
- package/docs/zh-CN/tools/multi-agent-sandbox-tools.md +401 -0
- package/docs/zh-CN/tools/plugin.md +1612 -0
- package/docs/zh-CN/tools/reactions.md +29 -0
- package/docs/zh-CN/tools/skills-config.md +78 -0
- package/docs/zh-CN/tools/skills.md +279 -0
- package/docs/zh-CN/tools/slash-commands.md +205 -0
- package/docs/zh-CN/tools/subagents.md +167 -0
- package/docs/zh-CN/tools/thinking.md +80 -0
- package/docs/zh-CN/tools/web.md +289 -0
- package/docs/zh-CN/tts.md +375 -0
- package/docs/zh-CN/vps.md +47 -0
- package/docs/zh-CN/web/control-ui.md +191 -0
- package/docs/zh-CN/web/dashboard.md +53 -0
- package/docs/zh-CN/web/index.md +118 -0
- package/docs/zh-CN/web/tui.md +166 -0
- package/docs/zh-CN/web/webchat.md +56 -0
- package/package.json +841 -0
- package/quantumclaw.mjs +135 -0
- package/skills/1password/SKILL.md +70 -0
- package/skills/1password/references/cli-examples.md +29 -0
- package/skills/1password/references/get-started.md +17 -0
- package/skills/apple-notes/SKILL.md +77 -0
- package/skills/apple-reminders/SKILL.md +118 -0
- package/skills/bear-notes/SKILL.md +107 -0
- package/skills/blogwatcher/SKILL.md +69 -0
- package/skills/blucli/SKILL.md +47 -0
- package/skills/bluebubbles/SKILL.md +131 -0
- package/skills/camsnap/SKILL.md +45 -0
- package/skills/canvas/SKILL.md +198 -0
- package/skills/clawhub/SKILL.md +77 -0
- package/skills/coding-agent/SKILL.md +295 -0
- package/skills/discord/SKILL.md +197 -0
- package/skills/eightctl/SKILL.md +50 -0
- package/skills/gemini/SKILL.md +43 -0
- package/skills/gh-issues/SKILL.md +865 -0
- package/skills/gifgrep/SKILL.md +79 -0
- package/skills/github/SKILL.md +163 -0
- package/skills/gog/SKILL.md +116 -0
- package/skills/goplaces/SKILL.md +52 -0
- package/skills/healthcheck/SKILL.md +245 -0
- package/skills/himalaya/SKILL.md +257 -0
- package/skills/himalaya/references/configuration.md +184 -0
- package/skills/himalaya/references/message-composition.md +199 -0
- package/skills/imsg/SKILL.md +122 -0
- package/skills/mcporter/SKILL.md +61 -0
- package/skills/model-usage/SKILL.md +69 -0
- package/skills/model-usage/references/codexbar-cli.md +33 -0
- package/skills/model-usage/scripts/model_usage.py +320 -0
- package/skills/model-usage/scripts/test_model_usage.py +40 -0
- package/skills/nano-pdf/SKILL.md +38 -0
- package/skills/node-connect/SKILL.md +142 -0
- package/skills/notion/SKILL.md +174 -0
- package/skills/obsidian/SKILL.md +81 -0
- package/skills/openai-image-gen/SKILL.md +92 -0
- package/skills/openai-image-gen/scripts/gen.py +328 -0
- package/skills/openai-image-gen/scripts/test_gen.py +140 -0
- package/skills/openai-whisper/SKILL.md +38 -0
- package/skills/openai-whisper-api/SKILL.md +52 -0
- package/skills/openai-whisper-api/scripts/transcribe.sh +85 -0
- package/skills/openhue/SKILL.md +112 -0
- package/skills/oracle/SKILL.md +125 -0
- package/skills/ordercli/SKILL.md +78 -0
- package/skills/peekaboo/SKILL.md +190 -0
- package/skills/sag/SKILL.md +87 -0
- package/skills/session-logs/SKILL.md +115 -0
- package/skills/sherpa-onnx-tts/SKILL.md +103 -0
- package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +178 -0
- package/skills/skill-creator/SKILL.md +372 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/scripts/init_skill.py +378 -0
- package/skills/skill-creator/scripts/package_skill.py +139 -0
- package/skills/skill-creator/scripts/quick_validate.py +159 -0
- package/skills/skill-creator/scripts/test_package_skill.py +160 -0
- package/skills/skill-creator/scripts/test_quick_validate.py +72 -0
- package/skills/slack/SKILL.md +144 -0
- package/skills/songsee/SKILL.md +49 -0
- package/skills/sonoscli/SKILL.md +65 -0
- package/skills/spotify-player/SKILL.md +64 -0
- package/skills/summarize/SKILL.md +87 -0
- package/skills/things-mac/SKILL.md +86 -0
- package/skills/tmux/SKILL.md +153 -0
- package/skills/tmux/scripts/find-sessions.sh +112 -0
- package/skills/tmux/scripts/wait-for-text.sh +83 -0
- package/skills/trello/SKILL.md +95 -0
- package/skills/video-frames/SKILL.md +46 -0
- package/skills/video-frames/scripts/frame.sh +81 -0
- package/skills/voice-call/SKILL.md +45 -0
- package/skills/wacli/SKILL.md +72 -0
- package/skills/weather/SKILL.md +112 -0
- package/skills/xurl/SKILL.md +461 -0
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when: Setting up Slack or debugging Slack socket/HTTP mode
|
|
3
|
+
summary: Slack 的 socket 或 HTTP webhook 模式设置
|
|
4
|
+
title: Slack
|
|
5
|
+
x-i18n:
|
|
6
|
+
generated_at: "2026-02-03T07:45:49Z"
|
|
7
|
+
model: claude-opus-4-5
|
|
8
|
+
provider: pi
|
|
9
|
+
source_hash: 703b4b4333bebfef26b64710ba452bdfc3e7d2115048d4e552e8659425b3609b
|
|
10
|
+
source_path: channels/slack.md
|
|
11
|
+
workflow: 15
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Slack
|
|
15
|
+
|
|
16
|
+
## Socket 模式(默认)
|
|
17
|
+
|
|
18
|
+
### 快速设置(新手)
|
|
19
|
+
|
|
20
|
+
1. 创建一个 Slack 应用并启用 **Socket Mode**。
|
|
21
|
+
2. 创建一个 **App Token**(`xapp-...`)和 **Bot Token**(`xoxb-...`)。
|
|
22
|
+
3. 为 QuantumClaw 设置令牌并启动 Gateway 网关。
|
|
23
|
+
|
|
24
|
+
最小配置:
|
|
25
|
+
|
|
26
|
+
```json5
|
|
27
|
+
{
|
|
28
|
+
channels: {
|
|
29
|
+
slack: {
|
|
30
|
+
enabled: true,
|
|
31
|
+
appToken: "xapp-...",
|
|
32
|
+
botToken: "xoxb-...",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 设置
|
|
39
|
+
|
|
40
|
+
1. 在 https://api.slack.com/apps 创建一个 Slack 应用(从头开始)。
|
|
41
|
+
2. **Socket Mode** → 开启。然后前往 **Basic Information** → **App-Level Tokens** → **Generate Token and Scopes**,添加 `connections:write` 权限范围。复制 **App Token**(`xapp-...`)。
|
|
42
|
+
3. **OAuth & Permissions** → 添加 bot token 权限范围(使用下面的 manifest)。点击 **Install to Workspace**。复制 **Bot User OAuth Token**(`xoxb-...`)。
|
|
43
|
+
4. 可选:**OAuth & Permissions** → 添加 **User Token Scopes**(参见下面的只读列表)。重新安装应用并复制 **User OAuth Token**(`xoxp-...`)。
|
|
44
|
+
5. **Event Subscriptions** → 启用事件并订阅:
|
|
45
|
+
- `message.*`(包括编辑/删除/线程广播)
|
|
46
|
+
- `app_mention`
|
|
47
|
+
- `reaction_added`、`reaction_removed`
|
|
48
|
+
- `member_joined_channel`、`member_left_channel`
|
|
49
|
+
- `channel_rename`
|
|
50
|
+
- `pin_added`、`pin_removed`
|
|
51
|
+
6. 邀请机器人加入你希望它读取的频道。
|
|
52
|
+
7. Slash Commands → 如果你使用 `channels.slack.slashCommand`,创建 `/quantumclaw`。如果启用原生命令,为每个内置命令添加一个斜杠命令(名称与 `/help` 相同)。除非你设置 `channels.slack.commands.native: true`,否则 Slack 默认关闭原生命令(全局 `commands.native` 是 `"auto"`,对 Slack 保持关闭)。
|
|
53
|
+
8. App Home → 启用 **Messages Tab** 以便用户可以私信机器人。
|
|
54
|
+
|
|
55
|
+
使用下面的 manifest 以保持权限范围和事件同步。
|
|
56
|
+
|
|
57
|
+
多账户支持:使用 `channels.slack.accounts` 配置每个账户的令牌和可选的 `name`。参见 [`gateway/configuration`](/gateway/configuration#telegramaccounts--discordaccounts--slackaccounts--signalaccounts--imessageaccounts) 了解共享模式。
|
|
58
|
+
|
|
59
|
+
### QuantumClaw 配置(最小)
|
|
60
|
+
|
|
61
|
+
通过环境变量设置令牌(推荐):
|
|
62
|
+
|
|
63
|
+
- `SLACK_APP_TOKEN=xapp-...`
|
|
64
|
+
- `SLACK_BOT_TOKEN=xoxb-...`
|
|
65
|
+
|
|
66
|
+
或通过配置:
|
|
67
|
+
|
|
68
|
+
```json5
|
|
69
|
+
{
|
|
70
|
+
channels: {
|
|
71
|
+
slack: {
|
|
72
|
+
enabled: true,
|
|
73
|
+
appToken: "xapp-...",
|
|
74
|
+
botToken: "xoxb-...",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 用户令牌(可选)
|
|
81
|
+
|
|
82
|
+
QuantumClaw 可以使用 Slack 用户令牌(`xoxp-...`)进行读取操作(历史记录、置顶、表情回应、表情符号、成员信息)。默认情况下保持只读:当存在用户令牌时,读取优先使用用户令牌,而写入仍然使用 bot 令牌,除非你明确选择加入。即使设置了 `userTokenReadOnly: false`,当 bot 令牌可用时,写入仍然优先使用 bot 令牌。
|
|
83
|
+
|
|
84
|
+
用户令牌在配置文件中配置(不支持环境变量)。对于多账户,设置 `channels.slack.accounts.<id>.userToken`。
|
|
85
|
+
|
|
86
|
+
包含 bot + app + 用户令牌的示例:
|
|
87
|
+
|
|
88
|
+
```json5
|
|
89
|
+
{
|
|
90
|
+
channels: {
|
|
91
|
+
slack: {
|
|
92
|
+
enabled: true,
|
|
93
|
+
appToken: "xapp-...",
|
|
94
|
+
botToken: "xoxb-...",
|
|
95
|
+
userToken: "xoxp-...",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
明确设置 userTokenReadOnly 的示例(允许用户令牌写入):
|
|
102
|
+
|
|
103
|
+
```json5
|
|
104
|
+
{
|
|
105
|
+
channels: {
|
|
106
|
+
slack: {
|
|
107
|
+
enabled: true,
|
|
108
|
+
appToken: "xapp-...",
|
|
109
|
+
botToken: "xoxb-...",
|
|
110
|
+
userToken: "xoxp-...",
|
|
111
|
+
userTokenReadOnly: false,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### 令牌使用
|
|
118
|
+
|
|
119
|
+
- 读取操作(历史记录、表情回应列表、置顶列表、表情符号列表、成员信息、搜索)在配置了用户令牌时优先使用用户令牌,否则使用 bot 令牌。
|
|
120
|
+
- 写入操作(发送/编辑/删除消息、添加/移除表情回应、置顶/取消置顶、文件上传)默认使用 bot 令牌。如果 `userTokenReadOnly: false` 且没有可用的 bot 令牌,QuantumClaw 会回退到用户令牌。
|
|
121
|
+
|
|
122
|
+
### 历史上下文
|
|
123
|
+
|
|
124
|
+
- `channels.slack.historyLimit`(或 `channels.slack.accounts.*.historyLimit`)控制将多少条最近的频道/群组消息包含到提示中。
|
|
125
|
+
- 回退到 `messages.groupChat.historyLimit`。设置为 `0` 以禁用(默认 50)。
|
|
126
|
+
|
|
127
|
+
## HTTP 模式(Events API)
|
|
128
|
+
|
|
129
|
+
当你的 Gateway 网关可以通过 HTTPS 被 Slack 访问时(服务器部署的典型情况),使用 HTTP webhook 模式。
|
|
130
|
+
HTTP 模式使用 Events API + Interactivity + Slash Commands,共享一个请求 URL。
|
|
131
|
+
|
|
132
|
+
### 设置
|
|
133
|
+
|
|
134
|
+
1. 创建一个 Slack 应用并**禁用 Socket Mode**(如果你只使用 HTTP 则可选)。
|
|
135
|
+
2. **Basic Information** → 复制 **Signing Secret**。
|
|
136
|
+
3. **OAuth & Permissions** → 安装应用并复制 **Bot User OAuth Token**(`xoxb-...`)。
|
|
137
|
+
4. **Event Subscriptions** → 启用事件并将 **Request URL** 设置为你的 Gateway 网关 webhook 路径(默认 `/slack/events`)。
|
|
138
|
+
5. **Interactivity & Shortcuts** → 启用并设置相同的 **Request URL**。
|
|
139
|
+
6. **Slash Commands** → 为你的命令设置相同的 **Request URL**。
|
|
140
|
+
|
|
141
|
+
示例请求 URL:
|
|
142
|
+
`https://gateway-host/slack/events`
|
|
143
|
+
|
|
144
|
+
### QuantumClaw 配置(最小)
|
|
145
|
+
|
|
146
|
+
```json5
|
|
147
|
+
{
|
|
148
|
+
channels: {
|
|
149
|
+
slack: {
|
|
150
|
+
enabled: true,
|
|
151
|
+
mode: "http",
|
|
152
|
+
botToken: "xoxb-...",
|
|
153
|
+
signingSecret: "your-signing-secret",
|
|
154
|
+
webhookPath: "/slack/events",
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
多账户 HTTP 模式:设置 `channels.slack.accounts.<id>.mode = "http"` 并为每个账户提供唯一的 `webhookPath`,以便每个 Slack 应用可以指向自己的 URL。
|
|
161
|
+
|
|
162
|
+
### Manifest(可选)
|
|
163
|
+
|
|
164
|
+
使用此 Slack 应用 manifest 快速创建应用(如果需要可以调整名称/命令)。如果你计划配置用户令牌,请包含用户权限范围。
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"display_information": {
|
|
169
|
+
"name": "QuantumClaw",
|
|
170
|
+
"description": "Slack connector for QuantumClaw"
|
|
171
|
+
},
|
|
172
|
+
"features": {
|
|
173
|
+
"bot_user": {
|
|
174
|
+
"display_name": "QuantumClaw",
|
|
175
|
+
"always_online": false
|
|
176
|
+
},
|
|
177
|
+
"app_home": {
|
|
178
|
+
"messages_tab_enabled": true,
|
|
179
|
+
"messages_tab_read_only_enabled": false
|
|
180
|
+
},
|
|
181
|
+
"slash_commands": [
|
|
182
|
+
{
|
|
183
|
+
"command": "/quantumclaw",
|
|
184
|
+
"description": "Send a message to QuantumClaw",
|
|
185
|
+
"should_escape": false
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"oauth_config": {
|
|
190
|
+
"scopes": {
|
|
191
|
+
"bot": [
|
|
192
|
+
"chat:write",
|
|
193
|
+
"channels:history",
|
|
194
|
+
"channels:read",
|
|
195
|
+
"groups:history",
|
|
196
|
+
"groups:read",
|
|
197
|
+
"groups:write",
|
|
198
|
+
"im:history",
|
|
199
|
+
"im:read",
|
|
200
|
+
"im:write",
|
|
201
|
+
"mpim:history",
|
|
202
|
+
"mpim:read",
|
|
203
|
+
"mpim:write",
|
|
204
|
+
"users:read",
|
|
205
|
+
"app_mentions:read",
|
|
206
|
+
"reactions:read",
|
|
207
|
+
"reactions:write",
|
|
208
|
+
"pins:read",
|
|
209
|
+
"pins:write",
|
|
210
|
+
"emoji:read",
|
|
211
|
+
"commands",
|
|
212
|
+
"files:read",
|
|
213
|
+
"files:write"
|
|
214
|
+
],
|
|
215
|
+
"user": [
|
|
216
|
+
"channels:history",
|
|
217
|
+
"channels:read",
|
|
218
|
+
"groups:history",
|
|
219
|
+
"groups:read",
|
|
220
|
+
"im:history",
|
|
221
|
+
"im:read",
|
|
222
|
+
"mpim:history",
|
|
223
|
+
"mpim:read",
|
|
224
|
+
"users:read",
|
|
225
|
+
"reactions:read",
|
|
226
|
+
"pins:read",
|
|
227
|
+
"emoji:read",
|
|
228
|
+
"search:read"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"settings": {
|
|
233
|
+
"socket_mode_enabled": true,
|
|
234
|
+
"event_subscriptions": {
|
|
235
|
+
"bot_events": [
|
|
236
|
+
"app_mention",
|
|
237
|
+
"message.channels",
|
|
238
|
+
"message.groups",
|
|
239
|
+
"message.im",
|
|
240
|
+
"message.mpim",
|
|
241
|
+
"reaction_added",
|
|
242
|
+
"reaction_removed",
|
|
243
|
+
"member_joined_channel",
|
|
244
|
+
"member_left_channel",
|
|
245
|
+
"channel_rename",
|
|
246
|
+
"pin_added",
|
|
247
|
+
"pin_removed"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
如果启用原生命令,为每个要公开的命令添加一个 `slash_commands` 条目(与 `/help` 列表匹配)。使用 `channels.slack.commands.native` 覆盖。
|
|
255
|
+
|
|
256
|
+
## 权限范围(当前 vs 可选)
|
|
257
|
+
|
|
258
|
+
Slack 的 Conversations API 是按类型区分的:你只需要你实际接触的会话类型(channels、groups、im、mpim)的权限范围。概述参见 https://docs.slack.dev/apis/web-api/using-the-conversations-api/。
|
|
259
|
+
|
|
260
|
+
### Bot 令牌权限范围(必需)
|
|
261
|
+
|
|
262
|
+
- `chat:write`(通过 `chat.postMessage` 发送/更新/删除消息)
|
|
263
|
+
https://docs.slack.dev/reference/methods/chat.postMessage
|
|
264
|
+
- `im:write`(通过 `conversations.open` 打开私信用于用户私信)
|
|
265
|
+
https://docs.slack.dev/reference/methods/conversations.open
|
|
266
|
+
- `channels:history`、`groups:history`、`im:history`、`mpim:history`
|
|
267
|
+
https://docs.slack.dev/reference/methods/conversations.history
|
|
268
|
+
- `channels:read`、`groups:read`、`im:read`、`mpim:read`
|
|
269
|
+
https://docs.slack.dev/reference/methods/conversations.info
|
|
270
|
+
- `users:read`(用户查询)
|
|
271
|
+
https://docs.slack.dev/reference/methods/users.info
|
|
272
|
+
- `reactions:read`、`reactions:write`(`reactions.get` / `reactions.add`)
|
|
273
|
+
https://docs.slack.dev/reference/methods/reactions.get
|
|
274
|
+
https://docs.slack.dev/reference/methods/reactions.add
|
|
275
|
+
- `pins:read`、`pins:write`(`pins.list` / `pins.add` / `pins.remove`)
|
|
276
|
+
https://docs.slack.dev/reference/scopes/pins.read
|
|
277
|
+
https://docs.slack.dev/reference/scopes/pins.write
|
|
278
|
+
- `emoji:read`(`emoji.list`)
|
|
279
|
+
https://docs.slack.dev/reference/scopes/emoji.read
|
|
280
|
+
- `files:write`(通过 `files.uploadV2` 上传)
|
|
281
|
+
https://docs.slack.dev/messaging/working-with-files/#upload
|
|
282
|
+
|
|
283
|
+
### 用户令牌权限范围(可选,默认只读)
|
|
284
|
+
|
|
285
|
+
如果你配置了 `channels.slack.userToken`,在 **User Token Scopes** 下添加这些。
|
|
286
|
+
|
|
287
|
+
- `channels:history`、`groups:history`、`im:history`、`mpim:history`
|
|
288
|
+
- `channels:read`、`groups:read`、`im:read`、`mpim:read`
|
|
289
|
+
- `users:read`
|
|
290
|
+
- `reactions:read`
|
|
291
|
+
- `pins:read`
|
|
292
|
+
- `emoji:read`
|
|
293
|
+
- `search:read`
|
|
294
|
+
|
|
295
|
+
### 目前不需要(但未来可能需要)
|
|
296
|
+
|
|
297
|
+
- `mpim:write`(仅当我们添加群组私信打开/私信启动时通过 `conversations.open`)
|
|
298
|
+
- `groups:write`(仅当我们添加私有频道管理时:创建/重命名/邀请/归档)
|
|
299
|
+
- `chat:write.public`(仅当我们想发布到机器人未加入的频道时)
|
|
300
|
+
https://docs.slack.dev/reference/scopes/chat.write.public
|
|
301
|
+
- `users:read.email`(仅当我们需要从 `users.info` 获取邮箱字段时)
|
|
302
|
+
https://docs.slack.dev/changelog/2017-04-narrowing-email-access
|
|
303
|
+
- `files:read`(仅当我们开始列出/读取文件元数据时)
|
|
304
|
+
|
|
305
|
+
## 配置
|
|
306
|
+
|
|
307
|
+
Slack 仅使用 Socket Mode(无 HTTP webhook 服务器)。提供两个令牌:
|
|
308
|
+
|
|
309
|
+
```json
|
|
310
|
+
{
|
|
311
|
+
"slack": {
|
|
312
|
+
"enabled": true,
|
|
313
|
+
"botToken": "xoxb-...",
|
|
314
|
+
"appToken": "xapp-...",
|
|
315
|
+
"groupPolicy": "allowlist",
|
|
316
|
+
"dm": {
|
|
317
|
+
"enabled": true,
|
|
318
|
+
"policy": "pairing",
|
|
319
|
+
"allowFrom": ["U123", "U456", "*"],
|
|
320
|
+
"groupEnabled": false,
|
|
321
|
+
"groupChannels": ["G123"],
|
|
322
|
+
"replyToMode": "all"
|
|
323
|
+
},
|
|
324
|
+
"channels": {
|
|
325
|
+
"C123": { "allow": true, "requireMention": true },
|
|
326
|
+
"#general": {
|
|
327
|
+
"allow": true,
|
|
328
|
+
"requireMention": true,
|
|
329
|
+
"users": ["U123"],
|
|
330
|
+
"skills": ["search", "docs"],
|
|
331
|
+
"systemPrompt": "Keep answers short."
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"reactionNotifications": "own",
|
|
335
|
+
"reactionAllowlist": ["U123"],
|
|
336
|
+
"replyToMode": "off",
|
|
337
|
+
"actions": {
|
|
338
|
+
"reactions": true,
|
|
339
|
+
"messages": true,
|
|
340
|
+
"pins": true,
|
|
341
|
+
"memberInfo": true,
|
|
342
|
+
"emojiList": true
|
|
343
|
+
},
|
|
344
|
+
"slashCommand": {
|
|
345
|
+
"enabled": true,
|
|
346
|
+
"name": "quantumclaw",
|
|
347
|
+
"sessionPrefix": "slack:slash",
|
|
348
|
+
"ephemeral": true
|
|
349
|
+
},
|
|
350
|
+
"textChunkLimit": 4000,
|
|
351
|
+
"mediaMaxMb": 20
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
令牌也可以通过环境变量提供:
|
|
357
|
+
|
|
358
|
+
- `SLACK_BOT_TOKEN`
|
|
359
|
+
- `SLACK_APP_TOKEN`
|
|
360
|
+
|
|
361
|
+
确认表情回应通过 `messages.ackReaction` + `messages.ackReactionScope` 全局控制。使用 `messages.removeAckAfterReply` 在机器人回复后清除确认表情回应。
|
|
362
|
+
|
|
363
|
+
## 限制
|
|
364
|
+
|
|
365
|
+
- 出站文本按 `channels.slack.textChunkLimit` 分块(默认 4000)。
|
|
366
|
+
- 可选的换行分块:设置 `channels.slack.chunkMode="newline"` 以在长度分块之前按空行(段落边界)分割。
|
|
367
|
+
- 媒体上传受 `channels.slack.mediaMaxMb` 限制(默认 20)。
|
|
368
|
+
|
|
369
|
+
## 回复线程
|
|
370
|
+
|
|
371
|
+
默认情况下,QuantumClaw 在主频道回复。使用 `channels.slack.replyToMode` 控制自动线程:
|
|
372
|
+
|
|
373
|
+
| 模式 | 行为 |
|
|
374
|
+
| ------- | -------------------------------------------------------------------------------------------- |
|
|
375
|
+
| `off` | **默认。** 在主频道回复。仅当触发消息已在线程中时才使用线程。 |
|
|
376
|
+
| `first` | 第一条回复进入线程(在触发消息下),后续回复进入主频道。适合保持上下文可见同时避免线程混乱。 |
|
|
377
|
+
| `all` | 所有回复都进入线程。保持对话集中但可能降低可见性。 |
|
|
378
|
+
|
|
379
|
+
该模式适用于自动回复和智能体工具调用(`slack sendMessage`)。
|
|
380
|
+
|
|
381
|
+
### 按聊天类型的线程
|
|
382
|
+
|
|
383
|
+
你可以通过设置 `channels.slack.replyToModeByChatType` 为每种聊天类型配置不同的线程行为:
|
|
384
|
+
|
|
385
|
+
```json5
|
|
386
|
+
{
|
|
387
|
+
channels: {
|
|
388
|
+
slack: {
|
|
389
|
+
replyToMode: "off", // 频道的默认值
|
|
390
|
+
replyToModeByChatType: {
|
|
391
|
+
direct: "all", // 私信始终使用线程
|
|
392
|
+
group: "first", // 群组私信/MPIM 第一条回复使用线程
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
}
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
支持的聊天类型:
|
|
400
|
+
|
|
401
|
+
- `direct`:一对一私信(Slack `im`)
|
|
402
|
+
- `group`:群组私信 / MPIM(Slack `mpim`)
|
|
403
|
+
- `channel`:标准频道(公开/私有)
|
|
404
|
+
|
|
405
|
+
优先级:
|
|
406
|
+
|
|
407
|
+
1. `replyToModeByChatType.<chatType>`
|
|
408
|
+
2. `replyToMode`
|
|
409
|
+
3. 提供商默认值(`off`)
|
|
410
|
+
|
|
411
|
+
当未设置聊天类型覆盖时,旧版 `channels.slack.dm.replyToMode` 仍可作为 `direct` 的回退。
|
|
412
|
+
|
|
413
|
+
示例:
|
|
414
|
+
|
|
415
|
+
仅对私信使用线程:
|
|
416
|
+
|
|
417
|
+
```json5
|
|
418
|
+
{
|
|
419
|
+
channels: {
|
|
420
|
+
slack: {
|
|
421
|
+
replyToMode: "off",
|
|
422
|
+
replyToModeByChatType: { direct: "all" },
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
}
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
对群组私信使用线程但保持频道在根级别:
|
|
429
|
+
|
|
430
|
+
```json5
|
|
431
|
+
{
|
|
432
|
+
channels: {
|
|
433
|
+
slack: {
|
|
434
|
+
replyToMode: "off",
|
|
435
|
+
replyToModeByChatType: { group: "first" },
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
}
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
让频道使用线程,保持私信在根级别:
|
|
442
|
+
|
|
443
|
+
```json5
|
|
444
|
+
{
|
|
445
|
+
channels: {
|
|
446
|
+
slack: {
|
|
447
|
+
replyToMode: "first",
|
|
448
|
+
replyToModeByChatType: { direct: "off", group: "off" },
|
|
449
|
+
},
|
|
450
|
+
},
|
|
451
|
+
}
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
### 手动线程标签
|
|
455
|
+
|
|
456
|
+
对于细粒度控制,在智能体响应中使用这些标签:
|
|
457
|
+
|
|
458
|
+
- `[[reply_to_current]]` — 回复触发消息(开始/继续线程)。
|
|
459
|
+
- `[[reply_to:<id>]]` — 回复特定的消息 id。
|
|
460
|
+
|
|
461
|
+
## 会话 + 路由
|
|
462
|
+
|
|
463
|
+
- 私信共享 `main` 会话(与 WhatsApp/Telegram 相同)。
|
|
464
|
+
- 频道映射到 `agent:<agentId>:slack:channel:<channelId>` 会话。
|
|
465
|
+
- 斜杠命令使用 `agent:<agentId>:slack:slash:<userId>` 会话(前缀可通过 `channels.slack.slashCommand.sessionPrefix` 配置)。
|
|
466
|
+
- 如果 Slack 未提供 `channel_type`,QuantumClaw 会从频道 ID 前缀(`D`、`C`、`G`)推断并默认为 `channel` 以保持会话键稳定。
|
|
467
|
+
- 原生命令注册使用 `commands.native`(全局默认 `"auto"` → Slack 关闭),可以使用 `channels.slack.commands.native` 按工作空间覆盖。文本命令需要独立的 `/...` 消息,可以使用 `commands.text: false` 禁用。Slack 斜杠命令在 Slack 应用中管理,不会自动移除。使用 `commands.useAccessGroups: false` 绕过命令的访问组检查。
|
|
468
|
+
- 完整命令列表 + 配置:[斜杠命令](/tools/slash-commands)
|
|
469
|
+
|
|
470
|
+
## 私信安全(配对)
|
|
471
|
+
|
|
472
|
+
- 默认:`channels.slack.dm.policy="pairing"` — 未知的私信发送者会收到配对码(1 小时后过期)。
|
|
473
|
+
- 通过以下方式批准:`quantumclaw pairing approve slack <code>`。
|
|
474
|
+
- 要允许任何人:设置 `channels.slack.dm.policy="open"` 和 `channels.slack.dm.allowFrom=["*"]`。
|
|
475
|
+
- `channels.slack.dm.allowFrom` 接受用户 ID、@用户名或邮箱(在令牌允许时启动时解析)。向导在设置期间接受用户名,并在令牌允许时将其解析为 ID。
|
|
476
|
+
|
|
477
|
+
## 群组策略
|
|
478
|
+
|
|
479
|
+
- `channels.slack.groupPolicy` 控制频道处理(`open|disabled|allowlist`)。
|
|
480
|
+
- `allowlist` 要求频道列在 `channels.slack.channels` 中。
|
|
481
|
+
- 如果你只设置了 `SLACK_BOT_TOKEN`/`SLACK_APP_TOKEN` 而从未创建 `channels.slack` 部分,运行时默认将 `groupPolicy` 设为 `open`。添加 `channels.slack.groupPolicy`、`channels.defaults.groupPolicy` 或频道白名单来锁定它。
|
|
482
|
+
- 配置向导接受 `#channel` 名称,并在可能时(公开 + 私有)将其解析为 ID;如果存在多个匹配,它优先选择活跃的频道。
|
|
483
|
+
- 启动时,QuantumClaw 将白名单中的频道/用户名解析为 ID(在令牌允许时)并记录映射;未解析的条目按原样保留。
|
|
484
|
+
- 要**不允许任何频道**,设置 `channels.slack.groupPolicy: "disabled"`(或保留空白名单)。
|
|
485
|
+
|
|
486
|
+
频道选项(`channels.slack.channels.<id>` 或 `channels.slack.channels.<name>`):
|
|
487
|
+
|
|
488
|
+
- `allow`:当 `groupPolicy="allowlist"` 时允许/拒绝频道。
|
|
489
|
+
- `requireMention`:频道的提及门控。
|
|
490
|
+
- `tools`:可选的每频道工具策略覆盖(`allow`/`deny`/`alsoAllow`)。
|
|
491
|
+
- `toolsBySender`:频道内可选的每发送者工具策略覆盖(键为发送者 id/@用户名/邮箱;支持 `"*"` 通配符)。
|
|
492
|
+
- `allowBots`:允许此频道中机器人发送的消息(默认:false)。
|
|
493
|
+
- `users`:可选的每频道用户白名单。
|
|
494
|
+
- `skills`:Skills 过滤器(省略 = 所有 Skills,空 = 无)。
|
|
495
|
+
- `systemPrompt`:频道的额外系统提示(与主题/目的组合)。
|
|
496
|
+
- `enabled`:设置为 `false` 以禁用频道。
|
|
497
|
+
|
|
498
|
+
## 投递目标
|
|
499
|
+
|
|
500
|
+
与 cron/CLI 发送一起使用:
|
|
501
|
+
|
|
502
|
+
- `user:<id>` 用于私信
|
|
503
|
+
- `channel:<id>` 用于频道
|
|
504
|
+
|
|
505
|
+
## 工具操作
|
|
506
|
+
|
|
507
|
+
Slack 工具操作可以通过 `channels.slack.actions.*` 进行门控:
|
|
508
|
+
|
|
509
|
+
| 操作组 | 默认 | 说明 |
|
|
510
|
+
| ---------- | ------ | ----------------------- |
|
|
511
|
+
| reactions | 已启用 | 表情回应 + 列出表情回应 |
|
|
512
|
+
| messages | 已启用 | 读取/发送/编辑/删除 |
|
|
513
|
+
| pins | 已启用 | 置顶/取消置顶/列表 |
|
|
514
|
+
| memberInfo | 已启用 | 成员信息 |
|
|
515
|
+
| emojiList | 已启用 | 自定义表情符号列表 |
|
|
516
|
+
|
|
517
|
+
## 安全说明
|
|
518
|
+
|
|
519
|
+
- 写入默认使用 bot 令牌,因此状态更改操作保持在应用的机器人权限和身份范围内。
|
|
520
|
+
- 设置 `userTokenReadOnly: false` 允许在 bot 令牌不可用时使用用户令牌进行写入操作,这意味着操作以安装用户的访问权限运行。将用户令牌视为高权限,并保持操作门控和白名单严格。
|
|
521
|
+
- 如果你启用用户令牌写入,请确保用户令牌包含你期望的写入权限范围(`chat:write`、`reactions:write`、`pins:write`、`files:write`),否则这些操作将失败。
|
|
522
|
+
|
|
523
|
+
## 说明
|
|
524
|
+
|
|
525
|
+
- 提及门控通过 `channels.slack.channels` 控制(将 `requireMention` 设置为 `true`);`agents.list[].groupChat.mentionPatterns`(或 `messages.groupChat.mentionPatterns`)也算作提及。
|
|
526
|
+
- 多智能体覆盖:在 `agents.list[].groupChat.mentionPatterns` 上设置每智能体的模式。
|
|
527
|
+
- 表情回应通知遵循 `channels.slack.reactionNotifications`(在 `allowlist` 模式下使用 `reactionAllowlist`)。
|
|
528
|
+
- 默认忽略机器人发送的消息;通过 `channels.slack.allowBots` 或 `channels.slack.channels.<id>.allowBots` 启用。
|
|
529
|
+
- 警告:如果你允许回复其他机器人(`channels.slack.allowBots=true` 或 `channels.slack.channels.<id>.allowBots=true`),请使用 `requireMention`、`channels.slack.channels.<id>.users` 白名单和/或在 `AGENTS.md` 和 `SOUL.md` 中设置明确的防护措施来防止机器人之间的回复循环。
|
|
530
|
+
- 对于 Slack 工具,表情回应移除语义见 [/tools/reactions](/tools/reactions)。
|
|
531
|
+
- 附件在允许且在大小限制内时会下载到媒体存储。
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
---
|
|
2
|
+
read_when:
|
|
3
|
+
- 设置 QuantumClaw 与 Synology Chat
|
|
4
|
+
- 调试 Synology Chat webhook 路由
|
|
5
|
+
summary: Synology Chat webhook 设置与 QuantumClaw 配置
|
|
6
|
+
title: Synology Chat
|
|
7
|
+
x-i18n:
|
|
8
|
+
generated_at: "2026-03-16T06:20:51Z"
|
|
9
|
+
model: gpt-5.4
|
|
10
|
+
provider: openai
|
|
11
|
+
source_hash: 7d77598ea759f89873a1edf0a3a7e7fedc1e4a7067709aaca6b999056a89eb1a
|
|
12
|
+
source_path: channels/synology-chat.md
|
|
13
|
+
workflow: 15
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Synology Chat(插件)
|
|
17
|
+
|
|
18
|
+
状态:通过插件支持,作为使用 Synology Chat webhook 的私信渠道。
|
|
19
|
+
该插件接受来自 Synology Chat 出站 webhook 的入站消息,并通过 Synology Chat 入站 webhook 发送回复。
|
|
20
|
+
|
|
21
|
+
## 需要插件
|
|
22
|
+
|
|
23
|
+
Synology Chat 基于插件,不属于默认的核心渠道安装内容。
|
|
24
|
+
|
|
25
|
+
从本地检出安装:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
quantumclaw plugins install ./extensions/synology-chat
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
详情:[插件](/tools/plugin)
|
|
32
|
+
|
|
33
|
+
## 快速设置
|
|
34
|
+
|
|
35
|
+
1. 安装并启用 Synology Chat 插件。
|
|
36
|
+
- `quantumclaw onboard` 现在会在与 `quantumclaw channels add` 相同的渠道设置列表中显示 Synology Chat。
|
|
37
|
+
- 非交互式设置:`quantumclaw channels add --channel synology-chat --token <token> --url <incoming-webhook-url>`
|
|
38
|
+
2. 在 Synology Chat 集成中:
|
|
39
|
+
- 创建一个入站 webhook 并复制其 URL。
|
|
40
|
+
- 使用你的 secret token 创建一个出站 webhook。
|
|
41
|
+
3. 将出站 webhook URL 指向你的 QuantumClaw Gateway 网关:
|
|
42
|
+
- 默认是 `https://gateway-host/webhook/synology`。
|
|
43
|
+
- 或者使用你自定义的 `channels.synology-chat.webhookPath`。
|
|
44
|
+
4. 在 QuantumClaw 中完成设置。
|
|
45
|
+
- 引导式:`quantumclaw onboard`
|
|
46
|
+
- 直接设置:`quantumclaw channels add --channel synology-chat --token <token> --url <incoming-webhook-url>`
|
|
47
|
+
5. 重启 Gateway 网关,并向 Synology Chat 机器人发送一条私信。
|
|
48
|
+
|
|
49
|
+
最小配置:
|
|
50
|
+
|
|
51
|
+
```json5
|
|
52
|
+
{
|
|
53
|
+
channels: {
|
|
54
|
+
"synology-chat": {
|
|
55
|
+
enabled: true,
|
|
56
|
+
token: "synology-outgoing-token",
|
|
57
|
+
incomingUrl: "https://nas.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=...",
|
|
58
|
+
webhookPath: "/webhook/synology",
|
|
59
|
+
dmPolicy: "allowlist",
|
|
60
|
+
allowedUserIds: ["123456"],
|
|
61
|
+
rateLimitPerMinute: 30,
|
|
62
|
+
allowInsecureSsl: false,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 环境变量
|
|
69
|
+
|
|
70
|
+
对于默认账户,你可以使用环境变量:
|
|
71
|
+
|
|
72
|
+
- `SYNOLOGY_CHAT_TOKEN`
|
|
73
|
+
- `SYNOLOGY_CHAT_INCOMING_URL`
|
|
74
|
+
- `SYNOLOGY_NAS_HOST`
|
|
75
|
+
- `SYNOLOGY_ALLOWED_USER_IDS`(逗号分隔)
|
|
76
|
+
- `SYNOLOGY_RATE_LIMIT`
|
|
77
|
+
- `QUANTUMCLAW_BOT_NAME`
|
|
78
|
+
|
|
79
|
+
配置值会覆盖环境变量。
|
|
80
|
+
|
|
81
|
+
## 私信策略与访问控制
|
|
82
|
+
|
|
83
|
+
- 推荐的默认值是 `dmPolicy: "allowlist"`。
|
|
84
|
+
- `allowedUserIds` 接受 Synology 用户 ID 列表(或逗号分隔字符串)。
|
|
85
|
+
- 在 `allowlist` 模式下,空的 `allowedUserIds` 列表会被视为配置错误,webhook 路由将不会启动(如需允许所有人,请使用 `dmPolicy: "open"`)。
|
|
86
|
+
- `dmPolicy: "open"` 允许任何发送方。
|
|
87
|
+
- `dmPolicy: "disabled"` 会阻止私信。
|
|
88
|
+
- 配对批准可配合以下命令使用:
|
|
89
|
+
- `quantumclaw pairing list synology-chat`
|
|
90
|
+
- `quantumclaw pairing approve synology-chat <CODE>`
|
|
91
|
+
|
|
92
|
+
## 出站投递
|
|
93
|
+
|
|
94
|
+
使用数字形式的 Synology Chat 用户 ID 作为目标。
|
|
95
|
+
|
|
96
|
+
示例:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
quantumclaw message send --channel synology-chat --target 123456 --text "Hello from QuantumClaw"
|
|
100
|
+
quantumclaw message send --channel synology-chat --target synology-chat:123456 --text "Hello again"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
支持通过基于 URL 的文件投递发送媒体。
|
|
104
|
+
|
|
105
|
+
## 多账户
|
|
106
|
+
|
|
107
|
+
支持在 `channels.synology-chat.accounts` 下配置多个 Synology Chat 账户。
|
|
108
|
+
每个账户都可以覆盖 token、入站 URL、webhook 路径、私信策略和限制。
|
|
109
|
+
|
|
110
|
+
```json5
|
|
111
|
+
{
|
|
112
|
+
channels: {
|
|
113
|
+
"synology-chat": {
|
|
114
|
+
enabled: true,
|
|
115
|
+
accounts: {
|
|
116
|
+
default: {
|
|
117
|
+
token: "token-a",
|
|
118
|
+
incomingUrl: "https://nas-a.example.com/...token=...",
|
|
119
|
+
},
|
|
120
|
+
alerts: {
|
|
121
|
+
token: "token-b",
|
|
122
|
+
incomingUrl: "https://nas-b.example.com/...token=...",
|
|
123
|
+
webhookPath: "/webhook/synology-alerts",
|
|
124
|
+
dmPolicy: "allowlist",
|
|
125
|
+
allowedUserIds: ["987654"],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## 安全说明
|
|
134
|
+
|
|
135
|
+
- 妥善保管 `token`,如果泄露请轮换。
|
|
136
|
+
- 除非你明确可信任本地 NAS 的自签名证书,否则请保持 `allowInsecureSsl: false`。
|
|
137
|
+
- 入站 webhook 请求会按 token 验证,并按发送方进行速率限制。
|
|
138
|
+
- 生产环境优先使用 `dmPolicy: "allowlist"`。
|