mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 17:20:30 +00:00
- Implement conflict detection in pushFile and pullFile using SHA comparison.
- Use SyncConflictModal to prompt users for manual resolution ('Use local' or 'Use remote').
- Added unit tests in sync-manager.test.ts to verify conflict handling logic.
- Fixed linting issues related to unhandled promises and mock type safety.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
No EOL
1.3 KiB
Markdown
29 lines
No EOL
1.3 KiB
Markdown
# Project Agent Design & Hierarchy (Synchronized with Skills)
|
|
|
|
## Agent Tiers
|
|
|
|
### 1. High-Tier (Red/Orange Group)
|
|
- **Sonnet 4.6 (Primary)**: Orchestrator for complex planning and architecture.
|
|
- **Opus (Architect)**: Deep research and large-scale refactoring.
|
|
|
|
### 2. Low-Tier (Blue/Green/Cyan Group)
|
|
- **Haiku (Specialized)**: Fast, token-efficient model for TDD, linting, and CI/CD monitoring. **REQUIRED**: All verification tasks MUST be offloaded to Haiku to save tokens.
|
|
- **Subagents**: Isolated tasks for context protection.
|
|
|
|
## Core Workflows (Mandatory Skills Integration)
|
|
|
|
### 1. TDD & Linting (Skill: `obsidian-development`)
|
|
- **Rule**: Write Vitest tests BEFORE implementation.
|
|
- **Execution**: Offload `npx vitest run` and `npm run lint` to Haiku.
|
|
- **Report Format**: `Success: N items, Failure: X items` (including error logs on failure).
|
|
|
|
### 2. Marketplace Readiness (Skill: `obsidian-marketplace-check`)
|
|
- **Rule**: Verify compliance before any release candidate.
|
|
- **Checks**: `manifest.json` parity, `isDesktopOnly` logic, and `onunload` cleanup.
|
|
|
|
### 3. CI/CD Monitoring (Skill: `obsidian-development`)
|
|
- **Rule**: Post-push monitoring by Haiku in the background.
|
|
- **Failure Protocol**: Fetch and return specific error messages from the CI pipeline.
|
|
|
|
### 4. Git Integrity
|
|
- **Pre-commit**: Husky hook running `npm run lint && npm run build`. |