feat: manifest rows for the tools dev actually uses
A new laptop built from the manifest had no Claude Code, no beads, no jq and no Go tooling, and its Nerd Font rows installed fonts-powerline, which is the Powerline glyphs alone and not a Nerd Font. New rows: - agents/claude: Anthropic's native installer, downloaded to the run's workdir, checked non-empty, then run with bash (no pipe, no root). - agents/beads, core/tea, core/bun: brew-only, @needs core/brew. - core/jq, shellcheck, clang-format, gitleaks, xz: plain apt/brew rows. - core/go-tools: gopls, goimports, golangci-lint and staticcheck through a new `go` channel that runs after the tarball and brew channels, because `go install` needs a go. Tools already in GOBIN are left alone. - core/rust: rustup-init downloaded and checked, --no-modify-path because ~/.zshenv already sources ~/.cargo/env. - virt/incus: invasive, never ticked for you. - apps/claude-desktop (gui): on Linux, adds Anthropic's apt repository and refuses the signing key unless its fingerprint matches the published one. Mac uses the claude cask. - apps/signal (gui): flathub org.signal.Signal, --user; signal cask on Mac. Changed: the Nerd Font rows unpack the Nerd Fonts release into ~/.local/share/fonts and run fc-cache on Linux (they @needs core/xz). The pi plugin spec adds pi-lens and pi-mcp-adapter. agents/specify-cli is dropped. The uv channel stays, and its tests now run against a fixture row.
This commit is contained in:
1 parent
d09ba0f941
commit
01f77bceaa
7 files changed
+438
-29
No files matched your search
@@ -353,7 +353,7 @@ cmd_explain() {
|
||||
# Output: <channel><TAB><argument>
|
||||
# apt|brew argument is the package name
|
||||
# npm|uv|snap|deb|flatpak argument is the @spec, defaulting to the pkg name
|
||||
# tarball|script|xcode|builtin bespoke by nature; dispatched on the key
|
||||
# tarball|script|go|xcode|builtin bespoke by nature; dispatched on the key
|
||||
# unavailable neither column offers it here
|
||||
resolve() {
|
||||
awk -F'\t' -v key="$1" -v plat="$PLAT" '
|
||||
@@ -489,6 +489,9 @@ norm() { printf '%s\n' "$*" | tr ' ' '\n' | grep . | tr '\n' ' ' | sed 's/ $//';
|
||||
redact_url() { printf '%s\n' "$1" | sed 's#://[^/@]*@#://<redacted>@#'; }
|
||||
|
||||
BWS_PIN=2.1.0
|
||||
# The fingerprint Anthropic's Linux install docs publish for the Claude Desktop
|
||||
# apt repository's signing key. apps/claude-desktop refuses any other key.
|
||||
CLAUDE_DESKTOP_FPR=31DDDE24DDFAB679F42D7BD2BAA929FF1A7ECACE
|
||||
|
||||
# The Bitwarden Secrets Manager CLI, installed by the PRIVATE tier only.
|
||||
#
|
||||
@@ -890,6 +893,54 @@ install_bespoke() {
|
||||
|| { note_fail "$key" "tarball download failed or arrived empty"; continue; }
|
||||
run_sh "${SUDO:+$SUDO }rm -rf /usr/local/go && ${SUDO:+$SUDO }tar -xzf '$WORKDIR/go.tgz' -C /usr/local" \
|
||||
|| { note_fail "$key" "tarball extract failed"; continue; } ;;
|
||||
fonts/hack-nerd-font|fonts/iosevka-nerd-font)
|
||||
# Linux only: a Mac takes the brew casks. Ubuntu's fonts-powerline,
|
||||
# which these rows used to name, is the Powerline glyphs alone --
|
||||
# not a Nerd Font -- so the prompt and nvim's icons drew as tofu on
|
||||
# every fresh box. The Nerd Fonts release itself, per user, into
|
||||
# the XDG font directory; nothing here needs root.
|
||||
case $key in fonts/hack-nerd-font) fn=Hack ;; *) fn=Iosevka ;; esac
|
||||
fdir=${XDG_DATA_HOME:-$HOME/.local/share}/fonts/NerdFonts/$fn
|
||||
if [ "$DRYRUN" -eq 0 ] && [ -n "$(find "$fdir" -name '*.ttf' 2>/dev/null | head -1)" ]; then
|
||||
say " $fn Nerd Font already in $fdir — leaving it"; continue
|
||||
fi
|
||||
if [ "$DRYRUN" -eq 0 ] && ! have xz; then
|
||||
note_fail "$key" "xz is needed to unpack the release — core/xz did not install"; continue
|
||||
fi
|
||||
workdir || { note_fail "$key" "no private working directory"; continue; }
|
||||
run_sh "curl -fsSL 'https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$fn.tar.xz' -o '$WORKDIR/$fn.tar.xz' && [ -s '$WORKDIR/$fn.tar.xz' ]" \
|
||||
|| { note_fail "$key" "font download failed or arrived empty"; continue; }
|
||||
run_sh "mkdir -p '$fdir' && tar -xJf '$WORKDIR/$fn.tar.xz' -C '$fdir'" \
|
||||
|| { note_fail "$key" "font extract failed"; continue; }
|
||||
if have fc-cache; then
|
||||
run_sh "fc-cache -f '$fdir'" || warn "fc-cache failed; the font appears after the next login"
|
||||
else
|
||||
warn " fc-cache not found; the font appears after the next login"
|
||||
fi ;;
|
||||
core/go-tools)
|
||||
# Its own channel, run after the tarball one, because `go install`
|
||||
# needs the go that core/go may have unpacked a moment ago -- and
|
||||
# the script channel runs before any tarball. Into GOBIN, else
|
||||
# GOPATH/bin, which the zshrc puts on PATH. A tool already there is
|
||||
# left alone: golangci-lint alone takes minutes to build.
|
||||
GO=$(find_tool go || echo go)
|
||||
if ! have go && [ "$DRYRUN" -eq 0 ]; then
|
||||
note_fail "$key" "go missing — core/go did not install"; continue
|
||||
fi
|
||||
gobin=
|
||||
if [ "$DRYRUN" -eq 0 ]; then
|
||||
gobin=$("$GO" env GOBIN 2>/dev/null) || gobin=
|
||||
[ -n "$gobin" ] || gobin=$("$GO" env GOPATH 2>/dev/null | cut -d: -f1)/bin
|
||||
fi
|
||||
for gm in golang.org/x/tools/gopls golang.org/x/tools/cmd/goimports \
|
||||
github.com/golangci/golangci-lint/v2/cmd/golangci-lint \
|
||||
honnef.co/go/tools/cmd/staticcheck; do
|
||||
gt=${gm##*/}
|
||||
if [ -n "$gobin" ] && [ -x "$gobin/$gt" ]; then
|
||||
say " $gt already present — leaving it"; continue
|
||||
fi
|
||||
run_sh "$GO install $gm@latest" || note_fail "$key" "go install $gt failed"
|
||||
done ;;
|
||||
core/chezmoi)
|
||||
# Circular by nature: dotup arrives *via* chezmoi. Present already
|
||||
# in every case that matters; here for the one where it is not.
|
||||
@@ -1047,6 +1098,79 @@ install_bespoke() {
|
||||
core/uv)
|
||||
if have uv && [ "$DRYRUN" -eq 0 ]; then say " uv already present — leaving it"; continue; fi
|
||||
run_sh "curl -LsSf https://astral.sh/uv/install.sh | sh" || note_fail "$key" "installer failed" ;;
|
||||
agents/claude)
|
||||
# Anthropic's native installer: a per-user install to ~/.local/bin
|
||||
# that updates itself, which is what dev runs. Not npm -- that copy
|
||||
# does not self-update and lags the native one. Downloaded to a file
|
||||
# and checked non-empty before anything runs it, the docker shape:
|
||||
# a pipe into bash would execute whatever fragment arrived and still
|
||||
# report success. No sudo: it installs for the user running dotup.
|
||||
if have claude && [ "$DRYRUN" -eq 0 ]; then
|
||||
say " claude already present — leaving it (it updates itself)"; continue
|
||||
fi
|
||||
workdir || { note_fail "$key" "no private working directory"; continue; }
|
||||
run_sh "curl -fsSL https://claude.ai/install.sh -o '$WORKDIR/claude-install.sh' && [ -s '$WORKDIR/claude-install.sh' ]" \
|
||||
|| { note_fail "$key" "the Claude Code install script download failed or arrived empty"; continue; }
|
||||
run_sh "bash '$WORKDIR/claude-install.sh'" \
|
||||
|| { note_fail "$key" "the Claude Code installer failed"; continue; }
|
||||
[ "$DRYRUN" -eq 1 ] || have claude \
|
||||
|| note_fail "$key" "claude still not found after the installer ran" ;;
|
||||
core/rust)
|
||||
# rustup, per user, into ~/.cargo. --no-modify-path because the
|
||||
# shell files are chezmoi's: ~/.zshenv already sources ~/.cargo/env,
|
||||
# and rustup appending to them would be drift on the next apply.
|
||||
cargo_home=${CARGO_HOME:-$HOME/.cargo}
|
||||
if [ "$DRYRUN" -eq 0 ] && { have rustup || [ -x "$cargo_home/bin/rustup" ]; }; then
|
||||
say " rustup already present — leaving it"; continue
|
||||
fi
|
||||
workdir || { note_fail "$key" "no private working directory"; continue; }
|
||||
run_sh "curl --proto '=https' --tlsv1.2 -fsSL https://sh.rustup.rs -o '$WORKDIR/rustup-init.sh' && [ -s '$WORKDIR/rustup-init.sh' ]" \
|
||||
|| { note_fail "$key" "the rustup script download failed or arrived empty"; continue; }
|
||||
run_sh "sh '$WORKDIR/rustup-init.sh' -y --no-modify-path" \
|
||||
|| { note_fail "$key" "rustup-init failed"; continue; }
|
||||
[ "$DRYRUN" -eq 1 ] || have rustup || [ -x "$cargo_home/bin/rustup" ] \
|
||||
|| note_fail "$key" "rustup still not found after the installer ran" ;;
|
||||
apps/claude-desktop)
|
||||
# Linux only: a Mac takes the brew column's cask. Anthropic ships
|
||||
# Claude Desktop from its OWN apt repository, the docker trap again
|
||||
# -- as a plain apt name it has no candidate on a stock box. So the
|
||||
# repository is configured here, the way Anthropic's Linux docs
|
||||
# do it: the signing key into /usr/share/keyrings, one source line.
|
||||
#
|
||||
# A key that apt will trust for root-installed packages is not
|
||||
# installed on faith. Its fingerprint has to match the one the docs
|
||||
# publish, and with no gpg to read it there is no install at all --
|
||||
# refusing is cheap, and every desktop Ubuntu ships gnupg.
|
||||
if have claude-desktop && [ "$DRYRUN" -eq 0 ]; then
|
||||
say " claude-desktop already present — leaving it"; continue
|
||||
fi
|
||||
cd_arch=$(dpkg --print-architecture 2>/dev/null || uname -m)
|
||||
case $cd_arch in amd64|arm64) ;;
|
||||
*) note_fail "$key" "no Claude Desktop build for $cd_arch"; continue ;; esac
|
||||
if [ "$DRYRUN" -eq 0 ] && ! have gpg; then
|
||||
note_fail "$key" "gpg is needed to verify Anthropic's signing key — install gnupg and re-run"; continue
|
||||
fi
|
||||
workdir || { note_fail "$key" "no private working directory"; continue; }
|
||||
run_sh "curl -fsSL https://downloads.claude.ai/claude-desktop/key.asc -o '$WORKDIR/claude-desktop.asc' && [ -s '$WORKDIR/claude-desktop.asc' ]" \
|
||||
|| { note_fail "$key" "the Claude Desktop signing key download failed or arrived empty"; continue; }
|
||||
if [ "$DRYRUN" -eq 0 ]; then
|
||||
cd_fpr=$(gpg --show-keys --with-colons "$WORKDIR/claude-desktop.asc" 2>/dev/null \
|
||||
| awk -F: '$1=="fpr" {print $10; exit}')
|
||||
[ "$cd_fpr" = "$CLAUDE_DESKTOP_FPR" ] || {
|
||||
note_fail "$key" "signing key fingerprint is not Anthropic's — refusing to trust it"; continue; }
|
||||
else
|
||||
printf ' + verify the key fingerprint is %s\n' "$CLAUDE_DESKTOP_FPR"
|
||||
fi
|
||||
run_sh "printf '%s\\n' 'deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/claude-desktop-archive-keyring.asc] https://downloads.claude.ai/claude-desktop/apt/stable stable main' > '$WORKDIR/claude-desktop.list'" \
|
||||
|| { note_fail "$key" "could not write the apt source line"; continue; }
|
||||
run_sh "${SUDO:+$SUDO }install -m 644 '$WORKDIR/claude-desktop.asc' /usr/share/keyrings/claude-desktop-archive-keyring.asc" \
|
||||
|| { note_fail "$key" "could not install the signing key"; continue; }
|
||||
run_sh "${SUDO:+$SUDO }install -m 644 '$WORKDIR/claude-desktop.list' /etc/apt/sources.list.d/claude-desktop.list" \
|
||||
|| { note_fail "$key" "could not add the apt repository"; continue; }
|
||||
# The list apt_update_once fetched predates the repository.
|
||||
APT_UPDATED=0; apt_update_once
|
||||
run_sh "${SUDO:+$SUDO }DEBIAN_FRONTEND=noninteractive apt-get install -y claude-desktop" \
|
||||
|| note_fail "$key" "apt install claude-desktop failed" ;;
|
||||
core/build-tools)
|
||||
# macOS only — the Linux side is build-essential through apt.
|
||||
if [ "$DRYRUN" -eq 0 ] && xcode-select -p >/dev/null 2>&1; then
|
||||
@@ -1102,9 +1226,10 @@ cmd_install() {
|
||||
# npm needs node (apt/brew), and uv tools need uv (script).
|
||||
# Order is a dependency graph, not a preference. apt first because most
|
||||
# things come from it; `script` BEFORE `brew`, because core/brew is a script
|
||||
# row and the three brew-only packages cannot install until it has run;
|
||||
# row and the brew-only packages cannot install until it has run;
|
||||
# npm after apt and tarball because node has to exist first; uv after script
|
||||
# for the same reason.
|
||||
# for the same reason; go after tarball and brew, the two places a go comes
|
||||
# from, because core/go-tools is `go install`.
|
||||
BREW_EXTRA=
|
||||
install_apt "$(col apt)"
|
||||
install_bespoke script "$(keys script)"
|
||||
@@ -1112,6 +1237,7 @@ cmd_install() {
|
||||
install_bespoke tarball "$(keys tarball)"
|
||||
install_bespoke builtin "$(keys builtin)"
|
||||
install_bespoke xcode "$(keys xcode)"
|
||||
install_bespoke go "$(keys go)"
|
||||
install_snap "$(col snap)"
|
||||
install_deb "$(col deb)"
|
||||
install_flatpak "$(col flatpak)"
|
||||
|
||||
Reference in new issue
Block a user