Claude code cli源码

claude-code-sourcemap

[!WARNING]
This repository is unofficial and is reconstructed from the public npm package and source map analysis, for research purposes only.
It does not represent the original internal development repository structure.

本仓库为非官方整理版,基于公开 npm 发布包与 source map 分析还原,仅供研究使用
不代表官方原始内部开发仓库结构。
一切基于L站”飘然与我同”的情报提供

概述

本仓库通过 npm 发布包(@anthropic-ai/claude-code)内附带的 source map(cli.js.map)还原的 TypeScript 源码,版本为 2.1.88https://github.com/ChinaSiro/claude-code-sourcemap

下载地址:https://pub-aea8527898604c1bbb12468b1581d95e.r2.dev/src.zip

图片[1]李白你好-实战攻防Claude code cli源码李白你好-实战攻防李白你好

来源

    • 还原版本:2.1.88

    • 还原文件数:4756 个(含 1884 个 .ts/.tsx 源文件)

    • 还原方式:提取 cli.js.map 中的 sourcesContent 字段

目录结构

restored-src/src/
├── main.tsx              # CLI 入口
├── tools/                # 工具实现(Bash、FileEdit、Grep、MCP 等 30+ 个)
├── commands/             # 命令实现(commit、review、config 等 40+ 个)
├── services/             # API、MCP、分析等服务
├── utils/                # 工具函数(git、model、auth、env 等)
├── context/              # React Context
├── coordinator/          # 多 Agent 协调模式
├── assistant/            # 助手模式(KAIROS)
├── buddy/                # AI 伴侣 UI
├── remote/               # 远程会话
├── plugins/              # 插件系统
├── skills/               # 技能系统
├── voice/                # 语音交互
└── vim/                  # Vim 模式

声明

    • 本仓库仅用于技术研究与学习,请勿用于商业用途

    • 如有侵权,请联系删除

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容