From 1afd2b7e37edd1df4fcbf3956f39a4a17f4c2747 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 21 Feb 2026 01:59:59 -0500 Subject: [PATCH] Chore: simplify a2ui bundle script dependencies --- CHANGELOG.md | 1 + scripts/bundle-a2ui.sh | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59fbc94c178..15f56b13b9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Docs: https://docs.openclaw.ai - Dev tooling: remove unused root dependency `lit` that is now scoped to `ui/` package dependencies. (#22471) Thanks @vincentkoc. - Dev tooling: remove unused root dependencies `long` and `rolldown`; keep A2UI bundling functional by falling back to `pnpm dlx rolldown` when the binary is not locally installed. (#22481) Thanks @vincentkoc. - Dev tooling: fix A2UI bundle resolution for removed root `lit` deps by resolving `lit`, `@lit/context`, `@lit-labs/signals`, and `signal-utils` from UI workspace dependencies in `rolldown.config.mjs` during bundling. (#22481) Thanks @vincentkoc. +- Dev tooling: simplify `canvas-a2ui` bundling script by removing temporary vendored `node_modules` symlink logic now that `ui` workspace dependencies are explicit. (#22481) Thanks @vincentkoc. - Agents/Subagents: default subagent spawn depth now uses shared `maxSpawnDepth=2`, enabling depth-1 orchestrator spawning by default while keeping depth policy checks consistent across spawn and prompt paths. (#22223) Thanks @tyler6204. - Channels/CLI: add per-account/channel `defaultTo` outbound routing fallback so `openclaw agent --deliver` can send without explicit `--reply-to` when a default target is configured. (#16985) Thanks @KirillShchetinin. - iOS/Chat: clean chat UI noise by stripping inbound untrusted metadata/timestamp prefixes, formatting tool outputs into concise summaries/errors, compacting the composer while typing, and supporting tap-to-dismiss keyboard in chat view. (#22122) thanks @mbelinky. diff --git a/scripts/bundle-a2ui.sh b/scripts/bundle-a2ui.sh index 7ace9113f75..ff85dd044f8 100755 --- a/scripts/bundle-a2ui.sh +++ b/scripts/bundle-a2ui.sh @@ -4,16 +4,13 @@ set -euo pipefail on_error() { echo "A2UI bundling failed. Re-run with: pnpm canvas:a2ui:bundle" >&2 echo "If this persists, verify pnpm deps and try again." >&2 - rm -f "$A2UI_VENDOR_NODE_MODULES" } trap on_error ERR -trap 'rm -f "$A2UI_VENDOR_NODE_MODULES"' EXIT ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" HASH_FILE="$ROOT_DIR/src/canvas-host/a2ui/.bundle.hash" OUTPUT_FILE="$ROOT_DIR/src/canvas-host/a2ui/a2ui.bundle.js" A2UI_RENDERER_DIR="$ROOT_DIR/vendor/a2ui/renderers/lit" -A2UI_VENDOR_NODE_MODULES="$A2UI_RENDERER_DIR/node_modules" A2UI_APP_DIR="$ROOT_DIR/apps/shared/OpenClawKit/Tools/CanvasA2UI" # Docker builds exclude vendor/apps via .dockerignore. @@ -27,12 +24,6 @@ if [[ ! -d "$A2UI_RENDERER_DIR" || ! -d "$A2UI_APP_DIR" ]]; then exit 1 fi -mkdir -p "$A2UI_RENDERER_DIR" -if [[ -L "$A2UI_VENDOR_NODE_MODULES" || -e "$A2UI_VENDOR_NODE_MODULES" ]]; then - rm -rf "$A2UI_VENDOR_NODE_MODULES" -fi -ln -s "$ROOT_DIR/ui/node_modules" "$A2UI_VENDOR_NODE_MODULES" - INPUT_PATHS=( "$ROOT_DIR/package.json" "$ROOT_DIR/pnpm-lock.yaml"