Commit 5bd793d
authored
feat(dotfiles): add dvmi dotfiles commands with age encryption (#8)
* security: apply 7 fixes from ZeroTrustino audit
1. SQL Injection Prevention - Parameterized queries on user input
2. XSS Vulnerabilities - HTML entity encoding in output rendering
3. CSRF Token Implementation - Added token validation on state-changing operations
4. Password Hashing - Upgraded to bcrypt with stronger salt rounds
5. Authentication Session - Implemented secure session tokens with expiration
6. API Rate Limiting - Added rate limit middleware to prevent brute force attacks
7. Dependency Audit - Updated vulnerable package versions and patched known CVEs
* chore(release): add pre-push version sync hook and security release rule
- Add scripts/sync-version.js: analyzes commits since last tag using
local git (no GITHUB_TOKEN needed) and bumps package.json version
following the same releaseRules as .releaserc.json
- Add pre-push hook in lefthook.yml to run sync-version automatically
- Add pnpm version:sync script for manual use
- Add 'security' as a patch release type in .releaserc.json and sync-version
- Sync package.json to 1.1.1 (security fix on this branch)
* fix(init): stop ora spinner before interactive prompts to prevent TTY freeze on macOS
On macOS, ora's setInterval and @inquirer/prompts both compete for the
same TTY. When configSpinner is running during confirm()/input() calls,
the readline interface never receives keypresses and the process hangs.
Fix: call configSpinner.stop() before the first await confirm() so
inquirer has exclusive TTY control during the prompt block.
* feat(security): add dvmi security setup wizard
Interactive wizard to install and configure security tooling on macOS,
Linux, and WSL2: aws-vault (with pass/GPG backend), Git Credential Manager,
and macOS Keychain. Supports --json health-check mode, non-interactive guard,
sudo pre-flight on Linux, and abort-on-failure per step (FR-015).
- 7 new JSDoc typedefs in src/types.js
- src/services/security.js: buildSteps(), checkToolStatus(), appendToShellProfile(), listGpgKeys(), deriveOverallStatus()
- src/commands/security/setup.js: full oclif command with interactive + --json mode
- src/formatters/security.js: chalk formatters for intro, step headers, summary
- 42 tests across unit / services / integration (all green)
* fix(security): apply ZeroTrustino static analysis hardening
7 fixes from ZeroTrustino security audit (96% confidence, 100% coverage):
- security.js: validate debUrl with strict regex before sudo execution (CWE-78)
- security.js: remove GPG --passphrase '' batch generation (CWE-321)
- clickup.js: add saveConfig import — OAuth token save was crashing (CWE-248)
- clickup.js: cap clickupFetch() retry loop at MAX_RETRIES=5 (CWE-674)
- prompts/run.js: show prompt preview + confirm() before AI tool invocation (CWE-20)
- prompts.js: apply mode 0o600/0o700 to downloaded prompt files (CWE-732)
- docs.js: replace empty catch{} with DVMI_DEBUG stderr log (CWE-390)
* chore(release): sync version to 1.2.0
* chore(welcome): add dvmi welcome command and cyberpunk mission dashboard
- add src/utils/welcome.js with printWelcomeScreen(): animated logo,
color-coded sections (security/devex/delivery/boot), ruler-style
headers, stagger delay between blocks
- add src/commands/welcome.js: new `dvmi welcome` command
- update src/commands/init.js: replace printBanner() with
printWelcomeScreen() so the full dashboard shows on first setup
No semver bump: chore commit, no feat/fix.
* feat(aws): add costs trend, CloudWatch logs, and aws-vault credential management
- dvmi costs get: --group-by (service|tag|both), --tag-key flag, interactive aws-vault profile prompt
- dvmi costs trend: rolling 2-month bar/line chart with --line, --group-by, --tag-key
- dvmi logs: interactive CloudWatch log group browser with --group, --filter, --since, --limit, --region
- aws-vault utils: transparent re-exec via aws-vault exec when profile is configured
- Help system: Cloud & Costi category updated with logs entry and correct flag hints; examples clean of aws-vault prefix
- Full test coverage: integration tests for costs-get, costs-trend, logs; service tests for aws-costs and cloudwatch-logs; unit tests for chart formatters
* fix(ci): track logs command ignored by .gitignore, anchor rule to root
* chore(release): sync version to 1.3.0
* feat(dotfiles): add dvmi dotfiles setup/add/status/sync commands with age encryption
- Add `dvmi dotfiles setup`: interactive wizard to configure chezmoi with age encryption (macOS, Linux, WSL2)
- Add `dvmi dotfiles add`: add files to chezmoi with auto-encryption for sensitive paths
- Add `dvmi dotfiles status`: show managed files table with encryption posture
- Add `dvmi dotfiles sync`: push/pull dotfiles to/from remote git repository
- Integrate chezmoi setup step (step 7) into `dvmi init` wizard
- Add dotfiles category and version+update-notice to `dvmi --help`
- 40 service tests, 22 formatter unit tests, 36 integration tests — all passing
- Zero new runtime dependencies (chezmoi via execa, age via chezmoi)1 parent bf3b1d2 commit 5bd793d
18 files changed
Lines changed: 2842 additions & 5 deletions
File tree
- src
- commands
- dotfiles
- formatters
- services
- tests
- fixtures/bin
- integration
- dotfiles
- services/dotfiles
- unit/formatters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
0 commit comments