62 Commits
Author SHA1 Message Date
benandClaude Opus 5.5 2428c5ceb0 fix: dotup parses on macOS bash 3.2; stop applying bootstrap.sh
- dotup expand_deps(): bash 3.2 (macOS /bin/sh) cannot parse a case
  pattern inside $( ... ) unless the pattern opens with "(", so the whole
  script failed with a syntax error at line 107 before doing anything.
  Both patterns now carry the leading paren, which POSIX allows and dash
  and newer bash ignore. .tests/test.sh had the same construct (fzf
  binding check) and gets the same fix.
- .chezmoiignore: bootstrap.sh is the curl-fetched installer, not a
  dotfile; without the entry it landed as ~/bootstrap.sh.

Verified: /bin/sh -n and dash -n clean on every shell script in the repo;
on macOS, toggling agents/codex pulls in core/node and toggling
gpu/container-toolkit pulls in the docker group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRAN9ukbXzWt2Zdwz
2026-11-19 22:01:19 -05:00
benandClaude Opus 5.5 6be7896231 fix: pi OpenRouter models; resync fake-private verbatim copies
- dot_pi/agent/models.json: carry the openrouter provider block from the
  MacBook (DeepSeek V4 Pro/Flash, Kimi K3.1 Pro, Qwen4 Max). Key by env
  reference only. A models entry adds to pi's built-in openrouter catalog
  rather than replacing it.
- .tests/lab/fake-private: 1344c64's private-tier counterpart edited
  .chezmoiignore and dotsecrets, and check-verbatim.sh caught both copies
  drifting. Copied across again; all three match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRXBucM8DAwLARhA6
2026-11-18 23:01:31 -05:00
benandClaude Opus 5.5 1344c64819 feat: glm settings, wakeonlan, MacBook vault path; drop OpenAI key
- dot_claude/settings-glm.json: the model map glm() passes to claude,
  carried from ben-pc; no other machine had it, so glm() failed everywhere
- core/wakeonlan in the dotup manifest, for the private tier's wakeup_tv
- sysjournal and the vault symlink now find the MacBook's personal vault,
  which Obsidian Sync named "Personal" rather than "Obsidian-Personal";
  candidates must contain .obsidian, so a plain ~/Documents/Personal folder
  or the stale Obsidian2 can no longer win
- zshrc: remove the zsh-ai openai provider case; OPENAI_API_KEY is gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRXBucM8DAwLARhA6
2026-11-18 22:43:58 -05:00
bcherb2 28bcea9850 test: lab 30 checks that each tier has its own chezmoi state
The private init's --persistent-state (chezmoistate-private.boltdb) and its
unit assertion landed in 06b03c9. chezmoi keeps its state next to the config
file, so the tiers used to share chezmoistate.boltdb and each wrote its
config-template hash over the other's: after the private init every public
command warned "config file template has changed".

