Skip to content

feat: link a shared team from a git URL - #10

Merged
xeaser merged 6 commits into
mainfrom
feat/remote-link
Aug 21, 2026
Merged

feat: link a shared team from a git URL#10
xeaser merged 6 commits into
mainfrom
feat/remote-link

Conversation

@xeaser

Copy link
Copy Markdown
Owner

Why

squad-oc link only accepted a local directory. Two laptops, or a new service repo, could not share a platform team unless someone cloned it first and passed the path.

What

  • squad-oc link <git-url> clones or fetches into ~/.squad-oc/links/<hash>/ and points this repo at that checkout
  • Config records linkPath plus linkUrl, linkRef, and linkSha
  • link --sync (or re-running the same URL) fetches and updates the SHA
  • link --off restores local .squad/; the cache stays on disk
  • Path link is unchanged and still exclusive with externalize
  • status / doctor / mcp apply keep using ResolveDir

https / git@ / *.git URLs are accepted. A local path that already has team.md stays a path link.

Tests

Local bare git remotes only — no network. go test ./... and go build pass in the worktree.

Closes agent work: squad-l3t, squad-l3t.1, squad-l3t.2

Record LinkURL/LinkRef/LinkSHA for remote git links. SetRemoteLink
writes them; SetLink and ClearLink clear remote metadata.
Add LinksCacheDir, LooksLikeGit, EnsureRemoteCheckout, and SyncRemoteCheckout. Tests use a local bare git repo as the remote.
@xeaser
xeaser merged commit 80d857f into mainAug 21, 2026
10 checks passed
@xeaser
xeaser deleted the feat/remote-link branch August 21, 2026 10:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@xeaser