mirror of https://github.com/openclaw/openclaw.git
* fix: compile bundled hook handlers in tsdown build The migration from tsc to tsdown in 2026.2.2 dropped bundled hook handlers from the build output. The copy-hook-metadata.ts script only copies HOOK.md metadata files, not the handler.ts source files. Without corresponding tsdown entry points, the handlers were never compiled to JS, causing `openclaw hooks list` to show 0 hooks on npm installs. This adds each bundled hook handler and the llm-slug-generator (dynamically imported by session-memory) as tsdown entry points: - src/hooks/bundled/session-memory/handler.ts - src/hooks/bundled/command-logger/handler.ts - src/hooks/bundled/boot-md/handler.ts - src/hooks/bundled/soul-evil/handler.ts - src/hooks/llm-slug-generator.ts Regression introduced in 2026.2.2; versions 2026.1.29–2026.2.1 worked correctly under the previous tsc build. * refactor: use glob for bundled hook entries, fix dist output paths - Replace hardcoded entry list with glob pattern in tsdown.config.ts so new hooks are auto-discovered (matching scripts/copy-hook-metadata.ts) - Remove inconsistent comment block from tsdown.config.ts - Fix copy-hook-metadata.ts to copy HOOK.md to dist/bundled/ (matching the runtime resolution in bundled-dir.ts which resolves path.join(moduleDir, 'bundled') relative to the chunk in dist/) - Update stale path comment in session-memory handler |
||
|---|---|---|
| .. | ||
| dev | ||
| docker | ||
| docs-i18n | ||
| e2e | ||
| pre-commit | ||
| repro | ||
| systemd | ||
| analyze_code_files.py | ||
| auth-monitor.sh | ||
| bench-model.ts | ||
| build-and-run-mac.sh | ||
| build-docs-list.mjs | ||
| build_icon.sh | ||
| bundle-a2ui.sh | ||
| canvas-a2ui-copy.ts | ||
| changelog-to-html.sh | ||
| check-ts-max-loc.ts | ||
| claude-auth-status.sh | ||
| clawlog.sh | ||
| clawtributors-map.json | ||
| codesign-mac-app.sh | ||
| committer | ||
| copy-hook-metadata.ts | ||
| create-dmg.sh | ||
| debug-claude-usage.ts | ||
| docs-link-audit.mjs | ||
| docs-list.js | ||
| firecrawl-compare.ts | ||
| ios-team-id.sh | ||
| make_appcast.sh | ||
| mobile-reauth.sh | ||
| notarize-mac-artifact.sh | ||
| package-mac-app.sh | ||
| package-mac-dist.sh | ||
| protocol-gen-swift.ts | ||
| protocol-gen.ts | ||
| readability-basic-compare.ts | ||
| release-check.ts | ||
| restart-mac.sh | ||
| run-node.mjs | ||
| sandbox-browser-entrypoint.sh | ||
| sandbox-browser-setup.sh | ||
| sandbox-common-setup.sh | ||
| sandbox-setup.sh | ||
| setup-auth-system.sh | ||
| sqlite-vec-smoke.mjs | ||
| sync-labels.ts | ||
| sync-moonshot-docs.ts | ||
| sync-plugin-versions.ts | ||
| termux-auth-widget.sh | ||
| termux-quick-auth.sh | ||
| termux-sync-widget.sh | ||
| test-cleanup-docker.sh | ||
| test-force.ts | ||
| test-install-sh-docker.sh | ||
| test-install-sh-e2e-docker.sh | ||
| test-live-gateway-models-docker.sh | ||
| test-live-models-docker.sh | ||
| test-parallel.mjs | ||
| test-shell-completion.ts | ||
| ui.js | ||
| update-clawtributors.ts | ||
| update-clawtributors.types.ts | ||
| watch-node.mjs | ||
| write-build-info.ts | ||
| write-cli-compat.ts | ||
| write-plugin-sdk-entry-dts.ts | ||
| zai-fallback-repro.ts | ||