Add core-manifest to protect custom agents from deprecation

launchme.sh and updateme.sh now write .core-manifest listing which agent
files were installed as core. The deprecation loop checks this manifest
before touching any file, so custom agents are never deprecated.
This commit is contained in:
gnekt
2026-03-23 22:19:44 +01:00
parent 4d39e4f959
commit 9ea4e23d11
2 changed files with 16 additions and 14 deletions

View File

@@ -92,8 +92,10 @@ info "Creating .claude/agents/ in vault..."
mkdir -p "$VAULT_DIR/.claude/agents"
AGENT_COUNT=0
: > "$VAULT_DIR/.claude/agents/.core-manifest"
for agent in "$REPO_DIR/agents/"*.md; do
cp "$agent" "$VAULT_DIR/.claude/agents/"
basename "$agent" >> "$VAULT_DIR/.claude/agents/.core-manifest"
AGENT_COUNT=$((AGENT_COUNT + 1))
done
success "Copied $AGENT_COUNT agents"