Skip to content
Source
Sign inSign up
pingdotgg/t3code

Introduce pluggable VCS driver foundation #2435

Mergedjuliusmarmingemerged 46 commits intomain fromrefs/pull/2435/headmerged by juliusmarminge View on GitHub

Showing 131 changed files with 216 additions and 0 deletions (loading 129).

x
0 of 131 viewed, 131 left
216 additions and 0 deletions.plans/19-version-control-phase-1-vcs-driver-foundation.mdAdded
View file
@@ -0,0 +1,216 @@
+# Version Control Phase 1: VCS Driver Foundation
+​
+## Goal
+​
+Introduce a provider-neutral VCS layer and rewrite the local Git implementation as an Effect-native driver. This phase should preserve user-visible behavior while replacing the Git-first service boundary with an abstraction that can support Git, Jujutsu, and later Sapling or another viable VCS.
+​
+The existing `GitCore` implementation is a behavior reference and source of regression tests, not the target architecture. New code should follow the newer package style used by `effect-acp` and `effect-codex-app-server`: typed service tags, schema-backed tagged errors, scoped process usage, explicit decode boundaries, and no Promise-based process helper as the core execution primitive.
+​
+## Scope
+​
+- Add VCS-domain contracts in `packages/contracts/src/vcs.ts`.
+- Add shared runtime parsing helpers in `packages/shared/src/vcs/*` only when they are useful to both server and web.
+- Add server services under `apps/server/src/vcs`:
+ - `Services/VcsDriver.ts`
+ - `Services/VcsRepositoryResolver.ts`
+ - `Services/VcsProcess.ts`
+ - `Layers/GitVcsDriver.ts`
+ - `errors.ts`
+- Migrate server callers from Git-specific terms where the operation is actually VCS-generic.
+- Update active consumers to the new VCS APIs in the same phase; do not add backwards-compatible export shims.
+- Leave source-control hosting providers out of this phase except for remote metadata needed to describe repository status.
+​
+## Non-Goals
+​
+- No GitLab, Azure DevOps, or GitHub provider rewrite yet.
+- No Jujutsu driver yet, but every interface must be designed so a Jujutsu driver does not have to pretend to be Git.
+- No T3 Review implementation yet.
+- No broad UI redesign.
+​
+## Driver Model