feat(bootstrap): restore rescued GuruRMM/GuruConnect WIP on rebuild
Add restore-at-risk-work.ps1 and wire it into bootstrap Phase 6. Recreates local-only WIP rescued to the recovery bundle's at-risk-work/: re-applies the three guru-rmm stash patches back AS stashes (LIFO order preserved) and drops the guru-connect tmp-spec018.diff back as its untracked working file. Patches that won't apply cleanly are reported for manual git apply --3way. Updates RESTORE.md and the session log with the rescue details. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -185,8 +185,13 @@ if (Phase 5 'Clone repos') {
|
||||
}
|
||||
|
||||
# ============================================================ PHASE 6
|
||||
if (Phase 6 'Restore repo-local identity') {
|
||||
if ($script:Bundle) { & "$here\restore-secrets.ps1" -BundlePath $script:Bundle -Group repo -ClaudeToolsRoot $ClaudeToolsRoot }
|
||||
if (Phase 6 'Restore repo-local identity + at-risk WIP') {
|
||||
if ($script:Bundle) {
|
||||
& "$here\restore-secrets.ps1" -BundlePath $script:Bundle -Group repo -ClaudeToolsRoot $ClaudeToolsRoot
|
||||
# Recreate local-only WIP (guru-rmm stashes, guru-connect untracked diff) that
|
||||
# would otherwise have been lost - faithfully puts the stashes back as stashes.
|
||||
& "$here\restore-at-risk-work.ps1" -BundlePath $script:Bundle -ClaudeToolsRoot $ClaudeToolsRoot
|
||||
}
|
||||
else { Warn "no bundle - you must hand-create .claude/identity.json (see CLAUDE.md multi-user section)" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user