Lab 30 now asserts the private state file exists, private.toml names it, and
neither tier warns and both statuses are clean after both inits. The fake
private tier is resynced with the real template and cmp alias.
2026-11-18 03:03:24 -05:00
bcherb2 0279d4a5d0 fix: zsh-ai loads only when its provider has a key
A public-only machine has no secrets.zsh, so every interactive shell
printed zsh-ai's two-line "GEMINI_API_KEY not set" warning. The plugin is
added only when the key its provider needs is set (ollama needs none).
With secrets present it loads exactly as before.
2026-11-18 03:02:50 -05:00
bcherb2 06b03c9528 fix: herdr integrations make the hook directory herdr names
herdr writes its hook file but not the directory, so on a fresh box
`herdr integration install omp` failed: omp had never created
~/.omp/agent/extensions. The step now reads the target path from
`herdr integration status` and makes its directory, only for an agent
that is present. The fake herdr fails like the real one when it is missing.
2026-11-18 03:02:50 -05:00
bcherb2 c710e1934d fix: uv installs without appending to the shell files chezmoi owns
astral's installer appended `. "$HOME/.local/bin/env"` to ~/.zshrc, so a
fresh box showed .zshrc as modified right after the install. Same fix rustup
already had, via UV_NO_MODIFY_PATH=1.
2026-11-18 02:47:59 -05:00
bcherb2 e7bc5fdaff chore: lab verbatim check defaults to $HOME, and the fake private tier is resynced
The default named a real home path in the public tier (SEC-1), and two of
the three verbatim copies had drifted from the private repo.
2026-11-18 02:45:19 -05:00
bcherb2 d8b0e22052 fix: a gh: deb missing from the latest release comes from the newest one that has it
ghostty-ubuntu 1.4.0 builds for 26.04 and later only, so apps/ghostty
failed on every fresh 24.04 box with "no release asset matching". Fall back
to the release list, newest first.
2026-11-18 02:45:18 -05:00
bcherb2 0a5ec74fa5 fix: ~/.local/bin ahead of npm-global so the mmdc wrapper wins
npm's mmdc shadowed the ~/.local/bin wrapper that passes puppeteer the
--no-sandbox config, so nvim's mermaid rendering failed on Ubuntu 24.04.
No other ~/.local/bin wrapper shares a name with an npm-global binary.
Brew still sits ahead of both: it has its own bat, herdr and python3.14,
and moving it would change which of those runs.
2026-11-18 02:29:35 -05:00
bcherb2 e0c78a3ffa feat: installer boots nvim once and restores the lazy-lock pins
A first nvim start cloned the later-round plugins (claudecode, mini.*,
nvim-lint, friendly-snippets, ...) at branch tip and rewrote the seeded
lazy-lock.json with the tips. The install pipeline now ends with a headless
first boot, puts the seeded lockfile back, and runs `Lazy! restore`. It runs
only where lazy has never installed a plugin, so a lockfile the user has
moved on is never touched, and a second run does nothing.
2026-11-18 02:29:35 -05:00
bcherb2 4e2452e994 feat: install herdr agent integrations after the install pipeline
herdr hook files are herdr-managed, so none is committed. The installer ends
by running `herdr integration install <agent>` for each of claude, codex, pi
and omp that is present, skipping any herdr already reports current and
saying nothing when herdr is absent. Seal and fake learn herdr; tests and two
mutations cover install, idempotence, failure and absence (G-AG-5).
2026-11-18 02:13:05 -05:00
bcherb2 f8b17a79d3 fix: [y/N] is asked on the terminal, not on stdin
confirm() returned yes whenever stdin was not a tty, so `dotup < /dev/null` in
a terminal drew the picker on /dev/tty and then installed without asking. It
now opens /dev/tty the way cmd_pick does and reads the answer there; it
auto-approves only when no terminal exists at all. pty test plus a mutation
(ISSUE-9).
2026-11-18 02:13:00 -05:00
bcherb2 91a1224a5e fix: a fresh Mac installs Homebrew before the brew stage
core/brew was `-builtin` on Darwin, and builtin runs after install_brew, so a
Mac without Homebrew failed every brew row "brew missing" and needed a second
run. It is a script row on both platforms now. The apt prerequisite line is
guarded to apt platforms, and on macOS `sudo -v` caches the timestamp that
NONINTERACTIVE=1 Homebrew requires. Darwin dispatch-order test via the fake
uname, plus a mutation (G-boot-1).
2026-11-18 02:12:55 -05:00
bcherb2 6fa7603633 test: mutations for the claude script, desktop key and go channel
Piping the Claude Code installer into bash, placing the Claude Desktop key
unverified, and running the go channel before go is unpacked. The unit suite
kills all three.
2026-11-18 02:01:01 -05:00
bcherb2 01f77bceaa 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.
2026-11-18 02:01:01 -05:00
bcherb2 d09ba0f941 chore: gitignore .tests/bin and tmp 2026-11-18 01:41:43 -05:00
bcherb2 9b81bfb616 test: mutations for the docker script channel
One pipes get.docker.com straight into a root shell; one reports the plugin rows as covered after a failed install. Both are killed by the unit suite.
2026-11-18 01:41:43 -05:00
bcherb2 a538ab75dd fix: docker installs from Docker, never brew; VM guest rows
The docker-ce, buildx and compose rows named apt packages that only exist in
Docker's own repository, so on stock Ubuntu they fell through to brew. They
are a script channel now: get.docker.com downloaded to the run's workdir and
run from the file on Linux, Docker Desktop's DMG installer on macOS. One
install serves all three rows; the plugin rows report its outcome.

