| .. | |||
| scripts | 2 days ago | ||
| src | 2 days ago | ||
| vendor | 2 days ago | ||
| .gitignore | 2 days ago | ||
| README.md | 2 days ago | ||
| README.zh-CN.md | 2 days ago | ||
| package-lock.json | 2 days ago | ||
| package.json | 2 days ago | ||
English | 简体中文
A reconstructed Claude Code 2.1.88 project generated from cli.js.map, reorganized into a standard npm-based repository that can install dependencies, build successfully, and launch the CLI entrypoint.
This repository exists to turn reverse-sourcemap output into a practical development project that is easier to:
Verified working today:
npm installnpm run buildnode dist/cli.js --helpnode dist/cli.js --versionThis is not the official upstream source repository. It is a recovered and reconstructed project derived from sourcemap output.
Because reverse-sourcemap recovery is incomplete, the current build includes compatibility layers, generated shims, and stub modules to keep the project installable and buildable. In practice, that means:
>= 18>= 9Check your environment first:
node -v npm -v
npm install npm run build node dist/cli.js --help
Install dependencies from the project root:
npm install
This uses package.json and package-lock.json to resolve and install dependencies.
Build the project with:
npm run build
The build output is written to:
dist/cli.jsdist/src/**dist/vendor/**The build pipeline is implemented in scripts/build.mjs. It currently handles:
src/ and vendor/ into Node.js-compatible ESM outputbun:* imports into npm/Node-compatible shimssrc/* alias importsRun the built CLI directly:
node dist/cli.js --help
Print the version:
node dist/cli.js --version
You can also run through npm:
npm start -- --help
To install this project as a global command after building:
npm install -g .
Then run:
claude-recovered --help
For local development workflows, npm link is also supported:
npm link
npm install npm run build npm run clean npm start -- --help node dist/cli.js --version
. ├── package.json ├── package-lock.json ├── scripts/ │ └── build.mjs ├── src/ ├── vendor/ └── dist/
Notes:
src/: recovered source filesvendor/: local compatibility replacements for unavailable native or private modulesscripts/build.mjs: custom npm build pipelinedist/: generated runtime outputIf you hit build or runtime issues, use this order:
Useful commands:
npm run clean npm install npm run build node dist/cli.js --help
If you want to continue improving this recovered project, the highest-value next steps are usually:
This repository contains code reconstructed from sourcemap-derived output. Before redistributing or publishing it, make sure you review the original project's license, copyright, and usage terms.