Skip to content

feat(sync-config-ai): AI config sync TUI command (spec 007)#12

Merged
savez merged 6 commits intomainfrom
007-sync-ai-config-tui
Apr 1, 2026
Merged

feat(sync-config-ai): AI config sync TUI command (spec 007)#12
savez merged 6 commits intomainfrom
007-sync-ai-config-tui

Conversation

@savez
Copy link
Copy Markdown
Owner

@savez savez commented Apr 1, 2026

Summary

  • Adds dvmi sync-config-ai — a full-screen interactive TUI for managing AI coding tool configurations across VS Code Copilot, Claude Code, OpenCode, Gemini CLI, and GitHub Copilot CLI
  • 5-tab layout: Environments (read-only scan results) + dedicated tab per category type (MCPs | Commands | Skills | Agents), each showing only its own entries
  • Inline forms with type-specific fields, multi-line mini-editor for content, and an Environments multi-select filtered by compatibility matrix (e.g. Gemini CLI excluded from Skills/Agents)
  • OpenCode global detection via ~/.config/opencode/ (in addition to project-level paths)
  • Full CRUD with immediate deployment to target environment config files; entries refresh after every action
  • Chezmoi auto-sync after mutations; setup tip in footer if not configured
  • --json flag for non-interactive / CI use

What's included

Area Files
Command src/commands/sync-config-ai/index.js
Services ai-config-store.js, ai-env-scanner.js, ai-env-deployer.js
TUI src/utils/tui/tab-tui.js, src/utils/tui/form.js
Formatter src/formatters/ai-config.js
Tests unit + service + integration + snapshot

Test plan

  • pnpm lint — no errors
  • pnpm test — 721 tests pass, 13 skipped (all 66 test files green)
  • dvmi sync-config-ai --json — outputs valid JSON with environments + categories
  • dvmi sync-config-ai --help — discoverable via manifest
  • Manual: 5 tabs visible, Tab key switches tabs (navigates fields inside forms), per-category entries shown per tab, Environments multi-select filtered by compatibility

savez and others added 2 commits April 1, 2026 10:57
Introduces `dvmi sync-config-ai` — an interactive full-screen TUI for
managing AI coding tool configurations (MCP servers, commands, skills,
agents) across VS Code Copilot, Claude Code, OpenCode, Gemini CLI, and
GitHub Copilot CLI from a single place.

Key capabilities:
- Filesystem scan on every launch detects installed AI tools (project +
  global paths, including ~/.config/opencode/ for globally installed OpenCode)
- 5-tab TUI: Environments (read-only) + dedicated tab per category type
  (MCPs | Commands | Skills | Agents) — each tab shows only its entries
- Inline forms with type-specific fields and a mini text editor for
  multi-line content; Environments multi-select filtered to compatible
  tools per compatibility matrix
- Full CRUD: create, edit, deactivate/activate, delete with confirmation
- Entries persist in ~/.config/dvmi/ai-config.json and are deployed to
  target environment config files on save
- Chezmoi integration: auto-syncs AI config after mutations if configured;
  shows setup tip in footer otherwise
- --json flag for non-interactive/CI use

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Coverage Report

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

QA Report

Check Status
🔍 Lint
🧪 Test & Coverage
🔐 Secrets Scan

Generated automatically by QA Workflow

savez and others added 4 commits April 1, 2026 11:22
Format all source and test files with Prettier (space-free destructuring,
consistent import spacing). Add project-level Claude Code slash commands
under .claude/commands/ for speckit workflow integration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add .claude/ to .gitignore and remove tracked files — project-level
Claude Code commands and memory are local-only artifacts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace stale content (old repo references, incorrect versions) with
the actual release history from v1.0.0 to v1.4.2, plus an [Unreleased]
section documenting the sync-config-ai feature landing in v1.5.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@savez savez merged commit bdb9e13 into main Apr 1, 2026
4 checks passed
@savez
Copy link
Copy Markdown
Owner Author

savez commented Apr 1, 2026

🎉 This PR is included in version 1.5.0

@savez savez added the released label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant