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

@ -4,7 +4,7 @@
* optionally spawns subagents to analyze patterns.
*
* Usage: npx tsx scripts/session-transcripts.ts [--analyze] [--output <dir>] [cwd]
* --analyze Spawn companion subagents to analyze each transcript file
* --analyze Spawn clanker subagents to analyze each transcript file
* --output <dir> Output directory for transcript files (defaults to ./session-transcripts)
* cwd Working directory to extract sessions for (defaults to current)
*/
@ -94,7 +94,7 @@ function runSubagent(
): Promise<{ success: boolean }> {
return new Promise((resolve) => {
const child = spawn(
"companion",
"clanker",
["--mode", "json", "--tools", "read,write", "-p", prompt],
{
cwd,
@ -158,7 +158,7 @@ function runSubagent(
});
child.on("error", (err) => {
console.error(chalk.red(` Failed to spawn companion: ${err.message}`));
console.error(chalk.red(` Failed to spawn clanker: ${err.message}`));
resolve({ success: false });
});
});
@ -188,7 +188,7 @@ async function main() {
const cwd = resolve(cwdArg || process.cwd());
mkdirSync(outputDir, { recursive: true });
const sessionsBase = join(homedir(), ".companion/agent/sessions");
const sessionsBase = join(homedir(), ".clanker/agent/sessions");
const sessionDirName = cwdToSessionDir(cwd);
const sessionDir = join(sessionsBase, sessionDirName);
@ -281,13 +281,13 @@ async function main() {
if (!analyzeFlag) {
console.log(
"\nRun with --analyze to spawn companion subagents for pattern analysis.",
"\nRun with --analyze to spawn clanker subagents for pattern analysis.",
);
return;
}
// Find AGENTS.md files to compare against
const globalAgentsMd = join(homedir(), ".companion/agent/AGENTS.md");
const globalAgentsMd = join(homedir(), ".clanker/agent/AGENTS.md");
const localAgentsMd = join(cwd, "AGENTS.md");
const agentsMdFiles = [globalAgentsMd, localAgentsMd].filter(existsSync);
const agentsMdSection =