Minimal v1 platform action surface for plugins, routed through the live gateway adapter registry — the sanctioned alternative to monkeypatching an adapter: - ctx.platform_actions.add_reaction(platform, chat_id, message_id, emoji) - ctx.platform_actions.set_thread_title(platform, chat_id, thread_id, title) Gated behind a new 'gateway.platform_actions' capability in CAPABILITY_REGISTRY (legacy key plugins.entries.<id>.allow_platform_actions, default OFF), re-checked on every call via plugin_capability_granted (the #84912 consent registry). Verbs validate the adapter exists and is connected, return structured {ok, error, detail} results with stable error codes, and never raise into hook dispatch. Every action is audit-logged with plugin id, verb, platform, and outcome. Telegram routes to _set_reaction / rename_dm_topic; Discord to fetch_message().add_reaction / rename_thread. No adapter handles or raw SDK objects are exposed. Docs: plugins.md platform-actions section with the security note and the explicit raw-SDK-not-shipped statement. |
||
|---|---|---|
| .. | ||
| docs | ||
| i18n/zh-Hans/docusaurus-plugin-content-docs/current | ||
| scripts | ||
| src | ||
| static | ||
| .gitignore | ||
| .npmrc | ||
| README.md | ||
| docusaurus.config.ts | ||
| package-lock.json | ||
| package.json | ||
| sidebars.ts | ||
| tsconfig.json | ||
README.md
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.