@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,378 @@
|
|
|
1
|
+
// adapters/mcp-ts/src/security/sandbox.ts
|
|
2
|
+
// Optional container sandbox for production environments
|
|
3
|
+
//
|
|
4
|
+
// Note: This is an optional security layer. The primary security
|
|
5
|
+
// is provided by input validation and path policy.
|
|
6
|
+
//
|
|
7
|
+
// v2.0: Migrated from Docker to Podman with CIDFILE pattern
|
|
8
|
+
// - Fixes container kill logic bug (was killing CLI process, not container)
|
|
9
|
+
// - Uses --cidfile for reliable container lifecycle management
|
|
10
|
+
// - Podman is daemonless and rootless by default (better security)
|
|
11
|
+
import { spawn, spawnSync } from "node:child_process";
|
|
12
|
+
import { randomUUID } from "node:crypto";
|
|
13
|
+
import { existsSync, unlinkSync, readFileSync, mkdirSync } from "node:fs";
|
|
14
|
+
import { tmpdir } from "node:os";
|
|
15
|
+
import { join } from "node:path";
|
|
16
|
+
/**
|
|
17
|
+
* Default sandbox configuration (no sandboxing)
|
|
18
|
+
*/
|
|
19
|
+
export const DEFAULT_SANDBOX_CONFIG = {
|
|
20
|
+
mode: "none",
|
|
21
|
+
allowedPaths: [],
|
|
22
|
+
networkAccess: false,
|
|
23
|
+
memoryLimitMb: 512,
|
|
24
|
+
cpuLimit: 1,
|
|
25
|
+
timeoutMs: 120_000,
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if Podman is available on the system (recommended)
|
|
29
|
+
*/
|
|
30
|
+
export async function isPodmanAvailable() {
|
|
31
|
+
return new Promise((resolve) => {
|
|
32
|
+
const proc = spawn("podman", ["version"], {
|
|
33
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
34
|
+
});
|
|
35
|
+
proc.on("error", () => resolve(false));
|
|
36
|
+
proc.on("close", (code) => resolve(code === 0));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if Docker is available on the system
|
|
41
|
+
* @deprecated Use isPodmanAvailable instead - Docker has container kill bugs
|
|
42
|
+
*/
|
|
43
|
+
export async function isDockerAvailable() {
|
|
44
|
+
return new Promise((resolve) => {
|
|
45
|
+
const proc = spawn("docker", ["version"], {
|
|
46
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
47
|
+
});
|
|
48
|
+
proc.on("error", () => resolve(false));
|
|
49
|
+
proc.on("close", (code) => resolve(code === 0));
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if firejail is available on the system
|
|
54
|
+
*/
|
|
55
|
+
export async function isFirejailAvailable() {
|
|
56
|
+
return new Promise((resolve) => {
|
|
57
|
+
const proc = spawn("firejail", ["--version"], {
|
|
58
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
59
|
+
});
|
|
60
|
+
proc.on("error", () => resolve(false));
|
|
61
|
+
proc.on("close", (code) => resolve(code === 0));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Run command in sandbox environment
|
|
66
|
+
*
|
|
67
|
+
* @param cmd - Command to execute
|
|
68
|
+
* @param args - Command arguments
|
|
69
|
+
* @param config - Sandbox configuration
|
|
70
|
+
* @returns Execution result
|
|
71
|
+
*/
|
|
72
|
+
export async function runInSandbox(cmd, args, config = DEFAULT_SANDBOX_CONFIG) {
|
|
73
|
+
switch (config.mode) {
|
|
74
|
+
case "podman":
|
|
75
|
+
return runInPodman(cmd, args, config);
|
|
76
|
+
case "docker":
|
|
77
|
+
// Deprecated: Docker has container kill bugs, prefer Podman
|
|
78
|
+
console.warn("[SANDBOX] Docker mode is deprecated. Migrate to Podman for reliable container lifecycle.");
|
|
79
|
+
return runInDocker(cmd, args, config);
|
|
80
|
+
case "firejail":
|
|
81
|
+
return runInFirejail(cmd, args, config);
|
|
82
|
+
case "none":
|
|
83
|
+
default:
|
|
84
|
+
return runDirect(cmd, args, config);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Run command directly (no sandboxing)
|
|
89
|
+
*/
|
|
90
|
+
async function runDirect(cmd, args, config) {
|
|
91
|
+
return new Promise((resolve) => {
|
|
92
|
+
const proc = spawn(cmd, args, {
|
|
93
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
94
|
+
});
|
|
95
|
+
let stdout = "";
|
|
96
|
+
let stderr = "";
|
|
97
|
+
const timeout = setTimeout(() => {
|
|
98
|
+
try {
|
|
99
|
+
proc.kill("SIGKILL");
|
|
100
|
+
}
|
|
101
|
+
catch { }
|
|
102
|
+
resolve({ code: 124, stdout, stderr: stderr + "\n[SANDBOX TIMEOUT]" });
|
|
103
|
+
}, config.timeoutMs);
|
|
104
|
+
proc.stdout.on("data", (data) => {
|
|
105
|
+
stdout += data.toString();
|
|
106
|
+
});
|
|
107
|
+
proc.stderr.on("data", (data) => {
|
|
108
|
+
stderr += data.toString();
|
|
109
|
+
});
|
|
110
|
+
proc.on("close", (code) => {
|
|
111
|
+
clearTimeout(timeout);
|
|
112
|
+
resolve({ code: code ?? 1, stdout, stderr });
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Get or create CIDFILE directory for container ID files
|
|
118
|
+
*/
|
|
119
|
+
function getCidfileDir() {
|
|
120
|
+
const cidDir = join(tmpdir(), "vibe-sandbox-cid");
|
|
121
|
+
if (!existsSync(cidDir)) {
|
|
122
|
+
mkdirSync(cidDir, { recursive: true });
|
|
123
|
+
}
|
|
124
|
+
return cidDir;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Clean up container using CIDFILE
|
|
128
|
+
* Graceful stop first, then force kill if needed
|
|
129
|
+
*/
|
|
130
|
+
function cleanupContainerByCidfile(cidfile, runtime) {
|
|
131
|
+
if (!existsSync(cidfile))
|
|
132
|
+
return;
|
|
133
|
+
try {
|
|
134
|
+
const containerId = readFileSync(cidfile, "utf-8").trim();
|
|
135
|
+
if (!containerId)
|
|
136
|
+
return;
|
|
137
|
+
// Graceful stop (5s timeout)
|
|
138
|
+
spawnSync(runtime, ["stop", "-t", "5", containerId], {
|
|
139
|
+
stdio: "ignore",
|
|
140
|
+
timeout: 10_000,
|
|
141
|
+
});
|
|
142
|
+
// Force remove (cleanup)
|
|
143
|
+
spawnSync(runtime, ["rm", "-f", containerId], {
|
|
144
|
+
stdio: "ignore",
|
|
145
|
+
timeout: 5_000,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
catch {
|
|
149
|
+
// Best effort cleanup
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
// Always remove cidfile
|
|
153
|
+
try {
|
|
154
|
+
unlinkSync(cidfile);
|
|
155
|
+
}
|
|
156
|
+
catch { }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Run command in Podman sandbox (RECOMMENDED)
|
|
161
|
+
*
|
|
162
|
+
* Uses CIDFILE pattern for reliable container lifecycle management:
|
|
163
|
+
* - --cidfile writes container ID to file on start
|
|
164
|
+
* - On timeout/cleanup, we read cidfile and stop the exact container
|
|
165
|
+
* - No more zombie containers from killing CLI process PID
|
|
166
|
+
*
|
|
167
|
+
* Requirements:
|
|
168
|
+
* - Podman must be installed
|
|
169
|
+
* - vibecode/sandbox:latest image must exist
|
|
170
|
+
*/
|
|
171
|
+
async function runInPodman(cmd, args, config) {
|
|
172
|
+
const runId = randomUUID().slice(0, 8);
|
|
173
|
+
const cidfile = join(getCidfileDir(), `vibe-sbx-${runId}.cid`);
|
|
174
|
+
const podmanArgs = [
|
|
175
|
+
"run",
|
|
176
|
+
"--rm",
|
|
177
|
+
// CIDFILE pattern - critical for proper cleanup
|
|
178
|
+
"--cidfile", cidfile,
|
|
179
|
+
"--name", `vibe-sbx-${runId}`,
|
|
180
|
+
// Network isolation
|
|
181
|
+
"--network", config.networkAccess ? "bridge" : "none",
|
|
182
|
+
// Resource limits
|
|
183
|
+
"--memory", `${config.memoryLimitMb}m`,
|
|
184
|
+
"--cpus", String(config.cpuLimit),
|
|
185
|
+
// Security options (Podman is rootless by default)
|
|
186
|
+
"--security-opt", "no-new-privileges:true",
|
|
187
|
+
"--cap-drop", "ALL",
|
|
188
|
+
// Read-only root filesystem
|
|
189
|
+
"--read-only",
|
|
190
|
+
];
|
|
191
|
+
// Mount allowed paths as read-only volumes
|
|
192
|
+
for (const allowedPath of config.allowedPaths) {
|
|
193
|
+
podmanArgs.push("-v", `${allowedPath}:${allowedPath}:ro`);
|
|
194
|
+
}
|
|
195
|
+
// Add tmpfs for /tmp if needed
|
|
196
|
+
podmanArgs.push("--tmpfs", "/tmp:rw,noexec,nosuid,size=100m");
|
|
197
|
+
// Image and command
|
|
198
|
+
podmanArgs.push("vibecode/sandbox:latest", cmd, ...args);
|
|
199
|
+
return new Promise((resolve) => {
|
|
200
|
+
const proc = spawn("podman", podmanArgs, {
|
|
201
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
202
|
+
});
|
|
203
|
+
let stdout = "";
|
|
204
|
+
let stderr = "";
|
|
205
|
+
let resolved = false;
|
|
206
|
+
const cleanup = () => {
|
|
207
|
+
if (!resolved) {
|
|
208
|
+
resolved = true;
|
|
209
|
+
// Always cleanup container via CIDFILE (not proc.pid!)
|
|
210
|
+
cleanupContainerByCidfile(cidfile, "podman");
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const timeout = setTimeout(() => {
|
|
214
|
+
cleanup();
|
|
215
|
+
try {
|
|
216
|
+
proc.kill("SIGKILL"); // Kill CLI process after container cleanup
|
|
217
|
+
}
|
|
218
|
+
catch { }
|
|
219
|
+
resolve({ code: 124, stdout, stderr: stderr + "\n[PODMAN TIMEOUT]" });
|
|
220
|
+
}, config.timeoutMs);
|
|
221
|
+
proc.stdout.on("data", (data) => {
|
|
222
|
+
stdout += data.toString();
|
|
223
|
+
});
|
|
224
|
+
proc.stderr.on("data", (data) => {
|
|
225
|
+
stderr += data.toString();
|
|
226
|
+
});
|
|
227
|
+
proc.on("error", (err) => {
|
|
228
|
+
clearTimeout(timeout);
|
|
229
|
+
cleanup();
|
|
230
|
+
resolve({ code: 127, stdout, stderr: stderr + `\n[SPAWN_ERROR] ${err.message}` });
|
|
231
|
+
});
|
|
232
|
+
proc.on("close", (code) => {
|
|
233
|
+
clearTimeout(timeout);
|
|
234
|
+
cleanup();
|
|
235
|
+
resolve({ code: code ?? 1, stdout, stderr });
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Run command in Docker sandbox
|
|
241
|
+
* @deprecated Use runInPodman instead - Docker kill logic has bugs
|
|
242
|
+
*
|
|
243
|
+
* Requirements:
|
|
244
|
+
* - Docker must be installed and running
|
|
245
|
+
* - vibecode/sandbox:latest image must exist
|
|
246
|
+
*/
|
|
247
|
+
async function runInDocker(cmd, args, config) {
|
|
248
|
+
const dockerArgs = [
|
|
249
|
+
"run",
|
|
250
|
+
"--rm",
|
|
251
|
+
// Network isolation
|
|
252
|
+
"--network",
|
|
253
|
+
config.networkAccess ? "bridge" : "none",
|
|
254
|
+
// Resource limits
|
|
255
|
+
"--memory",
|
|
256
|
+
`${config.memoryLimitMb}m`,
|
|
257
|
+
"--cpus",
|
|
258
|
+
String(config.cpuLimit),
|
|
259
|
+
// Security options
|
|
260
|
+
"--security-opt",
|
|
261
|
+
"no-new-privileges:true",
|
|
262
|
+
"--cap-drop",
|
|
263
|
+
"ALL",
|
|
264
|
+
// Read-only root filesystem
|
|
265
|
+
"--read-only",
|
|
266
|
+
];
|
|
267
|
+
// Mount allowed paths as read-only volumes
|
|
268
|
+
for (const allowedPath of config.allowedPaths) {
|
|
269
|
+
dockerArgs.push("-v", `${allowedPath}:${allowedPath}:ro`);
|
|
270
|
+
}
|
|
271
|
+
// Add tmpfs for /tmp if needed
|
|
272
|
+
dockerArgs.push("--tmpfs", "/tmp:rw,noexec,nosuid,size=100m");
|
|
273
|
+
// Image and command
|
|
274
|
+
dockerArgs.push("vibecode/sandbox:latest", cmd, ...args);
|
|
275
|
+
return new Promise((resolve) => {
|
|
276
|
+
const proc = spawn("docker", dockerArgs, {
|
|
277
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
278
|
+
});
|
|
279
|
+
let stdout = "";
|
|
280
|
+
let stderr = "";
|
|
281
|
+
const timeout = setTimeout(() => {
|
|
282
|
+
try {
|
|
283
|
+
// Kill the docker container
|
|
284
|
+
spawn("docker", ["kill", proc.pid?.toString() ?? ""], {
|
|
285
|
+
stdio: "ignore",
|
|
286
|
+
});
|
|
287
|
+
proc.kill("SIGKILL");
|
|
288
|
+
}
|
|
289
|
+
catch { }
|
|
290
|
+
resolve({ code: 124, stdout, stderr: stderr + "\n[DOCKER TIMEOUT]" });
|
|
291
|
+
}, config.timeoutMs);
|
|
292
|
+
proc.stdout.on("data", (data) => {
|
|
293
|
+
stdout += data.toString();
|
|
294
|
+
});
|
|
295
|
+
proc.stderr.on("data", (data) => {
|
|
296
|
+
stderr += data.toString();
|
|
297
|
+
});
|
|
298
|
+
proc.on("close", (code) => {
|
|
299
|
+
clearTimeout(timeout);
|
|
300
|
+
resolve({ code: code ?? 1, stdout, stderr });
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Run command in firejail sandbox (Linux only)
|
|
306
|
+
*
|
|
307
|
+
* Requirements:
|
|
308
|
+
* - firejail must be installed
|
|
309
|
+
*/
|
|
310
|
+
async function runInFirejail(cmd, args, config) {
|
|
311
|
+
const firejailArgs = [
|
|
312
|
+
// Disable network if not allowed
|
|
313
|
+
...(config.networkAccess ? [] : ["--net=none"]),
|
|
314
|
+
// Resource limits
|
|
315
|
+
"--rlimit-as=" + config.memoryLimitMb * 1024 * 1024,
|
|
316
|
+
// Security options
|
|
317
|
+
"--caps.drop=all",
|
|
318
|
+
"--nonewprivs",
|
|
319
|
+
"--seccomp",
|
|
320
|
+
// No X11
|
|
321
|
+
"--x11=none",
|
|
322
|
+
// Read-only paths
|
|
323
|
+
"--read-only=/",
|
|
324
|
+
];
|
|
325
|
+
// Whitelist allowed paths
|
|
326
|
+
for (const allowedPath of config.allowedPaths) {
|
|
327
|
+
firejailArgs.push(`--whitelist=${allowedPath}`);
|
|
328
|
+
}
|
|
329
|
+
// Allow /tmp for temporary files
|
|
330
|
+
firejailArgs.push("--private-tmp");
|
|
331
|
+
// Command to run
|
|
332
|
+
firejailArgs.push("--", cmd, ...args);
|
|
333
|
+
return new Promise((resolve) => {
|
|
334
|
+
const proc = spawn("firejail", firejailArgs, {
|
|
335
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
336
|
+
});
|
|
337
|
+
let stdout = "";
|
|
338
|
+
let stderr = "";
|
|
339
|
+
const timeout = setTimeout(() => {
|
|
340
|
+
try {
|
|
341
|
+
proc.kill("SIGKILL");
|
|
342
|
+
}
|
|
343
|
+
catch { }
|
|
344
|
+
resolve({ code: 124, stdout, stderr: stderr + "\n[FIREJAIL TIMEOUT]" });
|
|
345
|
+
}, config.timeoutMs);
|
|
346
|
+
proc.stdout.on("data", (data) => {
|
|
347
|
+
stdout += data.toString();
|
|
348
|
+
});
|
|
349
|
+
proc.stderr.on("data", (data) => {
|
|
350
|
+
stderr += data.toString();
|
|
351
|
+
});
|
|
352
|
+
proc.on("close", (code) => {
|
|
353
|
+
clearTimeout(timeout);
|
|
354
|
+
resolve({ code: code ?? 1, stdout, stderr });
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Create sandbox configuration from environment
|
|
360
|
+
*/
|
|
361
|
+
export function getSandboxConfigFromEnv() {
|
|
362
|
+
const mode = (process.env.VIBECODE_SANDBOX_MODE ?? "none");
|
|
363
|
+
const networkAccess = process.env.VIBECODE_SANDBOX_NETWORK === "true";
|
|
364
|
+
const memoryLimitMb = parseInt(process.env.VIBECODE_SANDBOX_MEMORY ?? "512", 10);
|
|
365
|
+
const cpuLimit = parseFloat(process.env.VIBECODE_SANDBOX_CPU ?? "1");
|
|
366
|
+
const timeoutMs = parseInt(process.env.VIBECODE_SANDBOX_TIMEOUT ?? "120000", 10);
|
|
367
|
+
const allowedPaths = (process.env.VIBECODE_SANDBOX_PATHS ?? "")
|
|
368
|
+
.split(":")
|
|
369
|
+
.filter((p) => p.length > 0);
|
|
370
|
+
return {
|
|
371
|
+
mode,
|
|
372
|
+
allowedPaths,
|
|
373
|
+
networkAccess,
|
|
374
|
+
memoryLimitMb,
|
|
375
|
+
cpuLimit,
|
|
376
|
+
timeoutMs,
|
|
377
|
+
};
|
|
378
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Registry SSOT:
|
|
3
|
+
* - "등록된 것만이 진실"을 유지하면서
|
|
4
|
+
* - server.tool()에 전달되는 schema 형태(.shape)가 SDK 변경에 취약하므로
|
|
5
|
+
* 테스트로 회귀 잠금하기 위해 registry를 함수로 추출한다.
|
|
6
|
+
*
|
|
7
|
+
* Profile Integration (v1.1.0):
|
|
8
|
+
* - VIBE_PROFILE 환경변수로 도구 필터링 가능
|
|
9
|
+
* - 기본값: "all" (모든 도구 로드)
|
|
10
|
+
* - 예: VIBE_PROFILE=mvp → 8개 핵심 도구만 로드
|
|
11
|
+
*
|
|
12
|
+
* Lazy Import (v1.2.0):
|
|
13
|
+
* - Profile 기반으로 필요한 모듈만 dynamic import
|
|
14
|
+
* - BitNet 도구가 비활성화된 profile에서는 해당 모듈 로드 스킵
|
|
15
|
+
*/
|
|
16
|
+
export type ToolSchemaArg = unknown;
|
|
17
|
+
export type ToolRegistration = {
|
|
18
|
+
name: string;
|
|
19
|
+
desc: string;
|
|
20
|
+
schemaArg: ToolSchemaArg;
|
|
21
|
+
};
|
|
22
|
+
export type ToolRegistrySpy = {
|
|
23
|
+
tool: (name: string, desc: string, schemaArg: ToolSchemaArg, handler: unknown) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare function registerAllTools(server: ToolRegistrySpy): Promise<void>;
|
|
26
|
+
export declare function captureRegistrySnapshot(): Promise<ToolRegistration[]>;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Registry SSOT:
|
|
3
|
+
* - "등록된 것만이 진실"을 유지하면서
|
|
4
|
+
* - server.tool()에 전달되는 schema 형태(.shape)가 SDK 변경에 취약하므로
|
|
5
|
+
* 테스트로 회귀 잠금하기 위해 registry를 함수로 추출한다.
|
|
6
|
+
*
|
|
7
|
+
* Profile Integration (v1.1.0):
|
|
8
|
+
* - VIBE_PROFILE 환경변수로 도구 필터링 가능
|
|
9
|
+
* - 기본값: "all" (모든 도구 로드)
|
|
10
|
+
* - 예: VIBE_PROFILE=mvp → 8개 핵심 도구만 로드
|
|
11
|
+
*
|
|
12
|
+
* Lazy Import (v1.2.0):
|
|
13
|
+
* - Profile 기반으로 필요한 모듈만 dynamic import
|
|
14
|
+
* - BitNet 도구가 비활성화된 profile에서는 해당 모듈 로드 스킵
|
|
15
|
+
*/
|
|
16
|
+
import { LEGACY_ALIAS_MAPPING, getLegacyDescription } from "./legacy_alias.js";
|
|
17
|
+
import { isToolEnabled, getCurrentProfile, getProfileStats } from "./profile-config.js";
|
|
18
|
+
/**
|
|
19
|
+
* Register tool only if enabled by current profile
|
|
20
|
+
* @returns true if tool was registered, false if skipped
|
|
21
|
+
*/
|
|
22
|
+
function registerIfEnabled(server, name, desc, schemaArg, handler) {
|
|
23
|
+
if (!isToolEnabled(name)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
server.tool(name, desc, schemaArg, handler);
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if any BitNet tool is enabled in current profile
|
|
31
|
+
*/
|
|
32
|
+
function isBitNetEnabled() {
|
|
33
|
+
return (isToolEnabled("bitnet.check") ||
|
|
34
|
+
isToolEnabled("bitnet.trace") ||
|
|
35
|
+
isToolEnabled("bitnet.signal"));
|
|
36
|
+
}
|
|
37
|
+
export async function registerAllTools(server) {
|
|
38
|
+
const profile = getCurrentProfile();
|
|
39
|
+
// Lazy import: always load vibe_pm (core tools)
|
|
40
|
+
const { defineVibePmTools, VIBE_PM_TOOL_DESCRIPTIONS } = await import("./tools/vibe_pm/index.js");
|
|
41
|
+
const pm = defineVibePmTools();
|
|
42
|
+
// Lazy import: load BitNet only if any bitnet tool is enabled
|
|
43
|
+
let bitnet = null;
|
|
44
|
+
let BITNET_TOOL_DESCRIPTIONS = {};
|
|
45
|
+
if (isBitNetEnabled()) {
|
|
46
|
+
const bitnetModule = await import("./tools/bitnet/index.js");
|
|
47
|
+
bitnet = bitnetModule.defineBitNetToolsV2();
|
|
48
|
+
BITNET_TOOL_DESCRIPTIONS = bitnetModule.BITNET_TOOL_DESCRIPTIONS;
|
|
49
|
+
}
|
|
50
|
+
let registeredCount = 0;
|
|
51
|
+
// ============================================================
|
|
52
|
+
// vibe_pm tools (filtered by profile)
|
|
53
|
+
// ============================================================
|
|
54
|
+
if (registerIfEnabled(server, "vibe_pm.status", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.status"], pm.statusInputSchema.shape, async (input) => pm.vibePmStatus(pm.statusInputSchema.parse(input))))
|
|
55
|
+
registeredCount++;
|
|
56
|
+
if (registerIfEnabled(server, "vibe_pm.briefing", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.briefing"], pm.briefingInputSchema.shape, async (input) => pm.vibePmBriefing(pm.briefingInputSchema.parse(input))))
|
|
57
|
+
registeredCount++;
|
|
58
|
+
if (registerIfEnabled(server, "vibe_pm.get_decision", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.get_decision"], pm.getDecisionInputSchema.shape, async (input) => pm.vibePmGetDecision(pm.getDecisionInputSchema.parse(input))))
|
|
59
|
+
registeredCount++;
|
|
60
|
+
if (registerIfEnabled(server, "vibe_pm.submit_decision", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.submit_decision"], pm.submitDecisionInputSchema.shape, async (input) => pm.vibePmSubmitDecision(pm.submitDecisionInputSchema.parse(input))))
|
|
61
|
+
registeredCount++;
|
|
62
|
+
if (registerIfEnabled(server, "vibe_pm.create_work_order", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.create_work_order"], pm.createWorkOrderInputSchema.shape, async (input) => pm.vibePmCreateWorkOrder(pm.createWorkOrderInputSchema.parse(input))))
|
|
63
|
+
registeredCount++;
|
|
64
|
+
if (registerIfEnabled(server, "vibe_pm.inspect_code", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.inspect_code"], pm.inspectCodeInputSchema.shape, async (input) => pm.vibePmInspectCode(pm.inspectCodeInputSchema.parse(input))))
|
|
65
|
+
registeredCount++;
|
|
66
|
+
if (registerIfEnabled(server, "vibe_pm.doctor", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.doctor"], pm.doctorInputSchema.shape, async (input) => pm.vibePmDoctor(pm.doctorInputSchema.parse(input))))
|
|
67
|
+
registeredCount++;
|
|
68
|
+
if (registerIfEnabled(server, "vibe_pm.ingress", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.ingress"], pm.ingressInputSchema.shape, async (input) => pm.vibePmIngress(pm.ingressInputSchema.parse(input))))
|
|
69
|
+
registeredCount++;
|
|
70
|
+
if (registerIfEnabled(server, "vibe_pm.memory_status", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.memory_status"], pm.memoryStatusInputSchema.shape, async (input) => pm.vibePmMemoryStatus(pm.memoryStatusInputSchema.parse(input))))
|
|
71
|
+
registeredCount++;
|
|
72
|
+
if (registerIfEnabled(server, "vibe_pm.memory_sync", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.memory_sync"], pm.memorySyncInputSchema.shape, async (input) => pm.vibePmMemorySync(pm.memorySyncInputSchema.parse(input))))
|
|
73
|
+
registeredCount++;
|
|
74
|
+
if (registerIfEnabled(server, "vibe_pm.memory_retrieve", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.memory_retrieve"], pm.memoryRetrieveInputSchema.shape, async (input) => pm.vibePmMemoryRetrieve(pm.memoryRetrieveInputSchema.parse(input))))
|
|
75
|
+
registeredCount++;
|
|
76
|
+
// Consolidated memory tool (Tier 3 - preferred over individual memory_* tools)
|
|
77
|
+
if (registerIfEnabled(server, "vibe_pm.memory", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.memory"], pm.memoryInputSchema.shape, async (input) => pm.vibePmMemory(pm.memoryInputSchema.parse(input))))
|
|
78
|
+
registeredCount++;
|
|
79
|
+
if (registerIfEnabled(server, "vibe_pm.init_docs", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.init_docs"], pm.initDocsInputSchema.shape, async (input) => pm.vibePmInitDocs(pm.initDocsInputSchema.parse(input))))
|
|
80
|
+
registeredCount++;
|
|
81
|
+
// XT Apps UI Tools (P2)
|
|
82
|
+
if (registerIfEnabled(server, "vibe_pm.ui_manifest", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.ui_manifest"], pm.uiManifestInputSchema.shape, async (input) => pm.vibePmUIManifest(pm.uiManifestInputSchema.parse(input))))
|
|
83
|
+
registeredCount++;
|
|
84
|
+
if (registerIfEnabled(server, "vibe_pm.ui_resource", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.ui_resource"], pm.uiResourceInputSchema.shape, async (input) => pm.vibePmUIResource(pm.uiResourceInputSchema.parse(input))))
|
|
85
|
+
registeredCount++;
|
|
86
|
+
// Scaffold tool
|
|
87
|
+
if (registerIfEnabled(server, "vibe_pm.scaffold", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.scaffold"], pm.scaffoldInputSchema.shape, async (input) => pm.vibePmScaffold(pm.scaffoldInputSchema.parse(input))))
|
|
88
|
+
registeredCount++;
|
|
89
|
+
// Setup tool (one-click MCP configuration)
|
|
90
|
+
if (registerIfEnabled(server, "vibe_pm.setup", VIBE_PM_TOOL_DESCRIPTIONS["vibe_pm.setup"], pm.setupInputSchema.shape, async (input) => pm.vibePmSetup(pm.setupInputSchema.parse(input))))
|
|
91
|
+
registeredCount++;
|
|
92
|
+
// ============================================================
|
|
93
|
+
// Legacy Alias (하위 호환) - always loaded for backwards compat
|
|
94
|
+
// ============================================================
|
|
95
|
+
const LEGACY_HANDLER_MAP = {
|
|
96
|
+
"vibe_pm.inspect_code": { schema: pm.inspectCodeInputSchema, handler: pm.vibePmInspectCode },
|
|
97
|
+
"vibe_pm.get_decision": { schema: pm.getDecisionInputSchema, handler: pm.vibePmGetDecision },
|
|
98
|
+
"vibe_pm.submit_decision": { schema: pm.submitDecisionInputSchema, handler: pm.vibePmSubmitDecision },
|
|
99
|
+
"vibe_pm.status": { schema: pm.statusInputSchema, handler: pm.vibePmStatus },
|
|
100
|
+
"vibe_pm.create_work_order": { schema: pm.createWorkOrderInputSchema, handler: pm.vibePmCreateWorkOrder },
|
|
101
|
+
};
|
|
102
|
+
let legacyCount = 0;
|
|
103
|
+
for (const [legacyName, newName] of Object.entries(LEGACY_ALIAS_MAPPING)) {
|
|
104
|
+
const target = LEGACY_HANDLER_MAP[newName];
|
|
105
|
+
if (target) {
|
|
106
|
+
server.tool(legacyName, getLegacyDescription(legacyName, newName), target.schema.shape, async (input) => target.handler(target.schema.parse(input)));
|
|
107
|
+
legacyCount++;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// ============================================================
|
|
111
|
+
// BitNet tools (lazy loaded, filtered by profile)
|
|
112
|
+
// ============================================================
|
|
113
|
+
let bitnetCount = 0;
|
|
114
|
+
// Only register BitNet tools if module was loaded
|
|
115
|
+
if (bitnet) {
|
|
116
|
+
if (registerIfEnabled(server, "bitnet.check", BITNET_TOOL_DESCRIPTIONS["bitnet.check"], bitnet.bitnetCheckInputSchema.shape, async (input) => bitnet.bitnetCheckHandler(bitnet.bitnetCheckInputSchema.parse(input))))
|
|
117
|
+
bitnetCount++;
|
|
118
|
+
if (registerIfEnabled(server, "bitnet.trace", BITNET_TOOL_DESCRIPTIONS["bitnet.trace"], bitnet.bitnetTraceInputSchema.shape, async (input) => bitnet.bitnetTraceHandler(bitnet.bitnetTraceInputSchema.parse(input))))
|
|
119
|
+
bitnetCount++;
|
|
120
|
+
if (registerIfEnabled(server, "bitnet.signal", BITNET_TOOL_DESCRIPTIONS["bitnet.signal"], bitnet.bitnetSignalInputSchema.shape, async (input) => bitnet.bitnetSignalHandler(bitnet.bitnetSignalInputSchema.parse(input))))
|
|
121
|
+
bitnetCount++;
|
|
122
|
+
}
|
|
123
|
+
// Log profile info
|
|
124
|
+
const stats = getProfileStats(profile);
|
|
125
|
+
console.error(`[vibe-pm] Profile: ${profile}, Tools: ${registeredCount} vibe_pm + ${legacyCount} legacy + ${bitnetCount} bitnet = ${registeredCount + legacyCount + bitnetCount} total`);
|
|
126
|
+
}
|
|
127
|
+
export async function captureRegistrySnapshot() {
|
|
128
|
+
const regs = [];
|
|
129
|
+
const spy = {
|
|
130
|
+
tool(name, desc, schemaArg, _handler) {
|
|
131
|
+
regs.push({ name, desc, schemaArg });
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
await registerAllTools(spy);
|
|
135
|
+
return regs;
|
|
136
|
+
}
|