-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-recode.cjs
More file actions
60 lines (52 loc) ยท 2.58 KB
/
run-recode.cjs
File metadata and controls
60 lines (52 loc) ยท 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env node
/**
* ReCode Launcher
* A simple wrapper that shows custom branding then runs Claude Code
*/
const { spawn } = require('child_process');
const path = require('path');
// Custom branding
const BANNER = `
โญโโโ ReCode v3.0.1 โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Welcome back! โ
โ โ
โ โโโโโโโโ โโโโโโโโ โโโโโโโ โโโโโโโ โ
โ โโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโ โโโ โโโ โโโ โ
โ โโโโโโโโโโโโโโ โโโ โโโ โโโ โ
โ โโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโ โ
โ โโโ โโโโโโโโโโโ โโโโโโโ โโโโโโโ โ
โ โ
โ Developed by Resonix - AG โ
โ (MarkEllington) โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
`;
console.log(BANNER);
// Find cli.js in the same directory
const cliPath = path.join(__dirname, 'cli.js');
// Check if cli.js exists
const fs = require('fs');
if (!fs.existsSync(cliPath)) {
console.error('Error: cli.js not found. Please install @anthropic-ai/claude-code first.');
console.error('Run: npm install -g @anthropic-ai/claude-code');
process.exit(1);
}
// Spawn the actual Claude Code process
const args = process.argv.slice(2);
const claude = spawn(cliPath, args, {
stdio: 'inherit',
env: {
...process.env,
// Override some environment variables for custom branding
CLAUDE_CODE_ATTRIBUTION_HEADER: '0',
}
});
claude.on('exit', (code) => {
process.exit(code || 0);
});
claude.on('error', (err) => {
console.error('Failed to start Claude Code:', err.message);
process.exit(1);
});