refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -3,7 +3,7 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
export function resolveBundledHooksDir(): string | undefined {
const override = process.env.CLAWDBOT_BUNDLED_HOOKS_DIR?.trim();
const override = process.env.OPENCLAW_BUNDLED_HOOKS_DIR?.trim();
if (override) return override;
// bun --compile: ship a sibling `hooks/bundled/` next to the executable.
@@ -16,7 +16,7 @@ export function resolveBundledHooksDir(): string | undefined {
}
// npm: resolve `<packageRoot>/dist/hooks/bundled` relative to this module (compiled hooks).
// This path works when installed via npm: node_modules/moltbot/dist/hooks/bundled-dir.js
// This path works when installed via npm: node_modules/openclaw/dist/hooks/bundled-dir.js
try {
const moduleDir = path.dirname(fileURLToPath(import.meta.url));
const distBundled = path.join(moduleDir, "bundled");