From f8ba8f769926becf9e2a8a98cf96057a79df9548 Mon Sep 17 00:00:00 2001 From: Nicholas <188132635+nicholascyh@users.noreply.github.com> Date: Sat, 14 Feb 2026 20:05:37 +0800 Subject: [PATCH] fix(docs): update outdated hooks documentation URLs (#16165) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 8ed13fb02fae2cb6dd3cacdb3cd1ef37a5cdd4d8 Co-authored-by: nicholascyh <188132635+nicholascyh@users.noreply.github.com> Co-authored-by: steipete <58493+steipete@users.noreply.github.com> Reviewed-by: @steipete --- .agents/skills/PR_WORKFLOW.md | 2 +- CHANGELOG.md | 1 + docs/automation/hooks.md | 2 +- docs/cli/hooks.md | 2 +- docs/zh-CN/automation/hooks.md | 2 +- docs/zh-CN/cli/hooks.md | 2 +- src/cli/hooks-cli.test.ts | 2 +- src/commands/onboard-hooks.ts | 2 +- src/hooks/bundled/README.md | 4 ++-- src/hooks/bundled/boot-md/HOOK.md | 2 +- src/hooks/bundled/command-logger/HOOK.md | 2 +- src/hooks/bundled/session-memory/HOOK.md | 2 +- src/hooks/frontmatter.test.ts | 2 +- 13 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.agents/skills/PR_WORKFLOW.md b/.agents/skills/PR_WORKFLOW.md index f85943045e..1062f1fd4d 100644 --- a/.agents/skills/PR_WORKFLOW.md +++ b/.agents/skills/PR_WORKFLOW.md @@ -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: - `Affected 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. 6. Advisory comments are posted manually in UI when required by policy. Do not rely on `gh api` automation for advisory comments. diff --git a/CHANGELOG.md b/CHANGELOG.md index 010d226574..81e9f31e7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ Docs: https://docs.openclaw.ai ### 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. +- 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. - 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. diff --git a/docs/automation/hooks.md b/docs/automation/hooks.md index 68c583a7a8..2e6b806619 100644 --- a/docs/automation/hooks.md +++ b/docs/automation/hooks.md @@ -128,7 +128,7 @@ The `HOOK.md` file contains metadata in YAML frontmatter plus Markdown documenta --- name: my-hook 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: { "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } } --- diff --git a/docs/cli/hooks.md b/docs/cli/hooks.md index fdf72f8343..64f16f3de1 100644 --- a/docs/cli/hooks.md +++ b/docs/cli/hooks.md @@ -90,7 +90,7 @@ Details: Source: openclaw-bundled Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md 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 Requirements: diff --git a/docs/zh-CN/automation/hooks.md b/docs/zh-CN/automation/hooks.md index 61f9e916e1..b5806e2bdd 100644 --- a/docs/zh-CN/automation/hooks.md +++ b/docs/zh-CN/automation/hooks.md @@ -133,7 +133,7 @@ Hook 包可以附带依赖;它们将安装在 `~/.openclaw/hooks/` 下。 --- name: my-hook 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: { "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } } --- diff --git a/docs/zh-CN/cli/hooks.md b/docs/zh-CN/cli/hooks.md index 015cd02bb3..231099ffaf 100644 --- a/docs/zh-CN/cli/hooks.md +++ b/docs/zh-CN/cli/hooks.md @@ -96,7 +96,7 @@ Details: Source: openclaw-bundled Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md 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 Requirements: diff --git a/src/cli/hooks-cli.test.ts b/src/cli/hooks-cli.test.ts index c820bd03d8..e559040205 100644 --- a/src/cli/hooks-cli.test.ts +++ b/src/cli/hooks-cli.test.ts @@ -16,7 +16,7 @@ const report: HookStatusReport = { handlerPath: "/tmp/hooks/session-memory/handler.js", hookKey: "session-memory", emoji: "💾", - homepage: "https://docs.openclaw.ai/hooks#session-memory", + homepage: "https://docs.openclaw.ai/automation/hooks#session-memory", events: ["command:new"], always: false, disabled: false, diff --git a/src/commands/onboard-hooks.ts b/src/commands/onboard-hooks.ts index 403e1369c5..7fcc94465b 100644 --- a/src/commands/onboard-hooks.ts +++ b/src/commands/onboard-hooks.ts @@ -15,7 +15,7 @@ export async function setupInternalHooks( "Hooks let you automate actions when agent commands are issued.", "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"), "Hooks", ); diff --git a/src/hooks/bundled/README.md b/src/hooks/bundled/README.md index b3fb4e131a..e948beb40c 100644 --- a/src/hooks/bundled/README.md +++ b/src/hooks/bundled/README.md @@ -81,7 +81,7 @@ session-memory/ --- name: my-hook description: "Short description" -homepage: https://docs.openclaw.ai/hooks#my-hook +homepage: https://docs.openclaw.ai/automation/hooks#my-hook metadata: { "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } } --- @@ -220,4 +220,4 @@ Test your hooks by: ## Documentation -Full documentation: https://docs.openclaw.ai/hooks +Full documentation: https://docs.openclaw.ai/automation/hooks diff --git a/src/hooks/bundled/boot-md/HOOK.md b/src/hooks/bundled/boot-md/HOOK.md index 59755318cc..183325c6b1 100644 --- a/src/hooks/bundled/boot-md/HOOK.md +++ b/src/hooks/bundled/boot-md/HOOK.md @@ -1,7 +1,7 @@ --- name: boot-md 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: { "openclaw": diff --git a/src/hooks/bundled/command-logger/HOOK.md b/src/hooks/bundled/command-logger/HOOK.md index dd7636c7d9..12970dfd4a 100644 --- a/src/hooks/bundled/command-logger/HOOK.md +++ b/src/hooks/bundled/command-logger/HOOK.md @@ -1,7 +1,7 @@ --- name: command-logger 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: { "openclaw": diff --git a/src/hooks/bundled/session-memory/HOOK.md b/src/hooks/bundled/session-memory/HOOK.md index 20b5985761..1e938656ec 100644 --- a/src/hooks/bundled/session-memory/HOOK.md +++ b/src/hooks/bundled/session-memory/HOOK.md @@ -1,7 +1,7 @@ --- name: session-memory 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: { "openclaw": diff --git a/src/hooks/frontmatter.test.ts b/src/hooks/frontmatter.test.ts index a20036f591..18fb6e0d97 100644 --- a/src/hooks/frontmatter.test.ts +++ b/src/hooks/frontmatter.test.ts @@ -233,7 +233,7 @@ describe("resolveOpenClawMetadata", () => { const content = `--- name: session-memory 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: { "openclaw":