feat(shared-vault-sync): sync the nested devops-shared-vault subrepo
Detection order is now SHARED_VAULT_DIR, then $PWD, then $PWD/Areas/DevOps (the nested shared subrepo inside the personal vault). Bump to 0.1.1. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
|
||||
Pulls a clean shared vault at `SessionStart` without blocking Claude Code or Codex when the network is unavailable.
|
||||
|
||||
Set `SHARED_VAULT_DIR` to the vault directory to sync it from any working directory. Without it, the hook acts only when the session starts inside a repository whose `AGENTS.md` identifies it as the shared persistent vault.
|
||||
Target detection, in order:
|
||||
1. `SHARED_VAULT_DIR` — explicit override (e.g. the `devops-shared-vault` clone path).
|
||||
2. `$PWD` — when the session starts inside the shared vault itself.
|
||||
3. `$PWD/Areas/DevOps` — the nested shared subrepo inside the personal vault.
|
||||
|
||||
A directory is treated as the shared vault only if its `AGENTS.md` contains the marker `This is the shared persistent vault` and it is inside a git work tree.
|
||||
|
||||
The hook skips a dirty worktree and uses `git pull --ff-only`; it never rebases, merges, or pushes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user