@sebastienrousseau/dotfiles 0.2.500 → 0.2.501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/README.md +82 -44
- package/docs/.vitepress/reports/localization-readability-audit.md +4 -0
- package/docs/AI.md +8 -2
- package/docs/CNAME +1 -0
- package/docs/COPYRIGHT +1 -1
- package/docs/NAMING_CONVENTIONS.md +7 -0
- package/docs/README.md +4 -0
- package/docs/_config.yml +59 -0
- package/docs/adr/ADR-001-ci-cd-pipeline.md +17 -0
- package/docs/adr/ADR-002-shell-performance.md +9 -0
- package/docs/adr/ADR-003-security-first.md +18 -0
- package/docs/adr/ADR-004-cli-architecture.md +14 -0
- package/docs/adr/ADR-005-chezmoi-choice.md +10 -0
- package/docs/adr/ADR-006-shell-selection.md +9 -0
- package/docs/adr/ADR-007-multi-shell-parity.md +10 -1
- package/docs/adr/ADR-008-alias-system-architecture.md +10 -0
- package/docs/adr/ADR-009-wallpaper-driven-theming.md +131 -0
- package/docs/adr/ADR-010-starship-transient-prompt.md +144 -0
- package/docs/adr/ADR-011-nushell-tier3-keep.md +144 -0
- package/docs/adr/README.md +7 -0
- package/docs/architecture/ARCHITECTURE.md +4 -0
- package/docs/architecture/INTEROP.md +8 -0
- package/docs/architecture/REPO_LAYOUT.md +5 -1
- package/docs/architecture/WALKTHROUGH.md +4 -0
- package/docs/architecture/fleet-deployment.md +4 -0
- package/docs/archive/EUXIS_2026_REVIEW.md +11 -3
- package/docs/archive/LEGACY_ROADMAP.md +45 -27
- package/docs/archive/MILESTONE_v0.2.493.md +4 -0
- package/docs/archive/PLAN.md +46 -8
- package/docs/archive/REPO_AUDIT.md +8 -0
- package/docs/guides/INSTALL.md +4 -0
- package/docs/guides/NEOVIM_IDE_GUIDE.md +9 -0
- package/docs/guides/THEMING.md +8 -0
- package/docs/guides/TROUBLESHOOTING.md +28 -0
- package/docs/guides/WSL2_NIX_TROUBLESHOOTING.md +70 -1
- package/docs/index.md +6 -2
- package/docs/interop/A2A.md +7 -0
- package/docs/interop/POWERSHELL.md +102 -0
- package/docs/manual/00-introduction.md +5 -1
- package/docs/manual/01-concepts/01-architecture.md +4 -0
- package/docs/manual/01-concepts/02-trust-model.md +6 -2
- package/docs/manual/01-concepts/03-theme-engine.md +4 -0
- package/docs/manual/01-concepts/04-fleet.md +7 -1
- package/docs/manual/01-concepts/05-self-healing.md +8 -1
- package/docs/manual/02-tutorials/01-first-install.md +5 -0
- package/docs/manual/02-tutorials/02-add-wallpaper.md +5 -0
- package/docs/manual/02-tutorials/03-create-profile.md +6 -0
- package/docs/manual/02-tutorials/04-encrypt-secret.md +6 -0
- package/docs/manual/02-tutorials/05-deploy-fleet.md +5 -1
- package/docs/manual/03-reference/01-dot-cli.md +4 -0
- package/docs/manual/03-reference/02-config-files.md +8 -2
- package/docs/manual/03-reference/03-environment.md +4 -0
- package/docs/manual/03-reference/04-templates.md +7 -1
- package/docs/manual/03-reference/05-feature-flags.md +10 -0
- package/docs/manual/04-cookbook/01-recipes.md +4 -0
- package/docs/manual/04-cookbook/02-troubleshooting.md +32 -0
- package/docs/manual/04-cookbook/03-faq.md +8 -0
- package/docs/manual/05-appendices/A-platform-matrix.md +4 -0
- package/docs/manual/05-appendices/B-security-checklist.md +6 -0
- package/docs/manual/05-appendices/C-glossary.md +4 -0
- package/docs/manual/05-appendices/D-bibliography.md +5 -1
- package/docs/manual/05-appendices/E-license.md +4 -0
- package/docs/manual/_toc.yml +1 -1
- package/docs/manual/command-index.md +4 -0
- package/docs/manual/concept-index.md +4 -0
- package/docs/operations/ATTESTATION.md +5 -0
- package/docs/operations/CI_CADENCE.md +107 -0
- package/docs/operations/CI_COMPOSITES.md +156 -0
- package/docs/operations/COMPLETIONS.md +123 -0
- package/docs/operations/COVERAGE.md +148 -0
- package/docs/operations/DRIFT.md +107 -0
- package/docs/operations/MAINTENANCE.md +5 -1
- package/docs/operations/MIGRATION.md +14 -6
- package/docs/operations/OPERATIONS.md +24 -0
- package/docs/operations/PERFORMANCE.md +133 -0
- package/docs/operations/RELIABILITY.md +6 -0
- package/docs/operations/ROADMAP.md +36 -18
- package/docs/operations/TESTING.md +4 -0
- package/docs/operations/TRACEABILITY.md +4 -0
- package/docs/operations/TRUSTED_AGENT_WORKSTATION.md +4 -0
- package/docs/operations/VERSION_SYNC.md +54 -5
- package/docs/reference/ALIASES.md +7 -0
- package/docs/reference/ALIASES_CHEATSHEET.md +5 -1
- package/docs/reference/ALIASES_DEPRECATIONS.md +5 -1
- package/docs/reference/FEATURES.md +4 -0
- package/docs/reference/FONTS.md +4 -0
- package/docs/reference/PROFILES.md +4 -0
- package/docs/reference/SCREENSHOTS.md +4 -0
- package/docs/reference/SCRIPTS.md +4 -0
- package/docs/reference/SUPPORT_MATRIX.md +10 -4
- package/docs/reference/THEMES.md +4 -0
- package/docs/reference/TOOLS.md +4 -0
- package/docs/reference/UTILS.md +16 -12
- package/docs/security/AI_ACT_COMPLIANCE.md +4 -0
- package/docs/security/AUDIT_BYPASS.md +103 -0
- package/docs/security/AUTOMATION_SECRETS.md +4 -0
- package/docs/security/CI_EGRESS_ALLOWLIST.md +127 -0
- package/docs/security/COMPLIANCE.md +5 -0
- package/docs/security/DEPS_DEV_EXCEPTIONS.md +86 -0
- package/docs/security/ENCRYPTION.md +5 -0
- package/docs/security/FMEA.md +4 -0
- package/docs/security/HISTORY_FILTERING.md +132 -0
- package/docs/security/INCIDENT_RESPONSE.md +4 -0
- package/docs/security/INSTALL_VERIFICATION.md +122 -0
- package/docs/security/KEYS.md +4 -0
- package/docs/security/KEY_ROTATION.md +4 -0
- package/docs/security/MCP_POLICY.md +9 -0
- package/docs/security/POLICY_RELEASES.md +4 -0
- package/docs/security/README.md +4 -0
- package/docs/security/SCORECARD.md +80 -0
- package/docs/security/SECRETS.md +12 -0
- package/docs/security/SECURITY.md +4 -0
- package/docs/security/SECURITY_CHECKLIST.md +11 -0
- package/docs/security/SHELL_EXEMPTIONS.md +145 -0
- package/docs/security/SOUP_REGISTER.md +4 -0
- package/docs/security/THREAT_MODEL.md +10 -0
- package/docs/security/VERIFICATION_VALIDATION.md +5 -1
- package/docs/themes/README.md +4 -0
- package/docs/themes/VISUAL_INTEGRITY_REPORT.md +4 -0
- package/dot_config/ai/identity.md +3 -0
- package/dot_config/ai/patterns/architect.md +2 -0
- package/dot_config/ai/patterns/hardener.md +2 -0
- package/dot_config/ai/patterns/refactor.md +2 -0
- package/dot_config/alacritty/alacritty.toml.tmpl +3 -3
- package/dot_config/atuin/config.toml.tmpl +47 -0
- package/dot_config/dotfiles/agent-card.json +1 -1
- package/dot_config/dotfiles/boot/README.md +2 -0
- package/dot_config/dotfiles/grub/README.md +2 -0
- package/dot_config/dotfiles/lock/README.md +2 -0
- package/dot_config/fish/conf.d/init.fish.tmpl +21 -0
- package/dot_config/fish/functions/_cached_eval.fish +84 -11
- package/dot_config/fish/functions/_cached_eval_clear.fish +17 -0
- package/dot_config/foot/foot.ini.tmpl +3 -3
- package/dot_config/fuzzel/fuzzel.ini.tmpl +2 -2
- package/dot_config/ghostty/config.tmpl +3 -3
- package/dot_config/git/hooks/executable_commit-msg +146 -0
- package/dot_config/goose/config.yaml +2 -2
- package/dot_config/gtk-3.0/gtk.css.tmpl +2 -2
- package/dot_config/gtk-3.0/settings.ini.tmpl +2 -2
- package/dot_config/gtk-4.0/gtk.css.tmpl +2 -2
- package/dot_config/gtk-4.0/settings.ini.tmpl +2 -2
- package/dot_config/kitty/kitty.conf.tmpl +3 -3
- package/dot_config/mise/config.toml +1 -1
- package/dot_config/niri/config.kdl.tmpl +2 -2
- package/dot_config/nushell/cached_eval.nu +80 -0
- package/dot_config/nushell/env.nu.tmpl +21 -13
- package/dot_config/shell/00-core-paths.sh.tmpl +1 -0
- package/dot_config/shell/05-core-safety.sh +1 -0
- package/dot_config/shell/10-secrets.sh +1 -0
- package/dot_config/shell/40-fzf-defaults.sh.tmpl +1 -0
- package/dot_config/shell/40-ls-colors.sh +1 -0
- package/dot_config/shell/50-logic-functions-core.sh.tmpl +1 -0
- package/dot_config/shell/50-logic-functions.sh.tmpl +1 -0
- package/dot_config/shell/51-logic-functions-extra.sh.tmpl +1 -0
- package/dot_config/shell/90-ux-aliases.sh.tmpl +1 -0
- package/dot_config/shell/91-ux-aliases-lazy.sh.tmpl +1 -0
- package/dot_config/shell/README.md +25 -8
- package/dot_config/starship.toml.tmpl +2 -2
- package/dot_config/tmux/tmux.conf.tmpl +3 -3
- package/dot_config/user-dirs.dirs +1 -0
- package/dot_config/vscode/settings.json.tmpl +2 -2
- package/dot_config/waybar/config.jsonc.tmpl +2 -2
- package/dot_config/waybar/style.css.tmpl +2 -2
- package/dot_config/wezterm/wezterm.lua.tmpl +3 -3
- package/dot_config/zsh/dot_zshrc.tmpl +154 -17
- package/dot_config/zsh/rc.d/00-alias-shims.zsh +28 -6
- package/dot_config/zsh/rc.d/30-options.zsh.tmpl +26 -6
- package/dot_local/bin/executable_bm +2 -0
- package/dot_local/bin/executable_dot +9 -2
- package/dot_local/bin/executable_dot-load-benchmark +1 -1
- package/dot_local/bin/executable_notify +2 -0
- package/dot_local/bin/executable_open +2 -0
- package/dot_local/bin/executable_tour +4 -2
- package/dot_local/bin/executable_up +3 -1
- package/install.sh +12 -4
- package/package.json +1 -1
- package/scripts/ci/check-dangerous-chmod.sh +19 -0
- package/scripts/ci/check-deps-dev.sh +236 -0
- package/scripts/ci/check-insecure-tls.sh +61 -0
- package/scripts/ci/check-regression-traceability.sh +67 -0
- package/scripts/ci/check-shell-preamble.sh +106 -0
- package/scripts/ci/run-coverage.sh +362 -0
- package/scripts/ci/validate-chezmoidata.sh +25 -0
- package/scripts/diagnostics/doctor.sh +173 -5
- package/scripts/diagnostics/drift-dashboard.sh +177 -13
- package/scripts/diagnostics/health.sh +21 -4
- package/scripts/diagnostics/perf.sh +304 -77
- package/scripts/diagnostics/workstation-attestation.sh +6 -1
- package/scripts/dot/commands/agent.sh +14 -5
- package/scripts/dot/commands/ai.sh +75 -10
- package/scripts/dot/lib/bento.sh +2 -1
- package/scripts/dot/lib/log.sh +6 -0
- package/scripts/dot/lib/platform.sh +1 -0
- package/scripts/dot/lib/ui.sh +11 -0
- package/scripts/dot/lib/utils.sh +5 -0
- package/scripts/git-hooks/pre-commit-audit.sh +1 -1
- package/scripts/git-hooks/pre-push +66 -3
- package/scripts/ops/heal-chezmoi.sh +41 -6
- package/scripts/qa/powershell-contract.ps1 +95 -0
- package/scripts/theme/merge-wallpaper.sh +4 -0
- package/scripts/theme/switch.sh +20 -10
- package/dot_config/atuin/config.toml +0 -40
- package/dot_local/bin/__pycache__/executable_dot-load-benchmark-ptycpython-312.pyc +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,73 @@
|
|
|
2
2
|
|
|
3
3
|
This file documents all notable changes to this project.
|
|
4
4
|
|
|
5
|
+
## v0.2.501
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Warp + iTerm2 theme support** — the two terminals the theme system did not yet cover are now first-class. `dot_warp/themes/dotfiles.yaml.tmpl` deploys a Warp theme; `run_onchange_22-iterm2-profile.sh.tmpl` writes an iTerm2 Dynamic Profile to `~/Library/Application Support/iTerm2/DynamicProfiles/dotfiles.json`. Both pick up the active theme's `.term` palette, so one `chezmoi apply` switches all six supported terminals (kitty, alacritty, wezterm, foot, warp, iterm2). The README's "Why this repo is different" surface lists this under wallpaper-driven themes.
|
|
10
|
+
- **Starship Transient Prompt (fish)** — `dot_config/fish/conf.d/init.fish.tmpl` calls `enable_transience` after the cached `starship init`, collapsing past prompts to the `[character]` glyph in scrollback. The zsh implementation is a forward-compatibility hook only — Starship 1.24.2 does not yet ship `enable_transience` for zsh (upstream tracker [starship/starship#3522](https://github.com/starship/starship/issues/3522)). Rationale and rejected alternatives recorded in [ADR-010](docs/adr/ADR-010-starship-transient-prompt.md).
|
|
11
|
+
- **`_cached_eval` enhancements (#847)** — `EVALCACHE_DISABLE=true` bypass for debugging, realpath sidecar pin to catch PATH-shadow swaps, file-path argument mtime check, init-failure handling (warns and returns rc instead of caching an empty output), and a new `_cached_eval_clear` helper. Applied to all three implementations (zsh, bash, fish). Adds shdoc docstrings.
|
|
12
|
+
- **JSON Schema for `.chezmoidata.toml`** — `config/chezmoidata.schema.json` (draft-07) plus `.taplo.toml` and a new `lint-chezmoidata` CI job. Catches typos in feature flags, profile names, `default_shell`, and `node_manager` at PR time.
|
|
13
|
+
- **OIDC trusted publishing for npm (#836)** — `publish-npm` workflow authenticates via OIDC instead of a long-lived `NPM_TOKEN`. Provenance is attached to every published tarball. The migration is breaking on the CI side: `NPM_TOKEN` is no longer used. **Manual followup needed before the first OIDC release**: configure Trusted Publishing on npmjs.com for `@sebastienrousseau/dotfiles` pointing at `sebastienrousseau/dotfiles` + `.github/workflows/npm-publish.yml`.
|
|
14
|
+
- **`lint-copyright` in `ci.yml` (#834)** — the fast CI pipeline now runs the reusable copyright-header lint. Previously only `ci-enforced.yml` ran it.
|
|
15
|
+
- **Test coverage roadmap, Slices 1–5d (#883)** — replaced the broken kcov pipeline with a pure bash xtrace runner that works on Linux and macOS. Eight iterations land the floor at **33% measured, 36.73% real (5,783 / 15,744 lines)**:
|
|
16
|
+
- Slice 1: 2.72% baseline + xtrace runner (`PS4 + BASH_ENV`).
|
|
17
|
+
- Slice 2: 12.01% — 59 shallow → deep conversions via new `tests/framework/coverage_helpers.sh` (sandbox + safe-mode entry-point exercise).
|
|
18
|
+
- Slice 3: 18.90% — 47 auto-generated exercise tests + 119 deep conversions.
|
|
19
|
+
- Slice 4: 19.16% — smart-output shims (`chezmoi`, `git`, `curl`) and subcommand probes.
|
|
20
|
+
- Slice 5: 34.10% — `cov_exercise_functions_file` helper (source + call each function), sandbox `$HOME/.dotfiles` symlink unblocks scripts that guard on a managed checkout, `test_auto_dot_driver.sh` drives the top-level `dot` dispatcher through 70 read-only subcommands, aggregator filters lines after `set +o xtrace` (intentionally unmeasurable in `security-score.sh` / `scorecard.sh`) and structural-only keywords (`fi`, `done`, etc.).
|
|
21
|
+
- Slice 5b: 33.73% honest — PS4 `set -u` guard (`${BASH_SOURCE:-}`) and SF: path canonicalization (collapses duplicate keys like `commands/../lib/log.sh`).
|
|
22
|
+
- Slice 5c: 36.10% — `cov_exercise_functions_file` added to every existing auto-test.
|
|
23
|
+
- Slice 5d: 36.73% — seven more auto-tests for scripts the existing-test scan had skipped.
|
|
24
|
+
|
|
25
|
+
`MIN_COVERAGE_PCT` floor: 0 → 10 → 17 → 18 → 30 → **33** (3-point cushion absorbs cross-platform jitter).
|
|
26
|
+
- **GitHub Pages deploy of `docs/` to doc.dotfiles.io** — new `.github/workflows/pages.yml` builds the Jekyll site (cayman theme, kramdown, Liquid disabled for chezmoi-template snippets) and publishes on every push to master that touches `docs/**`. Replaces the old approach where `manual-publish.yml` deployed the multi-format manual to Pages.
|
|
27
|
+
- **PR consolidation — 8 Dependabot bumps (#839–#846)** — major bumps: `actions/deploy-pages` 4→5, `softprops/action-gh-release` 2→3, `actions/download-artifact` 4→8.0.1, `docker/setup-buildx-action` 3→4, `actions/upload-pages-artifact` 3→5, `actions/github-script` 8→9. Minor and SHA-only refreshes for `actions/cache`, `actions/setup-node`, `bridgecrewio/checkov-action`, `devcontainers/ci`, `docker/login-action`, the `github/codeql-action` family, and `trufflesecurity/trufflehog`. All actions remain pinned by full commit SHA.
|
|
28
|
+
- **Re-source guards** on the five shared library files where re-sourcing would corrupt state: `tests/framework/{assertions,mocks}.sh` and `scripts/dot/lib/{utils,ui,log}.sh`.
|
|
29
|
+
- **`tests/unit/ci/test_validate_chezmoidata.sh`** — 13 assertions covering the new schema-validator script. Restores the 100% module-coverage floor that the schema commit had broken.
|
|
30
|
+
- **`tests/unit/ci/test_check_*.sh`** — four new module-coverage tests for `check-insecure-tls`, `check-dangerous-chmod`, `check-regression-traceability`, and `run-coverage`. Keeps module coverage at 221/221.
|
|
31
|
+
- **`docs/operations/COVERAGE.md`** — documents the why-not-kcov decision (Ubuntu 24.04 bash 5.2 incompatibility) and the xtrace approach (`PS4 + BASH_ENV`).
|
|
32
|
+
- **`.chezmoiignore`** — new file at the repo root. Excludes 880 → 408 paths from chezmoi's managed surface: build artifacts (`coverage/`, `nightly-reports/`, `_build/`), repo metadata (`README.md`, `CHANGELOG.md`, `LICENSE`, `.github/`, `.git/`), documentation tree (`docs/`, intended for doc.dotfiles.io, not `$HOME`), and CI scaffolding (`scripts/`, `tests/`, `examples/`, `install/`, `nix/`, `config/`, `.well-known/`). Also gates `dot_warp/` to macOS via a template conditional. Before this file, any developer machine that had run the test suite locally would have ~600 MB of coverage trace data deployed under `~/coverage/` on the next `chezmoi apply`.
|
|
33
|
+
- **Goose and Codex CLI in `dot ai`** — both AI agents now appear in the status surface under "Agents (autonomous)". `goose` and `codex` are wired in `_ai_mise_pkg` (so `dot ai-setup` knows their install targets), in the bridge `case` (so `dot goose --pattern X "prompt"` and `dot codex --pattern X "prompt"` route correctly), and in the route table in `dot_local/bin/executable_dot`.
|
|
34
|
+
- **Spinner feedback on slow operations** — `dot ai` now shows `Probing N AI tools (cached for 300s)…` during the cold-cache refresh. Previously the command sat silent for 15–30s on the first run after the 5-min TTL expired.
|
|
35
|
+
|
|
36
|
+
### Changed
|
|
37
|
+
|
|
38
|
+
- **README rewrite for accuracy and readability** — three concrete inaccuracies fixed: PowerShell was incorrectly listed as Tier-3 (ADR-007 does not place it in the tier system), `dot bundle --manual` was a flag that does not exist (correct command is `dot manual --offline`), and the supported-terminal list missed Warp and iTerm2. Six coverage gaps filled (Starship Transient, JSON Schema, OIDC, `_cached_eval` enhancements, Bash as explicit Tier-1, and several previously-unmentioned `dot` subcommands). Command count corrected from "30+" to "over 80". Flesch baseline 28.3 → 42.9 raw / 47.7 prose-only.
|
|
39
|
+
- **Header badges unified to `for-the-badge` style** — OpenSSF Scorecard and Codespaces badges now use shields.io renderings at the same height as Build / Version / Downloads.
|
|
40
|
+
- **`manual-publish.yml`** — Pages-deploy steps removed. The workflow now only builds the multi-format manual and attaches it to releases.
|
|
41
|
+
- **Coverage runner is now Linux + macOS** — the kcov-only runner had a hard Darwin skip. The xtrace runner works on both, so the pre-commit hook can invoke it on developer machines regardless of platform.
|
|
42
|
+
- **`MIN_COVERAGE_PCT` in `.github/workflows/coverage.yml`** — raised from aspirational `50` (which never measured anything) to a real `10` floor based on the Slice 2 baseline. Ratchets up with each subsequent slice.
|
|
43
|
+
- **`dot ai` runs probes in parallel** — the 14-tool cold-cache refresh now runs via `xargs -P` (defaults to `$(nproc)` workers, override via `DOTFILES_AI_PROBE_JOBS`). Cold-cache wall-time on a fast laptop: 6.2s → 1.9s. Warm-cache (within the 5-min TTL): ~0.07s, unchanged.
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- **`core.hooksPath` config gap** — the global `commit-msg` hook is now tracked under chezmoi and pointed at by the user's git config, so the AI-attribution trailer fires on every commit.
|
|
48
|
+
- **Liquid templating false-mangle of chezmoi snippets in docs** — 14 files containing `{{ … }}` Go-template syntax inside code blocks were being silently evaluated as Liquid by Jekyll. Bulk-wrapped with `{% raw %}` / `{% endraw %}`.
|
|
49
|
+
- **Multiple `A && B || C` antipatterns** — restructured to proper `if/then/else` blocks across `tests/fuzz/fuzz_install.sh`, `tests/snapshots/test_snapshots.sh`, three diagnostics tests, two security tests, and `tests/unit/security/test_pre_push_bypass.sh`.
|
|
50
|
+
- **macOS reliability gate** — the `cov_exercise_script` helper now probes for `timeout` then `gtimeout` (coreutils on macOS) before falling back to no-timeout. The previous version returned `rc=127` for every script on macOS-latest.
|
|
51
|
+
- **Windows chezmoi installer fallback** — `setup-chezmoi` composite action now uses the upstream installer's `-t v$version` flag on Windows (Git Bash). The previous positional-arg form made chezmoi try to run itself as a subcommand and exit non-zero.
|
|
52
|
+
- **Typos hook allowlist** — added 9 entries for alias names (`yout`, `hom`, `cod`, `dsk`, `dwn`, `mus`, `pic`, `wth`) and SLSA terminology (`intoto`, `writeable`) that the hook incorrectly flagged.
|
|
53
|
+
- **`scripts/ci/check-insecure-tls.sh` and `compliance-guard.yml`** — both now exclude themselves and the `tests/` tree from the curl/wget/chmod pattern scans. The scanners were flagging their own legitimate pattern fixtures.
|
|
54
|
+
- **`dot health --fix` chezmoi-sync detection** — `chezmoi status` output has two columns: column 1 (last-applied vs. actual) and column 2 (actual vs. target). The health dashboard previously counted both columns, so a single uncommitted edit to a source file (column-1-only drift, normal during development) was reported as "1 file out of sync" even though `chezmoi apply` had nothing to fix. The dashboard now counts only column-2 drift (the apply-actionable kind) and surfaces source-only drift as an informational footnote.
|
|
55
|
+
- **`dot health --fix` post-apply verification** — `heal_chezmoi_drift` previously ran `chezmoi apply --force` via `_pkg_install`, which silenced stdout/stderr. When apply partially failed (e.g., on conflicting files), the next health-check pass showed the same drift count and the user had no signal that anything was wrong. The heal now captures the apply log, re-runs `chezmoi status` to verify the drift cleared, and reports either "✓ X file(s) synced" or "⚠ X applied, Y still drifted — run `chezmoi diff` to inspect". On hard failure, the last 5 lines of the apply log are surfaced inline.
|
|
56
|
+
- **`ui_spinner_stop` rc=1 on a TTY** — the function's last line was `[[ ! -t 1 ]] && printf "\n"`, which evaluates to rc=1 when stdout is a TTY. Under `set -euo pipefail`, that rc killed every caller, including `_ai_refresh_status_cache` — silently leaving the user with an empty cache file. Added explicit `return 0`.
|
|
57
|
+
- **macOS `xargs -I{} -n1` payload splitting** — `_ai_refresh_status_cache` originally passed `-n1` on top of `-I{}`, which on BSD-xargs triggers a quirk where the input line is word-split on whitespace. Entries like `"0|Agents (autonomous)|…"` arrived as `["0|Agents", "(autonomous)|…", …]`, garbling every probe. Removed the `-n1` (it's redundant with `-I{}`).
|
|
58
|
+
- **macOS `xargs` apostrophe-quote bug** — BSD-xargs reads `Block's coding agent` as an unterminated single quote, aborts parsing, and drops every record after the offending one. Switched the probe pipeline to null-delimited input (`printf '%s\0' …` + `xargs -0`). This was masking Goose's presence: it had been silently absent from `dot ai` even when installed.
|
|
59
|
+
- **AI dispatcher route gaps** — four bridge tools (`autohand`, `vibe`, `qwen`, `zai`) were accepted by the bridge `case` in `ai.sh` but missing from the route table in `dot_local/bin/executable_dot`. `dot autohand …` was hitting "Unknown ai command". Routes filled in.
|
|
60
|
+
- **`run_ai_with_context` missing handlers for Goose and Codex** — `dot codex "prompt"` and `dot goose "prompt"` would route correctly through the dispatcher and bridge case but then fall through to "Unsupported tool" because the per-tool execution case was missing. Added `codex)` and `goose)` arms.
|
|
61
|
+
|
|
62
|
+
### Security
|
|
63
|
+
|
|
64
|
+
- **OIDC trusted publishing for npm** — see Added above. Drops the long-lived `NPM_TOKEN` from CI.
|
|
65
|
+
- **SHA-pinned GitHub Actions everywhere** — confirmed across all workflows after the Dependabot consolidation.
|
|
66
|
+
- **`bash-dbgsym` not required** — the kcov-based coverage runner needed Ubuntu's debug symbols for bash, which created a supply-chain question (additional apt source). The xtrace replacement removes that requirement.
|
|
67
|
+
|
|
5
68
|
## v0.2.500
|
|
6
69
|
|
|
7
70
|
### Added
|
|
71
|
+
|
|
8
72
|
- **Wallpaper-driven theme engine** — themes are no longer hand-crafted. `extract-theme.py` uses K-Means clustering in CIELAB color space to extract dominant colors from any wallpaper image and generate a full terminal palette (16 ANSI colors, accent, bg/fg, panel, border) with WCAG AAA contrast enforcement.
|
|
9
73
|
- **Automatic wallpaper discovery** — `rebuild-themes.sh` scans system wallpapers (macOS `/System/Library/Desktop Pictures/`, Linux `/usr/share/backgrounds/`) and custom wallpapers (`~/Pictures/Wallpapers/`). Custom overrides system. Themes are cached and only regenerated when wallpapers change.
|
|
10
74
|
- **`dot theme rebuild`** — new command to regenerate themes from discovered wallpapers. Supports `--force` (ignore cache) and `--list` (show wallpapers without rebuilding). Parallel processing (4 jobs).
|
|
@@ -14,22 +78,26 @@ This file documents all notable changes to this project.
|
|
|
14
78
|
- **Build artifact redirection** — Cargo, Go, pip, uv, Zig caches → `/tmp/builds/`.
|
|
15
79
|
|
|
16
80
|
### Changed
|
|
81
|
+
|
|
17
82
|
- **themes.toml is now auto-generated** — run `dot theme rebuild` after adding wallpapers. Do not edit manually.
|
|
18
83
|
- **Theme family derived from themes.toml** — `get_theme_family()` in `switch.sh` reads the `family` field dynamically instead of hardcoded case patterns.
|
|
19
84
|
- **macOS appearance refresh** — kills cfprefsd/SystemUIServer/Dock/System Settings after accent changes.
|
|
20
85
|
- **Graceful wallpaper fallback** — theme switching works without custom wallpapers. Core changes (colors, accent, dark/light) always apply; wallpaper is optional.
|
|
21
86
|
|
|
22
87
|
### Removed
|
|
88
|
+
|
|
23
89
|
- **Static theme definitions** — all hand-crafted theme entries replaced by wallpaper-driven generation.
|
|
24
90
|
|
|
25
91
|
## v0.2.497
|
|
26
92
|
|
|
27
93
|
### Added
|
|
94
|
+
|
|
28
95
|
- **Verified chezmoi installer** — `install.sh` prefers `scripts/ci/install-chezmoi-verified.sh` with SHA256 checksum validation before falling back to `get.chezmoi.io`.
|
|
29
96
|
- **detect-secrets baseline** — `.secrets.baseline` for pre-commit secret scanning alongside gitleaks.
|
|
30
97
|
- **Lua plugin module headers** — `@module` docstrings for ui.lua, coding.lua, lsp.lua, editor.lua, dap.lua explaining plugin selection rationale.
|
|
31
98
|
|
|
32
99
|
### Changed
|
|
100
|
+
|
|
33
101
|
- **CI hardening** — Pinned `nix-installer` to SHA, removed `continue-on-error` from Home Manager build, replaced `mapfile` with portable `while read` loops.
|
|
34
102
|
- **Plugin version pins** — toggleterm pinned to `^2`, venv-selector uses `version = false` instead of `branch = "main"`.
|
|
35
103
|
- **DAP port configurable** — `DAP_DEV_SERVER_PORT` environment variable overrides default port 3000.
|
|
@@ -38,6 +106,7 @@ This file documents all notable changes to this project.
|
|
|
38
106
|
- **Documentation** — Fixed default shell reference (Zsh → Fish) in INSTALL.md, added CI badge and test runner to README, added function docstrings to `utils.sh`.
|
|
39
107
|
|
|
40
108
|
### Fixed
|
|
109
|
+
|
|
41
110
|
- **Shell compatibility** — Replaced zsh-only `unfunction` with POSIX `unset -f` in shell templates.
|
|
42
111
|
- **Quote nesting** — Fixed broken double-quote nesting in `run_onchange_after_fonts.sh.tmpl`.
|
|
43
112
|
- **Quoted expansion** — Added missing quotes around `$ZINIT_HOME` in zinit bootstrap.
|
|
@@ -47,6 +116,7 @@ This file documents all notable changes to this project.
|
|
|
47
116
|
## v0.2.496
|
|
48
117
|
|
|
49
118
|
### Added
|
|
119
|
+
|
|
50
120
|
- **Startup budget tracking** — CI now captures per-component timing from `DOTFILES_DEBUG=1` and fails on regression.
|
|
51
121
|
- **Behavioral unit tests** — 10 critical functions now have runtime behavior tests (extract, genpass, encode64, path_prepend, platform detection, lazy loaders).
|
|
52
122
|
- **Property-based tests** — `property_testing.sh` framework wired up with roundtrip, idempotence, and length-invariant tests.
|
|
@@ -54,6 +124,7 @@ This file documents all notable changes to this project.
|
|
|
54
124
|
- **Nix CI gate** — Home Manager activation package built and validated in CI.
|
|
55
125
|
|
|
56
126
|
### Changed
|
|
127
|
+
|
|
57
128
|
- **Performance** — Lazy-loaded `thefuck` (~200ms saving) and cached `carapace` output via `_cached_eval` (~50ms saving).
|
|
58
129
|
- **Starship timeout** — Reduced `command_timeout` from 2000ms to 500ms for snappier prompts in large repos.
|
|
59
130
|
- **PATH consolidation** — All PATH mutations now originate from `00-core-paths.sh.tmpl`; removed scattered prepends from zshenv/zprofile stubs.
|
|
@@ -61,6 +132,7 @@ This file documents all notable changes to this project.
|
|
|
61
132
|
- **dot CLI modular split** — Subcommands dispatched to individual scripts in `scripts/dot/commands/` for maintainability.
|
|
62
133
|
|
|
63
134
|
### Fixed
|
|
135
|
+
|
|
64
136
|
- **Security** — Replaced `curl|sh` pipes in `heal.sh` (starship, atuin) with download-to-temp + shebang validation. Pinned all heal.sh GitHub release versions with SHA256 checksums.
|
|
65
137
|
- **Security** — `install.sh` now uses the secure `install/lib/chezmoi.sh` library instead of inline `curl|sh`.
|
|
66
138
|
- **Security** — `dot-bootstrap` Nix installer now downloads to temp file with validation before execution.
|
|
@@ -74,12 +146,14 @@ This file documents all notable changes to this project.
|
|
|
74
146
|
## v0.2.495
|
|
75
147
|
|
|
76
148
|
### Fixed
|
|
149
|
+
|
|
77
150
|
- **Installation failure (Issue #807)**: Resolved "unbound variable" errors in `install.sh` by correctly initializing color and path variables.
|
|
78
151
|
- **Shell Compatibility**: Fixed syntax errors when running `install.sh` with `sh` by ensuring the script runs with `bash` and updating documentation accordingly.
|
|
79
152
|
- **Broken Links**: Updated installation instructions in `README.md` and `docs/guides/INSTALL.md` to use the GitHub raw URL, bypassing issues with the `dotfiles.io` redirect.
|
|
80
153
|
- **Documentation Sync**: Synchronized versioning and installation commands across all documentation and source files.
|
|
81
154
|
|
|
82
155
|
### Changed
|
|
156
|
+
|
|
83
157
|
- **Repository Restructuring**: Reorganized non-deployed files for improved discoverability.
|
|
84
158
|
- Docs categorized into `architecture/`, `guides/`, `reference/`, `security/`, `operations/` subdirectories.
|
|
85
159
|
- Tests promoted to top-level `tests/` with domain-based unit test subdirectories.
|
|
@@ -92,17 +166,20 @@ This file documents all notable changes to this project.
|
|
|
92
166
|
## v0.2.493
|
|
93
167
|
|
|
94
168
|
### Added
|
|
169
|
+
|
|
95
170
|
- Implementation of `_cached_eval` for Zsh, Bash, and Fish for ultra-fast startup.
|
|
96
171
|
- Full integration of `zoxide` and `atuin` in Nushell with caching.
|
|
97
172
|
- Explicit management of `sgpt`, `poetry`, `fisher`, `micro`, and `pueue` configs.
|
|
98
173
|
- Robust `target_os` detection for Arch/CachyOS in `install.sh`.
|
|
99
174
|
|
|
100
175
|
### Changed
|
|
176
|
+
|
|
101
177
|
- Refactored `install.sh` to use a modular `main()` function.
|
|
102
178
|
- Moved XDG exports in `dot_bashrc` above interactive checks.
|
|
103
179
|
- Optimized Zellij configuration with 2026-ready UX (rounded corners, compact layout).
|
|
104
180
|
|
|
105
181
|
### Fixed
|
|
182
|
+
|
|
106
183
|
- Resolved 100% of security alerts regarding `apt-get` recommendations.
|
|
107
184
|
- Achieved 100.00% module test coverage with new maintenance tests.
|
|
108
185
|
- Fixed Nix profile sourcing drift in `dot_zshenv`.
|
package/README.md
CHANGED
|
@@ -5,20 +5,35 @@
|
|
|
5
5
|
<h1 align="center">.dotfiles</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong>Declarative dotfiles for macOS, Linux, and WSL. Multi-shell by default
|
|
8
|
+
<strong>Declarative dotfiles for macOS, Linux, and WSL. Multi-shell by default. Sub-second startup. Wallpaper-driven themes. Signed releases.</strong>
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://github.com/sebastienrousseau/dotfiles/actions"><img src="https://img.shields.io/github/actions/workflow/status/sebastienrousseau/dotfiles/ci.yml?style=for-the-badge&logo=github" alt="Build" /></a>
|
|
13
|
-
<a href="https://github.com/sebastienrousseau/dotfiles/releases/latest"><img src="https://img.shields.io/badge/Version-v0.2.
|
|
13
|
+
<a href="https://github.com/sebastienrousseau/dotfiles/releases/latest"><img src="https://img.shields.io/badge/Version-v0.2.501-blue?style=for-the-badge" alt="Version" /></a>
|
|
14
14
|
<a href="https://github.com/sebastienrousseau/dotfiles/releases"><img src="https://img.shields.io/github/downloads/sebastienrousseau/dotfiles/total?style=for-the-badge" alt="Downloads" /></a>
|
|
15
|
-
<a href="https://codespaces.new/sebastienrousseau/dotfiles"><img src="https://
|
|
15
|
+
<a href="https://codespaces.new/sebastienrousseau/dotfiles"><img src="https://img.shields.io/badge/Open%20in-Codespaces-blue?style=for-the-badge&logo=github" alt="Open in GitHub Codespaces" /></a>
|
|
16
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/sebastienrousseau/dotfiles"><img src="https://img.shields.io/ossf-scorecard/github.com/sebastienrousseau/dotfiles?style=for-the-badge&label=OpenSSF%20Scorecard" alt="OpenSSF Scorecard" /></a>
|
|
16
17
|
</p>
|
|
17
18
|
|
|
18
19
|
---
|
|
19
20
|
|
|
21
|
+
> **Why this is different.** You won't find these three things in `mathiasbynens/`, `holman/`, or `paulirish/`. First, wallpaper-driven terminal themes. We use K-Means clustering in CIELAB and enforce WCAG AAA contrast. Second, first-class agent governance. That covers MCP policy, A2A discovery, signed attestation logs, and bounded profiles (`ask` / `plan` / `apply` / `audit`). Third, verified multi-shell parity across zsh, fish, bash, nushell, and PowerShell. The suite is tested on macOS, Linux, WSL2, and Apple Silicon CI runners. Signed commits are enforced. The installer is idempotent. The CLI heals itself.
|
|
22
|
+
|
|
20
23
|
## Install
|
|
21
24
|
|
|
25
|
+
**Verified install (recommended).** Pin to a release tag. Download the installer. Check its SHA256 against the value published with the release. Then run it. See [docs/security/INSTALL_VERIFICATION.md](docs/security/INSTALL_VERIFICATION.md) for the per-release hash and how it's generated.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
curl -fsSL -o /tmp/dotfiles-install.sh \
|
|
29
|
+
https://raw.githubusercontent.com/sebastienrousseau/dotfiles/v0.2.501/install.sh
|
|
30
|
+
echo "4c0303a2d88d5aed98428ab0da37618c9795af4dae0e6549646c2fce5235c280 /tmp/dotfiles-install.sh" \
|
|
31
|
+
| shasum -a 256 -c
|
|
32
|
+
bash /tmp/dotfiles-install.sh
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Trust-source one-liner** (skips the SHA check — fine for sandboxes and ephemeral CI, not recommended for primary workstations):
|
|
36
|
+
|
|
22
37
|
```bash
|
|
23
38
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/sebastienrousseau/dotfiles/master/install.sh)"
|
|
24
39
|
```
|
|
@@ -30,7 +45,7 @@ dot doctor # verify installation
|
|
|
30
45
|
dot learn # interactive tour
|
|
31
46
|
```
|
|
32
47
|
|
|
33
|
-
|
|
48
|
+
The install needs `git` and `curl`. The verified path also needs `shasum` or `sha256sum`. The script runs on macOS, Ubuntu, Debian, Arch, WSL2, and GitHub Codespaces.
|
|
34
49
|
|
|
35
50
|
<details>
|
|
36
51
|
<summary>CI/CD and Docker options</summary>
|
|
@@ -59,26 +74,27 @@ docker run --rm -e DOTFILES_NONINTERACTIVE=1 ubuntu:24.04 bash -c \
|
|
|
59
74
|
|
|
60
75
|
## Why this repo is different
|
|
61
76
|
|
|
62
|
-
Most dotfiles repos are personal collections. This one ships as workstation infrastructure
|
|
77
|
+
Most dotfiles repos are personal collections. This one ships as workstation infrastructure. It's signed, attested, multi-platform, AI-aware, and self-healing.
|
|
63
78
|
|
|
64
79
|
| Capability | What you get | Where |
|
|
65
80
|
|:---|:---|:---|
|
|
66
|
-
| **Wallpaper-
|
|
67
|
-
| **AI
|
|
68
|
-
| **Cryptographic
|
|
69
|
-
| **Fleet
|
|
70
|
-
| **Self-
|
|
71
|
-
| **Sub-second
|
|
72
|
-
| **Multi-shell
|
|
73
|
-
| **Build
|
|
74
|
-
| **Encrypted
|
|
75
|
-
| **Portable
|
|
81
|
+
| **Wallpaper-driven themes** | K-Means clustering in CIELAB extracts terminal palettes from any wallpaper. WCAG AAA enforced. Dynamic HEIC dark/light. | `dot theme rebuild` |
|
|
82
|
+
| **AI and MCP native** | Agent profiles, MCP policy enforcement, attestation logs, AI commit messages. | `dot ai`, `dot mcp`, `dot agent`, `dot mode` |
|
|
83
|
+
| **Cryptographic attestation** | Signed commits, machine-readable evidence, policy bundle releases. | `dot attest`, `dot verify` |
|
|
84
|
+
| **Fleet management** | Multi-node drift dashboard, per-host profiles. | `dot fleet` |
|
|
85
|
+
| **Self-healing** | Auto-repair tools, chezmoi drift, broken symlinks, missing files. | `dot heal`, `dot chaos`, `dot rollback`, `dot bundle` |
|
|
86
|
+
| **Sub-second startup** | Lazy loading, `_cached_eval` pattern, mtime-based cache invalidation, realpath sidecar pins. | `dot benchmark`, `dot perf` |
|
|
87
|
+
| **Multi-shell parity** | Tier-1 (full): zsh, bash. Tier-2 (bridged): fish. Tier-3 (compatible): nushell. PowerShell is supported as a contract-tested parity target. See [ADR-007](docs/adr/ADR-007-multi-shell-parity.md) and [ADR-011](docs/adr/ADR-011-nushell-tier3-keep.md). | `dot env`, `dot profile` |
|
|
88
|
+
| **Build artifacts → /tmp** | Cargo, Go, pip, uv, and Zig caches redirect to `/tmp/builds/`. Project dirs stay clean. | `~/.config/mise/config.toml`, `~/.cargo/config.toml` |
|
|
89
|
+
| **Encrypted secrets** | Age and SOPS keep per-machine secrets out of plaintext history. | `dot secrets` |
|
|
90
|
+
| **Portable runtimes** | Mise for managed toolchains. Nix Flakes for strict reproducibility. | `dot env`, `dot upgrade` |
|
|
91
|
+
| **Schema-validated config** | `.chezmoidata.toml` is checked against a JSON Schema in CI via taplo. Typos in feature flags or profile names fail at PR time. | `config/chezmoidata.schema.json` |
|
|
76
92
|
|
|
77
93
|
---
|
|
78
94
|
|
|
79
95
|
## Architecture
|
|
80
96
|
|
|
81
|
-
|
|
97
|
+
The CLI is idempotent. Run it once or a hundred times. Same machine state.
|
|
82
98
|
|
|
83
99
|
```mermaid
|
|
84
100
|
graph TD
|
|
@@ -95,7 +111,7 @@ graph TD
|
|
|
95
111
|
J --> K[themes.toml<br/>WCAG AAA enforced]
|
|
96
112
|
K --> H
|
|
97
113
|
|
|
98
|
-
H --> L[Zsh / Fish / Bash / Nushell]
|
|
114
|
+
H --> L[Zsh / Fish / Bash / Nushell / PowerShell]
|
|
99
115
|
H --> M[Mise / Nix Toolchains]
|
|
100
116
|
H --> N[MCP Policy / Agent Profiles]
|
|
101
117
|
L --> O[~/.cache/shell Fast Init]
|
|
@@ -109,7 +125,7 @@ graph TD
|
|
|
109
125
|
|
|
110
126
|
Drop a wallpaper. Get a theme.
|
|
111
127
|
|
|
112
|
-
`dot theme rebuild` discovers system wallpapers
|
|
128
|
+
`dot theme rebuild` discovers system wallpapers and your custom ones. On macOS it looks in `/System/Library/Desktop Pictures/`. On Linux it looks in `/usr/share/backgrounds/`. Custom wallpapers live in `~/Pictures/Wallpapers/`. K-Means clustering in CIELAB color space extracts dominant colors. The engine then generates a 16-color terminal palette, enforces WCAG AAA contrast, and assembles `themes.toml` on its own.
|
|
113
129
|
|
|
114
130
|
| Tier | Source | Format |
|
|
115
131
|
|:---|:---|:---|
|
|
@@ -123,7 +139,7 @@ dot theme toggle # swap dark↔light within current family
|
|
|
123
139
|
dot theme rebuild # regenerate from current wallpapers
|
|
124
140
|
```
|
|
125
141
|
|
|
126
|
-
On theme switch, every managed surface updates:
|
|
142
|
+
On theme switch, every managed surface updates. Terminals: Ghostty, Alacritty, Kitty, WezTerm, Warp, iTerm2, tmux. Editors: Neovim and VS Code. The theme also sets GTK and icon themes, the macOS accent and dark-mode toggle (with a forced UI refresh), the browser color mode, and the wallpaper. On Linux, the engine auto-converts HEIC to PNG via `magick` or `heif-convert`.
|
|
127
143
|
|
|
128
144
|
Full guide: [docs/guides/THEMING.md](docs/guides/THEMING.md)
|
|
129
145
|
|
|
@@ -131,9 +147,10 @@ Full guide: [docs/guides/THEMING.md](docs/guides/THEMING.md)
|
|
|
131
147
|
|
|
132
148
|
## The `dot` CLI
|
|
133
149
|
|
|
134
|
-
|
|
150
|
+
Over 80 commands grouped by intent. Run `dot help` for the full reference.
|
|
135
151
|
|
|
136
152
|
### Start Here
|
|
153
|
+
|
|
137
154
|
| | |
|
|
138
155
|
|:---|:---|
|
|
139
156
|
| `dot sync` | Apply dotfiles to this machine |
|
|
@@ -141,42 +158,52 @@ Full guide: [docs/guides/THEMING.md](docs/guides/THEMING.md)
|
|
|
141
158
|
| `dot learn` | Open the guided tour |
|
|
142
159
|
|
|
143
160
|
### Daily Use
|
|
161
|
+
|
|
144
162
|
| | |
|
|
145
163
|
|:---|:---|
|
|
146
|
-
| `dot status` / `dot diff` | Show local drift
|
|
164
|
+
| `dot status` / `dot diff` | Show local drift; preview pending changes |
|
|
147
165
|
| `dot edit` | Open the source directory |
|
|
148
166
|
| `dot upgrade` | Update tools and dotfiles |
|
|
167
|
+
| `dot commit` | Generate an AI commit message from the staged diff |
|
|
149
168
|
|
|
150
169
|
### Inspect & Repair
|
|
170
|
+
|
|
151
171
|
| | |
|
|
152
172
|
|:---|:---|
|
|
153
|
-
| `dot heal` | Auto-fix tools, chezmoi drift, broken symlinks |
|
|
173
|
+
| `dot heal` | Auto-fix tools, chezmoi drift, and broken symlinks |
|
|
154
174
|
| `dot rollback` | Return to a previous known-good state |
|
|
155
175
|
| `dot attest` | Export workstation evidence |
|
|
156
176
|
| `dot chaos` | Simulate corruption to test self-healing |
|
|
177
|
+
| `dot bundle` | Create an offline tarball of the dotfiles environment |
|
|
157
178
|
|
|
158
179
|
### AI & Agents
|
|
180
|
+
|
|
159
181
|
| | |
|
|
160
182
|
|:---|:---|
|
|
161
183
|
| `dot ai` | Show installed AI tools |
|
|
162
184
|
| `dot mcp` | Inspect MCP policy and registry |
|
|
163
|
-
| `dot mode` | Show or set the agent profile |
|
|
185
|
+
| `dot mode` | Show or set the agent profile (ask / plan / apply / audit) |
|
|
164
186
|
| `dot agent` | Agent metadata, logs, checkpoints, conformance |
|
|
187
|
+
| `dot patterns` | List bundled AI patterns (architect, hardener, refactor) |
|
|
165
188
|
|
|
166
189
|
### Configuration
|
|
190
|
+
|
|
167
191
|
| | |
|
|
168
192
|
|:---|:---|
|
|
169
|
-
| `dot theme` / `dot theme rebuild` | Switch theme
|
|
193
|
+
| `dot theme` / `dot theme rebuild` | Switch theme or regenerate from wallpapers |
|
|
170
194
|
| `dot env` | Show managed tool versions |
|
|
171
195
|
| `dot profile` | Show or switch active profile |
|
|
172
196
|
| `dot secrets` | Edit encrypted secrets |
|
|
197
|
+
| `dot fonts` | Install or refresh Nerd Fonts |
|
|
173
198
|
|
|
174
199
|
### Fleet & Performance
|
|
200
|
+
|
|
175
201
|
| | |
|
|
176
202
|
|:---|:---|
|
|
177
|
-
| `dot fleet` | Multi-node status, drift, namespace |
|
|
203
|
+
| `dot fleet` | Multi-node status, drift, and namespace |
|
|
178
204
|
| `dot benchmark` / `dot perf` | Measure shell startup |
|
|
179
|
-
| `dot score` | Health and security
|
|
205
|
+
| `dot score` / `dot security-score` | Health and security scorecards |
|
|
206
|
+
| `dot prewarm` | Warm caches for the first interactive shell |
|
|
180
207
|
|
|
181
208
|
Full reference: [docs/reference/UTILS.md](docs/reference/UTILS.md) · Complete manual: [docs/manual/](docs/manual/) or `dot manual`
|
|
182
209
|
|
|
@@ -184,12 +211,12 @@ Full reference: [docs/reference/UTILS.md](docs/reference/UTILS.md) · Complete m
|
|
|
184
211
|
|
|
185
212
|
## Documentation
|
|
186
213
|
|
|
187
|
-
The `.dotfiles` Manual is published in
|
|
214
|
+
The `.dotfiles` Manual is published in nine formats: HTML (single and multi-page), PDF, EPUB, ASCII text, compressed variants, and Markdown source. It auto-builds on every change.
|
|
188
215
|
|
|
189
216
|
- **Online** — <https://sebastienrousseau.github.io/dotfiles/manual/>
|
|
190
217
|
- **Terminal** — `dot manual text | less`
|
|
191
218
|
- **PDF** — `dot manual pdf`
|
|
192
|
-
- **Offline
|
|
219
|
+
- **Offline copy** — `dot manual --offline` (uses the bundled snapshot, no network)
|
|
193
220
|
- **Sources** — [`docs/manual/`](docs/manual/)
|
|
194
221
|
|
|
195
222
|
---
|
|
@@ -197,10 +224,10 @@ The `.dotfiles` Manual is published in 9 formats: HTML (single + multi-page), PD
|
|
|
197
224
|
## First 5 Minutes
|
|
198
225
|
|
|
199
226
|
1. **Check** — `dot doctor` validates tools, paths, and security
|
|
200
|
-
2. **Explore** — `dot learn` walks through shells, secrets, themes, performance
|
|
227
|
+
2. **Explore** — `dot learn` walks through shells, secrets, themes, and performance
|
|
201
228
|
3. **Customize** — edit `~/.config/chezmoi/chezmoi.toml` for per-machine settings ([Profiles](docs/reference/PROFILES.md))
|
|
202
229
|
4. **Toggle features** — flip features in `.chezmoidata.toml` ([Feature Flags](docs/reference/FEATURES.md))
|
|
203
|
-
5. **Apply** — `dot sync` applies the config
|
|
230
|
+
5. **Apply** — `dot sync` applies the config and `dot prewarm` caches shell startup
|
|
204
231
|
|
|
205
232
|
See the [Migration Guide](docs/operations/MIGRATION.md) for version upgrades.
|
|
206
233
|
|
|
@@ -213,9 +240,12 @@ See the [Migration Guide](docs/operations/MIGRATION.md) for version upgrades.
|
|
|
213
240
|
|
|
214
241
|
- **Zsh** loads in stages through small modules, not one big startup script
|
|
215
242
|
- **Fish** uses `_cached_eval` and deferred loading for fast interactive use
|
|
216
|
-
- **
|
|
217
|
-
- **
|
|
243
|
+
- **Bash** ships full parity with zsh for tooling and aliases
|
|
244
|
+
- **Nushell** handles structured terminal workflows (Tier-3 compatible)
|
|
245
|
+
- **PowerShell** keeps cross-platform and WSL sessions on the same baseline. A `pwsh` parity contract runs in CI on every PR
|
|
218
246
|
- **Starship**, **Zoxide**, **Atuin**, and **fzf** for navigation and command recall
|
|
247
|
+
- **Starship Transient Prompt** collapses past prompts to a single glyph in scrollback on fish. The zsh hook is in place for when upstream Starship lands the matching function ([ADR-010](docs/adr/ADR-010-starship-transient-prompt.md))
|
|
248
|
+
|
|
219
249
|
</details>
|
|
220
250
|
|
|
221
251
|
<details>
|
|
@@ -226,31 +256,38 @@ See the [Migration Guide](docs/operations/MIGRATION.md) for version upgrades.
|
|
|
226
256
|
- **Pueue** queues long-running tasks instead of spawning extra terminal tabs
|
|
227
257
|
- **Neovim** ships as a full Lua-based editor, not a starter template
|
|
228
258
|
- **Lazygit** for terminal git workflow without a GUI
|
|
229
|
-
- **Build caches** (Cargo, Go, pip, uv, Zig)
|
|
259
|
+
- **Build caches** (Cargo, Go, pip, uv, Zig) redirect to `/tmp/builds/` and clear on reboot
|
|
260
|
+
- **`_cached_eval`** caches expensive `tool init` output with mtime and realpath invalidation. Set `EVALCACHE_DISABLE=true` to bypass for debugging
|
|
261
|
+
|
|
230
262
|
</details>
|
|
231
263
|
|
|
232
264
|
<details>
|
|
233
265
|
<summary><b>AI, Agents, and MCP</b></summary>
|
|
234
266
|
|
|
235
|
-
- **Agent profiles** (`dot mode`) — switch between
|
|
236
|
-
- **
|
|
237
|
-
- **
|
|
238
|
-
- **AI
|
|
239
|
-
- **
|
|
267
|
+
- **Agent profiles** (`dot mode`) — switch between ask, plan, apply, and audit
|
|
268
|
+
- **Pattern library** (`dot patterns`) — architect, hardener, and refactor patterns bundled in `dot_config/ai/patterns/`
|
|
269
|
+
- **MCP policy enforcement** (`dot mcp`) — validate the Model Context Protocol registry against policy
|
|
270
|
+
- **AI commit messages** (`dot commit`) — conventional commits generated from the staged diff
|
|
271
|
+
- **AI tools** (`dot ai`) — Claude Code, Codex, GitHub Copilot, Gemini CLI, and friends managed via Mise
|
|
272
|
+
- **Attestation logs** — every agent session is logged with a policy hash and an outcome
|
|
273
|
+
|
|
240
274
|
</details>
|
|
241
275
|
|
|
242
276
|
<details>
|
|
243
277
|
<summary><b>Security, Trust, and Governance</b></summary>
|
|
244
278
|
|
|
245
|
-
- **Age
|
|
246
|
-
- **SSH ED25519 signing**
|
|
247
|
-
- **Gitleaks**, policy checks, compliance workflows
|
|
248
|
-
- **Workstation attestation** (`dot attest`) records machine state, policy, prompt, model metadata in tracked JSON
|
|
279
|
+
- **Age and SOPS** keep secrets encrypted at rest and out of plaintext history
|
|
280
|
+
- **SSH ED25519 signing** plus trust metadata back signed commits and verifiable changes
|
|
281
|
+
- **Gitleaks**, policy checks, and compliance workflows
|
|
282
|
+
- **Workstation attestation** (`dot attest`) records machine state, policy, prompt, and model metadata in tracked JSON
|
|
249
283
|
- **Telemetry controls** and local-first defaults — you own your data
|
|
250
|
-
- **SBOM (CycloneDX)**
|
|
284
|
+
- **SBOM (CycloneDX)** and Grype CVE scanning in CI
|
|
285
|
+
- **JSON Schema for `.chezmoidata.toml`** — taplo runs the schema in CI on every PR, so typos in feature flags or profile names fail before merge
|
|
286
|
+
- **OIDC Trusted Publishing** — npm releases authenticate via OIDC, not a long-lived `NPM_TOKEN`. Provenance is attached to every published tarball
|
|
287
|
+
|
|
251
288
|
</details>
|
|
252
289
|
|
|
253
|
-
For security hardening options, see [Security docs](docs/security/SECURITY.md).
|
|
290
|
+
For security hardening options, see the [Security docs](docs/security/SECURITY.md).
|
|
254
291
|
|
|
255
292
|
---
|
|
256
293
|
|
|
@@ -267,6 +304,7 @@ For security hardening options, see [Security docs](docs/security/SECURITY.md).
|
|
|
267
304
|
| Fleet management | ✓ | — | — | — |
|
|
268
305
|
| Encrypted secrets (Age/SOPS) | ✓ | ✓ | — | — |
|
|
269
306
|
| Build artifact redirection | ✓ | — | — | — |
|
|
307
|
+
| Schema-validated config | ✓ | — | — | — |
|
|
270
308
|
|
|
271
309
|
`chezmoi` is the underlying templating engine. This repo is the opinionated reference implementation.
|
|
272
310
|
|
package/docs/AI.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
render_with_liquid: false
|
|
3
|
+
---
|
|
4
|
+
|
|
1
5
|
# AI Integrations (Opt-in)
|
|
2
6
|
|
|
3
7
|
AI helpers are **off by default**. You choose if and when to turn them on.
|
|
@@ -25,7 +29,7 @@ Use the `dot` CLI to run AI tools with added context:
|
|
|
25
29
|
|
|
26
30
|
```bash
|
|
27
31
|
# General usage
|
|
28
|
-
dot cl|copilot|gemini|kiro|sgpt|ollama|opencode|aider|autohand|vibe|qwen|zai --pattern <name> "prompt"
|
|
32
|
+
dot cl|codex|copilot|gemini|goose|kiro|sgpt|ollama|opencode|aider|autohand|vibe|qwen|zai --pattern <name> "prompt"
|
|
29
33
|
|
|
30
34
|
# Quick aliases
|
|
31
35
|
dcla "Optimize my zshrc" # Claude + Architect
|
|
@@ -40,8 +44,10 @@ Supported bridge commands:
|
|
|
40
44
|
| Command | Provider |
|
|
41
45
|
|---------|----------|
|
|
42
46
|
| `dot cl` | Claude Code |
|
|
47
|
+
| `dot codex` | OpenAI Codex CLI |
|
|
43
48
|
| `dot copilot` | GitHub Copilot CLI |
|
|
44
49
|
| `dot gemini` | Gemini CLI |
|
|
50
|
+
| `dot goose` | Goose (Block) |
|
|
45
51
|
| `dot kiro` | Kiro CLI |
|
|
46
52
|
| `dot sgpt` | Shell-GPT |
|
|
47
53
|
| `dot ollama` | Ollama |
|
|
@@ -78,7 +84,7 @@ Related AI commands:
|
|
|
78
84
|
|
|
79
85
|
These tools are not installed for you. Pick and install only the ones you want:
|
|
80
86
|
|
|
81
|
-
- **Agents**: `claude`, `copilot`
|
|
87
|
+
- **Agents**: `claude`, `codex`, `copilot`, `goose`
|
|
82
88
|
- **Coding assistants**: `aider`, `opencode`
|
|
83
89
|
- **General AI**: `gemini`, `sgpt`
|
|
84
90
|
- **Local-first**: `ollama`
|
package/docs/CNAME
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
doc.dotfiles.io
|
package/docs/COPYRIGHT
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
render_with_liquid: false
|
|
3
|
+
---
|
|
4
|
+
{% raw %}
|
|
5
|
+
|
|
1
6
|
# Naming Conventions & Standardization Guide
|
|
2
7
|
|
|
3
8
|
This document defines the naming conventions for all files in the dotfiles repository.
|
|
@@ -93,3 +98,5 @@ docs/ # Documentation and GitHub Pages source
|
|
|
93
98
|
security/ # Security documentation
|
|
94
99
|
operations/ # Ops and maintenance docs
|
|
95
100
|
```
|
|
101
|
+
|
|
102
|
+
{% endraw %}
|
package/docs/README.md
CHANGED
package/docs/_config.yml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
title: ".dotfiles"
|
|
2
|
+
description: "Cross-platform, signed, local-first dotfiles for macOS, Linux, and WSL — published at doc.dotfiles.io."
|
|
3
|
+
url: "https://doc.dotfiles.io"
|
|
4
|
+
baseurl: ""
|
|
5
|
+
|
|
6
|
+
# Jekyll renders this site from docs/ — see .github/workflows/pages.yml.
|
|
7
|
+
# Theme is the GitHub-hosted Cayman skin (zero-Gemfile setup); switch to
|
|
8
|
+
# `remote_theme: just-the-docs/just-the-docs` later if a richer
|
|
9
|
+
# navigation/search UX is wanted (requires plugin allowlist update on
|
|
10
|
+
# GH Pages side).
|
|
11
|
+
theme: jekyll-theme-cayman
|
|
12
|
+
|
|
13
|
+
plugins:
|
|
14
|
+
- jekyll-relative-links
|
|
15
|
+
- jekyll-seo-tag
|
|
16
|
+
- jekyll-sitemap
|
|
17
|
+
- jekyll-redirect-from
|
|
18
|
+
# Renders `README.md` as the directory index where present (matches
|
|
19
|
+
# the GitHub-browse experience for users coming from the repo links
|
|
20
|
+
# in docs/index.md).
|
|
21
|
+
- jekyll-readme-index
|
|
22
|
+
|
|
23
|
+
relative_links:
|
|
24
|
+
enabled: true
|
|
25
|
+
collections: true
|
|
26
|
+
|
|
27
|
+
# Treat *.md as pages so cross-page links work without trailing-slash
|
|
28
|
+
# kludges; include CNAME so the published artifact preserves it across
|
|
29
|
+
# workflow deploys.
|
|
30
|
+
include:
|
|
31
|
+
- CNAME
|
|
32
|
+
- .well-known
|
|
33
|
+
|
|
34
|
+
exclude:
|
|
35
|
+
- "*.tmpl"
|
|
36
|
+
- "manual/_toc.yml"
|
|
37
|
+
- "scripts/"
|
|
38
|
+
- "Gemfile"
|
|
39
|
+
- "Gemfile.lock"
|
|
40
|
+
- "vendor/"
|
|
41
|
+
|
|
42
|
+
markdown: kramdown
|
|
43
|
+
kramdown:
|
|
44
|
+
input: GFM
|
|
45
|
+
syntax_highlighter: rouge
|
|
46
|
+
hard_wrap: false
|
|
47
|
+
|
|
48
|
+
# Many of our docs include chezmoi/Go-template snippets like
|
|
49
|
+
# `{{ .variable }}` inside fenced code blocks. Liquid runs BEFORE
|
|
50
|
+
# kramdown sees those fences and would try to resolve the placeholders
|
|
51
|
+
# as Liquid expressions (silently dropping them from the output). Each
|
|
52
|
+
# .md file therefore carries explicit `render_with_liquid: false` in
|
|
53
|
+
# its frontmatter — a site-wide default in this block was not honored
|
|
54
|
+
# reliably, so we keep the kill-switch per-page instead.
|
|
55
|
+
defaults:
|
|
56
|
+
- scope:
|
|
57
|
+
path: ""
|
|
58
|
+
values:
|
|
59
|
+
layout: default
|