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>
15 lines
947 B
Bash
Executable File
15 lines
947 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run the qqq CLI from this checkout (source, via Bun), so every commit is the latest without a build.
|
|
# qqq <command> ... e.g. qqq login --server http://localhost:8077 ; qqq whoami ; qqq query person
|
|
set -euo pipefail
|
|
self="${BASH_SOURCE[0]}"; while [[ -L "$self" ]]; do self="$(readlink "$self")"; done
|
|
here="$(cd "$(dirname "$self")" && pwd)"
|
|
repo="$(cd "$here/../.." && pwd)"
|
|
cd "$repo"
|
|
[[ -d node_modules ]] || npm install --silent
|
|
# the CLI imports the client package by name, which resolves to its built dist
|
|
if [[ ! -f packages/ui-api-client/dist/index.js || packages/ui-api-client/src/index.ts -nt packages/ui-api-client/dist/index.js || packages/ui-api-client/src/client.ts -nt packages/ui-api-client/dist/index.js || packages/ui-api-client/src/auth.ts -nt packages/ui-api-client/dist/index.js ]]; then
|
|
npm run build -w @qrun-io/qqq-ui-api-client --silent >&2
|
|
fi
|
|
exec bun run packages/cli/src/main.ts "$@"
|