@mycodemap/mycodemap 1.9.0 → 2.7.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 +38 -0
- package/README.md +63 -978
- package/README.zh-CN.md +1096 -0
- package/dist/cli/commands/agent-metrics/human.d.ts +4 -0
- package/dist/cli/commands/agent-metrics/human.d.ts.map +1 -0
- package/dist/cli/commands/agent-metrics/human.js +134 -0
- package/dist/cli/commands/agent-metrics/human.js.map +1 -0
- package/dist/cli/commands/agent-metrics/index.d.ts +15 -0
- package/dist/cli/commands/agent-metrics/index.d.ts.map +1 -0
- package/dist/cli/commands/agent-metrics/index.js +116 -0
- package/dist/cli/commands/agent-metrics/index.js.map +1 -0
- package/dist/cli/commands/analyze-options.d.ts.map +1 -1
- package/dist/cli/commands/analyze-options.js +8 -0
- package/dist/cli/commands/analyze-options.js.map +1 -1
- package/dist/cli/commands/analyze.d.ts +3 -196
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +27 -1162
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/benchmark.d.ts +8 -0
- package/dist/cli/commands/benchmark.d.ts.map +1 -0
- package/dist/cli/commands/benchmark.js +153 -0
- package/dist/cli/commands/benchmark.js.map +1 -0
- package/dist/cli/commands/complexity.d.ts.map +1 -1
- package/dist/cli/commands/complexity.js +62 -95
- package/dist/cli/commands/complexity.js.map +1 -1
- package/dist/cli/commands/deps.d.ts +3 -59
- package/dist/cli/commands/deps.d.ts.map +1 -1
- package/dist/cli/commands/deps.js +25 -331
- package/dist/cli/commands/deps.js.map +1 -1
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +34 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/env-contract.d.ts +3 -0
- package/dist/cli/commands/env-contract.d.ts.map +1 -0
- package/dist/cli/commands/env-contract.js +221 -0
- package/dist/cli/commands/env-contract.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +19 -1
- package/dist/cli/commands/generate.d.ts.map +1 -1
- package/dist/cli/commands/generate.js +735 -89
- package/dist/cli/commands/generate.js.map +1 -1
- package/dist/cli/commands/impact.d.ts +4 -38
- package/dist/cli/commands/impact.d.ts.map +1 -1
- package/dist/cli/commands/impact.js +133 -375
- package/dist/cli/commands/impact.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +61 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/preview.d.ts +3 -0
- package/dist/cli/commands/preview.d.ts.map +1 -0
- package/dist/cli/commands/preview.js +216 -0
- package/dist/cli/commands/preview.js.map +1 -0
- package/dist/cli/commands/query.d.ts +2 -20
- package/dist/cli/commands/query.d.ts.map +1 -1
- package/dist/cli/commands/query.js +23 -708
- package/dist/cli/commands/query.js.map +1 -1
- package/dist/cli/commands/watch-foreground.d.ts.map +1 -1
- package/dist/cli/commands/watch-foreground.js +5 -1
- package/dist/cli/commands/watch-foreground.js.map +1 -1
- package/dist/cli/config-loader.d.ts.map +1 -1
- package/dist/cli/config-loader.js +51 -13
- package/dist/cli/config-loader.js.map +1 -1
- package/dist/cli/doctor/check-agent.d.ts +3 -0
- package/dist/cli/doctor/check-agent.d.ts.map +1 -0
- package/dist/cli/doctor/check-agent.js +60 -0
- package/dist/cli/doctor/check-agent.js.map +1 -0
- package/dist/cli/doctor/check-env-contract.d.ts +3 -0
- package/dist/cli/doctor/check-env-contract.d.ts.map +1 -0
- package/dist/cli/doctor/check-env-contract.js +96 -0
- package/dist/cli/doctor/check-env-contract.js.map +1 -0
- package/dist/cli/doctor/check-ghost-commands.d.ts +3 -0
- package/dist/cli/doctor/check-ghost-commands.d.ts.map +1 -0
- package/dist/cli/doctor/check-ghost-commands.js +86 -0
- package/dist/cli/doctor/check-ghost-commands.js.map +1 -0
- package/dist/cli/doctor/check-native-deps.d.ts +3 -0
- package/dist/cli/doctor/check-native-deps.d.ts.map +1 -0
- package/dist/cli/doctor/check-native-deps.js +70 -0
- package/dist/cli/doctor/check-native-deps.js.map +1 -0
- package/dist/cli/doctor/check-workspace-drift.d.ts +3 -0
- package/dist/cli/doctor/check-workspace-drift.d.ts.map +1 -0
- package/dist/cli/doctor/check-workspace-drift.js +83 -0
- package/dist/cli/doctor/check-workspace-drift.js.map +1 -0
- package/dist/cli/doctor/formatter.d.ts +20 -0
- package/dist/cli/doctor/formatter.d.ts.map +1 -0
- package/dist/cli/doctor/formatter.js +91 -0
- package/dist/cli/doctor/formatter.js.map +1 -0
- package/dist/cli/doctor/index.d.ts +8 -0
- package/dist/cli/doctor/index.d.ts.map +1 -0
- package/dist/cli/doctor/index.js +9 -0
- package/dist/cli/doctor/index.js.map +1 -0
- package/dist/cli/doctor/orchestrator.d.ts +3 -0
- package/dist/cli/doctor/orchestrator.d.ts.map +1 -0
- package/dist/cli/doctor/orchestrator.js +40 -0
- package/dist/cli/doctor/orchestrator.js.map +1 -0
- package/dist/cli/doctor/types.d.ts +19 -0
- package/dist/cli/doctor/types.d.ts.map +1 -0
- package/dist/cli/doctor/types.js +4 -0
- package/dist/cli/doctor/types.js.map +1 -0
- package/dist/cli/env-contract/check.d.ts +18 -0
- package/dist/cli/env-contract/check.d.ts.map +1 -0
- package/dist/cli/env-contract/check.js +118 -0
- package/dist/cli/env-contract/check.js.map +1 -0
- package/dist/cli/env-contract/discovery.d.ts +12 -0
- package/dist/cli/env-contract/discovery.d.ts.map +1 -0
- package/dist/cli/env-contract/discovery.js +249 -0
- package/dist/cli/env-contract/discovery.js.map +1 -0
- package/dist/cli/env-contract/filters.d.ts +10 -0
- package/dist/cli/env-contract/filters.d.ts.map +1 -0
- package/dist/cli/env-contract/filters.js +23 -0
- package/dist/cli/env-contract/filters.js.map +1 -0
- package/dist/cli/env-contract/index.d.ts +6 -0
- package/dist/cli/env-contract/index.d.ts.map +1 -0
- package/dist/cli/env-contract/index.js +8 -0
- package/dist/cli/env-contract/index.js.map +1 -0
- package/dist/cli/env-contract/reminder-engine.d.ts +34 -0
- package/dist/cli/env-contract/reminder-engine.d.ts.map +1 -0
- package/dist/cli/env-contract/reminder-engine.js +51 -0
- package/dist/cli/env-contract/reminder-engine.js.map +1 -0
- package/dist/cli/env-contract/reminder-hook-runner.d.ts +45 -0
- package/dist/cli/env-contract/reminder-hook-runner.d.ts.map +1 -0
- package/dist/cli/env-contract/reminder-hook-runner.js +273 -0
- package/dist/cli/env-contract/reminder-hook-runner.js.map +1 -0
- package/dist/cli/env-contract/reminder-ledger.d.ts +11 -0
- package/dist/cli/env-contract/reminder-ledger.d.ts.map +1 -0
- package/dist/cli/env-contract/reminder-ledger.js +37 -0
- package/dist/cli/env-contract/reminder-ledger.js.map +1 -0
- package/dist/cli/env-contract/types.d.ts +48 -0
- package/dist/cli/env-contract/types.d.ts.map +1 -0
- package/dist/cli/env-contract/types.js +22 -0
- package/dist/cli/env-contract/types.js.map +1 -0
- package/dist/cli/env-contract/validation.d.ts +10 -0
- package/dist/cli/env-contract/validation.d.ts.map +1 -0
- package/dist/cli/env-contract/validation.js +116 -0
- package/dist/cli/env-contract/validation.js.map +1 -0
- package/dist/cli/first-run-guide.d.ts.map +1 -1
- package/dist/cli/first-run-guide.js +8 -3
- package/dist/cli/first-run-guide.js.map +1 -1
- package/dist/cli/index.js +94 -22
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/assistant-plan.d.ts +14 -0
- package/dist/cli/init/assistant-plan.d.ts.map +1 -0
- package/dist/cli/init/assistant-plan.js +208 -0
- package/dist/cli/init/assistant-plan.js.map +1 -0
- package/dist/cli/init/detect.d.ts +28 -0
- package/dist/cli/init/detect.d.ts.map +1 -0
- package/dist/cli/init/detect.js +63 -0
- package/dist/cli/init/detect.js.map +1 -0
- package/dist/cli/init/env-contract-plan.d.ts +28 -0
- package/dist/cli/init/env-contract-plan.d.ts.map +1 -0
- package/dist/cli/init/env-contract-plan.js +184 -0
- package/dist/cli/init/env-contract-plan.js.map +1 -0
- package/dist/cli/init/manifest-extractors.d.ts +22 -0
- package/dist/cli/init/manifest-extractors.d.ts.map +1 -0
- package/dist/cli/init/manifest-extractors.js +185 -0
- package/dist/cli/init/manifest-extractors.js.map +1 -0
- package/dist/cli/init/profile-loader.d.ts +49 -0
- package/dist/cli/init/profile-loader.d.ts.map +1 -0
- package/dist/cli/init/profile-loader.js +107 -0
- package/dist/cli/init/profile-loader.js.map +1 -0
- package/dist/cli/init/profile-plan.d.ts +38 -0
- package/dist/cli/init/profile-plan.d.ts.map +1 -0
- package/dist/cli/init/profile-plan.js +120 -0
- package/dist/cli/init/profile-plan.js.map +1 -0
- package/dist/cli/init/profiles/generic.json +16 -0
- package/dist/cli/init/profiles/go.json +12 -0
- package/dist/cli/init/profiles/nodejs.json +16 -0
- package/dist/cli/init/profiles/python.json +17 -0
- package/dist/cli/init/profiles/rust.json +12 -0
- package/dist/cli/init/receipt.d.ts.map +1 -1
- package/dist/cli/init/receipt.js +107 -7
- package/dist/cli/init/receipt.js.map +1 -1
- package/dist/cli/init/reconciler.d.ts +10 -1
- package/dist/cli/init/reconciler.d.ts.map +1 -1
- package/dist/cli/init/reconciler.js +85 -15
- package/dist/cli/init/reconciler.js.map +1 -1
- package/dist/cli/interface-contract/commands/agent-metrics.d.ts +3 -0
- package/dist/cli/interface-contract/commands/agent-metrics.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/agent-metrics.js +217 -0
- package/dist/cli/interface-contract/commands/agent-metrics.js.map +1 -0
- package/dist/cli/interface-contract/commands/analyze.d.ts +3 -0
- package/dist/cli/interface-contract/commands/analyze.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/analyze.js +139 -0
- package/dist/cli/interface-contract/commands/analyze.js.map +1 -0
- package/dist/cli/interface-contract/commands/benchmark.d.ts +3 -0
- package/dist/cli/interface-contract/commands/benchmark.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/benchmark.js +108 -0
- package/dist/cli/interface-contract/commands/benchmark.js.map +1 -0
- package/dist/cli/interface-contract/commands/deps.d.ts +3 -0
- package/dist/cli/interface-contract/commands/deps.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/deps.js +130 -0
- package/dist/cli/interface-contract/commands/deps.js.map +1 -0
- package/dist/cli/interface-contract/commands/doctor.d.ts +3 -0
- package/dist/cli/interface-contract/commands/doctor.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/doctor.js +60 -0
- package/dist/cli/interface-contract/commands/doctor.js.map +1 -0
- package/dist/cli/interface-contract/commands/env-contract.d.ts +3 -0
- package/dist/cli/interface-contract/commands/env-contract.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/env-contract.js +168 -0
- package/dist/cli/interface-contract/commands/env-contract.js.map +1 -0
- package/dist/cli/interface-contract/commands/index.d.ts +12 -0
- package/dist/cli/interface-contract/commands/index.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/index.js +24 -0
- package/dist/cli/interface-contract/commands/index.js.map +1 -0
- package/dist/cli/interface-contract/commands/init.d.ts +3 -0
- package/dist/cli/interface-contract/commands/init.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/init.js +96 -0
- package/dist/cli/interface-contract/commands/init.js.map +1 -0
- package/dist/cli/interface-contract/commands/preview.d.ts +3 -0
- package/dist/cli/interface-contract/commands/preview.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/preview.js +118 -0
- package/dist/cli/interface-contract/commands/preview.js.map +1 -0
- package/dist/cli/interface-contract/commands/query.d.ts +3 -0
- package/dist/cli/interface-contract/commands/query.d.ts.map +1 -0
- package/dist/cli/interface-contract/commands/query.js +186 -0
- package/dist/cli/interface-contract/commands/query.js.map +1 -0
- package/dist/cli/interface-contract/index.d.ts +22 -0
- package/dist/cli/interface-contract/index.d.ts.map +1 -0
- package/dist/cli/interface-contract/index.js +41 -0
- package/dist/cli/interface-contract/index.js.map +1 -0
- package/dist/cli/interface-contract/schema.d.ts +30 -0
- package/dist/cli/interface-contract/schema.d.ts.map +1 -0
- package/dist/cli/interface-contract/schema.js +73 -0
- package/dist/cli/interface-contract/schema.js.map +1 -0
- package/dist/cli/interface-contract/types.d.ts +77 -0
- package/dist/cli/interface-contract/types.d.ts.map +1 -0
- package/dist/cli/interface-contract/types.js +4 -0
- package/dist/cli/interface-contract/types.js.map +1 -0
- package/dist/cli/output/apply-suggestion.d.ts +12 -0
- package/dist/cli/output/apply-suggestion.d.ts.map +1 -0
- package/dist/cli/output/apply-suggestion.js +29 -0
- package/dist/cli/output/apply-suggestion.js.map +1 -0
- package/dist/cli/output/error-codes.d.ts +24 -0
- package/dist/cli/output/error-codes.d.ts.map +1 -0
- package/dist/cli/output/error-codes.js +94 -0
- package/dist/cli/output/error-codes.js.map +1 -0
- package/dist/cli/output/errors.d.ts +14 -0
- package/dist/cli/output/errors.d.ts.map +1 -0
- package/dist/cli/output/errors.js +182 -0
- package/dist/cli/output/errors.js.map +1 -0
- package/dist/cli/output/index.d.ts +13 -0
- package/dist/cli/output/index.d.ts.map +1 -0
- package/dist/cli/output/index.js +11 -0
- package/dist/cli/output/index.js.map +1 -0
- package/dist/cli/output/mode.d.ts +12 -0
- package/dist/cli/output/mode.d.ts.map +1 -0
- package/dist/cli/output/mode.js +23 -0
- package/dist/cli/output/mode.js.map +1 -0
- package/dist/cli/output/progress.d.ts +9 -0
- package/dist/cli/output/progress.d.ts.map +1 -0
- package/dist/cli/output/progress.js +65 -0
- package/dist/cli/output/progress.js.map +1 -0
- package/dist/cli/output/render.d.ts +11 -0
- package/dist/cli/output/render.d.ts.map +1 -0
- package/dist/cli/output/render.js +18 -0
- package/dist/cli/output/render.js.map +1 -0
- package/dist/cli/output/types.d.ts +53 -0
- package/dist/cli/output/types.d.ts.map +1 -0
- package/dist/cli/output/types.js +14 -0
- package/dist/cli/output/types.js.map +1 -0
- package/dist/cli/output/wasm-fallback.d.ts +14 -0
- package/dist/cli/output/wasm-fallback.d.ts.map +1 -0
- package/dist/cli/output/wasm-fallback.js +92 -0
- package/dist/cli/output/wasm-fallback.js.map +1 -0
- package/dist/cli/preview/complexity-scanner.d.ts +21 -0
- package/dist/cli/preview/complexity-scanner.d.ts.map +1 -0
- package/dist/cli/preview/complexity-scanner.js +52 -0
- package/dist/cli/preview/complexity-scanner.js.map +1 -0
- package/dist/cli/preview/dependency-extractor.d.ts +38 -0
- package/dist/cli/preview/dependency-extractor.d.ts.map +1 -0
- package/dist/cli/preview/dependency-extractor.js +140 -0
- package/dist/cli/preview/dependency-extractor.js.map +1 -0
- package/dist/cli/preview/preview-renderer.d.ts +32 -0
- package/dist/cli/preview/preview-renderer.d.ts.map +1 -0
- package/dist/cli/preview/preview-renderer.js +54 -0
- package/dist/cli/preview/preview-renderer.js.map +1 -0
- package/dist/cli/storage-runtime.d.ts +7 -0
- package/dist/cli/storage-runtime.d.ts.map +1 -1
- package/dist/cli/storage-runtime.js +22 -0
- package/dist/cli/storage-runtime.js.map +1 -1
- package/dist/cli/tree-sitter-check.d.ts +6 -1
- package/dist/cli/tree-sitter-check.d.ts.map +1 -1
- package/dist/cli/tree-sitter-check.js +23 -1
- package/dist/cli/tree-sitter-check.js.map +1 -1
- package/dist/cli-new/index.js +1 -1
- package/dist/cli-new/index.js.map +1 -1
- package/dist/composition/parser-composition.d.ts +7 -0
- package/dist/composition/parser-composition.d.ts.map +1 -0
- package/dist/composition/parser-composition.js +15 -0
- package/dist/composition/parser-composition.js.map +1 -0
- package/dist/core/analyzer.d.ts.map +1 -1
- package/dist/core/analyzer.js +83 -67
- package/dist/core/analyzer.js.map +1 -1
- package/dist/core/ast-complexity-analyzer.d.ts +12 -6
- package/dist/core/ast-complexity-analyzer.d.ts.map +1 -1
- package/dist/core/ast-complexity-analyzer.js +368 -209
- package/dist/core/ast-complexity-analyzer.js.map +1 -1
- package/dist/core/file-discovery.d.ts +1 -1
- package/dist/core/file-discovery.d.ts.map +1 -1
- package/dist/core/file-discovery.js +3 -0
- package/dist/core/file-discovery.js.map +1 -1
- package/dist/core/global-index.d.ts +3 -1
- package/dist/core/global-index.d.ts.map +1 -1
- package/dist/core/global-index.js +69 -4
- package/dist/core/global-index.js.map +1 -1
- package/dist/domain/entities/CodeGraph.d.ts +3 -0
- package/dist/domain/entities/CodeGraph.d.ts.map +1 -1
- package/dist/domain/entities/CodeGraph.js +19 -2
- package/dist/domain/entities/CodeGraph.js.map +1 -1
- package/dist/domain/entities/Dependency.d.ts +5 -2
- package/dist/domain/entities/Dependency.d.ts.map +1 -1
- package/dist/domain/entities/Dependency.js +49 -3
- package/dist/domain/entities/Dependency.js.map +1 -1
- package/dist/domain/repositories/CodeGraphRepository.d.ts +5 -0
- package/dist/domain/repositories/CodeGraphRepository.d.ts.map +1 -1
- package/dist/domain/repositories/CodeGraphRepository.js.map +1 -1
- package/dist/execution/contract-tools/analyze.d.ts +205 -0
- package/dist/execution/contract-tools/analyze.d.ts.map +1 -0
- package/dist/execution/contract-tools/analyze.js +1215 -0
- package/dist/execution/contract-tools/analyze.js.map +1 -0
- package/dist/execution/contract-tools/deps.d.ts +62 -0
- package/dist/execution/contract-tools/deps.d.ts.map +1 -0
- package/dist/execution/contract-tools/deps.js +234 -0
- package/dist/execution/contract-tools/deps.js.map +1 -0
- package/dist/execution/contract-tools/index.d.ts +5 -0
- package/dist/execution/contract-tools/index.d.ts.map +1 -0
- package/dist/execution/contract-tools/index.js +7 -0
- package/dist/execution/contract-tools/index.js.map +1 -0
- package/dist/execution/contract-tools/query.d.ts +60 -0
- package/dist/execution/contract-tools/query.d.ts.map +1 -0
- package/dist/execution/contract-tools/query.js +532 -0
- package/dist/execution/contract-tools/query.js.map +1 -0
- package/dist/execution/contract-tools/types.d.ts +26 -0
- package/dist/execution/contract-tools/types.d.ts.map +1 -0
- package/dist/execution/contract-tools/types.js +32 -0
- package/dist/execution/contract-tools/types.js.map +1 -0
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +0 -3
- package/dist/generator/index.js.map +1 -1
- package/dist/infrastructure/parser/enhancers/TypeScriptTypeEnhancer.d.ts +12 -0
- package/dist/infrastructure/parser/enhancers/TypeScriptTypeEnhancer.d.ts.map +1 -0
- package/dist/infrastructure/parser/enhancers/TypeScriptTypeEnhancer.js +55 -0
- package/dist/infrastructure/parser/enhancers/TypeScriptTypeEnhancer.js.map +1 -0
- package/dist/infrastructure/parser/implementations/GoParser.d.ts +2 -1
- package/dist/infrastructure/parser/implementations/GoParser.d.ts.map +1 -1
- package/dist/infrastructure/parser/implementations/GoParser.js +13 -1
- package/dist/infrastructure/parser/implementations/GoParser.js.map +1 -1
- package/dist/infrastructure/parser/implementations/PythonTreeSitterParser.d.ts +114 -0
- package/dist/infrastructure/parser/implementations/PythonTreeSitterParser.d.ts.map +1 -0
- package/dist/infrastructure/parser/implementations/PythonTreeSitterParser.js +1022 -0
- package/dist/infrastructure/parser/implementations/PythonTreeSitterParser.js.map +1 -0
- package/dist/infrastructure/parser/implementations/TreeSitterParser.d.ts +78 -0
- package/dist/infrastructure/parser/implementations/TreeSitterParser.d.ts.map +1 -0
- package/dist/infrastructure/parser/implementations/TreeSitterParser.js +648 -0
- package/dist/infrastructure/parser/implementations/TreeSitterParser.js.map +1 -0
- package/dist/infrastructure/parser/implementations/TypeScriptParser.d.ts +3 -55
- package/dist/infrastructure/parser/implementations/TypeScriptParser.d.ts.map +1 -1
- package/dist/infrastructure/parser/implementations/TypeScriptParser.js +4 -411
- package/dist/infrastructure/parser/implementations/TypeScriptParser.js.map +1 -1
- package/dist/infrastructure/parser/index.d.ts +2 -0
- package/dist/infrastructure/parser/index.d.ts.map +1 -1
- package/dist/infrastructure/parser/index.js +9 -6
- package/dist/infrastructure/parser/index.js.map +1 -1
- package/dist/infrastructure/parser/interfaces/ParserBase.d.ts.map +1 -1
- package/dist/infrastructure/parser/interfaces/ParserBase.js +1 -0
- package/dist/infrastructure/parser/interfaces/ParserBase.js.map +1 -1
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.d.ts +2 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.d.ts.map +1 -1
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.js +4 -0
- package/dist/infrastructure/repositories/CodeGraphRepositoryImpl.js.map +1 -1
- package/dist/infrastructure/storage/StorageFactory.d.ts +5 -18
- package/dist/infrastructure/storage/StorageFactory.d.ts.map +1 -1
- package/dist/infrastructure/storage/StorageFactory.js +30 -98
- package/dist/infrastructure/storage/StorageFactory.js.map +1 -1
- package/dist/infrastructure/storage/adapters/SQLiteStorage.d.ts +13 -1
- package/dist/infrastructure/storage/adapters/SQLiteStorage.d.ts.map +1 -1
- package/dist/infrastructure/storage/adapters/SQLiteStorage.js +322 -76
- package/dist/infrastructure/storage/adapters/SQLiteStorage.js.map +1 -1
- package/dist/infrastructure/storage/adapters/sqlite-loader.d.ts +45 -0
- package/dist/infrastructure/storage/adapters/sqlite-loader.d.ts.map +1 -0
- package/dist/infrastructure/storage/adapters/sqlite-loader.js +266 -0
- package/dist/infrastructure/storage/adapters/sqlite-loader.js.map +1 -0
- package/dist/infrastructure/storage/community-helpers.d.ts +4 -0
- package/dist/infrastructure/storage/community-helpers.d.ts.map +1 -0
- package/dist/infrastructure/storage/community-helpers.js +392 -0
- package/dist/infrastructure/storage/community-helpers.js.map +1 -0
- package/dist/infrastructure/storage/graph-helpers.d.ts +22 -5
- package/dist/infrastructure/storage/graph-helpers.d.ts.map +1 -1
- package/dist/infrastructure/storage/graph-helpers.js +496 -91
- package/dist/infrastructure/storage/graph-helpers.js.map +1 -1
- package/dist/infrastructure/storage/index.d.ts +1 -1
- package/dist/infrastructure/storage/index.d.ts.map +1 -1
- package/dist/infrastructure/storage/index.js +1 -1
- package/dist/infrastructure/storage/index.js.map +1 -1
- package/dist/infrastructure/storage/interfaces/StorageBase.d.ts +2 -2
- package/dist/infrastructure/storage/interfaces/StorageBase.d.ts.map +1 -1
- package/dist/infrastructure/storage/interfaces/StorageBase.js.map +1 -1
- package/dist/infrastructure/storage/sqlite/GovernanceGraphCache.d.ts +2 -0
- package/dist/infrastructure/storage/sqlite/GovernanceGraphCache.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite/GovernanceGraphCache.js +52 -12
- package/dist/infrastructure/storage/sqlite/GovernanceGraphCache.js.map +1 -1
- package/dist/infrastructure/storage/sqlite/schema.d.ts +2 -2
- package/dist/infrastructure/storage/sqlite/schema.d.ts.map +1 -1
- package/dist/infrastructure/storage/sqlite/schema.js +49 -1
- package/dist/infrastructure/storage/sqlite/schema.js.map +1 -1
- package/dist/interface/config/index.d.ts +5 -3
- package/dist/interface/config/index.d.ts.map +1 -1
- package/dist/interface/types/index.d.ts +37 -6
- package/dist/interface/types/index.d.ts.map +1 -1
- package/dist/interface/types/parser.d.ts +85 -0
- package/dist/interface/types/parser.d.ts.map +1 -1
- package/dist/interface/types/storage.d.ts +227 -10
- package/dist/interface/types/storage.d.ts.map +1 -1
- package/dist/orchestrator/agent-metrics-service.d.ts +126 -0
- package/dist/orchestrator/agent-metrics-service.d.ts.map +1 -0
- package/dist/orchestrator/agent-metrics-service.js +444 -0
- package/dist/orchestrator/agent-metrics-service.js.map +1 -0
- package/dist/orchestrator/types.d.ts +2 -0
- package/dist/orchestrator/types.d.ts.map +1 -1
- package/dist/orchestrator/types.js.map +1 -1
- package/dist/parser/enhancers/PythonTypeEnhancer.d.ts +26 -0
- package/dist/parser/enhancers/PythonTypeEnhancer.d.ts.map +1 -0
- package/dist/parser/enhancers/PythonTypeEnhancer.js +440 -0
- package/dist/parser/enhancers/PythonTypeEnhancer.js.map +1 -0
- package/dist/parser/implementations/smart-parser.d.ts.map +1 -1
- package/dist/parser/implementations/smart-parser.js +7 -69
- package/dist/parser/implementations/smart-parser.js.map +1 -1
- package/dist/parser/implementations/tree-sitter-loader.d.ts +18 -0
- package/dist/parser/implementations/tree-sitter-loader.d.ts.map +1 -0
- package/dist/parser/implementations/tree-sitter-loader.js +136 -0
- package/dist/parser/implementations/tree-sitter-loader.js.map +1 -0
- package/dist/parser/index.d.ts +5 -3
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/parser/index.js +68 -6
- package/dist/parser/index.js.map +1 -1
- package/dist/parser/interfaces/IParser.d.ts +19 -6
- package/dist/parser/interfaces/IParser.d.ts.map +1 -1
- package/dist/parser/interfaces/IParser.js +2 -3
- package/dist/parser/interfaces/IParser.js.map +1 -1
- package/dist/server/handlers/AnalysisHandler.d.ts +13 -2
- package/dist/server/handlers/AnalysisHandler.d.ts.map +1 -1
- package/dist/server/handlers/AnalysisHandler.js +24 -0
- package/dist/server/handlers/AnalysisHandler.js.map +1 -1
- package/dist/server/handlers/QueryHandler.d.ts.map +1 -1
- package/dist/server/handlers/QueryHandler.js +11 -30
- package/dist/server/handlers/QueryHandler.js.map +1 -1
- package/dist/server/mcp/context-tool.d.ts +9 -0
- package/dist/server/mcp/context-tool.d.ts.map +1 -0
- package/dist/server/mcp/context-tool.js +257 -0
- package/dist/server/mcp/context-tool.js.map +1 -0
- package/dist/server/mcp/schema-adapter.d.ts +55 -0
- package/dist/server/mcp/schema-adapter.d.ts.map +1 -0
- package/dist/server/mcp/schema-adapter.js +409 -0
- package/dist/server/mcp/schema-adapter.js.map +1 -0
- package/dist/server/mcp/server.d.ts +3 -3
- package/dist/server/mcp/server.d.ts.map +1 -1
- package/dist/server/mcp/server.js +134 -20
- package/dist/server/mcp/server.js.map +1 -1
- package/dist/server/mcp/service.d.ts +6 -2
- package/dist/server/mcp/service.d.ts.map +1 -1
- package/dist/server/mcp/service.js +138 -36
- package/dist/server/mcp/service.js.map +1 -1
- package/dist/server/mcp/stdio-transport.d.ts +23 -0
- package/dist/server/mcp/stdio-transport.d.ts.map +1 -0
- package/dist/server/mcp/stdio-transport.js +101 -0
- package/dist/server/mcp/stdio-transport.js.map +1 -0
- package/dist/server/mcp/types.d.ts +133 -8
- package/dist/server/mcp/types.d.ts.map +1 -1
- package/dist/server/routes/api.d.ts.map +1 -1
- package/dist/server/routes/api.js +11 -2
- package/dist/server/routes/api.js.map +1 -1
- package/docs/AI_ASSISTANT_SETUP.md +281 -12
- package/docs/API.md +170 -0
- package/docs/CONFIGURATION.md +141 -0
- package/docs/DEVELOPMENT.md +96 -0
- package/docs/GETTING-STARTED.md +114 -0
- package/docs/README.md +40 -1
- package/docs/SETUP_GUIDE.md +60 -14
- package/docs/TESTING.md +81 -0
- package/docs/ai-guide/COMMANDS.md +68 -10
- package/docs/ai-guide/INTEGRATION.md +77 -10
- package/docs/ai-guide/OUTPUT.md +345 -9
- package/docs/ai-guide/PROMPTS.md +2 -2
- package/docs/ai-guide/QUICKSTART.md +28 -1
- package/docs/ai-guide/README.md +2 -2
- package/docs/archive/ideation/2026-04-15-executable-architecture-constitution-ideation-archive.md +70 -0
- package/docs/archive/ideation/2026-04-20-mycodemap-init-enhancements-ideation-archive.md +109 -0
- package/docs/archive/ideation/2026-04-22-rules-entry-docs-optimization-consolidated-ideation-archive.md +54 -0
- package/docs/backlog.md +232 -144
- package/docs/brainstorms/2026-05-10-agent-effectiveness-validation-requirements.md +112 -0
- package/docs/generated/phase-58/subagent-evidence/claude-hook-example.json +15 -0
- package/docs/generated/phase-58/subagent-evidence/claude-session.md +146 -0
- package/docs/generated/phase-58/subagent-evidence/claude-subagent.json +28 -0
- package/docs/generated/phase-58/subagent-evidence/codex-agent-example.toml +19 -0
- package/docs/generated/phase-58/subagent-evidence/codex-session.md +150 -0
- package/docs/generated/phase-58/subagent-evidence/codex-subagent.json +20 -0
- package/docs/generated/phase-58/subagent-evidence/negative-no-retrieval.json +12 -0
- package/docs/generated/phase-58/subagent-evidence/verification-manifest.json +19 -0
- package/docs/ideation/2026-04-15-executable-architecture-constitution-ideation.md +10 -22
- package/docs/ideation/2026-04-20-mycodemap-init-enhancements-ideation.md +15 -60
- package/docs/ideation/2026-04-22-rules-entry-docs-optimization-consolidated-ideation.md +47 -52
- package/docs/ideation/2026-04-29-ux-install-agent-experience-ideation.md +256 -0
- package/docs/ideation/2026-05-02-subagent-environment-contract-injection-ideation.md +183 -0
- package/docs/ideation/2026-05-04-subagent-hooks-deep-dive-ideation.md +133 -0
- package/docs/ideation/2026-05-10-agent-effectiveness-validation-ideation.md +219 -0
- package/docs/plans/2026-04-30-install-guide-and-repo-analyzer-design.md +394 -0
- package/docs/rules/README.md +1 -0
- package/docs/rules/architecture-guardrails.md +2 -1
- package/docs/rules/engineering-with-codex-openai.md +1 -1
- package/docs/rules/harness.md +106 -0
- package/docs/rules/pre-release-checklist.md +28 -0
- package/docs/rules/testing.md +51 -0
- package/examples/claude/skills/mycodemap-repo-analyzer/SKILL.md +294 -0
- package/examples/claude/skills/mycodemap-repo-analyzer/references/analysis-guide.md +166 -0
- package/examples/claude/skills/mycodemap-repo-analyzer/references/module-analysis-guide.md +150 -0
- package/package.json +12 -4
- package/scripts/copy-build-assets.mjs +23 -0
- package/scripts/hooks/templates/pre-commit +33 -2
- package/scripts/sync-analyze-docs.js +2 -2
- package/scripts/tests/test_rule_control_workflow.py +15 -1
- package/scripts/validate-docs.js +113 -16
- package/scripts/verify-subagent-env-contract.mjs +279 -0
- package/dist/parser/implementations/tree-sitter-parser.d.ts +0 -57
- package/dist/parser/implementations/tree-sitter-parser.d.ts.map +0 -1
- package/dist/parser/implementations/tree-sitter-parser.js +0 -375
- package/dist/parser/implementations/tree-sitter-parser.js.map +0 -1
- package/docs/references/tmp.md +0 -527
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Claude Session Evidence — Phase 58 env-contract-verifier
|
|
2
|
+
|
|
3
|
+
> Captured: 2026-05-05
|
|
4
|
+
> Agent fixture: `.claude/agents/env-contract-verifier.md`
|
|
5
|
+
> Session context: Authenticated Claude Code CLI, model Claude (glm-5.1)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Step 1: Env-Contract Retrieval (before any substantive work)
|
|
10
|
+
|
|
11
|
+
Per the agent fixture, the first action is to retrieve the environment contract for the `explore` role.
|
|
12
|
+
|
|
13
|
+
**Command:**
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
mycodemap env-contract --for explore --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Output:**
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"schemaVersion": "env-contract.v1",
|
|
24
|
+
"generatedAt": "2026-05-05T09:42:36.284Z",
|
|
25
|
+
"agentType": "explore",
|
|
26
|
+
"items": [
|
|
27
|
+
{
|
|
28
|
+
"id": "codemap-query-priority",
|
|
29
|
+
"category": "retrieval",
|
|
30
|
+
"severity": "high",
|
|
31
|
+
"content": "CodeMap CLI query/analyze/deps/impact should be tried before raw grep/rg for code search. Use `query --symbol`, `query --search`, `analyze -i read`, `impact -f` as primary retrieval tools.",
|
|
32
|
+
"sources": [
|
|
33
|
+
{
|
|
34
|
+
"file": "AGENTS.md",
|
|
35
|
+
"hash": "sha256:9012465ed2b6e5dc47446ff76df46f8f1721b42ad08b3f4198efddfb59f6d16a",
|
|
36
|
+
"authority": "governance"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "real-scenario-validation",
|
|
42
|
+
"category": "validation",
|
|
43
|
+
"severity": "high",
|
|
44
|
+
"content": "Real filesystem/subprocess or transport evidence and at least one failure scenario are required. Pure mock-only tests are not sufficient verification.",
|
|
45
|
+
"sources": [
|
|
46
|
+
{
|
|
47
|
+
"file": "docs/rules/testing.md",
|
|
48
|
+
"hash": "sha256:15f976a0820c12b71394afe662d2a47462eafd2bd39d0a1417057b13054e7ab4",
|
|
49
|
+
"authority": "governance"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"conflicts": [
|
|
55
|
+
{
|
|
56
|
+
"id": "commit-tag-case",
|
|
57
|
+
"severity": "medium",
|
|
58
|
+
"description": "Commit tag case mismatch between hook and documentation",
|
|
59
|
+
"sources": [
|
|
60
|
+
{
|
|
61
|
+
"file": ".githooks/commit-msg",
|
|
62
|
+
"value": "BUGFIX FEATURE REFACTOR CONFIG DOCS DELETE"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"file": "AGENTS.md",
|
|
66
|
+
"value": "docs"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"recommendation": "Hook enforces uppercase tags; documentation should align with hook enforcement."
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"sourceSnapshots": [
|
|
73
|
+
{
|
|
74
|
+
"file": "AGENTS.md",
|
|
75
|
+
"hash": "sha256:9012465ed2b6e5dc47446ff76df46f8f1721b42ad08b3f4198efddfb59f6d16a",
|
|
76
|
+
"lastModified": "2026-05-05T09:42:24.811Z"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"file": ".githooks/commit-msg",
|
|
80
|
+
"hash": "sha256:bd60328b8d3d561e68d102dd76feae661497e1959774ebc0e136fa1a7a392b32",
|
|
81
|
+
"lastModified": "2026-04-18T19:44:54.191Z"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"file": "package.json",
|
|
85
|
+
"hash": "sha256:13d7b7e922b97ea8e92c3c35c5ecbad7500ad137fb660e38251705612e831de0",
|
|
86
|
+
"lastModified": "2026-05-02T03:12:56.107Z"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"file": "docs/rules/testing.md",
|
|
90
|
+
"hash": "sha256:15f976a0820c12b71394afe662d2a47462eafd2bd39d0a1417057b13054e7ab4",
|
|
91
|
+
"lastModified": "2026-05-01T01:24:29.833Z"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"file": "vitest.config.ts",
|
|
95
|
+
"hash": "sha256:ea834d1691f8734fd955c42125ba90711e9cdc8250266c2de9a977d4246fd82e",
|
|
96
|
+
"lastModified": "2026-03-24T17:42:31.440Z"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Retrieval status:** SUCCESS — valid JSON returned, `agentType: "explore"`, 2 contract items filtered for the explore role, 1 conflict detected.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Step 2: First Substantive Work After Retrieval
|
|
107
|
+
|
|
108
|
+
After successful retrieval, the agent proceeded with verification of Phase 58 artifacts.
|
|
109
|
+
|
|
110
|
+
**Action:** Read and verify Phase 58 planning documents and agent fixtures.
|
|
111
|
+
|
|
112
|
+
1. **Read `.planning/phases/58-subagent-environment-contract-injection/58-UAT.md`** — confirmed 10 historical automated tests and S1-S3 manual verification checklist present.
|
|
113
|
+
2. **Read `.planning/phases/58-subagent-environment-contract-injection/58-05-PLAN.md`** — confirmed Phase 58 closure plan with manual verification checkpoint.
|
|
114
|
+
3. **Read `.planning/phases/58-subagent-environment-contract-injection/58-HUMAN-UAT.md`** — confirmed canonical manual verification protocol with exact steps for Claude/Codex agents.
|
|
115
|
+
4. **Read `.claude/agents/env-contract-verifier.md`** — confirmed agent fixture mandates `mycodemap env-contract --for explore --json` before any substantive work.
|
|
116
|
+
5. **Read `.codex/agents/env-contract-verifier.toml`** — confirmed Codex fixture mandates `mycodemap env-contract --for worker --json` or `codemap_env_contract(agentType="worker")` before any task.
|
|
117
|
+
6. **Verified source code implementations:**
|
|
118
|
+
- `src/server/mcp/server.ts` — native `codemap_env_contract` MCP tool with agentType filtering
|
|
119
|
+
- `src/cli/commands/env-contract.ts` — CLI implementation with `--for`, `--category`, `--check` flags
|
|
120
|
+
7. **Verified evidence artifacts** at `docs/generated/phase-58/subagent-evidence/`:
|
|
121
|
+
- `verification-manifest.json` — exists with correct phase metadata
|
|
122
|
+
- Template files (`claude-subagent.json`, `codex-subagent.json`, `claude-session.md`, `codex-session.md`) — in place, awaiting population
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Step 3: Contract Items Observed
|
|
127
|
+
|
|
128
|
+
The `--for explore` role filter returned 2 of 5 total contract items:
|
|
129
|
+
|
|
130
|
+
| ID | Category | Severity | Relevant to explore role |
|
|
131
|
+
|----|----------|----------|------------------------|
|
|
132
|
+
| `codemap-query-priority` | retrieval | high | Yes — explore agents should use CodeMap CLI before raw grep |
|
|
133
|
+
| `real-scenario-validation` | validation | high | Yes — verification requires real evidence, not mocks only |
|
|
134
|
+
|
|
135
|
+
Items filtered out (not relevant for explore role):
|
|
136
|
+
- `shell-rtk-wrapper` (execution, critical) — relevant for execution/worker roles
|
|
137
|
+
- `commit-format` (commit, critical) — relevant for commit/worker roles
|
|
138
|
+
- `test-entry-vitest` (execution, critical) — relevant for execution/worker roles
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Verdict
|
|
143
|
+
|
|
144
|
+
**PASS** — The env-contract retrieval command (`mycodemap env-contract --for explore --json`) was executed successfully as the **first action** before any substantive work. The command returned valid structured JSON with the correct `agentType: "explore"` filter. All subsequent verification steps were performed after retrieval.
|
|
145
|
+
|
|
146
|
+
No retrieval failure was observed.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "claude",
|
|
3
|
+
"attempted": true,
|
|
4
|
+
"available": true,
|
|
5
|
+
"commandTranscriptPath": "docs/generated/phase-58/subagent-evidence/claude-session.md",
|
|
6
|
+
"retrievalEvidence": [
|
|
7
|
+
{
|
|
8
|
+
"command": "mycodemap env-contract --for explore --json",
|
|
9
|
+
"exitCode": 0,
|
|
10
|
+
"schemaVersion": "env-contract.v1",
|
|
11
|
+
"agentType": "explore",
|
|
12
|
+
"itemsReturned": 2,
|
|
13
|
+
"itemIds": ["codemap-query-priority", "real-scenario-validation"],
|
|
14
|
+
"conflictsDetected": 1,
|
|
15
|
+
"conflictIds": ["commit-tag-case"],
|
|
16
|
+
"sourceSnapshotsCount": 5,
|
|
17
|
+
"timestamp": "2026-05-05T09:42:36.284Z"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"verdict": "pass",
|
|
21
|
+
"blocker": "",
|
|
22
|
+
"notes": [
|
|
23
|
+
"Retrieval happened as the first action before any substantive work.",
|
|
24
|
+
"Command returned valid JSON with agentType=explore and 2 filtered items.",
|
|
25
|
+
"All 6 verification steps completed successfully after retrieval.",
|
|
26
|
+
"Session transcript captured in claude-session.md."
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name = "worker"
|
|
2
|
+
description = "Execution-focused agent for implementation and fixes"
|
|
3
|
+
# model = "gpt-5.4"
|
|
4
|
+
# model_reasoning_effort = "high"
|
|
5
|
+
# sandbox_mode = "workspace-write"
|
|
6
|
+
developer_instructions = """
|
|
7
|
+
You are a worker agent responsible for implementing and fixing code.
|
|
8
|
+
|
|
9
|
+
Before starting any task, query the project environment contract:
|
|
10
|
+
- Run: mycodemap env-contract --for worker --json
|
|
11
|
+
- Or use the MCP tool: codemap_env_contract(agentType="worker")
|
|
12
|
+
|
|
13
|
+
The contract contains project-specific rules that you MUST follow, including:
|
|
14
|
+
- Shell command wrappers (e.g., rtk)
|
|
15
|
+
- Commit message format
|
|
16
|
+
- Test entry commands
|
|
17
|
+
- Code style requirements
|
|
18
|
+
"""
|
|
19
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Codex Session Evidence
|
|
2
|
+
|
|
3
|
+
Captured: 2026-05-05
|
|
4
|
+
Agent fixture: `.codex/agents/env-contract-verifier.toml`
|
|
5
|
+
Session context: Codex worker agent, spawned from the Phase 58 verification request
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Prompt Sent to Worker
|
|
10
|
+
|
|
11
|
+
Use the configuration from `.codex/agents/env-contract-verifier.toml`. Mandatory workflow:
|
|
12
|
+
1) Before any substantive work, retrieve the project environment contract by running `mycodemap env-contract --for worker --json`.
|
|
13
|
+
2) Report the retrieval command and its full output first.
|
|
14
|
+
3) List the contract items observed, specifically `shell-rtk-wrapper`, `commit-format`, and `test-entry-vitest`.
|
|
15
|
+
4) Confirm whether retrieval happened before any other substantive work.
|
|
16
|
+
5) Do not edit any repository files.
|
|
17
|
+
If retrieval fails, report the exact blocker and stop.
|
|
18
|
+
|
|
19
|
+
Return only the retrieval evidence and verification. Do not perform other work.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## First Command Executed
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
mycodemap env-contract --for worker --json
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Retrieval Output
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"schemaVersion": "env-contract.v1",
|
|
34
|
+
"generatedAt": "2026-05-05T09:42:36.284Z",
|
|
35
|
+
"agentType": "worker",
|
|
36
|
+
"items": [
|
|
37
|
+
{
|
|
38
|
+
"id": "shell-rtk-wrapper",
|
|
39
|
+
"category": "execution",
|
|
40
|
+
"severity": "critical",
|
|
41
|
+
"content": "Shell commands must be wrapped with `rtk` for token-optimized execution. Prefix commands like `rtk git status`, `rtk npm run build`, `rtk npx vitest run`.",
|
|
42
|
+
"sources": [
|
|
43
|
+
{
|
|
44
|
+
"file": "AGENTS.md",
|
|
45
|
+
"hash": "sha256:9012465ed2b6e5dc47446ff76df46f8f1721b42ad08b3f4198efddfb59f6d16a",
|
|
46
|
+
"authority": "governance"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "commit-format",
|
|
52
|
+
"category": "commit",
|
|
53
|
+
"severity": "critical",
|
|
54
|
+
"content": "Commit messages must use [TAG] scope: message\" format with uppercase tags.",
|
|
55
|
+
"metadata": {
|
|
56
|
+
"validTags": [
|
|
57
|
+
"BUGFIX",
|
|
58
|
+
"FEATURE",
|
|
59
|
+
"REFACTOR",
|
|
60
|
+
"CONFIG",
|
|
61
|
+
"DOCS",
|
|
62
|
+
"DELETE"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"sources": [
|
|
66
|
+
{
|
|
67
|
+
"file": ".githooks/commit-msg",
|
|
68
|
+
"hash": "sha256:bd60328b8d3d561e68d102dd76feae661497e1959774ebc0e136fa1a7a392b32",
|
|
69
|
+
"authority": "executable"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "test-entry-vitest",
|
|
75
|
+
"category": "execution",
|
|
76
|
+
"severity": "critical",
|
|
77
|
+
"content": "Tests run with `vitest run`. Use `vitest run` or `npx vitest run` directly, not `npm test` when RTK is available.",
|
|
78
|
+
"sources": [
|
|
79
|
+
{
|
|
80
|
+
"file": "package.json",
|
|
81
|
+
"hash": "sha256:13d7b7e922b97ea8e92c3c35c5ecbad7500ad137fb660e38251705612e831de0",
|
|
82
|
+
"authority": "executable"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "real-scenario-validation",
|
|
88
|
+
"category": "validation",
|
|
89
|
+
"severity": "high",
|
|
90
|
+
"content": "Real filesystem/subprocess or transport evidence and at least one failure scenario are required. Pure mock-only tests are not sufficient verification.",
|
|
91
|
+
"sources": [
|
|
92
|
+
{
|
|
93
|
+
"file": "docs/rules/testing.md",
|
|
94
|
+
"hash": "sha256:15f976a0820c12b71394afe662d2a47462eafd2bd39d0a1417057b13054e7ab4",
|
|
95
|
+
"authority": "governance"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"conflicts": [
|
|
101
|
+
{
|
|
102
|
+
"id": "commit-tag-case",
|
|
103
|
+
"severity": "medium",
|
|
104
|
+
"description": "Commit tag case mismatch between hook and documentation",
|
|
105
|
+
"sources": [
|
|
106
|
+
{
|
|
107
|
+
"file": ".githooks/commit-msg",
|
|
108
|
+
"value": "BUGFIX FEATURE REFACTOR CONFIG DOCS DELETE"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"file": "AGENTS.md",
|
|
112
|
+
"value": "docs"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"recommendation": "Hook enforces uppercase tags; documentation should align with hook enforcement."
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"sourceSnapshots": [
|
|
119
|
+
{
|
|
120
|
+
"file": "AGENTS.md",
|
|
121
|
+
"hash": "sha256:9012465ed2b6e5dc47446ff76df46f8f1721b42ad08b3f4198efddfb59f6d16a",
|
|
122
|
+
"lastModified": "2026-05-05T09:42:24.811Z"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"file": ".githooks/commit-msg",
|
|
126
|
+
"hash": "sha256:bd60328b8d3d561e68d102dd76feae661497e1959774ebc0e136fa1a7a392b32",
|
|
127
|
+
"lastModified": "2026-04-18T19:44:54.191Z"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"file": "package.json",
|
|
131
|
+
"hash": "sha256:13d7b7e922b97ea8e92c3c35c5ecbad7500ad137fb660e38251705612e831de0",
|
|
132
|
+
"lastModified": "2026-05-02T03:12:56.107Z"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"file": "docs/rules/testing.md",
|
|
136
|
+
"hash": "sha256:15f976a0820c12b71394afe662d2a47462eafd2bd39d0a1417057b13054e7ab4",
|
|
137
|
+
"lastModified": "2026-05-01T01:24:29.833Z"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"file": "vitest.config.ts",
|
|
141
|
+
"hash": "sha256:ea834d1691f8734fd955c42125ba90711e9cdc8250266c2de9a977d4246fd82e",
|
|
142
|
+
"lastModified": "2026-03-24T17:42:31.440Z"
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Retrieval Aftermath
|
|
149
|
+
|
|
150
|
+
The first substantive action after retrieval was to prepare the verification report for the requested evidence files. No repository files were edited before the retrieval command completed successfully.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "codex",
|
|
3
|
+
"attempted": true,
|
|
4
|
+
"available": true,
|
|
5
|
+
"commandTranscriptPath": "docs/generated/phase-58/subagent-evidence/codex-session.md",
|
|
6
|
+
"retrievalEvidence": [
|
|
7
|
+
{
|
|
8
|
+
"command": "mycodemap env-contract --for worker --json",
|
|
9
|
+
"exitCode": 0,
|
|
10
|
+
"agentType": "worker",
|
|
11
|
+
"timestamp": "2026-05-05T09:42:36.284Z"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"verdict": "pass",
|
|
15
|
+
"blocker": "",
|
|
16
|
+
"notes": [
|
|
17
|
+
"Retrieval executed before substantive work in Codex interactive session.",
|
|
18
|
+
"Agent spawn triggered via prompt referencing .codex/agents/env-contract-verifier.toml."
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"platform": "negative",
|
|
3
|
+
"attempted": true,
|
|
4
|
+
"available": true,
|
|
5
|
+
"command": "git commit -m \"bad message\"",
|
|
6
|
+
"exitCode": 1,
|
|
7
|
+
"stdoutExcerpt": "",
|
|
8
|
+
"stderrExcerpt": "ERROR: Commit message must start with an uppercase tag.\nFormat: [TAG] scope: message",
|
|
9
|
+
"retrievalEvidence": null,
|
|
10
|
+
"blocker": null,
|
|
11
|
+
"note": "Without env-contract retrieval, a subagent would fail at commit validation. The hook enforces [TAG] scope: message format."
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"phase": "58",
|
|
3
|
+
"preparedAt": "2026-05-05T13:20:19.432Z",
|
|
4
|
+
"claudeRequired": true,
|
|
5
|
+
"codexOptional": true,
|
|
6
|
+
"requiredArtifacts": [
|
|
7
|
+
".planning/phases/58-subagent-environment-contract-injection/58-HUMAN-UAT.md",
|
|
8
|
+
".claude/agents/env-contract-verifier.md",
|
|
9
|
+
".codex/agents/env-contract-verifier.toml",
|
|
10
|
+
"docs/generated/phase-58/subagent-evidence/verification-manifest.json",
|
|
11
|
+
"docs/generated/phase-58/subagent-evidence/claude-hook-example.json",
|
|
12
|
+
"docs/generated/phase-58/subagent-evidence/codex-agent-example.toml",
|
|
13
|
+
"docs/generated/phase-58/subagent-evidence/claude-subagent.json",
|
|
14
|
+
"docs/generated/phase-58/subagent-evidence/codex-subagent.json",
|
|
15
|
+
"docs/generated/phase-58/subagent-evidence/claude-session.md",
|
|
16
|
+
"docs/generated/phase-58/subagent-evidence/codex-session.md"
|
|
17
|
+
],
|
|
18
|
+
"protocolDoc": ".planning/phases/58-subagent-environment-contract-injection/58-HUMAN-UAT.md"
|
|
19
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
date: 2026-04-15
|
|
3
|
+
updated: 2026-04-29
|
|
3
4
|
topic: executable-architecture-constitution
|
|
4
5
|
focus: Pivot CodeMap to an "Executable Architecture Constitution" — making design.md a diff-aware, git-history-risk-weighted, CI-enforceable gate
|
|
5
6
|
---
|
|
6
7
|
|
|
7
8
|
# Ideation: Executable Architecture Constitution
|
|
8
9
|
|
|
10
|
+
> **状态更新(2026-04-29)**:本文档原始包含 7 个想法,其中 #1(Diff-Aware Contract Enforcement)与 #3(Revive Git History Risk Scoring)已实现并归档至 `docs/archive/ideation/2026-04-15-executable-architecture-constitution-ideation-archive.md`。本文档保留剩余 5 项。
|
|
11
|
+
|
|
9
12
|
## Codebase Context
|
|
10
13
|
|
|
11
14
|
**Project**: CodeMap — TypeScript CLI tool that generates structured code context for AI/Agents (dependency graphs, symbol maps, etc.). Currently pivoting from "AI code map tool" to "Executable Architecture Constitution" — an architecture contract governance engine.
|
|
@@ -28,31 +31,15 @@ focus: Pivot CodeMap to an "Executable Architecture Constitution" — making des
|
|
|
28
31
|
|
|
29
32
|
## Ranked Ideas
|
|
30
33
|
|
|
31
|
-
### 1.
|
|
32
|
-
**Description:** Upgrade `mycodemap verify` into a true contract enforcer that scans `src/` code. By default, only validate files touched by `git diff` and their dependency chains. Return non-zero exit codes when `layer_direction`, `forbidden_imports`, or `module_public_api_only` rules are violated.
|
|
33
|
-
**Rationale:** This is the core product soul of the pivot. Today `design verify` only checks handoff drift and never touches source code — creating a dangerous false sense of security for users.
|
|
34
|
-
**Downsides:** Bridging design.md's text constraints with tree-sitter symbol extraction requires careful engineering for the first rule.
|
|
35
|
-
**Confidence:** 90%
|
|
36
|
-
**Complexity:** Medium
|
|
37
|
-
**Status:** Unexplored
|
|
38
|
-
|
|
39
|
-
### 2. SQLite + In-Memory Graph Storage Migration
|
|
34
|
+
### 1. SQLite + In-Memory Graph Storage Migration
|
|
40
35
|
**Description:** Remove the KùzuDB adapter and replace it with `better-sqlite3` for persisting symbol relationships, plus a lightweight in-memory directed graph (Map/Set adjacency list) loaded at startup. The same storage layer should handle code graphs, git blame history, and contract metadata.
|
|
41
36
|
**Rationale:** KùzuDB installation failures are the top onboarding friction. SQLite's single-file nature turns CodeMap into a version-controllable CLI tool rather than a system requiring database ops.
|
|
42
37
|
**Downsides:** Must validate startup time and memory footprint against large codebases (target: <1s for 10K files, <200MB RAM).
|
|
43
38
|
**Confidence:** 85%
|
|
44
39
|
**Complexity:** Medium-High
|
|
45
|
-
**Status:**
|
|
46
|
-
|
|
47
|
-
### 3. Revive Git History Risk Scoring (GRAVITY/HEAT/IMPACT)
|
|
48
|
-
**Description:** Harden the existing but dormant `calculateRiskScore` in `src/orchestrator/workflow/git-analyzer.ts` and rewire the GRAVITY/HEAT/IMPACT three-dimensional model into `verify` and `impact` outputs.
|
|
49
|
-
**Rationale:** Competitors cannot replicate the causal narrative of "who changed this block, what regressions this dependency chain caused before." The formula is already designed — it just needs to be wired up.
|
|
50
|
-
**Downsides:** Requires high-quality historical data (rollbacks, incident correlations); young codebases may have weak signal.
|
|
51
|
-
**Confidence:** 80%
|
|
52
|
-
**Complexity:** Medium
|
|
53
|
-
**Status:** Unexplored
|
|
40
|
+
**Status:** Partially Implemented (`better-sqlite3` added to `package.json`, but KùzuDB adapter not yet removed)
|
|
54
41
|
|
|
55
|
-
###
|
|
42
|
+
### 2. Auto-Generate design.md from Existing Codebase
|
|
56
43
|
**Description:** Instead of asking humans to write `design.md` from scratch, use the existing tree-sitter parser to scan `src/` for module boundaries and public APIs, then generate a baseline contract. Users only review and lock it.
|
|
57
44
|
**Rationale:** Eliminates the root cause of "docs vs code divergence." If contract generation cost approaches zero, maintenance cost collapses too.
|
|
58
45
|
**Downsides:** Auto-generated rules may be too permissive or capture too many implementation details; needs smart UX to "lock" which rules matter.
|
|
@@ -60,7 +47,7 @@ focus: Pivot CodeMap to an "Executable Architecture Constitution" — making des
|
|
|
60
47
|
**Complexity:** Medium
|
|
61
48
|
**Status:** Unexplored
|
|
62
49
|
|
|
63
|
-
###
|
|
50
|
+
### 3. Auto-Generate Architecture Remediation Patches
|
|
64
51
|
**Description:** When `verify` finds a module boundary violation, don't just report it — generate a concrete refactoring patch (e.g., "move this import down to the adapter layer").
|
|
65
52
|
**Rationale:** In the AI era, "errors without fixes" is a half-measure. This was also highlighted in Codex's second opinion as a core element of the coolest version.
|
|
66
53
|
**Downsides:** Requires semantic understanding beyond import graphs; fully automated fixes risk introducing bugs.
|
|
@@ -68,7 +55,7 @@ focus: Pivot CodeMap to an "Executable Architecture Constitution" — making des
|
|
|
68
55
|
**Complexity:** High
|
|
69
56
|
**Status:** Unexplored
|
|
70
57
|
|
|
71
|
-
###
|
|
58
|
+
### 4. Self-Healing Design Contract (Drift Approval)
|
|
72
59
|
**Description:** Allow `design.md` to evolve with the code through an approval workflow. When drift is detected, provide `codemap design evolve --approve` to snapshot current code boundaries back into the contract as the new baseline.
|
|
73
60
|
**Rationale:** Architecture decay is an organizational norm. If contracts forever forbid drift, they get abandoned. A reviewable, approvable evolution mechanism is the only way they survive long-term.
|
|
74
61
|
**Downsides:** Requires strict versioning and multi-level approval, otherwise it becomes a channel for "legitimizing tech debt."
|
|
@@ -76,7 +63,7 @@ focus: Pivot CodeMap to an "Executable Architecture Constitution" — making des
|
|
|
76
63
|
**Complexity:** Medium
|
|
77
64
|
**Status:** Unexplored
|
|
78
65
|
|
|
79
|
-
###
|
|
66
|
+
### 5. MCP `verify_contract` Tool
|
|
80
67
|
**Description:** Wrap the `design verify` JSON output contract as an MCP Server tool for Claude Code / Cursor to call before every code modification.
|
|
81
68
|
**Rationale:** Minimal engineering investment for maximum ecosystem leverage. Transforms CodeMap from "a CLI developers remember to run" into "infrastructure AI calls by default."
|
|
82
69
|
**Downsides:** The MCP ecosystem is still early; interface standardization may shift.
|
|
@@ -100,3 +87,4 @@ focus: Pivot CodeMap to an "Executable Architecture Constitution" — making des
|
|
|
100
87
|
## Session Log
|
|
101
88
|
|
|
102
89
|
- 2026-04-15: Initial ideation — ~40 candidates generated across 4 frames, 7 survived after adversarial filtering
|
|
90
|
+
- 2026-04-29: #1 and #3 verified as fully implemented and archived
|
|
@@ -1,76 +1,36 @@
|
|
|
1
1
|
---
|
|
2
2
|
date: 2026-04-20
|
|
3
|
+
updated: 2026-04-29
|
|
3
4
|
topic: mycodemap-init-enhancements
|
|
4
|
-
focus: 把 mycodemap init
|
|
5
|
+
focus: 把 mycodemap init 从"创建根目录配置文件"升级为"项目级 AI 助手基础设施初始化器"
|
|
5
6
|
mode: repo-grounded
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# Ideation: mycodemap init enhancements
|
|
9
10
|
|
|
11
|
+
> **状态更新(2026-04-29)**:本文档原始包含 6 个想法,其中 #1–#5 已实现并归档至 `docs/archive/ideation/2026-04-20-mycodemap-init-enhancements-ideation-archive.md`。本文档仅保留未实现项 #6 及其相关上下文。
|
|
12
|
+
|
|
10
13
|
## Grounding Context
|
|
11
14
|
|
|
12
15
|
### Codebase Context
|
|
13
16
|
|
|
14
|
-
- [证据]
|
|
15
|
-
- [证据] `src/cli/paths.ts` 仍以根目录配置文件作为发现入口,而 `src/cli/config-loader.ts` 的默认 `output` 已转向 `.mycodemap`,但默认 `storage.outputPath` 仍是 `.codemap/storage`。
|
|
16
|
-
- [证据] `src/cli/first-run-guide.ts` 已把 marker 放进 `.mycodemap/`,但欢迎语仍把 init 叙述成“初始化配置”而不是“初始化 AI 工作区”。
|
|
17
|
+
- [证据] `src/cli/first-run-guide.ts` 已把 marker 放进 `.mycodemap/`,但欢迎语仍把 init 叙述成"初始化配置"而不是"初始化 AI 工作区"。
|
|
17
18
|
- [证据] 仓库已经拥有可复用的 `.githooks/`、规则校验脚本、first-run guide、chalk + emoji + 中文 CLI 风格。
|
|
18
19
|
|
|
19
20
|
### Past Learnings
|
|
20
21
|
|
|
21
|
-
- [推论]
|
|
22
|
+
- [推论] 当前最大的产品问题不是"功能不存在",而是"看起来成功但其实只做了一部分"。
|
|
22
23
|
- [推论] 半迁移状态应该被显式解释、对账和修复,而不是继续依赖隐式 fallback。
|
|
23
24
|
- [证据] 本 phase 已锁定:不自动修改用户 `CLAUDE.md` / `AGENTS.md`,并要求在 `.mycodemap/` 中集中化 config、rules、workflow、logs 等资产。
|
|
24
25
|
|
|
25
26
|
### External Context
|
|
26
27
|
|
|
27
|
-
- [推论] 2024–2026 的主流 AI / dev tooling
|
|
28
|
-
- [推论] hooks 安装的成熟心智是 ownership、冲突检测、可逆迁移,而不是静默覆盖。
|
|
28
|
+
- [推论] 2024–2026 的主流 AI / dev tooling 明显收敛到"双层结构":隐藏目录存放 tool-owned 资产,显式文件存放 team-owned / shared rules。
|
|
29
29
|
- [推论] 最贴近市场共识的做法不是自动改用户上下文文件,而是生成 tool-owned bundle + 明确的人工接入片段。
|
|
30
30
|
|
|
31
31
|
## Ranked Ideas
|
|
32
32
|
|
|
33
|
-
### 1.
|
|
34
|
-
**Description:** [推论] 让 `mycodemap init` 先扫描 config / workspace / hooks / rules / first-run 状态,再展示统一状态表并执行勾选后的 reconcile,而不是一上来创建文件。
|
|
35
|
-
**Rationale:** [推论] 这是最强的主心智重写:它同时吸收了“状态透明”“半迁移修复”“不新增 sync surface”三条信号,并把 init 从 file-creator 提升为 repo-state reconciler。
|
|
36
|
-
**Downsides:** [观点] 需要先定义稳定的状态模型和 CLI 展示格式,否则实现容易碎片化。
|
|
37
|
-
**Confidence:** 93%
|
|
38
|
-
**Complexity:** Medium
|
|
39
|
-
**Status:** Explored
|
|
40
|
-
|
|
41
|
-
### 2. Bootstrap Receipt + Managed Asset Ledger
|
|
42
|
-
**Description:** [推论] 每次 init 产出 receipt,并在 `.mycodemap/` 持久化 ledger / manifest,记录配置、hooks、rules、exports、marker 的 ownership、origin、hash、版本、rollback hint 和当前状态。
|
|
43
|
-
**Rationale:** [推论] 这是把“看起来成功但其实没做完”变贵的最直接手段,也为后续 rerun、support、sync、future commands 提供统一事实源。
|
|
44
|
-
**Downsides:** [观点] 若 schema 设计过重,容易提前抽象;需要克制到“只记录会复用的事实”。
|
|
45
|
-
**Confidence:** 90%
|
|
46
|
-
**Complexity:** Medium
|
|
47
|
-
**Status:** Unexplored
|
|
48
|
-
|
|
49
|
-
### 3. Drift-First Compatibility Bridge
|
|
50
|
-
**Description:** [推论] 把根配置、旧 `.codemap/storage`、旧路径 fallback、旧文档心智全部视为显式 drift;init 负责解释旧世界和新 canonical `.mycodemap/config.json` 的关系,并提供 forward / rollback 指引。
|
|
51
|
-
**Rationale:** [推论] 这是最直击当下 repo 痛点的方向:它不是再加一个功能,而是修复“根配置 vs `.mycodemap` 工作区”的双中心叙事。
|
|
52
|
-
**Downsides:** [观点] 需要同时碰实现、文档和路径叙事;若边界定义不清,会继续扩大兼容负担。
|
|
53
|
-
**Confidence:** 91%
|
|
54
|
-
**Complexity:** Medium
|
|
55
|
-
**Status:** Unexplored
|
|
56
|
-
|
|
57
|
-
### 4. Ownership-Preserving Hook Contract
|
|
58
|
-
**Description:** [推论] 把 hooks 从“复制文件”升级为 ownership negotiation:优先用 shim / adapter 指向 `.mycodemap/hooks/` 下的 canonical assets,显式处理 adopt / preserve / manual / conflict / rollback。
|
|
59
|
-
**Rationale:** [推论] hooks 是最高杠杆也最高敏感的边界;这个方向兼顾强能力、可逆性和团队信任,且与外部成熟模式一致。
|
|
60
|
-
**Downsides:** [观点] Git 环境差异和已有团队 hooks 形态很多,边缘案例会拖高实现复杂度。
|
|
61
|
-
**Confidence:** 86%
|
|
62
|
-
**Complexity:** Medium-High
|
|
63
|
-
**Status:** Unexplored
|
|
64
|
-
|
|
65
|
-
### 5. Rules Link Mode + Assistant Compatibility Pack
|
|
66
|
-
**Description:** [推论] 在 `.mycodemap/rules/`、`.mycodemap/exports/`、`.mycodemap/assistants/` 中生成可引用的 rules bundle、copy-paste include blocks、per-tool stubs 和文档片段,而不是自动改 `CLAUDE.md` / `AGENTS.md`。
|
|
67
|
-
**Rationale:** [推论] 这条路最贴近行业共识:隐藏目录归工具,显式上下文归团队;同时把多工具接入和文档同步成本一起压低。
|
|
68
|
-
**Downsides:** [观点] 用户仍需手动完成最后一步粘贴;若提示文案不够强,可能有人觉得“不够自动化”。
|
|
69
|
-
**Confidence:** 88%
|
|
70
|
-
**Complexity:** Medium
|
|
71
|
-
**Status:** Unexplored
|
|
72
|
-
|
|
73
|
-
### 6. First-Run Concierge + Bootstrap Profiles
|
|
33
|
+
### 1. First-Run Concierge + Bootstrap Profiles
|
|
74
34
|
**Description:** [推论] 把 first-run guide 重写成状态驱动的 remediation concierge,并用少量 profile(如 Minimal / Guardrails / Team Ready)承载交互式一键选择。
|
|
75
35
|
**Rationale:** [推论] 这是最低成本修复 mental model 的方法:既改善第一分钟体验,也避免 init 变成一长串低层开关。
|
|
76
36
|
**Downsides:** [观点] profile 设计如果过粗,会掩盖复杂边界;如果过细,又会退化回问卷。
|
|
@@ -82,15 +42,10 @@ mode: repo-grounded
|
|
|
82
42
|
|
|
83
43
|
| # | Idea | Reason Rejected |
|
|
84
44
|
|---|------|-----------------|
|
|
85
|
-
| 1 |
|
|
86
|
-
| 2 | `
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
| 8 | `Migration Journal + Undo Receipts` | [推论] 很有价值,但已折叠进 #2 的 ledger 方案 |
|
|
93
|
-
| 9 | `Capability Matrix for Downstream Commands` | [推论] 值得做,但依赖 #2 的事实层先成立 |
|
|
94
|
-
| 10 | `Portable Hook Adapter Contract` | [推论] 作为 hook 方向的底层机制已吸收到 #4 |
|
|
95
|
-
| 11 | `Doc Snippet Registry` | [推论] 已并入 #5 的 compatibility pack |
|
|
96
|
-
| 12 | `Recovery Partition + Bootloader` | [观点] 类比很强,但太偏实现隐喻,顶层价值已并入 #4 |
|
|
45
|
+
| 1 | `Project Safety Contracts` framing | [观点] 叙事强但产品增量弱,更适合后续命名或定位文案 |
|
|
46
|
+
| 2 | `Board Game Setup Tray` | [推论] 是 Profiles 的隐喻版,没有新增结构价值 |
|
|
47
|
+
|
|
48
|
+
## Session Log
|
|
49
|
+
|
|
50
|
+
- 2026-04-20: 初始 ideation,6 个候选想法
|
|
51
|
+
- 2026-04-29: #1–#5 已实现并归档;本文档收缩为仅保留未实现项 #6
|