Merge branch 'fix/install-skip-pycache' into unify/skills-20261112-night
This commit is contained in:
commit
92f5087eed
4 files changed
+39
-9
No files matched your search
+2
-1
@@ -43,8 +43,9 @@ for root in .agents/skills .claude/skills; do
|
||||
dst="${TARGET}/${root}"
|
||||
log "skills: copying -> ${dst}"
|
||||
mkdir -p "${dst}"
|
||||
find "${dst}" -mindepth 1 -delete
|
||||
find -H "${dst}" -mindepth 1 -delete
|
||||
cp -a "${src}/." "${dst}/"
|
||||
find -H "${dst}" \( -name __pycache__ -o -name '*.py[co]' \) -prune -exec rm -rf {} +
|
||||
if [[ ! "${TARGET}" -ef "${HOME}" ]]; then
|
||||
log "skills: linking in ${dst} what ${HOME}/${root} already holds"
|
||||
for skill in "${dst}"/*; do
|
||||
|
||||
@@ -156,7 +156,7 @@ install_hub() {
|
||||
chmod 700 "${APPROVERS}"
|
||||
cp -a "${REPO_ROOT}/orchestrator/." "${HUB}/"
|
||||
# Python loads a cached .pyc whose header matches the source mtime and size, and cp -a keeps the mtime: one planted in the sandbox-writable tree would run on the host
|
||||
find "${HUB}" -name __pycache__ -type d -prune -exec rm -rf {} +
|
||||
find -H "${HUB}" \( -name __pycache__ -o -name '*.py[co]' \) -prune -exec rm -rf {} +
|
||||
chmod +x "${HUB}/client/permission_hook.py" "${HUB}/client/runner.py" "${HUB}/client/approval.py" "${HUB}/client/cleanup.py" "${HUB}/client/offices.py" "${HUB}/client/sessions.py" "${HUB}/client/resources.py"
|
||||
log "skills: the PermissionRequest hook client is ${HUB}/client/permission_hook.py"
|
||||
log "skills: approvals need a pinned passkey: settings, 'Passkey registrieren', then 'make orchestrator-pin CREDENTIAL=<blob>'; until then every executor refuses"
|
||||
|
||||
Reference in new issue
Block a user