Repository navigation
feat(sesh): remote project seeds and per-project gh-dash scope/profiles - #1591
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One PR for the coupled pair #1585 + #1586:
vigos.seshlearns remote project seeds with a runner-aware picker, andvigos.ghdashgains per-project scope plus named section profiles. They land together deliberately — both introduce a binary that collides with a downstream config's own copy (sesh-picker,gh-dash-repo), so shipping them in the same release makes the consumer migration atomic, and the ghdash wrapper is what a sesh layout profile points its dashboard window at.vigos.sesh: remote seeds + runner stage (#1585)
vigos.sesh.remotes—{ project, host, path }list (hostis an~/.ssh/configalias; no connection details in the module). Rendered toremotes.tsvbesidesesh.tomlonly when populated, so the empty default is a bit-for-bit no-op, asserted as such.sesh-picker— appears only when a project has more than one location; last-used runner remembered and pre-selected (Enter Enterreconnects). One script for both shapes: an empty-inventory guard at the top preserves today's one-stage flow verbatim, rather than a second generated picker that could drift. Remote-only entries get a portable⇄marker (no Nerd-Font dependency).sesh-remote-connect— attach-or-create over SSH (tmux new -A), tiered capability probe in a single round trip (sesh-layout→ full layout; tmux → persistent blank session; neither → warned plain shell), forcedTERM=xterm-256color, Nix profile bins prepended for non-interactive shells. Ships unconditionally (useful standalone).vigos.sesh.remoteTerminal(design call) — the nested-tmux escape hatch's terminal is an option, not a baked-in binary. Null default opens a local tmux window running the ssh client: functional everywhere at the cost of nested prefix keys; set e.g."ghostty -e"for an own-window experience.vigos.ghdash: per-project scope + profiles (#1586)
gh-dash-repo [profile]— resolves the repo fromoriginat the launch CWD, substitutes it into a rendered template, andexecsgh-dash --config. Outside a GitHub repo it falls back to therepoFiltersscope (orinvolves:@me), so it is always valid. Unknown profile → error listing the valid names.vigos.ghdash.profiles(design call) — named section sets with scope-free filters; the module appends the launch-time scope (same composition as the generated sections), so a profile cannot silently ship unscoped.defaultmirrors the generated sections and cannot be redefined (same rule as sesh layout profiles). Templates are full merged settings with only the section keys swapped, so consumer tuning carries into every per-repo config; rendered as JSON (a YAML subset) so the text is eval-pure and testable.programs.gh-dash.settingsunchanged (asserted byte-level on the section filters); the placeholder never reaches the global config.Verification
test(sesh)→feat(sesh),test(ghdash)→feat(ghdash)); 5 new eval-level tests. Interactive picker/wrapper paths are shell and not unit-testable here, per the issues.nix build .#checks.x86_64-linux.hm-fullgreen (shellcheck on all three generated scripts).tests/test_flake_checks.py: 23/23 after merging dev (including the new [FEATURE] CI: evaluate homeManagerModules against home-manager master + nixos-unstable #1589 master+unstable guard, which now covers these options too).prek run --all-filesgreen.Closes #1585
Closes #1586