Commit Graph

16 Commits

Author SHA1 Message Date
e56b276033 Milestone 4: Synchronization and Remote Interaction
This milestone implements comprehensive remote synchronization capabilities
and authentication support for Onyx, completing the core workflow features.

## Rebase Engine (internal/git/rebase.go)
- Stacked rebase with sequential commit processing
- Conflict detection and handling
- Integration with rerere for automatic conflict resolution
- Support for rebase continuation and abort operations

## Rerere Integration (internal/git/rerere.go)
- Conflict resolution recording and replay
- Cache location: .onx/rerere_cache
- Automatic application of previous conflict resolutions
- SHA1-based conflict pattern matching with normalization

## Conflict Resolution UI (internal/git/conflicts.go)
- Index-based conflict detection using Git stages (1/2/3)
- Clear conflict presentation with file paths and commit hashes
- User-friendly resolution guidance
- Conflict marker extraction and analysis

## Remote Commands

### onx sync (internal/commands/sync.go)
- Fetch latest changes from remote origin
- Rebase workstream stack onto updated base branch
- Automatic rerere conflict resolution
- Transaction-wrapped with full undo support
- Comprehensive progress reporting and error messages

### onx push (internal/commands/push.go)
- Push all workstream branches to remote
- Support for force push operations
- Per-branch progress reporting
- Clear summary of pushed branches
- Push workstream commits to refs/heads/onyx/workstreams/...

## Authentication (internal/git/auth.go)
- Multi-method authentication with auto-detection
- SSH: ssh-agent and ~/.ssh key file support
- HTTPS: git credential helper and environment variables
- Credential caching for performance
- Graceful fallback when authentication unavailable

## Remote Helpers (internal/git/remote.go)
- Remote validation and configuration
- Support for multiple remotes with origin as default
- URL retrieval and remote existence checking

## Dogfooding
- Updated CLAUDE.md with mandatory Onyx-only development policy
- All future development (human and AI) must use Onyx commands
- Exceptions documented for git usage (remotes, PRs, debugging)

## Status
 All Milestone 4 features implemented and tested
 Successfully used Onyx for its own development
 Authentication working with remote repositories
 Full stacked-diff workflow operational
2025-10-14 22:48:09 -04:00
44f1865af8 Merge pull request 'Milestone 3' (#3) from milestone-3 into main
Some checks failed
CI / Test (push) Failing after 7s
CI / Build (push) Failing after 7s
CI / Lint (push) Failing after 12s
Reviewed-on: DWS/onyx#3
2025-10-14 22:21:32 -04:00
8b1339d0cf Milestone 3
Some checks failed
CI / Test (pull_request) Failing after 6s
CI / Build (pull_request) Failing after 6s
CI / Lint (pull_request) Failing after 12s
2025-10-14 22:10:45 -04:00
99878adefb Merge pull request 'milestone 2 complete' (#2) from milestone-2 into main
Some checks failed
CI / Test (push) Failing after 2s
CI / Build (push) Failing after 2s
CI / Lint (push) Failing after 13s
Reviewed-on: DWS/onyx#2
2025-10-14 21:29:30 -04:00
3fffd5d409 UPdate checklist
Some checks failed
CI / Build (pull_request) Failing after 7s
CI / Test (pull_request) Failing after 7s
CI / Lint (pull_request) Failing after 13s
2025-10-14 21:29:16 -04:00
a0f80c5c7d milestone 2 complete
Some checks failed
CI / Test (pull_request) Failing after 6s
CI / Build (pull_request) Failing after 7s
CI / Lint (pull_request) Failing after 13s
2025-10-10 19:03:31 -04:00
4a517d104a Merge pull request 'Phase 1: Milestone 1' (#1) from milestone-1 into main
Some checks failed
CI / Test (push) Failing after 7s
CI / Build (push) Failing after 6s
CI / Lint (push) Failing after 12s
Reviewed-on: DWS/onyx#1
2025-10-09 20:22:22 -04:00
d63af29e73 update to docker
Some checks failed
CI / Test (pull_request) Failing after 12s
CI / Build (pull_request) Failing after 7s
CI / Lint (pull_request) Failing after 13s
2025-10-09 19:46:05 -04:00
b0bf1a080d Update CICD
Some checks failed
CI / Test (pull_request) Has been cancelled
CI / Lint (pull_request) Has been cancelled
CI / Build (pull_request) Has been cancelled
2025-10-09 19:42:48 -04:00
5e6ae2e429 Implement Milestone 1 2025-10-09 19:19:31 -04:00
f7674cc2b0 setup notes for milestone 1 2025-10-09 19:08:59 -04:00
e52dd17a41 Add CICD
Some checks failed
CI/CD Pipeline / Security Scan (push) Failing after 17s
CI/CD Pipeline / Lint (push) Failing after 10m32s
CI/CD Pipeline / Test (push) Successful in 21m16s
CI/CD Pipeline / Build (arm64, darwin) (push) Failing after 9m44s
CI/CD Pipeline / Build (amd64, linux) (push) Failing after 10m14s
CI/CD Pipeline / Build (amd64, darwin) (push) Failing after 10m19s
CI/CD Pipeline / Build (amd64, windows) (push) Failing after 10m18s
CI/CD Pipeline / Build (arm64, linux) (push) Failing after 9m33s
CI/CD Pipeline / Release (push) Has been skipped
2025-10-09 18:56:20 -04:00
f444113057 Implement Phase 0 2025-10-09 18:50:51 -04:00
7ef57642cc Add claude docs 2025-10-09 18:41:16 -04:00
21c8f6c6f1 Add starter notes 2025-10-09 18:36:07 -04:00
bb389d2d79 First commit 2025-10-09 18:31:19 -04:00