Pin Pi CLI 0.78.0 + fix detached worktree AI source paths (Sam & Codex) #33
2 changed files with 16 additions and 5 deletions
19
build.sh
19
build.sh
|
|
@ -296,6 +296,14 @@ resolve_colibri_paths() {
|
|||
fi
|
||||
}
|
||||
|
||||
resolve_clawdie_ai_repo() {
|
||||
_resolved_clawdie_ai_repo="${CLAWDIE_AI_REPO:-${SCRIPT_DIR}/../clawdie-ai}"
|
||||
case "${_resolved_clawdie_ai_repo}" in
|
||||
/*) ;;
|
||||
*) _resolved_clawdie_ai_repo="${SCRIPT_DIR}/${_resolved_clawdie_ai_repo}" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
preflight_colibri_artifacts() {
|
||||
[ "${FEATURE_COLIBRI:-NO}" = "YES" ] || return 0
|
||||
[ "${FETCH_ONLY:-0}" -eq 0 ] || return 0
|
||||
|
|
@ -836,7 +844,8 @@ install_colibri_service() {
|
|||
|
||||
# Import clawdie-ai skill definitions into the catalog.
|
||||
# Reads .agent/skills/*/SKILL.md and registers name + description.
|
||||
_clawdie_ai_dir="${SCRIPT_DIR}/../clawdie-ai"
|
||||
resolve_clawdie_ai_repo
|
||||
_clawdie_ai_dir="${_resolved_clawdie_ai_repo}"
|
||||
if [ -d "${_clawdie_ai_dir}/.agent/skills" ]; then
|
||||
"${SCRIPT_DIR}/scripts/import-clawdie-skills.sh" \
|
||||
"${_clawdie_ai_dir}" "${MOUNT_POINT}"
|
||||
|
|
@ -1087,6 +1096,8 @@ EOF
|
|||
|
||||
install_live_ai_source_snapshots() {
|
||||
echo " Installing live AI source snapshots..."
|
||||
resolve_clawdie_ai_repo
|
||||
resolve_colibri_paths
|
||||
mkdir -p "${MOUNT_POINT}/home/clawdie/ai"
|
||||
cat > "${MOUNT_POINT}/home/clawdie/ai/README.txt" <<'EOF'
|
||||
Clawdie live AI source snapshots
|
||||
|
|
@ -1098,11 +1109,11 @@ running system.
|
|||
No API keys, .env files, SSH private keys, build caches, package caches, tmp/
|
||||
directories, or uncommitted worktree changes are included. Each snapshot has a
|
||||
.clawdie-source.json file recording the source remote, branch, commit, and dirty
|
||||
state at image build time.
|
||||
state at image build time.
|
||||
EOF
|
||||
seed_live_ai_source_repo "${SCRIPT_DIR}" "clawdie-iso"
|
||||
seed_live_ai_source_repo "${SCRIPT_DIR}/../clawdie-ai" "clawdie-ai"
|
||||
seed_live_ai_source_repo "${SCRIPT_DIR}/../colibri" "colibri"
|
||||
seed_live_ai_source_repo "${_resolved_clawdie_ai_repo}" "clawdie-ai"
|
||||
seed_live_ai_source_repo "${_resolved_colibri_repo}" "colibri"
|
||||
chroot "${MOUNT_POINT}" chown -R clawdie:clawdie /home/clawdie/ai
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
# Keep Pi current through coordinated version-sync work; do not rely on
|
||||
# npm's moving latest dist-tag during ISO builds.
|
||||
|
||||
@earendil-works/pi-coding-agent@0.75.5
|
||||
@earendil-works/pi-coding-agent@0.78.0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue