qqq 1.0.0: the command-line client and the full-screen terminal UI (qqq ui) for QQQ applications over the UI API (/qqq/v1), with @qrun-io/qqq-cli 1.0.0, @qrun-io/qqq-core 1.0.0, @qrun-io/qqq-ui-api-client 1.8.0 and @qrun-io/qqq-ui-api-conformance 1.6.0 going final together. Squash of the release/1.0.0 branch at 79ba68e (the branch is kept with the full signed history; the tags v1.8.0 and cli-v1.0.0 point at that commit, which is what the released binaries were built from). See CHANGELOG.md [1.0.0] and docs/release-notes/1.0.0.md.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
25 lines
1.4 KiB
Bash
Executable File
25 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the M0 OpenTUI spike from source against the local sample server.
|
|
# tui-spike.sh run from source with bun
|
|
# tui-spike.sh binary run the compiled macOS binary (bun run build.ts darwin first)
|
|
# tui-spike.sh test run the in-memory tests
|
|
set -euo pipefail
|
|
self="${BASH_SOURCE[0]}"; while [[ -L "$self" ]]; do self="$(readlink "$self")"; done
|
|
here="$(cd "$(dirname "$self")" && pwd)"
|
|
pkg="$(cd "$here/../../packages/tui-spike" && pwd)"
|
|
export QQQ_SERVER="${QQQ_SERVER:-http://localhost:${QQQ_SAMPLE_PORT:-8077}}"
|
|
export QQQ_SPIKE_REPORT="${QQQ_SPIKE_REPORT:-${XDG_STATE_HOME:-$HOME/.local/state}/qqq-dev/spike-perf.json}"
|
|
mkdir -p "$(dirname "$QQQ_SPIKE_REPORT")"
|
|
cd "$pkg"
|
|
bun install --silent 2>/dev/null || bun install
|
|
build="$(git -C "$pkg" rev-parse --abbrev-ref HEAD 2>/dev/null)@$(git -C "$pkg" rev-parse --short HEAD 2>/dev/null)"
|
|
[[ -n "$(git -C "$pkg" status --porcelain -- . 2>/dev/null)" ]] && build="$build+local"
|
|
export QQQ_SPIKE_BUILD="$build"
|
|
echo "qqq-tui-spike: $build ($(git -C "$pkg" log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M' 2>/dev/null)) · server $QQQ_SERVER"
|
|
case "${1:-run}" in
|
|
run) exec bun run src/main.tsx ;;
|
|
binary) [[ -x dist/qqq-tui-spike-darwin-arm64 ]] || bun run build.ts darwin; exec ./dist/qqq-tui-spike-darwin-arm64 ;;
|
|
test) exec bun test ;;
|
|
*) echo "usage: $0 [run|binary|test]"; exit 2 ;;
|
|
esac
|