From 2044b3ca8de61b5a296c4f489a90e7ba9a9bdf85 Mon Sep 17 00:00:00 2001 From: Gustavo Madeira Santana Date: Mon, 26 Jan 2026 23:03:00 -0500 Subject: [PATCH] Build: restore A2UI scaffold assets (#2455) (thanks @0oAstro) Co-authored-by: 0oAstro <0oAstro@users.noreply.github.com> --- scripts/bundle-a2ui.sh | 3 +- src/canvas-host/a2ui/index.html | 307 ++++++++++++++++++++++++++++++++ 2 files changed, 309 insertions(+), 1 deletion(-) create mode 100644 src/canvas-host/a2ui/index.html diff --git a/scripts/bundle-a2ui.sh b/scripts/bundle-a2ui.sh index 0407b3386..a1cf7ff2b 100755 --- a/scripts/bundle-a2ui.sh +++ b/scripts/bundle-a2ui.sh @@ -9,6 +9,7 @@ trap on_error ERR 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" INPUT_PATHS=( "$ROOT_DIR/package.json" @@ -39,7 +40,7 @@ compute_hash() { current_hash="$(compute_hash)" if [[ -f "$HASH_FILE" ]]; then previous_hash="$(cat "$HASH_FILE")" - if [[ "$previous_hash" == "$current_hash" ]]; then + if [[ "$previous_hash" == "$current_hash" && -f "$OUTPUT_FILE" ]]; then echo "A2UI bundle up to date; skipping." exit 0 fi diff --git a/src/canvas-host/a2ui/index.html b/src/canvas-host/a2ui/index.html new file mode 100644 index 000000000..4298146dd --- /dev/null +++ b/src/canvas-host/a2ui/index.html @@ -0,0 +1,307 @@ + + + + + + Clawdbot Canvas + + + + + +
+
+
Ready
+
Waiting for agent
+
+
+ + + + +