Archon/docs
Rasmus Widing c142dbbc54
feat(cli): Add git repository safety check (#328)
* feat(cli): Add git repository safety check

Add validation to ensure CLI workflows only run from within a git
repository. If the user runs from a subdirectory, the CLI resolves
to the repo root. Running from a non-git directory produces a clear
error message with guidance.

- Add git.findRepoRoot() check before workflow commands
- Bypass check for version/help commands
- Add tests for git repo validation behavior

* docs: Update CLI documentation for git repository requirement

* fix(cli): Improve error handling and tests for git repo check

- Move git.findRepoRoot() inside try-catch block to ensure proper error
  handling and database cleanup on unexpected errors
- Add path existence validation before git check for clearer error messages
- Improve tests: test real git.findRepoRoot behavior instead of mocks
- Add tests for path validation and command categorization logic
2026-01-22 10:00:12 +02:00
..
architecture.md feat: Runtime loading of default commands/workflows (#324) 2026-01-21 23:08:23 +02:00
archon-architecture.md Update docs to reflect actual command folder detection behavior 2026-01-13 10:39:16 +02:00
cli-developer-guide.md feat(cli): Add git repository safety check (#328) 2026-01-22 10:00:12 +02:00
cli-user-guide.md feat(cli): Add git repository safety check (#328) 2026-01-22 10:00:12 +02:00
cloud-deployment.md feat: Phase 4 - Express to Hono migration (#318) 2026-01-21 13:23:34 +02:00
configuration.md feat: Runtime loading of default commands/workflows (#324) 2026-01-21 23:08:23 +02:00
getting-started.md feat: Phase 3 - Database abstraction layer and CLI isolation (#314) 2026-01-21 10:38:57 +02:00
migration-guide.md feat: Runtime loading of default commands/workflows (#324) 2026-01-21 23:08:23 +02:00
new-developer-guide.md feat: Phase 2 - CLI entry point and basic commands (#313) 2026-01-20 22:09:25 +02:00
releasing.md docs: Add manual release process for when GitHub Actions unavailable 2026-01-22 00:27:18 +02:00
slack-setup.md Add Slack platform adapter with Socket Mode support (#73) 2025-12-05 21:34:42 +02:00
worktree-orchestration-research.md Fix: PR worktrees use actual branch for same-repo PRs (#238) 2026-01-17 22:14:48 +02:00
worktree-orchestration.md Fix stale workspace: sync before worktree creation (#287) 2026-01-19 13:07:56 +02:00