@mycodemap/mycodemap 2.0.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 +20 -0
- package/README.md +59 -184
- 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.d.ts +3 -196
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +9 -1163
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/benchmark.d.ts.map +1 -1
- package/dist/cli/commands/benchmark.js +5 -2
- package/dist/cli/commands/benchmark.js.map +1 -1
- 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 -60
- package/dist/cli/commands/deps.d.ts.map +1 -1
- package/dist/cli/commands/deps.js +16 -351
- package/dist/cli/commands/deps.js.map +1 -1
- 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 -21
- package/dist/cli/commands/query.d.ts.map +1 -1
- package/dist/cli/commands/query.js +15 -683
- 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-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-native-deps.d.ts.map +1 -1
- package/dist/cli/doctor/check-native-deps.js +20 -4
- package/dist/cli/doctor/check-native-deps.js.map +1 -1
- package/dist/cli/doctor/orchestrator.d.ts.map +1 -1
- package/dist/cli/doctor/orchestrator.js +5 -2
- package/dist/cli/doctor/orchestrator.js.map +1 -1
- 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 +23 -3
- 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.map +1 -1
- package/dist/cli/interface-contract/commands/analyze.js +1 -0
- package/dist/cli/interface-contract/commands/analyze.js.map +1 -1
- package/dist/cli/interface-contract/commands/benchmark.d.ts.map +1 -1
- package/dist/cli/interface-contract/commands/benchmark.js +1 -0
- package/dist/cli/interface-contract/commands/benchmark.js.map +1 -1
- package/dist/cli/interface-contract/commands/deps.d.ts.map +1 -1
- package/dist/cli/interface-contract/commands/deps.js +1 -0
- package/dist/cli/interface-contract/commands/deps.js.map +1 -1
- package/dist/cli/interface-contract/commands/doctor.d.ts.map +1 -1
- package/dist/cli/interface-contract/commands/doctor.js +1 -0
- package/dist/cli/interface-contract/commands/doctor.js.map +1 -1
- 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 +5 -2
- package/dist/cli/interface-contract/commands/index.d.ts.map +1 -1
- package/dist/cli/interface-contract/commands/index.js +7 -1
- package/dist/cli/interface-contract/commands/index.js.map +1 -1
- package/dist/cli/interface-contract/commands/init.d.ts.map +1 -1
- package/dist/cli/interface-contract/commands/init.js +9 -0
- package/dist/cli/interface-contract/commands/init.js.map +1 -1
- 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.map +1 -1
- package/dist/cli/interface-contract/commands/query.js +1 -0
- package/dist/cli/interface-contract/commands/query.js.map +1 -1
- package/dist/cli/interface-contract/index.d.ts +1 -1
- package/dist/cli/interface-contract/index.d.ts.map +1 -1
- package/dist/cli/interface-contract/index.js +2 -2
- package/dist/cli/interface-contract/index.js.map +1 -1
- package/dist/cli/interface-contract/schema.d.ts.map +1 -1
- package/dist/cli/interface-contract/schema.js +1 -0
- package/dist/cli/interface-contract/schema.js.map +1 -1
- package/dist/cli/interface-contract/types.d.ts +1 -0
- package/dist/cli/interface-contract/types.d.ts.map +1 -1
- package/dist/cli/output/error-codes.d.ts +2 -0
- package/dist/cli/output/error-codes.d.ts.map +1 -1
- package/dist/cli/output/error-codes.js +12 -0
- package/dist/cli/output/error-codes.js.map +1 -1
- package/dist/cli/output/errors.d.ts.map +1 -1
- package/dist/cli/output/errors.js +12 -0
- package/dist/cli/output/errors.js.map +1 -1
- package/dist/cli/output/wasm-fallback.d.ts +1 -0
- package/dist/cli/output/wasm-fallback.d.ts.map +1 -1
- package/dist/cli/output/wasm-fallback.js.map +1 -1
- 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-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 +321 -75
- package/dist/infrastructure/storage/adapters/SQLiteStorage.js.map +1 -1
- package/dist/infrastructure/storage/adapters/sqlite-loader.d.ts +22 -0
- package/dist/infrastructure/storage/adapters/sqlite-loader.d.ts.map +1 -1
- package/dist/infrastructure/storage/adapters/sqlite-loader.js +78 -22
- package/dist/infrastructure/storage/adapters/sqlite-loader.js.map +1 -1
- 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/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 +2 -0
- package/dist/parser/implementations/tree-sitter-loader.d.ts.map +1 -1
- package/dist/parser/implementations/tree-sitter-loader.js +46 -15
- package/dist/parser/implementations/tree-sitter-loader.js.map +1 -1
- 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 +11 -1
- package/dist/server/mcp/schema-adapter.d.ts.map +1 -1
- package/dist/server/mcp/schema-adapter.js +126 -7
- package/dist/server/mcp/schema-adapter.js.map +1 -1
- 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 +114 -30
- 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 +112 -0
- 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/SETUP_GUIDE.md +49 -0
- package/docs/TESTING.md +81 -0
- package/docs/ai-guide/OUTPUT.md +51 -8
- 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-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/package.json +8 -3
- package/scripts/copy-build-assets.mjs +23 -0
- package/scripts/hooks/templates/pre-commit +33 -2
- package/scripts/tests/test_rule_control_workflow.py +15 -1
- package/scripts/verify-subagent-env-contract.mjs +279 -0
- package/dist/parser/implementations/tree-sitter-parser.d.ts +0 -60
- package/dist/parser/implementations/tree-sitter-parser.d.ts.map +0 -1
- package/dist/parser/implementations/tree-sitter-parser.js +0 -380
- package/dist/parser/implementations/tree-sitter-parser.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// [META] since:2026-05-02 | owner:cli-team | stable:false
|
|
2
|
+
// [WHY] Drift/conflict/validity checks for Project Environment Contract data.
|
|
3
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { validateProjectEnvironmentContract } from './validation.js';
|
|
7
|
+
const CRITICAL_ITEM_IDS = [
|
|
8
|
+
'commit-format',
|
|
9
|
+
'test-entry-vitest',
|
|
10
|
+
];
|
|
11
|
+
function sha256(content) {
|
|
12
|
+
return `sha256:${createHash('sha256').update(content).digest('hex')}`;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Check a Project Environment Contract for validity, critical coverage,
|
|
16
|
+
* source freshness, and conflicts.
|
|
17
|
+
*/
|
|
18
|
+
export function checkProjectEnvironmentContract(contract, rootDir) {
|
|
19
|
+
const diagnostics = [];
|
|
20
|
+
// 1. Schema validation
|
|
21
|
+
const schemaResult = validateProjectEnvironmentContract(contract);
|
|
22
|
+
if (!schemaResult.valid) {
|
|
23
|
+
diagnostics.push({
|
|
24
|
+
id: 'schema-valid',
|
|
25
|
+
severity: 'error',
|
|
26
|
+
message: `Contract schema invalid: ${schemaResult.errors.join('; ')}`,
|
|
27
|
+
remediation: 'Regenerate the contract with `mycodemap env-contract --update`.',
|
|
28
|
+
});
|
|
29
|
+
return { ok: false, status: 'error', diagnostics };
|
|
30
|
+
}
|
|
31
|
+
diagnostics.push({
|
|
32
|
+
id: 'schema-valid',
|
|
33
|
+
severity: 'ok',
|
|
34
|
+
message: 'Contract schema is valid.',
|
|
35
|
+
remediation: '',
|
|
36
|
+
});
|
|
37
|
+
// 2. Critical item presence
|
|
38
|
+
const presentIds = new Set(contract.items.map((item) => item.id));
|
|
39
|
+
const missingCritical = CRITICAL_ITEM_IDS.filter((id) => !presentIds.has(id));
|
|
40
|
+
if (missingCritical.length > 0) {
|
|
41
|
+
diagnostics.push({
|
|
42
|
+
id: 'critical-items-present',
|
|
43
|
+
severity: 'error',
|
|
44
|
+
message: `Missing critical contract items: ${missingCritical.join(', ')}`,
|
|
45
|
+
remediation: 'Ensure .githooks/commit-msg and package.json scripts.test exist, then regenerate.',
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
diagnostics.push({
|
|
50
|
+
id: 'critical-items-present',
|
|
51
|
+
severity: 'ok',
|
|
52
|
+
message: 'All critical contract items are present.',
|
|
53
|
+
remediation: '',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
// 3. Source snapshot freshness (drift detection)
|
|
57
|
+
if (rootDir) {
|
|
58
|
+
for (const snapshot of contract.sourceSnapshots) {
|
|
59
|
+
const fullPath = path.join(rootDir, snapshot.file);
|
|
60
|
+
if (!existsSync(fullPath)) {
|
|
61
|
+
diagnostics.push({
|
|
62
|
+
id: `source-drift:${snapshot.file}`,
|
|
63
|
+
severity: 'error',
|
|
64
|
+
message: `Source file ${snapshot.file} no longer exists.`,
|
|
65
|
+
remediation: `Regenerate the contract with \`mycodemap env-contract --update\`.`,
|
|
66
|
+
});
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
try {
|
|
70
|
+
const currentContent = readFileSync(fullPath, 'utf8');
|
|
71
|
+
const currentHash = sha256(currentContent);
|
|
72
|
+
if (currentHash !== snapshot.hash) {
|
|
73
|
+
diagnostics.push({
|
|
74
|
+
id: `source-drift:${snapshot.file}`,
|
|
75
|
+
severity: 'error',
|
|
76
|
+
message: `Source file ${snapshot.file} has changed since contract generation.`,
|
|
77
|
+
remediation: `Regenerate the contract with \`mycodemap env-contract --update\`.`,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
diagnostics.push({
|
|
83
|
+
id: `source-drift:${snapshot.file}`,
|
|
84
|
+
severity: 'warn',
|
|
85
|
+
message: `Cannot read source file ${snapshot.file} for drift check.`,
|
|
86
|
+
remediation: 'Verify file permissions and regenerate the contract.',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// 4. Conflicts (warn-only)
|
|
92
|
+
if (contract.conflicts.length > 0) {
|
|
93
|
+
diagnostics.push({
|
|
94
|
+
id: 'conflicts',
|
|
95
|
+
severity: 'warn',
|
|
96
|
+
message: `${contract.conflicts.length} conflict(s) detected: ${contract.conflicts.map((c) => c.id).join(', ')}`,
|
|
97
|
+
remediation: 'Review conflicts and align documentation with executable sources.',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
diagnostics.push({
|
|
102
|
+
id: 'conflicts',
|
|
103
|
+
severity: 'ok',
|
|
104
|
+
message: 'No conflicts detected.',
|
|
105
|
+
remediation: '',
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
// Determine overall status
|
|
109
|
+
const hasError = diagnostics.some((d) => d.severity === 'error');
|
|
110
|
+
const hasWarn = diagnostics.some((d) => d.severity === 'warn');
|
|
111
|
+
const status = hasError ? 'error' : hasWarn ? 'warn' : 'ok';
|
|
112
|
+
return {
|
|
113
|
+
ok: !hasError,
|
|
114
|
+
status,
|
|
115
|
+
diagnostics,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check.js","sourceRoot":"","sources":["../../../src/cli/env-contract/check.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,8EAA8E;AAE9E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC;AAerE,MAAM,iBAAiB,GAAG;IACxB,eAAe;IACf,mBAAmB;CACX,CAAC;AAEX,SAAS,MAAM,CAAC,OAAe;IAC7B,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAA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CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ProjectEnvironmentContract } from './types.js';
|
|
2
|
+
export interface SourceSnapshot {
|
|
3
|
+
file: string;
|
|
4
|
+
hash: string;
|
|
5
|
+
lastModified: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DiscoveryOptions {
|
|
8
|
+
profileName?: string;
|
|
9
|
+
generatedAt?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function discoverProjectEnvironmentContract(rootDir: string, options?: DiscoveryOptions): ProjectEnvironmentContract;
|
|
12
|
+
//# sourceMappingURL=discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../src/cli/env-contract/discovery.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAMV,0BAA0B,EAE3B,MAAM,YAAY,CAAC;AAIpB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAiND,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,gBAAgB,GACzB,0BAA0B,CAyD5B"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// [META] since:2026-05-02 | owner:cli-team | stable:false
|
|
2
|
+
// [WHY] Discover project environment contract items by scanning governance and executable source files.
|
|
3
|
+
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
function sha256(content) {
|
|
7
|
+
return `sha256:${createHash('sha256').update(content).digest('hex')}`;
|
|
8
|
+
}
|
|
9
|
+
function safeReadFile(filePath) {
|
|
10
|
+
if (!existsSync(filePath))
|
|
11
|
+
return undefined;
|
|
12
|
+
try {
|
|
13
|
+
return readFileSync(filePath, 'utf8');
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function makeSnapshot(rootDir, relativePath) {
|
|
20
|
+
const fullPath = path.join(rootDir, relativePath);
|
|
21
|
+
if (!existsSync(fullPath))
|
|
22
|
+
return undefined;
|
|
23
|
+
try {
|
|
24
|
+
const content = readFileSync(fullPath, 'utf8');
|
|
25
|
+
const stat = statSync(fullPath);
|
|
26
|
+
return {
|
|
27
|
+
file: relativePath,
|
|
28
|
+
hash: sha256(content),
|
|
29
|
+
lastModified: stat.mtime.toISOString(),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// ─── Source authority mapping ───────────────────────────────────────
|
|
37
|
+
function classifyAuthority(filePath) {
|
|
38
|
+
if (filePath.startsWith('.githooks/') ||
|
|
39
|
+
filePath === 'package.json' ||
|
|
40
|
+
filePath.startsWith('vitest') ||
|
|
41
|
+
filePath.endsWith('.config.ts')) {
|
|
42
|
+
return 'executable';
|
|
43
|
+
}
|
|
44
|
+
if (filePath === 'AGENTS.md' ||
|
|
45
|
+
filePath.startsWith('docs/rules/') ||
|
|
46
|
+
filePath.startsWith('.mycodemap/rules/')) {
|
|
47
|
+
return 'governance';
|
|
48
|
+
}
|
|
49
|
+
if (filePath.startsWith('.mycodemap/assistants/')) {
|
|
50
|
+
return 'generated';
|
|
51
|
+
}
|
|
52
|
+
return 'example';
|
|
53
|
+
}
|
|
54
|
+
function makeSource(rootDir, relativePath, line) {
|
|
55
|
+
const fullPath = path.join(rootDir, relativePath);
|
|
56
|
+
if (!existsSync(fullPath))
|
|
57
|
+
return undefined;
|
|
58
|
+
try {
|
|
59
|
+
const content = readFileSync(fullPath, 'utf8');
|
|
60
|
+
return {
|
|
61
|
+
file: relativePath,
|
|
62
|
+
line,
|
|
63
|
+
hash: sha256(content),
|
|
64
|
+
authority: classifyAuthority(relativePath),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// ─── Commit hook parsing ────────────────────────────────────────────
|
|
72
|
+
function parseCommitHookTags(content) {
|
|
73
|
+
const match = content.match(/VALID_TAGS="([^"]+)"/);
|
|
74
|
+
if (!match)
|
|
75
|
+
return [];
|
|
76
|
+
return match[1].split(/\s+/).filter(Boolean);
|
|
77
|
+
}
|
|
78
|
+
function parseCommitHookFormat(content) {
|
|
79
|
+
// Extract format description from comment or echo lines
|
|
80
|
+
const formatMatch = content.match(/Format:\s*(.+)$/m);
|
|
81
|
+
if (formatMatch)
|
|
82
|
+
return formatMatch[1].trim();
|
|
83
|
+
return '[TAG] scope: message';
|
|
84
|
+
}
|
|
85
|
+
// ─── Item builders ──────────────────────────────────────────────────
|
|
86
|
+
function buildRtkItem(rootDir) {
|
|
87
|
+
// RTK wrapper is documented in AGENTS.md or docs/rules/
|
|
88
|
+
const agentsSource = makeSource(rootDir, 'AGENTS.md');
|
|
89
|
+
if (!agentsSource)
|
|
90
|
+
return undefined;
|
|
91
|
+
return {
|
|
92
|
+
id: 'shell-rtk-wrapper',
|
|
93
|
+
category: 'execution',
|
|
94
|
+
severity: 'critical',
|
|
95
|
+
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`.',
|
|
96
|
+
sources: [agentsSource],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function buildCommitFormatItem(rootDir) {
|
|
100
|
+
const hookPath = '.githooks/commit-msg';
|
|
101
|
+
const hookContent = safeReadFile(path.join(rootDir, hookPath));
|
|
102
|
+
if (!hookContent)
|
|
103
|
+
return undefined;
|
|
104
|
+
const hookSource = makeSource(rootDir, hookPath);
|
|
105
|
+
if (!hookSource)
|
|
106
|
+
return undefined;
|
|
107
|
+
const tags = parseCommitHookTags(hookContent);
|
|
108
|
+
const format = parseCommitHookFormat(hookContent);
|
|
109
|
+
return {
|
|
110
|
+
id: 'commit-format',
|
|
111
|
+
category: 'commit',
|
|
112
|
+
severity: 'critical',
|
|
113
|
+
content: `Commit messages must use ${format} format with uppercase tags.`,
|
|
114
|
+
metadata: { validTags: tags },
|
|
115
|
+
sources: [hookSource],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function buildTestEntryItem(rootDir) {
|
|
119
|
+
// Check package.json for test script
|
|
120
|
+
const pkgContent = safeReadFile(path.join(rootDir, 'package.json'));
|
|
121
|
+
if (!pkgContent)
|
|
122
|
+
return undefined;
|
|
123
|
+
try {
|
|
124
|
+
const pkg = JSON.parse(pkgContent);
|
|
125
|
+
const scripts = pkg.scripts;
|
|
126
|
+
if (!scripts?.test)
|
|
127
|
+
return undefined;
|
|
128
|
+
const pkgSource = makeSource(rootDir, 'package.json');
|
|
129
|
+
if (!pkgSource)
|
|
130
|
+
return undefined;
|
|
131
|
+
return {
|
|
132
|
+
id: 'test-entry-vitest',
|
|
133
|
+
category: 'execution',
|
|
134
|
+
severity: 'critical',
|
|
135
|
+
content: `Tests run with \`${scripts.test}\`. Use \`${scripts.test}\` or \`npx vitest run\` directly, not \`npm test\` when RTK is available.`,
|
|
136
|
+
sources: [pkgSource],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function buildQueryPriorityItem(rootDir) {
|
|
144
|
+
const agentsSource = makeSource(rootDir, 'AGENTS.md');
|
|
145
|
+
if (!agentsSource)
|
|
146
|
+
return undefined;
|
|
147
|
+
return {
|
|
148
|
+
id: 'codemap-query-priority',
|
|
149
|
+
category: 'retrieval',
|
|
150
|
+
severity: 'high',
|
|
151
|
+
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.',
|
|
152
|
+
sources: [agentsSource],
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
function buildRealScenarioValidationItem(rootDir) {
|
|
156
|
+
const testingSource = makeSource(rootDir, 'docs/rules/testing.md');
|
|
157
|
+
if (!testingSource)
|
|
158
|
+
return undefined;
|
|
159
|
+
return {
|
|
160
|
+
id: 'real-scenario-validation',
|
|
161
|
+
category: 'validation',
|
|
162
|
+
severity: 'high',
|
|
163
|
+
content: 'Real filesystem/subprocess or transport evidence and at least one failure scenario are required. Pure mock-only tests are not sufficient verification.',
|
|
164
|
+
sources: [testingSource],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
// ─── Conflict detection ─────────────────────────────────────────────
|
|
168
|
+
function detectConflicts(rootDir) {
|
|
169
|
+
const conflicts = [];
|
|
170
|
+
// Check commit tag case: hook enforces uppercase, docs might show lowercase
|
|
171
|
+
const hookContent = safeReadFile(path.join(rootDir, '.githooks/commit-msg'));
|
|
172
|
+
const agentsContent = safeReadFile(path.join(rootDir, 'AGENTS.md'));
|
|
173
|
+
if (hookContent && agentsContent) {
|
|
174
|
+
const hookTags = parseCommitHookTags(hookContent);
|
|
175
|
+
const hasUppercase = hookTags.every((tag) => tag === tag.toUpperCase());
|
|
176
|
+
if (hasUppercase && hookTags.length > 0) {
|
|
177
|
+
// Check if AGENTS.md or other docs reference lowercase tags
|
|
178
|
+
const lowerCaseRef = agentsContent.match(/\b(feat|fix|docs|test|refactor|config)\b/i);
|
|
179
|
+
if (lowerCaseRef) {
|
|
180
|
+
conflicts.push({
|
|
181
|
+
id: 'commit-tag-case',
|
|
182
|
+
severity: 'medium',
|
|
183
|
+
description: 'Commit tag case mismatch between hook and documentation',
|
|
184
|
+
sources: [
|
|
185
|
+
{ file: '.githooks/commit-msg', value: hookTags.join(' ') },
|
|
186
|
+
{ file: 'AGENTS.md', value: lowerCaseRef[0] },
|
|
187
|
+
],
|
|
188
|
+
recommendation: 'Hook enforces uppercase tags; documentation should align with hook enforcement.',
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return conflicts;
|
|
194
|
+
}
|
|
195
|
+
export function discoverProjectEnvironmentContract(rootDir, options) {
|
|
196
|
+
const items = [];
|
|
197
|
+
const snapshots = [];
|
|
198
|
+
// Collect source snapshots for known source files
|
|
199
|
+
const knownSources = [
|
|
200
|
+
'AGENTS.md',
|
|
201
|
+
'.githooks/commit-msg',
|
|
202
|
+
'package.json',
|
|
203
|
+
'docs/rules/testing.md',
|
|
204
|
+
'vitest.config.ts',
|
|
205
|
+
];
|
|
206
|
+
for (const relPath of knownSources) {
|
|
207
|
+
const snapshot = makeSnapshot(rootDir, relPath);
|
|
208
|
+
if (snapshot)
|
|
209
|
+
snapshots.push(snapshot);
|
|
210
|
+
}
|
|
211
|
+
// Build contract items
|
|
212
|
+
const rtkItem = buildRtkItem(rootDir);
|
|
213
|
+
if (rtkItem)
|
|
214
|
+
items.push(rtkItem);
|
|
215
|
+
const commitItem = buildCommitFormatItem(rootDir);
|
|
216
|
+
if (commitItem)
|
|
217
|
+
items.push(commitItem);
|
|
218
|
+
const testItem = buildTestEntryItem(rootDir);
|
|
219
|
+
if (testItem)
|
|
220
|
+
items.push(testItem);
|
|
221
|
+
const queryItem = buildQueryPriorityItem(rootDir);
|
|
222
|
+
if (queryItem)
|
|
223
|
+
items.push(queryItem);
|
|
224
|
+
const validationItem = buildRealScenarioValidationItem(rootDir);
|
|
225
|
+
if (validationItem)
|
|
226
|
+
items.push(validationItem);
|
|
227
|
+
// Detect conflicts
|
|
228
|
+
const conflicts = detectConflicts(rootDir);
|
|
229
|
+
// Determine project profile
|
|
230
|
+
const profileName = options?.profileName ?? 'generic';
|
|
231
|
+
const projectSource = existsSync(path.join(rootDir, 'package.json'))
|
|
232
|
+
? 'package.json'
|
|
233
|
+
: existsSync(path.join(rootDir, 'pyproject.toml'))
|
|
234
|
+
? 'pyproject.toml'
|
|
235
|
+
: 'not-detected';
|
|
236
|
+
return {
|
|
237
|
+
schemaVersion: 'env-contract.v1',
|
|
238
|
+
generatedAt: options?.generatedAt ?? new Date().toISOString(),
|
|
239
|
+
projectProfile: {
|
|
240
|
+
name: profileName,
|
|
241
|
+
source: projectSource,
|
|
242
|
+
confidence: projectSource !== 'not-detected' ? 'high' : 'none',
|
|
243
|
+
},
|
|
244
|
+
items,
|
|
245
|
+
conflicts,
|
|
246
|
+
sourceSnapshots: snapshots,
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
//# sourceMappingURL=discovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../../src/cli/env-contract/discovery.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,wGAAwG;AAExG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAmB7B,SAAS,MAAM,CAAC,OAAe;IAC7B,OAAO,UAAU,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACxE,CAAC;AAED,SAAS,YAAY,CAAC,QAAgB;IACpC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,OAAe,EAAE,YAAoB;IACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAA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L,SAAS;QACT,eAAe,EAAE,SAAS;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentType, ContractCategory, ContractItem, ProjectEnvironmentContract } from './types.js';
|
|
2
|
+
export declare const DEFAULT_AGENT_FILTERS: Record<AgentType, readonly ContractCategory[]>;
|
|
3
|
+
/**
|
|
4
|
+
* Filter contract items by agent type and optional category override.
|
|
5
|
+
*
|
|
6
|
+
* If `agentType` is unknown, falls back to 'default'.
|
|
7
|
+
* If `categoryOverride` is provided, it overrides the agent's default category set.
|
|
8
|
+
*/
|
|
9
|
+
export declare function filterContractForAgent(contract: ProjectEnvironmentContract, agentType: string, categoryOverride?: ContractCategory[]): ContractItem[];
|
|
10
|
+
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../src/cli/env-contract/filters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAQvE,CAAC;AAEX;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,0BAA0B,EACpC,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,GACpC,YAAY,EAAE,CAShB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// [META] since:2026-05-02 | owner:cli-team | stable:false
|
|
2
|
+
// [WHY] Agent-type filtering for Project Environment Contract items by category.
|
|
3
|
+
export const DEFAULT_AGENT_FILTERS = {
|
|
4
|
+
explore: ['retrieval', 'validation'],
|
|
5
|
+
plan: ['retrieval', 'validation'],
|
|
6
|
+
edit: ['execution', 'commit', 'style', 'validation'],
|
|
7
|
+
worker: ['execution', 'commit', 'style', 'validation'],
|
|
8
|
+
review: ['retrieval', 'validation', 'style'],
|
|
9
|
+
verify: ['execution', 'validation'],
|
|
10
|
+
default: ['execution', 'commit', 'retrieval', 'validation', 'style'],
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Filter contract items by agent type and optional category override.
|
|
14
|
+
*
|
|
15
|
+
* If `agentType` is unknown, falls back to 'default'.
|
|
16
|
+
* If `categoryOverride` is provided, it overrides the agent's default category set.
|
|
17
|
+
*/
|
|
18
|
+
export function filterContractForAgent(contract, agentType, categoryOverride) {
|
|
19
|
+
const effectiveType = agentType in DEFAULT_AGENT_FILTERS ? agentType : 'default';
|
|
20
|
+
const allowedCategories = categoryOverride ?? DEFAULT_AGENT_FILTERS[effectiveType];
|
|
21
|
+
return contract.items.filter((item) => allowedCategories.includes(item.category));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../src/cli/env-contract/filters.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,iFAAiF;AASjF,MAAM,CAAC,MAAM,qBAAqB,GAAmD;IACnF,OAAO,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;IACpC,IAAI,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;IACjC,IAAI,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC;IACpD,MAAM,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC;IACtD,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;IAC5C,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;IACnC,OAAO,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC;CAC5D,CAAC;AAEX;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,QAAoC,EACpC,SAAiB,EACjB,gBAAqC;IAErC,MAAM,aAAa,GACjB,SAAS,IAAI,qBAAqB,CAAC,CAAC,CAAE,SAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;IAE5E,MAAM,iBAAiB,GAAG,gBAAgB,IAAI,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAEnF,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CACnC,iBAAuC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/env-contract/index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// [META] since:2026-05-02 | owner:cli-team | stable:false
|
|
2
|
+
// [WHY] Public exports for the Project Environment Contract subsystem.
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
export * from './validation.js';
|
|
5
|
+
export * from './discovery.js';
|
|
6
|
+
export * from './filters.js';
|
|
7
|
+
export * from './check.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/env-contract/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,uEAAuE;AAEvE,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AgentType } from './types.js';
|
|
2
|
+
import type { ReminderLedger } from './reminder-ledger.js';
|
|
3
|
+
import type { NormalizedReminderEvent } from './reminder-hook-runner.js';
|
|
4
|
+
export interface ReminderRetrievalTarget {
|
|
5
|
+
cliCommand: string;
|
|
6
|
+
mcpToolCall: string;
|
|
7
|
+
checkCommand: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ReminderRetrievalStatus {
|
|
10
|
+
available: boolean;
|
|
11
|
+
detail?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ReminderDecision = {
|
|
14
|
+
kind: 'silent';
|
|
15
|
+
reason: 'already-reminded';
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'remind';
|
|
18
|
+
message: string;
|
|
19
|
+
target: ReminderRetrievalTarget;
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'warn';
|
|
22
|
+
message: string;
|
|
23
|
+
target: ReminderRetrievalTarget;
|
|
24
|
+
continue: true;
|
|
25
|
+
};
|
|
26
|
+
export interface ReminderDecisionDependencies {
|
|
27
|
+
ledger: ReminderLedger;
|
|
28
|
+
checkRetrieval: (role: AgentType) => Promise<ReminderRetrievalStatus> | ReminderRetrievalStatus;
|
|
29
|
+
}
|
|
30
|
+
export declare function buildReminderRetrievalTarget(role: AgentType): ReminderRetrievalTarget;
|
|
31
|
+
export declare function buildReminderMessage(role: AgentType, target: ReminderRetrievalTarget): string;
|
|
32
|
+
export declare function buildReminderWarning(role: AgentType, target: ReminderRetrievalTarget, detail?: string): string;
|
|
33
|
+
export declare function decideReminder(event: NormalizedReminderEvent, dependencies: ReminderDecisionDependencies): Promise<ReminderDecision>;
|
|
34
|
+
//# sourceMappingURL=reminder-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reminder-engine.d.ts","sourceRoot":"","sources":["../../../src/cli/env-contract/reminder-engine.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBA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
+
// [META] since:2026-05-10 | owner:cli-team | stable:false
|
|
2
|
+
// [WHY] Centralizes first-remind-then-silent decisions and visible retrieval failure messaging.
|
|
3
|
+
export function buildReminderRetrievalTarget(role) {
|
|
4
|
+
return {
|
|
5
|
+
cliCommand: `mycodemap env-contract --for ${role} --json`,
|
|
6
|
+
mcpToolCall: `codemap_env_contract(agentType="${role}")`,
|
|
7
|
+
checkCommand: 'mycodemap env-contract --check',
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function buildReminderMessage(role, target) {
|
|
11
|
+
return [
|
|
12
|
+
`Before starting delegated ${role} work, retrieve the project environment contract.`,
|
|
13
|
+
`CLI: ${target.cliCommand}`,
|
|
14
|
+
`MCP: ${target.mcpToolCall}`,
|
|
15
|
+
].join('\n');
|
|
16
|
+
}
|
|
17
|
+
export function buildReminderWarning(role, target, detail) {
|
|
18
|
+
const lines = [
|
|
19
|
+
`env-contract retrieval is currently unavailable for delegated ${role} work.`,
|
|
20
|
+
`Check: ${target.checkCommand}`,
|
|
21
|
+
`Retry: ${target.cliCommand}`,
|
|
22
|
+
`Fallback MCP: ${target.mcpToolCall}`,
|
|
23
|
+
'Delegated work may continue, but the reminder was not silently replaced.',
|
|
24
|
+
];
|
|
25
|
+
if (detail) {
|
|
26
|
+
lines.push(`Failure: ${detail}`);
|
|
27
|
+
}
|
|
28
|
+
return lines.join('\n');
|
|
29
|
+
}
|
|
30
|
+
export async function decideReminder(event, dependencies) {
|
|
31
|
+
const firstSeen = dependencies.ledger.markFirstSeen(event.parentSessionId, event.role);
|
|
32
|
+
if (!firstSeen) {
|
|
33
|
+
return { kind: 'silent', reason: 'already-reminded' };
|
|
34
|
+
}
|
|
35
|
+
const target = buildReminderRetrievalTarget(event.role);
|
|
36
|
+
const retrievalStatus = await dependencies.checkRetrieval(event.role);
|
|
37
|
+
if (!retrievalStatus.available) {
|
|
38
|
+
return {
|
|
39
|
+
kind: 'warn',
|
|
40
|
+
continue: true,
|
|
41
|
+
target,
|
|
42
|
+
message: buildReminderWarning(event.role, target, retrievalStatus.detail),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
kind: 'remind',
|
|
47
|
+
target,
|
|
48
|
+
message: buildReminderMessage(event.role, target),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=reminder-engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reminder-engine.js","sourceRoot":"","sources":["../../../src/cli/env-contract/reminder-engine.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,gGAAgG;AA2BhG,MAAM,UAAU,4BAA4B,CAAC,IAAe;IAC1D,OAAO;QACL,UAAU,EAAE,gCAAgC,IAAI,SAAS;QACzD,WAAW,EAAE,mCAAmC,IAAI,IAAI;QACxD,YAAY,EAAE,gCAAgC;KAC/C,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAe,EAAE,MAA+B;IACnF,OAAO;QACL,6BAA6B,IAAI,mDAAmD;QACpF,QAAQ,MAAM,CAAC,UAAU,EAAE;QAC3B,QAAQ,MAAM,CAAC,WAAW,EAAE;KAC7B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAe,EACf,MAA+B,EAC/B,MAAe;IAEf,MAAM,KAAK,GAAG;QACZ,iEAAiE,IAAI,QAAQ;QAC7E,UAAU,MAAM,CAAC,YAAY,EAAE;QAC/B,UAAU,MAAM,CAAC,UAAU,EAAE;QAC7B,iBAAiB,MAAM,CAAC,WAAW,EAAE;QACrC,0EAA0E;KAC3E,CAAC;IACF,IAAI,MAAM,EAAE,CAAC;QACX,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,KAA8B,EAC9B,YAA0C;IAE1C,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACvF,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;IACxD,CAAC;IAED,MAAM,MAAM,GAAG,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,eAAe,GAAG,MAAM,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACtE,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,CAAC;QAC/B,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,MAAM;YACN,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;SAC1E,CAAC;IACJ,CAAC;IAED,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,MAAM;QACN,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;KAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { AgentType } from './types.js';
|
|
2
|
+
import { type ReminderRetrievalStatus } from './reminder-engine.js';
|
|
3
|
+
import { type ReminderLedger } from './reminder-ledger.js';
|
|
4
|
+
declare const CODEX_SEAM_EVENTS: readonly ["SessionStart", "UserPromptSubmit"];
|
|
5
|
+
type CodexSeamEventName = (typeof CODEX_SEAM_EVENTS)[number];
|
|
6
|
+
export interface NormalizedReminderEvent {
|
|
7
|
+
runtime: 'claude' | 'codex';
|
|
8
|
+
hookEventName: 'SubagentStart' | CodexSeamEventName;
|
|
9
|
+
parentSessionId: string;
|
|
10
|
+
role: AgentType;
|
|
11
|
+
}
|
|
12
|
+
export interface CodexSeamProbeResult {
|
|
13
|
+
hookEventName: CodexSeamEventName | null;
|
|
14
|
+
usable: boolean;
|
|
15
|
+
observedSessionFields: string[];
|
|
16
|
+
observedRoleFields: string[];
|
|
17
|
+
parentSessionId?: string;
|
|
18
|
+
role?: AgentType;
|
|
19
|
+
roleSource?: string;
|
|
20
|
+
reason?: string;
|
|
21
|
+
normalizedEvent?: NormalizedReminderEvent;
|
|
22
|
+
}
|
|
23
|
+
export type ReminderAction = {
|
|
24
|
+
kind: 'silent';
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'remind';
|
|
27
|
+
message: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'warn';
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
export interface ReminderHookDependencies {
|
|
33
|
+
ledger?: ReminderLedger;
|
|
34
|
+
checkRetrieval?: (role: AgentType) => Promise<ReminderRetrievalStatus> | ReminderRetrievalStatus;
|
|
35
|
+
}
|
|
36
|
+
export declare function probeCodexDelegatedStart(input: unknown): CodexSeamProbeResult;
|
|
37
|
+
export declare function normalizeClaudeDelegatedStart(input: unknown): NormalizedReminderEvent | undefined;
|
|
38
|
+
export declare function renderClaudeHookOutput(action: ReminderAction): string;
|
|
39
|
+
export declare function renderCodexHookOutput(hookEventName: CodexSeamEventName, action: ReminderAction): string;
|
|
40
|
+
export declare function buildReminderHookCommand(runtime: 'claude' | 'codex'): string;
|
|
41
|
+
export declare function runClaudeReminderHook(input: unknown, dependencies?: ReminderHookDependencies): Promise<string>;
|
|
42
|
+
export declare function runCodexReminderHook(input: unknown, dependencies?: ReminderHookDependencies): Promise<string>;
|
|
43
|
+
export declare function runReminderHookFromStdin(runtime: 'claude' | 'codex', dependencies?: ReminderHookDependencies): Promise<string>;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=reminder-hook-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reminder-hook-runner.d.ts","sourceR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