Skip to content

Commit 9d673c0

Browse files
invalidclaude
andcommitted
fix(v0.2.3): fix command namespacing and hooks.json format
- Remove `name:` from command frontmatter so Claude Code auto-namespaces commands as /codemap:scan, /codemap:load, etc. - Fix hooks.json: change `hooks` from array to object (record) format to match Claude Code plugin spec - Bump version to 0.2.3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 736f5a7 commit 9d673c0

8 files changed

Lines changed: 15 additions & 19 deletions

File tree

.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.2"
10+
"version": "0.2.3"
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.2",
16+
"version": "0.2.3",
1717
"source": "./ccplugin",
1818
"category": "productivity",
1919
"author": { "name": "killvxk" },

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.2",
3+
"version": "0.2.3",
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/commands/impact.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
name: impact
32
description: 分析修改某个模块或文件的影响范围,用于重构前的风险评估
43
arguments:
54
- name: target

ccplugin/commands/load.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
name: load
32
description: 从 .codemap/ 加载代码图谱到当前会话上下文,支持加载概览、指定模块或文件
43
arguments:
54
- name: target

ccplugin/commands/query.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
name: query
32
description: 在代码图谱中查询函数、类、类型的定义位置和调用关系
43
arguments:
54
- name: symbol

ccplugin/commands/scan.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
name: scan
32
description: 全量扫描项目代码,生成 AST 结构化图谱到 .codemap/ 目录
43
arguments:
54
- name: dir

ccplugin/commands/update.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
name: update
32
description: 增量更新代码图谱,只重新解析变更的文件
43
---
54

ccplugin/hooks/hooks.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
2-
"hooks": [
3-
{
4-
"event": "SessionStart",
5-
"hooks": [
6-
{
7-
"type": "command",
8-
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-codemap.sh"
9-
}
10-
]
11-
}
12-
]
2+
"hooks": {
3+
"SessionStart": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-codemap.sh"
9+
}
10+
]
11+
}
12+
]
13+
}
1314
}

0 commit comments

Comments
 (0)