Skip to content

Commit 736f5a7

Browse files
invalidclaude
andcommitted
feat(v0.2.2): fix slash command naming to /codemap:<cmd> format, remove legacy Node.js CLI
- Rename command names from `codemap-scan` to `scan`, etc., so slash commands become `/codemap:scan` instead of redundant `/codemap:codemap-scan` - Update all references in skills, hooks, and README - Remove legacy Node.js CLI (ccplugin/cli/), superseded by Rust CLI - Bump version to 0.2.2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent baba06c commit 736f5a7

56 files changed

Lines changed: 49 additions & 6674 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"metadata": {
99
"description": "AST-based code graph mapping plugin for Claude Code — scan once, persist structural graph, load compact slices to save ~95% tokens",
10-
"version": "0.2.1"
10+
"version": "0.2.2"
1111
},
1212
"plugins": [
1313
{
1414
"name": "codemap",
1515
"description": "AST-based code graph mapping plugin — scan codebase, persist structural graph, load compact slices in future sessions, saving ~95% tokens compared to re-reading all source files",
16-
"version": "0.2.1",
16+
"version": "0.2.2",
1717
"source": "./ccplugin",
1818
"category": "productivity",
1919
"author": { "name": "killvxk" },

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ After installation, **restart Claude Code** for the plugin to take effect.
101101
重启 Claude Code 后,输入 / After restarting Claude Code, type:
102102

103103
```
104-
/codemap:codemap-scan
104+
/codemap:scan
105105
```
106106

107107
如果插件正确安装,该命令会触发代码扫描流程。
@@ -171,8 +171,8 @@ cd rust-cli && cargo test
171171
# 2. 提交并打 tag,CI 自动构建并发布 / Commit, tag, and let CI build & release
172172
cd ..
173173
git add .
174-
git commit -m "release: v0.2.1"
175-
git tag v0.2.1
174+
git commit -m "release: v0.2.2"
175+
git tag v0.2.2
176176
git push origin main --tags
177177
# GitHub Actions 会自动为所有平台构建并创建 Release
178178
# GitHub Actions will automatically build for all platforms and create a Release
@@ -190,11 +190,11 @@ CodeMap/
190190
│ ├── .claude-plugin/
191191
│ │ └── plugin.json # 插件清单 / Plugin manifest
192192
│ ├── commands/ # 斜杠命令 / Slash commands
193-
│ │ ├── scan.md # /codemap:codemap-scan
194-
│ │ ├── load.md # /codemap:codemap-load
195-
│ │ ├── update.md # /codemap:codemap-update
196-
│ │ ├── query.md # /codemap:codemap-query
197-
│ │ └── impact.md # /codemap:codemap-impact
193+
│ │ ├── scan.md # /codemap:scan
194+
│ │ ├── load.md # /codemap:load
195+
│ │ ├── update.md # /codemap:update
196+
│ │ ├── query.md # /codemap:query
197+
│ │ └── impact.md # /codemap:impact
198198
│ ├── skills/ # 自动触发 Skill / Auto-triggering skill
199199
│ │ └── codemap/SKILL.md # 统一入口,智能路由 / Unified entry, smart routing
200200
│ ├── hooks/ # 事件钩子 / Event hooks
@@ -281,21 +281,21 @@ The `codemap` skill auto-activates based on conversation context and intelligent
281281

282282
| 命令 / Command | 描述 / Description |
283283
|-------|------------|
284-
| `/codemap:codemap-scan` | 全量扫描项目,生成 .codemap/ 图谱 / Full scan, generate .codemap/ graph |
285-
| `/codemap:codemap-load [target]` | 加载图谱到上下文(概览/模块/文件)/ Load graph into context |
286-
| `/codemap:codemap-update` | 增量更新图谱 / Incremental update |
287-
| `/codemap:codemap-query <symbol>` | 查询符号定义和调用关系 / Query symbol definitions and call relations |
288-
| `/codemap:codemap-impact <target>` | 分析变更影响范围 / Analyze change impact |
284+
| `/codemap:scan` | 全量扫描项目,生成 .codemap/ 图谱 / Full scan, generate .codemap/ graph |
285+
| `/codemap:load [target]` | 加载图谱到上下文(概览/模块/文件)/ Load graph into context |
286+
| `/codemap:update` | 增量更新图谱 / Incremental update |
287+
| `/codemap:query <symbol>` | 查询符号定义和调用关系 / Query symbol definitions and call relations |
288+
| `/codemap:impact <target>` | 分析变更影响范围 / Analyze change impact |
289289

290290
### 典型工作流 / Typical Workflow
291291

292292
```
293-
1. 首次使用 / First time: /codemap:codemap-scan → 生成 .codemap/ 图谱
293+
1. 首次使用 / First time: /codemap:scan → 生成 .codemap/ 图谱
294294
2. 新会话开始 / New session: (自动检测 / auto-detected) → SessionStart hook 提示加载
295-
3. 加载概览 / Load overview: /codemap:codemap-load → 加载概览 (~500 tokens)
296-
4. 深入模块 / Dive into module: /codemap:codemap-load auth → 加载 auth 模块 (~2-5k tokens)
297-
5. 代码修改后 / After changes: /codemap:codemap-update → 增量更新图谱
298-
6. 重构前 / Before refactor: /codemap:codemap-impact auth → 查看影响范围
295+
3. 加载概览 / Load overview: /codemap:load → 加载概览 (~500 tokens)
296+
4. 深入模块 / Dive into module: /codemap:load auth → 加载 auth 模块 (~2-5k tokens)
297+
5. 代码修改后 / After changes: /codemap:update → 增量更新图谱
298+
6. 重构前 / Before refactor: /codemap:impact auth → 查看影响范围
299299
```
300300

301301
---

ccplugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codemap",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "AST-based code graph mapping plugin for Claude Code — scan once, persist structural graph, load compact slices to save ~95% tokens",
55
"author": {
66
"name": "killvxk",

ccplugin/cli/bin/codegraph.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)