mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-17 02:04:09 +00:00
refactor: finish companion rename migration
Complete the remaining pi-to-companion rename across companion-os, web, vm-orchestrator, docker, and archived fixtures. Verification: - semantic rg sweeps for Pi/piConfig/getPi/.pi runtime references - npm run check in apps/companion-os (fails in this worktree: biome not found) Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
e8fe3d54af
commit
536241053c
303 changed files with 3603 additions and 3602 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# Build pi binaries for all platforms locally.
|
||||
# Build companion binaries for all platforms locally.
|
||||
# Mirrors .github/workflows/build-binaries.yml
|
||||
#
|
||||
# Usage:
|
||||
|
|
@ -12,11 +12,11 @@
|
|||
#
|
||||
# Output:
|
||||
# packages/coding-agent/binaries/
|
||||
# pi-darwin-arm64.tar.gz
|
||||
# pi-darwin-x64.tar.gz
|
||||
# pi-linux-x64.tar.gz
|
||||
# pi-linux-arm64.tar.gz
|
||||
# pi-windows-x64.zip
|
||||
# companion-darwin-arm64.tar.gz
|
||||
# companion-darwin-x64.tar.gz
|
||||
# companion-linux-x64.tar.gz
|
||||
# companion-linux-arm64.tar.gz
|
||||
# companion-windows-x64.zip
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
|
@ -107,9 +107,9 @@ for platform in "${PLATFORMS[@]}"; do
|
|||
# call site has a try/catch fallback. For Windows builds, we copy the
|
||||
# appropriate .node file alongside the binary below.
|
||||
if [[ "$platform" == "windows-x64" ]]; then
|
||||
bun build --compile --external koffi --target=bun-$platform ./dist/cli.js --outfile binaries/$platform/pi.exe
|
||||
bun build --compile --external koffi --target=bun-$platform ./dist/cli.js --outfile binaries/$platform/companion.exe
|
||||
else
|
||||
bun build --compile --external koffi --target=bun-$platform ./dist/cli.js --outfile binaries/$platform/pi
|
||||
bun build --compile --external koffi --target=bun-$platform ./dist/cli.js --outfile binaries/$platform/companion
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -141,12 +141,12 @@ cd binaries
|
|||
for platform in "${PLATFORMS[@]}"; do
|
||||
if [[ "$platform" == "windows-x64" ]]; then
|
||||
# Windows (zip)
|
||||
echo "Creating pi-$platform.zip..."
|
||||
(cd $platform && zip -r ../pi-$platform.zip .)
|
||||
echo "Creating companion-$platform.zip..."
|
||||
(cd $platform && zip -r ../companion-$platform.zip .)
|
||||
else
|
||||
# Unix platforms (tar.gz) - use wrapper directory for mise compatibility
|
||||
echo "Creating pi-$platform.tar.gz..."
|
||||
mv $platform pi && tar -czf pi-$platform.tar.gz pi && mv pi $platform
|
||||
echo "Creating companion-$platform.tar.gz..."
|
||||
mv $platform companion && tar -czf companion-$platform.tar.gz companion && mv companion $platform
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -155,9 +155,9 @@ echo "==> Extracting archives for testing..."
|
|||
for platform in "${PLATFORMS[@]}"; do
|
||||
rm -rf $platform
|
||||
if [[ "$platform" == "windows-x64" ]]; then
|
||||
mkdir -p $platform && (cd $platform && unzip -q ../pi-$platform.zip)
|
||||
mkdir -p $platform && (cd $platform && unzip -q ../companion-$platform.zip)
|
||||
else
|
||||
tar -xzf pi-$platform.tar.gz && mv pi $platform
|
||||
tar -xzf companion-$platform.tar.gz && mv companion $platform
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
@ -168,5 +168,5 @@ ls -lh *.tar.gz *.zip 2>/dev/null || true
|
|||
echo ""
|
||||
echo "Extracted directories for testing:"
|
||||
for platform in "${PLATFORMS[@]}"; do
|
||||
echo " binaries/$platform/pi"
|
||||
echo " binaries/$platform/companion"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue