This repository is a reconstructed local snapshot of the Claude Code CLI/TUI.
It is not the original upstream build environment. The project has been adapted so it can be built and used locally from this folder.
- A reconstructed TypeScript/Bun-based Claude Code CLI.
- The current local build produces a working
distfolder. - This snapshot is intended for local experimentation, debugging, and recovery work.
- Node.js 18 or newer
- Bun 1.x
- npm
npm install
npm run build
This generates the compiled output in dist/.
Interactive mode:
bun dist/entrypoints/cli.js
Help:
bun dist/entrypoints/cli.js --help
Diagnostics:
bun dist/entrypoints/cli.js doctor
Version:
bun dist/entrypoints/cli.js --version
Print mode with a prompt argument:
bun dist/entrypoints/cli.js -p "Explain this project"
Print mode with stdin:
"Explain this project" | bun dist/entrypoints/cli.js -p
bun dist/entrypoints/cli.js --helpbun dist/entrypoints/cli.js doctorbun dist/entrypoints/cli.js authbun dist/entrypoints/cli.js mcpbun dist/entrypoints/cli.js pluginbun dist/entrypoints/cli.js agents
Write debug logs to a file:
bun dist/entrypoints/cli.js --debug-file .\claude-debug.log
Read the last lines:
Get-Content .\claude-debug.log -Tail 200
- This is a reconstructed build, not the original packaged release.
- The version may appear as
0.0.0+reconstructed. - Auto-update behavior should not be treated as reliable in this snapshot.
npm run buildis the supported local build path.npm run typecheckmay still fail because the snapshot is incomplete compared to the original source tree.
- Um snapshot reconstruido da CLI/TUI do Claude Code em TypeScript/Bun.
- O build local atual gera uma pasta
distutilizavel. - Este snapshot serve para uso local, depuracao e recuperacao do projeto.
- Node.js 18 ou mais recente
- Bun 1.x
- npm
npm install
npm run build
Isso gera a saida compilada em dist/.
Modo interativo:
bun dist/entrypoints/cli.js
Ajuda:
bun dist/entrypoints/cli.js --help
Diagnostico:
bun dist/entrypoints/cli.js doctor
Versao:
bun dist/entrypoints/cli.js --version
Modo print com prompt na linha de comando:
bun dist/entrypoints/cli.js -p "Explique este projeto"
Modo print recebendo texto via stdin:
"Explique este projeto" | bun dist/entrypoints/cli.js -p
bun dist/entrypoints/cli.js --helpbun dist/entrypoints/cli.js doctorbun dist/entrypoints/cli.js authbun dist/entrypoints/cli.js mcpbun dist/entrypoints/cli.js pluginbun dist/entrypoints/cli.js agents
Gravar logs em arquivo:
bun dist/entrypoints/cli.js --debug-file .\claude-debug.log
Ler as ultimas linhas:
Get-Content .\claude-debug.log -Tail 200
- Este e um build reconstruido, nao o release original empacotado.
- A versao pode aparecer como
0.0.0+reconstructed. - O mecanismo de auto-update nao deve ser considerado confiavel neste snapshot.
npm run builde o caminho de build local suportado.npm run typecheckainda pode falhar porque o snapshot nao esta completo em relacao a arvore original.