@vibecodetown/mcp-server 1.3.1
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/CONTRIBUTING.md +294 -0
- package/README.md +146 -0
- package/bin/clinic_linux_x64/clinic +0 -0
- package/bin/clinic_win_x64/clinic.exe +0 -0
- package/bin/musu-linux-x64 +0 -0
- package/bin/spec-high_linux_x64/spec-high +0 -0
- package/bin/spec-high_win_x64/spec-high.exe +0 -0
- package/bin/vibecoding-helper_linux_x64/vibecoding-helper +0 -0
- package/bin/vibecoding-helper_win_x64/vibecoding-helper.exe +0 -0
- package/bin/vpm-back_linux_x64/vpm-back +0 -0
- package/bin/vpm-back_win_x64/vpm-back.exe +0 -0
- package/build/background-sync-worker.d.ts +55 -0
- package/build/background-sync-worker.js +172 -0
- package/build/bin/vibe-auth.d.ts +12 -0
- package/build/bin/vibe-auth.js +246 -0
- package/build/bin/vibe-bitnet-worker.d.ts +21 -0
- package/build/bin/vibe-bitnet-worker.js +123 -0
- package/build/bin/vibe-ci.d.ts +15 -0
- package/build/bin/vibe-ci.js +1558 -0
- package/build/bin/vibe-dashboard.d.ts +12 -0
- package/build/bin/vibe-dashboard.js +76 -0
- package/build/bin/vibe-mapper-worker.d.ts +15 -0
- package/build/bin/vibe-mapper-worker.js +92 -0
- package/build/bitnet-worker/autostart.d.ts +39 -0
- package/build/bitnet-worker/autostart.js +110 -0
- package/build/bitnet-worker/client.d.ts +177 -0
- package/build/bitnet-worker/client.js +393 -0
- package/build/bitnet-worker/cpu_brake.d.ts +106 -0
- package/build/bitnet-worker/cpu_brake.js +177 -0
- package/build/bitnet-worker/embed_client.d.ts +31 -0
- package/build/bitnet-worker/embed_client.js +109 -0
- package/build/bitnet-worker/hw_slots.d.ts +90 -0
- package/build/bitnet-worker/hw_slots.js +167 -0
- package/build/bitnet-worker/index.d.ts +24 -0
- package/build/bitnet-worker/index.js +27 -0
- package/build/bitnet-worker/metrics.d.ts +78 -0
- package/build/bitnet-worker/metrics.js +129 -0
- package/build/bitnet-worker/native_inference.d.ts +86 -0
- package/build/bitnet-worker/native_inference.js +256 -0
- package/build/bitnet-worker/pool-autostart.d.ts +41 -0
- package/build/bitnet-worker/pool-autostart.js +124 -0
- package/build/bitnet-worker/request_cache.d.ts +41 -0
- package/build/bitnet-worker/request_cache.js +101 -0
- package/build/bitnet-worker/serial_queue.d.ts +13 -0
- package/build/bitnet-worker/serial_queue.js +22 -0
- package/build/bitnet-worker/server-autostart.d.ts +48 -0
- package/build/bitnet-worker/server-autostart.js +129 -0
- package/build/bitnet-worker/server.d.ts +76 -0
- package/build/bitnet-worker/server.js +545 -0
- package/build/bitnet-worker/server_manager.d.ts +133 -0
- package/build/bitnet-worker/server_manager.js +359 -0
- package/build/bitnet-worker/tiered_queue.d.ts +126 -0
- package/build/bitnet-worker/tiered_queue.js +187 -0
- package/build/bitnet-worker/types.d.ts +196 -0
- package/build/bitnet-worker/types.js +146 -0
- package/build/config/load-config.d.ts +40 -0
- package/build/config/load-config.js +227 -0
- package/build/coordinator/client.d.ts +99 -0
- package/build/coordinator/client.js +158 -0
- package/build/coordinator/index.d.ts +27 -0
- package/build/coordinator/index.js +31 -0
- package/build/correction-messages.d.ts +66 -0
- package/build/correction-messages.js +245 -0
- package/build/dashboard/autostart.d.ts +45 -0
- package/build/dashboard/autostart.js +121 -0
- package/build/dashboard/index.d.ts +21 -0
- package/build/dashboard/index.js +23 -0
- package/build/dashboard/server.d.ts +43 -0
- package/build/dashboard/server.js +334 -0
- package/build/db_sync/config.d.ts +76 -0
- package/build/db_sync/config.js +153 -0
- package/build/db_sync/index.d.ts +86 -0
- package/build/db_sync/index.js +294 -0
- package/build/db_sync/parsers/bitnet.d.ts +20 -0
- package/build/db_sync/parsers/bitnet.js +61 -0
- package/build/db_sync/parsers/gate.d.ts +23 -0
- package/build/db_sync/parsers/gate.js +73 -0
- package/build/db_sync/parsers/index.d.ts +10 -0
- package/build/db_sync/parsers/index.js +10 -0
- package/build/db_sync/parsers/ingress.d.ts +22 -0
- package/build/db_sync/parsers/ingress.js +57 -0
- package/build/db_sync/parsers/mapping.d.ts +22 -0
- package/build/db_sync/parsers/mapping.js +57 -0
- package/build/db_sync/parsers/orchestrator.d.ts +66 -0
- package/build/db_sync/parsers/orchestrator.js +110 -0
- package/build/db_sync/pool.d.ts +120 -0
- package/build/db_sync/pool.js +225 -0
- package/build/db_sync/publish.d.ts +125 -0
- package/build/db_sync/publish.js +197 -0
- package/build/db_sync/read_model.d.ts +54 -0
- package/build/db_sync/read_model.js +254 -0
- package/build/db_sync/scanner.d.ts +97 -0
- package/build/db_sync/scanner.js +287 -0
- package/build/db_sync/types.d.ts +254 -0
- package/build/db_sync/types.js +76 -0
- package/build/db_sync/writer.d.ts +111 -0
- package/build/db_sync/writer.js +377 -0
- package/build/decision-log-reader.d.ts +38 -0
- package/build/decision-log-reader.js +116 -0
- package/build/deep-link.d.ts +97 -0
- package/build/deep-link.js +176 -0
- package/build/deps/deps-update.d.ts +36 -0
- package/build/deps/deps-update.js +324 -0
- package/build/deps/drift-check.d.ts +35 -0
- package/build/deps/drift-check.js +247 -0
- package/build/deps/env-check.d.ts +43 -0
- package/build/deps/env-check.js +310 -0
- package/build/deps/index.d.ts +16 -0
- package/build/deps/index.js +22 -0
- package/build/deps/pm-detect.d.ts +56 -0
- package/build/deps/pm-detect.js +213 -0
- package/build/deps/types.d.ts +84 -0
- package/build/deps/types.js +4 -0
- package/build/deps/ux-renderer.d.ts +102 -0
- package/build/deps/ux-renderer.js +410 -0
- package/build/evidence-report.d.ts +152 -0
- package/build/evidence-report.js +648 -0
- package/build/health/index.d.ts +30 -0
- package/build/health/index.js +31 -0
- package/build/health/liveness.d.ts +32 -0
- package/build/health/liveness.js +49 -0
- package/build/health/readiness.d.ts +60 -0
- package/build/health/readiness.js +136 -0
- package/build/health/types.d.ts +75 -0
- package/build/health/types.js +31 -0
- package/build/index.d.ts +41 -0
- package/build/index.js +131 -0
- package/build/license-manager.d.ts +85 -0
- package/build/license-manager.js +349 -0
- package/build/mapper-worker/client.d.ts +92 -0
- package/build/mapper-worker/client.js +360 -0
- package/build/mapper-worker/index.d.ts +29 -0
- package/build/mapper-worker/index.js +33 -0
- package/build/mapper-worker/pool.d.ts +24 -0
- package/build/mapper-worker/pool.js +301 -0
- package/build/mapper-worker/server.d.ts +49 -0
- package/build/mapper-worker/server.js +324 -0
- package/build/mapper-worker/types.d.ts +215 -0
- package/build/mapper-worker/types.js +106 -0
- package/build/mcp/a2a/observer/hooks.d.ts +102 -0
- package/build/mcp/a2a/observer/hooks.js +207 -0
- package/build/mcp/a2a/observer/logger.d.ts +66 -0
- package/build/mcp/a2a/observer/logger.js +300 -0
- package/build/mcp/a2a/observer/types.d.ts +92 -0
- package/build/mcp/a2a/observer/types.js +11 -0
- package/build/mcp/a2a/orchestrator/loop.d.ts +84 -0
- package/build/mcp/a2a/orchestrator/loop.js +151 -0
- package/build/mcp/a2a/orchestrator/ralph-audit.d.ts +66 -0
- package/build/mcp/a2a/orchestrator/ralph-audit.js +113 -0
- package/build/mcp/a2a/orchestrator/ralph-runner.d.ts +120 -0
- package/build/mcp/a2a/orchestrator/ralph-runner.js +365 -0
- package/build/mcp/a2a/orchestrator/rewind-actions.d.ts +38 -0
- package/build/mcp/a2a/orchestrator/rewind-actions.js +148 -0
- package/build/mcp/a2a/types.d.ts +82 -0
- package/build/mcp/a2a/types.js +4 -0
- package/build/mcp/airlock/airlock.d.ts +2 -0
- package/build/mcp/airlock/airlock.js +34 -0
- package/build/mcp/airlock/index.d.ts +5 -0
- package/build/mcp/airlock/index.js +5 -0
- package/build/mcp/airlock/policy.d.ts +14 -0
- package/build/mcp/airlock/policy.js +31 -0
- package/build/mcp/airlock/redact.d.ts +11 -0
- package/build/mcp/airlock/redact.js +69 -0
- package/build/mcp/airlock/report.d.ts +14 -0
- package/build/mcp/airlock/report.js +53 -0
- package/build/mcp/airlock/types.d.ts +66 -0
- package/build/mcp/airlock/types.js +1 -0
- package/build/mcp/auth/gate.d.ts +51 -0
- package/build/mcp/auth/gate.js +225 -0
- package/build/mcp/auth/index.d.ts +32 -0
- package/build/mcp/auth/index.js +55 -0
- package/build/mcp/auth/public_key.d.ts +31 -0
- package/build/mcp/auth/public_key.js +34 -0
- package/build/mcp/auth/token_cache.d.ts +49 -0
- package/build/mcp/auth/token_cache.js +122 -0
- package/build/mcp/auth/token_verifier.d.ts +57 -0
- package/build/mcp/auth/token_verifier.js +117 -0
- package/build/mcp/bootstrap/doctor.d.ts +75 -0
- package/build/mcp/bootstrap/doctor.js +223 -0
- package/build/mcp/bootstrap/installer.d.ts +73 -0
- package/build/mcp/bootstrap/installer.js +993 -0
- package/build/mcp/bootstrap/lock.d.ts +5 -0
- package/build/mcp/bootstrap/lock.js +37 -0
- package/build/mcp/bootstrap/platform.d.ts +9 -0
- package/build/mcp/bootstrap/platform.js +26 -0
- package/build/mcp/bootstrap/registry.d.ts +46 -0
- package/build/mcp/bootstrap/registry.js +49 -0
- package/build/mcp/bootstrap/skills-installer.d.ts +154 -0
- package/build/mcp/bootstrap/skills-installer.js +610 -0
- package/build/mcp/cache/index.d.ts +77 -0
- package/build/mcp/cache/index.js +147 -0
- package/build/mcp/chunking/artifacts.d.ts +9 -0
- package/build/mcp/chunking/artifacts.js +41 -0
- package/build/mcp/chunking/chunking.d.ts +10 -0
- package/build/mcp/chunking/chunking.js +193 -0
- package/build/mcp/chunking/index.d.ts +4 -0
- package/build/mcp/chunking/index.js +4 -0
- package/build/mcp/chunking/policy.d.ts +27 -0
- package/build/mcp/chunking/policy.js +71 -0
- package/build/mcp/chunking/types.d.ts +66 -0
- package/build/mcp/chunking/types.js +1 -0
- package/build/mcp/cli.d.ts +57 -0
- package/build/mcp/cli.js +182 -0
- package/build/mcp/cockpit-bridge/client.d.ts +84 -0
- package/build/mcp/cockpit-bridge/client.js +78 -0
- package/build/mcp/cockpit-bridge/index.d.ts +16 -0
- package/build/mcp/cockpit-bridge/index.js +20 -0
- package/build/mcp/cockpit-bridge/tools/command.d.ts +101 -0
- package/build/mcp/cockpit-bridge/tools/command.js +185 -0
- package/build/mcp/cockpit-bridge/tools/decide.d.ts +27 -0
- package/build/mcp/cockpit-bridge/tools/decide.js +62 -0
- package/build/mcp/cockpit-bridge/tools/index.d.ts +17 -0
- package/build/mcp/cockpit-bridge/tools/index.js +28 -0
- package/build/mcp/cockpit-bridge/tools/manual.d.ts +26 -0
- package/build/mcp/cockpit-bridge/tools/manual.js +56 -0
- package/build/mcp/cockpit-bridge/tools/prompt.d.ts +19 -0
- package/build/mcp/cockpit-bridge/tools/prompt.js +57 -0
- package/build/mcp/cockpit-bridge/tools/status.d.ts +19 -0
- package/build/mcp/cockpit-bridge/tools/status.js +50 -0
- package/build/mcp/contracts.d.ts +609 -0
- package/build/mcp/contracts.js +22 -0
- package/build/mcp/engine.d.ts +86 -0
- package/build/mcp/engine.js +273 -0
- package/build/mcp/errors.d.ts +118 -0
- package/build/mcp/errors.js +278 -0
- package/build/mcp/events/constants.d.ts +31 -0
- package/build/mcp/events/constants.js +44 -0
- package/build/mcp/events/dedup_cooldown.d.ts +19 -0
- package/build/mcp/events/dedup_cooldown.js +51 -0
- package/build/mcp/events/emitter.d.ts +12 -0
- package/build/mcp/events/emitter.js +27 -0
- package/build/mcp/events/event_loop.d.ts +13 -0
- package/build/mcp/events/event_loop.js +248 -0
- package/build/mcp/events/file_watcher.d.ts +8 -0
- package/build/mcp/events/file_watcher.js +24 -0
- package/build/mcp/events/index.d.ts +11 -0
- package/build/mcp/events/index.js +11 -0
- package/build/mcp/events/logger.d.ts +8 -0
- package/build/mcp/events/logger.js +38 -0
- package/build/mcp/events/mq.d.ts +10 -0
- package/build/mcp/events/mq.js +22 -0
- package/build/mcp/events/mq_nats.d.ts +5 -0
- package/build/mcp/events/mq_nats.js +20 -0
- package/build/mcp/events/mq_redis.d.ts +5 -0
- package/build/mcp/events/mq_redis.js +20 -0
- package/build/mcp/events/nav_refresh.d.ts +14 -0
- package/build/mcp/events/nav_refresh.js +64 -0
- package/build/mcp/events/processor.d.ts +19 -0
- package/build/mcp/events/processor.js +76 -0
- package/build/mcp/events/replay.d.ts +6 -0
- package/build/mcp/events/replay.js +27 -0
- package/build/mcp/events/types.d.ts +32 -0
- package/build/mcp/events/types.js +18 -0
- package/build/mcp/generated/activate_input.d.ts +15 -0
- package/build/mcp/generated/activate_input.js +2 -0
- package/build/mcp/generated/activate_output.d.ts +36 -0
- package/build/mcp/generated/activate_output.js +57 -0
- package/build/mcp/generated/advisory_review_input.d.ts +42 -0
- package/build/mcp/generated/advisory_review_input.js +2 -0
- package/build/mcp/generated/advisory_review_output.d.ts +3 -0
- package/build/mcp/generated/advisory_review_output.js +35 -0
- package/build/mcp/generated/auth_token_file.d.ts +79 -0
- package/build/mcp/generated/auth_token_file.js +2 -0
- package/build/mcp/generated/autopilot_policy.d.ts +133 -0
- package/build/mcp/generated/autopilot_policy.js +77 -0
- package/build/mcp/generated/bitnet_signal.d.ts +146 -0
- package/build/mcp/generated/bitnet_signal.js +71 -0
- package/build/mcp/generated/bridge_build_seed_input.d.ts +65 -0
- package/build/mcp/generated/bridge_build_seed_input.js +2 -0
- package/build/mcp/generated/bridge_build_seed_output.d.ts +36 -0
- package/build/mcp/generated/bridge_build_seed_output.js +2 -0
- package/build/mcp/generated/bridge_confirm_reference_input.d.ts +30 -0
- package/build/mcp/generated/bridge_confirm_reference_input.js +2 -0
- package/build/mcp/generated/bridge_confirm_reference_output.d.ts +59 -0
- package/build/mcp/generated/bridge_confirm_reference_output.js +2 -0
- package/build/mcp/generated/bridge_confirmed_reference_file.d.ts +74 -0
- package/build/mcp/generated/bridge_confirmed_reference_file.js +2 -0
- package/build/mcp/generated/bridge_generate_references_input.d.ts +66 -0
- package/build/mcp/generated/bridge_generate_references_input.js +2 -0
- package/build/mcp/generated/bridge_generate_references_output.d.ts +62 -0
- package/build/mcp/generated/bridge_generate_references_output.js +2 -0
- package/build/mcp/generated/bridge_references_file.d.ts +141 -0
- package/build/mcp/generated/bridge_references_file.js +2 -0
- package/build/mcp/generated/bridge_work_order_seed_file.d.ts +120 -0
- package/build/mcp/generated/bridge_work_order_seed_file.js +2 -0
- package/build/mcp/generated/briefing_input.d.ts +15 -0
- package/build/mcp/generated/briefing_input.js +2 -0
- package/build/mcp/generated/briefing_output.d.ts +58 -0
- package/build/mcp/generated/briefing_output.js +2 -0
- package/build/mcp/generated/clinic_bridge_file.d.ts +3 -0
- package/build/mcp/generated/clinic_bridge_file.js +13 -0
- package/build/mcp/generated/contracts_bundle_info.d.ts +3 -0
- package/build/mcp/generated/contracts_bundle_info.js +5 -0
- package/build/mcp/generated/create_work_order_input.d.ts +12 -0
- package/build/mcp/generated/create_work_order_input.js +2 -0
- package/build/mcp/generated/create_work_order_output.d.ts +214 -0
- package/build/mcp/generated/create_work_order_output.js +2 -0
- package/build/mcp/generated/current_work_order_file.d.ts +39 -0
- package/build/mcp/generated/current_work_order_file.js +2 -0
- package/build/mcp/generated/deps_drift_report.d.ts +167 -0
- package/build/mcp/generated/deps_drift_report.js +33 -0
- package/build/mcp/generated/deps_scan.d.ts +207 -0
- package/build/mcp/generated/deps_scan.js +38 -0
- package/build/mcp/generated/doctor_input.d.ts +9 -0
- package/build/mcp/generated/doctor_input.js +2 -0
- package/build/mcp/generated/doctor_output.d.ts +217 -0
- package/build/mcp/generated/doctor_output.js +24 -0
- package/build/mcp/generated/execution_result.d.ts +116 -0
- package/build/mcp/generated/execution_result.js +2 -0
- package/build/mcp/generated/execution_task.d.ts +136 -0
- package/build/mcp/generated/execution_task.js +2 -0
- package/build/mcp/generated/export_output_input.d.ts +42 -0
- package/build/mcp/generated/export_output_input.js +2 -0
- package/build/mcp/generated/export_output_output.d.ts +71 -0
- package/build/mcp/generated/export_output_output.js +2 -0
- package/build/mcp/generated/finalize_work_input.d.ts +68 -0
- package/build/mcp/generated/finalize_work_input.js +2 -0
- package/build/mcp/generated/finalize_work_output.d.ts +42 -0
- package/build/mcp/generated/finalize_work_output.js +2 -0
- package/build/mcp/generated/gate_input.d.ts +158 -0
- package/build/mcp/generated/gate_input.js +2 -0
- package/build/mcp/generated/gate_output.d.ts +131 -0
- package/build/mcp/generated/gate_output.js +2 -0
- package/build/mcp/generated/gate_result_v1.d.ts +131 -0
- package/build/mcp/generated/gate_result_v1.js +2 -0
- package/build/mcp/generated/get_decision_input.d.ts +15 -0
- package/build/mcp/generated/get_decision_input.js +6 -0
- package/build/mcp/generated/get_decision_output.d.ts +68 -0
- package/build/mcp/generated/get_decision_output.js +13 -0
- package/build/mcp/generated/get_semantic_complexity_input.d.ts +21 -0
- package/build/mcp/generated/get_semantic_complexity_input.js +2 -0
- package/build/mcp/generated/get_semantic_complexity_output.d.ts +161 -0
- package/build/mcp/generated/get_semantic_complexity_output.js +2 -0
- package/build/mcp/generated/handoff_to_clinic.d.ts +15 -0
- package/build/mcp/generated/handoff_to_clinic.js +2 -0
- package/build/mcp/generated/index.d.ts +106 -0
- package/build/mcp/generated/index.js +108 -0
- package/build/mcp/generated/ingress_input.d.ts +30 -0
- package/build/mcp/generated/ingress_input.js +11 -0
- package/build/mcp/generated/ingress_output.d.ts +136 -0
- package/build/mcp/generated/ingress_output.js +2 -0
- package/build/mcp/generated/ingress_resolution_file.d.ts +33 -0
- package/build/mcp/generated/ingress_resolution_file.js +2 -0
- package/build/mcp/generated/ingress_summary_file.d.ts +130 -0
- package/build/mcp/generated/ingress_summary_file.js +2 -0
- package/build/mcp/generated/inspect_code_input.d.ts +47 -0
- package/build/mcp/generated/inspect_code_input.js +2 -0
- package/build/mcp/generated/inspect_code_output.d.ts +164 -0
- package/build/mcp/generated/inspect_code_output.js +13 -0
- package/build/mcp/generated/memory_retrieve_input.d.ts +21 -0
- package/build/mcp/generated/memory_retrieve_input.js +2 -0
- package/build/mcp/generated/memory_retrieve_output.d.ts +18 -0
- package/build/mcp/generated/memory_retrieve_output.js +2 -0
- package/build/mcp/generated/memory_state_file.d.ts +46 -0
- package/build/mcp/generated/memory_state_file.js +2 -0
- package/build/mcp/generated/memory_status_input.d.ts +15 -0
- package/build/mcp/generated/memory_status_input.js +2 -0
- package/build/mcp/generated/memory_status_output.d.ts +79 -0
- package/build/mcp/generated/memory_status_output.js +13 -0
- package/build/mcp/generated/memory_sync_input.d.ts +18 -0
- package/build/mcp/generated/memory_sync_input.js +2 -0
- package/build/mcp/generated/memory_sync_output.d.ts +66 -0
- package/build/mcp/generated/memory_sync_output.js +13 -0
- package/build/mcp/generated/message_template_id_mapping_file.d.ts +132 -0
- package/build/mcp/generated/message_template_id_mapping_file.js +2 -0
- package/build/mcp/generated/observer_event_map.d.ts +198 -0
- package/build/mcp/generated/observer_event_map.js +74 -0
- package/build/mcp/generated/ose_expand_input.d.ts +48 -0
- package/build/mcp/generated/ose_expand_input.js +2 -0
- package/build/mcp/generated/ose_expand_output.d.ts +45 -0
- package/build/mcp/generated/ose_expand_output.js +2 -0
- package/build/mcp/generated/oss_candidates_file.d.ts +132 -0
- package/build/mcp/generated/oss_candidates_file.js +2 -0
- package/build/mcp/generated/oss_decisions_file.d.ts +125 -0
- package/build/mcp/generated/oss_decisions_file.js +2 -0
- package/build/mcp/generated/oss_snippets_file.d.ts +117 -0
- package/build/mcp/generated/oss_snippets_file.js +2 -0
- package/build/mcp/generated/plugin_result.d.ts +43 -0
- package/build/mcp/generated/plugin_result.js +2 -0
- package/build/mcp/generated/react_perf_check_patterns_input.d.ts +15 -0
- package/build/mcp/generated/react_perf_check_patterns_input.js +2 -0
- package/build/mcp/generated/react_perf_check_patterns_output.d.ts +102 -0
- package/build/mcp/generated/react_perf_check_patterns_output.js +2 -0
- package/build/mcp/generated/react_perf_generate_report_input.d.ts +18 -0
- package/build/mcp/generated/react_perf_generate_report_input.js +2 -0
- package/build/mcp/generated/react_perf_generate_report_output.d.ts +76 -0
- package/build/mcp/generated/react_perf_generate_report_output.js +2 -0
- package/build/mcp/generated/read_file_input.d.ts +21 -0
- package/build/mcp/generated/read_file_input.js +2 -0
- package/build/mcp/generated/read_file_output.d.ts +119 -0
- package/build/mcp/generated/read_file_output.js +2 -0
- package/build/mcp/generated/repair_analysis_engine_input.d.ts +21 -0
- package/build/mcp/generated/repair_analysis_engine_input.js +2 -0
- package/build/mcp/generated/repair_analysis_engine_output.d.ts +45 -0
- package/build/mcp/generated/repair_analysis_engine_output.js +2 -0
- package/build/mcp/generated/repair_plan_input.d.ts +12 -0
- package/build/mcp/generated/repair_plan_input.js +2 -0
- package/build/mcp/generated/repair_plan_output.d.ts +48 -0
- package/build/mcp/generated/repair_plan_output.js +2 -0
- package/build/mcp/generated/run_app_input.d.ts +50 -0
- package/build/mcp/generated/run_app_input.js +2 -0
- package/build/mcp/generated/run_app_output.d.ts +27 -0
- package/build/mcp/generated/run_app_output.js +2 -0
- package/build/mcp/generated/run_state_file.d.ts +3 -0
- package/build/mcp/generated/run_state_file.js +13 -0
- package/build/mcp/generated/scaffold_input.d.ts +15 -0
- package/build/mcp/generated/scaffold_input.js +2 -0
- package/build/mcp/generated/scaffold_output.d.ts +39 -0
- package/build/mcp/generated/scaffold_output.js +2 -0
- package/build/mcp/generated/search_oss_input.d.ts +59 -0
- package/build/mcp/generated/search_oss_input.js +2 -0
- package/build/mcp/generated/search_oss_output.d.ts +88 -0
- package/build/mcp/generated/search_oss_output.js +2 -0
- package/build/mcp/generated/selection_validation_result.d.ts +358 -0
- package/build/mcp/generated/selection_validation_result.js +2 -0
- package/build/mcp/generated/signal_agent_input.d.ts +101 -0
- package/build/mcp/generated/signal_agent_input.js +2 -0
- package/build/mcp/generated/skillpack_file.d.ts +825 -0
- package/build/mcp/generated/skillpack_file.js +102 -0
- package/build/mcp/generated/skills_input.d.ts +30 -0
- package/build/mcp/generated/skills_input.js +11 -0
- package/build/mcp/generated/skills_output.d.ts +349 -0
- package/build/mcp/generated/skills_output.js +52 -0
- package/build/mcp/generated/spec_expansion_file.d.ts +282 -0
- package/build/mcp/generated/spec_expansion_file.js +2 -0
- package/build/mcp/generated/spec_high_ask_queue_items_file.d.ts +247 -0
- package/build/mcp/generated/spec_high_ask_queue_items_file.js +2 -0
- package/build/mcp/generated/spec_high_clinic_bridge_output.d.ts +15 -0
- package/build/mcp/generated/spec_high_clinic_bridge_output.js +2 -0
- package/build/mcp/generated/spec_high_decision_draft_output.d.ts +40 -0
- package/build/mcp/generated/spec_high_decision_draft_output.js +2 -0
- package/build/mcp/generated/spec_high_validate_output.d.ts +24 -0
- package/build/mcp/generated/spec_high_validate_output.js +2 -0
- package/build/mcp/generated/status_input.d.ts +12 -0
- package/build/mcp/generated/status_input.js +5 -0
- package/build/mcp/generated/status_output.d.ts +919 -0
- package/build/mcp/generated/status_output.js +188 -0
- package/build/mcp/generated/submit_decision_input.d.ts +18 -0
- package/build/mcp/generated/submit_decision_input.js +2 -0
- package/build/mcp/generated/submit_decision_output.d.ts +53 -0
- package/build/mcp/generated/submit_decision_output.js +2 -0
- package/build/mcp/generated/tool_error_output.d.ts +80 -0
- package/build/mcp/generated/tool_error_output.js +26 -0
- package/build/mcp/generated/undo_last_task_input.d.ts +12 -0
- package/build/mcp/generated/undo_last_task_input.js +2 -0
- package/build/mcp/generated/undo_last_task_output.d.ts +38 -0
- package/build/mcp/generated/undo_last_task_output.js +2 -0
- package/build/mcp/generated/update_input.d.ts +18 -0
- package/build/mcp/generated/update_input.js +2 -0
- package/build/mcp/generated/update_output.d.ts +124 -0
- package/build/mcp/generated/update_output.js +2 -0
- package/build/mcp/generated/verification_steps.d.ts +249 -0
- package/build/mcp/generated/verification_steps.js +34 -0
- package/build/mcp/generated/vibe_pm_inspection_result.d.ts +68 -0
- package/build/mcp/generated/vibe_pm_inspection_result.js +2 -0
- package/build/mcp/generated/vibe_pm_report_markdown.d.ts +15 -0
- package/build/mcp/generated/vibe_pm_report_markdown.js +2 -0
- package/build/mcp/generated/vibe_pm_verdict.d.ts +15 -0
- package/build/mcp/generated/vibe_pm_verdict.js +2 -0
- package/build/mcp/generated/vibe_repo_config.d.ts +214 -0
- package/build/mcp/generated/vibe_repo_config.js +2 -0
- package/build/mcp/generated/vibecoding_helper_answer_output.d.ts +18 -0
- package/build/mcp/generated/vibecoding_helper_answer_output.js +2 -0
- package/build/mcp/generated/vibecoding_helper_one_loop_selection_output.d.ts +115 -0
- package/build/mcp/generated/vibecoding_helper_one_loop_selection_output.js +2 -0
- package/build/mcp/generated/vibecoding_helper_show_ask_queue_output.d.ts +230 -0
- package/build/mcp/generated/vibecoding_helper_show_ask_queue_output.js +2 -0
- package/build/mcp/generated/work_order_v1.d.ts +89 -0
- package/build/mcp/generated/work_order_v1.js +2 -0
- package/build/mcp/generated/zoekt_evidence_input.d.ts +27 -0
- package/build/mcp/generated/zoekt_evidence_input.js +2 -0
- package/build/mcp/generated/zoekt_evidence_output.d.ts +70 -0
- package/build/mcp/generated/zoekt_evidence_output.js +2 -0
- package/build/mcp/index.d.ts +2 -0
- package/build/mcp/index.js +187 -0
- package/build/mcp/legacy_alias.d.ts +29 -0
- package/build/mcp/legacy_alias.js +53 -0
- package/build/mcp/metrics/collector.d.ts +23 -0
- package/build/mcp/metrics/collector.js +270 -0
- package/build/mcp/metrics/index.d.ts +8 -0
- package/build/mcp/metrics/index.js +6 -0
- package/build/mcp/metrics/server.d.ts +39 -0
- package/build/mcp/metrics/server.js +129 -0
- package/build/mcp/metrics/types.d.ts +105 -0
- package/build/mcp/metrics/types.js +46 -0
- package/build/mcp/path-utils.d.ts +34 -0
- package/build/mcp/path-utils.js +68 -0
- package/build/mcp/paths.d.ts +29 -0
- package/build/mcp/paths.js +90 -0
- package/build/mcp/policy/index.d.ts +2 -0
- package/build/mcp/policy/index.js +2 -0
- package/build/mcp/policy/loader.d.ts +18 -0
- package/build/mcp/policy/loader.js +46 -0
- package/build/mcp/policy/schema.d.ts +558 -0
- package/build/mcp/policy/schema.js +87 -0
- package/build/mcp/preprocess.d.ts +16 -0
- package/build/mcp/preprocess.js +64 -0
- package/build/mcp/profile-config.d.ts +87 -0
- package/build/mcp/profile-config.js +211 -0
- package/build/mcp/router/artifacts.d.ts +15 -0
- package/build/mcp/router/artifacts.js +30 -0
- package/build/mcp/router/decide.d.ts +2 -0
- package/build/mcp/router/decide.js +51 -0
- package/build/mcp/router/index.d.ts +4 -0
- package/build/mcp/router/index.js +4 -0
- package/build/mcp/router/rules.d.ts +14 -0
- package/build/mcp/router/rules.js +32 -0
- package/build/mcp/router/types.d.ts +32 -0
- package/build/mcp/router/types.js +1 -0
- package/build/mcp/run-retention.d.ts +15 -0
- package/build/mcp/run-retention.js +87 -0
- package/build/mcp/runtime/helper_commands.d.ts +205 -0
- package/build/mcp/runtime/helper_commands.js +198 -0
- package/build/mcp/runtime/helper_invoker.d.ts +48 -0
- package/build/mcp/runtime/helper_invoker.js +134 -0
- package/build/mcp/runtime/helper_resolver.d.ts +41 -0
- package/build/mcp/runtime/helper_resolver.js +148 -0
- package/build/mcp/runtime/index.d.ts +3 -0
- package/build/mcp/runtime/index.js +8 -0
- package/build/mcp/runtime/musu_adapter.d.ts +193 -0
- package/build/mcp/runtime/musu_adapter.js +373 -0
- package/build/mcp/security/input-validator.d.ts +76 -0
- package/build/mcp/security/input-validator.js +119 -0
- package/build/mcp/security/path-policy.d.ts +102 -0
- package/build/mcp/security/path-policy.js +289 -0
- package/build/mcp/security/sandbox.d.ts +55 -0
- package/build/mcp/security/sandbox.js +378 -0
- package/build/mcp/tool-registry.d.ts +26 -0
- package/build/mcp/tool-registry.js +136 -0
- package/build/mcp/tools/bitnet/index.d.ts +494 -0
- package/build/mcp/tools/bitnet/index.js +748 -0
- package/build/mcp/tools/vibe_pm/ask-queue/index.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/ask-queue/index.js +10 -0
- package/build/mcp/tools/vibe_pm/ask-queue/loader.d.ts +29 -0
- package/build/mcp/tools/vibe_pm/ask-queue/loader.js +137 -0
- package/build/mcp/tools/vibe_pm/ask-queue/transformer.d.ts +18 -0
- package/build/mcp/tools/vibe_pm/ask-queue/transformer.js +58 -0
- package/build/mcp/tools/vibe_pm/ask-queue/types.d.ts +75 -0
- package/build/mcp/tools/vibe_pm/ask-queue/types.js +16 -0
- package/build/mcp/tools/vibe_pm/auto-init.d.ts +41 -0
- package/build/mcp/tools/vibe_pm/auto-init.js +133 -0
- package/build/mcp/tools/vibe_pm/autopilot.d.ts +74 -0
- package/build/mcp/tools/vibe_pm/autopilot.js +334 -0
- package/build/mcp/tools/vibe_pm/bitnet-cache.d.ts +124 -0
- package/build/mcp/tools/vibe_pm/bitnet-cache.js +327 -0
- package/build/mcp/tools/vibe_pm/bitnet-ensure.d.ts +58 -0
- package/build/mcp/tools/vibe_pm/bitnet-ensure.js +204 -0
- package/build/mcp/tools/vibe_pm/bitnet-hook-consumer.d.ts +87 -0
- package/build/mcp/tools/vibe_pm/bitnet-hook-consumer.js +323 -0
- package/build/mcp/tools/vibe_pm/bitnet-runner.d.ts +44 -0
- package/build/mcp/tools/vibe_pm/bitnet-runner.js +144 -0
- package/build/mcp/tools/vibe_pm/briefing.d.ts +15 -0
- package/build/mcp/tools/vibe_pm/briefing.js +165 -0
- package/build/mcp/tools/vibe_pm/context.d.ts +113 -0
- package/build/mcp/tools/vibe_pm/context.js +579 -0
- package/build/mcp/tools/vibe_pm/create_work_order.d.ts +15 -0
- package/build/mcp/tools/vibe_pm/create_work_order.js +252 -0
- package/build/mcp/tools/vibe_pm/dashboard.d.ts +64 -0
- package/build/mcp/tools/vibe_pm/dashboard.js +175 -0
- package/build/mcp/tools/vibe_pm/decision-log.d.ts +24 -0
- package/build/mcp/tools/vibe_pm/decision-log.js +38 -0
- package/build/mcp/tools/vibe_pm/diagrams/animator.d.ts +27 -0
- package/build/mcp/tools/vibe_pm/diagrams/animator.js +122 -0
- package/build/mcp/tools/vibe_pm/diagrams/constants.d.ts +71 -0
- package/build/mcp/tools/vibe_pm/diagrams/constants.js +158 -0
- package/build/mcp/tools/vibe_pm/diagrams/gate_engine.d.ts +67 -0
- package/build/mcp/tools/vibe_pm/diagrams/gate_engine.js +695 -0
- package/build/mcp/tools/vibe_pm/diagrams/generator.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/diagrams/generator.js +214 -0
- package/build/mcp/tools/vibe_pm/diagrams/index.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/diagrams/index.js +9 -0
- package/build/mcp/tools/vibe_pm/diagrams/manifest.d.ts +37 -0
- package/build/mcp/tools/vibe_pm/diagrams/manifest.js +151 -0
- package/build/mcp/tools/vibe_pm/diagrams/mermaid_generator.d.ts +70 -0
- package/build/mcp/tools/vibe_pm/diagrams/mermaid_generator.js +214 -0
- package/build/mcp/tools/vibe_pm/diagrams/renderer.d.ts +29 -0
- package/build/mcp/tools/vibe_pm/diagrams/renderer.js +207 -0
- package/build/mcp/tools/vibe_pm/diagrams/types.d.ts +66 -0
- package/build/mcp/tools/vibe_pm/diagrams/types.js +16 -0
- package/build/mcp/tools/vibe_pm/dirty-scan.d.ts +59 -0
- package/build/mcp/tools/vibe_pm/dirty-scan.js +242 -0
- package/build/mcp/tools/vibe_pm/docs_structure.d.ts +17 -0
- package/build/mcp/tools/vibe_pm/docs_structure.js +148 -0
- package/build/mcp/tools/vibe_pm/doctor.d.ts +65 -0
- package/build/mcp/tools/vibe_pm/doctor.js +244 -0
- package/build/mcp/tools/vibe_pm/engine-errors/index.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/engine-errors/index.js +10 -0
- package/build/mcp/tools/vibe_pm/engine-errors/normalizer.d.ts +35 -0
- package/build/mcp/tools/vibe_pm/engine-errors/normalizer.js +122 -0
- package/build/mcp/tools/vibe_pm/engine-errors/patterns.d.ts +26 -0
- package/build/mcp/tools/vibe_pm/engine-errors/patterns.js +111 -0
- package/build/mcp/tools/vibe_pm/engine-errors/types.d.ts +51 -0
- package/build/mcp/tools/vibe_pm/engine-errors/types.js +47 -0
- package/build/mcp/tools/vibe_pm/facts/collector.d.ts +35 -0
- package/build/mcp/tools/vibe_pm/facts/collector.js +285 -0
- package/build/mcp/tools/vibe_pm/facts/index.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/facts/index.js +8 -0
- package/build/mcp/tools/vibe_pm/facts/types.d.ts +94 -0
- package/build/mcp/tools/vibe_pm/facts/types.js +44 -0
- package/build/mcp/tools/vibe_pm/failure/classifier.d.ts +37 -0
- package/build/mcp/tools/vibe_pm/failure/classifier.js +134 -0
- package/build/mcp/tools/vibe_pm/failure/index.d.ts +11 -0
- package/build/mcp/tools/vibe_pm/failure/index.js +11 -0
- package/build/mcp/tools/vibe_pm/failure/loop_diagnose.d.ts +33 -0
- package/build/mcp/tools/vibe_pm/failure/loop_diagnose.js +232 -0
- package/build/mcp/tools/vibe_pm/failure/tracker.d.ts +66 -0
- package/build/mcp/tools/vibe_pm/failure/tracker.js +113 -0
- package/build/mcp/tools/vibe_pm/failure/types.d.ts +98 -0
- package/build/mcp/tools/vibe_pm/failure/types.js +17 -0
- package/build/mcp/tools/vibe_pm/feature-flags.d.ts +105 -0
- package/build/mcp/tools/vibe_pm/feature-flags.js +156 -0
- package/build/mcp/tools/vibe_pm/flow_policy.d.ts +66 -0
- package/build/mcp/tools/vibe_pm/flow_policy.js +253 -0
- package/build/mcp/tools/vibe_pm/get_decision.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/get_decision.js +122 -0
- package/build/mcp/tools/vibe_pm/get_result.d.ts +43 -0
- package/build/mcp/tools/vibe_pm/get_result.js +82 -0
- package/build/mcp/tools/vibe_pm/index.d.ts +499 -0
- package/build/mcp/tools/vibe_pm/index.js +837 -0
- package/build/mcp/tools/vibe_pm/ingress.d.ts +29 -0
- package/build/mcp/tools/vibe_pm/ingress.js +435 -0
- package/build/mcp/tools/vibe_pm/init_docs.d.ts +21 -0
- package/build/mcp/tools/vibe_pm/init_docs.js +38 -0
- package/build/mcp/tools/vibe_pm/inspect_code.d.ts +10 -0
- package/build/mcp/tools/vibe_pm/inspect_code.js +729 -0
- package/build/mcp/tools/vibe_pm/mapping/change_map.d.ts +12 -0
- package/build/mcp/tools/vibe_pm/mapping/change_map.js +154 -0
- package/build/mcp/tools/vibe_pm/mapping/diff_scan.d.ts +31 -0
- package/build/mcp/tools/vibe_pm/mapping/diff_scan.js +156 -0
- package/build/mcp/tools/vibe_pm/mapping/gate_judge.d.ts +18 -0
- package/build/mcp/tools/vibe_pm/mapping/gate_judge.js +101 -0
- package/build/mcp/tools/vibe_pm/mapping/import_scan.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/mapping/import_scan.js +56 -0
- package/build/mcp/tools/vibe_pm/mapping/index.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/mapping/index.js +10 -0
- package/build/mcp/tools/vibe_pm/mapping/orchestrator.d.ts +41 -0
- package/build/mcp/tools/vibe_pm/mapping/orchestrator.js +200 -0
- package/build/mcp/tools/vibe_pm/mapping/skeleton_patch.d.ts +15 -0
- package/build/mcp/tools/vibe_pm/mapping/skeleton_patch.js +59 -0
- package/build/mcp/tools/vibe_pm/mapping/spec_map.d.ts +19 -0
- package/build/mcp/tools/vibe_pm/mapping/spec_map.js +43 -0
- package/build/mcp/tools/vibe_pm/mapping/types.d.ts +126 -0
- package/build/mcp/tools/vibe_pm/mapping/types.js +2 -0
- package/build/mcp/tools/vibe_pm/memory.d.ts +53 -0
- package/build/mcp/tools/vibe_pm/memory.js +92 -0
- package/build/mcp/tools/vibe_pm/memory_backend.d.ts +50 -0
- package/build/mcp/tools/vibe_pm/memory_backend.js +187 -0
- package/build/mcp/tools/vibe_pm/memory_docs_root.d.ts +15 -0
- package/build/mcp/tools/vibe_pm/memory_docs_root.js +39 -0
- package/build/mcp/tools/vibe_pm/memory_index.d.ts +36 -0
- package/build/mcp/tools/vibe_pm/memory_index.js +302 -0
- package/build/mcp/tools/vibe_pm/memory_index_embeddings.d.ts +138 -0
- package/build/mcp/tools/vibe_pm/memory_index_embeddings.js +481 -0
- package/build/mcp/tools/vibe_pm/memory_index_hashvec.d.ts +53 -0
- package/build/mcp/tools/vibe_pm/memory_index_hashvec.js +251 -0
- package/build/mcp/tools/vibe_pm/memory_rerank.d.ts +92 -0
- package/build/mcp/tools/vibe_pm/memory_rerank.js +164 -0
- package/build/mcp/tools/vibe_pm/memory_retrieve.d.ts +22 -0
- package/build/mcp/tools/vibe_pm/memory_retrieve.js +247 -0
- package/build/mcp/tools/vibe_pm/memory_status.d.ts +6 -0
- package/build/mcp/tools/vibe_pm/memory_status.js +101 -0
- package/build/mcp/tools/vibe_pm/memory_sync.d.ts +6 -0
- package/build/mcp/tools/vibe_pm/memory_sync.js +226 -0
- package/build/mcp/tools/vibe_pm/modules/fix_dependencies.d.ts +18 -0
- package/build/mcp/tools/vibe_pm/modules/fix_dependencies.js +223 -0
- package/build/mcp/tools/vibe_pm/modules/fix_imports.d.ts +43 -0
- package/build/mcp/tools/vibe_pm/modules/fix_imports.js +317 -0
- package/build/mcp/tools/vibe_pm/modules/fix_lint.d.ts +34 -0
- package/build/mcp/tools/vibe_pm/modules/fix_lint.js +267 -0
- package/build/mcp/tools/vibe_pm/modules/one_loop.d.ts +40 -0
- package/build/mcp/tools/vibe_pm/modules/one_loop.js +181 -0
- package/build/mcp/tools/vibe_pm/navigation/index.d.ts +10 -0
- package/build/mcp/tools/vibe_pm/navigation/index.js +9 -0
- package/build/mcp/tools/vibe_pm/navigation/resolver.d.ts +61 -0
- package/build/mcp/tools/vibe_pm/navigation/resolver.js +148 -0
- package/build/mcp/tools/vibe_pm/navigation/rules.d.ts +27 -0
- package/build/mcp/tools/vibe_pm/navigation/rules.js +258 -0
- package/build/mcp/tools/vibe_pm/navigation/types.d.ts +92 -0
- package/build/mcp/tools/vibe_pm/navigation/types.js +29 -0
- package/build/mcp/tools/vibe_pm/observer.d.ts +153 -0
- package/build/mcp/tools/vibe_pm/observer.js +402 -0
- package/build/mcp/tools/vibe_pm/phase.d.ts +69 -0
- package/build/mcp/tools/vibe_pm/phase.js +252 -0
- package/build/mcp/tools/vibe_pm/pm_language.d.ts +97 -0
- package/build/mcp/tools/vibe_pm/pm_language.js +355 -0
- package/build/mcp/tools/vibe_pm/policy/config.d.ts +30 -0
- package/build/mcp/tools/vibe_pm/policy/config.js +50 -0
- package/build/mcp/tools/vibe_pm/policy/index.d.ts +13 -0
- package/build/mcp/tools/vibe_pm/policy/index.js +12 -0
- package/build/mcp/tools/vibe_pm/policy/recommender.d.ts +49 -0
- package/build/mcp/tools/vibe_pm/policy/recommender.js +119 -0
- package/build/mcp/tools/vibe_pm/policy/types.d.ts +75 -0
- package/build/mcp/tools/vibe_pm/policy/types.js +32 -0
- package/build/mcp/tools/vibe_pm/ralph-loop-tools.d.ts +66 -0
- package/build/mcp/tools/vibe_pm/ralph-loop-tools.js +101 -0
- package/build/mcp/tools/vibe_pm/scaffold.d.ts +57 -0
- package/build/mcp/tools/vibe_pm/scaffold.js +403 -0
- package/build/mcp/tools/vibe_pm/schema-adapter.d.ts +44 -0
- package/build/mcp/tools/vibe_pm/schema-adapter.js +165 -0
- package/build/mcp/tools/vibe_pm/scorecard/index.d.ts +3 -0
- package/build/mcp/tools/vibe_pm/scorecard/index.js +3 -0
- package/build/mcp/tools/vibe_pm/scorecard/types.d.ts +66 -0
- package/build/mcp/tools/vibe_pm/scorecard/types.js +27 -0
- package/build/mcp/tools/vibe_pm/scorecard/writer.d.ts +33 -0
- package/build/mcp/tools/vibe_pm/scorecard/writer.js +134 -0
- package/build/mcp/tools/vibe_pm/setup.d.ts +52 -0
- package/build/mcp/tools/vibe_pm/setup.js +411 -0
- package/build/mcp/tools/vibe_pm/signals/index.d.ts +4 -0
- package/build/mcp/tools/vibe_pm/signals/index.js +4 -0
- package/build/mcp/tools/vibe_pm/signals/logger.d.ts +36 -0
- package/build/mcp/tools/vibe_pm/signals/logger.js +115 -0
- package/build/mcp/tools/vibe_pm/signals/rotation.d.ts +43 -0
- package/build/mcp/tools/vibe_pm/signals/rotation.js +128 -0
- package/build/mcp/tools/vibe_pm/signals/types.d.ts +46 -0
- package/build/mcp/tools/vibe_pm/signals/types.js +39 -0
- package/build/mcp/tools/vibe_pm/state-guesser.d.ts +50 -0
- package/build/mcp/tools/vibe_pm/state-guesser.js +322 -0
- package/build/mcp/tools/vibe_pm/state-schema.d.ts +133 -0
- package/build/mcp/tools/vibe_pm/state-schema.js +57 -0
- package/build/mcp/tools/vibe_pm/state-store.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/state-store.js +97 -0
- package/build/mcp/tools/vibe_pm/status.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/status.js +704 -0
- package/build/mcp/tools/vibe_pm/submit_decision.d.ts +9 -0
- package/build/mcp/tools/vibe_pm/submit_decision.js +154 -0
- package/build/mcp/tools/vibe_pm/submit_task.d.ts +107 -0
- package/build/mcp/tools/vibe_pm/submit_task.js +85 -0
- package/build/mcp/tools/vibe_pm/types.d.ts +4649 -0
- package/build/mcp/tools/vibe_pm/types.js +377 -0
- package/build/mcp/tools/vibe_pm/ui/index.d.ts +29 -0
- package/build/mcp/tools/vibe_pm/ui/index.js +17 -0
- package/build/mcp/tools/vibe_pm/ui/manifest.d.ts +14 -0
- package/build/mcp/tools/vibe_pm/ui/manifest.js +94 -0
- package/build/mcp/tools/vibe_pm/ui/types.d.ts +61 -0
- package/build/mcp/tools/vibe_pm/ui/types.js +3 -0
- package/build/mcp/tools/vibe_pm/ui/viewer_bundle.d.ts +6 -0
- package/build/mcp/tools/vibe_pm/ui/viewer_bundle.js +351 -0
- package/build/mcp/tools/vibe_pm/ux_fsm.d.ts +48 -0
- package/build/mcp/tools/vibe_pm/ux_fsm.js +127 -0
- package/build/mcp/tools/vibe_pm/verdict/index.d.ts +8 -0
- package/build/mcp/tools/vibe_pm/verdict/index.js +8 -0
- package/build/mcp/tools/vibe_pm/verdict/types.d.ts +69 -0
- package/build/mcp/tools/vibe_pm/verdict/types.js +50 -0
- package/build/mcp/tools/vibe_pm/verdict/writer.d.ts +42 -0
- package/build/mcp/tools/vibe_pm/verdict/writer.js +136 -0
- package/build/mcp/tools/vibe_pm/watcher.d.ts +91 -0
- package/build/mcp/tools/vibe_pm/watcher.js +235 -0
- package/build/mcp/tools/vibe_pm/worker_status.d.ts +43 -0
- package/build/mcp/tools/vibe_pm/worker_status.js +89 -0
- package/build/mcp/tools.d.ts +1 -0
- package/build/mcp/tools.js +11 -0
- package/build/mcp/transport/cli.d.ts +27 -0
- package/build/mcp/transport/cli.js +71 -0
- package/build/mcp/transport/handlers.d.ts +24 -0
- package/build/mcp/transport/handlers.js +118 -0
- package/build/mcp/transport/http.d.ts +28 -0
- package/build/mcp/transport/http.js +115 -0
- package/build/mcp/transport/index.d.ts +17 -0
- package/build/mcp/transport/index.js +18 -0
- package/build/mcp/transport/types.d.ts +81 -0
- package/build/mcp/transport/types.js +8 -0
- package/build/mcp/workspace-root.d.ts +49 -0
- package/build/mcp/workspace-root.js +165 -0
- package/build/offline-queue.d.ts +67 -0
- package/build/offline-queue.js +233 -0
- package/build/pool-manager/adapter.d.ts +118 -0
- package/build/pool-manager/adapter.js +99 -0
- package/build/pool-manager/bitnet-adapter.d.ts +74 -0
- package/build/pool-manager/bitnet-adapter.js +208 -0
- package/build/pool-manager/index.d.ts +16 -0
- package/build/pool-manager/index.js +14 -0
- package/build/pool-manager/mapper-adapter.d.ts +74 -0
- package/build/pool-manager/mapper-adapter.js +194 -0
- package/build/pool-manager/resource-monitor.d.ts +112 -0
- package/build/pool-manager/resource-monitor.js +213 -0
- package/build/pool-manager/types.d.ts +286 -0
- package/build/pool-manager/types.js +137 -0
- package/build/pool-manager/unified-pool.d.ts +168 -0
- package/build/pool-manager/unified-pool.js +561 -0
- package/build/profile-config.d.ts +115 -0
- package/build/profile-config.js +202 -0
- package/build/report-generator.d.ts +201 -0
- package/build/report-generator.js +763 -0
- package/build/review-history.d.ts +61 -0
- package/build/review-history.js +228 -0
- package/build/reviewer-ux-types.d.ts +85 -0
- package/build/reviewer-ux-types.js +21 -0
- package/build/skeleton-types.d.ts +89 -0
- package/build/skeleton-types.js +9 -0
- package/build/skill-loader.d.ts +177 -0
- package/build/skill-loader.js +407 -0
- package/build/spec-map.d.ts +32 -0
- package/build/spec-map.js +100 -0
- package/build/startup/index.d.ts +26 -0
- package/build/startup/index.js +26 -0
- package/build/startup/manager.d.ts +67 -0
- package/build/startup/manager.js +219 -0
- package/build/sync-manager.d.ts +58 -0
- package/build/sync-manager.js +113 -0
- package/build/sync-packet-builder.d.ts +215 -0
- package/build/sync-packet-builder.js +303 -0
- package/build/tier/ant_lane.d.ts +99 -0
- package/build/tier/ant_lane.js +308 -0
- package/build/tier/checkpoint.d.ts +61 -0
- package/build/tier/checkpoint.js +255 -0
- package/build/tier/checkpoint_types.d.ts +95 -0
- package/build/tier/checkpoint_types.js +8 -0
- package/build/tier/cooldown_store.d.ts +46 -0
- package/build/tier/cooldown_store.js +137 -0
- package/build/tier/feature_gate.d.ts +192 -0
- package/build/tier/feature_gate.js +416 -0
- package/build/tier/index.d.ts +45 -0
- package/build/tier/index.js +63 -0
- package/build/tier/policy_analysis.d.ts +130 -0
- package/build/tier/policy_analysis.js +465 -0
- package/build/tier/scorecard.d.ts +142 -0
- package/build/tier/scorecard.js +496 -0
- package/build/tier/scout_runner.d.ts +28 -0
- package/build/tier/scout_runner.js +203 -0
- package/build/tier/trigger_evaluator.d.ts +42 -0
- package/build/tier/trigger_evaluator.js +229 -0
- package/build/tier/trigger_facts_collector.d.ts +20 -0
- package/build/tier/trigger_facts_collector.js +294 -0
- package/build/tier/trigger_types.d.ts +87 -0
- package/build/tier/trigger_types.js +21 -0
- package/build/workers/base/autoscaler.d.ts +96 -0
- package/build/workers/base/autoscaler.js +165 -0
- package/build/workers/base/dashboard.d.ts +131 -0
- package/build/workers/base/dashboard.js +311 -0
- package/build/workers/base/health.d.ts +79 -0
- package/build/workers/base/health.js +240 -0
- package/build/workers/base/index.d.ts +13 -0
- package/build/workers/base/index.js +13 -0
- package/build/workers/base/metrics.d.ts +88 -0
- package/build/workers/base/metrics.js +183 -0
- package/build/workers/base/pool.d.ts +100 -0
- package/build/workers/base/pool.js +279 -0
- package/build/workers/base/queue.d.ts +48 -0
- package/build/workers/base/queue.js +163 -0
- package/build/workers/base/types.d.ts +131 -0
- package/build/workers/base/types.js +6 -0
- package/build/workers/base/worker.d.ts +64 -0
- package/build/workers/base/worker.js +198 -0
- package/build/workers/browser/index.d.ts +102 -0
- package/build/workers/browser/index.js +222 -0
- package/build/workers/build/index.d.ts +77 -0
- package/build/workers/build/index.js +167 -0
- package/build/workers/fs/index.d.ts +84 -0
- package/build/workers/fs/index.js +290 -0
- package/build/workers/index.d.ts +31 -0
- package/build/workers/index.js +60 -0
- package/build/workers/manager.d.ts +228 -0
- package/build/workers/manager.js +562 -0
- package/build/workers/model/index.d.ts +119 -0
- package/build/workers/model/index.js +239 -0
- package/build/workers/search/index.d.ts +93 -0
- package/build/workers/search/index.js +260 -0
- package/package.json +129 -0
- package/schemas/autopilot_policy.v1.schema.json +90 -0
- package/schemas/banned_question_rules.v1.schema.json +186 -0
- package/schemas/bitnet_signal.v1.schema.json +112 -0
- package/schemas/catalog_tree.v1.schema.json +172 -0
- package/schemas/choice_card.v1.schema.json +104 -0
- package/schemas/ci_summary.v1.schema.json +275 -0
- package/schemas/clinic_result.v1.2.schema.json +202 -0
- package/schemas/encrypted_packet.v1.schema.json +18 -0
- package/schemas/handoff_packet.v1.schema.json +192 -0
- package/schemas/observer_event_map.v1.schema.json +89 -0
- package/schemas/result.v1.schema.json +130 -0
- package/schemas/skeleton_map_summary.v1.schema.json +128 -0
- package/schemas/spec_gate_result.v1.schema.json +41 -0
- package/schemas/spec_map.v1.schema.json +40 -0
- package/schemas/sync_packet.v1.schema.json +103 -0
- package/schemas/task.v1.schema.json +227 -0
- package/schemas/vibe_tool_status.schema.json +182 -0
- package/scripts/build-artifacts.mjs +124 -0
- package/scripts/build-musu.sh +132 -0
- package/scripts/check-musu.mjs +78 -0
- package/scripts/check-pr-scope.mjs +121 -0
- package/scripts/clean-build.mjs +20 -0
- package/scripts/e2e-k8s-test.sh +202 -0
- package/scripts/ensure-exec.mjs +80 -0
- package/scripts/validate-doc-links.mjs +321 -0
- package/skills/skillpack.json +383 -0
- package/skills/skillpack.schema.json +212 -0
- package/templates/docs-structure/README.md +41 -0
- package/templates/docs-structure/active/.gitkeep +0 -0
- package/templates/docs-structure/archived/legacy/.gitkeep +0 -0
- package/templates/docs-structure/archived/topics/.gitkeep +0 -0
- package/templates/docs-structure/reference/contracts/.gitkeep +0 -0
- package/templates/docs-structure/reference/product-spec/.gitkeep +0 -0
- package/templates/docs-structure/reference/ssot/.gitkeep +0 -0
- package/templates/github-actions/vibe-ci.yml +27 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChangeMap, ChangedFile, ImportHint, SpecMap } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* change_map 생성 (스코어링 + 매핑 결과)
|
|
4
|
+
*/
|
|
5
|
+
export declare function buildChangeMap(args: {
|
|
6
|
+
run_id: string;
|
|
7
|
+
base?: string;
|
|
8
|
+
head?: string;
|
|
9
|
+
spec: SpecMap;
|
|
10
|
+
changed: ChangedFile[];
|
|
11
|
+
imports: ImportHint[];
|
|
12
|
+
}): ChangeMap;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { importHintScore, keywordScore, pathMatches } from "./spec_map.js";
|
|
2
|
+
/**
|
|
3
|
+
* change_map 생성 (스코어링 + 매핑 결과)
|
|
4
|
+
*/
|
|
5
|
+
export function buildChangeMap(args) {
|
|
6
|
+
const now = new Date().toISOString();
|
|
7
|
+
const importMap = new Map(args.imports.map((x) => [x.file, x.imports]));
|
|
8
|
+
const mapped = [];
|
|
9
|
+
const unmapped = [];
|
|
10
|
+
const violations = [];
|
|
11
|
+
// 1) deny path 체크
|
|
12
|
+
for (const cf of args.changed) {
|
|
13
|
+
const deny = args.spec.boundaries.deny_paths ?? [];
|
|
14
|
+
for (const d of deny) {
|
|
15
|
+
const prefix = d.path.replace("/**", "").replace("/*", "").replace("*", "");
|
|
16
|
+
if (cf.file.startsWith(prefix)) {
|
|
17
|
+
violations.push({
|
|
18
|
+
code: "DENY_PATH_TOUCHED",
|
|
19
|
+
severity: "BLOCK",
|
|
20
|
+
file: cf.file,
|
|
21
|
+
detail: `deny_path hit: ${d.path} (${d.reason})`,
|
|
22
|
+
evidence: [`path:${cf.file}`],
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// 2) 파일별 owner 스코어링
|
|
28
|
+
for (const cf of args.changed) {
|
|
29
|
+
// 삭제된 파일은 스킵
|
|
30
|
+
if (cf.status === "D")
|
|
31
|
+
continue;
|
|
32
|
+
const importTargets = importMap.get(cf.file) ?? [];
|
|
33
|
+
const contentKeywords = [cf.file, ...importTargets].join(" ");
|
|
34
|
+
const candidates = args.spec.owners.map((o) => {
|
|
35
|
+
// 스코어 계산
|
|
36
|
+
const s_path = pathMatches(o, cf.file) ? 1 : 0;
|
|
37
|
+
const s_kw = keywordScore(o, contentKeywords);
|
|
38
|
+
const s_imp = importHintScore(o, importTargets);
|
|
39
|
+
// match order 반영: path가 맞으면 base boost
|
|
40
|
+
const base = s_path > 0 ? 0.55 : 0.0;
|
|
41
|
+
const conf = clamp01(base + 0.25 * s_kw + 0.2 * s_imp);
|
|
42
|
+
const evidence = [];
|
|
43
|
+
if (s_path > 0)
|
|
44
|
+
evidence.push(`path_match:${o.paths.join(",")}`);
|
|
45
|
+
if (s_kw > 0)
|
|
46
|
+
evidence.push(`keyword_score:${s_kw.toFixed(2)}`);
|
|
47
|
+
if (s_imp > 0)
|
|
48
|
+
evidence.push(`import_hint_score:${s_imp.toFixed(2)}`);
|
|
49
|
+
return {
|
|
50
|
+
owner_id: o.id,
|
|
51
|
+
domain_id: o.axis.domain,
|
|
52
|
+
layer: o.axis.layer,
|
|
53
|
+
confidence: conf,
|
|
54
|
+
evidence,
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
candidates.sort((a, b) => b.confidence - a.confidence);
|
|
58
|
+
const best = candidates[0];
|
|
59
|
+
const second = candidates[1];
|
|
60
|
+
const mappedMin = args.spec.rules.confidence_thresholds.mapped_min;
|
|
61
|
+
const suggestMin = args.spec.rules.confidence_thresholds.suggest_min;
|
|
62
|
+
// suggest_min 미달: unmapped
|
|
63
|
+
if (!best || best.confidence < suggestMin) {
|
|
64
|
+
unmapped.push({
|
|
65
|
+
file: cf.file,
|
|
66
|
+
reasons: ["no_match_above_suggest_min"],
|
|
67
|
+
suggested_owners: candidates
|
|
68
|
+
.filter((c) => c.confidence >= suggestMin * 0.5) // 절반 이상은 추천
|
|
69
|
+
.slice(0, 3)
|
|
70
|
+
.map((c) => ({
|
|
71
|
+
owner_id: c.owner_id,
|
|
72
|
+
domain_id: c.domain_id,
|
|
73
|
+
layer: c.layer,
|
|
74
|
+
confidence: c.confidence,
|
|
75
|
+
})),
|
|
76
|
+
});
|
|
77
|
+
violations.push({
|
|
78
|
+
code: "UNMAPPED_CHANGE",
|
|
79
|
+
severity: "FIX",
|
|
80
|
+
file: cf.file,
|
|
81
|
+
detail: `no owner confidence >= ${suggestMin}`,
|
|
82
|
+
evidence: [`best:${best?.owner_id ?? "none"}:${best?.confidence ?? 0}`],
|
|
83
|
+
});
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
// 모호성 체크: best와 second가 너무 가까움
|
|
87
|
+
if (second &&
|
|
88
|
+
best.confidence >= mappedMin &&
|
|
89
|
+
Math.abs(best.confidence - second.confidence) < 0.08) {
|
|
90
|
+
violations.push({
|
|
91
|
+
code: "OWNER_AMBIGUOUS",
|
|
92
|
+
severity: "FIX",
|
|
93
|
+
file: cf.file,
|
|
94
|
+
detail: `ambiguous owners: ${best.owner_id}(${best.confidence.toFixed(2)}) vs ${second.owner_id}(${second.confidence.toFixed(2)})`,
|
|
95
|
+
evidence: [...best.evidence, ...second.evidence],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
// mapped_min 이상: 매핑 확정
|
|
99
|
+
if (best.confidence >= mappedMin) {
|
|
100
|
+
mapped.push({
|
|
101
|
+
file: cf.file,
|
|
102
|
+
owner_id: best.owner_id,
|
|
103
|
+
domain_id: best.domain_id,
|
|
104
|
+
layer: best.layer,
|
|
105
|
+
confidence: best.confidence,
|
|
106
|
+
evidence: best.evidence.length ? best.evidence : ["heuristic_match"],
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
// suggest_min 이상, mapped_min 미달: unmapped
|
|
111
|
+
unmapped.push({
|
|
112
|
+
file: cf.file,
|
|
113
|
+
reasons: [`best_confidence_below_mapped_min:${mappedMin}`],
|
|
114
|
+
suggested_owners: candidates.slice(0, 3).map((c) => ({
|
|
115
|
+
owner_id: c.owner_id,
|
|
116
|
+
domain_id: c.domain_id,
|
|
117
|
+
layer: c.layer,
|
|
118
|
+
confidence: c.confidence,
|
|
119
|
+
})),
|
|
120
|
+
});
|
|
121
|
+
violations.push({
|
|
122
|
+
code: "UNMAPPED_CHANGE",
|
|
123
|
+
severity: "FIX",
|
|
124
|
+
file: cf.file,
|
|
125
|
+
detail: `best confidence ${best.confidence.toFixed(2)} < mapped_min ${mappedMin}`,
|
|
126
|
+
evidence: best.evidence,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const domainsTouched = uniq(mapped.map((m) => m.domain_id));
|
|
131
|
+
const layersTouched = uniq(mapped.map((m) => m.layer));
|
|
132
|
+
return {
|
|
133
|
+
version: "1.0",
|
|
134
|
+
run_id: args.run_id,
|
|
135
|
+
base: args.base,
|
|
136
|
+
head: args.head,
|
|
137
|
+
generated_at: now,
|
|
138
|
+
mapped,
|
|
139
|
+
unmapped,
|
|
140
|
+
violations,
|
|
141
|
+
summary: {
|
|
142
|
+
mapped_files: mapped.length,
|
|
143
|
+
unmapped_files: unmapped.length,
|
|
144
|
+
domains_touched: domainsTouched,
|
|
145
|
+
layers_touched: layersTouched,
|
|
146
|
+
},
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function clamp01(n) {
|
|
150
|
+
return Math.max(0, Math.min(1, n));
|
|
151
|
+
}
|
|
152
|
+
function uniq(xs) {
|
|
153
|
+
return Array.from(new Set(xs));
|
|
154
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangedFile } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* git diff로 변경 파일 목록 수집
|
|
4
|
+
* @deprecated Use scanChangedFilesAsync or scanChangedFilesSmart instead.
|
|
5
|
+
* Sync operations block the event loop.
|
|
6
|
+
*/
|
|
7
|
+
export declare function scanChangedFiles(baseRef?: string, headRef?: string, cwd?: string): ChangedFile[];
|
|
8
|
+
/**
|
|
9
|
+
* staged 파일 목록 수집 (commit 전)
|
|
10
|
+
* @deprecated Use scanStagedFilesAsync or scanStagedFilesSmart instead.
|
|
11
|
+
* Sync operations block the event loop.
|
|
12
|
+
*/
|
|
13
|
+
export declare function scanStagedFiles(cwd?: string): ChangedFile[];
|
|
14
|
+
/**
|
|
15
|
+
* Async version of scanChangedFiles (non-blocking)
|
|
16
|
+
* Recommended for use in async contexts.
|
|
17
|
+
*/
|
|
18
|
+
export declare function scanChangedFilesAsync(baseRef?: string, headRef?: string, cwd?: string): Promise<ChangedFile[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Async version of scanStagedFiles (non-blocking)
|
|
21
|
+
* Recommended for use in async contexts.
|
|
22
|
+
*/
|
|
23
|
+
export declare function scanStagedFilesAsync(cwd?: string): Promise<ChangedFile[]>;
|
|
24
|
+
/**
|
|
25
|
+
* Smart async scan - uses worker if enabled, otherwise async local
|
|
26
|
+
*/
|
|
27
|
+
export declare function scanChangedFilesSmart(baseRef?: string, headRef?: string, cwd?: string, runId?: string): Promise<ChangedFile[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Smart async staged scan - uses worker if enabled, otherwise async local
|
|
30
|
+
*/
|
|
31
|
+
export declare function scanStagedFilesSmart(cwd?: string, runId?: string): Promise<ChangedFile[]>;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// release/mvp_core_clinic/src/mcp/tools/vibe_pm/mapping/diff_scan.ts
|
|
2
|
+
import { spawnSync, spawn } from "child_process";
|
|
3
|
+
import { isMapperWorkerEnabled, diffScanViaWorkerOrFallback, stagedScanViaWorkerOrFallback, } from "../../../../mapper-worker/index.js";
|
|
4
|
+
// ============================================================
|
|
5
|
+
// Common Parsing Logic (extracted to reduce duplication)
|
|
6
|
+
// ============================================================
|
|
7
|
+
/**
|
|
8
|
+
* Parse git name-status and numstat output into ChangedFile[]
|
|
9
|
+
*/
|
|
10
|
+
function parseGitDiffOutput(nsStdout, numStdout) {
|
|
11
|
+
const statusMap = new Map();
|
|
12
|
+
nsStdout
|
|
13
|
+
.split("\n")
|
|
14
|
+
.filter(Boolean)
|
|
15
|
+
.forEach((line) => {
|
|
16
|
+
const parts = line.split(/\s+/);
|
|
17
|
+
const s = parts[0];
|
|
18
|
+
const file = parts.slice(1).join(" ");
|
|
19
|
+
if (!s || !file)
|
|
20
|
+
return;
|
|
21
|
+
statusMap.set(file, s[0]);
|
|
22
|
+
});
|
|
23
|
+
const statsMap = new Map();
|
|
24
|
+
numStdout
|
|
25
|
+
.split("\n")
|
|
26
|
+
.filter(Boolean)
|
|
27
|
+
.forEach((line) => {
|
|
28
|
+
const [a, d, ...rest] = line.split("\t");
|
|
29
|
+
const file = rest.join("\t");
|
|
30
|
+
if (!file)
|
|
31
|
+
return;
|
|
32
|
+
statsMap.set(file, {
|
|
33
|
+
a: parseInt(a || "0", 10) || 0,
|
|
34
|
+
d: parseInt(d || "0", 10) || 0,
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
const files = [];
|
|
38
|
+
for (const [file, status] of statusMap.entries()) {
|
|
39
|
+
const st = statsMap.get(file) ?? { a: 0, d: 0 };
|
|
40
|
+
files.push({
|
|
41
|
+
file,
|
|
42
|
+
status,
|
|
43
|
+
addedLines: st.a,
|
|
44
|
+
deletedLines: st.d,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return files;
|
|
48
|
+
}
|
|
49
|
+
// ============================================================
|
|
50
|
+
// Sync Versions (DEPRECATED - use async or smart versions)
|
|
51
|
+
// ============================================================
|
|
52
|
+
/**
|
|
53
|
+
* git diff로 변경 파일 목록 수집
|
|
54
|
+
* @deprecated Use scanChangedFilesAsync or scanChangedFilesSmart instead.
|
|
55
|
+
* Sync operations block the event loop.
|
|
56
|
+
*/
|
|
57
|
+
export function scanChangedFiles(baseRef = "HEAD~1", headRef = "HEAD", cwd) {
|
|
58
|
+
const opts = { encoding: "utf-8", cwd };
|
|
59
|
+
const ns = spawnSync("git", ["diff", "--name-status", `${baseRef}..${headRef}`], opts);
|
|
60
|
+
const num = spawnSync("git", ["diff", "--numstat", `${baseRef}..${headRef}`], opts);
|
|
61
|
+
return parseGitDiffOutput(ns.stdout || "", num.stdout || "");
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* staged 파일 목록 수집 (commit 전)
|
|
65
|
+
* @deprecated Use scanStagedFilesAsync or scanStagedFilesSmart instead.
|
|
66
|
+
* Sync operations block the event loop.
|
|
67
|
+
*/
|
|
68
|
+
export function scanStagedFiles(cwd) {
|
|
69
|
+
const opts = { encoding: "utf-8", cwd };
|
|
70
|
+
const ns = spawnSync("git", ["diff", "--cached", "--name-status"], opts);
|
|
71
|
+
const num = spawnSync("git", ["diff", "--cached", "--numstat"], opts);
|
|
72
|
+
return parseGitDiffOutput(ns.stdout || "", num.stdout || "");
|
|
73
|
+
}
|
|
74
|
+
// ============================================================
|
|
75
|
+
// Async Versions (using spawn instead of spawnSync)
|
|
76
|
+
// ============================================================
|
|
77
|
+
/**
|
|
78
|
+
* Run git command asynchronously
|
|
79
|
+
*/
|
|
80
|
+
function runGitAsync(args, cwd) {
|
|
81
|
+
return new Promise((resolve) => {
|
|
82
|
+
const proc = spawn("git", args, {
|
|
83
|
+
cwd,
|
|
84
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
85
|
+
});
|
|
86
|
+
let stdout = "";
|
|
87
|
+
let stderr = "";
|
|
88
|
+
proc.stdout?.on("data", (data) => {
|
|
89
|
+
stdout += data.toString();
|
|
90
|
+
});
|
|
91
|
+
proc.stderr?.on("data", (data) => {
|
|
92
|
+
stderr += data.toString();
|
|
93
|
+
});
|
|
94
|
+
proc.on("close", (code) => {
|
|
95
|
+
resolve({ stdout, stderr, code: code ?? 0 });
|
|
96
|
+
});
|
|
97
|
+
proc.on("error", (err) => {
|
|
98
|
+
resolve({ stdout: "", stderr: err.message, code: 1 });
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Async version of scanChangedFiles (non-blocking)
|
|
104
|
+
* Recommended for use in async contexts.
|
|
105
|
+
*/
|
|
106
|
+
export async function scanChangedFilesAsync(baseRef = "HEAD~1", headRef = "HEAD", cwd) {
|
|
107
|
+
const workDir = cwd ?? process.cwd();
|
|
108
|
+
const [nsResult, numResult] = await Promise.all([
|
|
109
|
+
runGitAsync(["diff", "--name-status", `${baseRef}..${headRef}`], workDir),
|
|
110
|
+
runGitAsync(["diff", "--numstat", `${baseRef}..${headRef}`], workDir),
|
|
111
|
+
]);
|
|
112
|
+
return parseGitDiffOutput(nsResult.stdout, numResult.stdout);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Async version of scanStagedFiles (non-blocking)
|
|
116
|
+
* Recommended for use in async contexts.
|
|
117
|
+
*/
|
|
118
|
+
export async function scanStagedFilesAsync(cwd) {
|
|
119
|
+
const workDir = cwd ?? process.cwd();
|
|
120
|
+
const [nsResult, numResult] = await Promise.all([
|
|
121
|
+
runGitAsync(["diff", "--cached", "--name-status"], workDir),
|
|
122
|
+
runGitAsync(["diff", "--cached", "--numstat"], workDir),
|
|
123
|
+
]);
|
|
124
|
+
return parseGitDiffOutput(nsResult.stdout, numResult.stdout);
|
|
125
|
+
}
|
|
126
|
+
// ============================================================
|
|
127
|
+
// Smart Versions (use worker if available, else async local)
|
|
128
|
+
// ============================================================
|
|
129
|
+
/**
|
|
130
|
+
* Smart async scan - uses worker if enabled, otherwise async local
|
|
131
|
+
*/
|
|
132
|
+
export async function scanChangedFilesSmart(baseRef = "HEAD~1", headRef = "HEAD", cwd, runId = "default") {
|
|
133
|
+
const workDir = cwd ?? process.cwd();
|
|
134
|
+
if (isMapperWorkerEnabled()) {
|
|
135
|
+
const result = await diffScanViaWorkerOrFallback(workDir, runId, baseRef, headRef, () => scanChangedFiles(baseRef, headRef, workDir));
|
|
136
|
+
if (result.success && result.data) {
|
|
137
|
+
return result.data;
|
|
138
|
+
}
|
|
139
|
+
throw new Error(result.error ?? "Unknown error");
|
|
140
|
+
}
|
|
141
|
+
return scanChangedFilesAsync(baseRef, headRef, workDir);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Smart async staged scan - uses worker if enabled, otherwise async local
|
|
145
|
+
*/
|
|
146
|
+
export async function scanStagedFilesSmart(cwd, runId = "default") {
|
|
147
|
+
const workDir = cwd ?? process.cwd();
|
|
148
|
+
if (isMapperWorkerEnabled()) {
|
|
149
|
+
const result = await stagedScanViaWorkerOrFallback(workDir, runId, () => scanStagedFiles(workDir));
|
|
150
|
+
if (result.success && result.data) {
|
|
151
|
+
return result.data;
|
|
152
|
+
}
|
|
153
|
+
throw new Error(result.error ?? "Unknown error");
|
|
154
|
+
}
|
|
155
|
+
return scanStagedFilesAsync(workDir);
|
|
156
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeMap, GateDecision, SpecMap, Violation } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* FIX/BLOCK 판정 + 네비게이션 메시지 생성
|
|
4
|
+
*/
|
|
5
|
+
export declare function judgeMappingGate(args: {
|
|
6
|
+
run_id: string;
|
|
7
|
+
spec: SpecMap;
|
|
8
|
+
changeMap: ChangeMap;
|
|
9
|
+
changeMapPath: string;
|
|
10
|
+
}): GateDecision;
|
|
11
|
+
/**
|
|
12
|
+
* violation 목록에서 심각도별 카운트
|
|
13
|
+
*/
|
|
14
|
+
export declare function countViolations(violations: Violation[]): {
|
|
15
|
+
block: number;
|
|
16
|
+
fix: number;
|
|
17
|
+
total: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FIX/BLOCK 판정 + 네비게이션 메시지 생성
|
|
3
|
+
*/
|
|
4
|
+
export function judgeMappingGate(args) {
|
|
5
|
+
const v = args.changeMap.violations;
|
|
6
|
+
const hasBlock = v.some((x) => x.severity === "BLOCK");
|
|
7
|
+
const hasFix = v.some((x) => x.severity === "FIX");
|
|
8
|
+
const verdict = hasBlock ? "BLOCK" : hasFix ? "FIX" : "GO";
|
|
9
|
+
if (verdict === "GO") {
|
|
10
|
+
return {
|
|
11
|
+
verdict,
|
|
12
|
+
title: "MAPPING_GO",
|
|
13
|
+
summary: "모든 변경이 spec_map에 매핑되었고, 경계 위반이 없습니다.",
|
|
14
|
+
evidence: {
|
|
15
|
+
run_id: args.run_id,
|
|
16
|
+
change_map_path: args.changeMapPath,
|
|
17
|
+
summary: args.changeMap.summary,
|
|
18
|
+
},
|
|
19
|
+
navigation: [],
|
|
20
|
+
next_actions: [],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
if (verdict === "BLOCK") {
|
|
24
|
+
const blocks = v.filter((x) => x.severity === "BLOCK");
|
|
25
|
+
const top = blocks[0];
|
|
26
|
+
return blockMessage(args.run_id, top, blocks, args.changeMapPath, args.changeMap);
|
|
27
|
+
}
|
|
28
|
+
// FIX
|
|
29
|
+
const fixes = v.filter((x) => x.severity === "FIX");
|
|
30
|
+
const top = fixes[0];
|
|
31
|
+
return fixMessage(args.run_id, top, fixes, args.changeMapPath, args.changeMap);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* FIX 메시지 생성
|
|
35
|
+
*/
|
|
36
|
+
function fixMessage(runId, top, all, changeMapPath, cm) {
|
|
37
|
+
const unmapped = cm.unmapped.map((x) => x.file);
|
|
38
|
+
const amb = all
|
|
39
|
+
.filter((x) => x.code === "OWNER_AMBIGUOUS")
|
|
40
|
+
.map((x) => x.file);
|
|
41
|
+
return {
|
|
42
|
+
verdict: "FIX",
|
|
43
|
+
title: `MAPPING_FIX_REQUIRED: ${top.code}`,
|
|
44
|
+
summary: `소속(Owner/Domain/Layer) 매핑이 불완전합니다: unmapped=${unmapped.length}, ambiguous=${amb.length}`,
|
|
45
|
+
evidence: {
|
|
46
|
+
run_id: runId,
|
|
47
|
+
change_map_path: changeMapPath,
|
|
48
|
+
unmapped_files: unmapped,
|
|
49
|
+
ambiguous_files: amb,
|
|
50
|
+
violations: all.slice(0, 10),
|
|
51
|
+
summary: cm.summary,
|
|
52
|
+
},
|
|
53
|
+
navigation: [
|
|
54
|
+
"1) spec_map의 owners 중 하나로 수렴하도록 파일 경로/모듈 위치를 조정",
|
|
55
|
+
"2) suggested_owners가 있는 unmapped 파일은 제안 도메인으로 이동 또는 기존 모듈로 통합",
|
|
56
|
+
"3) WORK_ORDER 경계(allow/deny/예외)가 맞는지 확인",
|
|
57
|
+
],
|
|
58
|
+
next_actions: [
|
|
59
|
+
"Run: vibe_pm.status",
|
|
60
|
+
"If needed: vibe_pm.create_work_order",
|
|
61
|
+
"Re-run: vibe_pm.ingress (to regenerate change_map)",
|
|
62
|
+
],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* BLOCK 메시지 생성
|
|
67
|
+
*/
|
|
68
|
+
function blockMessage(runId, top, all, changeMapPath, cm) {
|
|
69
|
+
return {
|
|
70
|
+
verdict: "BLOCK",
|
|
71
|
+
title: `MAPPING_BLOCKED: ${top.code}`,
|
|
72
|
+
summary: `실행 계약 위반으로 변경이 차단되었습니다: ${top.code}`,
|
|
73
|
+
evidence: {
|
|
74
|
+
run_id: runId,
|
|
75
|
+
change_map_path: changeMapPath,
|
|
76
|
+
top_violation: top,
|
|
77
|
+
violations: all.slice(0, 10),
|
|
78
|
+
summary: cm.summary,
|
|
79
|
+
},
|
|
80
|
+
navigation: [
|
|
81
|
+
"1) 금지 경로/경계 위반 파일을 허용 영역으로 이동하거나 기존 owner 영역으로 통합",
|
|
82
|
+
"2) 금지 import(경계 침범)는 adapter/port 패턴으로 우회하지 말고 구조적으로 분리",
|
|
83
|
+
"3) 정말 필요하면 WORK_ORDER에 예외(EX-###) 추가 + 근거 작성 후 재시도",
|
|
84
|
+
],
|
|
85
|
+
next_actions: [
|
|
86
|
+
"Run: vibe_pm.status",
|
|
87
|
+
"Then: follow status.next_action",
|
|
88
|
+
"Re-run: vibe (CI)",
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* violation 목록에서 심각도별 카운트
|
|
94
|
+
*/
|
|
95
|
+
export function countViolations(violations) {
|
|
96
|
+
return {
|
|
97
|
+
block: violations.filter((v) => v.severity === "BLOCK").length,
|
|
98
|
+
fix: violations.filter((v) => v.severity === "FIX").length,
|
|
99
|
+
total: violations.length,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ImportHint } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* TypeScript/JavaScript 파일에서 import 힌트 추출
|
|
4
|
+
*/
|
|
5
|
+
export declare function scanImportHints(workspaceRoot: string, files: string[]): ImportHint[];
|
|
6
|
+
/**
|
|
7
|
+
* import 경로를 절대 경로로 해석 (alias 미지원, 간단 버전)
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveImportPath(fromFile: string, importTarget: string, workspaceRoot: string): string | null;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// release/mvp_core_clinic/src/mcp/tools/vibe_pm/mapping/import_scan.ts
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
|
+
const IMPORT_RE = /^\s*import\s+.*\s+from\s+["'](.+)["'];?/gm;
|
|
5
|
+
const REQUIRE_RE = /require\s*\(\s*["'](.+)["']\s*\)/g;
|
|
6
|
+
/**
|
|
7
|
+
* TypeScript/JavaScript 파일에서 import 힌트 추출
|
|
8
|
+
*/
|
|
9
|
+
export function scanImportHints(workspaceRoot, files) {
|
|
10
|
+
const out = [];
|
|
11
|
+
for (const f of files) {
|
|
12
|
+
const abs = path.join(workspaceRoot, f);
|
|
13
|
+
if (!fs.existsSync(abs))
|
|
14
|
+
continue;
|
|
15
|
+
// TypeScript/JavaScript 파일만 처리
|
|
16
|
+
const ext = path.extname(abs).toLowerCase();
|
|
17
|
+
if (![".ts", ".tsx", ".js", ".jsx", ".mts", ".mjs"].includes(ext)) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
const raw = fs.readFileSync(abs, "utf-8");
|
|
22
|
+
const imports = [];
|
|
23
|
+
// ES import 추출
|
|
24
|
+
let m;
|
|
25
|
+
IMPORT_RE.lastIndex = 0;
|
|
26
|
+
while ((m = IMPORT_RE.exec(raw)) !== null) {
|
|
27
|
+
imports.push(m[1]);
|
|
28
|
+
}
|
|
29
|
+
// CommonJS require 추출
|
|
30
|
+
REQUIRE_RE.lastIndex = 0;
|
|
31
|
+
while ((m = REQUIRE_RE.exec(raw)) !== null) {
|
|
32
|
+
imports.push(m[1]);
|
|
33
|
+
}
|
|
34
|
+
out.push({ file: f, imports });
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
// 파일 읽기 실패 시 스킵
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* import 경로를 절대 경로로 해석 (alias 미지원, 간단 버전)
|
|
45
|
+
*/
|
|
46
|
+
export function resolveImportPath(fromFile, importTarget, workspaceRoot) {
|
|
47
|
+
// 상대 경로인 경우
|
|
48
|
+
if (importTarget.startsWith(".")) {
|
|
49
|
+
const dir = path.dirname(path.join(workspaceRoot, fromFile));
|
|
50
|
+
const resolved = path.resolve(dir, importTarget);
|
|
51
|
+
const rel = path.relative(workspaceRoot, resolved);
|
|
52
|
+
return rel.startsWith("..") ? null : rel;
|
|
53
|
+
}
|
|
54
|
+
// 패키지 또는 alias는 그대로 반환 (alias 해석은 복잡하므로 스킵)
|
|
55
|
+
return importTarget;
|
|
56
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { Verdict, LayerId, ViolationCode, Violation, SpecOwner, SpecMap, ChangedFile, ImportHint, ChangeMapMapped, ChangeMapUnmapped, ChangeMap, SkeletonMapPatch, GateDecision, } from "./types.js";
|
|
2
|
+
export { loadSpecMap, pathMatches, keywordScore, importHintScore } from "./spec_map.js";
|
|
3
|
+
export { scanChangedFiles, scanStagedFiles, scanChangedFilesAsync, scanStagedFilesAsync, scanChangedFilesSmart, scanStagedFilesSmart, } from "./diff_scan.js";
|
|
4
|
+
export { scanImportHints, resolveImportPath } from "./import_scan.js";
|
|
5
|
+
export { buildChangeMap } from "./change_map.js";
|
|
6
|
+
export { buildSkeletonMapPatch, mergeSkeletonMapPatch } from "./skeleton_patch.js";
|
|
7
|
+
export { judgeMappingGate, countViolations } from "./gate_judge.js";
|
|
8
|
+
export { runMappingPipeline, runMappingPipelineAsync, runMappingPipelineSmart, hasSpecMap, hasChangeMap, loadChangeMap, type MappingPipelineResult, type MappingPipelineOptions, } from "./orchestrator.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// release/mvp_core_clinic/src/mcp/tools/vibe_pm/mapping/index.ts
|
|
2
|
+
// Core functions
|
|
3
|
+
export { loadSpecMap, pathMatches, keywordScore, importHintScore } from "./spec_map.js";
|
|
4
|
+
export { scanChangedFiles, scanStagedFiles, scanChangedFilesAsync, scanStagedFilesAsync, scanChangedFilesSmart, scanStagedFilesSmart, } from "./diff_scan.js";
|
|
5
|
+
export { scanImportHints, resolveImportPath } from "./import_scan.js";
|
|
6
|
+
export { buildChangeMap } from "./change_map.js";
|
|
7
|
+
export { buildSkeletonMapPatch, mergeSkeletonMapPatch } from "./skeleton_patch.js";
|
|
8
|
+
export { judgeMappingGate, countViolations } from "./gate_judge.js";
|
|
9
|
+
// Orchestrator
|
|
10
|
+
export { runMappingPipeline, runMappingPipelineAsync, runMappingPipelineSmart, hasSpecMap, hasChangeMap, loadChangeMap, } from "./orchestrator.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GateDecision, ChangeMap, SkeletonMapPatch } from "./types.js";
|
|
2
|
+
export type MappingPipelineResult = {
|
|
3
|
+
decision: GateDecision;
|
|
4
|
+
changeMap: ChangeMap;
|
|
5
|
+
skeletonPatch: SkeletonMapPatch;
|
|
6
|
+
changeMapPath: string;
|
|
7
|
+
skeletonPatchPath: string;
|
|
8
|
+
};
|
|
9
|
+
export type MappingPipelineOptions = {
|
|
10
|
+
workspaceRoot: string;
|
|
11
|
+
run_id: string;
|
|
12
|
+
baseRef?: string;
|
|
13
|
+
headRef?: string;
|
|
14
|
+
useStaged?: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 매핑 파이프라인 실행 (동기 버전)
|
|
18
|
+
* @deprecated Use runMappingPipelineAsync or runMappingPipelineSmart instead.
|
|
19
|
+
* Sync operations block the event loop.
|
|
20
|
+
*/
|
|
21
|
+
export declare function runMappingPipeline(options: MappingPipelineOptions): MappingPipelineResult;
|
|
22
|
+
/**
|
|
23
|
+
* spec_map 존재 여부 확인
|
|
24
|
+
*/
|
|
25
|
+
export declare function hasSpecMap(workspaceRoot: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* change_map 존재 여부 확인
|
|
28
|
+
*/
|
|
29
|
+
export declare function hasChangeMap(workspaceRoot: string, run_id: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* change_map 로드
|
|
32
|
+
*/
|
|
33
|
+
export declare function loadChangeMap(workspaceRoot: string, run_id: string): ChangeMap | null;
|
|
34
|
+
/**
|
|
35
|
+
* Async mapping pipeline - uses async git operations and file I/O
|
|
36
|
+
*/
|
|
37
|
+
export declare function runMappingPipelineAsync(options: MappingPipelineOptions): Promise<MappingPipelineResult>;
|
|
38
|
+
/**
|
|
39
|
+
* Smart mapping pipeline - uses worker if available, otherwise async local
|
|
40
|
+
*/
|
|
41
|
+
export declare function runMappingPipelineSmart(options: MappingPipelineOptions): Promise<MappingPipelineResult>;
|