mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:50:43 +00:00
docs: clarify hook config and feishu policy
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
5e437b340f321aafa12697df2b77a2f13b33069042784fd49de4273ebacf46be config-baseline.json
|
||||
5ffabe5ff76d8e4a0d121e89f74f84917b919447e63bf12e0e5b0e4c0211d451 config-baseline.json
|
||||
7dcb21e47ddd5de98e2af1ecbc41e11ac0c5742819c359e6d851fbc39c0226e9 config-baseline.core.json
|
||||
c4f07c228d4f07e7afafa5b600b4a80f5b26aaed7267c7287a64d04a527be8e8 config-baseline.channel.json
|
||||
10400fb5b294fe3f2e97ab69327c75308bb2bf014b399ec0e2d59b8cd9d16ff1 config-baseline.plugin.json
|
||||
6938050627f0d120109d2045b4300aa8b508b35132542db434033ed0fe3e2b3a config-baseline.plugin.json
|
||||
|
||||
@@ -63,7 +63,7 @@ openclaw pairing approve feishu <CODE>
|
||||
| ------------- | -------------------------------------------------------------------------------------------- |
|
||||
| `"open"` | Respond to all messages in groups |
|
||||
| `"allowlist"` | Only respond to groups in `groupAllowFrom` or explicitly configured under `groups.<chat_id>` |
|
||||
| `"disabled"` | Disable all group messages |
|
||||
| `"disabled"` | Disable all group messages; explicit `groups.<chat_id>` entries do not override this |
|
||||
|
||||
Default: `allowlist`
|
||||
|
||||
@@ -117,7 +117,7 @@ Default: `allowlist`
|
||||
}
|
||||
```
|
||||
|
||||
You can also admit a group by adding an explicit `groups.<chat_id>` entry. Wildcard defaults under `groups.*` configure matching groups, but they do not admit groups by themselves.
|
||||
In `allowlist` mode, you can also admit a group by adding an explicit `groups.<chat_id>` entry. Explicit entries do not override `groupPolicy: "disabled"`. Wildcard defaults under `groups.*` configure matching groups, but they do not admit groups by themselves.
|
||||
|
||||
```json5
|
||||
{
|
||||
|
||||
@@ -52,6 +52,11 @@ export default definePluginEntry({
|
||||
Hook handlers run sequentially in descending `priority`. Same-priority hooks
|
||||
keep registration order.
|
||||
|
||||
Each hook receives `event.context.pluginConfig`, the resolved config for the
|
||||
plugin that registered that handler. Use it for hook decisions that need
|
||||
current plugin options; OpenClaw injects it per handler without mutating the
|
||||
shared event object seen by other plugins.
|
||||
|
||||
## Hook catalog
|
||||
|
||||
Hooks are grouped by the surface they extend. Names in **bold** accept a
|
||||
|
||||
Reference in New Issue
Block a user