diff --git a/docs/gateway/configuration-reference.md b/docs/gateway/configuration-reference.md index 008d15ff4..525c49cfc 100644 --- a/docs/gateway/configuration-reference.md +++ b/docs/gateway/configuration-reference.md @@ -2021,6 +2021,7 @@ Auth: `Authorization: Bearer ` or `x-openclaw-token: `. - `match.source` matches a payload field for generic paths. - Templates like `{{messages[0].subject}}` read from the payload. - `transform` can point to a JS/TS module returning a hook action. + - `transform.module` must be a relative path and stays within `hooks.transformsDir` (absolute paths and traversal are rejected). - `agentId` routes to a specific agent; unknown IDs fall back to default. - `allowedAgentIds`: restricts explicit routing (`*` or omitted = allow all, `[]` = deny all). - `defaultSessionKey`: optional fixed session key for hook agent runs without explicit `sessionKey`.