Also adds virt/guest-agent and virt/spice-vdagent, with tests and README.
2026-11-18 01:41:43 -05:00
bcherb2 a28a831a14 feat: seed nvim's lazy-lock.json once
Ship the live lockfile as create_lazy-lock.json so a fresh box starts
from the known-good plugin set, and stop ignoring the path. create_
writes it only when absent, so later :Lazy update runs never show as
drift.
2026-11-18 01:32:57 -05:00
bcherb2 0aaaf51421 feat: nvim config tracks the live tree
Port the live ~/.config/nvim working tree (bcherb2/nvim master plus its
uncommitted git.lua and minimap.lua edits): adds claudecode, eslint, lsp,
typescript, meow-yarn and refactoring-fix specs, drops the files the live
repo deleted, and takes live for everything else.

Kept from public: lazy.lua with luarocks disabled, the ai_assist cond
guard (nvim-ai-assist is not anonymously clonable, so a fresh box only
gets it from the private clone list), and the scrubbed endpoint comment
in place of live's LAN address.
2026-11-18 01:32:57 -05:00
bcherb2 9baaf78522 feat: Claude Desktop personal/work profile launchers, claude:// dispatcher and handlers (Linux only) 2026-11-18 01:30:14 -05:00
bcherb2 b4d8701665 feat: mmdc wrapper resolves mermaid-cli from PATH, plus its puppeteer no-sandbox config 2026-11-18 01:30:14 -05:00
bcherb2 db2d7aaa42 feat: link the vault CLI from the Obsidian-Personal vault into ~/.local/bin 2026-11-18 01:30:14 -05:00
bcherb2 9be9522c08 fix: sysjournal finds the vault (Obsidian-Personal, then the pre-split names) 2026-11-18 01:30:14 -05:00
bcherb2 8d660aaa01 feat: seed routr user config with create_ 2026-11-18 01:30:14 -05:00
bcherb2 414c88186b feat: seed herdr config from live with create_ instead of ignoring it 2026-11-18 01:30:14 -05:00
bcherb2 95519f0a5f feat: tmux-resurrect and tmux-continuum externals; drop the unused tpm external 2026-11-18 01:30:14 -05:00
bcherb2 f70d4fe5fc feat: zshrc sets PI_CACHE_RETENTION and forces Wayland only on a Wayland session 2026-11-18 01:30:14 -05:00
bcherb2 3c7468e113 feat: Pi models.json from live
API keys stay $DEEPSEEK_API_KEY / $ZAI_API_KEY env references.
2026-11-18 01:25:43 -05:00
bcherb2 afbd45bab5 feat: Codex and Pi AGENTS.md carry beads, vault and dev-server rules
The beads sections come from live. The vault and dev-server text mirrors
the global CLAUDE.md, replacing the older sysjournal-only section.
2026-11-18 01:25:43 -05:00
bcherb2 536fdd1834 feat: global CLAUDE.md follows live, location moves to a private import
Ports routr, dev-server, vault and beads sections from the live file.
The personal location line becomes @~/.claude/CLAUDE.personal.md, written
by the private tier, and the rules paragraph now says agents, skills and
rules come from the private tier.
2026-11-18 01:25:43 -05:00
bcherb2 170db93f35 fix: nvim first boot on a fresh box — tree-sitter CLI, no luarocks, guarded local plugin
nvim-treesitter (main) hard-requires the tree-sitter CLI: new manifest
row via npm. hererocks failed compiling lua 5.1 (readline headers) for
oxocarbon's incidental rockspec: rocks disabled, the colorscheme works
without. The ~/code/nvim-ai-assist local plugin gets a cond so boxes
without the checkout skip it silently. All three found live, phase 5 VM.
2026-08-22 22:45:47 -04:00
bcherb2 e52d1384ca fix: unattended install on a never-chosen box seeds the defaults
A fresh VM running `dotup install --unattended` got an empty plan and a
silent 'done'. -f $SEL cannot detect this (load-time setup creates the
file); choice is $PICKED or a non-empty selection, and only a box with
neither gets the defaults. A cron re-run of a saved selection and an
accepted chose-none both keep their meaning.
2026-08-22 22:42:39 -04:00
bcherb2 607745ecfd test: lab asserts GitHub reads stay https after the private tier applies 2026-08-22 22:33:32 -04:00
bcherb2 e682ed8a1d test: lab fixture mirrors the pushInsteadOf fix 2026-08-22 22:28:43 -04:00
bcherb2 926a71266e feat: bootstrap.sh defaults to its own clone URL — one URL to type 2026-08-22 21:58:59 -04:00
bcherb2 ea10ba9d4a feat: bootstrap.sh wraps the first command; the URL stays an argument 2026-08-22 21:52:28 -04:00
bcherb2 4043787a58 fix: close the four known installer bugs (DU-H1, DU-H2, BUG-1, BUG-2)
- DU-H1: flags are parsed wherever they sit, so `install --unattended`
  and `--unattended install` are the same run; any unknown flag, word,
  or subcommand exits 2 to stderr before a package manager is touched.
