@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,279 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* [META] since:2026-05-02 | owner:cli-team | stable:false
|
|
5
|
+
* [WHY] Prepare Phase 58 subagent verification fixtures and evidence templates.
|
|
6
|
+
* Stages build output, helper snippets, agent definitions, and manual-checkpoint assets.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { execFileSync } from 'node:child_process';
|
|
10
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
11
|
+
import path from 'node:path';
|
|
12
|
+
|
|
13
|
+
const REPO_ROOT = path.resolve(import.meta.dirname, '..');
|
|
14
|
+
const CLI_PATH = path.join(REPO_ROOT, 'dist', 'cli', 'index.js');
|
|
15
|
+
const PHASE_DIR = path.join(
|
|
16
|
+
REPO_ROOT,
|
|
17
|
+
'.planning',
|
|
18
|
+
'phases',
|
|
19
|
+
'58-subagent-environment-contract-injection'
|
|
20
|
+
);
|
|
21
|
+
const EVIDENCE_DIR = path.join(REPO_ROOT, 'docs', 'generated', 'phase-58', 'subagent-evidence');
|
|
22
|
+
const HUMAN_UAT_PATH = path.join(PHASE_DIR, '58-HUMAN-UAT.md');
|
|
23
|
+
const CLAUDE_AGENT_PATH = path.join(REPO_ROOT, '.claude', 'agents', 'env-contract-verifier.md');
|
|
24
|
+
const CODEX_AGENT_PATH = path.join(REPO_ROOT, '.codex', 'agents', 'env-contract-verifier.toml');
|
|
25
|
+
const MANIFEST_PATH = path.join(EVIDENCE_DIR, 'verification-manifest.json');
|
|
26
|
+
const CLAUDE_HOOK_EXAMPLE_PATH = path.join(EVIDENCE_DIR, 'claude-hook-example.json');
|
|
27
|
+
const CODEX_AGENT_EXAMPLE_PATH = path.join(EVIDENCE_DIR, 'codex-agent-example.toml');
|
|
28
|
+
const CLAUDE_EVIDENCE_PATH = path.join(EVIDENCE_DIR, 'claude-subagent.json');
|
|
29
|
+
const CODEX_EVIDENCE_PATH = path.join(EVIDENCE_DIR, 'codex-subagent.json');
|
|
30
|
+
const CLAUDE_SESSION_PATH = path.join(EVIDENCE_DIR, 'claude-session.md');
|
|
31
|
+
const CODEX_SESSION_PATH = path.join(EVIDENCE_DIR, 'codex-session.md');
|
|
32
|
+
|
|
33
|
+
const REQUIRED_ARTIFACTS = [
|
|
34
|
+
relativePath(HUMAN_UAT_PATH),
|
|
35
|
+
relativePath(CLAUDE_AGENT_PATH),
|
|
36
|
+
relativePath(CODEX_AGENT_PATH),
|
|
37
|
+
relativePath(MANIFEST_PATH),
|
|
38
|
+
relativePath(CLAUDE_HOOK_EXAMPLE_PATH),
|
|
39
|
+
relativePath(CODEX_AGENT_EXAMPLE_PATH),
|
|
40
|
+
relativePath(CLAUDE_EVIDENCE_PATH),
|
|
41
|
+
relativePath(CODEX_EVIDENCE_PATH),
|
|
42
|
+
relativePath(CLAUDE_SESSION_PATH),
|
|
43
|
+
relativePath(CODEX_SESSION_PATH),
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
function relativePath(filePath) {
|
|
47
|
+
return path.relative(REPO_ROOT, filePath).replaceAll(path.sep, '/');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function ensureParentDir(filePath) {
|
|
51
|
+
mkdirSync(path.dirname(filePath), { recursive: true });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function writeText(filePath, content) {
|
|
55
|
+
ensureParentDir(filePath);
|
|
56
|
+
writeFileSync(filePath, content, 'utf8');
|
|
57
|
+
console.log(` wrote ${relativePath(filePath)}`);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function writeJson(filePath, value) {
|
|
61
|
+
writeText(filePath, `${JSON.stringify(value, null, 2)}\n`);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function captureCommand(command, args) {
|
|
65
|
+
return execFileSync(command, args, {
|
|
66
|
+
cwd: REPO_ROOT,
|
|
67
|
+
encoding: 'utf8',
|
|
68
|
+
stdio: ['ignore', 'pipe', 'inherit'],
|
|
69
|
+
env: { ...process.env, NO_COLOR: '1' },
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function runStreaming(command, args) {
|
|
74
|
+
execFileSync(command, args, {
|
|
75
|
+
cwd: REPO_ROOT,
|
|
76
|
+
stdio: 'inherit',
|
|
77
|
+
env: { ...process.env, NO_COLOR: '1' },
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function buildClaudeVerifierAgent() {
|
|
82
|
+
return `---
|
|
83
|
+
name: env-contract-verifier
|
|
84
|
+
description: Phase 58 verification-only agent. Confirm env-contract retrieval happens before any substantive work.
|
|
85
|
+
tools: Read, Bash, Grep, Glob
|
|
86
|
+
model: haiku
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
You are a verification-only subagent for Phase 58.
|
|
90
|
+
|
|
91
|
+
Before any substantive work, retrieve the project environment contract.
|
|
92
|
+
Primary path:
|
|
93
|
+
1. Run \`mycodemap env-contract --for explore --json\`
|
|
94
|
+
Alternate path only if CLI retrieval is unavailable:
|
|
95
|
+
1. Call \`codemap_env_contract(agentType="explore")\`
|
|
96
|
+
|
|
97
|
+
After retrieval:
|
|
98
|
+
2. Report the retrieval command and output first.
|
|
99
|
+
3. List the contract items you observed, including \`shell-rtk-wrapper\`, \`commit-format\`, and \`test-entry-vitest\`.
|
|
100
|
+
4. Stop after reporting whether retrieval happened before any other substantive work.
|
|
101
|
+
|
|
102
|
+
Do not edit repository files.
|
|
103
|
+
Do not skip the retrieval step.
|
|
104
|
+
If retrieval fails, report the exact blocker and stop.
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function buildCodexVerifierAgent() {
|
|
109
|
+
return `name = "env-contract-verifier"
|
|
110
|
+
description = "Phase 58 verification-only agent. Confirm env-contract retrieval happens before any substantive work."
|
|
111
|
+
developer_instructions = """
|
|
112
|
+
You are a verification-only subagent for Phase 58.
|
|
113
|
+
|
|
114
|
+
Before any substantive work, retrieve the project environment contract.
|
|
115
|
+
Primary path:
|
|
116
|
+
1. Run: mycodemap env-contract --for worker --json
|
|
117
|
+
Alternate path only if CLI retrieval is unavailable:
|
|
118
|
+
1. Call: codemap_env_contract(agentType="worker")
|
|
119
|
+
|
|
120
|
+
After retrieval:
|
|
121
|
+
2. Report the retrieval command and output first.
|
|
122
|
+
3. List the contract items you observed, including shell-rtk-wrapper, commit-format, and test-entry-vitest.
|
|
123
|
+
4. Stop after reporting whether retrieval happened before any other substantive work.
|
|
124
|
+
|
|
125
|
+
Do not edit repository files.
|
|
126
|
+
Do not skip the retrieval step.
|
|
127
|
+
If retrieval fails, report the exact blocker and stop.
|
|
128
|
+
"""
|
|
129
|
+
`;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
function buildEvidenceTemplate(platform, transcriptPath, notes) {
|
|
133
|
+
return {
|
|
134
|
+
platform,
|
|
135
|
+
attempted: false,
|
|
136
|
+
available: null,
|
|
137
|
+
commandTranscriptPath: transcriptPath,
|
|
138
|
+
retrievalEvidence: [],
|
|
139
|
+
verdict: 'pending',
|
|
140
|
+
blocker: '',
|
|
141
|
+
notes,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function hasManualEvidence(filePath) {
|
|
146
|
+
if (!existsSync(filePath)) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
const parsed = JSON.parse(readFileSync(filePath, 'utf8'));
|
|
152
|
+
const verdicts = new Set(['pass', 'fail', 'waived', 'blocked']);
|
|
153
|
+
const retrievalEvidence =
|
|
154
|
+
typeof parsed.retrievalEvidence === 'string'
|
|
155
|
+
? parsed.retrievalEvidence.trim().length > 0
|
|
156
|
+
: Array.isArray(parsed.retrievalEvidence) && parsed.retrievalEvidence.length > 0;
|
|
157
|
+
const blocker = typeof parsed.blocker === 'string' && parsed.blocker.trim().length > 0;
|
|
158
|
+
return verdicts.has(parsed.verdict) && (retrievalEvidence || blocker);
|
|
159
|
+
} catch {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function writeEvidenceTemplate(filePath, value) {
|
|
165
|
+
if (hasManualEvidence(filePath)) {
|
|
166
|
+
console.log(` preserved ${relativePath(filePath)} (manual evidence already present)`);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
writeJson(filePath, value);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function writeSessionPlaceholder(filePath, title) {
|
|
174
|
+
const placeholder = `# ${title}
|
|
175
|
+
|
|
176
|
+
Paste the relevant transcript here after running the manual protocol in \`${relativePath(HUMAN_UAT_PATH)}\`.
|
|
177
|
+
|
|
178
|
+
- Keep the retrieval step and its output.
|
|
179
|
+
- Keep the first substantive work item after retrieval.
|
|
180
|
+
- Note any blocker inline if the path could not be completed.
|
|
181
|
+
`;
|
|
182
|
+
|
|
183
|
+
if (existsSync(filePath)) {
|
|
184
|
+
const current = readFileSync(filePath, 'utf8');
|
|
185
|
+
if (!current.includes('Paste the relevant transcript here after running the manual protocol')) {
|
|
186
|
+
console.log(` preserved ${relativePath(filePath)} (non-placeholder content already present)`);
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
writeText(filePath, placeholder);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function writeHelperSnippets() {
|
|
195
|
+
const hookExample = captureCommand('rtk', [
|
|
196
|
+
'node',
|
|
197
|
+
'dist/cli/index.js',
|
|
198
|
+
'env-contract',
|
|
199
|
+
'--for',
|
|
200
|
+
'explore',
|
|
201
|
+
'--as-hook-config',
|
|
202
|
+
]);
|
|
203
|
+
const codexExample = captureCommand('rtk', [
|
|
204
|
+
'node',
|
|
205
|
+
'dist/cli/index.js',
|
|
206
|
+
'env-contract',
|
|
207
|
+
'--for',
|
|
208
|
+
'worker',
|
|
209
|
+
'--as-codex-agent',
|
|
210
|
+
]);
|
|
211
|
+
|
|
212
|
+
writeText(CLAUDE_HOOK_EXAMPLE_PATH, hookExample.endsWith('\n') ? hookExample : `${hookExample}\n`);
|
|
213
|
+
writeText(CODEX_AGENT_EXAMPLE_PATH, codexExample.endsWith('\n') ? codexExample : `${codexExample}\n`);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function writeManifest() {
|
|
217
|
+
writeJson(MANIFEST_PATH, {
|
|
218
|
+
phase: '58',
|
|
219
|
+
preparedAt: new Date().toISOString(),
|
|
220
|
+
claudeRequired: true,
|
|
221
|
+
codexOptional: true,
|
|
222
|
+
requiredArtifacts: REQUIRED_ARTIFACTS,
|
|
223
|
+
protocolDoc: relativePath(HUMAN_UAT_PATH),
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function printChecklist() {
|
|
228
|
+
console.log('\nManual checkpoint checklist:');
|
|
229
|
+
console.log(`1. Read ${relativePath(HUMAN_UAT_PATH)}.`);
|
|
230
|
+
console.log('2. Open an authenticated Claude Code session in this repository and delegate to `env-contract-verifier`.');
|
|
231
|
+
console.log(`3. Paste the transcript into ${relativePath(CLAUDE_SESSION_PATH)}.`);
|
|
232
|
+
console.log(`4. Update ${relativePath(CLAUDE_EVIDENCE_PATH)} with pass/fail evidence.`);
|
|
233
|
+
console.log('5. If Codex is available, run the optional parity path and update the Codex session + JSON files.');
|
|
234
|
+
console.log('6. Resume the phase only after the Claude evidence file records retrieval-before-work or an exact blocker.');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function main() {
|
|
238
|
+
console.log('=== Phase 58 Verification Preparation ===\n');
|
|
239
|
+
|
|
240
|
+
console.log('[1/4] Building CLI output...');
|
|
241
|
+
runStreaming('rtk', ['npm', 'run', 'build']);
|
|
242
|
+
if (!existsSync(CLI_PATH)) {
|
|
243
|
+
throw new Error(`Missing built CLI at ${relativePath(CLI_PATH)}`);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
console.log('\n[2/4] Generating helper snippets from the built CLI...');
|
|
247
|
+
writeHelperSnippets();
|
|
248
|
+
|
|
249
|
+
console.log('\n[3/4] Writing verification agent fixtures and evidence templates...');
|
|
250
|
+
writeText(CLAUDE_AGENT_PATH, buildClaudeVerifierAgent());
|
|
251
|
+
writeText(CODEX_AGENT_PATH, buildCodexVerifierAgent());
|
|
252
|
+
writeManifest();
|
|
253
|
+
writeEvidenceTemplate(
|
|
254
|
+
CLAUDE_EVIDENCE_PATH,
|
|
255
|
+
buildEvidenceTemplate('claude', relativePath(CLAUDE_SESSION_PATH), [
|
|
256
|
+
'Set verdict to "pass" only if an env-contract retrieval call appears before any other substantive work.',
|
|
257
|
+
'If the Claude path cannot be run, use "fail" or "blocked" and record the exact blocker.',
|
|
258
|
+
]),
|
|
259
|
+
);
|
|
260
|
+
writeEvidenceTemplate(
|
|
261
|
+
CODEX_EVIDENCE_PATH,
|
|
262
|
+
buildEvidenceTemplate('codex', relativePath(CODEX_SESSION_PATH), [
|
|
263
|
+
'Codex parity is optional for Phase 58 closure.',
|
|
264
|
+
'Use verdict "waived" only when the exact environment blocker is recorded.',
|
|
265
|
+
]),
|
|
266
|
+
);
|
|
267
|
+
writeSessionPlaceholder(CLAUDE_SESSION_PATH, 'Claude Session Evidence');
|
|
268
|
+
writeSessionPlaceholder(CODEX_SESSION_PATH, 'Codex Session Evidence');
|
|
269
|
+
|
|
270
|
+
console.log('\n[4/4] Preparation complete.');
|
|
271
|
+
printChecklist();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
try {
|
|
275
|
+
main();
|
|
276
|
+
} catch (error) {
|
|
277
|
+
console.error('Fatal error:', error);
|
|
278
|
+
process.exit(1);
|
|
279
|
+
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { IParser, ParserOptions, ParseResult } from '../interfaces/IParser.js';
|
|
2
|
-
/**
|
|
3
|
-
* Tree-sitter Parser
|
|
4
|
-
* 使用 tree-sitter 进行高性能代码解析
|
|
5
|
-
*/
|
|
6
|
-
export declare class TreeSitterParser implements IParser {
|
|
7
|
-
readonly name = "TreeSitterParser";
|
|
8
|
-
readonly mode: 'fast' | 'smart';
|
|
9
|
-
private parser;
|
|
10
|
-
private rootDir;
|
|
11
|
-
constructor(options: ParserOptions);
|
|
12
|
-
/**
|
|
13
|
-
* 解析单个文件
|
|
14
|
-
*/
|
|
15
|
-
parseFile(filePath: string): Promise<ParseResult>;
|
|
16
|
-
/**
|
|
17
|
-
* 批量解析文件
|
|
18
|
-
*/
|
|
19
|
-
parseFiles(filePaths: string[]): Promise<ParseResult[]>;
|
|
20
|
-
/**
|
|
21
|
-
* 释放资源
|
|
22
|
-
*/
|
|
23
|
-
dispose(): void;
|
|
24
|
-
/**
|
|
25
|
-
* 提取导入信息
|
|
26
|
-
*/
|
|
27
|
-
private extractImports;
|
|
28
|
-
/**
|
|
29
|
-
* 提取导出信息
|
|
30
|
-
*/
|
|
31
|
-
private extractExports;
|
|
32
|
-
/**
|
|
33
|
-
* 提取符号信息
|
|
34
|
-
*/
|
|
35
|
-
private extractSymbols;
|
|
36
|
-
/**
|
|
37
|
-
* 查找所有声明
|
|
38
|
-
*/
|
|
39
|
-
private findDeclarations;
|
|
40
|
-
/**
|
|
41
|
-
* 提取依赖列表
|
|
42
|
-
*/
|
|
43
|
-
private extractDependencies;
|
|
44
|
-
/**
|
|
45
|
-
* 检测模块类型
|
|
46
|
-
*/
|
|
47
|
-
private detectModuleType;
|
|
48
|
-
/**
|
|
49
|
-
* 计算代码统计
|
|
50
|
-
*/
|
|
51
|
-
private calculateStats;
|
|
52
|
-
/**
|
|
53
|
-
* 查找注释节点
|
|
54
|
-
*/
|
|
55
|
-
private findCommentNodes;
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=tree-sitter-parser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree-sitter-parser.d.ts","sourceRoot":"","sources":["../../../src/parser/implementations/tree-sitter-parser.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEpF;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,OAAO;IAC9C,QAAQ,CAAC,IAAI,sBAAsB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAU;IACzC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;gBAEZ,OAAO,EAAE,aAAa;IAOlC;;OAEG;IACG,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAevD;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAI7D;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;OAEG;IACH,OAAO,CAAC,cAAc;IAqFtB;;OAEG;IACH,OAAO,CAAC,cAAc;IA2ItB;;OAEG;IACH,OAAO,CAAC,cAAc;IAwBtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA2DxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAe3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAexB;;OAEG;IACH,OAAO,CAAC,cAAc;IAsCtB;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAazB"}
|