mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix(docs): update outdated hooks documentation URLs (#16165)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 8ed13fb02f
Co-authored-by: nicholascyh <188132635+nicholascyh@users.noreply.github.com>
Co-authored-by: steipete <58493+steipete@users.noreply.github.com>
Reviewed-by: @steipete
This commit is contained in:
@@ -136,7 +136,7 @@ Use this for GHSA-linked fixes and private reports.
|
|||||||
4. In GitHub advisory UI, set package ranges in the structured fields:
|
4. In GitHub advisory UI, set package ranges in the structured fields:
|
||||||
- `Affected versions`: `< fixed_version`
|
- `Affected versions`: `< fixed_version`
|
||||||
- `Patched versions`: `>= fixed_version`
|
- `Patched versions`: `>= fixed_version`
|
||||||
Do not rely on description text alone.
|
Do not rely on description text alone.
|
||||||
5. If collaborator can edit text but cannot change advisory state, hand off to a Publisher to move triage -> accepted draft -> publish.
|
5. If collaborator can edit text but cannot change advisory state, hand off to a Publisher to move triage -> accepted draft -> publish.
|
||||||
6. Advisory comments are posted manually in UI when required by policy. Do not rely on `gh api` automation for advisory comments.
|
6. Advisory comments are posted manually in UI when required by policy. Do not rely on `gh api` automation for advisory comments.
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
### Fixes
|
### Fixes
|
||||||
|
|
||||||
- Gateway/Auth: add trusted-proxy mode hardening follow-ups by keeping `OPENCLAW_GATEWAY_*` env compatibility, auto-normalizing invalid setup combinations in interactive `gateway configure` (trusted-proxy forces `bind=lan` and disables Tailscale serve/funnel), and suppressing shared-secret/rate-limit audit findings that do not apply to trusted-proxy deployments. (#15940) Thanks @nickytonline.
|
- Gateway/Auth: add trusted-proxy mode hardening follow-ups by keeping `OPENCLAW_GATEWAY_*` env compatibility, auto-normalizing invalid setup combinations in interactive `gateway configure` (trusted-proxy forces `bind=lan` and disables Tailscale serve/funnel), and suppressing shared-secret/rate-limit audit findings that do not apply to trusted-proxy deployments. (#15940) Thanks @nickytonline.
|
||||||
|
- Docs/Hooks: update hooks documentation URLs to the new `/automation/hooks` location. (#16165) Thanks @nicholascyh.
|
||||||
- Security/Audit: warn when `gateway.tools.allow` re-enables default-denied tools over HTTP `POST /tools/invoke`, since this can increase RCE blast radius if the gateway is reachable.
|
- Security/Audit: warn when `gateway.tools.allow` re-enables default-denied tools over HTTP `POST /tools/invoke`, since this can increase RCE blast radius if the gateway is reachable.
|
||||||
- Feishu: stop persistent Typing reaction on NO_REPLY/suppressed runs by wiring reply-dispatcher cleanup to remove typing indicators. (#15464) Thanks @arosstale.
|
- Feishu: stop persistent Typing reaction on NO_REPLY/suppressed runs by wiring reply-dispatcher cleanup to remove typing indicators. (#15464) Thanks @arosstale.
|
||||||
- BlueBubbles: gracefully degrade when Private API is disabled by filtering private-only actions, skipping private-only reactions/reply effects, and avoiding private reply markers so non-private flows remain usable. (#16002) Thanks @L-U-C-K-Y.
|
- BlueBubbles: gracefully degrade when Private API is disabled by filtering private-only actions, skipping private-only reactions/reply effects, and avoiding private reply markers so non-private flows remain usable. (#16002) Thanks @L-U-C-K-Y.
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ The `HOOK.md` file contains metadata in YAML frontmatter plus Markdown documenta
|
|||||||
---
|
---
|
||||||
name: my-hook
|
name: my-hook
|
||||||
description: "Short description of what this hook does"
|
description: "Short description of what this hook does"
|
||||||
homepage: https://docs.openclaw.ai/hooks#my-hook
|
homepage: https://docs.openclaw.ai/automation/hooks#my-hook
|
||||||
metadata:
|
metadata:
|
||||||
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ Details:
|
|||||||
Source: openclaw-bundled
|
Source: openclaw-bundled
|
||||||
Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md
|
Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md
|
||||||
Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts
|
Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts
|
||||||
Homepage: https://docs.openclaw.ai/hooks#session-memory
|
Homepage: https://docs.openclaw.ai/automation/hooks#session-memory
|
||||||
Events: command:new
|
Events: command:new
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ Hook 包可以附带依赖;它们将安装在 `~/.openclaw/hooks/<id>` 下。
|
|||||||
---
|
---
|
||||||
name: my-hook
|
name: my-hook
|
||||||
description: "Short description of what this hook does"
|
description: "Short description of what this hook does"
|
||||||
homepage: https://docs.openclaw.ai/hooks#my-hook
|
homepage: https://docs.openclaw.ai/automation/hooks#my-hook
|
||||||
metadata:
|
metadata:
|
||||||
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ Details:
|
|||||||
Source: openclaw-bundled
|
Source: openclaw-bundled
|
||||||
Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md
|
Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md
|
||||||
Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts
|
Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts
|
||||||
Homepage: https://docs.openclaw.ai/hooks#session-memory
|
Homepage: https://docs.openclaw.ai/automation/hooks#session-memory
|
||||||
Events: command:new
|
Events: command:new
|
||||||
|
|
||||||
Requirements:
|
Requirements:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const report: HookStatusReport = {
|
|||||||
handlerPath: "/tmp/hooks/session-memory/handler.js",
|
handlerPath: "/tmp/hooks/session-memory/handler.js",
|
||||||
hookKey: "session-memory",
|
hookKey: "session-memory",
|
||||||
emoji: "💾",
|
emoji: "💾",
|
||||||
homepage: "https://docs.openclaw.ai/hooks#session-memory",
|
homepage: "https://docs.openclaw.ai/automation/hooks#session-memory",
|
||||||
events: ["command:new"],
|
events: ["command:new"],
|
||||||
always: false,
|
always: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export async function setupInternalHooks(
|
|||||||
"Hooks let you automate actions when agent commands are issued.",
|
"Hooks let you automate actions when agent commands are issued.",
|
||||||
"Example: Save session context to memory when you issue /new.",
|
"Example: Save session context to memory when you issue /new.",
|
||||||
"",
|
"",
|
||||||
"Learn more: https://docs.openclaw.ai/hooks",
|
"Learn more: https://docs.openclaw.ai/automation/hooks",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
"Hooks",
|
"Hooks",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ session-memory/
|
|||||||
---
|
---
|
||||||
name: my-hook
|
name: my-hook
|
||||||
description: "Short description"
|
description: "Short description"
|
||||||
homepage: https://docs.openclaw.ai/hooks#my-hook
|
homepage: https://docs.openclaw.ai/automation/hooks#my-hook
|
||||||
metadata:
|
metadata:
|
||||||
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
{ "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } }
|
||||||
---
|
---
|
||||||
@@ -220,4 +220,4 @@ Test your hooks by:
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Full documentation: https://docs.openclaw.ai/hooks
|
Full documentation: https://docs.openclaw.ai/automation/hooks
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: boot-md
|
name: boot-md
|
||||||
description: "Run BOOT.md on gateway startup"
|
description: "Run BOOT.md on gateway startup"
|
||||||
homepage: https://docs.openclaw.ai/hooks#boot-md
|
homepage: https://docs.openclaw.ai/automation/hooks#boot-md
|
||||||
metadata:
|
metadata:
|
||||||
{
|
{
|
||||||
"openclaw":
|
"openclaw":
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: command-logger
|
name: command-logger
|
||||||
description: "Log all command events to a centralized audit file"
|
description: "Log all command events to a centralized audit file"
|
||||||
homepage: https://docs.openclaw.ai/hooks#command-logger
|
homepage: https://docs.openclaw.ai/automation/hooks#command-logger
|
||||||
metadata:
|
metadata:
|
||||||
{
|
{
|
||||||
"openclaw":
|
"openclaw":
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
name: session-memory
|
name: session-memory
|
||||||
description: "Save session context to memory when /new command is issued"
|
description: "Save session context to memory when /new command is issued"
|
||||||
homepage: https://docs.openclaw.ai/hooks#session-memory
|
homepage: https://docs.openclaw.ai/automation/hooks#session-memory
|
||||||
metadata:
|
metadata:
|
||||||
{
|
{
|
||||||
"openclaw":
|
"openclaw":
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ describe("resolveOpenClawMetadata", () => {
|
|||||||
const content = `---
|
const content = `---
|
||||||
name: session-memory
|
name: session-memory
|
||||||
description: "Save session context to memory when /new command is issued"
|
description: "Save session context to memory when /new command is issued"
|
||||||
homepage: https://docs.openclaw.ai/hooks#session-memory
|
homepage: https://docs.openclaw.ai/automation/hooks#session-memory
|
||||||
metadata:
|
metadata:
|
||||||
{
|
{
|
||||||
"openclaw":
|
"openclaw":
|
||||||
|
|||||||
Reference in New Issue
Block a user