Rocko's round 2 candidate e09313aba4d155a1c5af7bfb227ec397e96c0d57444782cd0b48593102bcc684
(38 paths, base 23533625d), approved by Dewey in #1618 comment 28923 (queue rev 1757).
Packet: agents/rocko/work/queue-124/r2/.
- Schema 3g to 3h: packages/bus/src/migrations/3g-3h.sql adds an append-only
usage_records table; nothing earlier changes. usage_records is in timedTables.
- The transcript usage-source module reads token counts from Pi and Claude
Code session transcripts and follows no symlink.
- `mosaic usage` in the CLI and a read-only usage section in the Console's
Settings (one GET route; 400 on a query string).
Decision 123 go: Mos, mos-0737. Activation (3g to 3h) is a migrating run
with Jason present, in Mos's combined re-pin; landing changes nothing live.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
36 lines
1.6 KiB
Bash
Executable File
36 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# `mosaic launch <seat>` and `mosaic seat task <seat> <text>`: seat launch
|
|
# with registration for the control board. See packages/seat/README.md.
|
|
# `mosaic queue <verb>`: the work queue. See packages/queue/README.md.
|
|
# `mosaic business <verb>`: business files and role instances. See
|
|
# packages/business/README.md.
|
|
# `mosaic inbox|decide|tasks|agents|trail|talk|stop|launches` and
|
|
# `mosaic bus start|stop|status`: the human commands, managed sessions and
|
|
# the bus host. See packages/cli/README.md.
|
|
# This is the repository wrapper; run it by path from the checkout. A host
|
|
# may also put `mosaic` on PATH as a wrapper that runs a pinned copy's
|
|
# scripts/mosaic (scripts/stack-copy.sh wrapper, docs/TOOLS.md "Stack
|
|
# copies"). On Jason's host the estate CLI it replaced is `mosaic-old`.
|
|
# On a pinned host the human commands and --tester go through
|
|
# that `mosaic`, and from a checkout they exit 3. Queue commands stay on
|
|
# scripts/mosaic queue in the canonical checkout, because a copy refuses
|
|
# them. See packages/cli/README.md "One pinned copy".
|
|
set -euo pipefail
|
|
REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
# No argument: the full-screen app on a terminal (packages/cli/README.md).
|
|
if [ $# -eq 0 ]; then
|
|
exec node "$REPO/packages/cli/src/cli.mjs"
|
|
fi
|
|
if [ "${1:-}" = queue ]; then
|
|
shift
|
|
exec node "$REPO/packages/queue/src/cli.mjs" "$@"
|
|
fi
|
|
if [ "${1:-}" = business ]; then
|
|
shift
|
|
exec node "$REPO/packages/business/src/cli.mjs" "$@"
|
|
fi
|
|
case "${1:-}" in
|
|
usage|project|limits|inbox|decide|tasks|agents|trail|talk|stop|launches|bus) exec node "$REPO/packages/cli/src/cli.mjs" "$@" ;;
|
|
esac
|
|
exec node "$REPO/packages/seat/src/cli.mjs" "$@"
|