- DU-H2: every download lands in one private mktemp -d (mode 700)
  workdir per run, is checked non-empty before sudo tar sees it, and an
  EXIT/INT/TERM trap cleans up. No fixed /tmp paths remain.
- BUG-1: ^t is now toggle-shown — it ticks only the rows the active
  filter is showing, and @needs expansion stops at the first invasive
  row, so an invasive package can never be ticked off-screen.
- BUG-2: ^t journals what it added, so a second ^t over the same shown
  set unticks exactly that set; the bind no longer clears the query.
- lab: the type verb polls fzf's reported query to a deadline instead
  of a fixed sleep; marks_settled retries within its deadline.

Suite 256/0 host, 214/0 docker (ubuntu:24.04), mutations 24/24 killed
(six new mutants re-introduce each bug and all die), lab 6/6 green.
2026-08-22 13:25:21 -04:00
bcherb2 084fb7a730 fix: the public tier names no real host (SEC-1)
The e2e script hardcoded the live Gitea hostname as the public tier's clone
URL. This repo is world-readable, so that published the host, and the same
host serves the secret-protected bootstrap route.

It now comes in as E2E_PUBLIC_URL, prompted for by the wrapper alongside the
bootstrap URL and passed to the container the same way. The lab already did
this with PUB_URL; this is the live path catching up. The :? form means an
unset variable aborts at that line with a message, rather than surfacing
later as an unattributable clone failure.
2026-08-21 23:16:04 -04:00
bcherb2 7b28415cc6 test: refresh three picker assertions against the fixed behaviour
1ea6b49 changed what the picker does on purpose. Three assertions here were
still holding the old behaviour and failing for it; none of them were finding
a bug. The product is untouched.

- hostile 3 stacked two faults, no terminal AND no fetchable fzf, and asserted
  the fzf message. The /dev/tty probe was deliberately moved ahead of
  ensure_fzf (a run in a pipe used to print fzf's raw error having already
  overwritten the selection with the defaults preset), so with no tty the fzf
  message is now unreachable. Split in two: the no-tty arm asserts the ORDER,
  and a second arm runs the same missing fzf under a pty, via `script -e`,
  which is the only way to reach ensure_fzf's error at all now. Both arms
  still exit 2, and the fallback it names is still resolved for real.

- hostile 4's hand-edited state file was not being read: seeding the defaults
  preset is now decided by $STATE/picked ("a pick has completed") rather than
  by "$SEL is empty", so the fixture's junk was overwritten with 43 default
  rows before anything drew, and the session was testing the preset. core/tree
  is a default, so the space under test unticked it and the assertion read
  "space stopped working". The fixture now records a completed pick, as every
  machine that has pressed enter does. The CRLF row consequently reports its
  real result — silently ignored — where before it falsely read as tolerated,
  and the pass that followed the failure is no longer printed unconditionally.

- the `perm` session drove a picker that no longer draws. $SEL being readable
  and writable is now a precondition of drawing, because every bind is
  execute-silent and throws its child's status away (that was BUG-7). There is
  no session left to drive: the assertion is that nothing draws, that it exits
  2, and that the refusal names the file and a way out. Through a pty again,
  since the tty probe would otherwise answer first.

Deferred, and still failing: BUG-1/BUG-2 in `promise 3`, three assertions. ^t
over an --exact filter widens along @needs and ticks invasive rows that are
not on screen, and ^t ^t is not its own undo. There is no expected-fail
mechanism in this harness and none was invented, so the scenario exits 3 and
the header says why.

Verified: two consecutive runs of `run.sh scenarios/20-picker.sh` at exit 3
with exactly those three failures, and `scenarios/00-smoke.sh` still at 0.
2026-08-21 23:13:40 -04:00
bcherb2 805c407764 docs: README matches the shipped installer
Documents what the code now does: git is installed by the bootstrap rather than
assumed; the full path to dotup is what to type in the session that installed
it, and why; brew is a script row that lazygit, omp and herdr @needs, so
channel order is script-before-brew; apt resolution probes for an installation
candidate, not mere existence; ^o toggles and ^t clears the query; and the
header line carries ^o.
2026-08-21 22:34:53 -04:00
bcherb2 286c3281b5 test: the e2e can no longer pass on a failed install
Two assertions could not fail. `dotup --yes install | tail -8` threw the status
away — no set -e, no pipefail, and $? was tail's — so a run in which 36
packages failed to install still reached "E2E PASS". And the zsh login check
was a `|| echo WARN` that fell straight through. Both now fail the run.
2026-08-21 22:34:53 -04:00
bcherb2 a001406a33 test: container lab for the two-tier apply
A disposable ubuntu container, a fake private tier and a fake bootstrap
endpoint, so the whole documented path — chezmoi init --apply, dotup pick,
dotup private, cmp apply, dotsecrets — can run end to end without touching a
real machine or a real credential. The fake tier mirrors the real one's
structure (seven secrets and one alias) because dotsecrets is copied verbatim
and the "8 exports, not 7" assertion depends on that cardinality; its ids are
sequential and obviously synthetic.

check-verbatim.sh keeps the fake tier's copies of shipped files honest, and
snapshot.sh records file modes so a 644 where a 600 belongs is a diff.
2026-08-21 22:34:53 -04:00
bcherb2 d1e3f8bce2 test: mutation testing — break dotup on purpose and check the suite notices
Each file in .tests/mutations/ is one deliberate bug: what it breaks, why that
matters, the assertion meant to catch it, and an OLD/NEW pair applied to a copy
of the tree. A mutation is KILLED only when the suite fails AND the named
assertion is among the failures — failing for an unrelated reason is reported
as WRONG-TEST, because that is luck, and luck is lost the next time the
unrelated test moves. A mutation whose OLD block no longer matches is STALE
rather than quietly skipped.

19 reproduces the DU-C1 shape: a comment moved back inside the fzf
line-continuation. It is killed by "dotup pick exits 0".
2026-08-21 22:34:53 -04:00
bcherb2 8448ff551a test: run the code under test, not grep over its source
The suite is rewritten against the sealed harness: a fresh $HOME per case, a
recorded call log per box, and assertions about what dotup DID rather than
about which words appear in the file.

ptydrive.py drives a command on a real pty from a small expect/send script, so
the private tier's password prompt, its retry loop, the token file and the
clone can be exercised at all — `expect` is not installed everywhere and
python3 is.

New guard for DU-C1: `dotup pick` is actually run, on a pty, against an fzf
fake that dumps its argv one argument per line. It must exit 0, hand fzf every
--bind the source writes (counted against the source, not a hard-coded 7), bind
all seven keys, and leave the completed-pick marker behind. Every other test
here greps the source for bind strings, which is exactly why all of them passed
while the picker was dead. A static check alongside it rejects any comment
sitting between continued lines, anywhere in the file.
2026-08-21 22:34:39 -04:00
bcherb2 042320208e test: seal the fake PATH instead of prepending it
The old harness put .tests/fakebin at the front of $PATH, which fails OPEN: a
package manager with no fake fell through to the real one, and an audit of this
suite invoked the host's actual `brew`. The twelve one-line fakes are replaced
by a single dispatcher every fake symlinks to, plus seal.sh, which builds the
WHOLE of $PATH for a run — real binaries for the pure tools, fakes for anything
that installs, downloads or needs root, and command-not-found for everything
else. Runs go under `env -i` so they inherit nothing.

Two audits ship with it: any `have`/`find_tool` probe the seal has never heard
of is an error, and the four absolute paths find_tool probes are written to
.shadowed so a test needing a tool to be genuinely absent can say so.

The dispatcher also fails on demand (FAKE_FAIL), which is what makes the
installers' failure paths reachable at all — the apt and npm one-at-a-time
retries, note_fail, and cmd_install's non-zero exit had all been unreachable,
and all three survived being deleted outright.

_curl stands in for every remote the installer talks to and for nothing else:
an unrecognised URL is a failed download, so a typo'd host shows up as the
failure it would really be. The fzf fake records its argv, which is what makes
the picker's bindings testable.
2026-08-21 22:34:30 -04:00
bcherb2 1ea6b492eb fix: dotup — installer, picker and private-tier correctness pass
Installer:
- channel order is a dependency graph: `script` now runs before `brew`, so
  core/brew exists by the time lazygit, omp and herdr are attempted. Those
  three have no apt package at all and failed on every fresh Linux box.
