mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
docs(plugins): define config ownership contract
* fix(plugins): flag channel config metadata gaps * docs(plugins): clarify config ownership
This commit is contained in:
@@ -322,9 +322,13 @@ should use `resolveInboundMentionDecision({ facts, policy })`.
|
||||
"configSchema": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"acme-chat": {
|
||||
"properties": {}
|
||||
},
|
||||
"channelConfigs": {
|
||||
"acme-chat": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"token": { "type": "string" },
|
||||
"allowFrom": {
|
||||
@@ -332,6 +336,12 @@ should use `resolveInboundMentionDecision({ facts, policy })`.
|
||||
"items": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"uiHints": {
|
||||
"token": {
|
||||
"label": "Bot token",
|
||||
"sensitive": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -339,6 +349,11 @@ should use `resolveInboundMentionDecision({ facts, policy })`.
|
||||
```
|
||||
</CodeGroup>
|
||||
|
||||
`configSchema` validates `plugins.entries.acme-chat.config`. Use it for
|
||||
plugin-owned settings that are not the channel account config. `channelConfigs`
|
||||
validates `channels.acme-chat` and is the cold-path source used by config
|
||||
schema, setup, and UI surfaces before the plugin runtime loads.
|
||||
|
||||
</Step>
|
||||
|
||||
<Step title="Build the channel plugin object">
|
||||
|
||||
Reference in New Issue
Block a user