mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-21 10:00:39 +00:00
chore: rebrand companion-os to clanker-agent
- Rename all package names from companion-* to clanker-* - Update npm scopes from @mariozechner to @harivansh-afk - Rename config directories .companion -> .clanker - Rename environment variables COMPANION_* -> CLANKER_* - Update all documentation, README files, and install scripts - Rename package directories (companion-channels, companion-grind, companion-teams) - Update GitHub URLs to harivansh-afk/clanker-agent - Preserve full git history from companion-cloud monorepo
This commit is contained in:
parent
f93fe7d1a0
commit
67168d8289
356 changed files with 2249 additions and 10223 deletions
14
install.sh
14
install.sh
|
|
@ -24,12 +24,12 @@ need npm
|
|||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
if [[ "${COMPANION_SKIP_INSTALL:-${CO_MONO_SKIP_INSTALL:-0}}" != "1" ]]; then
|
||||
if [[ "${CLANKER_SKIP_INSTALL:-${CLANKER_MONO_SKIP_INSTALL:-0}}" != "1" ]]; then
|
||||
log "Installing workspace dependencies"
|
||||
npm install
|
||||
fi
|
||||
|
||||
if [[ "${COMPANION_SKIP_BUILD:-${CO_MONO_SKIP_BUILD:-0}}" != "1" ]]; then
|
||||
if [[ "${CLANKER_SKIP_BUILD:-${CLANKER_MONO_SKIP_BUILD:-0}}" != "1" ]]; then
|
||||
log "Building core packages"
|
||||
BUILD_FAILED=0
|
||||
for pkg in packages/tui packages/ai packages/agent packages/coding-agent; do
|
||||
|
|
@ -46,7 +46,7 @@ if [[ "$BUILD_FAILED" == "1" ]] && [[ ! -f "$ROOT_DIR/packages/coding-agent/src/
|
|||
fail "No usable coding-agent CLI source found for source launch fallback."
|
||||
fi
|
||||
|
||||
LAUNCHER="$ROOT_DIR/companion"
|
||||
LAUNCHER="$ROOT_DIR/clanker"
|
||||
cat > "$LAUNCHER" <<'EOF'
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
|
@ -54,8 +54,8 @@ set -euo pipefail
|
|||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
if [[ -x "$ROOT_DIR/packages/coding-agent/dist/companion" ]]; then
|
||||
exec "$ROOT_DIR/packages/coding-agent/dist/companion" "$@"
|
||||
if [[ -x "$ROOT_DIR/packages/coding-agent/dist/clanker" ]]; then
|
||||
exec "$ROOT_DIR/packages/coding-agent/dist/clanker" "$@"
|
||||
fi
|
||||
|
||||
if [[ -f "$ROOT_DIR/packages/coding-agent/dist/cli.js" ]]; then
|
||||
|
|
@ -66,10 +66,10 @@ if [[ -x "$ROOT_DIR/node_modules/.bin/tsx" ]] && [[ -f "$ROOT_DIR/packages/codin
|
|||
exec "$ROOT_DIR/node_modules/.bin/tsx" "$ROOT_DIR/packages/coding-agent/src/cli.ts" "$@"
|
||||
fi
|
||||
|
||||
echo "ERROR: no runnable companion binary found and tsx fallback is unavailable." >&2
|
||||
echo "ERROR: no runnable clanker binary found and tsx fallback is unavailable." >&2
|
||||
exit 1
|
||||
EOF
|
||||
|
||||
chmod +x "$LAUNCHER"
|
||||
log "Created launcher: $LAUNCHER"
|
||||
log "Run with: ./companion"
|
||||
log "Run with: ./clanker"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue