Herdr App
Security Notice
This extension includes executable binaries. They run with your user permissions. Review each binary before installing.
- extras/obsidian-idea/main.js
- extras/obsidian-idea/icon.svg
- extras/browser-launch/main.js
- extras/browser-launch/icon.svg
Install, update and remove the Herdr desktop app — and herdr-core with it — on Linux, macOS and Windows, from swamp, whichever machine swamp is running on. WHAT IT DOES
Herdr (https://herdr.dev) is a desktop app for terminals and coding agents
that keep running. This extension does the vendor's one-line install as
methods a workflow can plan, pin, verify and report: it resolves the release,
picks this host's archive, checks its SHA-256 before extracting anything, and
places the app the vendor's way for that platform. It installs herdr-core
only when the machine has none — the app keeps it current afterwards — or
updates it on request, and it installs the Borland Modern Blue theme,
selecting it when you have not chosen one. Re-running is safe: a host already
current downloads nothing. Prefer it to curl | sh when you want a pinned,
verified install, a report of what changed, or the same install on a server,
a worker, or a fleet over SSH.
INSTALL
swamp extension pull @svendowideit/herdr-appDEPENDENCIES
None to install the app. It uses Deno's fetch, the bundled deno binary and the host's own tools (tar, and PowerShell on Windows), and talks only to the release host you configure.
@jpisgeek/herdr-swamp-layout is declared in this manifest's
dependencies:, so the single pull above installs it too. It is what puts
the swamp layout — approvals, runs and quick-run panels for this CLI —
inside Herdr, and the install workflow calls its install method after the
app is in place (skipped when the layout is already there, and by default
only: --input swampLayout=false leaves layouts alone). Without it the app
still installs and upgrades; only that step is unavailable.
It is not installed by @svendowideit/herdr-app-worker: that extension
publishes its mods, fonts and layout preview as binaries:, which swamp keeps
in a pulled extension but not in the bundle a worker runs, so its installer
cannot read them there and would leave a half-written layout.
@swamp/ssh is an optional dependency, declared in this manifest's
optionalDependencies:. It is not installed for you: pull it to use
@svendowideit/herdr-app-ssh, which pipes the pinned installer to hosts that
have no swamp. Without it, the local, serve and worker workflows still work.
The swamp bar mods travel as binaries: (the .js and .svg files; their
mod.json is an additional file), because swamp keeps binaries in a pulled
extension but not in the bundle a swamp worker runs. installExtras
therefore runs on a host that has this extension pulled — the local machine
or a --server host — and says so rather than writing a partial mod. The
worker workflow does not run it.
RUN
# Install or upgrade on this machine. Idempotent, so it is also the
# command to run after every release.
swamp workflow run @svendowideit/herdr-app-upgrade
# Install a pinned version, or move the app somewhere else. Pin when a
# fleet must run the same build; appDir/binDir when the defaults do not
# fit.
swamp workflow run @svendowideit/herdr-app-install \
--input version=0.1.14 --input binDir=$HOME/bin
# Ask what an install would do first. Writes the resolved release and the
# plan; touches nothing else.
swamp model @svendowideit/herdr-app method run plan herdr-app
# Install on the machine running `swamp serve`, instead of this one.
swamp workflow run @svendowideit/herdr-app-install \
--server wss://swamp.x1yoga.fi.gy
# Install on one enrolled swamp worker. The step is placed there, so the
# platform detected and the app installed are that worker's.
swamp workflow run @svendowideit/herdr-app-worker \
--server wss://swamp.x1yoga.fi.gy --input target=figy-miix
# Install on Linux and macOS hosts that have no swamp at all, over SSH.
# Every host installs the same pinned, checksum-verified release.
swamp workflow run @svendowideit/herdr-app-ssh \
--input sshHosts=mac-mini=192.0.2.20,studio=studio.lan
# Install or refresh just the bundled theme. It lands in Herdr's own home
# and is selected only when no theme is chosen yet.
swamp model @svendowideit/herdr-app method run installTheme herdr-app
# Put the swamp bar inside Herdr: an "add idea" input that captures onto
# the obsidian-factory board, and a browser button that opens browsh in a
# new tab. Writes both mods and the config they read, and adds one tab +
# menu entry and two keys where they are free. Re-run the swamp-ide enable
# workflow afterwards so the layout carries the blocks.
swamp model @svendowideit/herdr-app method run installExtras herdr-app \
--input swampRepo=/home/me/src/swamp-project \
--input boardModel=obsidian-board
# Install the app somewhere else, and leave themes entirely alone.
swamp workflow run @svendowideit/herdr-app-install \
--input appDir=/opt/herdr --input theme=""
# Upgrade without touching layouts — the app, core and theme only.
swamp workflow run @svendowideit/herdr-app-upgrade --input swampLayout=false
# Read back what is installed now — the versions the binaries report,
# whether the theme is on show, and which layouts Herdr offers.
swamp model @svendowideit/herdr-app method run status herdr-app
# Remove the app, keeping the shared herdr-core. Add removeCore=true to
# remove the core too.
swamp workflow run @svendowideit/herdr-app-install --input uninstall=trueCONFIGURE
Every setting is a method argument (the model has no global arguments), so
--input works both on a workflow and on a direct method run:
version app version to install; empty = newest (default "")
coreVersion herdr-core version; empty = newest (default "")
core auto | always | never (default auto)
force reinstall even when current (default false)
appDir override the app location (platform default)
binDir override the command directory (default ~/.local/bin)
releasesUrl release host (default https://releases.herdr.dev)
downloadDir where verified archives are staged (default cache dir)
theme theme to install from the bundle (default borland-modern-blue)
selectTheme select it when none is chosen yet (default true)
herdrHome override Herdr's own home ($HERDR_APP_HOME, XDG, ~/.config/herdr-app)
swampLayout also install the Herdr swamp layout (default true)
layoutName model instance for the layout installer (default herdr-swamp-layout)
removeCore uninstall also removes the core (default false)
removeTheme uninstall also removes the theme file (default false)
uninstall remove instead of install (default false) installExtras takes its own settings, all optional except swampRepo:
ideaBox install the obsidian-idea input mod (default true)
browserButton install the browser-launch button mod (default true)
programsEntry add the browsh entry to programs.json (default true)
keys merge ctrl-shift-i and ctrl-alt-b (default true)
swampRepo the swamp repository holding the board (required with ideaBox)
boardModel behavior instance whose capture it calls (default obsidian-board)
swampBinary the swamp binary the box runs (default: swamp on PATH)
browserArgv argv the button opens (default docker run --rm -it browsh/browsh)
herdrBin binary used to check each mod (default herdr-app)
force replace differing files, entries and keys (default false) Platform defaults: Linux $XDG_DATA_HOME/herdr-app with ~/.local/bin and a
launcher entry; macOS ~/Applications/Herdr.app; Windows
%LOCALAPPDATA%\Programs\herdr-app with a Start menu shortcut and the user
PATH. core=auto installs a core only when none is present, always also
updates it, never leaves it alone. Setting appDir moves the app without
touching the machine's launcher entry.
@svendowideit/herdr-app-ssh takes sshHosts (comma-separated
name=address entries, or bare addresses), sshUser, sshPort,
sshIdentityFile, sshHostKeyChecking and verifyCoreSignature, plus the
install settings above. One transport applies to every host.
@svendowideit/herdr-app-worker takes target (a worker token name or
instance uuid — swamp worker list shows both) and the install settings.
The workflow requires a running swamp serve with an enrolled worker.
UPGRADE
swamp workflow run @svendowideit/herdr-app-upgradeThat is the whole upgrade: it resolves the newest release, installs it only when this machine is not already on it, refreshes herdr-core when there is none, installs the bundled Borland theme and the Herdr swamp layout when they are missing, reads the installed binaries back, and fails unless the app reports the planned version. Nothing else needs migrating, and re-running is safe.
WHAT IT INSTALLS
On the host it runs on: the Herdr app (a data directory and launcher entry on
Linux, Herdr.app in ~/Applications on macOS, a Programs directory with a
Start menu shortcut and a user PATH entry on Windows), a herdr-app command
symlink on Linux/macOS, and — only when the machine has no core, or when
asked — herdr-core with its hc alias. On Windows the core also brings its
bundled ConPTY. It also writes the Borland Modern Blue theme into Herdr's
own home (themes/borland-modern-blue.json) and, when settings.json names
no theme yet, selects it there — a theme you have chosen is never
overwritten, and theme="" skips themes entirely. It creates no services,
daemons, cron triggers or webhooks. Verified downloads are cached under the
user cache directory; uninstall removes the app, its command link and its
launcher entry, the core only when removeCore=true, and the theme only when
removeTheme=true. The install workflow also hands Herdr's home to
@jpisgeek/herdr-swamp-layout, which copies the swamp layout, its theme and
five mods into layouts/, themes/ and mods/ — once: that installer
refuses to overwrite, so an existing (or edited) layout is left alone.
installExtras writes mods/obsidian-idea/ and mods/browser-launch/ into
Herdr's own home, plus the swamp.json (repo, board model, absolute swamp
binary) and browser.json (argv) they read. It merges one browsh entry
into programs.json — so the tab + menu lists the browser — and the
ctrl-shift-i / ctrl-alt-b bindings into keys.json, only where those
keys are free, saving a .bak-herdr-app copy of anything it rewrites. An
edited mod file or a taken key is reported and left alone unless
force=true. It never touches the vault: the idea reaches the board only
through @svendowideit/obsidian-factory's own capture method.
Resources
Install, update — or remove — the Herdr desktop app and herdr-core on the machine this workflow runs on, verifying every download against the release manifest's SHA-256. This is the local transport: the steps run where swamp runs. Point the same workflow at a `swamp serve` server and it installs on that server instead: swamp workflow run @svendowideit/herdr-app-install \ --server wss://swamp.example.com For a swamp worker, run @svendowideit/herdr-app-worker; for hosts with no swamp
The one command that brings this machine's Herdr app and herdr-core up to date — and the same command that installs them the first time. swamp workflow run @svendowideit/herdr-app-upgrade It resolves the newest release, installs it only when this machine is not already on it, refreshes a herdr-core only when there is none, installs the bundled Borland theme and the Herdr swamp layout when they are not there yet, and then reads the result back and fails unless the installed app reports the
Install or update Herdr on a swamp worker — the machine a `swamp serve` orchestrator dispatches work to — instead of on the orchestrator itself. swamp workflow run @svendowideit/herdr-app-worker \ --server wss://swamp.example.com --input target=mac-mini Every step declares `target`, so the whole install is placed on the named worker: the platform detected, the download unpacked and the app placed are all that worker's. The release and the results are written back to the orchestrator,
Install or update Herdr on Linux and macOS hosts that have no swamp, over SSH, from one orchestrator. swamp workflow run @svendowideit/herdr-app-ssh \ --input sshHosts=mac-mini=192.168.1.20,studio=studio.lan The release is resolved once, here, and pinned into a POSIX install script by version, URL and SHA-256 for every Linux and macOS target — so a mixed fleet gets the right build per host, every host verifies the same bytes, and no host is asked to parse a manifest. SSH is delegated
updated dependencies
Modified 1 behaviors
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Spawns a subprocess with Deno.Command().
- models/herdr_app.ts:1886 — no reason given
- files/herdr_app_shared_test.ts:479 — no reason given
- files/herdr_app_shared_test.ts:532 — no reason given