openclaw/src/hooks
Sebastian Slight 35a1d81518 fix: handle multi-line metadata blocks in HOOK.md frontmatter
The frontmatter parser was using a simple line-by-line regex that only
captured single-line key-value pairs. This meant multi-line metadata
blocks (as used by bundled hooks) were not parsed correctly.

Changes:
- Add extractMultiLineValue() to handle indented continuation lines
- Use JSON5 instead of JSON.parse() to support trailing commas
- Add comprehensive test coverage for frontmatter parsing

Fixes #1113
2026-01-17 19:56:10 +00:00
..
bundled refactor: rename hooks docs and add tests 2026-01-17 07:32:54 +00:00
bundled-dir.ts feat: add internal hooks system 2026-01-17 01:31:57 +00:00
config.ts feat: add internal hooks system 2026-01-17 01:31:57 +00:00
frontmatter.test.ts fix: handle multi-line metadata blocks in HOOK.md frontmatter 2026-01-17 19:56:10 +00:00
frontmatter.ts fix: handle multi-line metadata blocks in HOOK.md frontmatter 2026-01-17 19:56:10 +00:00
gmail-ops.ts feat: unify hooks installs and webhooks 2026-01-17 07:08:04 +00:00
gmail-setup-utils.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gmail-setup-utils.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gmail-watcher.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gmail-watcher.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gmail.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
gmail.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
hooks-install.e2e.test.ts style: run oxfmt 2026-01-17 08:00:05 +00:00
hooks-status.ts style: apply oxfmt 2026-01-17 01:55:42 +00:00
hooks.ts refactor: rename hooks docs and add tests 2026-01-17 07:32:54 +00:00
install.test.ts style: run oxfmt 2026-01-17 08:00:05 +00:00
install.ts style: run oxfmt 2026-01-17 08:00:05 +00:00
installs.ts feat: unify hooks installs and webhooks 2026-01-17 07:08:04 +00:00
internal-hooks.test.ts refactor: rename hooks docs and add tests 2026-01-17 07:32:54 +00:00
internal-hooks.ts refactor: rename hooks docs and add tests 2026-01-17 07:32:54 +00:00
llm-slug-generator.ts style: apply oxfmt 2026-01-17 01:55:42 +00:00
loader.test.ts refactor: rename hooks docs and add tests 2026-01-17 07:32:54 +00:00
loader.ts style: run oxfmt 2026-01-17 08:00:05 +00:00
types.ts feat: add internal hooks system 2026-01-17 01:31:57 +00:00
workspace.ts style: run oxfmt 2026-01-17 08:00:05 +00:00