@mycodemap/mycodemap 0.1.1 → 0.3.4
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 +163 -0
- package/README.md +241 -67
- 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/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/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/ship/analyzer.d.ts +26 -0
- package/dist/cli/commands/ship/analyzer.d.ts.map +1 -0
- package/dist/cli/commands/ship/analyzer.js +143 -0
- package/dist/cli/commands/ship/analyzer.js.map +1 -0
- package/dist/cli/commands/ship/checker.d.ts +20 -0
- package/dist/cli/commands/ship/checker.d.ts.map +1 -0
- package/dist/cli/commands/ship/checker.js +86 -0
- package/dist/cli/commands/ship/checker.js.map +1 -0
- package/dist/cli/commands/ship/index.d.ts +17 -0
- package/dist/cli/commands/ship/index.d.ts.map +1 -0
- package/dist/cli/commands/ship/index.js +51 -0
- package/dist/cli/commands/ship/index.js.map +1 -0
- package/dist/cli/commands/ship/monitor.d.ts +19 -0
- package/dist/cli/commands/ship/monitor.d.ts.map +1 -0
- package/dist/cli/commands/ship/monitor.js +105 -0
- package/dist/cli/commands/ship/monitor.js.map +1 -0
- package/dist/cli/commands/ship/pipeline.d.ts +23 -0
- package/dist/cli/commands/ship/pipeline.d.ts.map +1 -0
- package/dist/cli/commands/ship/pipeline.js +146 -0
- package/dist/cli/commands/ship/pipeline.js.map +1 -0
- package/dist/cli/commands/ship/publisher.d.ts +11 -0
- package/dist/cli/commands/ship/publisher.d.ts.map +1 -0
- package/dist/cli/commands/ship/publisher.js +75 -0
- package/dist/cli/commands/ship/publisher.js.map +1 -0
- package/dist/cli/commands/ship/rules/confidence-rules.d.ts +48 -0
- package/dist/cli/commands/ship/rules/confidence-rules.d.ts.map +1 -0
- package/dist/cli/commands/ship/rules/confidence-rules.js +122 -0
- package/dist/cli/commands/ship/rules/confidence-rules.js.map +1 -0
- package/dist/cli/commands/ship/rules/quality-rules.d.ts +25 -0
- package/dist/cli/commands/ship/rules/quality-rules.d.ts.map +1 -0
- package/dist/cli/commands/ship/rules/quality-rules.js +134 -0
- package/dist/cli/commands/ship/rules/quality-rules.js.map +1 -0
- package/dist/cli/commands/ship/rules/version-rules.d.ts +24 -0
- package/dist/cli/commands/ship/rules/version-rules.d.ts.map +1 -0
- package/dist/cli/commands/ship/rules/version-rules.js +75 -0
- package/dist/cli/commands/ship/rules/version-rules.js.map +1 -0
- package/dist/cli/commands/ship/versioner.d.ts +12 -0
- package/dist/cli/commands/ship/versioner.d.ts.map +1 -0
- package/dist/cli/commands/ship/versioner.js +92 -0
- package/dist/cli/commands/ship/versioner.js.map +1 -0
- package/dist/cli/index.js +31 -1
- package/dist/cli/index.js.map +1 -1
- 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 +68 -0
- package/docs/PUBLISHING.md +472 -0
- package/docs/README.md +37 -0
- package/docs/SETUP_GUIDE.md +91 -5
- package/docs/ai-guide/COMMANDS.md +403 -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 +7 -1
- package/docs/archive/ARCHIVE.md +39 -0
- package/docs/archive/MYCLAUDE_GUIDE.md +305 -0
- package/docs/archive/PUBLISH_NPM_DESIGN_V1.md +6 -0
- package/docs/archive/PUBLISH_NPM_DESIGN_V2.md +6 -0
- package/docs/archive/README.md +29 -0
- package/docs/archive/TASK_DESIGN_COVERAGE_REPORT.md +6 -0
- package/docs/archive/TEST_SUMMARY.md +140 -0
- package/docs/archive/comprehensive_test_report.md +337 -0
- package/docs/{CI_GATEWAY_DESIGN.md → archive/design-docs/CI_GATEWAY_DESIGN.md} +6 -0
- package/docs/{PUBLISH_NPM_DESIGN_FINAL.md → archive/design-docs/PUBLISH_NPM_DESIGN_FINAL.md} +7 -1
- package/docs/{REFACTOR_ARCHITECTURE_OVERVIEW.md → archive/design-docs/REFACTOR_ARCHITECTURE_OVERVIEW.md} +8 -2
- package/docs/{REFACTOR_CONFIDENCE_DESIGN.md → archive/design-docs/REFACTOR_CONFIDENCE_DESIGN.md} +6 -0
- package/docs/{REFACTOR_GIT_ANALYZER_DESIGN.md → archive/design-docs/REFACTOR_GIT_ANALYZER_DESIGN.md} +8 -2
- package/docs/{REFACTOR_ORCHESTRATOR_DESIGN.md → archive/design-docs/REFACTOR_ORCHESTRATOR_DESIGN.md} +6 -0
- package/docs/{REFACTOR_RESULT_FUSION_DESIGN.md → archive/design-docs/REFACTOR_RESULT_FUSION_DESIGN.md} +6 -0
- package/docs/{REFACTOR_TEST_LINKER_DESIGN.md → archive/design-docs/REFACTOR_TEST_LINKER_DESIGN.md} +6 -0
- package/docs/archive/myclaude.md +1084 -0
- package/docs/archive/plans/2026-03-14-go-language-support-design.md +92 -0
- package/docs/{REFACTOR_REQUIREMENTS.md → archive/product-specs/REFACTOR_REQUIREMENTS.md} +11 -5
- package/docs/archive/scenario-2-deps-analysis.md +353 -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/{plans/POST_TASK_PLAN.md → exec-plans/completed/2026-03-03-post-task-plan.md} +9 -3
- 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/pre-release-checklist.md +426 -0
- package/docs/rules/testing.md +73 -0
- package/docs/rules/validation.md +39 -0
- package/package.json +26 -7
- package/scripts/.githooks/commit-msg +31 -0
- package/scripts/.githooks/pre-commit +55 -0
- package/scripts/benchmark.ts +209 -0
- package/scripts/hooks/commit-msg +24 -0
- package/scripts/hooks/install-hooks.sh +29 -0
- package/scripts/hooks/pre-commit +60 -0
- package/scripts/pre-release-check.js +717 -0
- package/scripts/release.sh +142 -0
- package/scripts/run-benchmark.sh +29 -0
- package/scripts/validate-ai-docs.js +294 -0
- package/scripts/validate-docs.js +238 -0
- package/scripts/validate-pack.js +86 -0
- package/dist/ai/claude.d.ts +0 -38
- package/dist/ai/claude.d.ts.map +0 -1
- package/dist/ai/claude.js +0 -169
- package/dist/ai/claude.js.map +0 -1
- package/dist/ai/codex.d.ts +0 -38
- package/dist/ai/codex.d.ts.map +0 -1
- package/dist/ai/codex.js +0 -169
- package/dist/ai/codex.js.map +0 -1
- package/dist/ai/factory.d.ts +0 -48
- package/dist/ai/factory.d.ts.map +0 -1
- package/dist/ai/factory.js +0 -95
- package/dist/ai/factory.js.map +0 -1
- package/dist/ai/index.d.ts +0 -12
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/index.js +0 -29
- package/dist/ai/index.js.map +0 -1
- package/dist/ai/provider.d.ts +0 -70
- package/dist/ai/provider.d.ts.map +0 -1
- package/dist/ai/provider.js +0 -31
- package/dist/ai/provider.js.map +0 -1
- package/dist/ai/subagent-caller.d.ts +0 -90
- package/dist/ai/subagent-caller.d.ts.map +0 -1
- package/dist/ai/subagent-caller.js +0 -280
- package/dist/ai/subagent-caller.js.map +0 -1
- package/dist/ai/types.d.ts +0 -70
- package/dist/ai/types.d.ts.map +0 -1
- package/dist/ai/types.js +0 -5
- package/dist/ai/types.js.map +0 -1
- package/dist/generator/ai-overview.d.ts +0 -51
- package/dist/generator/ai-overview.d.ts.map +0 -1
- package/dist/generator/ai-overview.js +0 -160
- package/dist/generator/ai-overview.js.map +0 -1
- package/dist/orchestrator/ai-feed-generator.d.ts +0 -210
- package/dist/orchestrator/ai-feed-generator.d.ts.map +0 -1
- package/dist/orchestrator/ai-feed-generator.js +0 -377
- package/dist/orchestrator/ai-feed-generator.js.map +0 -1
- package/docs/OMC_TEAM_DEBUG_REPORT.md +0 -285
- /package/docs/{plans/archive → exec-plans/completed}/2026-03-03-deps-path-extension-fix.md +0 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
# MVP3 架构重构实施路线图
|
|
2
|
+
|
|
3
|
+
> **文档类型**: 执行计划
|
|
4
|
+
> **版本**: v1.2.0
|
|
5
|
+
> **状态**: ✅ COMPLETE
|
|
6
|
+
> **更新日期**: 2026-03-17
|
|
7
|
+
> **完成日期**: 2026-03-17
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. 总体时间线
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
15
|
+
│ MVP3 实施甘特图 │
|
|
16
|
+
├─────────────────────────────────────────────────────────────────────────────┤
|
|
17
|
+
│ │
|
|
18
|
+
│ Week: 1 2 3 4 5 6 7 8 9 10 │
|
|
19
|
+
│ │ │ │ │ │ │ │ │ │ │ │
|
|
20
|
+
│ Phase 1: 架构重构 + Server 层 │
|
|
21
|
+
│ ├─ 接口层设计 [████] │
|
|
22
|
+
│ ├─ 存储抽象层 [████] │
|
|
23
|
+
│ ├─ Server 层 [████████] │
|
|
24
|
+
│ └─ CLI 适配 [ ████] │
|
|
25
|
+
│ │
|
|
26
|
+
│ Phase 2: 多语言支持 │
|
|
27
|
+
│ ├─ Tree-sitter 集成 [████] │
|
|
28
|
+
│ ├─ Python 支持 [ ████████] │
|
|
29
|
+
│ ├─ Java/Rust/C++ [ ████████████] │
|
|
30
|
+
│ └─ 语言注册表 [ ████████] │
|
|
31
|
+
│ │
|
|
32
|
+
│ Phase 3: 图数据库 │
|
|
33
|
+
│ ├─ KùzuDB 集成 [████████] │
|
|
34
|
+
│ ├─ 存储工厂自动选择 [ ████] │
|
|
35
|
+
│ └─ 性能优化 [ ████] │
|
|
36
|
+
│ │
|
|
37
|
+
│ Phase 4: CLI 可视化 │
|
|
38
|
+
│ ├─ 树形可视化 [████████] │
|
|
39
|
+
│ ├─ ASCII 依赖图 [ ████] │
|
|
40
|
+
│ ├─ 热力图 [ ████] │
|
|
41
|
+
│ └─ 进度条/Spinner [████████████████] (贯穿全程) │
|
|
42
|
+
│ │
|
|
43
|
+
│ Phase 5: 集成测试 │
|
|
44
|
+
│ ├─ 单元测试 [████████████████████████] │
|
|
45
|
+
│ ├─ 集成测试 [████████████] │
|
|
46
|
+
│ └─ 回归测试 [ ████████] │
|
|
47
|
+
│ │
|
|
48
|
+
└─────────────────────────────────────────────────────────────────────────────┘
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 2. Phase 1: 架构重构 + Server 层 (Week 1-4)
|
|
54
|
+
|
|
55
|
+
### Week 1: 接口层 + 存储抽象基础
|
|
56
|
+
|
|
57
|
+
**目标**: 建立分层基础,定义核心接口
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
Day 1-2: Interface Layer
|
|
61
|
+
├── src/interface/types/index.ts (从 src/types 迁移)
|
|
62
|
+
├── src/interface/types/storage.ts (新增)
|
|
63
|
+
├── src/interface/types/parser.ts (新增)
|
|
64
|
+
└── src/interface/config/index.ts (新增)
|
|
65
|
+
|
|
66
|
+
Day 3-4: Storage Abstraction - Interface
|
|
67
|
+
├── src/infrastructure/storage/interfaces/IStorage.ts
|
|
68
|
+
└── src/infrastructure/storage/StorageFactory.ts (基础)
|
|
69
|
+
|
|
70
|
+
Day 5: FileSystem Storage 迁移
|
|
71
|
+
└── src/infrastructure/storage/implementations/FileSystemStorage.ts
|
|
72
|
+
(从现有代码提取,实现 IStorage)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
**验收标准**:
|
|
76
|
+
- [x] 所有类型定义迁移到 `interface/` 目录
|
|
77
|
+
- [x] `FileSystemStorage` 实现 `IStorage` 接口
|
|
78
|
+
- [x] 单元测试通过
|
|
79
|
+
- [x] ESLint Guardrail 配置完成
|
|
80
|
+
|
|
81
|
+
**状态**: ✅ 已完成 (2026-03-17)
|
|
82
|
+
|
|
83
|
+
### Week 2: Domain Layer + Server Layer 基础
|
|
84
|
+
|
|
85
|
+
**目标**: 核心业务逻辑迁移到 Domain,建立 Server 用例框架
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
Day 1-2: Domain Layer - Entities
|
|
89
|
+
├── src/domain/entities/Project.ts
|
|
90
|
+
├── src/domain/entities/Module.ts
|
|
91
|
+
├── src/domain/entities/Symbol.ts
|
|
92
|
+
└── src/domain/entities/Dependency.ts
|
|
93
|
+
|
|
94
|
+
Day 3: Domain Layer - Services
|
|
95
|
+
└── src/domain/services/AnalysisService.ts
|
|
96
|
+
(从 src/core/analyzer.ts 重构)
|
|
97
|
+
|
|
98
|
+
Day 4-5: Server Layer - Use Cases
|
|
99
|
+
├── src/server/dto/GenerateRequest.ts
|
|
100
|
+
├── src/server/dto/GenerateResponse.ts
|
|
101
|
+
├── src/server/usecases/IGenerateCodeMap.ts
|
|
102
|
+
└── src/server/usecases/GenerateCodeMap.ts
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**验收标准**:
|
|
106
|
+
- [x] Domain Layer 实体完整 (Project, Module, Symbol, Dependency)
|
|
107
|
+
- [x] CodeGraphBuilder 服务实现
|
|
108
|
+
- [x] DomainEvent 系统建立
|
|
109
|
+
- [x] CodeGraphRepository 接口定义
|
|
110
|
+
|
|
111
|
+
**状态**: ✅ 已完成 (2026-03-17)
|
|
112
|
+
|
|
113
|
+
### Week 3: Server Layer 完善 + Parser Abstraction
|
|
114
|
+
|
|
115
|
+
**目标**: 完成核心用例,建立解析器抽象
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
Day 1-2: Server Layer - 更多用例
|
|
119
|
+
├── src/server/usecases/IQuerySymbol.ts
|
|
120
|
+
├── src/server/usecases/QuerySymbol.ts
|
|
121
|
+
├── src/server/usecases/IAnalyzeImpact.ts
|
|
122
|
+
└── src/server/usecases/AnalyzeImpact.ts
|
|
123
|
+
|
|
124
|
+
Day 3: Server Layer - Services
|
|
125
|
+
└── src/server/services/CodeMapService.ts
|
|
126
|
+
|
|
127
|
+
Day 4-5: Parser Abstraction
|
|
128
|
+
├── src/infrastructure/parser/interfaces/ILanguageParser.ts
|
|
129
|
+
└── src/infrastructure/parser/ParserRegistry.ts
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**验收标准**:
|
|
133
|
+
- [x] Server Layer HTTP API 完整
|
|
134
|
+
- [x] QueryHandler 和 AnalysisHandler 实现
|
|
135
|
+
- [x] RESTful 端点: /api/v1/*
|
|
136
|
+
- [x] 支持 JSON/GraphML/DOT 导出
|
|
137
|
+
|
|
138
|
+
**状态**: ✅ 已完成 (2026-03-17)
|
|
139
|
+
|
|
140
|
+
### Week 4: CLI 适配 + 回归测试
|
|
141
|
+
|
|
142
|
+
**目标**: 适配新架构,确保向后兼容
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
Day 1-2: CLI 适配
|
|
146
|
+
├── src/cli/commands/generate.ts (适配 Server 层)
|
|
147
|
+
├── src/cli/commands/query.ts (适配 Server 层)
|
|
148
|
+
└── src/cli/commands/impact.ts (适配 Server 层)
|
|
149
|
+
|
|
150
|
+
Day 3: 向后兼容层
|
|
151
|
+
└── src/index.ts (导出兼容 API)
|
|
152
|
+
|
|
153
|
+
Day 4-5: 回归测试 + Bugfix
|
|
154
|
+
└── 确保所有现有测试通过
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**验收标准**:
|
|
158
|
+
- [x] 新 CLI 架构在 `src/cli-new/` 建立
|
|
159
|
+
- [x] server/export/query 命令实现
|
|
160
|
+
- [x] 所有架构层整合完成
|
|
161
|
+
- [x] 705 个测试全部通过
|
|
162
|
+
|
|
163
|
+
**状态**: ✅ Phase 1 核心架构完成 (2026-03-17)
|
|
164
|
+
|
|
165
|
+
**待办**:
|
|
166
|
+
- [ ] Parser 抽象层 (计划 7)
|
|
167
|
+
- [ ] 仓库实现 (计划 8)
|
|
168
|
+
- [ ] 新架构测试覆盖 (计划 9)
|
|
169
|
+
- [ ] 旧 CLI 迁移 (计划 10)
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 3. Phase 2: 多语言支持 (Week 3-6)
|
|
174
|
+
|
|
175
|
+
> **注意**: 与 Phase 1 部分重叠,可在 Week 3 开始 Parser 工作
|
|
176
|
+
|
|
177
|
+
### Week 3-4: Tree-sitter 集成 + Python 支持
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
Day 1-2: Tree-sitter 基础
|
|
181
|
+
├── npm install tree-sitter tree-sitter-python
|
|
182
|
+
├── src/infrastructure/parser/TreeSitterParser.ts (基类)
|
|
183
|
+
└── Tree-sitter 初始化逻辑
|
|
184
|
+
|
|
185
|
+
Day 3-5: Python Parser
|
|
186
|
+
└── src/infrastructure/parser/implementations/python/PythonParser.ts
|
|
187
|
+
├── extractImports (解析 import/from)
|
|
188
|
+
├── extractExports (解析 class/def)
|
|
189
|
+
├── extractSymbols (解析函数、类、方法)
|
|
190
|
+
└── buildCallGraph (解析函数调用)
|
|
191
|
+
|
|
192
|
+
Week 4: Python 测试 + 优化
|
|
193
|
+
├── tests/python/fixtures/ (测试固件)
|
|
194
|
+
├── tests/python/PythonParser.test.ts
|
|
195
|
+
└── Python 项目集成测试
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
**验收标准**:
|
|
199
|
+
- [ ] 可正确解析 Django/Flask 项目
|
|
200
|
+
- [ ] Python 符号提取准确率 > 95%
|
|
201
|
+
- [ ] 性能: 1000 文件 < 30s
|
|
202
|
+
|
|
203
|
+
### Week 5: Java + Rust 支持
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
Day 1-2: Java Parser
|
|
207
|
+
└── src/infrastructure/parser/implementations/java/JavaParser.ts
|
|
208
|
+
├── 解析 package/import
|
|
209
|
+
├── 解析 class/interface/enum
|
|
210
|
+
└── 解析 method/field
|
|
211
|
+
|
|
212
|
+
Day 3-4: Rust Parser
|
|
213
|
+
└── src/infrastructure/parser/implementations/rust/RustParser.ts
|
|
214
|
+
├── 解析 mod/use
|
|
215
|
+
├── 解析 fn/struct/impl/trait
|
|
216
|
+
└── 解析 cargo.toml 依赖
|
|
217
|
+
|
|
218
|
+
Day 5: 集成测试
|
|
219
|
+
└── Java/Maven 项目测试
|
|
220
|
+
└── Rust/Cargo 项目测试
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Week 6: C/C++ 支持 + 语言注册表
|
|
224
|
+
|
|
225
|
+
```
|
|
226
|
+
Day 1-3: C/C++ Parser
|
|
227
|
+
└── src/infrastructure/parser/implementations/cpp/CppParser.ts
|
|
228
|
+
├── 解析 #include
|
|
229
|
+
├── 解析 function/class/struct
|
|
230
|
+
└── 解析 macro/typedef
|
|
231
|
+
|
|
232
|
+
Day 4-5: Parser Registry 完善
|
|
233
|
+
├── src/infrastructure/parser/ParserRegistry.ts
|
|
234
|
+
├── 自动根据扩展名选择解析器
|
|
235
|
+
└── 语言特性检测
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Phase 2 验收标准**:
|
|
239
|
+
- [x] 支持 4 种语言 (TS, JS, Go, Python) - Parser 抽象层完成
|
|
240
|
+
- [x] 新架构单元测试 37 个 (总计 742 个测试)
|
|
241
|
+
- [ ] Java, Rust, C/C++ 支持 (V1.1)
|
|
242
|
+
- [ ] 混合语言项目支持
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## 4. Phase 3: 图数据库支持 (Week 5-8)
|
|
247
|
+
|
|
248
|
+
### Week 5-6: KùzuDB 集成
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
Day 1-2: KùzuDB 基础
|
|
252
|
+
├── npm install kuzu
|
|
253
|
+
├── src/infrastructure/storage/implementations/KuzuDBStorage.ts (框架)
|
|
254
|
+
└── 数据库初始化逻辑
|
|
255
|
+
|
|
256
|
+
Day 3-4: Schema 设计
|
|
257
|
+
├── Node Table: Module, Symbol, File
|
|
258
|
+
├── Rel Table: IMPORTS, CALLS, INHERITS, CONTAINS
|
|
259
|
+
└── 索引设计
|
|
260
|
+
|
|
261
|
+
Day 5: CRUD 操作
|
|
262
|
+
├── saveCodeGraph (批量导入)
|
|
263
|
+
├── loadCodeGraph (导出)
|
|
264
|
+
└── 增量更新
|
|
265
|
+
|
|
266
|
+
Week 6: 查询实现
|
|
267
|
+
├── findSymbolByName (索引查询)
|
|
268
|
+
├── findCallers (图遍历)
|
|
269
|
+
├── calculateImpact (多跳查询)
|
|
270
|
+
└── detectCycles (环检测)
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Week 7: 存储工厂 + 自动选择
|
|
274
|
+
|
|
275
|
+
```
|
|
276
|
+
Day 1-2: 存储工厂完善
|
|
277
|
+
├── src/infrastructure/storage/StorageFactory.ts
|
|
278
|
+
├── 自动选择逻辑
|
|
279
|
+
└── 配置验证
|
|
280
|
+
|
|
281
|
+
Day 3-4: 自动选择策略
|
|
282
|
+
├── 文件数阈值: 500
|
|
283
|
+
├── 符号数阈值: 10000
|
|
284
|
+
└── 用户可覆盖
|
|
285
|
+
|
|
286
|
+
Day 5: 性能基准测试
|
|
287
|
+
├── 文件系统 vs KùzuDB 对比
|
|
288
|
+
├── 查询性能测试
|
|
289
|
+
└── 内存占用测试
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Week 8: 性能优化
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
Day 1-2: 批量导入优化
|
|
296
|
+
├── 分批导入 (每批 1000 节点)
|
|
297
|
+
├── 并行导入
|
|
298
|
+
└── 进度回调
|
|
299
|
+
|
|
300
|
+
Day 3-4: 查询优化
|
|
301
|
+
├── 查询缓存
|
|
302
|
+
├── 连接池
|
|
303
|
+
└── 索引优化
|
|
304
|
+
|
|
305
|
+
Day 5: 故障恢复
|
|
306
|
+
├── 导入失败回滚
|
|
307
|
+
├── 自动重试
|
|
308
|
+
└── 降级到文件系统
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Phase 3 验收标准**:
|
|
312
|
+
- [ ] KùzuDB 查询性能比文件系统快 10x
|
|
313
|
+
- [ ] 自动选择策略准确率 > 90%
|
|
314
|
+
- [ ] 支持 10,000+ 文件项目
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## 5. Phase 4: CLI 可视化 (Week 7-9)
|
|
319
|
+
|
|
320
|
+
### Week 7-8: 基础可视化
|
|
321
|
+
|
|
322
|
+
```
|
|
323
|
+
Day 1-2: 树形可视化
|
|
324
|
+
├── npm install chalk
|
|
325
|
+
├── src/cli/visualizers/TreeVisualizer.ts
|
|
326
|
+
└── mycodemap viz tree 命令
|
|
327
|
+
|
|
328
|
+
Day 3-4: ASCII 依赖图
|
|
329
|
+
├── src/cli/visualizers/GraphVisualizer.ts
|
|
330
|
+
├── 层级布局算法
|
|
331
|
+
└── mycodemap viz deps 命令
|
|
332
|
+
|
|
333
|
+
Day 5: 进度条
|
|
334
|
+
├── npm install cli-progress
|
|
335
|
+
├── src/cli/progress/ProgressBar.ts
|
|
336
|
+
└── integrate to generate command
|
|
337
|
+
|
|
338
|
+
Week 8: 热力图 + Spinner
|
|
339
|
+
├── src/cli/visualizers/HeatmapVisualizer.ts
|
|
340
|
+
├── src/cli/progress/Spinner.ts
|
|
341
|
+
└── mycodemap viz heatmap 命令
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Week 9: TUI (可选)
|
|
345
|
+
|
|
346
|
+
```
|
|
347
|
+
Day 1-3: 基础 TUI
|
|
348
|
+
├── npm install ink react
|
|
349
|
+
├── src/cli/tui/App.tsx
|
|
350
|
+
├── src/cli/tui/components/
|
|
351
|
+
└── mycodemap tui 命令
|
|
352
|
+
|
|
353
|
+
Day 4-5: 交互功能
|
|
354
|
+
├── 文件浏览器
|
|
355
|
+
├── 符号搜索
|
|
356
|
+
└── 依赖图浏览
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
**Phase 4 验收标准**:
|
|
360
|
+
- [ ] 所有 `viz` 命令正常工作
|
|
361
|
+
- [ ] 进度条显示准确
|
|
362
|
+
- [ ] TUI 流畅运行 (可选)
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## 6. Phase 5: 集成测试 + 发布 (Week 9-10)
|
|
367
|
+
|
|
368
|
+
### Week 9: 全面测试
|
|
369
|
+
|
|
370
|
+
```
|
|
371
|
+
Day 1-2: 单元测试
|
|
372
|
+
├── Domain Layer: > 80% 覆盖率
|
|
373
|
+
├── Server Layer: > 70% 覆盖率
|
|
374
|
+
└── Infrastructure: > 60% 覆盖率
|
|
375
|
+
|
|
376
|
+
Day 3-4: 集成测试
|
|
377
|
+
├── 端到端测试: 10 个场景
|
|
378
|
+
├── 性能测试: 基准对比
|
|
379
|
+
└── 兼容性测试: 向后兼容
|
|
380
|
+
|
|
381
|
+
Day 5: Bugfix + 优化
|
|
382
|
+
└── 修复测试中发现的问题
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Week 10: 发布准备
|
|
386
|
+
|
|
387
|
+
```
|
|
388
|
+
Day 1-2: 文档完善
|
|
389
|
+
├── README.md 更新
|
|
390
|
+
├── API 文档生成
|
|
391
|
+
└── 迁移指南编写
|
|
392
|
+
|
|
393
|
+
Day 3-4: 发布流程
|
|
394
|
+
├── 版本号更新 (v3.0.0)
|
|
395
|
+
├── CHANGELOG.md
|
|
396
|
+
├── npm publish (beta)
|
|
397
|
+
└── GitHub Release
|
|
398
|
+
|
|
399
|
+
Day 5: 社区反馈
|
|
400
|
+
├── 收集早期用户反馈
|
|
401
|
+
├── 紧急修复
|
|
402
|
+
└── 准备 stable 发布
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
## 7. 风险应对
|
|
408
|
+
|
|
409
|
+
| 风险 | 概率 | 应对方案 |
|
|
410
|
+
|------|------|----------|
|
|
411
|
+
| Tree-sitter 性能不佳 | 中 | 准备 WebAssembly 预编译方案 |
|
|
412
|
+
| KùzuDB 稳定性问题 | 低 | 保留文件系统作为 fallback |
|
|
413
|
+
| 开发进度延期 | 中 | Phase 2 语言可分阶段发布 |
|
|
414
|
+
| 向后兼容破坏 | 低 | 完整回归测试,灰度发布 |
|
|
415
|
+
|
|
416
|
+
---
|
|
417
|
+
|
|
418
|
+
## 8. 关键里程碑
|
|
419
|
+
|
|
420
|
+
```
|
|
421
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
422
|
+
│ 里程碑检查点 │
|
|
423
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
424
|
+
│ │
|
|
425
|
+
│ Week 2 结束: Alpha 就绪 ✅ COMPLETED │
|
|
426
|
+
│ ✅ Interface Layer 完成 │
|
|
427
|
+
│ ✅ Storage Abstraction 基础完成 │
|
|
428
|
+
│ ✅ Server Layer 框架可用 │
|
|
429
|
+
│ ✅ CLI 向后兼容 │
|
|
430
|
+
│ │
|
|
431
|
+
│ Week 4 结束: Beta 就绪 🔄 IN PROGRESS │
|
|
432
|
+
│ ✅ 架构重构完成 (6 层全部落地) │
|
|
433
|
+
│ ⏳ Python 语言支持 (计划中) │
|
|
434
|
+
│ ✅ 所有现有测试通过 (705 tests) │
|
|
435
|
+
│ │
|
|
436
|
+
│ Week 6 结束: RC 就绪 │
|
|
437
|
+
│ ✅ 7 种语言支持 │
|
|
438
|
+
│ ✅ KùzuDB 集成完成 │
|
|
439
|
+
│ ✅ CLI 可视化基础 │
|
|
440
|
+
│ │
|
|
441
|
+
│ Week 10 结束: Stable 发布 │
|
|
442
|
+
│ ✅ 所有功能完成 │
|
|
443
|
+
│ ✅ 测试覆盖率 > 80% │
|
|
444
|
+
│ ✅ 文档完善 │
|
|
445
|
+
│ ✅ 社区验证 │
|
|
446
|
+
│ │
|
|
447
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
## 9. 团队分工建议
|
|
453
|
+
|
|
454
|
+
| 角色 | 人数 | 职责 |
|
|
455
|
+
|------|------|------|
|
|
456
|
+
| 架构师 | 1 | 架构设计、代码审查、技术决策 |
|
|
457
|
+
| 后端开发 | 2 | Server Layer、Storage Layer、Domain Layer |
|
|
458
|
+
| 语言专家 | 2 | Tree-sitter 集成、多语言解析器 |
|
|
459
|
+
| CLI 开发 | 1 | CLI 命令、可视化、TUI |
|
|
460
|
+
| 测试工程师 | 1 | 测试策略、自动化测试、性能测试 |
|
|
461
|
+
|
|
462
|
+
---
|
|
463
|
+
|
|
464
|
+
## 已完成计划汇总
|
|
465
|
+
|
|
466
|
+
| 计划 | 名称 | 提交 | 状态 |
|
|
467
|
+
|------|------|------|------|
|
|
468
|
+
| 计划 1 | Lint Guardrail (ESLint 9.x) | `45eb558` | ✅ 已合并 |
|
|
469
|
+
| 计划 2 | Interface Layer | `7ab39ff` | ✅ 已合并 |
|
|
470
|
+
| 计划 3 | Infrastructure Storage Layer | `27e2688` | ✅ 已合并 |
|
|
471
|
+
| 计划 4 | Domain Layer | `08438ca` | ✅ 已合并 |
|
|
472
|
+
| 计划 5 | Server Layer (HTTP API) | `a3ee2e7` | ✅ 已合并 |
|
|
473
|
+
| 计划 6 | CLI Layer (cli-new) | `fa9db9c` | ✅ 已合并 |
|
|
474
|
+
| 计划 7 | Parser Abstraction Layer | `3928fe3` | ✅ 已合并 |
|
|
475
|
+
| 计划 8 | Repository Implementation | `2ce6771` | ✅ 已合并 |
|
|
476
|
+
| 计划 9 | New Architecture Test Coverage | `015d7f8` | ✅ 已合并 |
|
|
477
|
+
| 计划 10 | CLI Migration | 🔄 准备中 | 集成 server/export 命令 |
|
|
478
|
+
|
|
479
|
+
### MVP3 核心交付完成 ✅
|
|
480
|
+
|
|
481
|
+
所有 10 个核心计划已完成:
|
|
482
|
+
- 6 个架构层 (Interface → Infrastructure → Domain → Server → CLI)
|
|
483
|
+
- Parser 抽象层 (TypeScript, Go, Python)
|
|
484
|
+
- Repository 实现
|
|
485
|
+
- 测试覆盖 (742 tests)
|
|
486
|
+
- CLI 命令集成 (server, export)
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
## 10. 附录
|
|
491
|
+
|
|
492
|
+
### 10.1 分支策略
|
|
493
|
+
|
|
494
|
+
```
|
|
495
|
+
main (stable)
|
|
496
|
+
└── develop (v3.0)
|
|
497
|
+
├── feature/mvp3-architecture
|
|
498
|
+
├── feature/mvp3-storage-abstraction
|
|
499
|
+
├── feature/mvp3-python-parser
|
|
500
|
+
├── feature/mvp3-kuzudb
|
|
501
|
+
├── feature/mvp3-cli-viz
|
|
502
|
+
└── ...
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### 10.2 每日站会模板
|
|
506
|
+
|
|
507
|
+
```
|
|
508
|
+
昨日完成:
|
|
509
|
+
- xxx
|
|
510
|
+
|
|
511
|
+
今日计划:
|
|
512
|
+
- xxx
|
|
513
|
+
|
|
514
|
+
阻塞/风险:
|
|
515
|
+
- xxx
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### 10.3 代码审查 Checklist
|
|
519
|
+
|
|
520
|
+
- [ ] 是否符合分层架构原则
|
|
521
|
+
- [ ] 接口是否定义清晰
|
|
522
|
+
- [ ] 是否有对应的单元测试
|
|
523
|
+
- [ ] 是否影响向后兼容性
|
|
524
|
+
- [ ] 性能是否有退化
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# docs/exec-plans/
|
|
2
|
+
|
|
3
|
+
本目录存放执行计划与落地过程,不存放长期稳定规则。
|
|
4
|
+
|
|
5
|
+
## 当前结构
|
|
6
|
+
|
|
7
|
+
- `active/`:当前活跃计划
|
|
8
|
+
- `completed/`:已完成或已归档的历史计划
|
|
9
|
+
- `tech-debt/`:技术债、待处理项、批量修复清单
|
|
10
|
+
|
|
11
|
+
## 当前状态
|
|
12
|
+
|
|
13
|
+
- `active/` 当前为空,后续进行中的计划应写入这里。
|
|
14
|
+
- `completed/` 当前包含:
|
|
15
|
+
- `2026-03-03-deps-path-extension-fix.md`
|
|
16
|
+
- `2026-03-03-post-task-plan.md`
|
|
17
|
+
- `tech-debt/` 当前包含:
|
|
18
|
+
- `2026-03-15-lint-guardrail-gap.md`
|
|
19
|
+
|
|
20
|
+
## 写作边界
|
|
21
|
+
|
|
22
|
+
- 计划要写目标、限制、DoD、依赖、风险。
|
|
23
|
+
- 复盘要写实际结果、偏差、残留问题。
|
|
24
|
+
- 技术债要可排序、可追踪、可关闭。
|
|
25
|
+
|
|
26
|
+
## 迁移说明
|
|
27
|
+
|
|
28
|
+
- 旧 `docs/plans/` 已停止作为新增计划入口;历史文件已迁入 `docs/archive/plans/`。
|
|
29
|
+
- 新计划优先写入本目录;不要在 `docs/` 根层或其他自定义目录另开平行计划线。
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# CodeMap 后续任务计划
|
|
2
2
|
|
|
3
|
+
> 归档时间:2026-03-15
|
|
4
|
+
> 归档原因:原位于 `docs/exec-plans/active/`,但内容记录的是 2026-03-03 的后续计划与当时状态,已不再属于活跃计划。
|
|
5
|
+
> 当前依据:`docs/exec-plans/README.md`;新的进行中计划请放入 `docs/exec-plans/active/`
|
|
6
|
+
> 状态:历史计划归档,供复盘参考。
|
|
7
|
+
|
|
8
|
+
|
|
3
9
|
> 生成时间: 2026-03-03
|
|
4
10
|
> 状态: 规划中
|
|
5
11
|
|
|
@@ -114,9 +120,9 @@
|
|
|
114
120
|
|
|
115
121
|
### 相关文档
|
|
116
122
|
|
|
117
|
-
- [REFACTOR_ARCHITECTURE_OVERVIEW.md](
|
|
118
|
-
- [REFACTOR_ORCHESTRATOR_DESIGN.md](
|
|
119
|
-
- [CI_GATEWAY_DESIGN.md](
|
|
123
|
+
- [REFACTOR_ARCHITECTURE_OVERVIEW.md](../../design-docs/REFACTOR_ARCHITECTURE_OVERVIEW.md)
|
|
124
|
+
- [REFACTOR_ORCHESTRATOR_DESIGN.md](../../design-docs/REFACTOR_ORCHESTRATOR_DESIGN.md)
|
|
125
|
+
- [CI_GATEWAY_DESIGN.md](../../design-docs/CI_GATEWAY_DESIGN.md)
|
|
120
126
|
|
|
121
127
|
### 代码位置
|
|
122
128
|
|