feat(daemon): manage only bare-layout repos in configured groups, gate snapshots by visibility

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 17:14:29 +01:00
1 parent 990f155f65
commit 9e69b60e89
9 files changed
+704 -48

No files matched your search

+3 -1
View File
@@ -160,6 +160,7 @@ fn handle(req: &Request, ctx: &Ctx) -> Value {
"last_sync": r.last_sync,
"last_error": r.last_error,
"failures": r.failures,
"snapshots_withheld": r.snapshots_withheld,
"worktrees": r.worktrees.iter()
.map(|w| json!({"branch": w.branch, "state": w.state, "path": w.path}))
.collect::<Vec<_>>(),
@@ -167,7 +168,8 @@ fn handle(req: &Request, ctx: &Ctx) -> Value {
})
.collect();
ok(
json!({"machine": ctx.machine, "paused": s.paused, "now": now_secs(), "repos": repos}),
json!({"machine": ctx.machine, "paused": s.paused, "now": now_secs(), "repos": repos,
"not_migrated": s.not_migrated.iter().map(|p| p.display().to_string()).collect::<Vec<_>>()}),
)
}
"pause" | "resume" => {