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)"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# otherwise the worst child's note is right.
|
||||
#
|
||||
# A leading `-` in the apt or brew column means "not from this package manager":
|
||||
# -tarball -npm -script -snap -deb -flatpak -uv -builtin -xcode.
|
||||
# -tarball -npm -script -snap -deb -flatpak -uv -go -builtin -xcode.
|
||||
# A bare `-` means unavailable there. Linux falls back to the brew column before
|
||||
# giving up -- omp, herdr and lazygit have no apt package at all. The fallback is
|
||||
# one-directional: there is no apt on a Mac, so a `-` in the brew column is the
|
||||
@@ -28,7 +28,6 @@
|
||||
@needs agents/pi core/node
|
||||
@needs agents/pi-plugins core/node
|
||||
@needs agents/pi-plugins agents/pi
|
||||
@needs agents/specify-cli core/uv
|
||||
@needs core/mermaid-cli core/node
|
||||
@needs core/tree-sitter core/node
|
||||
# The three rows with no apt package at all. They resolved to brew and
|
||||
@@ -38,6 +37,15 @@
|
||||
@needs core/lazygit core/brew
|
||||
@needs agents/omp core/brew
|
||||
@needs agents/herdr core/brew
|
||||
@needs agents/beads core/brew
|
||||
@needs core/tea core/brew
|
||||
@needs core/bun core/brew
|
||||
# `go install` needs a go. The -go channel runs after the tarball one, so the
|
||||
# order is right on Linux; on a Mac go comes from brew, which runs first too.
|
||||
@needs core/go-tools core/go
|
||||
# The Nerd Fonts release is .tar.xz, and the 24.04 base image has no xz.
|
||||
@needs fonts/hack-nerd-font core/xz
|
||||
@needs fonts/iosevka-nerd-font core/xz
|
||||
@needs core/neovim core/imagemagick core/mermaid-cli
|
||||
@needs private/bws-secrets core/unzip
|
||||
#
|
||||
@@ -45,12 +53,12 @@
|
||||
# rpiv-btw` installs somebody else's package.
|
||||
@spec agents/codex @openai/codex
|
||||
@spec agents/pi @earendil-works/pi-coding-agent
|
||||
@spec agents/pi-plugins @juicesharp/rpiv-ask-user-question @juicesharp/rpiv-btw @juicesharp/rpiv-todo @samfp/pi-memory @tmustier/pi-ralph-wiggum pi-markdown-preview pi-powerline-footer pi-simplify pi-subagents pi-web-access
|
||||
@spec agents/specify-cli specify-cli
|
||||
@spec agents/pi-plugins @juicesharp/rpiv-ask-user-question @juicesharp/rpiv-btw @juicesharp/rpiv-todo @samfp/pi-memory @tmustier/pi-ralph-wiggum pi-markdown-preview pi-powerline-footer pi-simplify pi-subagents pi-web-access pi-lens pi-mcp-adapter
|
||||
@spec core/mermaid-cli @mermaid-js/mermaid-cli
|
||||
@spec core/tree-sitter tree-sitter-cli
|
||||
@spec core/bitwarden-cli bw
|
||||
@spec apps/obsidian md.obsidian.Obsidian
|
||||
@spec apps/signal org.signal.Signal
|
||||
@spec apps/chrome https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
@spec apps/ghostty gh:mkasberg/ghostty-ubuntu:_%a_%v.deb
|
||||
core neovim safe -tarball neovim apt ships 0.9.5 — tarball to /opt/nvim
|
||||
@@ -75,6 +83,7 @@ core tree-sitter safe -npm -npm tree-sitter CLI — nvim-treesitter (main) refus
|
||||
core btop safe btop btop
|
||||
core htop safe htop htop
|
||||
core ncdu safe ncdu ncdu
|
||||
core xz safe xz-utils xz the Nerd Fonts release is .tar.xz, and 24.04 minimal has no xz
|
||||
core unzip safe unzip unzip the bws release ships as a .zip, and 24.04 minimal has no unzip
|
||||
core tree safe tree tree
|
||||
core cmake safe cmake cmake
|
||||
@@ -87,14 +96,23 @@ core nmap safe nmap nmap
|
||||
core binwalk safe binwalk binwalk
|
||||
core pipx safe pipx pipx
|
||||
core age safe age age general purpose only now
|
||||
core jq safe jq jq every Claude hook and the beads session hook pipe through it
|
||||
core shellcheck safe shellcheck shellcheck the installer itself is linted with it
|
||||
core clang-format safe clang-format clang-format
|
||||
core gitleaks safe gitleaks gitleaks the pre-commit secret scan this repo's rules require
|
||||
core tea safe - tea Gitea CLI — no apt package, pulls linuxbrew on linux
|
||||
core bun safe - oven-sh/bun/bun builds the statusline — tap only, pulls linuxbrew on linux
|
||||
core go-tools safe -go -go gopls goimports golangci-lint staticcheck — go install to ~/go/bin
|
||||
core rust safe -script -script rustup to ~/.cargo, PATH left alone — ~/.zshenv sources ~/.cargo/env
|
||||
agents codex safe -npm -npm @openai/codex — unpinned, always latest
|
||||
agents pi safe -npm -npm @earendil-works/pi-coding-agent
|
||||
agents pi-plugins safe -npm -npm 10 plugins: rpiv-*, pi-memory, pi-subagents, ...
|
||||
agents pi-plugins safe -npm -npm 12 plugins: rpiv-*, pi-memory, pi-subagents, pi-lens, pi-mcp-adapter, ...
|
||||
agents omp safe - can1357/tap/omp oh my pi — tap only, pulls linuxbrew on linux
|
||||
agents herdr safe - herdr terminal workspace manager for agents
|
||||
agents specify-cli safe -uv -uv uv tool install
|
||||
fonts hack-nerd-font safe fonts-powerline font-hack-nerd-font
|
||||
fonts iosevka-nerd-font safe fonts-powerline font-iosevka-nerd-font
|
||||
agents claude safe -script -script Claude Code, Anthropic's native installer to ~/.local/bin — updates itself
|
||||
agents beads safe - beads bd — the brew formula pulls dolt, its backend
|
||||
fonts hack-nerd-font safe -tarball font-hack-nerd-font Nerd Fonts release to ~/.local/share/fonts on linux
|
||||
fonts iosevka-nerd-font safe -tarball font-iosevka-nerd-font Nerd Fonts release to ~/.local/share/fonts on linux
|
||||
media ffmpeg safe ffmpeg ffmpeg
|
||||
media sox safe sox sox
|
||||
media p7zip safe p7zip-full p7zip
|
||||
@@ -103,6 +121,8 @@ apps ghostty gui -deb ghostty
|
||||
apps chrome gui -deb google-chrome
|
||||
apps firefox gui firefox firefox
|
||||
apps vlc gui vlc vlc
|
||||
apps claude-desktop gui -script claude adds Anthropic's apt repository and signing key on linux
|
||||
apps signal gui -flatpak signal flathub org.signal.Signal, --user on linux
|
||||
@networking daemons, listening ports, and setuid mount helpers
|
||||
networking openssh-server invasive openssh-server -builtin opens port 22 on every network this box can reach
|
||||
networking tailscale invasive tailscale tailscale daemon; joins a private network and rewrites DNS
|
||||
@@ -135,6 +155,7 @@ gpu container-toolkit invasive nvidia-container-toolkit - requires docker
|
||||
virt qemu invasive qemu-kvm -
|
||||
virt libvirt invasive libvirt-daemon-system - daemon + group membership
|
||||
virt virt-manager invasive virt-manager -
|
||||
virt incus invasive incus - daemon; incus-admin membership is root-equivalent · the test-VM tool
|
||||
# The rows above host guests; these two ARE the guest. Both ship in
|
||||
# Ubuntu main — plain apt names, no vendor repository involved.
|
||||
virt guest-agent invasive qemu-guest-agent - daemon the qemu HOST can command (shutdown, fsfreeze) — for when this box is the guest
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 17 and column 49.
|
Reference in new issue
Block a user