mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "rolldown";
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
const repoRoot = path.resolve(here, "../../../../..");
|
|
const fromHere = (p) => path.resolve(here, p);
|
|
const outputFile = path.resolve(
|
|
here,
|
|
"../../../../..",
|
|
"src",
|
|
"canvas-host",
|
|
"a2ui",
|
|
"a2ui.bundle.js",
|
|
);
|
|
|
|
const a2uiLitDist = path.resolve(repoRoot, "vendor/a2ui/renderers/lit/dist/src");
|
|
const a2uiThemeContext = path.resolve(a2uiLitDist, "0.8/ui/context/theme.js");
|
|
|
|
export default defineConfig({
|
|
input: fromHere("bootstrap.js"),
|
|
experimental: {
|
|
attachDebugInfo: "none",
|
|
},
|
|
treeshake: false,
|
|
resolve: {
|
|
alias: {
|
|
"@a2ui/lit": path.resolve(a2uiLitDist, "index.js"),
|
|
"@a2ui/lit/ui": path.resolve(a2uiLitDist, "0.8/ui/ui.js"),
|
|
"@hanzo/bot-a2ui-theme-context": a2uiThemeContext,
|
|
"@lit/context": path.resolve(repoRoot, "node_modules/@lit/context/index.js"),
|
|
"@lit/context/": path.resolve(repoRoot, "node_modules/@lit/context/"),
|
|
"@lit-labs/signals": path.resolve(repoRoot, "node_modules/@lit-labs/signals/index.js"),
|
|
"@lit-labs/signals/": path.resolve(repoRoot, "node_modules/@lit-labs/signals/"),
|
|
lit: path.resolve(repoRoot, "node_modules/lit/index.js"),
|
|
"lit/": path.resolve(repoRoot, "node_modules/lit/"),
|
|
},
|
|
},
|
|
output: {
|
|
file: outputFile,
|
|
format: "esm",
|
|
codeSplitting: false,
|
|
sourcemap: false,
|
|
},
|
|
});
|