v0.2.0: split — public framework only, runbook fetched from private host
The agent and skill prose used to ship inside this package, which exposed home-infra topology (hosts, IPs, AINs, container layout, /opt/herding cred paths) to anyone with the public package URL. This release moves to a fetcher model: - Public package ships only the plumbing: claude-his-fetch + claude-his-install. - Runbook content lives on a private host at $HIS_CONTEXT_HOST:/opt/his-context/. - claude-his-fetch (rsync over SSH) populates ~/.cache/claude-his-agent/. - claude-his-install symlinks ~/.claude/agents/his.md + ~/.claude/skills/his into the cache. History rewritten — the previous tree contained sensitive operational details. A bundle of the pre-rewrite tree is preserved out-of-band by the maintainer.
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
# claude-his-install — wire ~/.claude/{agents,skills}/his to the fetched context cache.
|
||||
# Runs claude-his-fetch first if the cache is empty.
|
||||
set -euo pipefail
|
||||
|
||||
CACHE="${HIS_CONTEXT_CACHE:-${HOME}/.cache/claude-his-agent}"
|
||||
|
||||
if [ ! -r "${CACHE}/agent.md" ] || [ ! -r "${CACHE}/skill/SKILL.md" ]; then
|
||||
echo "claude-his-install: cache empty, running claude-his-fetch first..."
|
||||
claude-his-fetch
|
||||
fi
|
||||
|
||||
DEST="${HOME}/.claude"
|
||||
mkdir -p "${DEST}/agents" "${DEST}/skills"
|
||||
|
||||
ln -sfn "${CACHE}/agent.md" "${DEST}/agents/his.md"
|
||||
ln -sfn "${CACHE}/skill" "${DEST}/skills/his"
|
||||
|
||||
cat <<EOF
|
||||
Installed His for $USER:
|
||||
${DEST}/agents/his.md -> ${CACHE}/agent.md
|
||||
${DEST}/skills/his -> ${CACHE}/skill
|
||||
|
||||
Refresh by re-running 'claude-his-fetch' (or cron it weekly).
|
||||
Override host/path via HIS_CONTEXT_HOST / HIS_CONTEXT_PATH / HIS_CONTEXT_CACHE.
|
||||
EOF
|
||||
Reference in New Issue
Block a user