feat: split dot dispatcher into dots, sec, tok#381
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Split the monolithic dot-dispatcher.zsh (4,395 lines) into three focused dispatchers: - dots (~1,600 lines) - dotfile management - sec (~1,500 lines) - secret management - tok (~1,300 lines) - token management Each dispatcher gets its own completion file and doctor subcommand. Clean break with no deprecated aliases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Delete old dot-dispatcher.zsh and _dot completion - Rename shared helpers: _dot_* → _dotf_* in dotfile-helpers.zsh - Rename keychain helpers: _dot_kc_* → _dotf_kc_* in keychain-helpers.zsh - Rename core functions: _dot_secret_backend → _dotf_secret_backend etc - Rename doctor integration: _dot_doctor → _dots_doctor_integration - Update all callers in doctor.zsh, dash.zsh, work.zsh, secret-tutorial.zsh - Update help-compliance.zsh dispatcher registry (dot → dots/sec/tok) - Update user-facing command strings (dot token → tok, dot secret → sec) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename _dot_* function references to _dotf_*, _dots_*, _sec_*, _tok_* across all 25 test files. Update command invocations from `dot` to the appropriate new dispatcher (dots/sec/tok). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update 15 documentation files to replace `dot` command references with the new dispatcher names (dots/sec/tok). Updates include: - MASTER-DISPATCHER-GUIDE.md: split into 3 dispatcher sections - QUICK-REFERENCE.md: 3 new command sections - DOTFILE-MANAGEMENT.md, DOT-WORKFLOW.md: dots commands - TOKEN-MANAGEMENT-COMPLETE.md, REFCARD-TOKEN-SECRETS.md: tok/sec - CLAUDE.md: 15 dispatchers, updated command table - mkdocs.yml, index.md, tutorials, installation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- e2e-dispatcher-split.zsh: 66 automated tests covering all 3 dispatchers (dots/sec/tok), function existence, old function removal, shared helpers, files, and completions - dogfood-dispatcher-split.zsh: interactive dogfooding with real-world command execution and user confirmation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The dots help now uses "MOST COMMON" and "IGNORE & HEALTH" headings instead of "COMMON COMMANDS", "IGNORE PATTERNS", "REPOSITORY HEALTH". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create MIGRATION-DOT-SPLIT.md with command mapping tables - Update mkdocs.yml nav with migration guide entry - Fix stale dot references in TROUBLESHOOTING, REFCARD-DOT-SAFETY, API-DOT-SAFETY, MASTER-API-REFERENCE, DOCTOR-TOKEN-USER-GUIDE Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rewrite _sec_help and _tok_help with required sections: MOST COMMON, QUICK EXAMPLES, categorized, TIP, See also - Fix dots help: move RELATED into See also (TIP must follow last category) - Update automated-plugin-dogfood.zsh: dot → dots/sec/tok in dispatcher list - Update test-help-compliance-dogfood.zsh: dot → dots/sec/tok (14 dispatchers) Full suite: 45 passed, 0 failed, 1 expected timeout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comprehensive sweep of 17 files replacing stale `dot` dispatcher references with the new `dots`, `sec`, and `tok` commands across README, CHANGELOG, guides, tutorials, architecture docs, and fixtures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Runtime function calls, user-facing messages, help text, and the interactive tutorial all still referenced the removed dot() function. Updated tok-dispatcher (13 calls), g-dispatcher (6), work.zsh (3), flow.zsh (1), keychain-helpers (~30 messages), secret-tutorial (~35 references), and dotfile-helpers comments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updated 7 test files and 5 internal docs to use dots/sec/tok instead of the removed dot dispatcher. Preserves --dot flags and historical migration references intentionally. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename _dot_token_expiring → _tok_expiring and _dot_token_rotate → _tok_rotate across 4 doc files (19 occurrences) - Remove incorrect bw/mise dependencies from dots-dispatcher.zsh header - Revert CHANGELOG historical entries to original `dot` command names (only [Unreleased] uses new dots/sec/tok names) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
dotdispatcher (4,395 lines) into 3 focused dispatchers:dots— Dotfile management (chezmoi, edit, sync, push/pull)sec— Secret management (Keychain, Bitwarden)tok— Token management (GitHub, NPM, PyPI wizards, rotation)docs/guides/MIGRATION-DOT-SPLIT.md--dotflags anddoctor --dotChanges
dot-dispatcher.zsh→dots-,sec-,tok-dispatcher.zshdot secret/dot tokencalls →sec/tok_dot→_dots, new_sec,_tokTest plan
source flow.plugin.zshloads cleanly🤖 Generated with Claude Code