@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,377 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* db_sync/writer.ts
|
|
3
|
+
*
|
|
4
|
+
* PostgreSQL Secondary Truth Layer - DB Writers
|
|
5
|
+
*
|
|
6
|
+
* @description
|
|
7
|
+
* ssot/rm 테이블에 대한 idempotent upsert 함수들.
|
|
8
|
+
* 모든 upsert는 반복 실행해도 결과가 동일합니다.
|
|
9
|
+
*
|
|
10
|
+
* @see docs/DEV_SPEC/active/postgresql-secondary-truth/CONTRACT.md
|
|
11
|
+
*/
|
|
12
|
+
// =============================================================================
|
|
13
|
+
// ssot.run
|
|
14
|
+
// =============================================================================
|
|
15
|
+
/**
|
|
16
|
+
* ssot.run upsert
|
|
17
|
+
*
|
|
18
|
+
* @param client DB client
|
|
19
|
+
* @param run run 데이터
|
|
20
|
+
*
|
|
21
|
+
* @description
|
|
22
|
+
* idempotent: 같은 (rail, workspace_id, run_id)로 여러 번 호출해도 1행만 존재
|
|
23
|
+
*/
|
|
24
|
+
export async function upsertRun(client, run) {
|
|
25
|
+
await client.query(`
|
|
26
|
+
INSERT INTO ssot.run (
|
|
27
|
+
rail, workspace_id, run_id,
|
|
28
|
+
branch, commit_sha,
|
|
29
|
+
run_dir, ingress_dir, mapping_dir, ci_dir,
|
|
30
|
+
snapshot_hash,
|
|
31
|
+
created_at, updated_at
|
|
32
|
+
) VALUES (
|
|
33
|
+
$1, $2, $3,
|
|
34
|
+
$4, $5,
|
|
35
|
+
$6, $7, $8, $9,
|
|
36
|
+
$10,
|
|
37
|
+
COALESCE($11, NOW()), NOW()
|
|
38
|
+
)
|
|
39
|
+
ON CONFLICT (rail, workspace_id, run_id)
|
|
40
|
+
DO UPDATE SET
|
|
41
|
+
branch = EXCLUDED.branch,
|
|
42
|
+
commit_sha = EXCLUDED.commit_sha,
|
|
43
|
+
run_dir = EXCLUDED.run_dir,
|
|
44
|
+
ingress_dir = EXCLUDED.ingress_dir,
|
|
45
|
+
mapping_dir = EXCLUDED.mapping_dir,
|
|
46
|
+
ci_dir = EXCLUDED.ci_dir,
|
|
47
|
+
snapshot_hash = EXCLUDED.snapshot_hash,
|
|
48
|
+
updated_at = NOW()
|
|
49
|
+
`, [
|
|
50
|
+
run.rail,
|
|
51
|
+
run.workspace_id,
|
|
52
|
+
run.run_id,
|
|
53
|
+
run.branch ?? null,
|
|
54
|
+
run.commit_sha ?? null,
|
|
55
|
+
run.run_dir,
|
|
56
|
+
run.ingress_dir ?? null,
|
|
57
|
+
run.mapping_dir ?? null,
|
|
58
|
+
run.ci_dir ?? null,
|
|
59
|
+
run.snapshot_hash,
|
|
60
|
+
run.created_at ?? null,
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
// =============================================================================
|
|
64
|
+
// ssot.file_index
|
|
65
|
+
// =============================================================================
|
|
66
|
+
/**
|
|
67
|
+
* ssot.file_index upsert (단일 파일)
|
|
68
|
+
*
|
|
69
|
+
* @param client DB client
|
|
70
|
+
* @param file 파일 인덱스 데이터
|
|
71
|
+
*/
|
|
72
|
+
export async function upsertFileIndex(client, file) {
|
|
73
|
+
await client.query(`
|
|
74
|
+
INSERT INTO ssot.file_index (
|
|
75
|
+
rail, workspace_id, run_id,
|
|
76
|
+
logical_path, content_sha, bytes, mtime,
|
|
77
|
+
content_type, tags, json_cache
|
|
78
|
+
) VALUES (
|
|
79
|
+
$1, $2, $3,
|
|
80
|
+
$4, $5, $6, $7,
|
|
81
|
+
$8, $9, $10
|
|
82
|
+
)
|
|
83
|
+
ON CONFLICT (rail, workspace_id, run_id, logical_path)
|
|
84
|
+
DO UPDATE SET
|
|
85
|
+
content_sha = EXCLUDED.content_sha,
|
|
86
|
+
bytes = EXCLUDED.bytes,
|
|
87
|
+
mtime = EXCLUDED.mtime,
|
|
88
|
+
content_type = EXCLUDED.content_type,
|
|
89
|
+
tags = EXCLUDED.tags,
|
|
90
|
+
json_cache = EXCLUDED.json_cache
|
|
91
|
+
`, [
|
|
92
|
+
file.rail,
|
|
93
|
+
file.workspace_id,
|
|
94
|
+
file.run_id,
|
|
95
|
+
file.logical_path,
|
|
96
|
+
file.content_sha,
|
|
97
|
+
file.bytes,
|
|
98
|
+
file.mtime ?? null,
|
|
99
|
+
file.content_type ?? null,
|
|
100
|
+
file.tags,
|
|
101
|
+
file.json_cache ?? null,
|
|
102
|
+
]);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* ssot.file_index batch upsert (여러 파일)
|
|
106
|
+
*
|
|
107
|
+
* @param client DB client
|
|
108
|
+
* @param files 파일 인덱스 배열
|
|
109
|
+
*
|
|
110
|
+
* @description
|
|
111
|
+
* 대량 파일에 대해 단일 트랜잭션으로 처리
|
|
112
|
+
*/
|
|
113
|
+
export async function upsertFileIndexBatch(client, files) {
|
|
114
|
+
if (files.length === 0)
|
|
115
|
+
return;
|
|
116
|
+
// 배치 크기 제한 (PostgreSQL 파라미터 수 제한)
|
|
117
|
+
const BATCH_SIZE = 100;
|
|
118
|
+
for (let i = 0; i < files.length; i += BATCH_SIZE) {
|
|
119
|
+
const batch = files.slice(i, i + BATCH_SIZE);
|
|
120
|
+
await upsertFileIndexBatchInner(client, batch);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 내부 배치 upsert (100개 이하)
|
|
125
|
+
*/
|
|
126
|
+
async function upsertFileIndexBatchInner(client, files) {
|
|
127
|
+
if (files.length === 0)
|
|
128
|
+
return;
|
|
129
|
+
// VALUES 절 생성
|
|
130
|
+
const values = [];
|
|
131
|
+
const placeholders = [];
|
|
132
|
+
files.forEach((file, idx) => {
|
|
133
|
+
const offset = idx * 10;
|
|
134
|
+
placeholders.push(`($${offset + 1}, $${offset + 2}, $${offset + 3}, $${offset + 4}, $${offset + 5}, $${offset + 6}, $${offset + 7}, $${offset + 8}, $${offset + 9}, $${offset + 10})`);
|
|
135
|
+
values.push(file.rail, file.workspace_id, file.run_id, file.logical_path, file.content_sha, file.bytes, file.mtime ?? null, file.content_type ?? null, file.tags, file.json_cache ?? null);
|
|
136
|
+
});
|
|
137
|
+
await client.query(`
|
|
138
|
+
INSERT INTO ssot.file_index (
|
|
139
|
+
rail, workspace_id, run_id,
|
|
140
|
+
logical_path, content_sha, bytes, mtime,
|
|
141
|
+
content_type, tags, json_cache
|
|
142
|
+
) VALUES ${placeholders.join(", ")}
|
|
143
|
+
ON CONFLICT (rail, workspace_id, run_id, logical_path)
|
|
144
|
+
DO UPDATE SET
|
|
145
|
+
content_sha = EXCLUDED.content_sha,
|
|
146
|
+
bytes = EXCLUDED.bytes,
|
|
147
|
+
mtime = EXCLUDED.mtime,
|
|
148
|
+
content_type = EXCLUDED.content_type,
|
|
149
|
+
tags = EXCLUDED.tags,
|
|
150
|
+
json_cache = EXCLUDED.json_cache
|
|
151
|
+
`, values);
|
|
152
|
+
}
|
|
153
|
+
// =============================================================================
|
|
154
|
+
// ssot.event
|
|
155
|
+
// =============================================================================
|
|
156
|
+
/**
|
|
157
|
+
* ssot.event insert
|
|
158
|
+
*
|
|
159
|
+
* @param client DB client
|
|
160
|
+
* @param event 이벤트 데이터
|
|
161
|
+
* @returns event_id
|
|
162
|
+
*
|
|
163
|
+
* @description
|
|
164
|
+
* 이벤트는 append-only (upsert가 아닌 insert)
|
|
165
|
+
*/
|
|
166
|
+
export async function insertEvent(client, event) {
|
|
167
|
+
const result = await client.query(`
|
|
168
|
+
INSERT INTO ssot.event (
|
|
169
|
+
rail, workspace_id, run_id,
|
|
170
|
+
ts, kind, actor, severity, payload
|
|
171
|
+
) VALUES (
|
|
172
|
+
$1, $2, $3,
|
|
173
|
+
COALESCE($4, NOW()), $5, $6, COALESCE($7, 'info'), $8
|
|
174
|
+
)
|
|
175
|
+
RETURNING event_id
|
|
176
|
+
`, [
|
|
177
|
+
event.rail,
|
|
178
|
+
event.workspace_id,
|
|
179
|
+
event.run_id,
|
|
180
|
+
event.ts ?? null,
|
|
181
|
+
event.kind,
|
|
182
|
+
event.actor,
|
|
183
|
+
event.severity ?? "info",
|
|
184
|
+
event.payload,
|
|
185
|
+
]);
|
|
186
|
+
return BigInt(result.rows[0].event_id);
|
|
187
|
+
}
|
|
188
|
+
// =============================================================================
|
|
189
|
+
// ssot.gate_verdict
|
|
190
|
+
// =============================================================================
|
|
191
|
+
/**
|
|
192
|
+
* ssot.gate_verdict upsert
|
|
193
|
+
*
|
|
194
|
+
* @param client DB client
|
|
195
|
+
* @param verdict verdict 데이터
|
|
196
|
+
*/
|
|
197
|
+
export async function upsertGateVerdict(client, verdict) {
|
|
198
|
+
await client.query(`
|
|
199
|
+
INSERT INTO ssot.gate_verdict (
|
|
200
|
+
rail, workspace_id, run_id,
|
|
201
|
+
verdict, reason, evidence_path, updated_at
|
|
202
|
+
) VALUES (
|
|
203
|
+
$1, $2, $3,
|
|
204
|
+
$4, $5, $6, NOW()
|
|
205
|
+
)
|
|
206
|
+
ON CONFLICT (rail, workspace_id, run_id)
|
|
207
|
+
DO UPDATE SET
|
|
208
|
+
verdict = EXCLUDED.verdict,
|
|
209
|
+
reason = EXCLUDED.reason,
|
|
210
|
+
evidence_path = EXCLUDED.evidence_path,
|
|
211
|
+
updated_at = NOW()
|
|
212
|
+
`, [
|
|
213
|
+
verdict.rail,
|
|
214
|
+
verdict.workspace_id,
|
|
215
|
+
verdict.run_id,
|
|
216
|
+
verdict.verdict,
|
|
217
|
+
verdict.reason ?? null,
|
|
218
|
+
verdict.evidence_path ?? null,
|
|
219
|
+
]);
|
|
220
|
+
}
|
|
221
|
+
// =============================================================================
|
|
222
|
+
// rm.run_card
|
|
223
|
+
// =============================================================================
|
|
224
|
+
/**
|
|
225
|
+
* rm.run_card upsert
|
|
226
|
+
*
|
|
227
|
+
* @param client DB client
|
|
228
|
+
* @param card run card 데이터
|
|
229
|
+
*/
|
|
230
|
+
export async function upsertRunCard(client, card) {
|
|
231
|
+
await client.query(`
|
|
232
|
+
INSERT INTO rm.run_card (
|
|
233
|
+
rail, workspace_id, run_id,
|
|
234
|
+
created_at, last_event_at, verdict, risk_score,
|
|
235
|
+
changed_files, changed_lines, top_risks, next_actions
|
|
236
|
+
) VALUES (
|
|
237
|
+
$1, $2, $3,
|
|
238
|
+
$4, $5, $6, $7,
|
|
239
|
+
$8, $9, $10, $11
|
|
240
|
+
)
|
|
241
|
+
ON CONFLICT (rail, workspace_id, run_id)
|
|
242
|
+
DO UPDATE SET
|
|
243
|
+
last_event_at = EXCLUDED.last_event_at,
|
|
244
|
+
verdict = EXCLUDED.verdict,
|
|
245
|
+
risk_score = EXCLUDED.risk_score,
|
|
246
|
+
changed_files = EXCLUDED.changed_files,
|
|
247
|
+
changed_lines = EXCLUDED.changed_lines,
|
|
248
|
+
top_risks = EXCLUDED.top_risks,
|
|
249
|
+
next_actions = EXCLUDED.next_actions
|
|
250
|
+
`, [
|
|
251
|
+
card.rail,
|
|
252
|
+
card.workspace_id,
|
|
253
|
+
card.run_id,
|
|
254
|
+
card.created_at,
|
|
255
|
+
card.last_event_at ?? null,
|
|
256
|
+
card.verdict ?? null,
|
|
257
|
+
card.risk_score ?? null,
|
|
258
|
+
card.changed_files ?? null,
|
|
259
|
+
card.changed_lines ?? null,
|
|
260
|
+
card.top_risks ?? null,
|
|
261
|
+
card.next_actions ?? null,
|
|
262
|
+
]);
|
|
263
|
+
}
|
|
264
|
+
// =============================================================================
|
|
265
|
+
// rm.artifact
|
|
266
|
+
// =============================================================================
|
|
267
|
+
/**
|
|
268
|
+
* rm.artifact upsert
|
|
269
|
+
*
|
|
270
|
+
* @param client DB client
|
|
271
|
+
* @param artifact artifact 데이터
|
|
272
|
+
*/
|
|
273
|
+
export async function upsertArtifact(client, artifact) {
|
|
274
|
+
await client.query(`
|
|
275
|
+
INSERT INTO rm.artifact (
|
|
276
|
+
rail, workspace_id, run_id,
|
|
277
|
+
kind, logical_path, content_sha, summary
|
|
278
|
+
) VALUES (
|
|
279
|
+
$1, $2, $3,
|
|
280
|
+
$4, $5, $6, $7
|
|
281
|
+
)
|
|
282
|
+
ON CONFLICT (rail, workspace_id, run_id, kind, logical_path)
|
|
283
|
+
DO UPDATE SET
|
|
284
|
+
content_sha = EXCLUDED.content_sha,
|
|
285
|
+
summary = EXCLUDED.summary
|
|
286
|
+
`, [
|
|
287
|
+
artifact.rail,
|
|
288
|
+
artifact.workspace_id,
|
|
289
|
+
artifact.run_id,
|
|
290
|
+
artifact.kind,
|
|
291
|
+
artifact.logical_path,
|
|
292
|
+
artifact.content_sha,
|
|
293
|
+
artifact.summary ?? null,
|
|
294
|
+
]);
|
|
295
|
+
}
|
|
296
|
+
// =============================================================================
|
|
297
|
+
// pub.public_run (MCP 서버 전용)
|
|
298
|
+
// =============================================================================
|
|
299
|
+
/**
|
|
300
|
+
* pub.public_run upsert
|
|
301
|
+
*
|
|
302
|
+
* @param client DB client
|
|
303
|
+
* @param publicRun public run 데이터
|
|
304
|
+
*
|
|
305
|
+
* @description
|
|
306
|
+
* MCP 서버에서만 사용. pub.sync_public_run() 함수 직접 호출 권장.
|
|
307
|
+
*/
|
|
308
|
+
export async function upsertPublicRun(client, publicRun) {
|
|
309
|
+
await client.query(`
|
|
310
|
+
INSERT INTO pub.public_run (
|
|
311
|
+
workspace_id, run_id, owner_org, is_public,
|
|
312
|
+
created_at, verdict, risk_score, summary
|
|
313
|
+
) VALUES (
|
|
314
|
+
$1, $2, $3, $4,
|
|
315
|
+
COALESCE($5, NOW()), $6, $7, $8
|
|
316
|
+
)
|
|
317
|
+
ON CONFLICT (workspace_id, run_id)
|
|
318
|
+
DO UPDATE SET
|
|
319
|
+
is_public = EXCLUDED.is_public,
|
|
320
|
+
verdict = EXCLUDED.verdict,
|
|
321
|
+
risk_score = EXCLUDED.risk_score,
|
|
322
|
+
summary = EXCLUDED.summary
|
|
323
|
+
`, [
|
|
324
|
+
publicRun.workspace_id,
|
|
325
|
+
publicRun.run_id,
|
|
326
|
+
publicRun.owner_org,
|
|
327
|
+
publicRun.is_public,
|
|
328
|
+
publicRun.created_at ?? null,
|
|
329
|
+
publicRun.verdict ?? null,
|
|
330
|
+
publicRun.risk_score ?? null,
|
|
331
|
+
publicRun.summary ?? null,
|
|
332
|
+
]);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* pub.sync_public_run 함수 호출
|
|
336
|
+
*
|
|
337
|
+
* @param client DB client
|
|
338
|
+
* @param workspaceId workspace_id
|
|
339
|
+
* @param runId run_id
|
|
340
|
+
* @param ownerOrg 테넌트 키
|
|
341
|
+
* @param isPublic 공개 여부
|
|
342
|
+
*/
|
|
343
|
+
export async function syncPublicRun(client, workspaceId, runId, ownerOrg, isPublic) {
|
|
344
|
+
await client.query(`SELECT pub.sync_public_run($1, $2, $3, $4)`, [workspaceId, runId, ownerOrg, isPublic]);
|
|
345
|
+
}
|
|
346
|
+
// =============================================================================
|
|
347
|
+
// Delete Operations (Clean-up)
|
|
348
|
+
// =============================================================================
|
|
349
|
+
/**
|
|
350
|
+
* run 삭제 (cascade로 관련 데이터 모두 삭제)
|
|
351
|
+
*
|
|
352
|
+
* @param client DB client
|
|
353
|
+
* @param rail 레일
|
|
354
|
+
* @param workspaceId workspace_id
|
|
355
|
+
* @param runId run_id
|
|
356
|
+
*/
|
|
357
|
+
export async function deleteRun(client, rail, workspaceId, runId) {
|
|
358
|
+
await client.query(`DELETE FROM ssot.run WHERE rail = $1 AND workspace_id = $2 AND run_id = $3`, [rail, workspaceId, runId]);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* 특정 workspace의 오래된 run 정리
|
|
362
|
+
*
|
|
363
|
+
* @param client DB client
|
|
364
|
+
* @param rail 레일
|
|
365
|
+
* @param workspaceId workspace_id
|
|
366
|
+
* @param keepDays 유지할 일수
|
|
367
|
+
* @returns 삭제된 run 수
|
|
368
|
+
*/
|
|
369
|
+
export async function cleanupOldRuns(client, rail, workspaceId, keepDays) {
|
|
370
|
+
const result = await client.query(`
|
|
371
|
+
DELETE FROM ssot.run
|
|
372
|
+
WHERE rail = $1
|
|
373
|
+
AND workspace_id = $2
|
|
374
|
+
AND created_at < NOW() - INTERVAL '1 day' * $3
|
|
375
|
+
`, [rail, workspaceId, keepDays]);
|
|
376
|
+
return result.rowCount ?? 0;
|
|
377
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decision Log Reader
|
|
3
|
+
*
|
|
4
|
+
* decision_log.v1.jsonl 파일에서 Decision 엔트리를 읽는 유틸리티.
|
|
5
|
+
* FAIL-SAFE: 파일이 없거나 파싱 에러 시 빈 배열 반환.
|
|
6
|
+
*/
|
|
7
|
+
import type { DecisionLogEntry } from "./reviewer-ux-types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Decision Log에서 특정 run_id의 엔트리 조회
|
|
10
|
+
*
|
|
11
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
12
|
+
* @param runId - 조회할 run_id
|
|
13
|
+
* @returns Decision 엔트리 배열 (없으면 빈 배열)
|
|
14
|
+
*/
|
|
15
|
+
export declare function readDecisionLog(workspaceRoot: string, runId: string): DecisionLogEntry[];
|
|
16
|
+
/**
|
|
17
|
+
* Decision Log 전체 조회 (최근 N개)
|
|
18
|
+
*
|
|
19
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
20
|
+
* @param limit - 최대 반환 개수 (기본 100)
|
|
21
|
+
* @returns Decision 엔트리 배열 (최신순)
|
|
22
|
+
*/
|
|
23
|
+
export declare function readRecentDecisions(workspaceRoot: string, limit?: number): DecisionLogEntry[];
|
|
24
|
+
/**
|
|
25
|
+
* Decision evidence 존재 여부 확인
|
|
26
|
+
*
|
|
27
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
28
|
+
* @param runId - 확인할 run_id
|
|
29
|
+
* @returns true면 해당 run_id에 대한 decision이 존재
|
|
30
|
+
*/
|
|
31
|
+
export declare function hasDecisionEvidence(workspaceRoot: string, runId: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Decision Log 파일 경로 조회
|
|
34
|
+
*
|
|
35
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
36
|
+
* @returns 존재하는 decision log 파일 경로 (없으면 null)
|
|
37
|
+
*/
|
|
38
|
+
export declare function findDecisionLogPath(workspaceRoot: string): string | null;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decision Log Reader
|
|
3
|
+
*
|
|
4
|
+
* decision_log.v1.jsonl 파일에서 Decision 엔트리를 읽는 유틸리티.
|
|
5
|
+
* FAIL-SAFE: 파일이 없거나 파싱 에러 시 빈 배열 반환.
|
|
6
|
+
*/
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
|
+
import * as path from "node:path";
|
|
9
|
+
const DECISION_LOG_FILENAME = "decision_log.v1.jsonl";
|
|
10
|
+
/**
|
|
11
|
+
* Decision Log 후보 경로 목록
|
|
12
|
+
*/
|
|
13
|
+
function getDecisionLogPaths(workspaceRoot) {
|
|
14
|
+
return [
|
|
15
|
+
path.join(workspaceRoot, ".vibe", DECISION_LOG_FILENAME),
|
|
16
|
+
path.join(workspaceRoot, "docs", "decisions", DECISION_LOG_FILENAME),
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Decision Log에서 특정 run_id의 엔트리 조회
|
|
21
|
+
*
|
|
22
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
23
|
+
* @param runId - 조회할 run_id
|
|
24
|
+
* @returns Decision 엔트리 배열 (없으면 빈 배열)
|
|
25
|
+
*/
|
|
26
|
+
export function readDecisionLog(workspaceRoot, runId) {
|
|
27
|
+
const candidates = getDecisionLogPaths(workspaceRoot);
|
|
28
|
+
for (const logPath of candidates) {
|
|
29
|
+
if (!fs.existsSync(logPath))
|
|
30
|
+
continue;
|
|
31
|
+
try {
|
|
32
|
+
const entries = [];
|
|
33
|
+
const content = fs.readFileSync(logPath, "utf-8");
|
|
34
|
+
for (const line of content.split("\n")) {
|
|
35
|
+
if (!line.trim())
|
|
36
|
+
continue;
|
|
37
|
+
try {
|
|
38
|
+
const entry = JSON.parse(line);
|
|
39
|
+
if (entry.run_id === runId) {
|
|
40
|
+
entries.push(entry);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
catch {
|
|
44
|
+
// Skip malformed lines
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return entries;
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
// File read error, try next candidate
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Decision Log 전체 조회 (최근 N개)
|
|
57
|
+
*
|
|
58
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
59
|
+
* @param limit - 최대 반환 개수 (기본 100)
|
|
60
|
+
* @returns Decision 엔트리 배열 (최신순)
|
|
61
|
+
*/
|
|
62
|
+
export function readRecentDecisions(workspaceRoot, limit = 100) {
|
|
63
|
+
const candidates = getDecisionLogPaths(workspaceRoot);
|
|
64
|
+
for (const logPath of candidates) {
|
|
65
|
+
if (!fs.existsSync(logPath))
|
|
66
|
+
continue;
|
|
67
|
+
try {
|
|
68
|
+
const entries = [];
|
|
69
|
+
const content = fs.readFileSync(logPath, "utf-8");
|
|
70
|
+
for (const line of content.split("\n")) {
|
|
71
|
+
if (!line.trim())
|
|
72
|
+
continue;
|
|
73
|
+
try {
|
|
74
|
+
const entry = JSON.parse(line);
|
|
75
|
+
entries.push(entry);
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
// Skip malformed lines
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
// 최신순 정렬 후 limit 적용
|
|
82
|
+
return entries
|
|
83
|
+
.sort((a, b) => b.ts.localeCompare(a.ts))
|
|
84
|
+
.slice(0, limit);
|
|
85
|
+
}
|
|
86
|
+
catch {
|
|
87
|
+
// File read error, try next candidate
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Decision evidence 존재 여부 확인
|
|
94
|
+
*
|
|
95
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
96
|
+
* @param runId - 확인할 run_id
|
|
97
|
+
* @returns true면 해당 run_id에 대한 decision이 존재
|
|
98
|
+
*/
|
|
99
|
+
export function hasDecisionEvidence(workspaceRoot, runId) {
|
|
100
|
+
return readDecisionLog(workspaceRoot, runId).length > 0;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Decision Log 파일 경로 조회
|
|
104
|
+
*
|
|
105
|
+
* @param workspaceRoot - 프로젝트 루트 경로
|
|
106
|
+
* @returns 존재하는 decision log 파일 경로 (없으면 null)
|
|
107
|
+
*/
|
|
108
|
+
export function findDecisionLogPath(workspaceRoot) {
|
|
109
|
+
const candidates = getDecisionLogPaths(workspaceRoot);
|
|
110
|
+
for (const logPath of candidates) {
|
|
111
|
+
if (fs.existsSync(logPath)) {
|
|
112
|
+
return logPath;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep Link Utilities
|
|
3
|
+
*
|
|
4
|
+
* IDE 연동을 위한 Deep Link 생성 및 터미널 하이퍼링크 출력
|
|
5
|
+
*
|
|
6
|
+
* 지원:
|
|
7
|
+
* - VS Code (vscode://file/...)
|
|
8
|
+
* - JetBrains (jetbrains://...)
|
|
9
|
+
* - OSC 8 터미널 하이퍼링크
|
|
10
|
+
*/
|
|
11
|
+
import type { ViolationType } from "./correction-messages.js";
|
|
12
|
+
export interface ViolationLink {
|
|
13
|
+
/** 위반 유형 */
|
|
14
|
+
type: ViolationType;
|
|
15
|
+
/** 심각도 */
|
|
16
|
+
severity: "BLOCK" | "FIX" | "WARN";
|
|
17
|
+
/** 표시 제목 */
|
|
18
|
+
title: string;
|
|
19
|
+
/** 파일 경로 */
|
|
20
|
+
path: string;
|
|
21
|
+
/** 라인 번호 */
|
|
22
|
+
line?: number;
|
|
23
|
+
/** 컬럼 번호 */
|
|
24
|
+
column?: number;
|
|
25
|
+
/** Deep Link URL */
|
|
26
|
+
deepLink: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* VS Code Deep Link 생성
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* createVscodeLink('/project/src/auth/config.ts', 42, 10)
|
|
33
|
+
* // => 'vscode://file//project/src/auth/config.ts:42:10'
|
|
34
|
+
*/
|
|
35
|
+
export declare function createVscodeLink(filePath: string, line?: number, column?: number): string;
|
|
36
|
+
/**
|
|
37
|
+
* JetBrains IDE Deep Link 생성
|
|
38
|
+
* IntelliJ IDEA, WebStorm, PyCharm 등 지원
|
|
39
|
+
*/
|
|
40
|
+
export declare function createJetBrainsLink(filePath: string, line?: number, column?: number): string;
|
|
41
|
+
/**
|
|
42
|
+
* OSC 8 터미널 하이퍼링크 렌더링
|
|
43
|
+
*
|
|
44
|
+
* 클릭 가능한 링크를 터미널에 출력합니다.
|
|
45
|
+
* 지원 터미널: iTerm2, Windows Terminal, GNOME Terminal, Kitty, etc.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* renderTerminalLink('Click here', 'https://example.com')
|
|
49
|
+
* // 터미널에서 'Click here'를 클릭하면 URL 열림
|
|
50
|
+
*/
|
|
51
|
+
export declare function renderTerminalLink(text: string, url: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* 링크 없이 일반 텍스트로 반환 (비지원 터미널용)
|
|
54
|
+
*/
|
|
55
|
+
export declare function renderPlainLink(text: string, url: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* 터미널이 OSC 8을 지원하는지 확인
|
|
58
|
+
* 환경 변수 기반 추론
|
|
59
|
+
*/
|
|
60
|
+
export declare function supportsOsc8(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* 위반 사항 목록을 터미널에 클릭 가능한 링크로 출력
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* renderViolationLinks(violations, '/project')
|
|
66
|
+
* // 터미널 출력:
|
|
67
|
+
* // 위반 구역 긴급 출동 (Click to Open):
|
|
68
|
+
* // - 금지 구역 수정 시도: src/auth/config.ts (클릭)
|
|
69
|
+
*/
|
|
70
|
+
export declare function renderViolationLinks(violations: Array<{
|
|
71
|
+
type: ViolationType;
|
|
72
|
+
severity: "BLOCK" | "FIX" | "WARN";
|
|
73
|
+
title: string;
|
|
74
|
+
path: string;
|
|
75
|
+
line?: number;
|
|
76
|
+
column?: number;
|
|
77
|
+
}>, projectRoot: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* 위반 사항을 ViolationLink 객체 배열로 변환
|
|
80
|
+
*/
|
|
81
|
+
export declare function buildViolationLinks(violations: Array<{
|
|
82
|
+
type: ViolationType;
|
|
83
|
+
severity: "BLOCK" | "FIX" | "WARN";
|
|
84
|
+
title: string;
|
|
85
|
+
path: string;
|
|
86
|
+
line?: number;
|
|
87
|
+
column?: number;
|
|
88
|
+
}>, projectRoot: string): ViolationLink[];
|
|
89
|
+
/**
|
|
90
|
+
* 검수 결과 요약 링크 생성
|
|
91
|
+
* Evidence Report 파일로 바로 이동
|
|
92
|
+
*/
|
|
93
|
+
export declare function createReportLink(reportPath: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* 요약 메시지 출력 (검수 완료 후)
|
|
96
|
+
*/
|
|
97
|
+
export declare function renderSummaryWithLink(verdict: "GO" | "FIX" | "BLOCK", reportPath: string, violationCount: number): void;
|