From 953da696c92880df96fde729c5b42496d3e592f8 Mon Sep 17 00:00:00 2001 From: Nicholas <188132635+nicholascyh@users.noreply.github.com> Date: Sat, 14 Feb 2026 10:35:22 +0000 Subject: [PATCH] fix(docs): update outdated hooks documentation URLs --- 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 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/automation/hooks.md b/docs/automation/hooks.md index 68c583a7a84..2e6b806619d 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 fdf72f83434..64f16f3de18 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 61f9e916e15..b5806e2bdd0 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 015cd02bb3c..231099ffaf7 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 c820bd03d86..e559040205d 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 403e1369c5a..7fcc94465b6 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 b3fb4e131a1..e948beb40c7 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 59755318cc4..183325c6b1d 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 dd7636c7d96..12970dfd4a4 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 20b5985761a..1e938656ec2 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 a20036f5911..18fb6e0d974 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":