webchat: bundle assets with rolldown

This commit is contained in:
Peter Steinberger
2025-12-07 17:44:37 +01:00
parent 74e5e5e182
commit 98651c2a14
10 changed files with 195780 additions and 142 deletions

View File

@@ -49,6 +49,9 @@ log "==> Killing existing Clawdis instances"
kill_all_clawdis
stop_launch_agent
# 1.5) Bundle web chat assets (single-file JS to avoid import-map issues).
run_step "bundle webchat" bash -lc "cd '${ROOT_DIR}' && pnpm webchat:bundle"
# 2) Rebuild into the same path the packager consumes (.build).
run_step "clean build cache" bash -lc "cd '${ROOT_DIR}/apps/macos' && rm -rf .build .build-swift .swiftpm 2>/dev/null || true"
run_step "swift build" bash -lc "cd '${ROOT_DIR}/apps/macos' && swift build -q --product Clawdis"