- core/brew and core/node are real script/tarball rows now. apt's nodejs is
  18.19 while four npm rows declare node>=20; npm only warns on a failed
  engines check, so the install "succeeded" and `pi` then died at parse time.
- apt_known asks `apt-cache policy` for an installation candidate rather than
  `apt-cache show` for existence: docker-ce exists in the cache with
  `Candidate: (none)` and exits 0, which kept it in the batch and made apt
  refuse all thirty packages at once.
- failures are reported by manifest key, not by install argument, so the name
  in the summary is one you can type at the picker or pass to `dotup explain`.
- flatpak installs the tool, adds the flathub remote, and uses --user, which
  is the only scope that works without a session bus.
- gh: deb assets fill %a and %v, because a distro-targeted deb names the
  release as well as the arch (ghostty-ubuntu).
- ensure_bws downloads into a `mktemp -d` instead of fixed /tmp paths.
- the endpoint password prompt says so out loud when stty cannot turn echo off,
  instead of silently leaving the password in the scrollback.
- cmd_toggle writes tmp-then-rename, matching cmd_expand.

Picker:
- DU-C1: comments had been inserted between the continued lines of the fzf
  invocation. The `\`-newline is stripped first, so the comment's own newline
  terminated the command — fzf ran with two binds and the lines below it ran
  as a command named `--bind`, so `dotup pick` returned 1 having drawn a dead
  picker. The comment now sits above the pipeline.
- the header is built with a plain variable: `$'...'` is a bashism and /bin/sh
  on Ubuntu is dash, the one platform this is written for.
- the /dev/tty probe runs BEFORE the defaults preset, so a run in a pipe no
  longer overwrites the selection with 43 rows before failing to draw.
- a completed pick is recorded in $STATE/picked, so "install nothing" survives
  the next run and a prior `dotup plan` no longer counts as having chosen.
- $SEL must be readable and writable before anything draws: every bind is
  execute-silent, which throws its child's status away.
- ensure_fzf resolves system-first, cache-second, as the README promises.
- ^t clears the query, so rows pulled in along @needs are on screen.
2026-08-21 22:34:22 -04:00
bcherb2 94d6acadb3 feat: bootstrap installs git, and prints a next step that works
run_before_00-require-git.sh: the documented first command died on the most
ordinary kind of fresh machine there is. chezmoi is a static download and
installs fine, but all six git-repo externals need git, and Ubuntu cloud
images, the Ubuntu docker image and WSL Ubuntu all ship curl and no git.
Installs it across apt/dnf/yum/pacman/zypper/apk/brew, and explains itself
where it cannot (no sudo, or macOS where `git` is a GUI-installer stub).

run_after_99-next-step.sh: `dotup` is command-not-found in the very session
that installed it, because Ubuntu's ~/.profile adds ~/.local/bin to PATH only
if the directory existed at login. No child process can fix its parent's PATH,
so print the absolute path instead of letting the user guess. Silent once PATH
is sorted out.
2026-08-21 22:34:06 -04:00
bcherb2 f30dddce15 fix: resolve chezmoi instead of assuming it is on PATH
The private tier died with `chezmoi: not found` on a real install, AFTER the
bws token had been written -- half-configured, at the last step, password
already spent.

dotup arrives VIA chezmoi, so "it must be here already" is the natural
assumption. It is wrong: get.chezmoi.io installs to ./bin relative to the CWD
when -b is not given, which is exactly what the README's one-liner does. Run it
from $HOME and the binary is ~/bin/chezmoi; run it from /workspace, as anyone
in a container does, and it is /workspace/bin/chezmoi. Neither is on PATH, and
~/.local/bin is not either in bash -- the same gap that makes bare `dotup` fail
on a fresh box.

find_tool exists for precisely this and the call site bypassed it.

  - find_tool now also searches $HOME/bin
  - ensure_chezmoi resolves it, and installs to ~/.local/bin only if it truly
    is absent, mirroring ensure_bws
  - the init uses "$CHEZMOI", never the bare name
  - resolution happens BEFORE the credential prompt, so this fails while it is
    still free rather than after the password is spent

Verified by reproducing the exact scenario: installer run from /workspace, so
chezmoi lands in /workspace/bin and nothing on PATH can see it. Old code:
`chezmoi: not found`. New: detected, installed, prompt reached. Also confirmed
~/bin/chezmoi is found WITHOUT re-downloading, so the common case costs nothing.

113 -> 117.
2026-08-17 23:09:03 -04:00