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:
Harivansh Rathi 2026-03-26 16:22:52 -04:00
parent f93fe7d1a0
commit 67168d8289
356 changed files with 2249 additions and 10223 deletions

View file

@ -2,34 +2,34 @@ import { mkdir } from "node:fs/promises";
import path from "node:path";
import { build } from "esbuild";
const sourceRoot = process.env.COMPANION_BUILTIN_EXTENSIONS_SRC
? path.resolve(process.env.COMPANION_BUILTIN_EXTENSIONS_SRC)
const sourceRoot = process.env.CLANKER_BUILTIN_EXTENSIONS_SRC
? path.resolve(process.env.CLANKER_BUILTIN_EXTENSIONS_SRC)
: path.resolve(process.cwd(), "packages");
const outputRoot = process.env.COMPANION_BUILTIN_EXTENSIONS_OUT
? path.resolve(process.env.COMPANION_BUILTIN_EXTENSIONS_OUT)
const outputRoot = process.env.CLANKER_BUILTIN_EXTENSIONS_OUT
? path.resolve(process.env.CLANKER_BUILTIN_EXTENSIONS_OUT)
: path.resolve(process.cwd(), ".tmp/builtins");
const entries = [
{
name: "companion-channels",
entry: path.join(sourceRoot, "companion-channels", "src", "index.ts"),
name: "clanker-channels",
entry: path.join(sourceRoot, "clanker-channels", "src", "index.ts"),
},
{
name: "companion-teams",
entry: path.join(sourceRoot, "companion-teams", "extensions", "index.ts"),
name: "clanker-teams",
entry: path.join(sourceRoot, "clanker-teams", "extensions", "index.ts"),
},
{
name: "companion-grind",
entry: path.join(sourceRoot, "companion-grind", "src", "index.ts"),
name: "clanker-grind",
entry: path.join(sourceRoot, "clanker-grind", "src", "index.ts"),
},
];
const external = [
"@mariozechner/companion-agent-core",
"@mariozechner/companion-ai",
"@mariozechner/companion-ai/oauth",
"@mariozechner/companion-coding-agent",
"@mariozechner/companion-tui",
"@harivansh-afk/clanker-agent-core",
"@harivansh-afk/clanker-ai",
"@harivansh-afk/clanker-ai/oauth",
"@harivansh-afk/clanker-coding-agent",
"@harivansh-afk/clanker-tui",
"@sinclair/typebox",
];