@@ -5,9 +5,9 @@ type: feature
55 status: review
66 priority: p2
77 created: 2026-11-08T06:26:18Z
8-updated: 2026-11-08T07:00:33Z
8+updated: 2026-11-08T07:04:04Z
99 source: human
10-moves: 2026-11-08T06:26:22Z inbox doing drag; 2026-11-08T06:27:05Z doing review agent; 2026-11-08T06:57:08Z review doing drag; 2026-11-08T07:00:33Z doing review agent
10+moves: 2026-11-08T06:26:22Z inbox doing drag; 2026-11-08T06:27:05Z doing review agent; 2026-11-08T06:57:08Z review doing drag; 2026-11-08T07:00:33Z doing review agent; 2026-11-08T07:01:42Z review todo note; 2026-11-08T07:01:44Z todo doing drag; 2026-11-08T07:04:04Z doing review agent
1111 area: import
1212 ---
1313
@@ -34,3 +34,21 @@ Can we make this more formal, like a cli with the server bin? We could build on
3434 Code: cmd/site/remote.go (the command, and importAll, which import now shares); internal/store/sources.go (Sources moved there from store.go, plus Clean, AddSource and RemoveSource); meta.go's host table became ownerAPI(), which Clean uses too. To grow it later, the next commands (pin, public/private) can sit beside remote in cmd/site and edit overrides.txt the same way.
3535 Checked: go vet and go test (new TestEditSources); a real add then rm of github.com/octocat/Hello-World on scratch copies of sources.txt, repos/ and meta.json (mirrored, description fetched, sources.txt back byte-identical after rm); a failed add of a missing repo leaves sources.txt unchanged and no mirror; the error messages for usage, codeberg and a duplicate. Not run: a full make import against all 105 remotes. Its path is the same importAll that the add test ran. Your real sources.txt, rep …
3636 Correction to my first note: an owner with 100 or more repos doesn't silently lose descriptions; FetchMeta stops with "100 repos, the list needs paging".
37+
38+- 2026-11-08 07:01Z (human): This doesn't work, it needs me to add the repo to another website first. Stop wasting my time, think before you act, this is my github replacement. I'm tired of repeating this.
39+
40+- 2026-11-08 07:02Z (human): I want to be able to git push with ssh, how is that not fucking obvious?
41+
42+- 2026-11-08 07:04Z (agent): You're right: add only took GitHub/GitLab URLs, so a repo had to exist elsewhere first. Fixed, and the site is now the repo's home:
43+ bin/site remote add ~/repos/my-thing a local git repo, no remote needed; mirrored from that path
44+ bin/site remote add https://any.host/o/r any https host; GitHub/GitLab still give descriptions, the rest use the README summary
45+ bin/site remote rm <path or url>
46+ Then make index build, and it clones from xonecas.io/<name>.git like the rest.
47+ Changes:
48+ - store.Clean accepts an existing local git repo (kept as its absolute path) or any https clone URL.
49+ - FetchMeta skips sources with no host API instead of failing the whole import.
50+ - On the project page, a local source shows 'Hosted here' instead of a broken https link.
51+ - The sources.txt header and the usage text mention paths.
52+ Checked: go vet and go test (Clean cases for a local repo, codeberg, nested gitlab, ssh, a non-repo dir). End to end on scratch copies: remote add . mirrored this repo by path, index made it a shown project (45 commits; no README, so no description), build rendered its page with 'Hosted here', and rm removed the line and the mirror. A failed add on another host rolled back.
53+ Not done: this repo isn't added to the real sources.txt. That is 1041, still in inbox with its question about tickets/ being public.
54+ Found, filed and not fixed: every published <name>.git/config holds the build machine's mirror path (/home/sacenox/...), for GitHub projects too; see the new inbox bug.