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
+
+
+ + + + +