@mycodemap/mycodemap 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +164 -6
- package/README.md +407 -141
- package/dist/cli/commands/ci.d.ts +7 -1
- package/dist/cli/commands/ci.d.ts.map +1 -1
- package/dist/cli/commands/ci.js +38 -0
- package/dist/cli/commands/ci.js.map +1 -1
- package/dist/cli/commands/cycles.d.ts.map +1 -1
- package/dist/cli/commands/cycles.js +2 -0
- package/dist/cli/commands/cycles.js.map +1 -1
- package/dist/cli/commands/export.d.ts +6 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +108 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/generate.d.ts.map +1 -1
- package/dist/cli/commands/generate.js +96 -0
- package/dist/cli/commands/generate.js.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +3 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/logs.d.ts +5 -0
- package/dist/cli/commands/logs.d.ts.map +1 -0
- package/dist/cli/commands/logs.js +189 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/report.d.ts +12 -0
- package/dist/cli/commands/report.d.ts.map +1 -0
- package/dist/cli/commands/report.js +158 -0
- package/dist/cli/commands/report.js.map +1 -0
- package/dist/cli/commands/server.d.ts +9 -0
- package/dist/cli/commands/server.d.ts.map +1 -0
- package/dist/cli/commands/server.js +68 -0
- package/dist/cli/commands/server.js.map +1 -0
- package/dist/cli/commands/watch-foreground.d.ts.map +1 -1
- package/dist/cli/commands/watch-foreground.js +2 -0
- package/dist/cli/commands/watch-foreground.js.map +1 -1
- package/dist/cli/commands/watch.d.ts.map +1 -1
- package/dist/cli/commands/watch.js +2 -0
- package/dist/cli/commands/watch.js.map +1 -1
- package/dist/cli/first-run-guide.d.ts +23 -0
- package/dist/cli/first-run-guide.d.ts.map +1 -0
- package/dist/cli/first-run-guide.js +83 -0
- package/dist/cli/first-run-guide.js.map +1 -0
- package/dist/cli/index.js +85 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/platform-check.d.ts +21 -0
- package/dist/cli/platform-check.d.ts.map +1 -0
- package/dist/cli/platform-check.js +94 -0
- package/dist/cli/platform-check.js.map +1 -0
- package/dist/cli/tree-sitter-check.d.ts +35 -0
- package/dist/cli/tree-sitter-check.d.ts.map +1 -0
- package/dist/cli/tree-sitter-check.js +133 -0
- package/dist/cli/tree-sitter-check.js.map +1 -0
- package/dist/cli/utils/sanitize.d.ts +54 -0
- package/dist/cli/utils/sanitize.d.ts.map +1 -0
- package/dist/cli/utils/sanitize.js +131 -0
- package/dist/cli/utils/sanitize.js.map +1 -0
- package/dist/cli-new/commands/export.d.ts +15 -0
- package/dist/cli-new/commands/export.d.ts.map +1 -0
- package/dist/cli-new/commands/export.js +107 -0
- package/dist/cli-new/commands/export.js.map +1 -0
- package/dist/cli-new/commands/query.d.ts +14 -0
- package/dist/cli-new/commands/query.d.ts.map +1 -0
- package/dist/cli-new/commands/query.js +120 -0
- package/dist/cli-new/commands/query.js.map +1 -0
- package/dist/cli-new/commands/server.d.ts +13 -0
- package/dist/cli-new/commands/server.d.ts.map +1 -0
- package/dist/cli-new/commands/server.js +94 -0
- package/dist/cli-new/commands/server.js.map +1 -0
- package/dist/cli-new/index.d.ts +11 -0
- package/dist/cli-new/index.d.ts.map +1 -0
- package/dist/cli-new/index.js +63 -0
- package/dist/cli-new/index.js.map +1 -0
- package/dist/cli-new/types/index.d.ts +88 -0
- package/dist/cli-new/types/index.d.ts.map +1 -0
- package/dist/cli-new/types/index.js +7 -0
- package/dist/cli-new/types/index.js.map +1 -0
- package/dist/domain/entities/CodeGraph.d.ts +134 -0
- package/dist/domain/entities/CodeGraph.d.ts.map +1 -0
- package/dist/domain/entities/CodeGraph.js +316 -0
- package/dist/domain/entities/CodeGraph.js.map +1 -0
- package/dist/domain/entities/Dependency.d.ts +78 -0
- package/dist/domain/entities/Dependency.d.ts.map +1 -0
- package/dist/domain/entities/Dependency.js +132 -0
- package/dist/domain/entities/Dependency.js.map +1 -0
- package/dist/domain/entities/Module.d.ts +75 -0
- package/dist/domain/entities/Module.d.ts.map +1 -0
- package/dist/domain/entities/Module.js +151 -0
- package/dist/domain/entities/Module.js.map +1 -0
- package/dist/domain/entities/Project.d.ts +50 -0
- package/dist/domain/entities/Project.d.ts.map +1 -0
- package/dist/domain/entities/Project.js +99 -0
- package/dist/domain/entities/Project.js.map +1 -0
- package/dist/domain/entities/Symbol.d.ts +75 -0
- package/dist/domain/entities/Symbol.d.ts.map +1 -0
- package/dist/domain/entities/Symbol.js +130 -0
- package/dist/domain/entities/Symbol.js.map +1 -0
- package/dist/domain/events/DomainEvent.d.ts +76 -0
- package/dist/domain/events/DomainEvent.d.ts.map +1 -0
- package/dist/domain/events/DomainEvent.js +153 -0
- package/dist/domain/events/DomainEvent.js.map +1 -0
- package/dist/domain/index.d.ts +10 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +18 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/repositories/CodeGraphRepository.d.ts +58 -0
- package/dist/domain/repositories/CodeGraphRepository.d.ts.map +1 -0
- package/dist/domain/repositories/CodeGraphRepository.js +37 -0
- package/dist/domain/repositories/CodeGraphRepository.js.map +1 -0
- package/dist/domain/services/CodeGraphBuilder.d.ts +50 -0
- package/dist/domain/services/CodeGraphBuilder.d.ts.map +1 -0
- package/dist/domain/services/CodeGraphBuilder.js +121 -0
- package/dist/domain/services/CodeGraphBuilder.js.map +1 -0
- package/dist/infrastructure/parser/implementations/GoParser.d.ts +25 -0
- package/dist/infrastructure/parser/implementations/GoParser.d.ts.map +1 -0
- package/dist/infrastructure/parser/implementations/GoParser.js +158 -0
- package/dist/infrastructure/parser/implementations/GoParser.js.map +1 -0
- package/dist/infrastructure/parser/implementations/PythonParser.d.ts +30 -0
- package/dist/infrastructure/parser/implementations/PythonParser.d.ts.map +1 -0
- package/dist/infrastructure/parser/implementations/PythonParser.js +201 -0
- package/dist/infrastructure/parser/implementations/PythonParser.js.map +1 -0
- package/dist/infrastructure/parser/implementations/TypeScriptParser.d.ts +63 -0
- package/dist/infrastructure/parser/implementations/TypeScriptParser.d.ts.map +1 -0
- package/dist/infrastructure/parser/implementations/TypeScriptParser.js +420 -0
- package/dist/infrastructure/parser/implementations/TypeScriptParser.js.map +1 -0
- package/dist/infrastructure/parser/index.d.ts +13 -0
- package/dist/infrastructure/parser/index.d.ts.map +1 -0
- package/dist/infrastructure/parser/index.js +32 -0
- package/dist/infrastructure/parser/index.js.map +1 -0
- package/dist/infrastructure/parser/interfaces/ParserBase.d.ts +124 -0
- package/dist/infrastructure/parser/interfaces/ParserBase.d.ts.map +1 -0
- package/dist/infrastructure/parser/interfaces/ParserBase.js +200 -0
- package/dist/infrastructure/parser/interfaces/ParserBase.js.map +1 -0
- package/dist/infrastructure/parser/registry/ParserRegistry.d.ts +68 -0
- package/dist/infrastructure/parser/registry/ParserRegistry.d.ts.map +1 -0
- package/dist/infrastructure/parser/registry/ParserRegistry.js +116 -0
- package/dist/infrastructure/parser/registry/ParserRegistry.js.map +1 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.d.ts +44 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.d.ts.map +1 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.js +129 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.js.map +1 -0
- package/dist/infrastructure/repositories/index.d.ts +3 -0
- package/dist/infrastructure/repositories/index.d.ts.map +1 -0
- package/dist/infrastructure/repositories/index.js +7 -0
- package/dist/infrastructure/repositories/index.js.map +1 -0
- package/dist/infrastructure/storage/StorageFactory.d.ts +53 -0
- package/dist/infrastructure/storage/StorageFactory.d.ts.map +1 -0
- package/dist/infrastructure/storage/StorageFactory.js +150 -0
- package/dist/infrastructure/storage/StorageFactory.js.map +1 -0
- package/dist/infrastructure/storage/adapters/FileSystemStorage.d.ts +52 -0
- package/dist/infrastructure/storage/adapters/FileSystemStorage.d.ts.map +1 -0
- package/dist/infrastructure/storage/adapters/FileSystemStorage.js +315 -0
- package/dist/infrastructure/storage/adapters/FileSystemStorage.js.map +1 -0
- package/dist/infrastructure/storage/adapters/KuzuDBStorage.d.ts +52 -0
- package/dist/infrastructure/storage/adapters/KuzuDBStorage.d.ts.map +1 -0
- package/dist/infrastructure/storage/adapters/KuzuDBStorage.js +235 -0
- package/dist/infrastructure/storage/adapters/KuzuDBStorage.js.map +1 -0
- package/dist/infrastructure/storage/adapters/MemoryStorage.d.ts +37 -0
- package/dist/infrastructure/storage/adapters/MemoryStorage.d.ts.map +1 -0
- package/dist/infrastructure/storage/adapters/MemoryStorage.js +229 -0
- package/dist/infrastructure/storage/adapters/MemoryStorage.js.map +1 -0
- package/dist/infrastructure/storage/adapters/Neo4jStorage.d.ts +49 -0
- package/dist/infrastructure/storage/adapters/Neo4jStorage.d.ts.map +1 -0
- package/dist/infrastructure/storage/adapters/Neo4jStorage.js +222 -0
- package/dist/infrastructure/storage/adapters/Neo4jStorage.js.map +1 -0
- package/dist/infrastructure/storage/index.d.ts +6 -0
- package/dist/infrastructure/storage/index.d.ts.map +1 -0
- package/dist/infrastructure/storage/index.js +13 -0
- package/dist/infrastructure/storage/index.js.map +1 -0
- package/dist/infrastructure/storage/interfaces/StorageBase.d.ts +76 -0
- package/dist/infrastructure/storage/interfaces/StorageBase.d.ts.map +1 -0
- package/dist/infrastructure/storage/interfaces/StorageBase.js +116 -0
- package/dist/infrastructure/storage/interfaces/StorageBase.js.map +1 -0
- package/dist/interface/config/index.d.ts +102 -0
- package/dist/interface/config/index.d.ts.map +1 -0
- package/dist/interface/config/index.js +7 -0
- package/dist/interface/config/index.js.map +1 -0
- package/dist/interface/types/index.d.ts +425 -0
- package/dist/interface/types/index.d.ts.map +1 -0
- package/dist/interface/types/index.js +8 -0
- package/dist/interface/types/index.js.map +1 -0
- package/dist/interface/types/parser.d.ts +103 -0
- package/dist/interface/types/parser.d.ts.map +1 -0
- package/dist/interface/types/parser.js +7 -0
- package/dist/interface/types/parser.js.map +1 -0
- package/dist/interface/types/storage.d.ts +98 -0
- package/dist/interface/types/storage.d.ts.map +1 -0
- package/dist/interface/types/storage.js +7 -0
- package/dist/interface/types/storage.js.map +1 -0
- package/dist/orchestrator/test-linker.js +1 -1
- package/dist/orchestrator/test-linker.js.map +1 -1
- package/dist/server/CodeMapServer.d.ts +51 -0
- package/dist/server/CodeMapServer.d.ts.map +1 -0
- package/dist/server/CodeMapServer.js +146 -0
- package/dist/server/CodeMapServer.js.map +1 -0
- package/dist/server/handlers/AnalysisHandler.d.ts +82 -0
- package/dist/server/handlers/AnalysisHandler.d.ts.map +1 -0
- package/dist/server/handlers/AnalysisHandler.js +196 -0
- package/dist/server/handlers/AnalysisHandler.js.map +1 -0
- package/dist/server/handlers/QueryHandler.d.ts +57 -0
- package/dist/server/handlers/QueryHandler.d.ts.map +1 -0
- package/dist/server/handlers/QueryHandler.js +260 -0
- package/dist/server/handlers/QueryHandler.js.map +1 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +13 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/routes/api.d.ts +8 -0
- package/dist/server/routes/api.d.ts.map +1 -0
- package/dist/server/routes/api.js +372 -0
- package/dist/server/routes/api.js.map +1 -0
- package/dist/server/types/index.d.ts +171 -0
- package/dist/server/types/index.d.ts.map +1 -0
- package/dist/server/types/index.js +7 -0
- package/dist/server/types/index.js.map +1 -0
- package/dist/types/index.d.ts +6 -372
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +9 -3
- package/dist/types/index.js.map +1 -1
- package/docs/AI_ASSISTANT_SETUP.md +811 -0
- package/docs/PUBLISHING.md +162 -0
- package/docs/README.md +37 -0
- package/docs/SETUP_GUIDE.md +493 -0
- package/docs/ai-guide/COMMANDS.md +369 -0
- package/docs/ai-guide/INTEGRATION.md +513 -0
- package/docs/ai-guide/OUTPUT.md +465 -0
- package/docs/ai-guide/PATTERNS.md +409 -0
- package/docs/ai-guide/PROMPTS.md +414 -0
- package/docs/ai-guide/QUICKSTART.md +114 -0
- package/docs/ai-guide/README.md +66 -0
- package/docs/archive/AI_INTEGRATION_GUIDE_ARCHIVED.md +391 -0
- package/docs/archive/ARCHIVE.md +39 -0
- package/docs/archive/MYCLAUDE_GUIDE.md +305 -0
- package/docs/archive/PUBLISH_NPM_DESIGN_V1.md +1699 -0
- package/docs/archive/PUBLISH_NPM_DESIGN_V2.md +396 -0
- package/docs/archive/README.md +29 -0
- package/docs/archive/TASK_DESIGN_COVERAGE_REPORT.md +320 -0
- package/docs/archive/TEST_SUMMARY.md +140 -0
- package/docs/archive/comprehensive_test_report.md +337 -0
- package/docs/archive/design-docs/CI_GATEWAY_DESIGN.md +790 -0
- package/docs/archive/design-docs/PUBLISH_NPM_DESIGN_FINAL.md +491 -0
- package/docs/archive/design-docs/REFACTOR_ARCHITECTURE_OVERVIEW.md +558 -0
- package/docs/archive/design-docs/REFACTOR_CONFIDENCE_DESIGN.md +250 -0
- package/docs/archive/design-docs/REFACTOR_GIT_ANALYZER_DESIGN.md +791 -0
- package/docs/archive/design-docs/REFACTOR_ORCHESTRATOR_DESIGN.md +1071 -0
- package/docs/archive/design-docs/REFACTOR_RESULT_FUSION_DESIGN.md +321 -0
- package/docs/archive/design-docs/REFACTOR_TEST_LINKER_DESIGN.md +317 -0
- package/docs/archive/myclaude.md +1084 -0
- package/docs/archive/plans/2026-03-14-go-language-support-design.md +92 -0
- package/docs/archive/product-specs/REFACTOR_REQUIREMENTS.md +976 -0
- package/docs/archive/scenario-2-deps-analysis.md +353 -0
- package/docs/archive/test-report-symbol-search.md +384 -0
- package/docs/archive/test-scenario-4-complexity-analysis.md +460 -0
- package/docs/archive/test_report_scenario5.md +615 -0
- package/docs/archive/test_scenario_3_impact_analysis_report.md +520 -0
- package/docs/design-docs/README.md +26 -0
- package/docs/exec-plans/MVP3-IMPLEMENTATION-ROADMAP.md +524 -0
- package/docs/exec-plans/README.md +29 -0
- package/docs/exec-plans/active/.gitkeep +0 -0
- package/docs/exec-plans/completed/.gitkeep +0 -0
- package/docs/exec-plans/completed/2026-03-03-deps-path-extension-fix.md +186 -0
- package/docs/exec-plans/completed/2026-03-03-post-task-plan.md +135 -0
- package/docs/exec-plans/completed/harness-engineering-rollout.md +184 -0
- package/docs/exec-plans/tech-debt/.gitkeep +0 -0
- package/docs/exec-plans/tech-debt/2026-03-15-lint-guardrail-gap.md +30 -0
- package/docs/generated/README.md +19 -0
- package/docs/product-specs/MVP3-ARCHITECTURE-COMPARISON.md +504 -0
- package/docs/product-specs/MVP3-ARCHITECTURE-REDESIGN-PRD.md +322 -0
- package/docs/product-specs/MVP3-ARCHITECTURE-REDESIGN-TECH-PRD.md +1374 -0
- package/docs/product-specs/README.md +22 -0
- package/docs/references/README.md +15 -0
- package/docs/references/tmp.md +527 -0
- package/docs/rules/README.md +16 -0
- package/docs/rules/architecture-guardrails.md +349 -0
- package/docs/rules/code-quality-redlines.md +321 -0
- package/docs/rules/deployment.md +23 -0
- package/docs/rules/engineering-with-codex-openai.md +202 -0
- package/docs/rules/testing.md +73 -0
- package/docs/rules/validation.md +39 -0
- package/examples/README.md +61 -0
- package/examples/claude/codemap-skill.md +94 -0
- package/examples/codex/codemap-agent.md +66 -0
- package/examples/copilot/copilot-instructions.md +24 -0
- package/examples/kimi/codemap-skill.md +92 -0
- package/package.json +22 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,16 +2,174 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [0.
|
|
5
|
+
## [0.2.0] - 2026-03-17 - MVP3 Architecture Release
|
|
6
|
+
|
|
7
|
+
### 🏗️ MVP3 分层架构重构
|
|
8
|
+
|
|
9
|
+
CodeMap 完成重大架构升级,采用清晰的分层架构设计:Interface → Infrastructure → Domain → Server → CLI
|
|
10
|
+
|
|
11
|
+
#### Interface Layer
|
|
12
|
+
- 核心类型定义中心 (`src/interface/types/`)
|
|
13
|
+
- 存储接口契约 (`IStorage`, `IStorageFactory`)
|
|
14
|
+
- 解析器接口契约 (`ILanguageParser`, `IParserRegistry`)
|
|
15
|
+
|
|
16
|
+
#### Infrastructure Layer
|
|
17
|
+
- **存储抽象**: 支持多种存储后端
|
|
18
|
+
- `FileSystemStorage` - 文件系统存储(默认)
|
|
19
|
+
- `MemoryStorage` - 内存存储(测试用)
|
|
20
|
+
- `KuzuDBStorage` - KùzuDB 图数据库(可选)
|
|
21
|
+
- `Neo4jStorage` - Neo4j 图数据库(可选)
|
|
22
|
+
- `StorageFactory` - 自动选择存储后端
|
|
23
|
+
- **解析器抽象**: 多语言支持架构
|
|
24
|
+
- `ParserBase` - 解析器抽象基类
|
|
25
|
+
- `ParserRegistry` - 解析器注册表
|
|
26
|
+
- `TypeScriptParser` - TypeScript/JavaScript 解析
|
|
27
|
+
- `GoParser` - Go 语言解析
|
|
28
|
+
- `PythonParser` - Python 解析
|
|
29
|
+
- **仓库实现**: `CodeGraphRepositoryImpl` 连接 Domain 和 Infrastructure
|
|
30
|
+
|
|
31
|
+
#### Domain Layer
|
|
32
|
+
- 领域实体: `Project`, `Module`, `Symbol`, `Dependency`
|
|
33
|
+
- 聚合根: `CodeGraph`
|
|
34
|
+
- 领域服务: `CodeGraphBuilder`
|
|
35
|
+
- 领域事件: `DomainEvent` 及其子类
|
|
36
|
+
- 仓库接口: `CodeGraphRepository`
|
|
37
|
+
|
|
38
|
+
#### Server Layer
|
|
39
|
+
- HTTP API 服务器 (`CodeMapServer`)
|
|
40
|
+
- RESTful 端点设计
|
|
41
|
+
- `QueryHandler` - 查询处理
|
|
42
|
+
- `AnalysisHandler` - 分析处理
|
|
43
|
+
- 支持 CORS、健康检查、错误处理
|
|
44
|
+
|
|
45
|
+
#### CLI Layer (MVP3 集成)
|
|
46
|
+
- 新增 `server` 命令 - 启动 HTTP API 服务器
|
|
47
|
+
- 新增 `export` 命令 - 导出代码图到多种格式
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
|
|
51
|
+
#### New CLI Commands
|
|
52
|
+
- `mycodemap server` - 启动 HTTP API 服务器 (`-p`, `--host`, `--cors`, `--open`)
|
|
53
|
+
- `mycodemap export` - 导出代码图 (`json`, `graphml`, `dot`, `mermaid`)
|
|
54
|
+
|
|
55
|
+
#### HTTP API Endpoints
|
|
56
|
+
- `GET /api/v1/health` - 健康检查
|
|
57
|
+
- `GET /api/v1/stats` - 项目统计
|
|
58
|
+
- `GET /api/v1/search/symbols?q=` - 符号搜索
|
|
59
|
+
- `GET /api/v1/modules/:id` - 模块详情
|
|
60
|
+
- `GET /api/v1/symbols/:id` - 符号详情
|
|
61
|
+
- `POST /api/v1/analysis/impact` - 影响分析
|
|
62
|
+
- `GET /api/v1/analysis/cycles` - 循环依赖检测
|
|
63
|
+
- `GET /api/v1/graph` - 依赖图数据
|
|
64
|
+
- `GET /api/v1/export/:format` - 数据导出
|
|
65
|
+
|
|
66
|
+
#### Dependencies
|
|
67
|
+
- `hono` - 轻量级 HTTP 框架
|
|
68
|
+
- `@hono/node-server` - Node.js 服务器适配器
|
|
69
|
+
|
|
70
|
+
### Test Coverage
|
|
71
|
+
- 新增 37 个单元测试,总计 **742 个测试全部通过**
|
|
72
|
+
- Domain 实体测试 (Project, Module)
|
|
73
|
+
- Parser 测试 (ParserRegistry, TypeScriptParser)
|
|
74
|
+
- Repository 测试 (CodeGraphRepositoryImpl)
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## [0.1.2] - 2026-03-20
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
- 文档同步更新:CLI 命令列表、MVP3 架构描述、代码示例全面刷新
|
|
82
|
+
|
|
83
|
+
## [0.1.1] - 2026-03-07
|
|
6
84
|
|
|
7
85
|
### Added
|
|
8
|
-
-
|
|
9
|
-
-
|
|
86
|
+
- P1 增强功能完整发布
|
|
87
|
+
- `report` 命令 - 生成代码地图分析报告
|
|
88
|
+
- `logs` 命令 - 日志管理(list/export/clear)
|
|
89
|
+
- 敏感数据脱敏工具
|
|
90
|
+
- 平台检测与首次运行引导
|
|
91
|
+
- tree-sitter 按需检测
|
|
92
|
+
|
|
93
|
+
## [0.1.0] - 2026-03-07
|
|
94
|
+
|
|
95
|
+
### Added
|
|
96
|
+
|
|
97
|
+
#### Core Features
|
|
98
|
+
- Initial release of @mycodemap/mycodemap
|
|
99
|
+
- Dual parsing mode: `fast` (regex) and `smart` (TypeScript AST)
|
|
10
100
|
- Multi-format output: AI_MAP.md, CONTEXT.md, codemap.json
|
|
11
101
|
- Dependency graph visualization (Mermaid format)
|
|
12
102
|
- Incremental caching with file hash-based LRU
|
|
13
103
|
- Watch mode for file change detection
|
|
14
104
|
- Complexity analysis (cyclomatic, cognitive complexity, maintainability)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
105
|
+
|
|
106
|
+
#### Orchestration Layer
|
|
107
|
+
- Intent routing for analyze operations
|
|
108
|
+
- Confidence scoring system
|
|
109
|
+
- Result fusion from multiple tools
|
|
110
|
+
- Tool orchestrator for coordinating adapters
|
|
111
|
+
- Test linker for associating tests with source code
|
|
112
|
+
- Git analyzer for repository insights
|
|
113
|
+
- File header scanner for compliance checks
|
|
114
|
+
- Commit validator for CI gateway
|
|
115
|
+
|
|
116
|
+
#### CI Gateway
|
|
117
|
+
- Commit format validation (`[TAG] scope: message`)
|
|
118
|
+
- File count limit enforcement (≤10 files per commit)
|
|
119
|
+
- File header checks (`[META]` and `[WHY]` tags required)
|
|
120
|
+
- Risk assessment for changes
|
|
121
|
+
- Output contract validation
|
|
122
|
+
|
|
123
|
+
#### Workflow Orchestration
|
|
124
|
+
- Stage management for complex operations
|
|
125
|
+
- Context persistence across sessions
|
|
126
|
+
- Checkpoint mechanism for resumable workflows
|
|
127
|
+
- CI executor integration
|
|
128
|
+
|
|
129
|
+
#### CLI Commands
|
|
130
|
+
- `mycodemap init` - Initialize configuration
|
|
131
|
+
- `mycodemap generate` - Generate code map
|
|
132
|
+
- `mycodemap query` - Query symbols/modules/dependencies
|
|
133
|
+
- `mycodemap deps` - Analyze dependencies
|
|
134
|
+
- `mycodemap cycles` - Detect circular dependencies
|
|
135
|
+
- `mycodemap complexity` - Analyze code complexity
|
|
136
|
+
- `mycodemap impact` - Analyze change impact
|
|
137
|
+
- `mycodemap analyze` - Unified analysis with intent routing
|
|
138
|
+
- `mycodemap ci` - CI gateway commands
|
|
139
|
+
- `mycodemap workflow` - Workflow orchestration
|
|
140
|
+
- `mycodemap watch` - Watch mode for continuous analysis
|
|
141
|
+
- `mycodemap report` - Generate analysis reports with log aggregation
|
|
142
|
+
- `mycodemap logs` - Manage runtime logs (list/export/clear)
|
|
143
|
+
|
|
144
|
+
#### Platform & Compatibility
|
|
145
|
+
- Platform support detection (macOS, Linux, Windows)
|
|
146
|
+
- Node.js version validation (>=18.0.0)
|
|
147
|
+
- Tree-sitter availability check (on-demand)
|
|
148
|
+
- First-run guide for new users
|
|
149
|
+
- **Backward compatibility**: `codemap` command alias
|
|
150
|
+
- **Config migration**: Auto-detect old `.codemap` directory
|
|
151
|
+
- **Environment variables**: Dual prefix support (`MYCODEMAP_*` / `CODEMAP_*`)
|
|
152
|
+
|
|
153
|
+
#### Utilities
|
|
154
|
+
- Sensitive data sanitization for reports (API keys, tokens, passwords)
|
|
155
|
+
- Runtime logging with rotation and retention
|
|
156
|
+
- Path resolution with legacy fallback
|
|
157
|
+
|
|
158
|
+
#### Package & Distribution
|
|
159
|
+
- Scoped package: `@mycodemap/mycodemap`
|
|
160
|
+
- Dual CLI entry: `mycodemap` (primary) / `codemap` (legacy alias)
|
|
161
|
+
- OIDC trusted publishing workflow
|
|
162
|
+
- Pack validation script
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Migration Notes
|
|
167
|
+
|
|
168
|
+
### From CodeMap to MyCodeMap
|
|
169
|
+
|
|
170
|
+
1. **Command alias**: Both `mycodemap` and `codemap` work during transition period
|
|
171
|
+
2. **Config file**: Auto-detects `mycodemap.config.json` or `codemap.config.json`
|
|
172
|
+
3. **Output directory**: Auto-detects `.mycodemap` or `.codemap`
|
|
173
|
+
4. **Environment variables**: Both `MYCODEMAP_*` and `CODEMAP_*` are supported (new prefix preferred)
|
|
174
|
+
|
|
175
|
+
See full documentation in [README.md](./README.md) for detailed usage.
|