@vibecodetown/mcp-server 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1590) hide show
  1. package/CONTRIBUTING.md +0 -0
  2. package/LICENSE +21 -0
  3. package/README.md +0 -0
  4. package/THIRD_PARTY_NOTICES.md +106 -0
  5. package/bin/SHA256SUMS +9 -0
  6. package/bin/clinic_win_x64/clinic.exe +0 -0
  7. package/bin/spec-high_linux_x64/spec-high +0 -0
  8. package/bin/spec-high_win_x64/spec-high.exe +0 -0
  9. package/bin/vibecoding-helper_win_x64/vibecoding-helper.exe +0 -0
  10. package/bin/vpm-back_win_x64/vpm-back.exe +0 -0
  11. package/build/background-sync-worker.d.ts +1 -2
  12. package/build/background-sync-worker.js +0 -0
  13. package/build/bin/vibe-auth.d.ts +0 -0
  14. package/build/bin/vibe-auth.js +0 -0
  15. package/build/bin/vibe-bitnet-worker.d.ts +0 -0
  16. package/build/bin/vibe-bitnet-worker.js +5 -4
  17. package/build/bin/vibe-ci.d.ts +2 -10
  18. package/build/bin/vibe-ci.js +6 -1552
  19. package/build/bin/vibe-companion.d.ts +15 -0
  20. package/build/bin/vibe-companion.js +134 -0
  21. package/build/bin/vibe-dashboard.d.ts +0 -0
  22. package/build/bin/vibe-dashboard.js +11 -11
  23. package/build/bin/vibe-mapper-worker.d.ts +0 -0
  24. package/build/bin/vibe-mapper-worker.js +37 -15
  25. package/build/bitnet-worker/autostart.d.ts +0 -0
  26. package/build/bitnet-worker/autostart.js +4 -3
  27. package/build/bitnet-worker/client.d.ts +0 -0
  28. package/build/bitnet-worker/client.js +3 -2
  29. package/build/bitnet-worker/cpu_brake.d.ts +0 -0
  30. package/build/bitnet-worker/cpu_brake.js +4 -3
  31. package/build/bitnet-worker/embed_client.d.ts +0 -0
  32. package/build/bitnet-worker/embed_client.js +0 -0
  33. package/build/bitnet-worker/hw_slots.d.ts +0 -0
  34. package/build/bitnet-worker/hw_slots.js +3 -2
  35. package/build/bitnet-worker/index.d.ts +1 -1
  36. package/build/bitnet-worker/index.js +1 -1
  37. package/build/bitnet-worker/metrics.d.ts +0 -0
  38. package/build/bitnet-worker/metrics.js +0 -0
  39. package/build/bitnet-worker/native_inference.d.ts +1 -1
  40. package/build/bitnet-worker/native_inference.js +49 -43
  41. package/build/bitnet-worker/pool-autostart.d.ts +0 -0
  42. package/build/bitnet-worker/pool-autostart.js +5 -4
  43. package/build/bitnet-worker/request_cache.d.ts +0 -0
  44. package/build/bitnet-worker/request_cache.js +0 -0
  45. package/build/bitnet-worker/serial_queue.d.ts +0 -0
  46. package/build/bitnet-worker/serial_queue.js +0 -0
  47. package/build/bitnet-worker/server-autostart.d.ts +1 -1
  48. package/build/bitnet-worker/server-autostart.js +9 -9
  49. package/build/bitnet-worker/server.d.ts +4 -4
  50. package/build/bitnet-worker/server.js +131 -115
  51. package/build/bitnet-worker/server_manager.d.ts +28 -54
  52. package/build/bitnet-worker/server_manager.js +107 -238
  53. package/build/bitnet-worker/tiered_queue.d.ts +0 -0
  54. package/build/bitnet-worker/tiered_queue.js +3 -2
  55. package/build/bitnet-worker/types.d.ts +0 -0
  56. package/build/bitnet-worker/types.js +0 -0
  57. package/build/ci/args.d.ts +16 -0
  58. package/build/ci/args.js +103 -0
  59. package/build/ci/clinic_result.d.ts +22 -0
  60. package/build/ci/clinic_result.js +197 -0
  61. package/build/ci/cloud_sync.d.ts +2 -0
  62. package/build/ci/cloud_sync.js +29 -0
  63. package/build/ci/engine.d.ts +10 -0
  64. package/build/ci/engine.js +63 -0
  65. package/build/ci/file_changes.d.ts +10 -0
  66. package/build/ci/file_changes.js +127 -0
  67. package/build/ci/pipeline.d.ts +22 -0
  68. package/build/ci/pipeline.js +662 -0
  69. package/build/ci/pipeline_types.d.ts +134 -0
  70. package/build/ci/pipeline_types.js +5 -0
  71. package/build/ci/pipeline_violations.d.ts +44 -0
  72. package/build/ci/pipeline_violations.js +229 -0
  73. package/build/ci/rules/go.d.ts +8 -0
  74. package/build/ci/rules/go.js +22 -0
  75. package/build/ci/rules/index.d.ts +32 -0
  76. package/build/ci/rules/index.js +42 -0
  77. package/build/ci/rules/java.d.ts +8 -0
  78. package/build/ci/rules/java.js +22 -0
  79. package/build/ci/rules/javascript.d.ts +8 -0
  80. package/build/ci/rules/javascript.js +32 -0
  81. package/build/ci/rules/python.d.ts +8 -0
  82. package/build/ci/rules/python.js +27 -0
  83. package/build/ci/rules/rust.d.ts +8 -0
  84. package/build/ci/rules/rust.js +27 -0
  85. package/build/ci/spec_gate.d.ts +15 -0
  86. package/build/ci/spec_gate.js +143 -0
  87. package/build/ci/subcommands.d.ts +2 -0
  88. package/build/ci/subcommands.js +147 -0
  89. package/build/companion/autostart.d.ts +23 -0
  90. package/build/companion/autostart.js +105 -0
  91. package/build/companion/external_tools.d.ts +36 -0
  92. package/build/companion/external_tools.js +74 -0
  93. package/build/companion/index.d.ts +7 -0
  94. package/build/companion/index.js +6 -0
  95. package/build/companion/providers/bitnet_provider.d.ts +43 -0
  96. package/build/companion/providers/bitnet_provider.js +189 -0
  97. package/build/companion/providers/index.d.ts +1 -0
  98. package/build/companion/providers/index.js +1 -0
  99. package/build/companion/runtime.d.ts +9 -0
  100. package/build/companion/runtime.js +106 -0
  101. package/build/companion/server.d.ts +10 -0
  102. package/build/companion/server.js +143 -0
  103. package/build/companion/tools.d.ts +27 -0
  104. package/build/companion/tools.js +305 -0
  105. package/build/companion/types.d.ts +44 -0
  106. package/build/companion/types.js +10 -0
  107. package/build/companion/warden_runtime.d.ts +106 -0
  108. package/build/companion/warden_runtime.js +419 -0
  109. package/build/config/load-config.d.ts +0 -0
  110. package/build/config/load-config.js +2 -1
  111. package/build/coordinator/client.d.ts +0 -0
  112. package/build/coordinator/client.js +10 -19
  113. package/build/coordinator/index.d.ts +0 -0
  114. package/build/coordinator/index.js +0 -0
  115. package/build/correction-messages.d.ts +0 -0
  116. package/build/correction-messages.js +0 -0
  117. package/build/dashboard/index.d.ts +7 -17
  118. package/build/dashboard/index.js +9 -19
  119. package/build/dashboard/server.d.ts +4 -2
  120. package/build/dashboard/server.js +237 -83
  121. package/build/dashboard/signal_stream.d.ts +24 -0
  122. package/build/dashboard/signal_stream.js +252 -0
  123. package/build/db_sync/block_migration.d.ts +35 -0
  124. package/build/db_sync/block_migration.js +106 -0
  125. package/build/db_sync/block_reader.d.ts +38 -0
  126. package/build/db_sync/block_reader.js +97 -0
  127. package/build/db_sync/block_search_adapter.d.ts +26 -0
  128. package/build/db_sync/block_search_adapter.js +69 -0
  129. package/build/db_sync/block_sync.d.ts +26 -0
  130. package/build/db_sync/block_sync.js +95 -0
  131. package/build/db_sync/block_writer.d.ts +41 -0
  132. package/build/db_sync/block_writer.js +83 -0
  133. package/build/db_sync/config.d.ts +1 -7
  134. package/build/db_sync/config.js +7 -20
  135. package/build/db_sync/index.d.ts +20 -12
  136. package/build/db_sync/index.js +56 -56
  137. package/build/db_sync/parsers/bitnet.d.ts +0 -0
  138. package/build/db_sync/parsers/bitnet.js +0 -0
  139. package/build/db_sync/parsers/gate.d.ts +0 -0
  140. package/build/db_sync/parsers/gate.js +0 -0
  141. package/build/db_sync/parsers/index.d.ts +0 -0
  142. package/build/db_sync/parsers/index.js +0 -0
  143. package/build/db_sync/parsers/ingress.d.ts +0 -0
  144. package/build/db_sync/parsers/ingress.js +0 -0
  145. package/build/db_sync/parsers/mapping.d.ts +0 -0
  146. package/build/db_sync/parsers/mapping.js +0 -0
  147. package/build/db_sync/parsers/orchestrator.d.ts +0 -0
  148. package/build/db_sync/parsers/orchestrator.js +0 -0
  149. package/build/db_sync/pool.d.ts +2 -3
  150. package/build/db_sync/pool.js +10 -11
  151. package/build/db_sync/publish.d.ts +0 -0
  152. package/build/db_sync/publish.js +14 -14
  153. package/build/db_sync/read_model.d.ts +0 -0
  154. package/build/db_sync/read_model.js +7 -7
  155. package/build/db_sync/scanner.d.ts +4 -4
  156. package/build/db_sync/scanner.js +42 -30
  157. package/build/db_sync/types.d.ts +53 -7
  158. package/build/db_sync/types.js +11 -18
  159. package/build/db_sync/writer.d.ts +0 -0
  160. package/build/db_sync/writer.js +129 -129
  161. package/build/decision-log-reader.d.ts +33 -0
  162. package/build/decision-log-reader.js +129 -5
  163. package/build/deep-link.d.ts +0 -0
  164. package/build/deep-link.js +12 -11
  165. package/build/deps/deps-update.d.ts +0 -0
  166. package/build/deps/deps-update.js +0 -0
  167. package/build/deps/drift-check.d.ts +0 -0
  168. package/build/deps/drift-check.js +0 -0
  169. package/build/deps/env-check.d.ts +0 -0
  170. package/build/deps/env-check.js +0 -0
  171. package/build/deps/index.d.ts +0 -0
  172. package/build/deps/index.js +0 -0
  173. package/build/deps/pm-detect.d.ts +0 -0
  174. package/build/deps/pm-detect.js +0 -0
  175. package/build/deps/types.d.ts +0 -0
  176. package/build/deps/types.js +0 -0
  177. package/build/deps/ux-renderer.d.ts +0 -0
  178. package/build/deps/ux-renderer.js +0 -0
  179. package/build/{tier → domains/ant}/ant_lane.d.ts +2 -2
  180. package/build/{tier → domains/ant}/ant_lane.js +52 -50
  181. package/build/domains/ant/ant_lane_remediation.d.ts +50 -0
  182. package/build/domains/ant/ant_lane_remediation.js +157 -0
  183. package/build/domains/ant/ant_remediator.d.ts +48 -0
  184. package/build/domains/ant/ant_remediator.js +129 -0
  185. package/build/{tier → domains/ant}/checkpoint.d.ts +1 -1
  186. package/build/{tier → domains/ant}/checkpoint.js +66 -67
  187. package/build/{tier → domains/ant}/checkpoint_types.d.ts +17 -16
  188. package/build/{tier → domains/ant}/checkpoint_types.js +0 -0
  189. package/build/domains/ant/healing_loop.d.ts +42 -0
  190. package/build/domains/ant/healing_loop.js +196 -0
  191. package/build/domains/ant/index.d.ts +19 -0
  192. package/build/domains/ant/index.js +20 -0
  193. package/build/domains/ant/payload_builder.d.ts +51 -0
  194. package/build/domains/ant/payload_builder.js +137 -0
  195. package/build/domains/ant/remediation_log.d.ts +59 -0
  196. package/build/domains/ant/remediation_log.js +84 -0
  197. package/build/domains/bee/bee_chain_storage.d.ts +50 -0
  198. package/build/domains/bee/bee_chain_storage.js +155 -0
  199. package/build/domains/bee/bee_context_enricher.d.ts +76 -0
  200. package/build/domains/bee/bee_context_enricher.js +194 -0
  201. package/build/domains/bee/bee_import_parser.d.ts +68 -0
  202. package/build/domains/bee/bee_import_parser.js +359 -0
  203. package/build/domains/bee/bee_incremental_analyzer.d.ts +59 -0
  204. package/build/domains/bee/bee_incremental_analyzer.js +158 -0
  205. package/build/domains/bee/bee_ipc_server.d.ts +60 -0
  206. package/build/domains/bee/bee_ipc_server.js +146 -0
  207. package/build/domains/bee/bee_orchestrator.d.ts +35 -0
  208. package/build/domains/bee/bee_orchestrator.js +429 -0
  209. package/build/domains/bee/bee_rechunk.d.ts +41 -0
  210. package/build/domains/bee/bee_rechunk.js +128 -0
  211. package/build/domains/bee/bee_rechunk_incremental.d.ts +36 -0
  212. package/build/domains/bee/bee_rechunk_incremental.js +204 -0
  213. package/build/domains/bee/bee_stream_listener.d.ts +62 -0
  214. package/build/domains/bee/bee_stream_listener.js +161 -0
  215. package/build/domains/bee/bee_swarm_bridge.d.ts +32 -0
  216. package/build/domains/bee/bee_swarm_bridge.js +120 -0
  217. package/build/domains/bee/bee_triangulation.d.ts +66 -0
  218. package/build/domains/bee/bee_triangulation.js +186 -0
  219. package/build/domains/bee/bee_types.d.ts +142 -0
  220. package/build/domains/bee/bee_types.js +15 -0
  221. package/build/domains/bee/bee_watcher.d.ts +63 -0
  222. package/build/domains/bee/bee_watcher.js +267 -0
  223. package/build/{tier → domains/bee}/cooldown_store.d.ts +1 -1
  224. package/build/{tier → domains/bee}/cooldown_store.js +9 -8
  225. package/build/domains/bee/file_hash_registry.d.ts +69 -0
  226. package/build/domains/bee/file_hash_registry.js +189 -0
  227. package/build/domains/bee/index.d.ts +36 -0
  228. package/build/domains/bee/index.js +37 -0
  229. package/build/domains/bee/intent_tracker.d.ts +81 -0
  230. package/build/domains/bee/intent_tracker.js +185 -0
  231. package/build/domains/bee/log_pattern_registry.d.ts +91 -0
  232. package/build/domains/bee/log_pattern_registry.js +160 -0
  233. package/build/domains/bee/log_reasoning_bridge.d.ts +69 -0
  234. package/build/domains/bee/log_reasoning_bridge.js +182 -0
  235. package/build/domains/bee/scout_chain_storage.d.ts +27 -0
  236. package/build/domains/bee/scout_chain_storage.js +69 -0
  237. package/build/domains/bee/scout_heuristics.d.ts +30 -0
  238. package/build/domains/bee/scout_heuristics.js +446 -0
  239. package/build/{tier → domains/bee}/scout_runner.d.ts +5 -0
  240. package/build/{tier → domains/bee}/scout_runner.js +57 -2
  241. package/build/{tier → domains/bee}/trigger_evaluator.d.ts +4 -4
  242. package/build/{tier → domains/bee}/trigger_evaluator.js +63 -65
  243. package/build/{tier → domains/bee}/trigger_facts_collector.d.ts +3 -3
  244. package/build/domains/bee/trigger_facts_collector.js +280 -0
  245. package/build/{tier → domains/bee}/trigger_types.d.ts +3 -3
  246. package/build/{tier → domains/bee}/trigger_types.js +0 -0
  247. package/build/domains/prime/activity_sensor.d.ts +36 -0
  248. package/build/domains/prime/activity_sensor.js +64 -0
  249. package/build/domains/prime/context_assembly.d.ts +102 -0
  250. package/build/domains/prime/context_assembly.js +174 -0
  251. package/build/domains/prime/director.d.ts +38 -0
  252. package/build/domains/prime/director.js +136 -0
  253. package/build/domains/prime/goal_classifier.d.ts +11 -0
  254. package/build/domains/prime/goal_classifier.js +62 -0
  255. package/build/domains/prime/hive_mind.d.ts +48 -0
  256. package/build/domains/prime/hive_mind.js +249 -0
  257. package/build/domains/prime/hive_mind_prompts.d.ts +22 -0
  258. package/build/domains/prime/hive_mind_prompts.js +110 -0
  259. package/build/domains/prime/hive_mind_types.d.ts +43 -0
  260. package/build/domains/prime/hive_mind_types.js +4 -0
  261. package/build/domains/prime/holodeck.d.ts +33 -0
  262. package/build/domains/prime/holodeck.js +102 -0
  263. package/build/domains/prime/holodeck_types.d.ts +28 -0
  264. package/build/domains/prime/holodeck_types.js +4 -0
  265. package/build/domains/prime/hybrid_check.d.ts +23 -0
  266. package/build/domains/prime/hybrid_check.js +58 -0
  267. package/build/domains/prime/index.d.ts +20 -0
  268. package/build/domains/prime/index.js +15 -0
  269. package/build/domains/prime/mission_store.d.ts +27 -0
  270. package/build/domains/prime/mission_store.js +95 -0
  271. package/build/domains/prime/planner.d.ts +55 -0
  272. package/build/domains/prime/planner.js +307 -0
  273. package/build/domains/prime/planner_prompts.d.ts +18 -0
  274. package/build/domains/prime/planner_prompts.js +116 -0
  275. package/build/domains/prime/reviewer.d.ts +27 -0
  276. package/build/domains/prime/reviewer.js +83 -0
  277. package/build/domains/prime/stage_machine.d.ts +62 -0
  278. package/build/domains/prime/stage_machine.js +143 -0
  279. package/build/domains/prime/time_stone.d.ts +37 -0
  280. package/build/domains/prime/time_stone.js +212 -0
  281. package/build/domains/prime/time_stone_scorer.d.ts +17 -0
  282. package/build/domains/prime/time_stone_scorer.js +44 -0
  283. package/build/domains/prime/time_stone_types.d.ts +71 -0
  284. package/build/domains/prime/time_stone_types.js +4 -0
  285. package/build/domains/prime/types.d.ts +44 -0
  286. package/build/domains/prime/types.js +7 -0
  287. package/build/domains/rag/block_indexer.d.ts +39 -0
  288. package/build/domains/rag/block_indexer.js +61 -0
  289. package/build/domains/rag/context_builder.d.ts +11 -0
  290. package/build/domains/rag/context_builder.js +30 -0
  291. package/build/domains/rag/index.d.ts +6 -0
  292. package/build/domains/rag/index.js +6 -0
  293. package/build/domains/rag/rag_bridge.d.ts +29 -0
  294. package/build/domains/rag/rag_bridge.js +22 -0
  295. package/build/domains/rag/rag_client.d.ts +14 -0
  296. package/build/domains/rag/rag_client.js +77 -0
  297. package/build/domains/rag/retrieval.d.ts +18 -0
  298. package/build/domains/rag/retrieval.js +47 -0
  299. package/build/domains/rag/types.d.ts +57 -0
  300. package/build/domains/rag/types.js +3 -0
  301. package/build/domains/swarm/index.d.ts +19 -0
  302. package/build/domains/swarm/index.js +20 -0
  303. package/build/domains/swarm/reasoning_chain.d.ts +62 -0
  304. package/build/domains/swarm/reasoning_chain.js +121 -0
  305. package/build/domains/swarm/swarm_chain_dispatcher.d.ts +52 -0
  306. package/build/domains/swarm/swarm_chain_dispatcher.js +144 -0
  307. package/build/domains/swarm/swarm_consensus.d.ts +34 -0
  308. package/build/domains/swarm/swarm_consensus.js +87 -0
  309. package/build/domains/swarm/swarm_dispatcher.d.ts +34 -0
  310. package/build/domains/swarm/swarm_dispatcher.js +111 -0
  311. package/build/domains/swarm/swarm_prompt.d.ts +16 -0
  312. package/build/domains/swarm/swarm_prompt.js +70 -0
  313. package/build/domains/swarm/swarm_types.d.ts +55 -0
  314. package/build/domains/swarm/swarm_types.js +9 -0
  315. package/build/domains/swarm/swarm_verdict_router.d.ts +55 -0
  316. package/build/domains/swarm/swarm_verdict_router.js +129 -0
  317. package/build/evidence-report.d.ts +2 -2
  318. package/build/evidence-report.js +18 -153
  319. package/build/gateway/client.d.ts +35 -0
  320. package/build/gateway/client.js +98 -0
  321. package/build/gateway/config.d.ts +41 -0
  322. package/build/gateway/config.js +49 -0
  323. package/build/gateway/dispatch_handler.d.ts +17 -0
  324. package/build/gateway/dispatch_handler.js +95 -0
  325. package/build/gateway/heartbeat.d.ts +23 -0
  326. package/build/gateway/heartbeat.js +78 -0
  327. package/build/gateway/index.d.ts +18 -0
  328. package/build/gateway/index.js +14 -0
  329. package/build/gateway/prime_dispatch.d.ts +29 -0
  330. package/build/gateway/prime_dispatch.js +80 -0
  331. package/build/health/index.d.ts +0 -0
  332. package/build/health/index.js +0 -0
  333. package/build/health/liveness.d.ts +0 -0
  334. package/build/health/liveness.js +0 -0
  335. package/build/health/readiness.d.ts +5 -0
  336. package/build/health/readiness.js +28 -5
  337. package/build/health/types.d.ts +0 -0
  338. package/build/health/types.js +0 -0
  339. package/build/hub/autostart.d.ts +23 -0
  340. package/build/hub/autostart.js +137 -0
  341. package/build/hub/dashboard_routes.d.ts +17 -0
  342. package/build/hub/dashboard_routes.js +307 -0
  343. package/build/hub/index.d.ts +10 -0
  344. package/build/hub/index.js +8 -0
  345. package/build/hub/server.d.ts +10 -0
  346. package/build/hub/server.js +207 -0
  347. package/build/hub/types.d.ts +43 -0
  348. package/build/hub/types.js +8 -0
  349. package/build/index.d.ts +19 -19
  350. package/build/index.js +22 -47
  351. package/build/kernel/async-fs.d.ts +22 -0
  352. package/build/kernel/async-fs.js +50 -0
  353. package/build/kernel/atomic_writer.d.ts +22 -0
  354. package/build/kernel/atomic_writer.js +43 -0
  355. package/build/kernel/blocks/assembler.d.ts +101 -0
  356. package/build/kernel/blocks/assembler.js +254 -0
  357. package/build/kernel/blocks/chain.d.ts +148 -0
  358. package/build/kernel/blocks/chain.js +329 -0
  359. package/build/kernel/blocks/doubt.d.ts +141 -0
  360. package/build/kernel/blocks/doubt.js +288 -0
  361. package/build/kernel/blocks/events.d.ts +130 -0
  362. package/build/kernel/blocks/events.js +246 -0
  363. package/build/kernel/blocks/gc.d.ts +93 -0
  364. package/build/kernel/blocks/gc.js +320 -0
  365. package/build/kernel/blocks/hasher.d.ts +79 -0
  366. package/build/kernel/blocks/hasher.js +108 -0
  367. package/build/kernel/blocks/index.d.ts +29 -0
  368. package/build/kernel/blocks/index.js +44 -0
  369. package/build/kernel/blocks/inference_cache.d.ts +64 -0
  370. package/build/kernel/blocks/inference_cache.js +123 -0
  371. package/build/kernel/blocks/migration.d.ts +103 -0
  372. package/build/kernel/blocks/migration.js +273 -0
  373. package/build/kernel/blocks/policy.d.ts +41 -0
  374. package/build/kernel/blocks/policy.js +132 -0
  375. package/build/kernel/blocks/signal_bridge.d.ts +130 -0
  376. package/build/kernel/blocks/signal_bridge.js +324 -0
  377. package/build/kernel/blocks/signal_reader.d.ts +47 -0
  378. package/build/kernel/blocks/signal_reader.js +185 -0
  379. package/build/kernel/blocks/snapshot.d.ts +44 -0
  380. package/build/kernel/blocks/snapshot.js +258 -0
  381. package/build/kernel/blocks/store.d.ts +163 -0
  382. package/build/kernel/blocks/store.js +390 -0
  383. package/build/kernel/blocks/types.d.ts +340 -0
  384. package/build/kernel/blocks/types.js +31 -0
  385. package/build/kernel/blocks/vector.d.ts +90 -0
  386. package/build/kernel/blocks/vector.js +495 -0
  387. package/build/kernel/contracts.d.ts +53 -0
  388. package/build/kernel/contracts.js +1 -0
  389. package/build/kernel/deps.d.ts +22 -0
  390. package/build/kernel/deps.js +32 -0
  391. package/build/{mcp/events → kernel}/file_watcher.d.ts +1 -1
  392. package/build/{mcp/events → kernel}/file_watcher.js +5 -5
  393. package/build/kernel/index.d.ts +8 -0
  394. package/build/kernel/index.js +13 -0
  395. package/build/kernel/musu_adapter.d.ts +198 -0
  396. package/build/kernel/musu_adapter.js +836 -0
  397. package/build/kernel/musu_adapter_types.d.ts +212 -0
  398. package/build/kernel/musu_adapter_types.js +10 -0
  399. package/build/kernel/musu_endpoint.d.ts +15 -0
  400. package/build/kernel/musu_endpoint.js +62 -0
  401. package/build/kernel/paths.d.ts +90 -0
  402. package/build/kernel/paths.js +240 -0
  403. package/build/kernel/resolve_deps.d.ts +12 -0
  404. package/build/kernel/resolve_deps.js +14 -0
  405. package/build/kernel/smart_patcher.d.ts +52 -0
  406. package/build/kernel/smart_patcher.js +221 -0
  407. package/build/kernel/sys_admin_types.d.ts +34 -0
  408. package/build/kernel/sys_admin_types.js +7 -0
  409. package/build/license-manager.d.ts +0 -0
  410. package/build/license-manager.js +0 -0
  411. package/build/mapper-worker/client.d.ts +0 -0
  412. package/build/mapper-worker/client.js +5 -4
  413. package/build/mapper-worker/index.d.ts +0 -0
  414. package/build/mapper-worker/index.js +0 -0
  415. package/build/mapper-worker/pool.d.ts +1 -1
  416. package/build/mapper-worker/pool.js +46 -48
  417. package/build/mapper-worker/server.d.ts +0 -0
  418. package/build/mapper-worker/server.js +7 -8
  419. package/build/mapper-worker/types.d.ts +0 -0
  420. package/build/mapper-worker/types.js +2 -1
  421. package/build/mcp/a2a/envelope.d.ts +36 -0
  422. package/build/mcp/a2a/envelope.js +82 -0
  423. package/build/mcp/a2a/executor/actions.d.ts +39 -0
  424. package/build/mcp/a2a/executor/actions.js +218 -0
  425. package/build/mcp/a2a/executor/dry_run.d.ts +51 -0
  426. package/build/mcp/a2a/executor/dry_run.js +117 -0
  427. package/build/mcp/a2a/executor/handler.d.ts +23 -0
  428. package/build/mcp/a2a/executor/handler.js +125 -0
  429. package/build/mcp/a2a/executor/index.d.ts +3 -0
  430. package/build/mcp/a2a/executor/index.js +8 -0
  431. package/build/mcp/a2a/gate/index.d.ts +3 -0
  432. package/build/mcp/a2a/gate/index.js +15 -0
  433. package/build/mcp/a2a/gate/types.d.ts +106 -0
  434. package/build/mcp/a2a/gate/types.js +68 -0
  435. package/build/mcp/a2a/gate/verdict.d.ts +69 -0
  436. package/build/mcp/a2a/gate/verdict.js +286 -0
  437. package/build/mcp/a2a/history/builder.d.ts +78 -0
  438. package/build/mcp/a2a/history/builder.js +399 -0
  439. package/build/mcp/a2a/history/index.d.ts +6 -0
  440. package/build/mcp/a2a/history/index.js +6 -0
  441. package/build/mcp/a2a/history/types.d.ts +185 -0
  442. package/build/mcp/a2a/history/types.js +5 -0
  443. package/build/mcp/a2a/index.d.ts +7 -0
  444. package/build/mcp/a2a/index.js +13 -0
  445. package/build/mcp/a2a/intent/constitutional.d.ts +41 -0
  446. package/build/mcp/a2a/intent/constitutional.js +187 -0
  447. package/build/mcp/a2a/intent/converter.d.ts +23 -0
  448. package/build/mcp/a2a/intent/converter.js +32 -0
  449. package/build/mcp/a2a/intent/index.d.ts +13 -0
  450. package/build/mcp/a2a/intent/index.js +13 -0
  451. package/build/mcp/a2a/intent/interpreter.d.ts +51 -0
  452. package/build/mcp/a2a/intent/interpreter.js +341 -0
  453. package/build/mcp/a2a/intent/loader.d.ts +20 -0
  454. package/build/mcp/a2a/intent/loader.js +54 -0
  455. package/build/mcp/a2a/intent/project_intent.d.ts +54 -0
  456. package/build/mcp/a2a/intent/project_intent.js +221 -0
  457. package/build/mcp/a2a/intent/types.d.ts +156 -0
  458. package/build/mcp/a2a/intent/types.js +12 -0
  459. package/build/mcp/a2a/observer/hooks.d.ts +15 -0
  460. package/build/mcp/a2a/observer/hooks.js +35 -6
  461. package/build/mcp/a2a/observer/index.d.ts +5 -0
  462. package/build/mcp/a2a/observer/index.js +6 -0
  463. package/build/mcp/a2a/observer/logger.d.ts +0 -0
  464. package/build/mcp/a2a/observer/logger.js +2 -1
  465. package/build/mcp/a2a/observer/types.d.ts +1 -1
  466. package/build/mcp/a2a/observer/types.js +0 -0
  467. package/build/mcp/a2a/oracle/index.d.ts +3 -0
  468. package/build/mcp/a2a/oracle/index.js +5 -0
  469. package/build/mcp/a2a/oracle/oracle.d.ts +35 -0
  470. package/build/mcp/a2a/oracle/oracle.js +253 -0
  471. package/build/mcp/a2a/oracle/types.d.ts +108 -0
  472. package/build/mcp/a2a/oracle/types.js +10 -0
  473. package/build/mcp/a2a/orchestrator/index.d.ts +4 -0
  474. package/build/mcp/a2a/orchestrator/index.js +11 -0
  475. package/build/mcp/a2a/orchestrator/loop.d.ts +0 -0
  476. package/build/mcp/a2a/orchestrator/loop.js +2 -1
  477. package/build/mcp/a2a/orchestrator/ralph-audit.d.ts +0 -0
  478. package/build/mcp/a2a/orchestrator/ralph-audit.js +0 -0
  479. package/build/mcp/a2a/orchestrator/ralph-runner.d.ts +0 -0
  480. package/build/mcp/a2a/orchestrator/ralph-runner.js +0 -0
  481. package/build/mcp/a2a/orchestrator/rewind-actions.d.ts +2 -2
  482. package/build/mcp/a2a/orchestrator/rewind-actions.js +39 -27
  483. package/build/mcp/a2a/state/index.d.ts +6 -0
  484. package/build/mcp/a2a/state/index.js +6 -0
  485. package/build/mcp/a2a/state/manager.d.ts +105 -0
  486. package/build/mcp/a2a/state/manager.js +565 -0
  487. package/build/mcp/a2a/state/types.d.ts +179 -0
  488. package/build/mcp/a2a/state/types.js +46 -0
  489. package/build/mcp/a2a/types.d.ts +23 -1
  490. package/build/mcp/a2a/types.js +0 -0
  491. package/build/mcp/agents/catalog_loader.d.ts +23 -0
  492. package/build/mcp/agents/catalog_loader.js +168 -0
  493. package/build/mcp/agents/checksum.d.ts +30 -0
  494. package/build/mcp/agents/checksum.js +51 -0
  495. package/build/mcp/agents/dependency_resolver.d.ts +34 -0
  496. package/build/mcp/agents/dependency_resolver.js +109 -0
  497. package/build/mcp/agents/dispatcher.d.ts +33 -0
  498. package/build/mcp/agents/dispatcher.js +168 -0
  499. package/build/mcp/agents/feedback_loop.d.ts +84 -0
  500. package/build/mcp/agents/feedback_loop.js +241 -0
  501. package/build/mcp/agents/index.d.ts +13 -0
  502. package/build/mcp/agents/index.js +18 -0
  503. package/build/mcp/agents/lifecycle_monitor.d.ts +59 -0
  504. package/build/mcp/agents/lifecycle_monitor.js +189 -0
  505. package/build/mcp/agents/manifest_validator.d.ts +31 -0
  506. package/build/mcp/agents/manifest_validator.js +120 -0
  507. package/build/mcp/agents/oppa_router.d.ts +44 -0
  508. package/build/mcp/agents/oppa_router.js +134 -0
  509. package/build/mcp/agents/tool_executor.d.ts +22 -0
  510. package/build/mcp/agents/tool_executor.js +82 -0
  511. package/build/mcp/agents/types.d.ts +139 -0
  512. package/build/mcp/agents/types.js +7 -0
  513. package/build/mcp/agents/workflow_engine.d.ts +25 -0
  514. package/build/mcp/agents/workflow_engine.js +226 -0
  515. package/build/mcp/ai-native/discover.d.ts +41 -0
  516. package/build/mcp/ai-native/discover.js +69 -0
  517. package/build/mcp/ai-native/envelope.d.ts +47 -0
  518. package/build/mcp/ai-native/envelope.js +70 -0
  519. package/build/mcp/ai-native/health.d.ts +33 -0
  520. package/build/mcp/ai-native/health.js +97 -0
  521. package/build/mcp/ai-native/index.d.ts +7 -0
  522. package/build/mcp/ai-native/index.js +7 -0
  523. package/build/mcp/ai-native/next_action.d.ts +53 -0
  524. package/build/mcp/ai-native/next_action.js +133 -0
  525. package/build/mcp/airlock/airlock.d.ts +0 -0
  526. package/build/mcp/airlock/airlock.js +0 -0
  527. package/build/mcp/airlock/index.d.ts +0 -0
  528. package/build/mcp/airlock/index.js +0 -0
  529. package/build/mcp/airlock/policy.d.ts +2 -2
  530. package/build/mcp/airlock/policy.js +6 -6
  531. package/build/mcp/airlock/redact.d.ts +0 -0
  532. package/build/mcp/airlock/redact.js +0 -0
  533. package/build/mcp/airlock/report.d.ts +1 -1
  534. package/build/mcp/airlock/report.js +25 -25
  535. package/build/mcp/airlock/types.d.ts +0 -0
  536. package/build/mcp/airlock/types.js +0 -0
  537. package/build/mcp/auth/gate.d.ts +0 -0
  538. package/build/mcp/auth/gate.js +0 -0
  539. package/build/mcp/auth/index.d.ts +0 -0
  540. package/build/mcp/auth/index.js +0 -0
  541. package/build/mcp/auth/public_key.d.ts +0 -0
  542. package/build/mcp/auth/public_key.js +0 -0
  543. package/build/mcp/auth/token_cache.d.ts +0 -0
  544. package/build/mcp/auth/token_cache.js +2 -1
  545. package/build/mcp/auth/token_verifier.d.ts +0 -0
  546. package/build/mcp/auth/token_verifier.js +0 -0
  547. package/build/mcp/bootstrap/doctor.d.ts +0 -0
  548. package/build/mcp/bootstrap/doctor.js +3 -3
  549. package/build/mcp/bootstrap/installer.d.ts +12 -33
  550. package/build/mcp/bootstrap/installer.js +244 -674
  551. package/build/mcp/bootstrap/installer_env.d.ts +19 -0
  552. package/build/mcp/bootstrap/installer_env.js +128 -0
  553. package/build/mcp/bootstrap/installer_network.d.ts +24 -0
  554. package/build/mcp/bootstrap/installer_network.js +192 -0
  555. package/build/mcp/bootstrap/installer_version.d.ts +54 -0
  556. package/build/mcp/bootstrap/installer_version.js +163 -0
  557. package/build/mcp/bootstrap/lock.d.ts +0 -0
  558. package/build/mcp/bootstrap/lock.js +0 -0
  559. package/build/mcp/bootstrap/platform.d.ts +0 -0
  560. package/build/mcp/bootstrap/platform.js +0 -0
  561. package/build/mcp/bootstrap/registry.d.ts +12 -0
  562. package/build/mcp/bootstrap/registry.js +53 -4
  563. package/build/mcp/bootstrap/skills-installer.d.ts +15 -15
  564. package/build/mcp/bootstrap/skills-installer.js +115 -102
  565. package/build/mcp/cache/index.d.ts +0 -0
  566. package/build/mcp/cache/index.js +0 -0
  567. package/build/mcp/chunking/artifacts.d.ts +44 -4
  568. package/build/mcp/chunking/artifacts.js +120 -21
  569. package/build/mcp/chunking/chunking.d.ts +37 -1
  570. package/build/mcp/chunking/chunking.js +108 -24
  571. package/build/mcp/chunking/index.d.ts +0 -0
  572. package/build/mcp/chunking/index.js +0 -0
  573. package/build/mcp/chunking/policy.d.ts +3 -3
  574. package/build/mcp/chunking/policy.js +11 -11
  575. package/build/mcp/chunking/types.d.ts +0 -0
  576. package/build/mcp/chunking/types.js +0 -0
  577. package/build/mcp/cli.d.ts +0 -0
  578. package/build/mcp/cli.js +17 -1
  579. package/build/mcp/cockpit-bridge/client.d.ts +85 -2
  580. package/build/mcp/cockpit-bridge/client.js +170 -9
  581. package/build/mcp/cockpit-bridge/index.d.ts +0 -0
  582. package/build/mcp/cockpit-bridge/index.js +2 -1
  583. package/build/mcp/cockpit-bridge/tools/command.d.ts +25 -1
  584. package/build/mcp/cockpit-bridge/tools/command.js +26 -4
  585. package/build/mcp/cockpit-bridge/tools/decide.d.ts +0 -0
  586. package/build/mcp/cockpit-bridge/tools/decide.js +0 -0
  587. package/build/mcp/cockpit-bridge/tools/gate_result.d.ts +19 -0
  588. package/build/mcp/cockpit-bridge/tools/gate_result.js +64 -0
  589. package/build/mcp/cockpit-bridge/tools/index.d.ts +1 -0
  590. package/build/mcp/cockpit-bridge/tools/index.js +3 -0
  591. package/build/mcp/cockpit-bridge/tools/manual.d.ts +0 -0
  592. package/build/mcp/cockpit-bridge/tools/manual.js +2 -2
  593. package/build/mcp/cockpit-bridge/tools/prompt.d.ts +0 -0
  594. package/build/mcp/cockpit-bridge/tools/prompt.js +0 -0
  595. package/build/mcp/cockpit-bridge/tools/status.d.ts +0 -0
  596. package/build/mcp/cockpit-bridge/tools/status.js +0 -0
  597. package/build/mcp/contracts.d.ts +4 -4
  598. package/build/mcp/contracts.js +0 -0
  599. package/build/mcp/engine/deps.d.ts +12 -0
  600. package/build/mcp/engine/deps.js +19 -0
  601. package/build/mcp/engine/lazy.d.ts +5 -0
  602. package/build/mcp/engine/lazy.js +32 -0
  603. package/build/mcp/engine.d.ts +4 -3
  604. package/build/mcp/engine.js +79 -38
  605. package/build/mcp/errors.d.ts +21 -0
  606. package/build/mcp/errors.js +36 -0
  607. package/build/mcp/events/constants.d.ts +7 -0
  608. package/build/mcp/events/constants.js +8 -0
  609. package/build/mcp/events/dedup_cooldown.d.ts +0 -0
  610. package/build/mcp/events/dedup_cooldown.js +0 -0
  611. package/build/mcp/events/dedup_registry.d.ts +3 -0
  612. package/build/mcp/events/dedup_registry.js +25 -0
  613. package/build/mcp/events/emitter.d.ts +5 -2
  614. package/build/mcp/events/emitter.js +16 -10
  615. package/build/mcp/events/event_loop.d.ts +2 -1
  616. package/build/mcp/events/event_loop.js +94 -89
  617. package/build/mcp/events/index.d.ts +10 -11
  618. package/build/mcp/events/index.js +10 -11
  619. package/build/mcp/events/logger.d.ts +0 -0
  620. package/build/mcp/events/logger.js +0 -0
  621. package/build/mcp/events/mq.d.ts +2 -1
  622. package/build/mcp/events/mq.js +2 -2
  623. package/build/mcp/events/mq_nats.d.ts +0 -0
  624. package/build/mcp/events/mq_nats.js +3 -2
  625. package/build/mcp/events/mq_redis.d.ts +0 -0
  626. package/build/mcp/events/mq_redis.js +2 -1
  627. package/build/mcp/events/nav_refresh.d.ts +0 -0
  628. package/build/mcp/events/nav_refresh.js +15 -15
  629. package/build/mcp/events/processor.d.ts +2 -2
  630. package/build/mcp/events/processor.js +56 -24
  631. package/build/mcp/events/replay.d.ts +0 -0
  632. package/build/mcp/events/replay.js +0 -0
  633. package/build/mcp/events/types.d.ts +7 -4
  634. package/build/mcp/events/types.js +2 -2
  635. package/build/mcp/generated/activate_input.d.ts +0 -0
  636. package/build/mcp/generated/activate_input.js +0 -0
  637. package/build/mcp/generated/activate_output.d.ts +2 -2
  638. package/build/mcp/generated/activate_output.js +0 -0
  639. package/build/mcp/generated/advisory_review_input.d.ts +6 -6
  640. package/build/mcp/generated/advisory_review_input.js +0 -0
  641. package/build/mcp/generated/advisory_review_output.d.ts +0 -0
  642. package/build/mcp/generated/advisory_review_output.js +0 -0
  643. package/build/mcp/generated/auth_token_file.d.ts +0 -0
  644. package/build/mcp/generated/auth_token_file.js +0 -0
  645. package/build/mcp/generated/autopilot_policy.d.ts +0 -0
  646. package/build/mcp/generated/autopilot_policy.js +0 -0
  647. package/build/mcp/generated/bee_output.d.ts +59 -0
  648. package/build/mcp/generated/bee_output.js +36 -0
  649. package/build/mcp/generated/bitnet_signal.d.ts +18 -18
  650. package/build/mcp/generated/bitnet_signal.js +0 -0
  651. package/build/mcp/generated/bridge_build_seed_input.d.ts +0 -0
  652. package/build/mcp/generated/bridge_build_seed_input.js +0 -0
  653. package/build/mcp/generated/bridge_build_seed_output.d.ts +2 -2
  654. package/build/mcp/generated/bridge_build_seed_output.js +0 -0
  655. package/build/mcp/generated/bridge_confirm_reference_input.d.ts +0 -0
  656. package/build/mcp/generated/bridge_confirm_reference_input.js +0 -0
  657. package/build/mcp/generated/bridge_confirm_reference_output.d.ts +2 -2
  658. package/build/mcp/generated/bridge_confirm_reference_output.js +0 -0
  659. package/build/mcp/generated/bridge_confirmed_reference_file.d.ts +4 -4
  660. package/build/mcp/generated/bridge_confirmed_reference_file.js +0 -0
  661. package/build/mcp/generated/bridge_generate_references_input.d.ts +4 -4
  662. package/build/mcp/generated/bridge_generate_references_input.js +0 -0
  663. package/build/mcp/generated/bridge_generate_references_output.d.ts +2 -2
  664. package/build/mcp/generated/bridge_generate_references_output.js +0 -0
  665. package/build/mcp/generated/bridge_references_file.d.ts +10 -10
  666. package/build/mcp/generated/bridge_references_file.js +0 -0
  667. package/build/mcp/generated/bridge_work_order_seed_file.d.ts +2 -2
  668. package/build/mcp/generated/bridge_work_order_seed_file.js +0 -0
  669. package/build/mcp/generated/briefing_input.d.ts +0 -0
  670. package/build/mcp/generated/briefing_input.js +0 -0
  671. package/build/mcp/generated/briefing_output.d.ts +2 -2
  672. package/build/mcp/generated/briefing_output.js +0 -0
  673. package/build/mcp/generated/clinic_bridge_file.d.ts +0 -0
  674. package/build/mcp/generated/clinic_bridge_file.js +0 -0
  675. package/build/mcp/generated/contracts_bundle_info.d.ts +0 -0
  676. package/build/mcp/generated/contracts_bundle_info.js +0 -0
  677. package/build/mcp/generated/create_work_order_input.d.ts +0 -0
  678. package/build/mcp/generated/create_work_order_input.js +0 -0
  679. package/build/mcp/generated/create_work_order_output.d.ts +20 -20
  680. package/build/mcp/generated/create_work_order_output.js +0 -0
  681. package/build/mcp/generated/current_work_order_file.d.ts +0 -0
  682. package/build/mcp/generated/current_work_order_file.js +0 -0
  683. package/build/mcp/generated/deps_drift_report.d.ts +6 -6
  684. package/build/mcp/generated/deps_drift_report.js +0 -0
  685. package/build/mcp/generated/deps_scan.d.ts +24 -24
  686. package/build/mcp/generated/deps_scan.js +0 -0
  687. package/build/mcp/generated/doctor_input.d.ts +8 -2
  688. package/build/mcp/generated/doctor_input.js +1 -1
  689. package/build/mcp/generated/doctor_output.d.ts +14 -14
  690. package/build/mcp/generated/doctor_output.js +0 -0
  691. package/build/mcp/generated/execution_result.d.ts +12 -12
  692. package/build/mcp/generated/execution_result.js +0 -0
  693. package/build/mcp/generated/execution_task.d.ts +12 -12
  694. package/build/mcp/generated/execution_task.js +0 -0
  695. package/build/mcp/generated/export_output_input.d.ts +1 -1
  696. package/build/mcp/generated/export_output_input.js +0 -0
  697. package/build/mcp/generated/export_output_output.d.ts +6 -6
  698. package/build/mcp/generated/export_output_output.js +0 -0
  699. package/build/mcp/generated/finalize_work_input.d.ts +0 -0
  700. package/build/mcp/generated/finalize_work_input.js +0 -0
  701. package/build/mcp/generated/finalize_work_output.d.ts +0 -0
  702. package/build/mcp/generated/finalize_work_output.js +0 -0
  703. package/build/mcp/generated/gate_input.d.ts +0 -0
  704. package/build/mcp/generated/gate_input.js +0 -0
  705. package/build/mcp/generated/gate_output.d.ts +4 -4
  706. package/build/mcp/generated/gate_output.js +0 -0
  707. package/build/mcp/generated/gate_result_v1.d.ts +4 -4
  708. package/build/mcp/generated/gate_result_v1.js +0 -0
  709. package/build/mcp/generated/get_decision_input.d.ts +0 -0
  710. package/build/mcp/generated/get_decision_input.js +0 -0
  711. package/build/mcp/generated/get_decision_output.d.ts +24 -1
  712. package/build/mcp/generated/get_decision_output.js +45 -7
  713. package/build/mcp/generated/get_semantic_complexity_input.d.ts +0 -0
  714. package/build/mcp/generated/get_semantic_complexity_input.js +0 -0
  715. package/build/mcp/generated/get_semantic_complexity_output.d.ts +2 -2
  716. package/build/mcp/generated/get_semantic_complexity_output.js +0 -0
  717. package/build/mcp/generated/handoff_to_clinic.d.ts +0 -0
  718. package/build/mcp/generated/handoff_to_clinic.js +0 -0
  719. package/build/mcp/generated/index.d.ts +0 -0
  720. package/build/mcp/generated/index.js +0 -0
  721. package/build/mcp/generated/ingress_input.d.ts +0 -0
  722. package/build/mcp/generated/ingress_input.js +0 -0
  723. package/build/mcp/generated/ingress_output.d.ts +2 -2
  724. package/build/mcp/generated/ingress_output.js +0 -0
  725. package/build/mcp/generated/ingress_resolution_file.d.ts +0 -0
  726. package/build/mcp/generated/ingress_resolution_file.js +0 -0
  727. package/build/mcp/generated/ingress_summary_file.d.ts +0 -0
  728. package/build/mcp/generated/ingress_summary_file.js +0 -0
  729. package/build/mcp/generated/inspect_code_input.d.ts +5 -2
  730. package/build/mcp/generated/inspect_code_input.js +1 -1
  731. package/build/mcp/generated/inspect_code_output.d.ts +6 -6
  732. package/build/mcp/generated/inspect_code_output.js +0 -0
  733. package/build/mcp/generated/memory_retrieve_input.d.ts +0 -0
  734. package/build/mcp/generated/memory_retrieve_input.js +0 -0
  735. package/build/mcp/generated/memory_retrieve_output.d.ts +0 -0
  736. package/build/mcp/generated/memory_retrieve_output.js +0 -0
  737. package/build/mcp/generated/memory_state_file.d.ts +0 -0
  738. package/build/mcp/generated/memory_state_file.js +0 -0
  739. package/build/mcp/generated/memory_status_input.d.ts +0 -0
  740. package/build/mcp/generated/memory_status_input.js +0 -0
  741. package/build/mcp/generated/memory_status_output.d.ts +2 -2
  742. package/build/mcp/generated/memory_status_output.js +0 -0
  743. package/build/mcp/generated/memory_sync_input.d.ts +0 -0
  744. package/build/mcp/generated/memory_sync_input.js +0 -0
  745. package/build/mcp/generated/memory_sync_output.d.ts +8 -8
  746. package/build/mcp/generated/memory_sync_output.js +0 -0
  747. package/build/mcp/generated/message_template_id_mapping_file.d.ts +2 -2
  748. package/build/mcp/generated/message_template_id_mapping_file.js +0 -0
  749. package/build/mcp/generated/observer_event_map.d.ts +18 -18
  750. package/build/mcp/generated/observer_event_map.js +0 -0
  751. package/build/mcp/generated/ose_expand_input.d.ts +2 -2
  752. package/build/mcp/generated/ose_expand_input.js +0 -0
  753. package/build/mcp/generated/ose_expand_output.d.ts +0 -0
  754. package/build/mcp/generated/ose_expand_output.js +0 -0
  755. package/build/mcp/generated/oss_candidates_file.d.ts +12 -12
  756. package/build/mcp/generated/oss_candidates_file.js +0 -0
  757. package/build/mcp/generated/oss_decisions_file.d.ts +0 -0
  758. package/build/mcp/generated/oss_decisions_file.js +0 -0
  759. package/build/mcp/generated/oss_snippets_file.d.ts +16 -16
  760. package/build/mcp/generated/oss_snippets_file.js +0 -0
  761. package/build/mcp/generated/plugin_result.d.ts +0 -0
  762. package/build/mcp/generated/plugin_result.js +0 -0
  763. package/build/mcp/generated/react_perf_check_patterns_input.d.ts +2 -2
  764. package/build/mcp/generated/react_perf_check_patterns_input.js +0 -0
  765. package/build/mcp/generated/react_perf_check_patterns_output.d.ts +8 -8
  766. package/build/mcp/generated/react_perf_check_patterns_output.js +0 -0
  767. package/build/mcp/generated/react_perf_generate_report_input.d.ts +0 -0
  768. package/build/mcp/generated/react_perf_generate_report_input.js +0 -0
  769. package/build/mcp/generated/react_perf_generate_report_output.d.ts +6 -6
  770. package/build/mcp/generated/react_perf_generate_report_output.js +0 -0
  771. package/build/mcp/generated/read_file_input.d.ts +0 -0
  772. package/build/mcp/generated/read_file_input.js +0 -0
  773. package/build/mcp/generated/read_file_output.d.ts +8 -8
  774. package/build/mcp/generated/read_file_output.js +0 -0
  775. package/build/mcp/generated/repair_analysis_engine_input.d.ts +0 -0
  776. package/build/mcp/generated/repair_analysis_engine_input.js +0 -0
  777. package/build/mcp/generated/repair_analysis_engine_output.d.ts +2 -2
  778. package/build/mcp/generated/repair_analysis_engine_output.js +0 -0
  779. package/build/mcp/generated/repair_plan_input.d.ts +0 -0
  780. package/build/mcp/generated/repair_plan_input.js +0 -0
  781. package/build/mcp/generated/repair_plan_output.d.ts +2 -2
  782. package/build/mcp/generated/repair_plan_output.js +0 -0
  783. package/build/mcp/generated/run_app_input.d.ts +4 -4
  784. package/build/mcp/generated/run_app_input.js +0 -0
  785. package/build/mcp/generated/run_app_output.d.ts +4 -4
  786. package/build/mcp/generated/run_app_output.js +0 -0
  787. package/build/mcp/generated/run_state_file.d.ts +0 -0
  788. package/build/mcp/generated/run_state_file.js +0 -0
  789. package/build/mcp/generated/scaffold_input.d.ts +2 -2
  790. package/build/mcp/generated/scaffold_input.js +0 -0
  791. package/build/mcp/generated/scaffold_output.d.ts +0 -0
  792. package/build/mcp/generated/scaffold_output.js +0 -0
  793. package/build/mcp/generated/scout_input.d.ts +27 -0
  794. package/build/mcp/generated/scout_input.js +21 -0
  795. package/build/mcp/generated/scout_output.d.ts +33 -0
  796. package/build/mcp/generated/scout_output.js +20 -0
  797. package/build/mcp/generated/search_oss_input.d.ts +2 -2
  798. package/build/mcp/generated/search_oss_input.js +0 -0
  799. package/build/mcp/generated/search_oss_output.d.ts +12 -12
  800. package/build/mcp/generated/search_oss_output.js +0 -0
  801. package/build/mcp/generated/selection_validation_result.d.ts +4 -4
  802. package/build/mcp/generated/selection_validation_result.js +0 -0
  803. package/build/mcp/generated/signal_agent_input.d.ts +0 -0
  804. package/build/mcp/generated/signal_agent_input.js +0 -0
  805. package/build/mcp/generated/skillpack_file.d.ts +18 -18
  806. package/build/mcp/generated/skillpack_file.js +0 -0
  807. package/build/mcp/generated/skills_input.d.ts +2 -2
  808. package/build/mcp/generated/skills_input.js +0 -0
  809. package/build/mcp/generated/skills_output.d.ts +20 -20
  810. package/build/mcp/generated/skills_output.js +0 -0
  811. package/build/mcp/generated/spec_expansion_file.d.ts +12 -12
  812. package/build/mcp/generated/spec_expansion_file.js +0 -0
  813. package/build/mcp/generated/spec_high_ask_queue_items_file.d.ts +35 -35
  814. package/build/mcp/generated/spec_high_ask_queue_items_file.js +0 -0
  815. package/build/mcp/generated/spec_high_clinic_bridge_output.d.ts +0 -0
  816. package/build/mcp/generated/spec_high_clinic_bridge_output.js +0 -0
  817. package/build/mcp/generated/spec_high_decision_draft_output.d.ts +0 -0
  818. package/build/mcp/generated/spec_high_decision_draft_output.js +0 -0
  819. package/build/mcp/generated/spec_high_validate_output.d.ts +2 -2
  820. package/build/mcp/generated/spec_high_validate_output.js +0 -0
  821. package/build/mcp/generated/status_input.d.ts +0 -0
  822. package/build/mcp/generated/status_input.js +0 -0
  823. package/build/mcp/generated/status_output.d.ts +100 -67
  824. package/build/mcp/generated/status_output.js +142 -65
  825. package/build/mcp/generated/submit_decision_input.d.ts +9 -0
  826. package/build/mcp/generated/submit_decision_input.js +1 -1
  827. package/build/mcp/generated/submit_decision_output.d.ts +2 -2
  828. package/build/mcp/generated/submit_decision_output.js +0 -0
  829. package/build/mcp/generated/tool_error_output.d.ts +2 -2
  830. package/build/mcp/generated/tool_error_output.js +0 -0
  831. package/build/mcp/generated/undo_last_task_input.d.ts +0 -0
  832. package/build/mcp/generated/undo_last_task_input.js +0 -0
  833. package/build/mcp/generated/undo_last_task_output.d.ts +0 -0
  834. package/build/mcp/generated/undo_last_task_output.js +0 -0
  835. package/build/mcp/generated/update_input.d.ts +2 -2
  836. package/build/mcp/generated/update_input.js +0 -0
  837. package/build/mcp/generated/update_output.d.ts +8 -8
  838. package/build/mcp/generated/update_output.js +0 -0
  839. package/build/mcp/generated/verification_steps.d.ts +20 -20
  840. package/build/mcp/generated/verification_steps.js +0 -0
  841. package/build/mcp/generated/vibe_pm_inspection_result.d.ts +0 -0
  842. package/build/mcp/generated/vibe_pm_inspection_result.js +0 -0
  843. package/build/mcp/generated/vibe_pm_report_markdown.d.ts +0 -0
  844. package/build/mcp/generated/vibe_pm_report_markdown.js +0 -0
  845. package/build/mcp/generated/vibe_pm_verdict.d.ts +2 -2
  846. package/build/mcp/generated/vibe_pm_verdict.js +0 -0
  847. package/build/mcp/generated/vibe_repo_config.d.ts +22 -22
  848. package/build/mcp/generated/vibe_repo_config.js +0 -0
  849. package/build/mcp/generated/vibecoding_helper_answer_output.d.ts +0 -0
  850. package/build/mcp/generated/vibecoding_helper_answer_output.js +0 -0
  851. package/build/mcp/generated/vibecoding_helper_one_loop_selection_output.d.ts +10 -10
  852. package/build/mcp/generated/vibecoding_helper_one_loop_selection_output.js +0 -0
  853. package/build/mcp/generated/vibecoding_helper_show_ask_queue_output.d.ts +8 -8
  854. package/build/mcp/generated/vibecoding_helper_show_ask_queue_output.js +0 -0
  855. package/build/mcp/generated/work_order_v1.d.ts +0 -0
  856. package/build/mcp/generated/work_order_v1.js +0 -0
  857. package/build/mcp/generated/zoekt_evidence_input.d.ts +0 -0
  858. package/build/mcp/generated/zoekt_evidence_input.js +0 -0
  859. package/build/mcp/generated/zoekt_evidence_output.d.ts +2 -2
  860. package/build/mcp/generated/zoekt_evidence_output.js +0 -0
  861. package/build/mcp/hive-bridge/client.d.ts +19 -0
  862. package/build/mcp/hive-bridge/client.js +40 -0
  863. package/build/mcp/hive-bridge/index.d.ts +9 -0
  864. package/build/mcp/hive-bridge/index.js +9 -0
  865. package/build/mcp/hive-bridge/tools/file_list.d.ts +31 -0
  866. package/build/mcp/hive-bridge/tools/file_list.js +35 -0
  867. package/build/mcp/hive-bridge/tools/file_read.d.ts +31 -0
  868. package/build/mcp/hive-bridge/tools/file_read.js +35 -0
  869. package/build/mcp/hive-bridge/tools/index.d.ts +13 -0
  870. package/build/mcp/hive-bridge/tools/index.js +15 -0
  871. package/build/mcp/hive-bridge/tools/nodes.d.ts +19 -0
  872. package/build/mcp/hive-bridge/tools/nodes.js +30 -0
  873. package/build/mcp/hive-bridge/tools/run_command.d.ts +36 -0
  874. package/build/mcp/hive-bridge/tools/run_command.js +39 -0
  875. package/build/mcp/hive-bridge/tools/submit_job.d.ts +36 -0
  876. package/build/mcp/hive-bridge/tools/submit_job.js +40 -0
  877. package/build/mcp/index.d.ts +0 -0
  878. package/build/mcp/index.js +118 -55
  879. package/build/mcp/legacy_alias.d.ts +0 -0
  880. package/build/mcp/legacy_alias.js +0 -0
  881. package/build/mcp/mcp-logger.d.ts +13 -0
  882. package/build/mcp/mcp-logger.js +18 -0
  883. package/build/mcp/metrics/collector.d.ts +27 -0
  884. package/build/mcp/metrics/collector.js +19 -3
  885. package/build/mcp/metrics/index.d.ts +2 -1
  886. package/build/mcp/metrics/index.js +1 -1
  887. package/build/mcp/metrics/server.d.ts +0 -0
  888. package/build/mcp/metrics/server.js +8 -1
  889. package/build/mcp/metrics/types.d.ts +0 -0
  890. package/build/mcp/metrics/types.js +0 -0
  891. package/build/mcp/musu-bridge/client.d.ts +13 -0
  892. package/build/mcp/musu-bridge/client.js +53 -0
  893. package/build/mcp/musu-bridge/index.d.ts +9 -0
  894. package/build/mcp/musu-bridge/index.js +9 -0
  895. package/build/mcp/musu-bridge/tools/dispatch.d.ts +36 -0
  896. package/build/mcp/musu-bridge/tools/dispatch.js +38 -0
  897. package/build/mcp/musu-bridge/tools/fleet.d.ts +26 -0
  898. package/build/mcp/musu-bridge/tools/fleet.js +27 -0
  899. package/build/mcp/musu-bridge/tools/gateway.d.ts +19 -0
  900. package/build/mcp/musu-bridge/tools/gateway.js +21 -0
  901. package/build/mcp/musu-bridge/tools/index.d.ts +14 -0
  902. package/build/mcp/musu-bridge/tools/index.js +17 -0
  903. package/build/mcp/musu-bridge/tools/knowledge.d.ts +31 -0
  904. package/build/mcp/musu-bridge/tools/knowledge.js +33 -0
  905. package/build/mcp/musu-bridge/tools/run.d.ts +31 -0
  906. package/build/mcp/musu-bridge/tools/run.js +33 -0
  907. package/build/mcp/musu-bridge/tools/status.d.ts +19 -0
  908. package/build/mcp/musu-bridge/tools/status.js +21 -0
  909. package/build/mcp/packs/catalog.d.ts +23 -0
  910. package/build/mcp/packs/catalog.js +115 -0
  911. package/build/mcp/packs/index.d.ts +2 -0
  912. package/build/mcp/packs/index.js +2 -0
  913. package/build/mcp/packs/resolver.d.ts +9 -0
  914. package/build/mcp/packs/resolver.js +38 -0
  915. package/build/mcp/path-utils.d.ts +0 -0
  916. package/build/mcp/path-utils.js +0 -0
  917. package/build/mcp/policy/context.d.ts +7 -0
  918. package/build/mcp/policy/context.js +8 -0
  919. package/build/mcp/policy/index.d.ts +0 -0
  920. package/build/mcp/policy/index.js +0 -0
  921. package/build/mcp/policy/loader.d.ts +0 -0
  922. package/build/mcp/policy/loader.js +0 -0
  923. package/build/mcp/policy/requirements.d.ts +16 -0
  924. package/build/mcp/policy/requirements.js +19 -0
  925. package/build/mcp/policy/schema.d.ts +70 -70
  926. package/build/mcp/policy/schema.js +0 -0
  927. package/build/mcp/policy/unified.d.ts +14 -0
  928. package/build/mcp/policy/unified.js +148 -0
  929. package/build/mcp/preprocess.d.ts +0 -0
  930. package/build/mcp/preprocess.js +0 -0
  931. package/build/mcp/profile-config.d.ts +19 -4
  932. package/build/mcp/profile-config.js +115 -57
  933. package/build/mcp/progress.d.ts +14 -0
  934. package/build/mcp/progress.js +39 -0
  935. package/build/mcp/prompts/agent_personas.d.ts +9 -0
  936. package/build/mcp/prompts/agent_personas.js +140 -0
  937. package/build/mcp/prompts/prime_persona.d.ts +11 -0
  938. package/build/mcp/prompts/prime_persona.js +92 -0
  939. package/build/mcp/prompts/vibe.d.ts +2 -0
  940. package/build/mcp/prompts/vibe.js +62 -0
  941. package/build/mcp/recipe/catalog.d.ts +3 -0
  942. package/build/mcp/recipe/catalog.js +30 -0
  943. package/build/mcp/recipe/index.d.ts +4 -0
  944. package/build/mcp/recipe/index.js +3 -0
  945. package/build/mcp/recipe/renderer.d.ts +2 -0
  946. package/build/mcp/recipe/renderer.js +138 -0
  947. package/build/mcp/recipe/types.d.ts +98 -0
  948. package/build/mcp/recipe/types.js +42 -0
  949. package/build/mcp/resources/vibe.d.ts +2 -0
  950. package/build/mcp/resources/vibe.js +104 -0
  951. package/build/mcp/router/artifacts.d.ts +2 -2
  952. package/build/mcp/router/artifacts.js +11 -11
  953. package/build/mcp/router/decide.d.ts +0 -0
  954. package/build/mcp/router/decide.js +0 -0
  955. package/build/mcp/router/index.d.ts +0 -0
  956. package/build/mcp/router/index.js +0 -0
  957. package/build/mcp/router/rules.d.ts +2 -2
  958. package/build/mcp/router/rules.js +7 -7
  959. package/build/mcp/router/types.d.ts +0 -0
  960. package/build/mcp/router/types.js +0 -0
  961. package/build/mcp/run-retention.d.ts +0 -0
  962. package/build/mcp/run-retention.js +10 -10
  963. package/build/mcp/runtime/engine_http_client.d.ts +20 -0
  964. package/build/mcp/runtime/engine_http_client.js +66 -0
  965. package/build/mcp/runtime/helper_commands.d.ts +0 -0
  966. package/build/mcp/runtime/helper_commands.js +0 -0
  967. package/build/mcp/runtime/helper_invoker.d.ts +1 -1
  968. package/build/mcp/runtime/helper_invoker.js +168 -14
  969. package/build/mcp/runtime/helper_resolver.d.ts +10 -1
  970. package/build/mcp/runtime/helper_resolver.js +64 -16
  971. package/build/mcp/runtime/index.d.ts +3 -1
  972. package/build/mcp/runtime/index.js +3 -1
  973. package/build/mcp/runtime/vpm_back_client.d.ts +53 -0
  974. package/build/mcp/runtime/vpm_back_client.js +34 -0
  975. package/build/mcp/security/input-validator.d.ts +0 -0
  976. package/build/mcp/security/input-validator.js +0 -0
  977. package/build/mcp/security/path-policy.d.ts +0 -0
  978. package/build/mcp/security/path-policy.js +0 -0
  979. package/build/mcp/security/sandbox.d.ts +9 -6
  980. package/build/mcp/security/sandbox.js +72 -101
  981. package/build/mcp/skills/deps.d.ts +11 -0
  982. package/build/mcp/skills/deps.js +21 -0
  983. package/build/mcp/skills/lazy.d.ts +14 -0
  984. package/build/mcp/skills/lazy.js +48 -0
  985. package/build/mcp/tool-handler-registry.d.ts +28 -0
  986. package/build/mcp/tool-handler-registry.js +36 -0
  987. package/build/mcp/tool-registry.d.ts +4 -1
  988. package/build/mcp/tool-registry.js +342 -44
  989. package/build/mcp/tools/agents.d.ts +173 -0
  990. package/build/mcp/tools/agents.js +303 -0
  991. package/build/mcp/tools/bitnet/api.d.ts +166 -0
  992. package/build/mcp/tools/bitnet/api.js +519 -0
  993. package/build/mcp/tools/bitnet/context.d.ts +4 -0
  994. package/build/mcp/tools/bitnet/context.js +62 -0
  995. package/build/mcp/tools/bitnet/git.d.ts +1 -0
  996. package/build/mcp/tools/bitnet/git.js +10 -0
  997. package/build/mcp/tools/bitnet/index.d.ts +10 -491
  998. package/build/mcp/tools/bitnet/index.js +11 -746
  999. package/build/mcp/tools/bitnet/rules.d.ts +4 -0
  1000. package/build/mcp/tools/bitnet/rules.js +175 -0
  1001. package/build/mcp/tools/bitnet/schemas.d.ts +450 -0
  1002. package/build/mcp/tools/bitnet/schemas.js +147 -0
  1003. package/build/mcp/tools/bitnet/scout_diagnosis.d.ts +34 -0
  1004. package/build/mcp/tools/bitnet/scout_diagnosis.js +82 -0
  1005. package/build/mcp/tools/bitnet/trace_store.d.ts +9 -0
  1006. package/build/mcp/tools/bitnet/trace_store.js +91 -0
  1007. package/build/mcp/tools/bitnet/types.d.ts +44 -0
  1008. package/build/mcp/tools/bitnet/types.js +15 -0
  1009. package/build/mcp/tools/shared/boundary_errors.d.ts +33 -0
  1010. package/build/mcp/tools/shared/boundary_errors.js +41 -0
  1011. package/build/mcp/tools/shared/tier_facade.d.ts +55 -0
  1012. package/build/mcp/tools/shared/tier_facade.js +91 -0
  1013. package/build/mcp/tools/templates/apply.d.ts +122 -0
  1014. package/build/mcp/tools/templates/apply.js +173 -0
  1015. package/build/mcp/tools/templates/catalog.d.ts +12 -0
  1016. package/build/mcp/tools/templates/catalog.js +132 -0
  1017. package/build/mcp/tools/templates/detail.d.ts +51 -0
  1018. package/build/mcp/tools/templates/detail.js +58 -0
  1019. package/build/mcp/tools/templates/helpers.d.ts +52 -0
  1020. package/build/mcp/tools/templates/helpers.js +247 -0
  1021. package/build/mcp/tools/templates/index.d.ts +15 -0
  1022. package/build/mcp/tools/templates/index.js +15 -0
  1023. package/build/mcp/tools/templates/list.d.ts +41 -0
  1024. package/build/mcp/tools/templates/list.js +69 -0
  1025. package/build/mcp/tools/templates/run_maintenance.d.ts +68 -0
  1026. package/build/mcp/tools/templates/run_maintenance.js +120 -0
  1027. package/build/mcp/tools/templates/run_recover.d.ts +87 -0
  1028. package/build/mcp/tools/templates/run_recover.js +261 -0
  1029. package/build/mcp/tools/templates/run_start.d.ts +144 -0
  1030. package/build/mcp/tools/templates/run_start.js +140 -0
  1031. package/build/mcp/tools/templates/run_status.d.ts +103 -0
  1032. package/build/mcp/tools/templates/run_status.js +120 -0
  1033. package/build/mcp/tools/templates/screenshot.d.ts +10 -0
  1034. package/build/mcp/tools/templates/screenshot.js +104 -0
  1035. package/build/mcp/tools/templates/types.d.ts +163 -0
  1036. package/build/mcp/tools/templates/types.js +5 -0
  1037. package/build/mcp/tools/templates/validate.d.ts +5 -0
  1038. package/build/mcp/tools/templates/validate.js +82 -0
  1039. package/build/mcp/tools/templates/validate_tool.d.ts +49 -0
  1040. package/build/mcp/tools/templates/validate_tool.js +77 -0
  1041. package/build/mcp/tools/vibe_pm/agent.d.ts +60 -0
  1042. package/build/mcp/tools/vibe_pm/agent.js +973 -0
  1043. package/build/mcp/tools/vibe_pm/ask-queue/index.d.ts +0 -0
  1044. package/build/mcp/tools/vibe_pm/ask-queue/index.js +0 -0
  1045. package/build/mcp/tools/vibe_pm/ask-queue/loader.d.ts +0 -0
  1046. package/build/mcp/tools/vibe_pm/ask-queue/loader.js +0 -0
  1047. package/build/mcp/tools/vibe_pm/ask-queue/transformer.d.ts +0 -0
  1048. package/build/mcp/tools/vibe_pm/ask-queue/transformer.js +0 -0
  1049. package/build/mcp/tools/vibe_pm/ask-queue/types.d.ts +0 -0
  1050. package/build/mcp/tools/vibe_pm/ask-queue/types.js +0 -0
  1051. package/build/mcp/tools/vibe_pm/auto-init.d.ts +0 -0
  1052. package/build/mcp/tools/vibe_pm/auto-init.js +2 -1
  1053. package/build/mcp/tools/vibe_pm/autopilot.d.ts +13 -2
  1054. package/build/mcp/tools/vibe_pm/autopilot.js +72 -13
  1055. package/build/mcp/tools/vibe_pm/bitnet-cache.d.ts +6 -7
  1056. package/build/mcp/tools/vibe_pm/bitnet-cache.js +37 -37
  1057. package/build/mcp/tools/vibe_pm/bitnet-ensure.d.ts +0 -0
  1058. package/build/mcp/tools/vibe_pm/bitnet-ensure.js +0 -0
  1059. package/build/mcp/tools/vibe_pm/bitnet-hook-consumer.d.ts +0 -0
  1060. package/build/mcp/tools/vibe_pm/bitnet-hook-consumer.js +4 -3
  1061. package/build/mcp/tools/vibe_pm/bitnet-runner.d.ts +0 -0
  1062. package/build/mcp/tools/vibe_pm/bitnet-runner.js +2 -5
  1063. package/build/mcp/tools/vibe_pm/block_events.d.ts +37 -0
  1064. package/build/mcp/tools/vibe_pm/block_events.js +86 -0
  1065. package/build/mcp/tools/vibe_pm/block_search.d.ts +36 -0
  1066. package/build/mcp/tools/vibe_pm/block_search.js +79 -0
  1067. package/build/mcp/tools/vibe_pm/block_snapshot.d.ts +43 -0
  1068. package/build/mcp/tools/vibe_pm/block_snapshot.js +167 -0
  1069. package/build/mcp/tools/vibe_pm/branch_pivot.d.ts +19 -0
  1070. package/build/mcp/tools/vibe_pm/branch_pivot.js +85 -0
  1071. package/build/mcp/tools/vibe_pm/briefing.d.ts +4 -2
  1072. package/build/mcp/tools/vibe_pm/briefing.js +56 -33
  1073. package/build/mcp/tools/vibe_pm/check_dormant.d.ts +13 -0
  1074. package/build/mcp/tools/vibe_pm/check_dormant.js +67 -0
  1075. package/build/mcp/tools/vibe_pm/check_resources.d.ts +10 -0
  1076. package/build/mcp/tools/vibe_pm/check_resources.js +30 -0
  1077. package/build/mcp/tools/vibe_pm/context.d.ts +1 -1
  1078. package/build/mcp/tools/vibe_pm/context.js +60 -60
  1079. package/build/mcp/tools/vibe_pm/create_work_order.d.ts +2 -2
  1080. package/build/mcp/tools/vibe_pm/create_work_order.js +120 -69
  1081. package/build/mcp/tools/vibe_pm/dashboard.d.ts +0 -0
  1082. package/build/mcp/tools/vibe_pm/dashboard.js +4 -4
  1083. package/build/mcp/tools/vibe_pm/decision-history.d.ts +30 -0
  1084. package/build/mcp/tools/vibe_pm/decision-history.js +58 -0
  1085. package/build/mcp/tools/vibe_pm/decision-log.d.ts +0 -0
  1086. package/build/mcp/tools/vibe_pm/decision-log.js +0 -0
  1087. package/build/mcp/tools/vibe_pm/diagrams/animator.d.ts +0 -0
  1088. package/build/mcp/tools/vibe_pm/diagrams/animator.js +0 -0
  1089. package/build/mcp/tools/vibe_pm/diagrams/annotations.d.ts +6 -0
  1090. package/build/mcp/tools/vibe_pm/diagrams/annotations.js +102 -0
  1091. package/build/mcp/tools/vibe_pm/diagrams/constants.d.ts +0 -0
  1092. package/build/mcp/tools/vibe_pm/diagrams/constants.js +66 -66
  1093. package/build/mcp/tools/vibe_pm/diagrams/gate_engine.d.ts +0 -0
  1094. package/build/mcp/tools/vibe_pm/diagrams/gate_engine.js +0 -0
  1095. package/build/mcp/tools/vibe_pm/diagrams/generator.d.ts +8 -4
  1096. package/build/mcp/tools/vibe_pm/diagrams/generator.js +53 -51
  1097. package/build/mcp/tools/vibe_pm/diagrams/index.d.ts +0 -0
  1098. package/build/mcp/tools/vibe_pm/diagrams/index.js +0 -0
  1099. package/build/mcp/tools/vibe_pm/diagrams/manifest.d.ts +5 -2
  1100. package/build/mcp/tools/vibe_pm/diagrams/manifest.js +32 -22
  1101. package/build/mcp/tools/vibe_pm/diagrams/mermaid_generator.d.ts +0 -0
  1102. package/build/mcp/tools/vibe_pm/diagrams/mermaid_generator.js +0 -0
  1103. package/build/mcp/tools/vibe_pm/diagrams/renderer.d.ts +6 -2
  1104. package/build/mcp/tools/vibe_pm/diagrams/renderer.js +127 -16
  1105. package/build/mcp/tools/vibe_pm/diagrams/types.d.ts +35 -9
  1106. package/build/mcp/tools/vibe_pm/diagrams/types.js +0 -0
  1107. package/build/mcp/tools/vibe_pm/diagrams/unified_verdict.d.ts +24 -0
  1108. package/build/mcp/tools/vibe_pm/diagrams/unified_verdict.js +61 -0
  1109. package/build/mcp/tools/vibe_pm/dirty-scan.d.ts +0 -0
  1110. package/build/mcp/tools/vibe_pm/dirty-scan.js +0 -0
  1111. package/build/mcp/tools/vibe_pm/docs_structure.d.ts +3 -3
  1112. package/build/mcp/tools/vibe_pm/docs_structure.js +22 -20
  1113. package/build/mcp/tools/vibe_pm/doctor.d.ts +26 -2
  1114. package/build/mcp/tools/vibe_pm/doctor.js +290 -28
  1115. package/build/mcp/tools/vibe_pm/engine-errors/index.d.ts +0 -0
  1116. package/build/mcp/tools/vibe_pm/engine-errors/index.js +0 -0
  1117. package/build/mcp/tools/vibe_pm/engine-errors/normalizer.d.ts +0 -0
  1118. package/build/mcp/tools/vibe_pm/engine-errors/normalizer.js +0 -0
  1119. package/build/mcp/tools/vibe_pm/engine-errors/patterns.d.ts +0 -0
  1120. package/build/mcp/tools/vibe_pm/engine-errors/patterns.js +0 -0
  1121. package/build/mcp/tools/vibe_pm/engine-errors/types.d.ts +0 -0
  1122. package/build/mcp/tools/vibe_pm/engine-errors/types.js +0 -0
  1123. package/build/mcp/tools/vibe_pm/facts/collector.d.ts +1 -1
  1124. package/build/mcp/tools/vibe_pm/facts/collector.js +56 -56
  1125. package/build/mcp/tools/vibe_pm/facts/index.d.ts +0 -0
  1126. package/build/mcp/tools/vibe_pm/facts/index.js +0 -0
  1127. package/build/mcp/tools/vibe_pm/facts/types.d.ts +0 -0
  1128. package/build/mcp/tools/vibe_pm/facts/types.js +0 -0
  1129. package/build/mcp/tools/vibe_pm/failure/classifier.d.ts +0 -0
  1130. package/build/mcp/tools/vibe_pm/failure/classifier.js +0 -0
  1131. package/build/mcp/tools/vibe_pm/failure/index.d.ts +0 -0
  1132. package/build/mcp/tools/vibe_pm/failure/index.js +0 -0
  1133. package/build/mcp/tools/vibe_pm/failure/loop_diagnose.d.ts +0 -0
  1134. package/build/mcp/tools/vibe_pm/failure/loop_diagnose.js +0 -0
  1135. package/build/mcp/tools/vibe_pm/failure/tracker.d.ts +0 -0
  1136. package/build/mcp/tools/vibe_pm/failure/tracker.js +0 -0
  1137. package/build/mcp/tools/vibe_pm/failure/types.d.ts +0 -0
  1138. package/build/mcp/tools/vibe_pm/failure/types.js +0 -0
  1139. package/build/mcp/tools/vibe_pm/feature-flags.d.ts +0 -0
  1140. package/build/mcp/tools/vibe_pm/feature-flags.js +0 -0
  1141. package/build/mcp/tools/vibe_pm/finalize_work.d.ts +19 -0
  1142. package/build/mcp/tools/vibe_pm/finalize_work.js +78 -0
  1143. package/build/mcp/tools/vibe_pm/flow_policy.d.ts +0 -0
  1144. package/build/mcp/tools/vibe_pm/flow_policy.js +2 -0
  1145. package/build/mcp/tools/vibe_pm/get_decision.d.ts +0 -0
  1146. package/build/mcp/tools/vibe_pm/get_decision.js +2 -1
  1147. package/build/mcp/tools/vibe_pm/get_result.d.ts +0 -0
  1148. package/build/mcp/tools/vibe_pm/get_result.js +0 -0
  1149. package/build/mcp/tools/vibe_pm/human_tools.d.ts +51 -0
  1150. package/build/mcp/tools/vibe_pm/human_tools.js +280 -0
  1151. package/build/mcp/tools/vibe_pm/index.d.ts +690 -245
  1152. package/build/mcp/tools/vibe_pm/index.js +438 -728
  1153. package/build/mcp/tools/vibe_pm/ingress.d.ts +4 -4
  1154. package/build/mcp/tools/vibe_pm/ingress.js +73 -97
  1155. package/build/mcp/tools/vibe_pm/init_docs.d.ts +0 -0
  1156. package/build/mcp/tools/vibe_pm/init_docs.js +2 -2
  1157. package/build/mcp/tools/vibe_pm/inspect_code/cockpit.d.ts +12 -0
  1158. package/build/mcp/tools/vibe_pm/inspect_code/cockpit.js +88 -0
  1159. package/build/mcp/tools/vibe_pm/inspect_code/core.d.ts +16 -0
  1160. package/build/mcp/tools/vibe_pm/inspect_code/core.js +621 -0
  1161. package/build/mcp/tools/vibe_pm/inspect_code/helpers.d.ts +23 -0
  1162. package/build/mcp/tools/vibe_pm/inspect_code/helpers.js +146 -0
  1163. package/build/mcp/tools/vibe_pm/inspect_code/index.d.ts +4 -0
  1164. package/build/mcp/tools/vibe_pm/inspect_code/index.js +4 -0
  1165. package/build/mcp/tools/vibe_pm/inspect_code/tier.d.ts +38 -0
  1166. package/build/mcp/tools/vibe_pm/inspect_code/tier.js +100 -0
  1167. package/build/mcp/tools/vibe_pm/inspect_code/types.d.ts +30 -0
  1168. package/build/mcp/tools/vibe_pm/inspect_code/types.js +4 -0
  1169. package/build/mcp/tools/vibe_pm/intent_parser.d.ts +50 -0
  1170. package/build/mcp/tools/vibe_pm/intent_parser.js +131 -0
  1171. package/build/mcp/tools/vibe_pm/intent_status.d.ts +45 -0
  1172. package/build/mcp/tools/vibe_pm/intent_status.js +64 -0
  1173. package/build/mcp/tools/vibe_pm/knowledge_search.d.ts +22 -0
  1174. package/build/mcp/tools/vibe_pm/knowledge_search.js +51 -0
  1175. package/build/mcp/tools/vibe_pm/mapping/change_map.d.ts +0 -0
  1176. package/build/mcp/tools/vibe_pm/mapping/change_map.js +0 -0
  1177. package/build/mcp/tools/vibe_pm/mapping/diff_scan.d.ts +0 -0
  1178. package/build/mcp/tools/vibe_pm/mapping/diff_scan.js +0 -0
  1179. package/build/mcp/tools/vibe_pm/mapping/gate_judge.d.ts +0 -0
  1180. package/build/mcp/tools/vibe_pm/mapping/gate_judge.js +0 -0
  1181. package/build/mcp/tools/vibe_pm/mapping/import_scan.d.ts +0 -0
  1182. package/build/mcp/tools/vibe_pm/mapping/import_scan.js +0 -0
  1183. package/build/mcp/tools/vibe_pm/mapping/index.d.ts +1 -1
  1184. package/build/mcp/tools/vibe_pm/mapping/index.js +1 -1
  1185. package/build/mcp/tools/vibe_pm/mapping/orchestrator.d.ts +20 -7
  1186. package/build/mcp/tools/vibe_pm/mapping/orchestrator.js +208 -61
  1187. package/build/mcp/tools/vibe_pm/mapping/rebinder/evidence_collector.d.ts +35 -0
  1188. package/build/mcp/tools/vibe_pm/mapping/rebinder/evidence_collector.js +214 -0
  1189. package/build/mcp/tools/vibe_pm/mapping/rebinder/index.d.ts +10 -0
  1190. package/build/mcp/tools/vibe_pm/mapping/rebinder/index.js +9 -0
  1191. package/build/mcp/tools/vibe_pm/mapping/rebinder/pattern_detector.d.ts +38 -0
  1192. package/build/mcp/tools/vibe_pm/mapping/rebinder/pattern_detector.js +226 -0
  1193. package/build/mcp/tools/vibe_pm/mapping/rebinder/proposal_builder.d.ts +20 -0
  1194. package/build/mcp/tools/vibe_pm/mapping/rebinder/proposal_builder.js +246 -0
  1195. package/build/mcp/tools/vibe_pm/mapping/rebinder/rebinder.d.ts +24 -0
  1196. package/build/mcp/tools/vibe_pm/mapping/rebinder/rebinder.js +65 -0
  1197. package/build/mcp/tools/vibe_pm/mapping/rebinder/rebinder_types.d.ts +113 -0
  1198. package/build/mcp/tools/vibe_pm/mapping/rebinder/rebinder_types.js +15 -0
  1199. package/build/mcp/tools/vibe_pm/mapping/skeleton_patch.d.ts +0 -0
  1200. package/build/mcp/tools/vibe_pm/mapping/skeleton_patch.js +0 -0
  1201. package/build/mcp/tools/vibe_pm/mapping/spec_map.d.ts +1 -1
  1202. package/build/mcp/tools/vibe_pm/mapping/spec_map.js +10 -10
  1203. package/build/mcp/tools/vibe_pm/mapping/types.d.ts +0 -0
  1204. package/build/mcp/tools/vibe_pm/mapping/types.js +0 -0
  1205. package/build/mcp/tools/vibe_pm/memory.d.ts +2 -2
  1206. package/build/mcp/tools/vibe_pm/memory.js +0 -0
  1207. package/build/mcp/tools/vibe_pm/memory_backend.d.ts +6 -5
  1208. package/build/mcp/tools/vibe_pm/memory_backend.js +62 -34
  1209. package/build/mcp/tools/vibe_pm/memory_docs_root.d.ts +0 -0
  1210. package/build/mcp/tools/vibe_pm/memory_docs_root.js +0 -0
  1211. package/build/mcp/tools/vibe_pm/memory_index.d.ts +0 -0
  1212. package/build/mcp/tools/vibe_pm/memory_index.js +0 -0
  1213. package/build/mcp/tools/vibe_pm/memory_index_embeddings.d.ts +0 -0
  1214. package/build/mcp/tools/vibe_pm/memory_index_embeddings.js +0 -0
  1215. package/build/mcp/tools/vibe_pm/memory_index_hashvec.d.ts +0 -0
  1216. package/build/mcp/tools/vibe_pm/memory_index_hashvec.js +0 -0
  1217. package/build/mcp/tools/vibe_pm/memory_index_lancedb.d.ts +38 -0
  1218. package/build/mcp/tools/vibe_pm/memory_index_lancedb.js +125 -0
  1219. package/build/mcp/tools/vibe_pm/memory_rerank.d.ts +0 -0
  1220. package/build/mcp/tools/vibe_pm/memory_rerank.js +0 -0
  1221. package/build/mcp/tools/vibe_pm/memory_retrieve.d.ts +3 -3
  1222. package/build/mcp/tools/vibe_pm/memory_retrieve.js +60 -44
  1223. package/build/mcp/tools/vibe_pm/memory_status.d.ts +2 -2
  1224. package/build/mcp/tools/vibe_pm/memory_status.js +39 -31
  1225. package/build/mcp/tools/vibe_pm/memory_sync.d.ts +2 -2
  1226. package/build/mcp/tools/vibe_pm/memory_sync.js +64 -40
  1227. package/build/mcp/tools/vibe_pm/modules/fix_dependencies.d.ts +0 -0
  1228. package/build/mcp/tools/vibe_pm/modules/fix_dependencies.js +0 -0
  1229. package/build/mcp/tools/vibe_pm/modules/fix_imports.d.ts +1 -1
  1230. package/build/mcp/tools/vibe_pm/modules/fix_imports.js +80 -81
  1231. package/build/mcp/tools/vibe_pm/modules/fix_lint.d.ts +0 -0
  1232. package/build/mcp/tools/vibe_pm/modules/fix_lint.js +0 -0
  1233. package/build/mcp/tools/vibe_pm/modules/one_loop.d.ts +0 -0
  1234. package/build/mcp/tools/vibe_pm/modules/one_loop.js +0 -0
  1235. package/build/mcp/tools/vibe_pm/navigation/index.d.ts +0 -0
  1236. package/build/mcp/tools/vibe_pm/navigation/index.js +0 -0
  1237. package/build/mcp/tools/vibe_pm/navigation/resolver.d.ts +0 -0
  1238. package/build/mcp/tools/vibe_pm/navigation/resolver.js +0 -0
  1239. package/build/mcp/tools/vibe_pm/navigation/rules.d.ts +0 -0
  1240. package/build/mcp/tools/vibe_pm/navigation/rules.js +0 -0
  1241. package/build/mcp/tools/vibe_pm/navigation/types.d.ts +0 -0
  1242. package/build/mcp/tools/vibe_pm/navigation/types.js +0 -0
  1243. package/build/mcp/tools/vibe_pm/nudge.d.ts +31 -0
  1244. package/build/mcp/tools/vibe_pm/nudge.js +163 -0
  1245. package/build/mcp/tools/vibe_pm/observer.d.ts +22 -9
  1246. package/build/mcp/tools/vibe_pm/observer.js +161 -48
  1247. package/build/mcp/tools/vibe_pm/phase.d.ts +2 -2
  1248. package/build/mcp/tools/vibe_pm/phase.js +69 -63
  1249. package/build/mcp/tools/vibe_pm/pm_language.d.ts +0 -0
  1250. package/build/mcp/tools/vibe_pm/pm_language.js +0 -0
  1251. package/build/mcp/tools/vibe_pm/policy/config.d.ts +0 -0
  1252. package/build/mcp/tools/vibe_pm/policy/config.js +0 -0
  1253. package/build/mcp/tools/vibe_pm/policy/index.d.ts +0 -0
  1254. package/build/mcp/tools/vibe_pm/policy/index.js +0 -0
  1255. package/build/mcp/tools/vibe_pm/policy/recommender.d.ts +0 -0
  1256. package/build/mcp/tools/vibe_pm/policy/recommender.js +0 -0
  1257. package/build/mcp/tools/vibe_pm/policy/types.d.ts +0 -0
  1258. package/build/mcp/tools/vibe_pm/policy/types.js +0 -0
  1259. package/build/mcp/tools/vibe_pm/prime_tools.d.ts +160 -0
  1260. package/build/mcp/tools/vibe_pm/prime_tools.js +381 -0
  1261. package/build/mcp/tools/vibe_pm/ralph-loop-tools.d.ts +3 -1
  1262. package/build/mcp/tools/vibe_pm/ralph-loop-tools.js +3 -3
  1263. package/build/mcp/tools/vibe_pm/reexports.d.ts +27 -0
  1264. package/build/mcp/tools/vibe_pm/reexports.js +14 -0
  1265. package/build/mcp/tools/vibe_pm/repair_plan.d.ts +13 -0
  1266. package/build/mcp/tools/vibe_pm/repair_plan.js +67 -0
  1267. package/build/mcp/tools/vibe_pm/scaffold.d.ts +6 -6
  1268. package/build/mcp/tools/vibe_pm/scaffold.js +0 -0
  1269. package/build/mcp/tools/vibe_pm/schema-adapter.d.ts +0 -0
  1270. package/build/mcp/tools/vibe_pm/schema-adapter.js +0 -0
  1271. package/build/mcp/tools/vibe_pm/scorecard/index.d.ts +0 -0
  1272. package/build/mcp/tools/vibe_pm/scorecard/index.js +0 -0
  1273. package/build/mcp/tools/vibe_pm/scorecard/types.d.ts +0 -0
  1274. package/build/mcp/tools/vibe_pm/scorecard/types.js +0 -0
  1275. package/build/mcp/tools/vibe_pm/scorecard/writer.d.ts +0 -0
  1276. package/build/mcp/tools/vibe_pm/scorecard/writer.js +2 -1
  1277. package/build/mcp/tools/vibe_pm/scout.d.ts +23 -0
  1278. package/build/mcp/tools/vibe_pm/scout.js +224 -0
  1279. package/build/mcp/tools/vibe_pm/setup.d.ts +3 -0
  1280. package/build/mcp/tools/vibe_pm/setup.js +184 -34
  1281. package/build/mcp/tools/vibe_pm/signals/index.d.ts +0 -0
  1282. package/build/mcp/tools/vibe_pm/signals/index.js +0 -0
  1283. package/build/mcp/tools/vibe_pm/signals/logger.d.ts +0 -0
  1284. package/build/mcp/tools/vibe_pm/signals/logger.js +2 -1
  1285. package/build/mcp/tools/vibe_pm/signals/rotation.d.ts +0 -0
  1286. package/build/mcp/tools/vibe_pm/signals/rotation.js +3 -2
  1287. package/build/mcp/tools/vibe_pm/signals/types.d.ts +1 -1
  1288. package/build/mcp/tools/vibe_pm/signals/types.js +2 -0
  1289. package/build/mcp/tools/vibe_pm/skills_tool.d.ts +13 -0
  1290. package/build/mcp/tools/vibe_pm/skills_tool.js +57 -0
  1291. package/build/mcp/tools/vibe_pm/stage-computer.d.ts +40 -0
  1292. package/build/mcp/tools/vibe_pm/stage-computer.js +246 -0
  1293. package/build/mcp/tools/vibe_pm/state-guesser.d.ts +0 -0
  1294. package/build/mcp/tools/vibe_pm/state-guesser.js +0 -0
  1295. package/build/mcp/tools/vibe_pm/state-schema.d.ts +114 -5
  1296. package/build/mcp/tools/vibe_pm/state-schema.js +40 -0
  1297. package/build/mcp/tools/vibe_pm/state-store.d.ts +4 -1
  1298. package/build/mcp/tools/vibe_pm/state-store.js +41 -3
  1299. package/build/mcp/tools/vibe_pm/status.d.ts +1 -1
  1300. package/build/mcp/tools/vibe_pm/status.js +104 -513
  1301. package/build/mcp/tools/vibe_pm/status_logic.d.ts +31 -0
  1302. package/build/mcp/tools/vibe_pm/status_logic.js +138 -0
  1303. package/build/mcp/tools/vibe_pm/status_readers.d.ts +114 -0
  1304. package/build/mcp/tools/vibe_pm/status_readers.js +455 -0
  1305. package/build/mcp/tools/vibe_pm/status_types.d.ts +21 -0
  1306. package/build/mcp/tools/vibe_pm/status_types.js +5 -0
  1307. package/build/mcp/tools/vibe_pm/submit_decision.d.ts +0 -0
  1308. package/build/mcp/tools/vibe_pm/submit_decision.js +11 -2
  1309. package/build/mcp/tools/vibe_pm/submit_task.d.ts +6 -6
  1310. package/build/mcp/tools/vibe_pm/submit_task.js +0 -0
  1311. package/build/mcp/tools/vibe_pm/suggest_roots.d.ts +21 -0
  1312. package/build/mcp/tools/vibe_pm/suggest_roots.js +56 -0
  1313. package/build/mcp/tools/vibe_pm/system_control.d.ts +39 -0
  1314. package/build/mcp/tools/vibe_pm/system_control.js +225 -0
  1315. package/build/mcp/tools/vibe_pm/tool_descriptions.d.ts +1 -0
  1316. package/build/mcp/tools/vibe_pm/tool_descriptions.js +39 -0
  1317. package/build/mcp/tools/vibe_pm/tool_handler_factory.d.ts +84 -0
  1318. package/build/mcp/tools/vibe_pm/tool_handler_factory.js +355 -0
  1319. package/build/mcp/tools/vibe_pm/types/analysis.d.ts +154 -0
  1320. package/build/mcp/tools/vibe_pm/types/analysis.js +37 -0
  1321. package/build/mcp/tools/vibe_pm/types/common.d.ts +70 -0
  1322. package/build/mcp/tools/vibe_pm/types/common.js +90 -0
  1323. package/build/mcp/tools/vibe_pm/types/runtime.d.ts +447 -0
  1324. package/build/mcp/tools/vibe_pm/types/runtime.js +3 -0
  1325. package/build/mcp/tools/vibe_pm/types/schemas.d.ts +4003 -0
  1326. package/build/mcp/tools/vibe_pm/types/schemas.js +111 -0
  1327. package/build/mcp/tools/vibe_pm/types/workflow.d.ts +125 -0
  1328. package/build/mcp/tools/vibe_pm/types/workflow.js +32 -0
  1329. package/build/mcp/tools/vibe_pm/types.d.ts +5 -4649
  1330. package/build/mcp/tools/vibe_pm/types.js +10 -376
  1331. package/build/mcp/tools/vibe_pm/ui/index.d.ts +7 -4
  1332. package/build/mcp/tools/vibe_pm/ui/index.js +12 -9
  1333. package/build/mcp/tools/vibe_pm/ui/manifest.d.ts +0 -0
  1334. package/build/mcp/tools/vibe_pm/ui/manifest.js +0 -0
  1335. package/build/mcp/tools/vibe_pm/ui/realtime_contract.d.ts +15 -0
  1336. package/build/mcp/tools/vibe_pm/ui/realtime_contract.js +28 -0
  1337. package/build/mcp/tools/vibe_pm/ui/types.d.ts +28 -3
  1338. package/build/mcp/tools/vibe_pm/ui/types.js +0 -0
  1339. package/build/mcp/tools/vibe_pm/ui/viewer_bundle.d.ts +1 -1
  1340. package/build/mcp/tools/vibe_pm/ui/viewer_bundle.js +178 -23
  1341. package/build/mcp/tools/vibe_pm/ui/webview_poc.d.ts +7 -0
  1342. package/build/mcp/tools/vibe_pm/ui/webview_poc.js +59 -0
  1343. package/build/mcp/tools/vibe_pm/ui/webview_provider.d.ts +13 -0
  1344. package/build/mcp/tools/vibe_pm/ui/webview_provider.js +33 -0
  1345. package/build/mcp/tools/vibe_pm/undo_last_task.d.ts +13 -0
  1346. package/build/mcp/tools/vibe_pm/undo_last_task.js +87 -0
  1347. package/build/mcp/tools/vibe_pm/ux_fsm.d.ts +0 -0
  1348. package/build/mcp/tools/vibe_pm/ux_fsm.js +0 -0
  1349. package/build/mcp/tools/vibe_pm/verdict/index.d.ts +0 -0
  1350. package/build/mcp/tools/vibe_pm/verdict/index.js +0 -0
  1351. package/build/mcp/tools/vibe_pm/verdict/types.d.ts +0 -0
  1352. package/build/mcp/tools/vibe_pm/verdict/types.js +0 -0
  1353. package/build/mcp/tools/vibe_pm/verdict/writer.d.ts +0 -0
  1354. package/build/mcp/tools/vibe_pm/verdict/writer.js +0 -0
  1355. package/build/mcp/tools/vibe_pm/watcher.d.ts +0 -0
  1356. package/build/mcp/tools/vibe_pm/watcher.js +3 -2
  1357. package/build/mcp/tools/vibe_pm/worker_status.d.ts +2 -2
  1358. package/build/mcp/tools/vibe_pm/worker_status.js +0 -0
  1359. package/build/mcp/tools/vibe_pm/workspace_recipe.d.ts +73 -0
  1360. package/build/mcp/tools/vibe_pm/workspace_recipe.js +65 -0
  1361. package/build/mcp/transport/cli.d.ts +0 -0
  1362. package/build/mcp/transport/cli.js +0 -0
  1363. package/build/mcp/transport/handlers.d.ts +3 -2
  1364. package/build/mcp/transport/handlers.js +47 -25
  1365. package/build/mcp/transport/http.d.ts +10 -6
  1366. package/build/mcp/transport/http.js +137 -31
  1367. package/build/mcp/transport/index.d.ts +0 -0
  1368. package/build/mcp/transport/index.js +0 -0
  1369. package/build/mcp/transport/types.d.ts +0 -0
  1370. package/build/mcp/transport/types.js +0 -0
  1371. package/build/mcp/workspace-root.d.ts +0 -0
  1372. package/build/mcp/workspace-root.js +0 -0
  1373. package/build/native/block-writer-wrapper.d.ts +48 -0
  1374. package/build/native/block-writer-wrapper.js +58 -0
  1375. package/build/native/bloom-wrapper.d.ts +39 -0
  1376. package/build/native/bloom-wrapper.js +120 -0
  1377. package/build/native/index.d.ts +11 -0
  1378. package/build/native/index.js +17 -0
  1379. package/build/native/loader.d.ts +139 -0
  1380. package/build/native/loader.js +116 -0
  1381. package/build/native/merkle-wrapper.d.ts +47 -0
  1382. package/build/native/merkle-wrapper.js +203 -0
  1383. package/build/native/scout-wrapper.d.ts +70 -0
  1384. package/build/native/scout-wrapper.js +166 -0
  1385. package/build/native/utils-wrapper.d.ts +46 -0
  1386. package/build/native/utils-wrapper.js +100 -0
  1387. package/build/observability/otel.d.ts +71 -0
  1388. package/build/observability/otel.js +124 -0
  1389. package/build/offline-queue.d.ts +0 -0
  1390. package/build/offline-queue.js +2 -1
  1391. package/build/pool-manager/adapter.d.ts +0 -0
  1392. package/build/pool-manager/adapter.js +0 -0
  1393. package/build/pool-manager/bitnet-adapter.d.ts +3 -3
  1394. package/build/pool-manager/bitnet-adapter.js +17 -30
  1395. package/build/pool-manager/index.d.ts +4 -0
  1396. package/build/pool-manager/index.js +5 -0
  1397. package/build/pool-manager/mapper-adapter.d.ts +3 -3
  1398. package/build/pool-manager/mapper-adapter.js +17 -30
  1399. package/build/pool-manager/remote-auth.d.ts +18 -0
  1400. package/build/pool-manager/remote-auth.js +36 -0
  1401. package/build/pool-manager/remote-registry.d.ts +81 -0
  1402. package/build/pool-manager/remote-registry.js +130 -0
  1403. package/build/pool-manager/resource-monitor.d.ts +0 -0
  1404. package/build/pool-manager/resource-monitor.js +0 -0
  1405. package/build/pool-manager/rust-engine-adapter.d.ts +56 -0
  1406. package/build/pool-manager/rust-engine-adapter.js +122 -0
  1407. package/build/pool-manager/types.d.ts +1 -1
  1408. package/build/pool-manager/types.js +0 -0
  1409. package/build/pool-manager/unified-pool.d.ts +0 -0
  1410. package/build/pool-manager/unified-pool.js +2 -1
  1411. package/build/profile-config.d.ts +0 -0
  1412. package/build/profile-config.js +0 -0
  1413. package/build/protocol/index.d.ts +1 -0
  1414. package/build/protocol/index.js +1 -0
  1415. package/build/protocol/minp.d.ts +97 -0
  1416. package/build/protocol/minp.js +103 -0
  1417. package/build/report-generator.d.ts +0 -0
  1418. package/build/report-generator.js +8 -8
  1419. package/build/reporting/run_artifacts.d.ts +14 -0
  1420. package/build/reporting/run_artifacts.js +44 -0
  1421. package/build/review-history.d.ts +0 -0
  1422. package/build/review-history.js +0 -0
  1423. package/build/reviewer-ux-types.d.ts +0 -0
  1424. package/build/reviewer-ux-types.js +0 -0
  1425. package/build/scout/client.d.ts +17 -0
  1426. package/build/scout/client.js +33 -0
  1427. package/build/scout/index.d.ts +6 -0
  1428. package/build/scout/index.js +5 -0
  1429. package/build/scout/types.d.ts +41 -0
  1430. package/build/scout/types.js +12 -0
  1431. package/build/shared/http_client.d.ts +12 -0
  1432. package/build/shared/http_client.js +21 -0
  1433. package/build/shared/logger.d.ts +18 -0
  1434. package/build/shared/logger.js +24 -0
  1435. package/build/shared/process-guard.d.ts +14 -0
  1436. package/build/shared/process-guard.js +31 -0
  1437. package/build/skeleton-types.d.ts +0 -0
  1438. package/build/skeleton-types.js +0 -0
  1439. package/build/skill-loader.d.ts +0 -0
  1440. package/build/skill-loader.js +3 -2
  1441. package/build/spec-map.d.ts +0 -0
  1442. package/build/spec-map.js +0 -0
  1443. package/build/startup/index.d.ts +0 -0
  1444. package/build/startup/index.js +0 -0
  1445. package/build/startup/manager.d.ts +4 -0
  1446. package/build/startup/manager.js +157 -46
  1447. package/build/sync-manager.d.ts +1 -2
  1448. package/build/sync-manager.js +0 -0
  1449. package/build/sync-packet-builder.d.ts +10 -10
  1450. package/build/sync-packet-builder.js +41 -55
  1451. package/build/tensor/core.d.ts +13 -0
  1452. package/build/tensor/core.js +129 -0
  1453. package/build/tensor/feature_extractor.d.ts +26 -0
  1454. package/build/tensor/feature_extractor.js +141 -0
  1455. package/build/tensor/index.d.ts +6 -0
  1456. package/build/tensor/index.js +5 -0
  1457. package/build/tensor/loader.d.ts +20 -0
  1458. package/build/tensor/loader.js +120 -0
  1459. package/build/tensor/types.d.ts +56 -0
  1460. package/build/tensor/types.js +19 -0
  1461. package/build/tier/feature_gate.d.ts +16 -14
  1462. package/build/tier/feature_gate.js +139 -119
  1463. package/build/tier/index.d.ts +12 -40
  1464. package/build/tier/index.js +14 -55
  1465. package/build/tier/inference_factory.d.ts +28 -0
  1466. package/build/tier/inference_factory.js +54 -0
  1467. package/build/tier/policy_analysis.d.ts +3 -7
  1468. package/build/tier/policy_analysis.js +104 -155
  1469. package/build/tier/production_bridge.d.ts +52 -0
  1470. package/build/tier/production_bridge.js +127 -0
  1471. package/build/tier/scorecard.d.ts +4 -8
  1472. package/build/tier/scorecard.js +59 -90
  1473. package/build/utils/with_timeout.d.ts +1 -0
  1474. package/build/utils/with_timeout.js +16 -0
  1475. package/build/workers/base/autoscaler.d.ts +0 -0
  1476. package/build/workers/base/autoscaler.js +0 -0
  1477. package/build/workers/base/dashboard.d.ts +0 -0
  1478. package/build/workers/base/dashboard.js +0 -0
  1479. package/build/workers/base/health.d.ts +1 -0
  1480. package/build/workers/base/health.js +31 -35
  1481. package/build/workers/base/index.d.ts +0 -0
  1482. package/build/workers/base/index.js +0 -0
  1483. package/build/workers/base/metrics.d.ts +0 -0
  1484. package/build/workers/base/metrics.js +0 -0
  1485. package/build/workers/base/pool.d.ts +0 -0
  1486. package/build/workers/base/pool.js +2 -1
  1487. package/build/workers/base/queue.d.ts +26 -4
  1488. package/build/workers/base/queue.js +50 -29
  1489. package/build/workers/base/types.d.ts +0 -0
  1490. package/build/workers/base/types.js +0 -0
  1491. package/build/workers/base/worker.d.ts +0 -0
  1492. package/build/workers/base/worker.js +34 -16
  1493. package/build/workers/browser/index.d.ts +0 -0
  1494. package/build/workers/browser/index.js +1 -1
  1495. package/build/workers/build/index.d.ts +0 -0
  1496. package/build/workers/build/index.js +0 -0
  1497. package/build/workers/fs/index.d.ts +0 -0
  1498. package/build/workers/fs/index.js +0 -0
  1499. package/build/workers/index.d.ts +0 -0
  1500. package/build/workers/index.js +3 -2
  1501. package/build/workers/manager.d.ts +1 -0
  1502. package/build/workers/manager.js +19 -9
  1503. package/build/workers/model/index.d.ts +0 -0
  1504. package/build/workers/model/index.js +0 -0
  1505. package/build/workers/search/index.d.ts +4 -0
  1506. package/build/workers/search/index.js +3 -2
  1507. package/package.json +58 -7
  1508. package/schemas/agent-catalog.v1.schema.json +114 -0
  1509. package/schemas/autopilot_policy.v1.schema.json +90 -90
  1510. package/schemas/banned_question_rules.v1.schema.json +0 -0
  1511. package/schemas/bitnet_signal.v1.schema.json +112 -112
  1512. package/schemas/catalog_tree.v1.schema.json +0 -0
  1513. package/schemas/choice_card.v1.schema.json +0 -0
  1514. package/schemas/ci_summary.v1.schema.json +0 -0
  1515. package/schemas/clinic_result.v1.2.schema.json +0 -0
  1516. package/schemas/encrypted_packet.v1.schema.json +0 -0
  1517. package/schemas/handoff_packet.v1.schema.json +0 -0
  1518. package/schemas/observer_event_map.v1.schema.json +89 -89
  1519. package/schemas/result.v1.schema.json +0 -0
  1520. package/schemas/skeleton_map_summary.v1.schema.json +0 -0
  1521. package/schemas/spec_gate_result.v1.schema.json +0 -0
  1522. package/schemas/spec_map.v1.schema.json +0 -0
  1523. package/schemas/sync_packet.v1.schema.json +0 -0
  1524. package/schemas/task.v1.schema.json +0 -0
  1525. package/schemas/template-catalog.v1.1.schema.json +193 -0
  1526. package/schemas/template-catalog.v1.schema.json +169 -0
  1527. package/schemas/template-run.session.v1.schema.json +117 -0
  1528. package/schemas/vibe_tool_status.schema.json +0 -0
  1529. package/schemas/workflow-registry.v1.schema.json +107 -0
  1530. package/scripts/build-artifacts.mjs +124 -124
  1531. package/scripts/build-musu.sh +0 -0
  1532. package/scripts/bundle-native.mjs +393 -0
  1533. package/scripts/check-hotpath-di.mjs +77 -0
  1534. package/scripts/check-hotpath-sync-io.mjs +90 -0
  1535. package/scripts/check-musu.mjs +0 -0
  1536. package/scripts/check-pr-scope.mjs +120 -120
  1537. package/scripts/check-template-runner-contract.mjs +66 -0
  1538. package/scripts/check-template-ui-contract-sync.mjs +166 -0
  1539. package/scripts/clean-build.mjs +20 -20
  1540. package/scripts/diagram-render-metrics-report.mjs +162 -0
  1541. package/scripts/e2e-k8s-test.sh +0 -0
  1542. package/scripts/e2e-podman-test.sh +91 -0
  1543. package/scripts/ensure-exec.mjs +0 -0
  1544. package/scripts/generate-checksums.sh +29 -0
  1545. package/scripts/publish.sh +20 -0
  1546. package/scripts/setup_infra.sh +160 -0
  1547. package/scripts/sync-third-party-notices.mjs +18 -0
  1548. package/scripts/test-mq-integration.mjs +81 -0
  1549. package/scripts/test-musu-smoke.sh +136 -0
  1550. package/scripts/test-smoke.mjs +24 -0
  1551. package/scripts/validate-agents.ts +60 -0
  1552. package/scripts/validate-doc-links.mjs +0 -0
  1553. package/scripts/verify-release-chain.mjs +68 -0
  1554. package/skills/SKILL_openclaw_actions_audit.md +44 -0
  1555. package/skills/SKILL_openclaw_release_hardening.md +37 -0
  1556. package/skills/SKILL_openclaw_shift_left_ci.md +58 -0
  1557. package/skills/index.json +30 -0
  1558. package/skills/skillpack.json +40 -0
  1559. package/skills/skillpack.schema.json +0 -0
  1560. package/templates/agents/cli-agent/Cargo.toml +10 -0
  1561. package/templates/agents/cli-agent/manifest.json +14 -0
  1562. package/templates/agents/cli-agent/src/main.rs +84 -0
  1563. package/templates/agents/http-service/manifest.json +15 -0
  1564. package/templates/agents/http-service/package.json +16 -0
  1565. package/templates/agents/http-service/src/server.ts +60 -0
  1566. package/templates/agents/mcp-tool/manifest.json +15 -0
  1567. package/templates/agents/mcp-tool/package.json +17 -0
  1568. package/templates/agents/mcp-tool/src/index.ts +84 -0
  1569. package/templates/agents/worker-agent/Cargo.toml +11 -0
  1570. package/templates/agents/worker-agent/manifest.json +14 -0
  1571. package/templates/agents/worker-agent/src/main.rs +120 -0
  1572. package/templates/docs-structure/README.md +41 -41
  1573. package/templates/docs-structure/active/.gitkeep +0 -0
  1574. package/templates/docs-structure/archived/legacy/.gitkeep +0 -0
  1575. package/templates/docs-structure/archived/topics/.gitkeep +0 -0
  1576. package/templates/docs-structure/reference/contracts/.gitkeep +0 -0
  1577. package/templates/docs-structure/reference/product-spec/.gitkeep +0 -0
  1578. package/templates/docs-structure/reference/ssot/.gitkeep +0 -0
  1579. package/templates/github-actions/vibe-ci.yml +0 -0
  1580. package/build/dashboard/autostart.d.ts +0 -45
  1581. package/build/dashboard/autostart.js +0 -121
  1582. package/build/mcp/paths.d.ts +0 -29
  1583. package/build/mcp/paths.js +0 -90
  1584. package/build/mcp/runtime/musu_adapter.d.ts +0 -193
  1585. package/build/mcp/runtime/musu_adapter.js +0 -373
  1586. package/build/mcp/tools/vibe_pm/inspect_code.d.ts +0 -10
  1587. package/build/mcp/tools/vibe_pm/inspect_code.js +0 -729
  1588. package/build/mcp/tools.d.ts +0 -1
  1589. package/build/mcp/tools.js +0 -11
  1590. package/build/tier/trigger_facts_collector.js +0 -294
@@ -1,4649 +1,5 @@
1
- import { z } from "zod";
2
- export type ReviewResult = "GO" | "FIX" | "BLOCK";
3
- export type IssueType = "RULE_VIOLATION" | "VERIFY_FAIL" | "SCOPE_MISMATCH" | "RISK_SPIKE";
4
- export type DevMode = "mvp_fast" | "balanced" | "quality_first";
5
- export type MessageTemplateId = "GO-01" | "GO-02" | "FIX-01" | "FIX-02" | "BLOCK-01" | "BLOCK-02" | "AUTO-01" | "AUTO-02" | "AUTO-03" | "DEPS-01" | "DEPS-02" | "DEPS-03" | "VERIFY-01" | "VERIFY-02" | "VERIFY-03";
6
- export type ChoiceKey = "A" | "B" | "C" | "U";
7
- /**
8
- * Action type determines what the user should do next
9
- * - CALL_TOOL: Call a specific MCP tool
10
- * - COPY_PASTE: Copy and paste the prompt block
11
- * - DONE: No further action needed
12
- */
13
- export type NextActionType = "CALL_TOOL" | "COPY_PASTE" | "DONE";
14
- /**
15
- * Unified NextAction type - only ONE action per response
16
- * User-facing label must not contain forbidden terms
17
- */
18
- export interface UnifiedNextAction {
19
- /** Action type */
20
- type: NextActionType;
21
- /** User-friendly label (no technical terms) */
22
- label: string;
23
- /** Tool to call (only for CALL_TOOL type) - internal use only */
24
- _tool?: string;
25
- /** Prompt block to copy (only for COPY_PASTE type) */
26
- prompt_block?: string;
27
- /** Reason for this action (user-facing) */
28
- reason: string;
29
- /** When to execute (optional hint) */
30
- when?: "now" | "after_implementation";
31
- }
32
- export declare const briefingInputSchema: z.ZodObject<{
33
- project_brief: z.ZodString;
34
- mode: z.ZodDefault<z.ZodEnum<["mvp_fast", "balanced", "quality_first"]>>;
35
- project_id: z.ZodOptional<z.ZodString>;
36
- }, "strict", z.ZodTypeAny, {
37
- mode: "mvp_fast" | "balanced" | "quality_first";
38
- project_brief: string;
39
- project_id?: string | undefined;
40
- }, {
41
- project_brief: string;
42
- mode?: "mvp_fast" | "balanced" | "quality_first" | undefined;
43
- project_id?: string | undefined;
44
- }>;
45
- export declare const briefingOutputSchema: z.ZodObject<{
46
- project_id: z.ZodString;
47
- run_id: z.ZodString;
48
- pm_summary: z.ZodObject<{
49
- goal: z.ZodString;
50
- target_user: z.ZodString;
51
- first_milestone: z.ZodString;
52
- top_risk: z.ZodString;
53
- }, "strict", z.ZodTypeAny, {
54
- goal: string;
55
- target_user: string;
56
- first_milestone: string;
57
- top_risk: string;
58
- }, {
59
- goal: string;
60
- target_user: string;
61
- first_milestone: string;
62
- top_risk: string;
63
- }>;
64
- next_action: z.ZodObject<{
65
- tool: z.ZodLiteral<"vibe_pm.get_decision">;
66
- reason: z.ZodString;
67
- }, "strict", z.ZodTypeAny, {
68
- tool: "vibe_pm.get_decision";
69
- reason: string;
70
- }, {
71
- tool: "vibe_pm.get_decision";
72
- reason: string;
73
- }>;
74
- }, "strict", z.ZodTypeAny, {
75
- run_id: string;
76
- next_action: {
77
- tool: "vibe_pm.get_decision";
78
- reason: string;
79
- };
80
- project_id: string;
81
- pm_summary: {
82
- goal: string;
83
- target_user: string;
84
- first_milestone: string;
85
- top_risk: string;
86
- };
87
- }, {
88
- run_id: string;
89
- next_action: {
90
- tool: "vibe_pm.get_decision";
91
- reason: string;
92
- };
93
- project_id: string;
94
- pm_summary: {
95
- goal: string;
96
- target_user: string;
97
- first_milestone: string;
98
- top_risk: string;
99
- };
100
- }>;
101
- export type BriefingInput = z.infer<typeof briefingInputSchema>;
102
- export interface BriefingOutput {
103
- /** Project identifier (hidden from user) */
104
- project_id: string;
105
- /** Run context ID (hidden from user) */
106
- run_id: string;
107
- /** PM-organized project summary */
108
- pm_summary: {
109
- goal: string;
110
- target_user: string;
111
- first_milestone: string;
112
- top_risk: string;
113
- };
114
- /** Next action */
115
- next_action: {
116
- tool: "vibe_pm.get_decision";
117
- reason: string;
118
- };
119
- }
120
- export declare const getDecisionInputSchema: z.ZodObject<{
121
- project_id: z.ZodOptional<z.ZodString>;
122
- max_items: z.ZodDefault<z.ZodNumber>;
123
- auto_select: z.ZodDefault<z.ZodBoolean>;
124
- }, "strict", z.ZodTypeAny, {
125
- max_items: number;
126
- auto_select: boolean;
127
- project_id?: string | undefined;
128
- }, {
129
- project_id?: string | undefined;
130
- max_items?: number | undefined;
131
- auto_select?: boolean | undefined;
132
- }>;
133
- export declare const getDecisionOutputSchema: z.ZodObject<{
134
- project_id: z.ZodString;
135
- decision_requests: z.ZodArray<z.ZodObject<{
136
- decision_id: z.ZodString;
137
- title: z.ZodString;
138
- context: z.ZodString;
139
- choices: z.ZodArray<z.ZodObject<{
140
- key: z.ZodEnum<["A", "B", "C", "U"]>;
141
- label: z.ZodString;
142
- description: z.ZodOptional<z.ZodString>;
143
- }, "strict", z.ZodTypeAny, {
144
- key: "A" | "B" | "C" | "U";
145
- label: string;
146
- description?: string | undefined;
147
- }, {
148
- key: "A" | "B" | "C" | "U";
149
- label: string;
150
- description?: string | undefined;
151
- }>, "many">;
152
- }, "strict", z.ZodTypeAny, {
153
- context: string;
154
- title: string;
155
- decision_id: string;
156
- choices: {
157
- key: "A" | "B" | "C" | "U";
158
- label: string;
159
- description?: string | undefined;
160
- }[];
161
- }, {
162
- context: string;
163
- title: string;
164
- decision_id: string;
165
- choices: {
166
- key: "A" | "B" | "C" | "U";
167
- label: string;
168
- description?: string | undefined;
169
- }[];
170
- }>, "many">;
171
- next_action: z.ZodEffects<z.ZodAny, any, any>;
172
- }, "strict", z.ZodTypeAny, {
173
- project_id: string;
174
- decision_requests: {
175
- context: string;
176
- title: string;
177
- decision_id: string;
178
- choices: {
179
- key: "A" | "B" | "C" | "U";
180
- label: string;
181
- description?: string | undefined;
182
- }[];
183
- }[];
184
- next_action?: any;
185
- }, {
186
- project_id: string;
187
- decision_requests: {
188
- context: string;
189
- title: string;
190
- decision_id: string;
191
- choices: {
192
- key: "A" | "B" | "C" | "U";
193
- label: string;
194
- description?: string | undefined;
195
- }[];
196
- }[];
197
- next_action?: any;
198
- }>;
199
- export type GetDecisionInput = z.infer<typeof getDecisionInputSchema>;
200
- export interface Choice {
201
- key: ChoiceKey;
202
- label: string;
203
- description?: string;
204
- }
205
- export interface DecisionRequest {
206
- /** Decision ID (internal) */
207
- decision_id: string;
208
- /** Business language title */
209
- title: string;
210
- /** Context description (no technical terms) */
211
- context: string;
212
- /** Available choices */
213
- choices: Choice[];
214
- }
215
- export interface GetDecisionOutput {
216
- project_id: string;
217
- /** Decision request list (business language) */
218
- decision_requests: DecisionRequest[];
219
- /** Auto-selected results (only when auto_select=true) */
220
- auto_selected?: Array<{
221
- decision_id: string;
222
- auto_selected: "A" | "B" | "C";
223
- reason: string;
224
- }>;
225
- /** Next action */
226
- next_action: {
227
- tool: "vibe_pm.submit_decision" | "vibe_pm.create_work_order" | "vibe_pm.get_decision";
228
- reason: string;
229
- } | null;
230
- }
231
- export declare const memoryStatusInputSchema: z.ZodObject<{
232
- project_id: z.ZodOptional<z.ZodString>;
233
- docs_root: z.ZodDefault<z.ZodString>;
234
- persist_dir: z.ZodOptional<z.ZodString>;
235
- }, "strict", z.ZodTypeAny, {
236
- docs_root: string;
237
- project_id?: string | undefined;
238
- persist_dir?: string | undefined;
239
- }, {
240
- project_id?: string | undefined;
241
- docs_root?: string | undefined;
242
- persist_dir?: string | undefined;
243
- }>;
244
- export declare const memoryStatusOutputSchema: z.ZodObject<{
245
- project_id: z.ZodString;
246
- status: z.ZodEnum<["READY", "NEEDS_SYNC", "OFFLINE_NO_INDEX", "ERROR"]>;
247
- summary: z.ZodString;
248
- docs_root: z.ZodString;
249
- persist_dir: z.ZodString;
250
- collection: z.ZodString;
251
- stats: z.ZodObject<{
252
- document_count: z.ZodNumber;
253
- chunk_count: z.ZodNumber;
254
- last_sync_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
255
- }, "strict", z.ZodTypeAny, {
256
- document_count: number;
257
- chunk_count: number;
258
- last_sync_at?: string | null | undefined;
259
- }, {
260
- document_count: number;
261
- chunk_count: number;
262
- last_sync_at?: string | null | undefined;
263
- }>;
264
- embedding: z.ZodOptional<z.ZodObject<{
265
- backend: z.ZodString;
266
- model: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
267
- ready: z.ZodBoolean;
268
- }, "strict", z.ZodTypeAny, {
269
- ready: boolean;
270
- backend: string;
271
- model?: string | null | undefined;
272
- }, {
273
- ready: boolean;
274
- backend: string;
275
- model?: string | null | undefined;
276
- }>>;
277
- offline_mode: z.ZodBoolean;
278
- issues: z.ZodArray<z.ZodString, "many">;
279
- next_action: z.ZodEffects<z.ZodAny, any, any>;
280
- }, "strict", z.ZodTypeAny, {
281
- status: "ERROR" | "READY" | "NEEDS_SYNC" | "OFFLINE_NO_INDEX";
282
- summary: string;
283
- issues: string[];
284
- project_id: string;
285
- docs_root: string;
286
- persist_dir: string;
287
- collection: string;
288
- stats: {
289
- document_count: number;
290
- chunk_count: number;
291
- last_sync_at?: string | null | undefined;
292
- };
293
- offline_mode: boolean;
294
- next_action?: any;
295
- embedding?: {
296
- ready: boolean;
297
- backend: string;
298
- model?: string | null | undefined;
299
- } | undefined;
300
- }, {
301
- status: "ERROR" | "READY" | "NEEDS_SYNC" | "OFFLINE_NO_INDEX";
302
- summary: string;
303
- issues: string[];
304
- project_id: string;
305
- docs_root: string;
306
- persist_dir: string;
307
- collection: string;
308
- stats: {
309
- document_count: number;
310
- chunk_count: number;
311
- last_sync_at?: string | null | undefined;
312
- };
313
- offline_mode: boolean;
314
- next_action?: any;
315
- embedding?: {
316
- ready: boolean;
317
- backend: string;
318
- model?: string | null | undefined;
319
- } | undefined;
320
- }>;
321
- export type MemoryStatusInput = z.infer<typeof memoryStatusInputSchema>;
322
- export type MemoryStatusOutput = z.infer<typeof memoryStatusOutputSchema>;
323
- export declare const memorySyncInputSchema: z.ZodObject<{
324
- project_id: z.ZodOptional<z.ZodString>;
325
- docs_root: z.ZodDefault<z.ZodString>;
326
- mode: z.ZodDefault<z.ZodEnum<["on_demand", "pre_finalize"]>>;
327
- force_full: z.ZodDefault<z.ZodBoolean>;
328
- }, "strict", z.ZodTypeAny, {
329
- mode: "on_demand" | "pre_finalize";
330
- docs_root: string;
331
- force_full: boolean;
332
- project_id?: string | undefined;
333
- }, {
334
- mode?: "on_demand" | "pre_finalize" | undefined;
335
- project_id?: string | undefined;
336
- docs_root?: string | undefined;
337
- force_full?: boolean | undefined;
338
- }>;
339
- export declare const memorySyncOutputSchema: z.ZodObject<{
340
- project_id: z.ZodString;
341
- status: z.ZodEnum<["OK", "NO_CHANGES", "ERROR"]>;
342
- summary: z.ZodString;
343
- docs_root: z.ZodString;
344
- persist_dir: z.ZodString;
345
- collection: z.ZodString;
346
- result: z.ZodObject<{
347
- scanned_files: z.ZodNumber;
348
- ingested_files: z.ZodNumber;
349
- updated_files: z.ZodNumber;
350
- skipped_files: z.ZodNumber;
351
- duration_ms: z.ZodNumber;
352
- }, "strict", z.ZodTypeAny, {
353
- updated_files: number;
354
- scanned_files: number;
355
- ingested_files: number;
356
- skipped_files: number;
357
- duration_ms: number;
358
- }, {
359
- updated_files: number;
360
- scanned_files: number;
361
- ingested_files: number;
362
- skipped_files: number;
363
- duration_ms: number;
364
- }>;
365
- offline_mode: z.ZodBoolean;
366
- issues: z.ZodArray<z.ZodString, "many">;
367
- next_action: z.ZodEffects<z.ZodAny, any, any>;
368
- }, "strict", z.ZodTypeAny, {
369
- status: "ERROR" | "OK" | "NO_CHANGES";
370
- summary: string;
371
- issues: string[];
372
- result: {
373
- updated_files: number;
374
- scanned_files: number;
375
- ingested_files: number;
376
- skipped_files: number;
377
- duration_ms: number;
378
- };
379
- project_id: string;
380
- docs_root: string;
381
- persist_dir: string;
382
- collection: string;
383
- offline_mode: boolean;
384
- next_action?: any;
385
- }, {
386
- status: "ERROR" | "OK" | "NO_CHANGES";
387
- summary: string;
388
- issues: string[];
389
- result: {
390
- updated_files: number;
391
- scanned_files: number;
392
- ingested_files: number;
393
- skipped_files: number;
394
- duration_ms: number;
395
- };
396
- project_id: string;
397
- docs_root: string;
398
- persist_dir: string;
399
- collection: string;
400
- offline_mode: boolean;
401
- next_action?: any;
402
- }>;
403
- export type MemorySyncInput = z.infer<typeof memorySyncInputSchema>;
404
- export type MemorySyncOutput = z.infer<typeof memorySyncOutputSchema>;
405
- export declare const advisoryReviewInputSchema: z.ZodObject<{
406
- project_id: z.ZodOptional<z.ZodString>;
407
- run_id: z.ZodOptional<z.ZodString>;
408
- mode: z.ZodDefault<z.ZodEnum<["triage", "quick", "thorough"]>>;
409
- trigger: z.ZodDefault<z.ZodEnum<["on_demand", "pre_finalize", "pr_event"]>>;
410
- budget: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
411
- changed_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
412
- target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
413
- diff_context: z.ZodOptional<z.ZodString>;
414
- base_sha: z.ZodOptional<z.ZodString>;
415
- head_sha: z.ZodOptional<z.ZodString>;
416
- focus: z.ZodOptional<z.ZodArray<z.ZodEnum<["BUSINESS_FIT", "ARCHITECTURE", "ALGO_REFACTOR"]>, "many">>;
417
- product_intent_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
- }, "strict", z.ZodTypeAny, {
419
- mode: "quick" | "thorough" | "triage";
420
- trigger: "on_demand" | "pre_finalize" | "pr_event";
421
- budget: "low" | "high" | "medium";
422
- focus?: ("BUSINESS_FIT" | "ARCHITECTURE" | "ALGO_REFACTOR")[] | undefined;
423
- run_id?: string | undefined;
424
- changed_paths?: string[] | undefined;
425
- project_id?: string | undefined;
426
- target_paths?: string[] | undefined;
427
- diff_context?: string | undefined;
428
- base_sha?: string | undefined;
429
- head_sha?: string | undefined;
430
- product_intent_refs?: string[] | undefined;
431
- }, {
432
- focus?: ("BUSINESS_FIT" | "ARCHITECTURE" | "ALGO_REFACTOR")[] | undefined;
433
- run_id?: string | undefined;
434
- mode?: "quick" | "thorough" | "triage" | undefined;
435
- changed_paths?: string[] | undefined;
436
- project_id?: string | undefined;
437
- target_paths?: string[] | undefined;
438
- trigger?: "on_demand" | "pre_finalize" | "pr_event" | undefined;
439
- budget?: "low" | "high" | "medium" | undefined;
440
- diff_context?: string | undefined;
441
- base_sha?: string | undefined;
442
- head_sha?: string | undefined;
443
- product_intent_refs?: string[] | undefined;
444
- }>;
445
- export declare const advisoryReviewOutputSchema: z.ZodEffects<z.ZodAny, any, any>;
446
- export type AdvisoryReviewInput = z.infer<typeof advisoryReviewInputSchema>;
447
- export type AdvisoryReviewOutput = z.infer<typeof advisoryReviewOutputSchema>;
448
- export declare const activateInputSchema: z.ZodObject<{
449
- license_key: z.ZodString;
450
- force: z.ZodDefault<z.ZodBoolean>;
451
- app_version: z.ZodOptional<z.ZodString>;
452
- }, "strict", z.ZodTypeAny, {
453
- license_key: string;
454
- force: boolean;
455
- app_version?: string | undefined;
456
- }, {
457
- license_key: string;
458
- force?: boolean | undefined;
459
- app_version?: string | undefined;
460
- }>;
461
- export declare const activateOutputSchema: z.ZodObject<{
462
- status: z.ZodEnum<["OK", "OFFLINE", "ERROR"]>;
463
- summary: z.ZodString;
464
- token_file: z.ZodString;
465
- offline_mode: z.ZodBoolean;
466
- entitlements: z.ZodEffects<z.ZodAny, any, any>;
467
- policy: z.ZodEffects<z.ZodAny, any, any>;
468
- subject_id: z.ZodEffects<z.ZodAny, any, any>;
469
- expires_at: z.ZodEffects<z.ZodAny, any, any>;
470
- issues: z.ZodArray<z.ZodString, "many">;
471
- next_action: z.ZodEffects<z.ZodAny, any, any>;
472
- }, "strict", z.ZodTypeAny, {
473
- status: "ERROR" | "OK" | "OFFLINE";
474
- summary: string;
475
- issues: string[];
476
- offline_mode: boolean;
477
- token_file: string;
478
- policy?: any;
479
- expires_at?: any;
480
- entitlements?: any;
481
- next_action?: any;
482
- subject_id?: any;
483
- }, {
484
- status: "ERROR" | "OK" | "OFFLINE";
485
- summary: string;
486
- issues: string[];
487
- offline_mode: boolean;
488
- token_file: string;
489
- policy?: any;
490
- expires_at?: any;
491
- entitlements?: any;
492
- next_action?: any;
493
- subject_id?: any;
494
- }>;
495
- export type ActivateInput = z.infer<typeof activateInputSchema>;
496
- export type ActivateOutput = z.infer<typeof activateOutputSchema>;
497
- export declare const submitDecisionInputSchema: z.ZodObject<{
498
- project_id: z.ZodOptional<z.ZodString>;
499
- decision_id: z.ZodString;
500
- choice: z.ZodEnum<["A", "B", "C", "U"]>;
501
- note: z.ZodOptional<z.ZodString>;
502
- }, "strict", z.ZodTypeAny, {
503
- decision_id: string;
504
- choice: "A" | "B" | "C" | "U";
505
- project_id?: string | undefined;
506
- note?: string | undefined;
507
- }, {
508
- decision_id: string;
509
- choice: "A" | "B" | "C" | "U";
510
- project_id?: string | undefined;
511
- note?: string | undefined;
512
- }>;
513
- export declare const submitDecisionOutputSchema: z.ZodObject<{
514
- project_id: z.ZodString;
515
- result: z.ZodObject<{
516
- decision_id: z.ZodString;
517
- chosen: z.ZodEnum<["A", "B", "C", "U"]>;
518
- summary: z.ZodString;
519
- }, "strict", z.ZodTypeAny, {
520
- summary: string;
521
- decision_id: string;
522
- chosen: "A" | "B" | "C" | "U";
523
- }, {
524
- summary: string;
525
- decision_id: string;
526
- chosen: "A" | "B" | "C" | "U";
527
- }>;
528
- remaining_decisions: z.ZodNumber;
529
- next_action: z.ZodObject<{
530
- tool: z.ZodEnum<["vibe_pm.create_work_order", "vibe_pm.get_decision"]>;
531
- reason: z.ZodString;
532
- }, "strict", z.ZodTypeAny, {
533
- tool: "vibe_pm.get_decision" | "vibe_pm.create_work_order";
534
- reason: string;
535
- }, {
536
- tool: "vibe_pm.get_decision" | "vibe_pm.create_work_order";
537
- reason: string;
538
- }>;
539
- }, "strict", z.ZodTypeAny, {
540
- next_action: {
541
- tool: "vibe_pm.get_decision" | "vibe_pm.create_work_order";
542
- reason: string;
543
- };
544
- result: {
545
- summary: string;
546
- decision_id: string;
547
- chosen: "A" | "B" | "C" | "U";
548
- };
549
- project_id: string;
550
- remaining_decisions: number;
551
- }, {
552
- next_action: {
553
- tool: "vibe_pm.get_decision" | "vibe_pm.create_work_order";
554
- reason: string;
555
- };
556
- result: {
557
- summary: string;
558
- decision_id: string;
559
- chosen: "A" | "B" | "C" | "U";
560
- };
561
- project_id: string;
562
- remaining_decisions: number;
563
- }>;
564
- export type SubmitDecisionInput = z.infer<typeof submitDecisionInputSchema>;
565
- export interface SubmitDecisionOutput {
566
- project_id: string;
567
- /** Decision result */
568
- result: {
569
- decision_id: string;
570
- chosen: string;
571
- summary: string;
572
- };
573
- /** Remaining decisions count */
574
- remaining_decisions: number;
575
- /** Next action */
576
- next_action: {
577
- tool: "vibe_pm.create_work_order" | "vibe_pm.get_decision";
578
- reason: string;
579
- };
580
- }
581
- export declare const createWorkOrderInputSchema: z.ZodObject<{
582
- project_id: z.ZodOptional<z.ZodString>;
583
- additional_instructions: z.ZodOptional<z.ZodString>;
584
- }, "strict", z.ZodTypeAny, {
585
- project_id?: string | undefined;
586
- additional_instructions?: string | undefined;
587
- }, {
588
- project_id?: string | undefined;
589
- additional_instructions?: string | undefined;
590
- }>;
591
- export declare const createWorkOrderOutputSchema: z.ZodObject<{
592
- project_id: z.ZodString;
593
- run_id: z.ZodString;
594
- work_order: z.ZodObject<{
595
- headline: z.ZodString;
596
- scope: z.ZodObject<{
597
- include: z.ZodArray<z.ZodString, "many">;
598
- exclude: z.ZodArray<z.ZodString, "many">;
599
- }, "strict", z.ZodTypeAny, {
600
- include: string[];
601
- exclude: string[];
602
- }, {
603
- include: string[];
604
- exclude: string[];
605
- }>;
606
- do_not_touch: z.ZodArray<z.ZodString, "many">;
607
- verify_criteria: z.ZodArray<z.ZodString, "many">;
608
- paste_to_agent: z.ZodString;
609
- }, "strict", z.ZodTypeAny, {
610
- scope: {
611
- include: string[];
612
- exclude: string[];
613
- };
614
- do_not_touch: string[];
615
- verify_criteria: string[];
616
- headline: string;
617
- paste_to_agent: string;
618
- }, {
619
- scope: {
620
- include: string[];
621
- exclude: string[];
622
- };
623
- do_not_touch: string[];
624
- verify_criteria: string[];
625
- headline: string;
626
- paste_to_agent: string;
627
- }>;
628
- paths: z.ZodObject<{
629
- bridge_path: z.ZodString;
630
- intent_dir: z.ZodOptional<z.ZodString>;
631
- }, "strict", z.ZodTypeAny, {
632
- bridge_path: string;
633
- intent_dir?: string | undefined;
634
- }, {
635
- bridge_path: string;
636
- intent_dir?: string | undefined;
637
- }>;
638
- modules: z.ZodObject<{
639
- research: z.ZodObject<{
640
- version: z.ZodLiteral<"v1">;
641
- fingerprint: z.ZodString;
642
- path: z.ZodString;
643
- }, "strict", z.ZodTypeAny, {
644
- path: string;
645
- version: "v1";
646
- fingerprint: string;
647
- }, {
648
- path: string;
649
- version: "v1";
650
- fingerprint: string;
651
- }>;
652
- skills: z.ZodObject<{
653
- version: z.ZodLiteral<"v1">;
654
- fingerprint: z.ZodString;
655
- path: z.ZodString;
656
- }, "strict", z.ZodTypeAny, {
657
- path: string;
658
- version: "v1";
659
- fingerprint: string;
660
- }, {
661
- path: string;
662
- version: "v1";
663
- fingerprint: string;
664
- }>;
665
- planning: z.ZodObject<{
666
- version: z.ZodLiteral<"v1">;
667
- fingerprint: z.ZodString;
668
- path: z.ZodString;
669
- }, "strict", z.ZodTypeAny, {
670
- path: string;
671
- version: "v1";
672
- fingerprint: string;
673
- }, {
674
- path: string;
675
- version: "v1";
676
- fingerprint: string;
677
- }>;
678
- }, "strict", z.ZodTypeAny, {
679
- skills: {
680
- path: string;
681
- version: "v1";
682
- fingerprint: string;
683
- };
684
- research: {
685
- path: string;
686
- version: "v1";
687
- fingerprint: string;
688
- };
689
- planning: {
690
- path: string;
691
- version: "v1";
692
- fingerprint: string;
693
- };
694
- }, {
695
- skills: {
696
- path: string;
697
- version: "v1";
698
- fingerprint: string;
699
- };
700
- research: {
701
- path: string;
702
- version: "v1";
703
- fingerprint: string;
704
- };
705
- planning: {
706
- path: string;
707
- version: "v1";
708
- fingerprint: string;
709
- };
710
- }>;
711
- next_action: z.ZodObject<{
712
- tool: z.ZodLiteral<"vibe_pm.inspect_code">;
713
- reason: z.ZodString;
714
- when: z.ZodLiteral<"after_implementation">;
715
- }, "strict", z.ZodTypeAny, {
716
- tool: "vibe_pm.inspect_code";
717
- reason: string;
718
- when: "after_implementation";
719
- }, {
720
- tool: "vibe_pm.inspect_code";
721
- reason: string;
722
- when: "after_implementation";
723
- }>;
724
- }, "strict", z.ZodTypeAny, {
725
- run_id: string;
726
- paths: {
727
- bridge_path: string;
728
- intent_dir?: string | undefined;
729
- };
730
- next_action: {
731
- tool: "vibe_pm.inspect_code";
732
- reason: string;
733
- when: "after_implementation";
734
- };
735
- project_id: string;
736
- work_order: {
737
- scope: {
738
- include: string[];
739
- exclude: string[];
740
- };
741
- do_not_touch: string[];
742
- verify_criteria: string[];
743
- headline: string;
744
- paste_to_agent: string;
745
- };
746
- modules: {
747
- skills: {
748
- path: string;
749
- version: "v1";
750
- fingerprint: string;
751
- };
752
- research: {
753
- path: string;
754
- version: "v1";
755
- fingerprint: string;
756
- };
757
- planning: {
758
- path: string;
759
- version: "v1";
760
- fingerprint: string;
761
- };
762
- };
763
- }, {
764
- run_id: string;
765
- paths: {
766
- bridge_path: string;
767
- intent_dir?: string | undefined;
768
- };
769
- next_action: {
770
- tool: "vibe_pm.inspect_code";
771
- reason: string;
772
- when: "after_implementation";
773
- };
774
- project_id: string;
775
- work_order: {
776
- scope: {
777
- include: string[];
778
- exclude: string[];
779
- };
780
- do_not_touch: string[];
781
- verify_criteria: string[];
782
- headline: string;
783
- paste_to_agent: string;
784
- };
785
- modules: {
786
- skills: {
787
- path: string;
788
- version: "v1";
789
- fingerprint: string;
790
- };
791
- research: {
792
- path: string;
793
- version: "v1";
794
- fingerprint: string;
795
- };
796
- planning: {
797
- path: string;
798
- version: "v1";
799
- fingerprint: string;
800
- };
801
- };
802
- }>;
803
- export type CreateWorkOrderInput = z.infer<typeof createWorkOrderInputSchema>;
804
- export interface WorkOrder {
805
- /** Current work goal (single item) */
806
- headline: string;
807
- /** Scope definition */
808
- scope: {
809
- include: string[];
810
- exclude: string[];
811
- };
812
- /** Do not touch list */
813
- do_not_touch: string[];
814
- /** Verification criteria */
815
- verify_criteria: string[];
816
- /** Text to paste to AI agent */
817
- paste_to_agent: string;
818
- }
819
- export interface CreateWorkOrderOutput {
820
- project_id: string;
821
- run_id: string;
822
- /** Work order */
823
- work_order: WorkOrder;
824
- /** Internal paths (agent-only) */
825
- paths: {
826
- bridge_path: string;
827
- intent_dir?: string;
828
- };
829
- /** Versioned module links (agent-only) */
830
- modules: {
831
- research: {
832
- version: "v1";
833
- fingerprint: string;
834
- path: string;
835
- };
836
- skills: {
837
- version: "v1";
838
- fingerprint: string;
839
- path: string;
840
- };
841
- planning: {
842
- version: "v1";
843
- fingerprint: string;
844
- path: string;
845
- };
846
- };
847
- next_action: {
848
- tool: "vibe_pm.inspect_code";
849
- reason: string;
850
- when: "after_implementation";
851
- };
852
- }
853
- export declare const inspectCodeInputSchema: z.ZodObject<{
854
- project_id: z.ZodOptional<z.ZodString>;
855
- target_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
856
- bridge_path: z.ZodOptional<z.ZodString>;
857
- mode: z.ZodDefault<z.ZodEnum<["quick", "thorough"]>>;
858
- auto_fix: z.ZodDefault<z.ZodBoolean>;
859
- run_build: z.ZodDefault<z.ZodBoolean>;
860
- build_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
- name: z.ZodString;
862
- cmd: z.ZodString;
863
- continueOnFailure: z.ZodOptional<z.ZodBoolean>;
864
- }, "strip", z.ZodTypeAny, {
865
- name: string;
866
- cmd: string;
867
- continueOnFailure?: boolean | undefined;
868
- }, {
869
- name: string;
870
- cmd: string;
871
- continueOnFailure?: boolean | undefined;
872
- }>, "many">>;
873
- }, "strict", z.ZodTypeAny, {
874
- auto_fix: boolean;
875
- mode: "quick" | "thorough";
876
- run_build: boolean;
877
- project_id?: string | undefined;
878
- bridge_path?: string | undefined;
879
- target_paths?: string[] | undefined;
880
- build_steps?: {
881
- name: string;
882
- cmd: string;
883
- continueOnFailure?: boolean | undefined;
884
- }[] | undefined;
885
- }, {
886
- auto_fix?: boolean | undefined;
887
- mode?: "quick" | "thorough" | undefined;
888
- project_id?: string | undefined;
889
- bridge_path?: string | undefined;
890
- target_paths?: string[] | undefined;
891
- run_build?: boolean | undefined;
892
- build_steps?: {
893
- name: string;
894
- cmd: string;
895
- continueOnFailure?: boolean | undefined;
896
- }[] | undefined;
897
- }>;
898
- export type InspectCodeInput = z.infer<typeof inspectCodeInputSchema>;
899
- export interface Issue {
900
- /** Issue type */
901
- type: IssueType;
902
- /** Business risk (in human terms) */
903
- business_risk: string;
904
- /** Plain explanation */
905
- plain_explanation: string;
906
- /** Technical detail (agent-only) */
907
- technical_detail?: {
908
- file_path: string;
909
- line_range?: [number, number];
910
- rule_violated?: string;
911
- principle_id?: string;
912
- pattern?: string;
913
- rule_engine?: string;
914
- rule_id?: string;
915
- severity?: string;
916
- evidence_ref?: string;
917
- };
918
- }
919
- /**
920
- * @deprecated Use UnifiedNextAction instead
921
- * Kept for backward compatibility during migration
922
- */
923
- export type NextAction = {
924
- action_type: "DONE";
925
- message: string;
926
- } | {
927
- action_type: "COPY_PASTE_TO_AGENT";
928
- label: string;
929
- prompt_block: string;
930
- } | {
931
- action_type: "ASK_DECISION";
932
- tool: "vibe_pm.get_decision";
933
- reason: string;
934
- } | {
935
- action_type: "CONTINUE";
936
- tool: "vibe_pm.create_work_order" | "vibe_pm.doctor";
937
- reason: string;
938
- };
939
- /**
940
- * Create a CALL_TOOL next action
941
- */
942
- export declare function createCallToolAction(tool: string, reason: string, when?: "now" | "after_implementation"): UnifiedNextAction;
943
- /**
944
- * Create a COPY_PASTE next action
945
- */
946
- export declare function createCopyPasteAction(label: string, promptBlock: string, reason: string): UnifiedNextAction;
947
- /**
948
- * Create a DONE next action
949
- */
950
- export declare function createDoneAction(message: string): UnifiedNextAction;
951
- /**
952
- * Convert legacy NextAction to UnifiedNextAction
953
- */
954
- export declare function toLegacyNextAction(action: UnifiedNextAction): NextAction;
955
- /**
956
- * Convert UnifiedNextAction to user-facing output (no internal fields)
957
- */
958
- export declare function toUserFacingNextAction(action: UnifiedNextAction): Omit<UnifiedNextAction, "_tool">;
959
- export interface InspectCodeOutput {
960
- project_id: string;
961
- /** Review summary (for non-developers) */
962
- review_summary: {
963
- /** Decision context */
964
- decision_context: string;
965
- /** Review result */
966
- review_result: ReviewResult;
967
- /** One-line verdict */
968
- one_line_verdict: string;
969
- };
970
- /** Issues found */
971
- issues_found: Issue[];
972
- /** Issues fixed by auto_fix (optional) */
973
- fixed_issues?: FixedIssue[];
974
- /** Next action (only one) */
975
- next_action: NextAction;
976
- /** P14: Message template ID (PM_USER_MESSAGES_SSOT_v1.0.md) */
977
- message_template_id: MessageTemplateId;
978
- /** Policy adjustment (v1.6.0) - opt-in bounded adjustment suggestion */
979
- policy_adjustment?: {
980
- /** Policy identifier (e.g., POL-001) */
981
- policy_id: string;
982
- /** What triggered this policy (REPEATED_FAILURE | BITNET_WARNING) */
983
- trigger: string;
984
- /** Suggested gate mode (not enforced, just recommended) */
985
- gate_mode_suggested: string;
986
- /** Human-readable reason (Korean) */
987
- reason: string;
988
- };
989
- /** Tier information (v1.6.0) - current plan and feature usage */
990
- tier_info?: {
991
- /** Current plan (FREE or PRO) */
992
- plan: "FREE" | "PRO";
993
- /** Features used during this inspection */
994
- features_used: string[];
995
- };
996
- /** Scorecard analysis (v1.6.0 Pro only) - code quality metrics */
997
- scorecard?: {
998
- /** Overall score (0-100) */
999
- overall_score: number;
1000
- /** Letter grade */
1001
- grade: "A" | "B" | "C" | "D" | "F";
1002
- /** Individual metrics */
1003
- metrics: Array<{
1004
- name: string;
1005
- score: number;
1006
- }>;
1007
- /** Improvement suggestions */
1008
- suggestions: string[];
1009
- };
1010
- /** Policy analysis (v1.6.0 Pro only) - compliance checking */
1011
- policy?: {
1012
- /** Whether all policies passed */
1013
- passed: boolean;
1014
- /** Number of violations found */
1015
- violations_count: number;
1016
- /** Critical violations that need attention */
1017
- critical_violations: Array<{
1018
- rule_id: string;
1019
- message: string;
1020
- }>;
1021
- };
1022
- /** Build result (Phase 14 - BuildWorker integration) */
1023
- build_result?: {
1024
- /** Total build duration in milliseconds */
1025
- total_duration_ms: number;
1026
- /** Number of steps that passed */
1027
- steps_passed: number;
1028
- /** Number of steps that failed */
1029
- steps_failed: number;
1030
- /** Build artifacts */
1031
- artifacts?: {
1032
- junit?: string;
1033
- coverage?: string;
1034
- };
1035
- };
1036
- }
1037
- export declare const inspectCodeOutputSchema: z.ZodObject<{
1038
- project_id: z.ZodString;
1039
- review_summary: z.ZodObject<{
1040
- decision_context: z.ZodString;
1041
- review_result: z.ZodEnum<["GO", "FIX", "BLOCK"]>;
1042
- one_line_verdict: z.ZodString;
1043
- }, "strict", z.ZodTypeAny, {
1044
- decision_context: string;
1045
- review_result: "GO" | "FIX" | "BLOCK";
1046
- one_line_verdict: string;
1047
- }, {
1048
- decision_context: string;
1049
- review_result: "GO" | "FIX" | "BLOCK";
1050
- one_line_verdict: string;
1051
- }>;
1052
- issues_found: z.ZodArray<z.ZodObject<{
1053
- type: z.ZodEnum<["RULE_VIOLATION", "VERIFY_FAIL", "SCOPE_MISMATCH", "RISK_SPIKE"]>;
1054
- business_risk: z.ZodString;
1055
- plain_explanation: z.ZodString;
1056
- technical_detail: z.ZodOptional<z.ZodObject<{
1057
- file_path: z.ZodString;
1058
- line_range: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1059
- rule_violated: z.ZodOptional<z.ZodString>;
1060
- principle_id: z.ZodOptional<z.ZodEnum<["STRATEGY_ENFORCEMENT", "ADAPTER_ENFORCEMENT", "OBSERVER_ENFORCEMENT", "BUILDER_ENFORCEMENT", "SINGLETON_GUARD", "UNMAPPED_RULE"]>>;
1061
- pattern: z.ZodOptional<z.ZodEnum<["Strategy", "Adapter", "Observer", "Builder", "Singleton"]>>;
1062
- rule_engine: z.ZodOptional<z.ZodLiteral<"semgrep">>;
1063
- rule_id: z.ZodOptional<z.ZodString>;
1064
- severity: z.ZodOptional<z.ZodEnum<["ERROR", "WARNING", "INFO", "CRITICAL"]>>;
1065
- evidence_ref: z.ZodOptional<z.ZodString>;
1066
- }, "strict", z.ZodTypeAny, {
1067
- file_path: string;
1068
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1069
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1070
- line_range?: number[] | undefined;
1071
- rule_violated?: string | undefined;
1072
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1073
- rule_engine?: "semgrep" | undefined;
1074
- rule_id?: string | undefined;
1075
- evidence_ref?: string | undefined;
1076
- }, {
1077
- file_path: string;
1078
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1079
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1080
- line_range?: number[] | undefined;
1081
- rule_violated?: string | undefined;
1082
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1083
- rule_engine?: "semgrep" | undefined;
1084
- rule_id?: string | undefined;
1085
- evidence_ref?: string | undefined;
1086
- }>>;
1087
- }, "strict", z.ZodTypeAny, {
1088
- type: "RULE_VIOLATION" | "VERIFY_FAIL" | "SCOPE_MISMATCH" | "RISK_SPIKE";
1089
- business_risk: string;
1090
- plain_explanation: string;
1091
- technical_detail?: {
1092
- file_path: string;
1093
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1094
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1095
- line_range?: number[] | undefined;
1096
- rule_violated?: string | undefined;
1097
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1098
- rule_engine?: "semgrep" | undefined;
1099
- rule_id?: string | undefined;
1100
- evidence_ref?: string | undefined;
1101
- } | undefined;
1102
- }, {
1103
- type: "RULE_VIOLATION" | "VERIFY_FAIL" | "SCOPE_MISMATCH" | "RISK_SPIKE";
1104
- business_risk: string;
1105
- plain_explanation: string;
1106
- technical_detail?: {
1107
- file_path: string;
1108
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1109
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1110
- line_range?: number[] | undefined;
1111
- rule_violated?: string | undefined;
1112
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1113
- rule_engine?: "semgrep" | undefined;
1114
- rule_id?: string | undefined;
1115
- evidence_ref?: string | undefined;
1116
- } | undefined;
1117
- }>, "many">;
1118
- fixed_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
1119
- type: z.ZodString;
1120
- description: z.ZodString;
1121
- file: z.ZodOptional<z.ZodString>;
1122
- status: z.ZodLiteral<"FIXED">;
1123
- }, "strict", z.ZodTypeAny, {
1124
- status: "FIXED";
1125
- type: string;
1126
- description: string;
1127
- file?: string | undefined;
1128
- }, {
1129
- status: "FIXED";
1130
- type: string;
1131
- description: string;
1132
- file?: string | undefined;
1133
- }>, "many">>;
1134
- next_action: z.ZodEffects<z.ZodAny, any, any>;
1135
- message_template_id: z.ZodEnum<["GO-01", "GO-02", "FIX-01", "FIX-02", "BLOCK-01", "BLOCK-02", "AUTO-01", "AUTO-02", "AUTO-03", "DEPS-01", "DEPS-02", "DEPS-03", "VERIFY-01", "VERIFY-02", "VERIFY-03"]>;
1136
- }, "strict", z.ZodTypeAny, {
1137
- project_id: string;
1138
- review_summary: {
1139
- decision_context: string;
1140
- review_result: "GO" | "FIX" | "BLOCK";
1141
- one_line_verdict: string;
1142
- };
1143
- issues_found: {
1144
- type: "RULE_VIOLATION" | "VERIFY_FAIL" | "SCOPE_MISMATCH" | "RISK_SPIKE";
1145
- business_risk: string;
1146
- plain_explanation: string;
1147
- technical_detail?: {
1148
- file_path: string;
1149
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1150
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1151
- line_range?: number[] | undefined;
1152
- rule_violated?: string | undefined;
1153
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1154
- rule_engine?: "semgrep" | undefined;
1155
- rule_id?: string | undefined;
1156
- evidence_ref?: string | undefined;
1157
- } | undefined;
1158
- }[];
1159
- message_template_id: "GO-01" | "GO-02" | "FIX-01" | "FIX-02" | "BLOCK-01" | "BLOCK-02" | "AUTO-01" | "AUTO-02" | "AUTO-03" | "DEPS-01" | "DEPS-02" | "DEPS-03" | "VERIFY-01" | "VERIFY-02" | "VERIFY-03";
1160
- next_action?: any;
1161
- fixed_issues?: {
1162
- status: "FIXED";
1163
- type: string;
1164
- description: string;
1165
- file?: string | undefined;
1166
- }[] | undefined;
1167
- }, {
1168
- project_id: string;
1169
- review_summary: {
1170
- decision_context: string;
1171
- review_result: "GO" | "FIX" | "BLOCK";
1172
- one_line_verdict: string;
1173
- };
1174
- issues_found: {
1175
- type: "RULE_VIOLATION" | "VERIFY_FAIL" | "SCOPE_MISMATCH" | "RISK_SPIKE";
1176
- business_risk: string;
1177
- plain_explanation: string;
1178
- technical_detail?: {
1179
- file_path: string;
1180
- pattern?: "Strategy" | "Adapter" | "Observer" | "Builder" | "Singleton" | undefined;
1181
- severity?: "ERROR" | "WARNING" | "INFO" | "CRITICAL" | undefined;
1182
- line_range?: number[] | undefined;
1183
- rule_violated?: string | undefined;
1184
- principle_id?: "STRATEGY_ENFORCEMENT" | "ADAPTER_ENFORCEMENT" | "OBSERVER_ENFORCEMENT" | "BUILDER_ENFORCEMENT" | "SINGLETON_GUARD" | "UNMAPPED_RULE" | undefined;
1185
- rule_engine?: "semgrep" | undefined;
1186
- rule_id?: string | undefined;
1187
- evidence_ref?: string | undefined;
1188
- } | undefined;
1189
- }[];
1190
- message_template_id: "GO-01" | "GO-02" | "FIX-01" | "FIX-02" | "BLOCK-01" | "BLOCK-02" | "AUTO-01" | "AUTO-02" | "AUTO-03" | "DEPS-01" | "DEPS-02" | "DEPS-03" | "VERIFY-01" | "VERIFY-02" | "VERIFY-03";
1191
- next_action?: any;
1192
- fixed_issues?: {
1193
- status: "FIXED";
1194
- type: string;
1195
- description: string;
1196
- file?: string | undefined;
1197
- }[] | undefined;
1198
- }>;
1199
- /**
1200
- * P11: Validate inspect_code output against schema contract
1201
- * @throws ZodError if validation fails
1202
- */
1203
- export declare function validateInspectCodeOutput(output: unknown): InspectCodeOutput;
1204
- /**
1205
- * P14: Select message template ID based on review result and issues
1206
- * Reference: docs/specs/PM_USER_MESSAGES_SSOT_v1.0.md
1207
- *
1208
- * Selection rules:
1209
- * - GO → GO-01 (기본) or GO-02 (다음 작업 연결 시)
1210
- * - FIX + VERIFY_FAIL → FIX-02
1211
- * - FIX (other) → FIX-01
1212
- * - BLOCK + RULE_VIOLATION|RISK_SPIKE → BLOCK-01
1213
- * - BLOCK + SCOPE_MISMATCH → BLOCK-02
1214
- */
1215
- export declare function selectMessageTemplate(reviewResult: ReviewResult, issues: Issue[], hasNextWorkOrder?: boolean): MessageTemplateId;
1216
- export declare const statusInputSchema: z.ZodObject<{
1217
- project_id: z.ZodOptional<z.ZodString>;
1218
- format: z.ZodOptional<z.ZodEnum<["json", "summary"]>>;
1219
- }, "strict", z.ZodTypeAny, {
1220
- format?: "json" | "summary" | undefined;
1221
- project_id?: string | undefined;
1222
- }, {
1223
- format?: "json" | "summary" | undefined;
1224
- project_id?: string | undefined;
1225
- }>;
1226
- export declare const statusOutputSchema: z.ZodObject<{
1227
- project_id: z.ZodString;
1228
- project: z.ZodObject<{
1229
- name: z.ZodString;
1230
- mode: z.ZodString;
1231
- started_at: z.ZodString;
1232
- }, "strict", z.ZodTypeAny, {
1233
- name: string;
1234
- mode: string;
1235
- started_at: string;
1236
- }, {
1237
- name: string;
1238
- mode: string;
1239
- started_at: string;
1240
- }>;
1241
- current_state: z.ZodObject<{
1242
- phase: z.ZodString;
1243
- decisions_made: z.ZodNumber;
1244
- decisions_pending: z.ZodNumber;
1245
- last_review_status: z.ZodOptional<z.ZodEnum<["GO", "FIX", "BLOCK"]>>;
1246
- }, "strict", z.ZodTypeAny, {
1247
- phase: string;
1248
- decisions_made: number;
1249
- decisions_pending: number;
1250
- last_review_status?: "GO" | "FIX" | "BLOCK" | undefined;
1251
- }, {
1252
- phase: string;
1253
- decisions_made: number;
1254
- decisions_pending: number;
1255
- last_review_status?: "GO" | "FIX" | "BLOCK" | undefined;
1256
- }>;
1257
- risks: z.ZodArray<z.ZodString, "many">;
1258
- next_action: z.ZodObject<{
1259
- tool: z.ZodString;
1260
- label: z.ZodString;
1261
- }, "strict", z.ZodTypeAny, {
1262
- tool: string;
1263
- label: string;
1264
- }, {
1265
- tool: string;
1266
- label: string;
1267
- }>;
1268
- observer: z.ZodOptional<z.ZodObject<{
1269
- state: z.ZodString;
1270
- watcher_mode: z.ZodOptional<z.ZodString>;
1271
- workspace_path: z.ZodOptional<z.ZodString>;
1272
- is_attached: z.ZodBoolean;
1273
- files_watched: z.ZodOptional<z.ZodNumber>;
1274
- active_risks: z.ZodOptional<z.ZodNumber>;
1275
- warning: z.ZodOptional<z.ZodString>;
1276
- heartbeat_is_alive: z.ZodOptional<z.ZodBoolean>;
1277
- heartbeat_age_ms: z.ZodOptional<z.ZodNumber>;
1278
- heartbeat_reason: z.ZodOptional<z.ZodString>;
1279
- delta_loop_running: z.ZodOptional<z.ZodBoolean>;
1280
- delta_loop_interval_ms: z.ZodOptional<z.ZodNumber>;
1281
- delta_loop_in_flight: z.ZodOptional<z.ZodBoolean>;
1282
- runtime_watcher_impl: z.ZodOptional<z.ZodString>;
1283
- enabled: z.ZodOptional<z.ZodBoolean>;
1284
- mode: z.ZodOptional<z.ZodEnum<["off", "soft", "watch"]>>;
1285
- health: z.ZodOptional<z.ZodEnum<["ok", "degraded", "stopped"]>>;
1286
- started_at: z.ZodOptional<z.ZodString>;
1287
- last_heartbeat_at: z.ZodOptional<z.ZodString>;
1288
- heartbeat_period_ms: z.ZodOptional<z.ZodNumber>;
1289
- last_scan_at: z.ZodOptional<z.ZodString>;
1290
- last_scan_duration_ms: z.ZodOptional<z.ZodNumber>;
1291
- last_error: z.ZodOptional<z.ZodObject<{
1292
- code: z.ZodString;
1293
- message: z.ZodString;
1294
- }, "strict", z.ZodTypeAny, {
1295
- code: string;
1296
- message: string;
1297
- }, {
1298
- code: string;
1299
- message: string;
1300
- }>>;
1301
- }, "strict", z.ZodTypeAny, {
1302
- state: string;
1303
- is_attached: boolean;
1304
- warning?: string | undefined;
1305
- health?: "ok" | "degraded" | "stopped" | undefined;
1306
- mode?: "off" | "soft" | "watch" | undefined;
1307
- enabled?: boolean | undefined;
1308
- watcher_mode?: string | undefined;
1309
- workspace_path?: string | undefined;
1310
- files_watched?: number | undefined;
1311
- active_risks?: number | undefined;
1312
- heartbeat_is_alive?: boolean | undefined;
1313
- heartbeat_age_ms?: number | undefined;
1314
- heartbeat_reason?: string | undefined;
1315
- delta_loop_running?: boolean | undefined;
1316
- delta_loop_interval_ms?: number | undefined;
1317
- delta_loop_in_flight?: boolean | undefined;
1318
- runtime_watcher_impl?: string | undefined;
1319
- started_at?: string | undefined;
1320
- last_heartbeat_at?: string | undefined;
1321
- heartbeat_period_ms?: number | undefined;
1322
- last_scan_at?: string | undefined;
1323
- last_scan_duration_ms?: number | undefined;
1324
- last_error?: {
1325
- code: string;
1326
- message: string;
1327
- } | undefined;
1328
- }, {
1329
- state: string;
1330
- is_attached: boolean;
1331
- warning?: string | undefined;
1332
- health?: "ok" | "degraded" | "stopped" | undefined;
1333
- mode?: "off" | "soft" | "watch" | undefined;
1334
- enabled?: boolean | undefined;
1335
- watcher_mode?: string | undefined;
1336
- workspace_path?: string | undefined;
1337
- files_watched?: number | undefined;
1338
- active_risks?: number | undefined;
1339
- heartbeat_is_alive?: boolean | undefined;
1340
- heartbeat_age_ms?: number | undefined;
1341
- heartbeat_reason?: string | undefined;
1342
- delta_loop_running?: boolean | undefined;
1343
- delta_loop_interval_ms?: number | undefined;
1344
- delta_loop_in_flight?: boolean | undefined;
1345
- runtime_watcher_impl?: string | undefined;
1346
- started_at?: string | undefined;
1347
- last_heartbeat_at?: string | undefined;
1348
- heartbeat_period_ms?: number | undefined;
1349
- last_scan_at?: string | undefined;
1350
- last_scan_duration_ms?: number | undefined;
1351
- last_error?: {
1352
- code: string;
1353
- message: string;
1354
- } | undefined;
1355
- }>>;
1356
- ingress: z.ZodOptional<z.ZodObject<{
1357
- state: z.ZodEnum<["ready", "stale", "missing", "failed"]>;
1358
- required: z.ZodBoolean;
1359
- artifacts: z.ZodObject<{
1360
- ingress_summary: z.ZodObject<{
1361
- exists: z.ZodBoolean;
1362
- path: z.ZodString;
1363
- }, "strict", z.ZodTypeAny, {
1364
- path: string;
1365
- exists: boolean;
1366
- }, {
1367
- path: string;
1368
- exists: boolean;
1369
- }>;
1370
- ingress_resolution: z.ZodOptional<z.ZodObject<{
1371
- exists: z.ZodBoolean;
1372
- path: z.ZodString;
1373
- }, "strict", z.ZodTypeAny, {
1374
- path: string;
1375
- exists: boolean;
1376
- }, {
1377
- path: string;
1378
- exists: boolean;
1379
- }>>;
1380
- project_fingerprint: z.ZodOptional<z.ZodObject<{
1381
- exists: z.ZodBoolean;
1382
- path: z.ZodString;
1383
- }, "strict", z.ZodTypeAny, {
1384
- path: string;
1385
- exists: boolean;
1386
- }, {
1387
- path: string;
1388
- exists: boolean;
1389
- }>>;
1390
- }, "strict", z.ZodTypeAny, {
1391
- ingress_summary: {
1392
- path: string;
1393
- exists: boolean;
1394
- };
1395
- ingress_resolution?: {
1396
- path: string;
1397
- exists: boolean;
1398
- } | undefined;
1399
- project_fingerprint?: {
1400
- path: string;
1401
- exists: boolean;
1402
- } | undefined;
1403
- }, {
1404
- ingress_summary: {
1405
- path: string;
1406
- exists: boolean;
1407
- };
1408
- ingress_resolution?: {
1409
- path: string;
1410
- exists: boolean;
1411
- } | undefined;
1412
- project_fingerprint?: {
1413
- path: string;
1414
- exists: boolean;
1415
- } | undefined;
1416
- }>;
1417
- dirty: z.ZodObject<{
1418
- is_dirty: z.ZodBoolean;
1419
- reasons: z.ZodArray<z.ZodObject<{
1420
- code: z.ZodEnum<["mtime_changed", "file_count_changed", "lockfile_changed", "config_changed", "unknown"]>;
1421
- detail: z.ZodOptional<z.ZodString>;
1422
- }, "strict", z.ZodTypeAny, {
1423
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1424
- detail?: string | undefined;
1425
- }, {
1426
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1427
- detail?: string | undefined;
1428
- }>, "many">;
1429
- }, "strict", z.ZodTypeAny, {
1430
- reasons: {
1431
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1432
- detail?: string | undefined;
1433
- }[];
1434
- is_dirty: boolean;
1435
- }, {
1436
- reasons: {
1437
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1438
- detail?: string | undefined;
1439
- }[];
1440
- is_dirty: boolean;
1441
- }>;
1442
- next_action: z.ZodOptional<z.ZodObject<{
1443
- tool: z.ZodLiteral<"vibe_pm.ingress">;
1444
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1445
- }, "strict", z.ZodTypeAny, {
1446
- tool: "vibe_pm.ingress";
1447
- input: Record<string, unknown>;
1448
- }, {
1449
- tool: "vibe_pm.ingress";
1450
- input: Record<string, unknown>;
1451
- }>>;
1452
- }, "strict", z.ZodTypeAny, {
1453
- artifacts: {
1454
- ingress_summary: {
1455
- path: string;
1456
- exists: boolean;
1457
- };
1458
- ingress_resolution?: {
1459
- path: string;
1460
- exists: boolean;
1461
- } | undefined;
1462
- project_fingerprint?: {
1463
- path: string;
1464
- exists: boolean;
1465
- } | undefined;
1466
- };
1467
- dirty: {
1468
- reasons: {
1469
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1470
- detail?: string | undefined;
1471
- }[];
1472
- is_dirty: boolean;
1473
- };
1474
- state: "ready" | "missing" | "failed" | "stale";
1475
- required: boolean;
1476
- next_action?: {
1477
- tool: "vibe_pm.ingress";
1478
- input: Record<string, unknown>;
1479
- } | undefined;
1480
- }, {
1481
- artifacts: {
1482
- ingress_summary: {
1483
- path: string;
1484
- exists: boolean;
1485
- };
1486
- ingress_resolution?: {
1487
- path: string;
1488
- exists: boolean;
1489
- } | undefined;
1490
- project_fingerprint?: {
1491
- path: string;
1492
- exists: boolean;
1493
- } | undefined;
1494
- };
1495
- dirty: {
1496
- reasons: {
1497
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1498
- detail?: string | undefined;
1499
- }[];
1500
- is_dirty: boolean;
1501
- };
1502
- state: "ready" | "missing" | "failed" | "stale";
1503
- required: boolean;
1504
- next_action?: {
1505
- tool: "vibe_pm.ingress";
1506
- input: Record<string, unknown>;
1507
- } | undefined;
1508
- }>>;
1509
- dirty: z.ZodOptional<z.ZodObject<{
1510
- is_dirty: z.ZodBoolean;
1511
- confidence: z.ZodEnum<["low", "medium", "high"]>;
1512
- reasons: z.ZodArray<z.ZodObject<{
1513
- code: z.ZodEnum<["mtime_changed", "file_count_changed", "lockfile_changed", "config_changed", "unknown"]>;
1514
- detail: z.ZodOptional<z.ZodString>;
1515
- sample_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1516
- }, "strict", z.ZodTypeAny, {
1517
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1518
- detail?: string | undefined;
1519
- sample_paths?: string[] | undefined;
1520
- }, {
1521
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1522
- detail?: string | undefined;
1523
- sample_paths?: string[] | undefined;
1524
- }>, "many">;
1525
- computed_at: z.ZodString;
1526
- }, "strict", z.ZodTypeAny, {
1527
- reasons: {
1528
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1529
- detail?: string | undefined;
1530
- sample_paths?: string[] | undefined;
1531
- }[];
1532
- confidence: "low" | "high" | "medium";
1533
- is_dirty: boolean;
1534
- computed_at: string;
1535
- }, {
1536
- reasons: {
1537
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1538
- detail?: string | undefined;
1539
- sample_paths?: string[] | undefined;
1540
- }[];
1541
- confidence: "low" | "high" | "medium";
1542
- is_dirty: boolean;
1543
- computed_at: string;
1544
- }>>;
1545
- feature_flags: z.ZodOptional<z.ZodObject<{
1546
- autonomy_mode: z.ZodEnum<["off", "assisted", "full"]>;
1547
- observer_enabled: z.ZodBoolean;
1548
- observer_watch: z.ZodBoolean;
1549
- ingress_required: z.ZodBoolean;
1550
- }, "strict", z.ZodTypeAny, {
1551
- autonomy_mode: "off" | "assisted" | "full";
1552
- observer_enabled: boolean;
1553
- observer_watch: boolean;
1554
- ingress_required: boolean;
1555
- }, {
1556
- autonomy_mode: "off" | "assisted" | "full";
1557
- observer_enabled: boolean;
1558
- observer_watch: boolean;
1559
- ingress_required: boolean;
1560
- }>>;
1561
- bitnet: z.ZodOptional<z.ZodObject<{
1562
- enabled: z.ZodBoolean;
1563
- cache_exists: z.ZodBoolean;
1564
- stale: z.ZodBoolean;
1565
- last_check: z.ZodOptional<z.ZodObject<{
1566
- checked_at: z.ZodString;
1567
- verdict: z.ZodEnum<["GO", "WARNING", "BLOCK"]>;
1568
- evidence_level: z.ZodEnum<["NONE", "RULE", "MODEL"]>;
1569
- risk_tags: z.ZodArray<z.ZodString, "many">;
1570
- reason: z.ZodString;
1571
- }, "strict", z.ZodTypeAny, {
1572
- verdict: "GO" | "BLOCK" | "WARNING";
1573
- reason: string;
1574
- risk_tags: string[];
1575
- checked_at: string;
1576
- evidence_level: "NONE" | "RULE" | "MODEL";
1577
- }, {
1578
- verdict: "GO" | "BLOCK" | "WARNING";
1579
- reason: string;
1580
- risk_tags: string[];
1581
- checked_at: string;
1582
- evidence_level: "NONE" | "RULE" | "MODEL";
1583
- }>>;
1584
- warning: z.ZodOptional<z.ZodString>;
1585
- }, "strict", z.ZodTypeAny, {
1586
- enabled: boolean;
1587
- stale: boolean;
1588
- cache_exists: boolean;
1589
- warning?: string | undefined;
1590
- last_check?: {
1591
- verdict: "GO" | "BLOCK" | "WARNING";
1592
- reason: string;
1593
- risk_tags: string[];
1594
- checked_at: string;
1595
- evidence_level: "NONE" | "RULE" | "MODEL";
1596
- } | undefined;
1597
- }, {
1598
- enabled: boolean;
1599
- stale: boolean;
1600
- cache_exists: boolean;
1601
- warning?: string | undefined;
1602
- last_check?: {
1603
- verdict: "GO" | "BLOCK" | "WARNING";
1604
- reason: string;
1605
- risk_tags: string[];
1606
- checked_at: string;
1607
- evidence_level: "NONE" | "RULE" | "MODEL";
1608
- } | undefined;
1609
- }>>;
1610
- tier: z.ZodOptional<z.ZodObject<{
1611
- plan: z.ZodEnum<["FREE", "PRO"]>;
1612
- status: z.ZodEnum<["ACTIVE", "EXPIRED", "INVALID", "MISSING"]>;
1613
- days_left: z.ZodOptional<z.ZodNumber>;
1614
- concurrent_slots: z.ZodObject<{
1615
- free: z.ZodNumber;
1616
- paid: z.ZodNumber;
1617
- }, "strict", z.ZodTypeAny, {
1618
- free: number;
1619
- paid: number;
1620
- }, {
1621
- free: number;
1622
- paid: number;
1623
- }>;
1624
- features: z.ZodObject<{
1625
- scorecard: z.ZodBoolean;
1626
- policy_analysis: z.ZodBoolean;
1627
- auto_fix: z.ZodBoolean;
1628
- bitnet_trace: z.ZodBoolean;
1629
- }, "strict", z.ZodTypeAny, {
1630
- auto_fix: boolean;
1631
- scorecard: boolean;
1632
- policy_analysis: boolean;
1633
- bitnet_trace: boolean;
1634
- }, {
1635
- auto_fix: boolean;
1636
- scorecard: boolean;
1637
- policy_analysis: boolean;
1638
- bitnet_trace: boolean;
1639
- }>;
1640
- upgrade_hint: z.ZodOptional<z.ZodString>;
1641
- }, "strict", z.ZodTypeAny, {
1642
- status: "MISSING" | "ACTIVE" | "EXPIRED" | "INVALID";
1643
- plan: "FREE" | "PRO";
1644
- concurrent_slots: {
1645
- free: number;
1646
- paid: number;
1647
- };
1648
- features: {
1649
- auto_fix: boolean;
1650
- scorecard: boolean;
1651
- policy_analysis: boolean;
1652
- bitnet_trace: boolean;
1653
- };
1654
- days_left?: number | undefined;
1655
- upgrade_hint?: string | undefined;
1656
- }, {
1657
- status: "MISSING" | "ACTIVE" | "EXPIRED" | "INVALID";
1658
- plan: "FREE" | "PRO";
1659
- concurrent_slots: {
1660
- free: number;
1661
- paid: number;
1662
- };
1663
- features: {
1664
- auto_fix: boolean;
1665
- scorecard: boolean;
1666
- policy_analysis: boolean;
1667
- bitnet_trace: boolean;
1668
- };
1669
- days_left?: number | undefined;
1670
- upgrade_hint?: string | undefined;
1671
- }>>;
1672
- trigger: z.ZodOptional<z.ZodObject<{
1673
- active_triggers: z.ZodArray<z.ZodString, "many">;
1674
- highest_priority: z.ZodNullable<z.ZodString>;
1675
- cooldown_blocks: z.ZodArray<z.ZodString, "many">;
1676
- engine_backlog: z.ZodBoolean;
1677
- last_evaluation: z.ZodNullable<z.ZodString>;
1678
- }, "strict", z.ZodTypeAny, {
1679
- highest_priority: string | null;
1680
- cooldown_blocks: string[];
1681
- active_triggers: string[];
1682
- engine_backlog: boolean;
1683
- last_evaluation: string | null;
1684
- }, {
1685
- highest_priority: string | null;
1686
- cooldown_blocks: string[];
1687
- active_triggers: string[];
1688
- engine_backlog: boolean;
1689
- last_evaluation: string | null;
1690
- }>>;
1691
- preprocess: z.ZodOptional<z.ZodObject<{
1692
- summary: z.ZodOptional<z.ZodString>;
1693
- airlock: z.ZodOptional<z.ZodObject<{
1694
- report_path: z.ZodOptional<z.ZodString>;
1695
- safe_context_path: z.ZodOptional<z.ZodString>;
1696
- fingerprint_path: z.ZodOptional<z.ZodString>;
1697
- redacted_count: z.ZodOptional<z.ZodNumber>;
1698
- rules_applied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1699
- policy_name: z.ZodOptional<z.ZodString>;
1700
- created_at: z.ZodOptional<z.ZodString>;
1701
- }, "strict", z.ZodTypeAny, {
1702
- created_at?: string | undefined;
1703
- report_path?: string | undefined;
1704
- safe_context_path?: string | undefined;
1705
- fingerprint_path?: string | undefined;
1706
- redacted_count?: number | undefined;
1707
- rules_applied?: string[] | undefined;
1708
- policy_name?: string | undefined;
1709
- }, {
1710
- created_at?: string | undefined;
1711
- report_path?: string | undefined;
1712
- safe_context_path?: string | undefined;
1713
- fingerprint_path?: string | undefined;
1714
- redacted_count?: number | undefined;
1715
- rules_applied?: string[] | undefined;
1716
- policy_name?: string | undefined;
1717
- }>>;
1718
- router: z.ZodOptional<z.ZodObject<{
1719
- decision_path: z.ZodOptional<z.ZodString>;
1720
- route: z.ZodOptional<z.ZodEnum<["local_only", "local_then_cloud", "cloud_direct"]>>;
1721
- reason: z.ZodOptional<z.ZodString>;
1722
- policy_id: z.ZodOptional<z.ZodString>;
1723
- created_at: z.ZodOptional<z.ZodString>;
1724
- }, "strict", z.ZodTypeAny, {
1725
- reason?: string | undefined;
1726
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
1727
- created_at?: string | undefined;
1728
- decision_path?: string | undefined;
1729
- policy_id?: string | undefined;
1730
- }, {
1731
- reason?: string | undefined;
1732
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
1733
- created_at?: string | undefined;
1734
- decision_path?: string | undefined;
1735
- policy_id?: string | undefined;
1736
- }>>;
1737
- chunking: z.ZodOptional<z.ZodObject<{
1738
- manifest_path: z.ZodOptional<z.ZodString>;
1739
- chunk_count: z.ZodOptional<z.ZodNumber>;
1740
- profiles: z.ZodOptional<z.ZodObject<{
1741
- extraction: z.ZodOptional<z.ZodNumber>;
1742
- reasoning: z.ZodOptional<z.ZodNumber>;
1743
- reference: z.ZodOptional<z.ZodNumber>;
1744
- }, "strict", z.ZodTypeAny, {
1745
- extraction?: number | undefined;
1746
- reasoning?: number | undefined;
1747
- reference?: number | undefined;
1748
- }, {
1749
- extraction?: number | undefined;
1750
- reasoning?: number | undefined;
1751
- reference?: number | undefined;
1752
- }>>;
1753
- created_at: z.ZodOptional<z.ZodString>;
1754
- }, "strict", z.ZodTypeAny, {
1755
- created_at?: string | undefined;
1756
- chunk_count?: number | undefined;
1757
- manifest_path?: string | undefined;
1758
- profiles?: {
1759
- extraction?: number | undefined;
1760
- reasoning?: number | undefined;
1761
- reference?: number | undefined;
1762
- } | undefined;
1763
- }, {
1764
- created_at?: string | undefined;
1765
- chunk_count?: number | undefined;
1766
- manifest_path?: string | undefined;
1767
- profiles?: {
1768
- extraction?: number | undefined;
1769
- reasoning?: number | undefined;
1770
- reference?: number | undefined;
1771
- } | undefined;
1772
- }>>;
1773
- }, "strict", z.ZodTypeAny, {
1774
- summary?: string | undefined;
1775
- airlock?: {
1776
- created_at?: string | undefined;
1777
- report_path?: string | undefined;
1778
- safe_context_path?: string | undefined;
1779
- fingerprint_path?: string | undefined;
1780
- redacted_count?: number | undefined;
1781
- rules_applied?: string[] | undefined;
1782
- policy_name?: string | undefined;
1783
- } | undefined;
1784
- router?: {
1785
- reason?: string | undefined;
1786
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
1787
- created_at?: string | undefined;
1788
- decision_path?: string | undefined;
1789
- policy_id?: string | undefined;
1790
- } | undefined;
1791
- chunking?: {
1792
- created_at?: string | undefined;
1793
- chunk_count?: number | undefined;
1794
- manifest_path?: string | undefined;
1795
- profiles?: {
1796
- extraction?: number | undefined;
1797
- reasoning?: number | undefined;
1798
- reference?: number | undefined;
1799
- } | undefined;
1800
- } | undefined;
1801
- }, {
1802
- summary?: string | undefined;
1803
- airlock?: {
1804
- created_at?: string | undefined;
1805
- report_path?: string | undefined;
1806
- safe_context_path?: string | undefined;
1807
- fingerprint_path?: string | undefined;
1808
- redacted_count?: number | undefined;
1809
- rules_applied?: string[] | undefined;
1810
- policy_name?: string | undefined;
1811
- } | undefined;
1812
- router?: {
1813
- reason?: string | undefined;
1814
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
1815
- created_at?: string | undefined;
1816
- decision_path?: string | undefined;
1817
- policy_id?: string | undefined;
1818
- } | undefined;
1819
- chunking?: {
1820
- created_at?: string | undefined;
1821
- chunk_count?: number | undefined;
1822
- manifest_path?: string | undefined;
1823
- profiles?: {
1824
- extraction?: number | undefined;
1825
- reasoning?: number | undefined;
1826
- reference?: number | undefined;
1827
- } | undefined;
1828
- } | undefined;
1829
- }>>;
1830
- }, "strict", z.ZodTypeAny, {
1831
- project: {
1832
- name: string;
1833
- mode: string;
1834
- started_at: string;
1835
- };
1836
- next_action: {
1837
- tool: string;
1838
- label: string;
1839
- };
1840
- project_id: string;
1841
- risks: string[];
1842
- current_state: {
1843
- phase: string;
1844
- decisions_made: number;
1845
- decisions_pending: number;
1846
- last_review_status?: "GO" | "FIX" | "BLOCK" | undefined;
1847
- };
1848
- bitnet?: {
1849
- enabled: boolean;
1850
- stale: boolean;
1851
- cache_exists: boolean;
1852
- warning?: string | undefined;
1853
- last_check?: {
1854
- verdict: "GO" | "BLOCK" | "WARNING";
1855
- reason: string;
1856
- risk_tags: string[];
1857
- checked_at: string;
1858
- evidence_level: "NONE" | "RULE" | "MODEL";
1859
- } | undefined;
1860
- } | undefined;
1861
- dirty?: {
1862
- reasons: {
1863
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1864
- detail?: string | undefined;
1865
- sample_paths?: string[] | undefined;
1866
- }[];
1867
- confidence: "low" | "high" | "medium";
1868
- is_dirty: boolean;
1869
- computed_at: string;
1870
- } | undefined;
1871
- observer?: {
1872
- state: string;
1873
- is_attached: boolean;
1874
- warning?: string | undefined;
1875
- health?: "ok" | "degraded" | "stopped" | undefined;
1876
- mode?: "off" | "soft" | "watch" | undefined;
1877
- enabled?: boolean | undefined;
1878
- watcher_mode?: string | undefined;
1879
- workspace_path?: string | undefined;
1880
- files_watched?: number | undefined;
1881
- active_risks?: number | undefined;
1882
- heartbeat_is_alive?: boolean | undefined;
1883
- heartbeat_age_ms?: number | undefined;
1884
- heartbeat_reason?: string | undefined;
1885
- delta_loop_running?: boolean | undefined;
1886
- delta_loop_interval_ms?: number | undefined;
1887
- delta_loop_in_flight?: boolean | undefined;
1888
- runtime_watcher_impl?: string | undefined;
1889
- started_at?: string | undefined;
1890
- last_heartbeat_at?: string | undefined;
1891
- heartbeat_period_ms?: number | undefined;
1892
- last_scan_at?: string | undefined;
1893
- last_scan_duration_ms?: number | undefined;
1894
- last_error?: {
1895
- code: string;
1896
- message: string;
1897
- } | undefined;
1898
- } | undefined;
1899
- ingress?: {
1900
- artifacts: {
1901
- ingress_summary: {
1902
- path: string;
1903
- exists: boolean;
1904
- };
1905
- ingress_resolution?: {
1906
- path: string;
1907
- exists: boolean;
1908
- } | undefined;
1909
- project_fingerprint?: {
1910
- path: string;
1911
- exists: boolean;
1912
- } | undefined;
1913
- };
1914
- dirty: {
1915
- reasons: {
1916
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
1917
- detail?: string | undefined;
1918
- }[];
1919
- is_dirty: boolean;
1920
- };
1921
- state: "ready" | "missing" | "failed" | "stale";
1922
- required: boolean;
1923
- next_action?: {
1924
- tool: "vibe_pm.ingress";
1925
- input: Record<string, unknown>;
1926
- } | undefined;
1927
- } | undefined;
1928
- feature_flags?: {
1929
- autonomy_mode: "off" | "assisted" | "full";
1930
- observer_enabled: boolean;
1931
- observer_watch: boolean;
1932
- ingress_required: boolean;
1933
- } | undefined;
1934
- tier?: {
1935
- status: "MISSING" | "ACTIVE" | "EXPIRED" | "INVALID";
1936
- plan: "FREE" | "PRO";
1937
- concurrent_slots: {
1938
- free: number;
1939
- paid: number;
1940
- };
1941
- features: {
1942
- auto_fix: boolean;
1943
- scorecard: boolean;
1944
- policy_analysis: boolean;
1945
- bitnet_trace: boolean;
1946
- };
1947
- days_left?: number | undefined;
1948
- upgrade_hint?: string | undefined;
1949
- } | undefined;
1950
- trigger?: {
1951
- highest_priority: string | null;
1952
- cooldown_blocks: string[];
1953
- active_triggers: string[];
1954
- engine_backlog: boolean;
1955
- last_evaluation: string | null;
1956
- } | undefined;
1957
- preprocess?: {
1958
- summary?: string | undefined;
1959
- airlock?: {
1960
- created_at?: string | undefined;
1961
- report_path?: string | undefined;
1962
- safe_context_path?: string | undefined;
1963
- fingerprint_path?: string | undefined;
1964
- redacted_count?: number | undefined;
1965
- rules_applied?: string[] | undefined;
1966
- policy_name?: string | undefined;
1967
- } | undefined;
1968
- router?: {
1969
- reason?: string | undefined;
1970
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
1971
- created_at?: string | undefined;
1972
- decision_path?: string | undefined;
1973
- policy_id?: string | undefined;
1974
- } | undefined;
1975
- chunking?: {
1976
- created_at?: string | undefined;
1977
- chunk_count?: number | undefined;
1978
- manifest_path?: string | undefined;
1979
- profiles?: {
1980
- extraction?: number | undefined;
1981
- reasoning?: number | undefined;
1982
- reference?: number | undefined;
1983
- } | undefined;
1984
- } | undefined;
1985
- } | undefined;
1986
- }, {
1987
- project: {
1988
- name: string;
1989
- mode: string;
1990
- started_at: string;
1991
- };
1992
- next_action: {
1993
- tool: string;
1994
- label: string;
1995
- };
1996
- project_id: string;
1997
- risks: string[];
1998
- current_state: {
1999
- phase: string;
2000
- decisions_made: number;
2001
- decisions_pending: number;
2002
- last_review_status?: "GO" | "FIX" | "BLOCK" | undefined;
2003
- };
2004
- bitnet?: {
2005
- enabled: boolean;
2006
- stale: boolean;
2007
- cache_exists: boolean;
2008
- warning?: string | undefined;
2009
- last_check?: {
2010
- verdict: "GO" | "BLOCK" | "WARNING";
2011
- reason: string;
2012
- risk_tags: string[];
2013
- checked_at: string;
2014
- evidence_level: "NONE" | "RULE" | "MODEL";
2015
- } | undefined;
2016
- } | undefined;
2017
- dirty?: {
2018
- reasons: {
2019
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
2020
- detail?: string | undefined;
2021
- sample_paths?: string[] | undefined;
2022
- }[];
2023
- confidence: "low" | "high" | "medium";
2024
- is_dirty: boolean;
2025
- computed_at: string;
2026
- } | undefined;
2027
- observer?: {
2028
- state: string;
2029
- is_attached: boolean;
2030
- warning?: string | undefined;
2031
- health?: "ok" | "degraded" | "stopped" | undefined;
2032
- mode?: "off" | "soft" | "watch" | undefined;
2033
- enabled?: boolean | undefined;
2034
- watcher_mode?: string | undefined;
2035
- workspace_path?: string | undefined;
2036
- files_watched?: number | undefined;
2037
- active_risks?: number | undefined;
2038
- heartbeat_is_alive?: boolean | undefined;
2039
- heartbeat_age_ms?: number | undefined;
2040
- heartbeat_reason?: string | undefined;
2041
- delta_loop_running?: boolean | undefined;
2042
- delta_loop_interval_ms?: number | undefined;
2043
- delta_loop_in_flight?: boolean | undefined;
2044
- runtime_watcher_impl?: string | undefined;
2045
- started_at?: string | undefined;
2046
- last_heartbeat_at?: string | undefined;
2047
- heartbeat_period_ms?: number | undefined;
2048
- last_scan_at?: string | undefined;
2049
- last_scan_duration_ms?: number | undefined;
2050
- last_error?: {
2051
- code: string;
2052
- message: string;
2053
- } | undefined;
2054
- } | undefined;
2055
- ingress?: {
2056
- artifacts: {
2057
- ingress_summary: {
2058
- path: string;
2059
- exists: boolean;
2060
- };
2061
- ingress_resolution?: {
2062
- path: string;
2063
- exists: boolean;
2064
- } | undefined;
2065
- project_fingerprint?: {
2066
- path: string;
2067
- exists: boolean;
2068
- } | undefined;
2069
- };
2070
- dirty: {
2071
- reasons: {
2072
- code: "unknown" | "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed";
2073
- detail?: string | undefined;
2074
- }[];
2075
- is_dirty: boolean;
2076
- };
2077
- state: "ready" | "missing" | "failed" | "stale";
2078
- required: boolean;
2079
- next_action?: {
2080
- tool: "vibe_pm.ingress";
2081
- input: Record<string, unknown>;
2082
- } | undefined;
2083
- } | undefined;
2084
- feature_flags?: {
2085
- autonomy_mode: "off" | "assisted" | "full";
2086
- observer_enabled: boolean;
2087
- observer_watch: boolean;
2088
- ingress_required: boolean;
2089
- } | undefined;
2090
- tier?: {
2091
- status: "MISSING" | "ACTIVE" | "EXPIRED" | "INVALID";
2092
- plan: "FREE" | "PRO";
2093
- concurrent_slots: {
2094
- free: number;
2095
- paid: number;
2096
- };
2097
- features: {
2098
- auto_fix: boolean;
2099
- scorecard: boolean;
2100
- policy_analysis: boolean;
2101
- bitnet_trace: boolean;
2102
- };
2103
- days_left?: number | undefined;
2104
- upgrade_hint?: string | undefined;
2105
- } | undefined;
2106
- trigger?: {
2107
- highest_priority: string | null;
2108
- cooldown_blocks: string[];
2109
- active_triggers: string[];
2110
- engine_backlog: boolean;
2111
- last_evaluation: string | null;
2112
- } | undefined;
2113
- preprocess?: {
2114
- summary?: string | undefined;
2115
- airlock?: {
2116
- created_at?: string | undefined;
2117
- report_path?: string | undefined;
2118
- safe_context_path?: string | undefined;
2119
- fingerprint_path?: string | undefined;
2120
- redacted_count?: number | undefined;
2121
- rules_applied?: string[] | undefined;
2122
- policy_name?: string | undefined;
2123
- } | undefined;
2124
- router?: {
2125
- reason?: string | undefined;
2126
- route?: "local_only" | "local_then_cloud" | "cloud_direct" | undefined;
2127
- created_at?: string | undefined;
2128
- decision_path?: string | undefined;
2129
- policy_id?: string | undefined;
2130
- } | undefined;
2131
- chunking?: {
2132
- created_at?: string | undefined;
2133
- chunk_count?: number | undefined;
2134
- manifest_path?: string | undefined;
2135
- profiles?: {
2136
- extraction?: number | undefined;
2137
- reasoning?: number | undefined;
2138
- reference?: number | undefined;
2139
- } | undefined;
2140
- } | undefined;
2141
- } | undefined;
2142
- }>;
2143
- export type StatusInput = z.infer<typeof statusInputSchema>;
2144
- export interface StatusOutput {
2145
- project_id: string;
2146
- /** Project info */
2147
- project: {
2148
- name: string;
2149
- mode: string;
2150
- started_at: string;
2151
- };
2152
- /** Current state */
2153
- current_state: {
2154
- phase: string;
2155
- decisions_made: number;
2156
- decisions_pending: number;
2157
- last_review_status?: ReviewResult;
2158
- };
2159
- /** Risk signals */
2160
- risks: string[];
2161
- /** Next action (only one) */
2162
- next_action: {
2163
- tool: string;
2164
- label: string;
2165
- };
2166
- /** Ingress status (v1.1.0) */
2167
- ingress?: {
2168
- /** Current ingress state */
2169
- state: "ready" | "stale" | "missing" | "failed";
2170
- /** Is ingress required by policy */
2171
- required: boolean;
2172
- /** Artifact paths and existence */
2173
- artifacts: {
2174
- ingress_summary: {
2175
- exists: boolean;
2176
- path: string;
2177
- };
2178
- ingress_resolution?: {
2179
- exists: boolean;
2180
- path: string;
2181
- };
2182
- project_fingerprint?: {
2183
- exists: boolean;
2184
- path: string;
2185
- };
2186
- };
2187
- /** Dirty detection result */
2188
- dirty: {
2189
- is_dirty: boolean;
2190
- reasons: Array<{
2191
- code: "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed" | "unknown";
2192
- detail?: string;
2193
- }>;
2194
- };
2195
- /** Suggested next action if not ready */
2196
- next_action?: {
2197
- tool: "vibe_pm.ingress";
2198
- input: Record<string, unknown>;
2199
- };
2200
- };
2201
- /** Observer status (Always-On mode) */
2202
- observer?: {
2203
- /** Observer enabled */
2204
- enabled: boolean;
2205
- /** Observer mode: off, soft, or watch */
2206
- mode: "off" | "soft" | "watch";
2207
- /** Health status */
2208
- health: "ok" | "degraded" | "stopped";
2209
- /** When observer started */
2210
- started_at?: string;
2211
- /** Last heartbeat timestamp */
2212
- last_heartbeat_at?: string;
2213
- /** Heartbeat interval in ms */
2214
- heartbeat_period_ms?: number;
2215
- /** Last scan timestamp */
2216
- last_scan_at?: string;
2217
- /** Last scan duration */
2218
- last_scan_duration_ms?: number;
2219
- /** Last error if any */
2220
- last_error?: {
2221
- code: string;
2222
- message: string;
2223
- };
2224
- state?: string;
2225
- watcher_mode?: string;
2226
- workspace_path?: string;
2227
- is_attached?: boolean;
2228
- files_watched?: number;
2229
- active_risks?: number;
2230
- warning?: string;
2231
- heartbeat_is_alive?: boolean;
2232
- heartbeat_age_ms?: number;
2233
- heartbeat_reason?: string;
2234
- delta_loop_running?: boolean;
2235
- delta_loop_interval_ms?: number;
2236
- delta_loop_in_flight?: boolean;
2237
- runtime_watcher_impl?: string;
2238
- };
2239
- /** Dirty status summary (v1.1.0) */
2240
- dirty?: {
2241
- is_dirty: boolean;
2242
- confidence: "low" | "medium" | "high";
2243
- reasons: Array<{
2244
- code: "mtime_changed" | "file_count_changed" | "lockfile_changed" | "config_changed" | "unknown";
2245
- detail?: string;
2246
- sample_paths?: string[];
2247
- }>;
2248
- computed_at: string;
2249
- };
2250
- /** Feature flags status (v1.1.0) */
2251
- feature_flags?: {
2252
- autonomy_mode: "off" | "assisted" | "full";
2253
- observer_enabled: boolean;
2254
- observer_watch: boolean;
2255
- ingress_required: boolean;
2256
- };
2257
- /** BitNet cache status (v1.2.0) */
2258
- bitnet?: {
2259
- /** Is BitNet enabled (VIBE_BITNET=1) */
2260
- enabled: boolean;
2261
- /** Cache exists */
2262
- cache_exists: boolean;
2263
- /** Is cache stale (older than threshold) */
2264
- stale: boolean;
2265
- /** Last check result (from cache) */
2266
- last_check?: {
2267
- /** When the check was performed */
2268
- checked_at: string;
2269
- /** Verdict: GO, WARNING, or BLOCK */
2270
- verdict: "GO" | "WARNING" | "BLOCK";
2271
- /** Evidence level: NONE, RULE, or MODEL */
2272
- evidence_level: "NONE" | "RULE" | "MODEL";
2273
- /** Risk tags detected */
2274
- risk_tags: string[];
2275
- /** Human-readable reason */
2276
- reason: string;
2277
- };
2278
- /** Warning message if applicable */
2279
- warning?: string;
2280
- };
2281
- /** Scorecard hints (v1.3.0) */
2282
- scorecard?: {
2283
- /** Scorecard exists for this run */
2284
- exists: boolean;
2285
- /** Summary statistics */
2286
- summary?: {
2287
- total_verdicts: number;
2288
- go_count: number;
2289
- fix_count: number;
2290
- block_count: number;
2291
- error_count: number;
2292
- };
2293
- /** Generated hints from bottleneck analysis */
2294
- hints: Array<{
2295
- id: string;
2296
- signal: string;
2297
- message: string;
2298
- confidence: number;
2299
- }>;
2300
- /** Top bottlenecks by count */
2301
- top_bottlenecks: Array<{
2302
- code: string;
2303
- count: number;
2304
- }>;
2305
- /** Last update time */
2306
- updated_at?: string;
2307
- };
2308
- /** Facts summary (v1.4.0) - collected from SSOT files */
2309
- facts?: {
2310
- /** Number of pending ask queue items */
2311
- ask_queue_count: number;
2312
- /** Has any pending decisions */
2313
- has_pending_decisions: boolean;
2314
- /** Mapping verdict from verdict file */
2315
- mapping_verdict: "GO" | "BLOCK" | "INFERRED" | "UNKNOWN";
2316
- /** Last inspection verdict from scorecard */
2317
- last_verdict?: "GO" | "FIX" | "BLOCK" | "ERROR";
2318
- /** Top bottleneck code */
2319
- top_bottleneck?: string;
2320
- /** Total verdict count from scorecard */
2321
- total_verdicts?: number;
2322
- /** Fix count from scorecard */
2323
- fix_count?: number;
2324
- /** Sources used to collect facts */
2325
- sources: string[];
2326
- };
2327
- /** Navigation actions (v1.5.0) - deterministic next step recommendations */
2328
- next_actions?: Array<{
2329
- /** Action identifier (e.g., NAV-001) */
2330
- action_id: string;
2331
- /** Tool to invoke */
2332
- tool: string;
2333
- /** User-facing reason (Korean) */
2334
- reason: string;
2335
- /** Priority level: P0 (critical), P1 (important), P2 (informational) */
2336
- priority: "P0" | "P1" | "P2";
2337
- }>;
2338
- /** Policy adjustment (v1.6.0) - opt-in bounded adjustment suggestion */
2339
- policy_adjustment?: {
2340
- /** Policy identifier (e.g., POL-001) */
2341
- policy_id: string;
2342
- /** What triggered this policy (REPEATED_FAILURE | BITNET_WARNING) */
2343
- trigger: string;
2344
- /** Suggested gate mode (not enforced, just recommended) */
2345
- gate_mode_suggested: string;
2346
- /** Human-readable reason (Korean) */
2347
- reason: string;
2348
- };
2349
- /** Tier status (v1.6.0) - license and feature availability */
2350
- tier?: {
2351
- /** Current plan (FREE or PRO) */
2352
- plan: "FREE" | "PRO";
2353
- /** License status */
2354
- status: "ACTIVE" | "EXPIRED" | "INVALID" | "MISSING";
2355
- /** Days until license expiration */
2356
- days_left?: number;
2357
- /** Concurrent slot limits */
2358
- concurrent_slots: {
2359
- free: number;
2360
- paid: number;
2361
- };
2362
- /** Pro feature availability */
2363
- features: {
2364
- scorecard: boolean;
2365
- policy_analysis: boolean;
2366
- auto_fix: boolean;
2367
- bitnet_trace: boolean;
2368
- };
2369
- /** Upgrade or renewal hint */
2370
- upgrade_hint?: string;
2371
- };
2372
- /** Trigger status (v1.6.0) - T1-T9 automatic scout triggers */
2373
- trigger?: {
2374
- /** Currently active triggers (conditions met) */
2375
- active_triggers: Array<"T1_DIRTY_BASIC" | "T2_DIRTY_HEAVY" | "T3_AUTH_TOUCH" | "T4_SECRET_SUSPECT" | "T5_BLACKZONE" | "T6_DEP_SHIFT" | "T7_ENGINE_BACKLOG" | "T8_GATE_FIX" | "T9_DAILY_SWEEP">;
2376
- /** Highest priority trigger to execute */
2377
- highest_priority: string | null;
2378
- /** Triggers blocked by cooldown */
2379
- cooldown_blocks: string[];
2380
- /** Engine backlog detected (T7 - skip all) */
2381
- engine_backlog: boolean;
2382
- /** Last evaluation timestamp */
2383
- last_evaluation: string | null;
2384
- };
2385
- /** Preprocess summary (v1.7.0) */
2386
- preprocess?: {
2387
- summary?: string;
2388
- airlock?: {
2389
- report_path?: string;
2390
- safe_context_path?: string;
2391
- fingerprint_path?: string;
2392
- redacted_count?: number;
2393
- rules_applied?: string[];
2394
- policy_name?: string;
2395
- created_at?: string;
2396
- };
2397
- router?: {
2398
- decision_path?: string;
2399
- route?: "local_only" | "local_then_cloud" | "cloud_direct";
2400
- reason?: string;
2401
- policy_id?: string;
2402
- created_at?: string;
2403
- };
2404
- chunking?: {
2405
- manifest_path?: string;
2406
- chunk_count?: number;
2407
- profiles?: {
2408
- extraction?: number;
2409
- reasoning?: number;
2410
- reference?: number;
2411
- };
2412
- created_at?: string;
2413
- };
2414
- };
2415
- }
2416
- export declare const repairPlanInputSchema: z.ZodObject<{
2417
- project_id: z.ZodOptional<z.ZodString>;
2418
- use_latest_result: z.ZodDefault<z.ZodBoolean>;
2419
- }, "strict", z.ZodTypeAny, {
2420
- use_latest_result: boolean;
2421
- project_id?: string | undefined;
2422
- }, {
2423
- project_id?: string | undefined;
2424
- use_latest_result?: boolean | undefined;
2425
- }>;
2426
- export declare const repairPlanOutputSchema: z.ZodObject<{
2427
- project_id: z.ZodString;
2428
- problem_summary: z.ZodObject<{
2429
- what_failed: z.ZodString;
2430
- why_it_matters: z.ZodString;
2431
- }, "strict", z.ZodTypeAny, {
2432
- what_failed: string;
2433
- why_it_matters: string;
2434
- }, {
2435
- what_failed: string;
2436
- why_it_matters: string;
2437
- }>;
2438
- repair_prompt: z.ZodString;
2439
- next_action: z.ZodObject<{
2440
- type: z.ZodLiteral<"COPY_PASTE_TO_AGENT">;
2441
- label: z.ZodString;
2442
- }, "strict", z.ZodTypeAny, {
2443
- type: "COPY_PASTE_TO_AGENT";
2444
- label: string;
2445
- }, {
2446
- type: "COPY_PASTE_TO_AGENT";
2447
- label: string;
2448
- }>;
2449
- }, "strict", z.ZodTypeAny, {
2450
- next_action: {
2451
- type: "COPY_PASTE_TO_AGENT";
2452
- label: string;
2453
- };
2454
- project_id: string;
2455
- problem_summary: {
2456
- what_failed: string;
2457
- why_it_matters: string;
2458
- };
2459
- repair_prompt: string;
2460
- }, {
2461
- next_action: {
2462
- type: "COPY_PASTE_TO_AGENT";
2463
- label: string;
2464
- };
2465
- project_id: string;
2466
- problem_summary: {
2467
- what_failed: string;
2468
- why_it_matters: string;
2469
- };
2470
- repair_prompt: string;
2471
- }>;
2472
- export type RepairPlanInput = z.infer<typeof repairPlanInputSchema>;
2473
- export interface RepairPlanOutput {
2474
- project_id: string;
2475
- /** Problem summary */
2476
- problem_summary: {
2477
- what_failed: string;
2478
- why_it_matters: string;
2479
- };
2480
- /** Repair prompt for AI */
2481
- repair_prompt: string;
2482
- next_action: {
2483
- type: "COPY_PASTE_TO_AGENT";
2484
- label: string;
2485
- };
2486
- }
2487
- export declare const scaffoldInputSchema: z.ZodObject<{
2488
- project_id: z.ZodOptional<z.ZodString>;
2489
- template: z.ZodDefault<z.ZodEnum<["minimal", "standard", "python_cli", "node_api"]>>;
2490
- force: z.ZodDefault<z.ZodBoolean>;
2491
- }, "strict", z.ZodTypeAny, {
2492
- force: boolean;
2493
- template: "minimal" | "python_cli" | "standard" | "node_api";
2494
- project_id?: string | undefined;
2495
- }, {
2496
- project_id?: string | undefined;
2497
- force?: boolean | undefined;
2498
- template?: "minimal" | "python_cli" | "standard" | "node_api" | undefined;
2499
- }>;
2500
- export declare const scaffoldOutputSchema: z.ZodObject<{
2501
- success: z.ZodBoolean;
2502
- created_paths: z.ZodArray<z.ZodString, "many">;
2503
- skipped_paths: z.ZodArray<z.ZodString, "many">;
2504
- structure_tree: z.ZodString;
2505
- next_action: z.ZodObject<{
2506
- tool: z.ZodEnum<["vibe_pm.briefing", "vibe_pm.scaffold"]>;
2507
- reason: z.ZodString;
2508
- }, "strict", z.ZodTypeAny, {
2509
- tool: "vibe_pm.briefing" | "vibe_pm.scaffold";
2510
- reason: string;
2511
- }, {
2512
- tool: "vibe_pm.briefing" | "vibe_pm.scaffold";
2513
- reason: string;
2514
- }>;
2515
- error: z.ZodOptional<z.ZodString>;
2516
- }, "strict", z.ZodTypeAny, {
2517
- success: boolean;
2518
- next_action: {
2519
- tool: "vibe_pm.briefing" | "vibe_pm.scaffold";
2520
- reason: string;
2521
- };
2522
- created_paths: string[];
2523
- skipped_paths: string[];
2524
- structure_tree: string;
2525
- error?: string | undefined;
2526
- }, {
2527
- success: boolean;
2528
- next_action: {
2529
- tool: "vibe_pm.briefing" | "vibe_pm.scaffold";
2530
- reason: string;
2531
- };
2532
- created_paths: string[];
2533
- skipped_paths: string[];
2534
- structure_tree: string;
2535
- error?: string | undefined;
2536
- }>;
2537
- export type ScaffoldInput = z.infer<typeof scaffoldInputSchema>;
2538
- export interface ScaffoldOutput {
2539
- success: boolean;
2540
- created_paths: string[];
2541
- skipped_paths: string[];
2542
- structure_tree: string;
2543
- next_action: {
2544
- tool: "vibe_pm.briefing" | "vibe_pm.scaffold";
2545
- reason: string;
2546
- };
2547
- error?: string;
2548
- }
2549
- export declare const finalizeWorkInputSchema: z.ZodObject<{
2550
- task_summary: z.ZodString;
2551
- spec_changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2552
- section: z.ZodString;
2553
- content: z.ZodString;
2554
- action: z.ZodDefault<z.ZodEnum<["REPLACE", "APPEND"]>>;
2555
- }, "strict", z.ZodTypeAny, {
2556
- content: string;
2557
- action: "REPLACE" | "APPEND";
2558
- section: string;
2559
- }, {
2560
- content: string;
2561
- section: string;
2562
- action?: "REPLACE" | "APPEND" | undefined;
2563
- }>, "many">>;
2564
- completed_plan_path: z.ZodOptional<z.ZodString>;
2565
- git_commit: z.ZodObject<{
2566
- type: z.ZodEnum<["feat", "fix", "docs", "style", "refactor", "test", "chore"]>;
2567
- scope: z.ZodOptional<z.ZodString>;
2568
- subject: z.ZodString;
2569
- body: z.ZodOptional<z.ZodString>;
2570
- footer: z.ZodOptional<z.ZodString>;
2571
- }, "strict", z.ZodTypeAny, {
2572
- type: "fix" | "docs" | "test" | "feat" | "style" | "refactor" | "chore";
2573
- subject: string;
2574
- scope?: string | undefined;
2575
- body?: string | undefined;
2576
- footer?: string | undefined;
2577
- }, {
2578
- type: "fix" | "docs" | "test" | "feat" | "style" | "refactor" | "chore";
2579
- subject: string;
2580
- scope?: string | undefined;
2581
- body?: string | undefined;
2582
- footer?: string | undefined;
2583
- }>;
2584
- }, "strict", z.ZodTypeAny, {
2585
- task_summary: string;
2586
- git_commit: {
2587
- type: "fix" | "docs" | "test" | "feat" | "style" | "refactor" | "chore";
2588
- subject: string;
2589
- scope?: string | undefined;
2590
- body?: string | undefined;
2591
- footer?: string | undefined;
2592
- };
2593
- spec_changes?: {
2594
- content: string;
2595
- action: "REPLACE" | "APPEND";
2596
- section: string;
2597
- }[] | undefined;
2598
- completed_plan_path?: string | undefined;
2599
- }, {
2600
- task_summary: string;
2601
- git_commit: {
2602
- type: "fix" | "docs" | "test" | "feat" | "style" | "refactor" | "chore";
2603
- subject: string;
2604
- scope?: string | undefined;
2605
- body?: string | undefined;
2606
- footer?: string | undefined;
2607
- };
2608
- spec_changes?: {
2609
- content: string;
2610
- section: string;
2611
- action?: "REPLACE" | "APPEND" | undefined;
2612
- }[] | undefined;
2613
- completed_plan_path?: string | undefined;
2614
- }>;
2615
- export declare const finalizeWorkOutputSchema: z.ZodObject<{
2616
- success: z.ZodBoolean;
2617
- updated_files: z.ZodArray<z.ZodString, "many">;
2618
- commit_hash: z.ZodString;
2619
- pushed_to_remote: z.ZodBoolean;
2620
- remote_url: z.ZodOptional<z.ZodString>;
2621
- warning: z.ZodOptional<z.ZodString>;
2622
- next_action: z.ZodObject<{
2623
- tool: z.ZodLiteral<"vibe_pm.status">;
2624
- reason: z.ZodString;
2625
- }, "strict", z.ZodTypeAny, {
2626
- tool: "vibe_pm.status";
2627
- reason: string;
2628
- }, {
2629
- tool: "vibe_pm.status";
2630
- reason: string;
2631
- }>;
2632
- }, "strict", z.ZodTypeAny, {
2633
- success: boolean;
2634
- next_action: {
2635
- tool: "vibe_pm.status";
2636
- reason: string;
2637
- };
2638
- updated_files: string[];
2639
- commit_hash: string;
2640
- pushed_to_remote: boolean;
2641
- warning?: string | undefined;
2642
- remote_url?: string | undefined;
2643
- }, {
2644
- success: boolean;
2645
- next_action: {
2646
- tool: "vibe_pm.status";
2647
- reason: string;
2648
- };
2649
- updated_files: string[];
2650
- commit_hash: string;
2651
- pushed_to_remote: boolean;
2652
- warning?: string | undefined;
2653
- remote_url?: string | undefined;
2654
- }>;
2655
- export type FinalizeWorkInput = z.infer<typeof finalizeWorkInputSchema>;
2656
- export interface FinalizeWorkOutput {
2657
- success: boolean;
2658
- updated_files: string[];
2659
- commit_hash: string;
2660
- pushed_to_remote: boolean;
2661
- remote_url?: string;
2662
- warning?: string;
2663
- next_action: {
2664
- tool: "vibe_pm.status";
2665
- reason: string;
2666
- };
2667
- }
2668
- export declare const undoLastTaskInputSchema: z.ZodObject<{
2669
- steps: z.ZodDefault<z.ZodNumber>;
2670
- reason: z.ZodOptional<z.ZodString>;
2671
- }, "strict", z.ZodTypeAny, {
2672
- steps: number;
2673
- reason?: string | undefined;
2674
- }, {
2675
- steps?: number | undefined;
2676
- reason?: string | undefined;
2677
- }>;
2678
- export declare const undoLastTaskOutputSchema: z.ZodObject<{
2679
- success: z.ZodBoolean;
2680
- reverted_tasks: z.ZodArray<z.ZodObject<{
2681
- commit_hash: z.ZodString;
2682
- task_summary: z.ZodString;
2683
- timestamp: z.ZodString;
2684
- }, "strict", z.ZodTypeAny, {
2685
- timestamp: string;
2686
- task_summary: string;
2687
- commit_hash: string;
2688
- }, {
2689
- timestamp: string;
2690
- task_summary: string;
2691
- commit_hash: string;
2692
- }>, "many">;
2693
- current_commit: z.ZodString;
2694
- message: z.ZodString;
2695
- }, "strict", z.ZodTypeAny, {
2696
- success: boolean;
2697
- message: string;
2698
- reverted_tasks: {
2699
- timestamp: string;
2700
- task_summary: string;
2701
- commit_hash: string;
2702
- }[];
2703
- current_commit: string;
2704
- }, {
2705
- success: boolean;
2706
- message: string;
2707
- reverted_tasks: {
2708
- timestamp: string;
2709
- task_summary: string;
2710
- commit_hash: string;
2711
- }[];
2712
- current_commit: string;
2713
- }>;
2714
- export type UndoLastTaskInput = z.infer<typeof undoLastTaskInputSchema>;
2715
- export interface UndoLastTaskOutput {
2716
- success: boolean;
2717
- reverted_tasks: Array<{
2718
- commit_hash: string;
2719
- task_summary: string;
2720
- timestamp: string;
2721
- }>;
2722
- current_commit: string;
2723
- message: string;
2724
- }
2725
- export declare const runAppInputSchema: z.ZodObject<{
2726
- mode: z.ZodDefault<z.ZodEnum<["dev", "prod", "test"]>>;
2727
- port: z.ZodOptional<z.ZodNumber>;
2728
- container: z.ZodDefault<z.ZodEnum<["none", "podman"]>>;
2729
- container_image: z.ZodOptional<z.ZodString>;
2730
- container_ports: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>>;
2731
- container_env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2732
- container_mounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2733
- host: z.ZodString;
2734
- container: z.ZodString;
2735
- mode: z.ZodEnum<["ro", "rw"]>;
2736
- }, "strict", z.ZodTypeAny, {
2737
- host: string;
2738
- mode: "ro" | "rw";
2739
- container: string;
2740
- }, {
2741
- host: string;
2742
- mode: "ro" | "rw";
2743
- container: string;
2744
- }>, "many">>;
2745
- option_key: z.ZodOptional<z.ZodEnum<["A", "B", "C"]>>;
2746
- }, "strict", z.ZodTypeAny, {
2747
- mode: "test" | "dev" | "prod";
2748
- container: "none" | "podman";
2749
- port?: number | undefined;
2750
- container_image?: string | undefined;
2751
- container_ports?: number[] | undefined;
2752
- container_env?: Record<string, string> | undefined;
2753
- container_mounts?: {
2754
- host: string;
2755
- mode: "ro" | "rw";
2756
- container: string;
2757
- }[] | undefined;
2758
- option_key?: "A" | "B" | "C" | undefined;
2759
- }, {
2760
- mode?: "test" | "dev" | "prod" | undefined;
2761
- port?: number | undefined;
2762
- container?: "none" | "podman" | undefined;
2763
- container_image?: string | undefined;
2764
- container_ports?: number[] | undefined;
2765
- container_env?: Record<string, string> | undefined;
2766
- container_mounts?: {
2767
- host: string;
2768
- mode: "ro" | "rw";
2769
- container: string;
2770
- }[] | undefined;
2771
- option_key?: "A" | "B" | "C" | undefined;
2772
- }>;
2773
- export declare const runAppOutputSchema: z.ZodObject<{
2774
- success: z.ZodBoolean;
2775
- process_id: z.ZodOptional<z.ZodNumber>;
2776
- url: z.ZodOptional<z.ZodString>;
2777
- command_executed: z.ZodString;
2778
- message: z.ZodString;
2779
- runtime: z.ZodOptional<z.ZodEnum<["host", "podman"]>>;
2780
- container_id: z.ZodOptional<z.ZodString>;
2781
- }, "strict", z.ZodTypeAny, {
2782
- success: boolean;
2783
- message: string;
2784
- command_executed: string;
2785
- process_id?: number | undefined;
2786
- url?: string | undefined;
2787
- runtime?: "host" | "podman" | undefined;
2788
- container_id?: string | undefined;
2789
- }, {
2790
- success: boolean;
2791
- message: string;
2792
- command_executed: string;
2793
- process_id?: number | undefined;
2794
- url?: string | undefined;
2795
- runtime?: "host" | "podman" | undefined;
2796
- container_id?: string | undefined;
2797
- }>;
2798
- export type RunAppInput = z.infer<typeof runAppInputSchema>;
2799
- export interface RunAppOutput {
2800
- success: boolean;
2801
- process_id?: number;
2802
- url?: string;
2803
- command_executed: string;
2804
- message: string;
2805
- runtime?: "host" | "podman";
2806
- container_id?: string;
2807
- }
2808
- export declare const exportOutputInputSchema: z.ZodObject<{
2809
- project_id: z.ZodOptional<z.ZodString>;
2810
- run_id: z.ZodOptional<z.ZodString>;
2811
- target: z.ZodEnum<["docs_bundle", "api_openapi", "cli_scaffold", "web_template_repo"]>;
2812
- output_dir: z.ZodOptional<z.ZodString>;
2813
- dry_run: z.ZodDefault<z.ZodBoolean>;
2814
- cli_language: z.ZodDefault<z.ZodEnum<["python", "node"]>>;
2815
- template_pin: z.ZodOptional<z.ZodObject<{
2816
- repo: z.ZodString;
2817
- ref: z.ZodString;
2818
- }, "strict", z.ZodTypeAny, {
2819
- repo: string;
2820
- ref: string;
2821
- }, {
2822
- repo: string;
2823
- ref: string;
2824
- }>>;
2825
- }, "strict", z.ZodTypeAny, {
2826
- dry_run: boolean;
2827
- target: "docs_bundle" | "api_openapi" | "cli_scaffold" | "web_template_repo";
2828
- cli_language: "node" | "python";
2829
- run_id?: string | undefined;
2830
- project_id?: string | undefined;
2831
- output_dir?: string | undefined;
2832
- template_pin?: {
2833
- repo: string;
2834
- ref: string;
2835
- } | undefined;
2836
- }, {
2837
- target: "docs_bundle" | "api_openapi" | "cli_scaffold" | "web_template_repo";
2838
- run_id?: string | undefined;
2839
- dry_run?: boolean | undefined;
2840
- project_id?: string | undefined;
2841
- output_dir?: string | undefined;
2842
- cli_language?: "node" | "python" | undefined;
2843
- template_pin?: {
2844
- repo: string;
2845
- ref: string;
2846
- } | undefined;
2847
- }>;
2848
- export declare const exportOutputOutputSchema: z.ZodObject<{
2849
- success: z.ZodBoolean;
2850
- project_id: z.ZodString;
2851
- run_id: z.ZodString;
2852
- target: z.ZodString;
2853
- output_dir: z.ZodString;
2854
- dry_run: z.ZodBoolean;
2855
- paths: z.ZodObject<{
2856
- feature_output_spec_path: z.ZodString;
2857
- export_plan_path: z.ZodString;
2858
- export_artifacts_path: z.ZodOptional<z.ZodString>;
2859
- }, "strict", z.ZodTypeAny, {
2860
- feature_output_spec_path: string;
2861
- export_plan_path: string;
2862
- export_artifacts_path?: string | undefined;
2863
- }, {
2864
- feature_output_spec_path: string;
2865
- export_plan_path: string;
2866
- export_artifacts_path?: string | undefined;
2867
- }>;
2868
- created_paths: z.ZodArray<z.ZodString, "many">;
2869
- warnings: z.ZodArray<z.ZodString, "many">;
2870
- next_action: z.ZodObject<{
2871
- tool: z.ZodLiteral<"vibe_pm.status">;
2872
- reason: z.ZodString;
2873
- }, "strict", z.ZodTypeAny, {
2874
- tool: "vibe_pm.status";
2875
- reason: string;
2876
- }, {
2877
- tool: "vibe_pm.status";
2878
- reason: string;
2879
- }>;
2880
- }, "strict", z.ZodTypeAny, {
2881
- success: boolean;
2882
- run_id: string;
2883
- dry_run: boolean;
2884
- paths: {
2885
- feature_output_spec_path: string;
2886
- export_plan_path: string;
2887
- export_artifacts_path?: string | undefined;
2888
- };
2889
- next_action: {
2890
- tool: "vibe_pm.status";
2891
- reason: string;
2892
- };
2893
- project_id: string;
2894
- created_paths: string[];
2895
- target: string;
2896
- output_dir: string;
2897
- warnings: string[];
2898
- }, {
2899
- success: boolean;
2900
- run_id: string;
2901
- dry_run: boolean;
2902
- paths: {
2903
- feature_output_spec_path: string;
2904
- export_plan_path: string;
2905
- export_artifacts_path?: string | undefined;
2906
- };
2907
- next_action: {
2908
- tool: "vibe_pm.status";
2909
- reason: string;
2910
- };
2911
- project_id: string;
2912
- created_paths: string[];
2913
- target: string;
2914
- output_dir: string;
2915
- warnings: string[];
2916
- }>;
2917
- export type ExportOutputInput = z.infer<typeof exportOutputInputSchema>;
2918
- export type ExportOutputOutput = z.infer<typeof exportOutputOutputSchema>;
2919
- export declare const searchOssInputSchema: z.ZodObject<{
2920
- project_id: z.ZodString;
2921
- run_id: z.ZodOptional<z.ZodString>;
2922
- intent: z.ZodString;
2923
- keywords: z.ZodArray<z.ZodString, "many">;
2924
- constraints: z.ZodOptional<z.ZodObject<{
2925
- license_allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2926
- min_stars: z.ZodOptional<z.ZodNumber>;
2927
- updated_within_days: z.ZodOptional<z.ZodNumber>;
2928
- language: z.ZodOptional<z.ZodString>;
2929
- limit: z.ZodDefault<z.ZodNumber>;
2930
- sort: z.ZodDefault<z.ZodEnum<["stars", "updated", "best-match"]>>;
2931
- }, "strict", z.ZodTypeAny, {
2932
- sort: "updated" | "stars" | "best-match";
2933
- limit: number;
2934
- license_allowlist?: string[] | undefined;
2935
- min_stars?: number | undefined;
2936
- updated_within_days?: number | undefined;
2937
- language?: string | undefined;
2938
- }, {
2939
- sort?: "updated" | "stars" | "best-match" | undefined;
2940
- limit?: number | undefined;
2941
- license_allowlist?: string[] | undefined;
2942
- min_stars?: number | undefined;
2943
- updated_within_days?: number | undefined;
2944
- language?: string | undefined;
2945
- }>>;
2946
- write_evidence: z.ZodDefault<z.ZodBoolean>;
2947
- }, "strict", z.ZodTypeAny, {
2948
- intent: string;
2949
- project_id: string;
2950
- keywords: string[];
2951
- write_evidence: boolean;
2952
- run_id?: string | undefined;
2953
- constraints?: {
2954
- sort: "updated" | "stars" | "best-match";
2955
- limit: number;
2956
- license_allowlist?: string[] | undefined;
2957
- min_stars?: number | undefined;
2958
- updated_within_days?: number | undefined;
2959
- language?: string | undefined;
2960
- } | undefined;
2961
- }, {
2962
- intent: string;
2963
- project_id: string;
2964
- keywords: string[];
2965
- run_id?: string | undefined;
2966
- constraints?: {
2967
- sort?: "updated" | "stars" | "best-match" | undefined;
2968
- limit?: number | undefined;
2969
- license_allowlist?: string[] | undefined;
2970
- min_stars?: number | undefined;
2971
- updated_within_days?: number | undefined;
2972
- language?: string | undefined;
2973
- } | undefined;
2974
- write_evidence?: boolean | undefined;
2975
- }>;
2976
- export declare const searchOssOutputSchema: z.ZodObject<{
2977
- success: z.ZodBoolean;
2978
- project_id: z.ZodString;
2979
- run_id: z.ZodString;
2980
- intent: z.ZodString;
2981
- query: z.ZodString;
2982
- evidence_path: z.ZodOptional<z.ZodString>;
2983
- candidates: z.ZodArray<z.ZodObject<{
2984
- repo: z.ZodString;
2985
- url: z.ZodString;
2986
- description: z.ZodString;
2987
- license: z.ZodString;
2988
- stars: z.ZodNumber;
2989
- updated_at: z.ZodString;
2990
- ref_candidates: z.ZodArray<z.ZodString, "many">;
2991
- }, "strict", z.ZodTypeAny, {
2992
- updated_at: string;
2993
- repo: string;
2994
- description: string;
2995
- url: string;
2996
- stars: number;
2997
- license: string;
2998
- ref_candidates: string[];
2999
- }, {
3000
- updated_at: string;
3001
- repo: string;
3002
- description: string;
3003
- url: string;
3004
- stars: number;
3005
- license: string;
3006
- ref_candidates: string[];
3007
- }>, "many">;
3008
- warnings: z.ZodArray<z.ZodString, "many">;
3009
- next_action: z.ZodObject<{
3010
- tool: z.ZodLiteral<"vibe_pm.export_output">;
3011
- reason: z.ZodString;
3012
- }, "strict", z.ZodTypeAny, {
3013
- tool: "vibe_pm.export_output";
3014
- reason: string;
3015
- }, {
3016
- tool: "vibe_pm.export_output";
3017
- reason: string;
3018
- }>;
3019
- }, "strict", z.ZodTypeAny, {
3020
- success: boolean;
3021
- run_id: string;
3022
- next_action: {
3023
- tool: "vibe_pm.export_output";
3024
- reason: string;
3025
- };
3026
- intent: string;
3027
- project_id: string;
3028
- warnings: string[];
3029
- query: string;
3030
- candidates: {
3031
- updated_at: string;
3032
- repo: string;
3033
- description: string;
3034
- url: string;
3035
- stars: number;
3036
- license: string;
3037
- ref_candidates: string[];
3038
- }[];
3039
- evidence_path?: string | undefined;
3040
- }, {
3041
- success: boolean;
3042
- run_id: string;
3043
- next_action: {
3044
- tool: "vibe_pm.export_output";
3045
- reason: string;
3046
- };
3047
- intent: string;
3048
- project_id: string;
3049
- warnings: string[];
3050
- query: string;
3051
- candidates: {
3052
- updated_at: string;
3053
- repo: string;
3054
- description: string;
3055
- url: string;
3056
- stars: number;
3057
- license: string;
3058
- ref_candidates: string[];
3059
- }[];
3060
- evidence_path?: string | undefined;
3061
- }>;
3062
- export type SearchOssInput = z.infer<typeof searchOssInputSchema>;
3063
- export type SearchOssOutput = z.infer<typeof searchOssOutputSchema>;
3064
- export declare const zoektEvidenceInputSchema: z.ZodObject<{
3065
- project_id: z.ZodString;
3066
- run_id: z.ZodOptional<z.ZodString>;
3067
- roots: z.ZodArray<z.ZodString, "many">;
3068
- queries: z.ZodArray<z.ZodString, "many">;
3069
- sample_paths: z.ZodDefault<z.ZodNumber>;
3070
- max_file_bytes: z.ZodDefault<z.ZodNumber>;
3071
- write_evidence: z.ZodDefault<z.ZodBoolean>;
3072
- }, "strict", z.ZodTypeAny, {
3073
- project_id: string;
3074
- sample_paths: number;
3075
- write_evidence: boolean;
3076
- roots: string[];
3077
- queries: string[];
3078
- max_file_bytes: number;
3079
- run_id?: string | undefined;
3080
- }, {
3081
- project_id: string;
3082
- roots: string[];
3083
- queries: string[];
3084
- run_id?: string | undefined;
3085
- sample_paths?: number | undefined;
3086
- write_evidence?: boolean | undefined;
3087
- max_file_bytes?: number | undefined;
3088
- }>;
3089
- export declare const zoektEvidenceOutputSchema: z.ZodObject<{
3090
- success: z.ZodBoolean;
3091
- project_id: z.ZodString;
3092
- run_id: z.ZodString;
3093
- engine: z.ZodEnum<["zoekt", "rg", "python_scan"]>;
3094
- evidence_path: z.ZodOptional<z.ZodString>;
3095
- queries: z.ZodArray<z.ZodObject<{
3096
- q: z.ZodString;
3097
- repos_scanned: z.ZodNumber;
3098
- match_count: z.ZodNumber;
3099
- sample_paths: z.ZodArray<z.ZodString, "many">;
3100
- }, "strict", z.ZodTypeAny, {
3101
- sample_paths: string[];
3102
- q: string;
3103
- repos_scanned: number;
3104
- match_count: number;
3105
- }, {
3106
- sample_paths: string[];
3107
- q: string;
3108
- repos_scanned: number;
3109
- match_count: number;
3110
- }>, "many">;
3111
- warnings: z.ZodArray<z.ZodString, "many">;
3112
- next_action: z.ZodObject<{
3113
- tool: z.ZodLiteral<"vibe_pm.export_output">;
3114
- reason: z.ZodString;
3115
- }, "strict", z.ZodTypeAny, {
3116
- tool: "vibe_pm.export_output";
3117
- reason: string;
3118
- }, {
3119
- tool: "vibe_pm.export_output";
3120
- reason: string;
3121
- }>;
3122
- }, "strict", z.ZodTypeAny, {
3123
- engine: "zoekt" | "rg" | "python_scan";
3124
- success: boolean;
3125
- run_id: string;
3126
- next_action: {
3127
- tool: "vibe_pm.export_output";
3128
- reason: string;
3129
- };
3130
- project_id: string;
3131
- warnings: string[];
3132
- queries: {
3133
- sample_paths: string[];
3134
- q: string;
3135
- repos_scanned: number;
3136
- match_count: number;
3137
- }[];
3138
- evidence_path?: string | undefined;
3139
- }, {
3140
- engine: "zoekt" | "rg" | "python_scan";
3141
- success: boolean;
3142
- run_id: string;
3143
- next_action: {
3144
- tool: "vibe_pm.export_output";
3145
- reason: string;
3146
- };
3147
- project_id: string;
3148
- warnings: string[];
3149
- queries: {
3150
- sample_paths: string[];
3151
- q: string;
3152
- repos_scanned: number;
3153
- match_count: number;
3154
- }[];
3155
- evidence_path?: string | undefined;
3156
- }>;
3157
- export type ZoektEvidenceInput = z.infer<typeof zoektEvidenceInputSchema>;
3158
- export type ZoektEvidenceOutput = z.infer<typeof zoektEvidenceOutputSchema>;
3159
- export declare const readFileInputSchema: z.ZodObject<{
3160
- project_id: z.ZodString;
3161
- run_id: z.ZodOptional<z.ZodString>;
3162
- path: z.ZodString;
3163
- max_file_bytes: z.ZodDefault<z.ZodNumber>;
3164
- max_symbols: z.ZodDefault<z.ZodNumber>;
3165
- }, "strict", z.ZodTypeAny, {
3166
- path: string;
3167
- project_id: string;
3168
- max_file_bytes: number;
3169
- max_symbols: number;
3170
- run_id?: string | undefined;
3171
- }, {
3172
- path: string;
3173
- project_id: string;
3174
- run_id?: string | undefined;
3175
- max_file_bytes?: number | undefined;
3176
- max_symbols?: number | undefined;
3177
- }>;
3178
- export declare const readFileOutputSchema: z.ZodObject<{
3179
- success: z.ZodBoolean;
3180
- project_id: z.ZodString;
3181
- run_id: z.ZodString;
3182
- file: z.ZodObject<{
3183
- path: z.ZodString;
3184
- zone: z.ZodEnum<["GREEN", "YELLOW", "RED", "BLACK", "UNKNOWN"]>;
3185
- bytes: z.ZodNumber;
3186
- mtime: z.ZodString;
3187
- language: z.ZodEnum<["ts", "js", "py", "rs", "json", "md", "unknown"]>;
3188
- analysis_status: z.ZodEnum<["OK", "FAILED"]>;
3189
- symbols: z.ZodArray<z.ZodObject<{
3190
- kind: z.ZodEnum<["function", "class", "const", "type", "trait", "module", "other"]>;
3191
- name: z.ZodString;
3192
- signature: z.ZodString;
3193
- line: z.ZodNumber;
3194
- }, "strict", z.ZodTypeAny, {
3195
- signature: string;
3196
- name: string;
3197
- line: number;
3198
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3199
- }, {
3200
- signature: string;
3201
- name: string;
3202
- line: number;
3203
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3204
- }>, "many">;
3205
- notes: z.ZodArray<z.ZodString, "many">;
3206
- }, "strict", z.ZodTypeAny, {
3207
- path: string;
3208
- bytes: number;
3209
- mtime: string;
3210
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3211
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3212
- analysis_status: "OK" | "FAILED";
3213
- symbols: {
3214
- signature: string;
3215
- name: string;
3216
- line: number;
3217
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3218
- }[];
3219
- notes: string[];
3220
- }, {
3221
- path: string;
3222
- bytes: number;
3223
- mtime: string;
3224
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3225
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3226
- analysis_status: "OK" | "FAILED";
3227
- symbols: {
3228
- signature: string;
3229
- name: string;
3230
- line: number;
3231
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3232
- }[];
3233
- notes: string[];
3234
- }>;
3235
- warnings: z.ZodArray<z.ZodString, "many">;
3236
- next_action: z.ZodObject<{
3237
- tool: z.ZodEnum<["vibe_pm.create_work_order", "vibe_pm.repair_analysis_engine"]>;
3238
- reason: z.ZodString;
3239
- }, "strict", z.ZodTypeAny, {
3240
- tool: "vibe_pm.create_work_order" | "vibe_pm.repair_analysis_engine";
3241
- reason: string;
3242
- }, {
3243
- tool: "vibe_pm.create_work_order" | "vibe_pm.repair_analysis_engine";
3244
- reason: string;
3245
- }>;
3246
- }, "strict", z.ZodTypeAny, {
3247
- success: boolean;
3248
- run_id: string;
3249
- next_action: {
3250
- tool: "vibe_pm.create_work_order" | "vibe_pm.repair_analysis_engine";
3251
- reason: string;
3252
- };
3253
- file: {
3254
- path: string;
3255
- bytes: number;
3256
- mtime: string;
3257
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3258
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3259
- analysis_status: "OK" | "FAILED";
3260
- symbols: {
3261
- signature: string;
3262
- name: string;
3263
- line: number;
3264
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3265
- }[];
3266
- notes: string[];
3267
- };
3268
- project_id: string;
3269
- warnings: string[];
3270
- }, {
3271
- success: boolean;
3272
- run_id: string;
3273
- next_action: {
3274
- tool: "vibe_pm.create_work_order" | "vibe_pm.repair_analysis_engine";
3275
- reason: string;
3276
- };
3277
- file: {
3278
- path: string;
3279
- bytes: number;
3280
- mtime: string;
3281
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3282
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3283
- analysis_status: "OK" | "FAILED";
3284
- symbols: {
3285
- signature: string;
3286
- name: string;
3287
- line: number;
3288
- kind: "function" | "type" | "class" | "const" | "trait" | "module" | "other";
3289
- }[];
3290
- notes: string[];
3291
- };
3292
- project_id: string;
3293
- warnings: string[];
3294
- }>;
3295
- export type ReadFileInput = z.infer<typeof readFileInputSchema>;
3296
- export type ReadFileOutput = z.infer<typeof readFileOutputSchema>;
3297
- export declare const getSemanticComplexityInputSchema: z.ZodObject<{
3298
- project_id: z.ZodString;
3299
- run_id: z.ZodOptional<z.ZodString>;
3300
- path: z.ZodString;
3301
- max_file_bytes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3302
- max_functions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3303
- }, "strict", z.ZodTypeAny, {
3304
- path: string;
3305
- project_id: string;
3306
- max_file_bytes: number;
3307
- max_functions: number;
3308
- run_id?: string | undefined;
3309
- }, {
3310
- path: string;
3311
- project_id: string;
3312
- run_id?: string | undefined;
3313
- max_file_bytes?: number | undefined;
3314
- max_functions?: number | undefined;
3315
- }>;
3316
- export declare const getSemanticComplexityOutputSchema: z.ZodObject<{
3317
- success: z.ZodBoolean;
3318
- project_id: z.ZodString;
3319
- run_id: z.ZodString;
3320
- analysis_status: z.ZodEnum<["OK", "FAILED"]>;
3321
- file: z.ZodObject<{
3322
- path: z.ZodString;
3323
- zone: z.ZodEnum<["GREEN", "YELLOW", "RED", "BLACK", "UNKNOWN"]>;
3324
- bytes: z.ZodNumber;
3325
- mtime: z.ZodString;
3326
- language: z.ZodEnum<["ts", "js", "py", "rs", "json", "md", "unknown"]>;
3327
- }, "strict", z.ZodTypeAny, {
3328
- path: string;
3329
- bytes: number;
3330
- mtime: string;
3331
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3332
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3333
- }, {
3334
- path: string;
3335
- bytes: number;
3336
- mtime: string;
3337
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3338
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3339
- }>;
3340
- file_metrics: z.ZodObject<{
3341
- imports_count: z.ZodNumber;
3342
- exports_count: z.ZodNumber;
3343
- imported_by_count: z.ZodNumber;
3344
- blast_radius_index: z.ZodNumber;
3345
- technical_debt_ratio: z.ZodNumber;
3346
- }, "strict", z.ZodTypeAny, {
3347
- imports_count: number;
3348
- exports_count: number;
3349
- imported_by_count: number;
3350
- blast_radius_index: number;
3351
- technical_debt_ratio: number;
3352
- }, {
3353
- imports_count: number;
3354
- exports_count: number;
3355
- imported_by_count: number;
3356
- blast_radius_index: number;
3357
- technical_debt_ratio: number;
3358
- }>;
3359
- functions: z.ZodArray<z.ZodObject<{
3360
- name: z.ZodString;
3361
- kind: z.ZodEnum<["function", "method", "closure", "other"]>;
3362
- start_line: z.ZodNumber;
3363
- end_line: z.ZodNumber;
3364
- cyclomatic_complexity: z.ZodNumber;
3365
- cognitive_load_score: z.ZodEnum<["LOW", "MEDIUM", "HIGH"]>;
3366
- technical_debt_ratio: z.ZodNumber;
3367
- blast_radius_index: z.ZodNumber;
3368
- exported: z.ZodBoolean;
3369
- }, "strict", z.ZodTypeAny, {
3370
- name: string;
3371
- kind: "function" | "method" | "other" | "closure";
3372
- blast_radius_index: number;
3373
- technical_debt_ratio: number;
3374
- start_line: number;
3375
- end_line: number;
3376
- cyclomatic_complexity: number;
3377
- cognitive_load_score: "HIGH" | "MEDIUM" | "LOW";
3378
- exported: boolean;
3379
- }, {
3380
- name: string;
3381
- kind: "function" | "method" | "other" | "closure";
3382
- blast_radius_index: number;
3383
- technical_debt_ratio: number;
3384
- start_line: number;
3385
- end_line: number;
3386
- cyclomatic_complexity: number;
3387
- cognitive_load_score: "HIGH" | "MEDIUM" | "LOW";
3388
- exported: boolean;
3389
- }>, "many">;
3390
- enforced_constraints: z.ZodArray<z.ZodString, "many">;
3391
- warnings: z.ZodArray<z.ZodString, "many">;
3392
- next_action: z.ZodObject<{
3393
- tool: z.ZodEnum<["vibe_pm.advisory_review", "vibe_pm.create_work_order", "vibe_pm.repair_analysis_engine"]>;
3394
- reason: z.ZodString;
3395
- }, "strict", z.ZodTypeAny, {
3396
- tool: "vibe_pm.create_work_order" | "vibe_pm.advisory_review" | "vibe_pm.repair_analysis_engine";
3397
- reason: string;
3398
- }, {
3399
- tool: "vibe_pm.create_work_order" | "vibe_pm.advisory_review" | "vibe_pm.repair_analysis_engine";
3400
- reason: string;
3401
- }>;
3402
- }, "strict", z.ZodTypeAny, {
3403
- success: boolean;
3404
- run_id: string;
3405
- next_action: {
3406
- tool: "vibe_pm.create_work_order" | "vibe_pm.advisory_review" | "vibe_pm.repair_analysis_engine";
3407
- reason: string;
3408
- };
3409
- file: {
3410
- path: string;
3411
- bytes: number;
3412
- mtime: string;
3413
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3414
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3415
- };
3416
- project_id: string;
3417
- warnings: string[];
3418
- analysis_status: "OK" | "FAILED";
3419
- file_metrics: {
3420
- imports_count: number;
3421
- exports_count: number;
3422
- imported_by_count: number;
3423
- blast_radius_index: number;
3424
- technical_debt_ratio: number;
3425
- };
3426
- functions: {
3427
- name: string;
3428
- kind: "function" | "method" | "other" | "closure";
3429
- blast_radius_index: number;
3430
- technical_debt_ratio: number;
3431
- start_line: number;
3432
- end_line: number;
3433
- cyclomatic_complexity: number;
3434
- cognitive_load_score: "HIGH" | "MEDIUM" | "LOW";
3435
- exported: boolean;
3436
- }[];
3437
- enforced_constraints: string[];
3438
- }, {
3439
- success: boolean;
3440
- run_id: string;
3441
- next_action: {
3442
- tool: "vibe_pm.create_work_order" | "vibe_pm.advisory_review" | "vibe_pm.repair_analysis_engine";
3443
- reason: string;
3444
- };
3445
- file: {
3446
- path: string;
3447
- bytes: number;
3448
- mtime: string;
3449
- language: "unknown" | "json" | "ts" | "js" | "py" | "rs" | "md";
3450
- zone: "BLACK" | "RED" | "YELLOW" | "UNKNOWN" | "GREEN";
3451
- };
3452
- project_id: string;
3453
- warnings: string[];
3454
- analysis_status: "OK" | "FAILED";
3455
- file_metrics: {
3456
- imports_count: number;
3457
- exports_count: number;
3458
- imported_by_count: number;
3459
- blast_radius_index: number;
3460
- technical_debt_ratio: number;
3461
- };
3462
- functions: {
3463
- name: string;
3464
- kind: "function" | "method" | "other" | "closure";
3465
- blast_radius_index: number;
3466
- technical_debt_ratio: number;
3467
- start_line: number;
3468
- end_line: number;
3469
- cyclomatic_complexity: number;
3470
- cognitive_load_score: "HIGH" | "MEDIUM" | "LOW";
3471
- exported: boolean;
3472
- }[];
3473
- enforced_constraints: string[];
3474
- }>;
3475
- export type GetSemanticComplexityInput = z.infer<typeof getSemanticComplexityInputSchema>;
3476
- export type GetSemanticComplexityOutput = z.infer<typeof getSemanticComplexityOutputSchema>;
3477
- export declare const repairAnalysisEngineInputSchema: z.ZodObject<{
3478
- project_id: z.ZodString;
3479
- run_id: z.ZodOptional<z.ZodString>;
3480
- target_file: z.ZodString;
3481
- error_context: z.ZodString;
3482
- fix_action: z.ZodEnum<["RETRY", "FIX_ENCODING", "FIX_SYNTAX_ERROR", "UPDATE_DEPENDENCY", "REGENERATE_CONTRACTS"]>;
3483
- }, "strict", z.ZodTypeAny, {
3484
- project_id: string;
3485
- target_file: string;
3486
- error_context: string;
3487
- fix_action: "RETRY" | "FIX_ENCODING" | "FIX_SYNTAX_ERROR" | "UPDATE_DEPENDENCY" | "REGENERATE_CONTRACTS";
3488
- run_id?: string | undefined;
3489
- }, {
3490
- project_id: string;
3491
- target_file: string;
3492
- error_context: string;
3493
- fix_action: "RETRY" | "FIX_ENCODING" | "FIX_SYNTAX_ERROR" | "UPDATE_DEPENDENCY" | "REGENERATE_CONTRACTS";
3494
- run_id?: string | undefined;
3495
- }>;
3496
- export declare const repairAnalysisEngineOutputSchema: z.ZodObject<{
3497
- success: z.ZodBoolean;
3498
- project_id: z.ZodString;
3499
- run_id: z.ZodString;
3500
- status: z.ZodEnum<["RECOVERED", "NOT_RECOVERED"]>;
3501
- message: z.ZodString;
3502
- actions_taken: z.ZodArray<z.ZodString, "many">;
3503
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3504
- next_action: z.ZodObject<{
3505
- tool: z.ZodEnum<["vibe_pm.read_file", "vibe_pm.doctor"]>;
3506
- reason: z.ZodString;
3507
- }, "strict", z.ZodTypeAny, {
3508
- tool: "vibe_pm.doctor" | "vibe_pm.read_file";
3509
- reason: string;
3510
- }, {
3511
- tool: "vibe_pm.doctor" | "vibe_pm.read_file";
3512
- reason: string;
3513
- }>;
3514
- }, "strict", z.ZodTypeAny, {
3515
- success: boolean;
3516
- status: "RECOVERED" | "NOT_RECOVERED";
3517
- run_id: string;
3518
- message: string;
3519
- next_action: {
3520
- tool: "vibe_pm.doctor" | "vibe_pm.read_file";
3521
- reason: string;
3522
- };
3523
- project_id: string;
3524
- actions_taken: string[];
3525
- details?: Record<string, any> | undefined;
3526
- }, {
3527
- success: boolean;
3528
- status: "RECOVERED" | "NOT_RECOVERED";
3529
- run_id: string;
3530
- message: string;
3531
- next_action: {
3532
- tool: "vibe_pm.doctor" | "vibe_pm.read_file";
3533
- reason: string;
3534
- };
3535
- project_id: string;
3536
- actions_taken: string[];
3537
- details?: Record<string, any> | undefined;
3538
- }>;
3539
- export type RepairAnalysisEngineInput = z.infer<typeof repairAnalysisEngineInputSchema>;
3540
- export type RepairAnalysisEngineOutput = z.infer<typeof repairAnalysisEngineOutputSchema>;
3541
- export declare const ingressInputSchema: z.ZodObject<{
3542
- project_id: z.ZodOptional<z.ZodString>;
3543
- run_id: z.ZodOptional<z.ZodString>;
3544
- workspace_path: z.ZodOptional<z.ZodString>;
3545
- resolution: z.ZodOptional<z.ZodEnum<["INGRESS_RESOLVED_RESUME", "INGRESS_RESOLVED_NEW_TASK", "INGRESS_RESOLVED_ADOPT", "INGRESS_ABORTED"]>>;
3546
- auto_resolve: z.ZodDefault<z.ZodBoolean>;
3547
- force: z.ZodDefault<z.ZodBoolean>;
3548
- context_scan: z.ZodDefault<z.ZodBoolean>;
3549
- write_files: z.ZodDefault<z.ZodBoolean>;
3550
- }, "strict", z.ZodTypeAny, {
3551
- force: boolean;
3552
- auto_resolve: boolean;
3553
- context_scan: boolean;
3554
- write_files: boolean;
3555
- run_id?: string | undefined;
3556
- project_id?: string | undefined;
3557
- resolution?: "INGRESS_RESOLVED_RESUME" | "INGRESS_RESOLVED_NEW_TASK" | "INGRESS_RESOLVED_ADOPT" | "INGRESS_ABORTED" | undefined;
3558
- workspace_path?: string | undefined;
3559
- }, {
3560
- run_id?: string | undefined;
3561
- project_id?: string | undefined;
3562
- resolution?: "INGRESS_RESOLVED_RESUME" | "INGRESS_RESOLVED_NEW_TASK" | "INGRESS_RESOLVED_ADOPT" | "INGRESS_ABORTED" | undefined;
3563
- force?: boolean | undefined;
3564
- workspace_path?: string | undefined;
3565
- auto_resolve?: boolean | undefined;
3566
- context_scan?: boolean | undefined;
3567
- write_files?: boolean | undefined;
3568
- }>;
3569
- export declare const ingressOutputSchema: z.ZodObject<{
3570
- success: z.ZodBoolean;
3571
- project_id: z.ZodString;
3572
- run_id: z.ZodString;
3573
- workspace_path: z.ZodString;
3574
- has_vibe_state: z.ZodBoolean;
3575
- resolution: z.ZodEnum<["INGRESS_RESOLVED_RESUME", "INGRESS_RESOLVED_NEW_TASK", "INGRESS_RESOLVED_ADOPT", "INGRESS_ABORTED"]>;
3576
- auto_resolve_reason: z.ZodOptional<z.ZodString>;
3577
- context_scan_required: z.ZodBoolean;
3578
- context_scan_completed: z.ZodBoolean;
3579
- ingress_resolution_path: z.ZodString;
3580
- artifacts: z.ZodOptional<z.ZodObject<{
3581
- project_fingerprint: z.ZodOptional<z.ZodString>;
3582
- repo_map: z.ZodOptional<z.ZodString>;
3583
- entrypoints: z.ZodOptional<z.ZodString>;
3584
- docs_index: z.ZodOptional<z.ZodString>;
3585
- risk_flags: z.ZodOptional<z.ZodString>;
3586
- ingress_summary: z.ZodOptional<z.ZodString>;
3587
- change_map: z.ZodOptional<z.ZodString>;
3588
- }, "strict", z.ZodTypeAny, {
3589
- change_map?: string | undefined;
3590
- ingress_summary?: string | undefined;
3591
- project_fingerprint?: string | undefined;
3592
- risk_flags?: string | undefined;
3593
- repo_map?: string | undefined;
3594
- entrypoints?: string | undefined;
3595
- docs_index?: string | undefined;
3596
- }, {
3597
- change_map?: string | undefined;
3598
- ingress_summary?: string | undefined;
3599
- project_fingerprint?: string | undefined;
3600
- risk_flags?: string | undefined;
3601
- repo_map?: string | undefined;
3602
- entrypoints?: string | undefined;
3603
- docs_index?: string | undefined;
3604
- }>>;
3605
- mapping: z.ZodOptional<z.ZodObject<{
3606
- change_map_path: z.ZodString;
3607
- mapped_count: z.ZodNumber;
3608
- unmapped_count: z.ZodNumber;
3609
- domains_touched: z.ZodArray<z.ZodString, "many">;
3610
- verdict: z.ZodEnum<["GO", "FIX", "BLOCK"]>;
3611
- }, "strict", z.ZodTypeAny, {
3612
- verdict: "GO" | "FIX" | "BLOCK";
3613
- change_map_path: string;
3614
- mapped_count: number;
3615
- unmapped_count: number;
3616
- domains_touched: string[];
3617
- }, {
3618
- verdict: "GO" | "FIX" | "BLOCK";
3619
- change_map_path: string;
3620
- mapped_count: number;
3621
- unmapped_count: number;
3622
- domains_touched: string[];
3623
- }>>;
3624
- warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3625
- message: z.ZodString;
3626
- next_action: z.ZodUnion<[z.ZodObject<{
3627
- tool: z.ZodEnum<["vibe_pm.get_decision", "vibe_pm.briefing", "vibe_pm.ingress"]>;
3628
- reason: z.ZodString;
3629
- }, "strict", z.ZodTypeAny, {
3630
- tool: "vibe_pm.briefing" | "vibe_pm.get_decision" | "vibe_pm.ingress";
3631
- reason: string;
3632
- }, {
3633
- tool: "vibe_pm.briefing" | "vibe_pm.get_decision" | "vibe_pm.ingress";
3634
- reason: string;
3635
- }>, z.ZodNull]>;
3636
- }, "strict", z.ZodTypeAny, {
3637
- success: boolean;
3638
- run_id: string;
3639
- message: string;
3640
- next_action: {
3641
- tool: "vibe_pm.briefing" | "vibe_pm.get_decision" | "vibe_pm.ingress";
3642
- reason: string;
3643
- } | null;
3644
- project_id: string;
3645
- resolution: "INGRESS_RESOLVED_RESUME" | "INGRESS_RESOLVED_NEW_TASK" | "INGRESS_RESOLVED_ADOPT" | "INGRESS_ABORTED";
3646
- workspace_path: string;
3647
- has_vibe_state: boolean;
3648
- context_scan_required: boolean;
3649
- context_scan_completed: boolean;
3650
- ingress_resolution_path: string;
3651
- artifacts?: {
3652
- change_map?: string | undefined;
3653
- ingress_summary?: string | undefined;
3654
- project_fingerprint?: string | undefined;
3655
- risk_flags?: string | undefined;
3656
- repo_map?: string | undefined;
3657
- entrypoints?: string | undefined;
3658
- docs_index?: string | undefined;
3659
- } | undefined;
3660
- mapping?: {
3661
- verdict: "GO" | "FIX" | "BLOCK";
3662
- change_map_path: string;
3663
- mapped_count: number;
3664
- unmapped_count: number;
3665
- domains_touched: string[];
3666
- } | undefined;
3667
- warnings?: string[] | undefined;
3668
- auto_resolve_reason?: string | undefined;
3669
- }, {
3670
- success: boolean;
3671
- run_id: string;
3672
- message: string;
3673
- next_action: {
3674
- tool: "vibe_pm.briefing" | "vibe_pm.get_decision" | "vibe_pm.ingress";
3675
- reason: string;
3676
- } | null;
3677
- project_id: string;
3678
- resolution: "INGRESS_RESOLVED_RESUME" | "INGRESS_RESOLVED_NEW_TASK" | "INGRESS_RESOLVED_ADOPT" | "INGRESS_ABORTED";
3679
- workspace_path: string;
3680
- has_vibe_state: boolean;
3681
- context_scan_required: boolean;
3682
- context_scan_completed: boolean;
3683
- ingress_resolution_path: string;
3684
- artifacts?: {
3685
- change_map?: string | undefined;
3686
- ingress_summary?: string | undefined;
3687
- project_fingerprint?: string | undefined;
3688
- risk_flags?: string | undefined;
3689
- repo_map?: string | undefined;
3690
- entrypoints?: string | undefined;
3691
- docs_index?: string | undefined;
3692
- } | undefined;
3693
- mapping?: {
3694
- verdict: "GO" | "FIX" | "BLOCK";
3695
- change_map_path: string;
3696
- mapped_count: number;
3697
- unmapped_count: number;
3698
- domains_touched: string[];
3699
- } | undefined;
3700
- warnings?: string[] | undefined;
3701
- auto_resolve_reason?: string | undefined;
3702
- }>;
3703
- export type IngressInput = z.infer<typeof ingressInputSchema>;
3704
- export type IngressOutput = z.infer<typeof ingressOutputSchema>;
3705
- export declare const bridgeGenerateReferencesInputSchema: z.ZodObject<{
3706
- project_id: z.ZodString;
3707
- run_id: z.ZodOptional<z.ZodString>;
3708
- raw_user_intent: z.ZodString;
3709
- keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3710
- constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3711
- must_have: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3712
- must_not: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3713
- candidates_seed: z.ZodOptional<z.ZodArray<z.ZodObject<{
3714
- title: z.ZodString;
3715
- kind: z.ZodEnum<["oss_repo", "library", "product", "pattern", "doc"]>;
3716
- primary_link: z.ZodString;
3717
- why_similar: z.ZodOptional<z.ZodString>;
3718
- fit_summary: z.ZodOptional<z.ZodString>;
3719
- }, "strict", z.ZodTypeAny, {
3720
- title: string;
3721
- kind: "pattern" | "oss_repo" | "library" | "product" | "doc";
3722
- primary_link: string;
3723
- why_similar?: string | undefined;
3724
- fit_summary?: string | undefined;
3725
- }, {
3726
- title: string;
3727
- kind: "pattern" | "oss_repo" | "library" | "product" | "doc";
3728
- primary_link: string;
3729
- why_similar?: string | undefined;
3730
- fit_summary?: string | undefined;
3731
- }>, "many">>;
3732
- max_candidates: z.ZodDefault<z.ZodNumber>;
3733
- write_files: z.ZodDefault<z.ZodBoolean>;
3734
- }, "strict", z.ZodTypeAny, {
3735
- project_id: string;
3736
- write_files: boolean;
3737
- raw_user_intent: string;
3738
- max_candidates: number;
3739
- run_id?: string | undefined;
3740
- keywords?: string[] | undefined;
3741
- constraints?: string[] | undefined;
3742
- must_have?: string[] | undefined;
3743
- must_not?: string[] | undefined;
3744
- candidates_seed?: {
3745
- title: string;
3746
- kind: "pattern" | "oss_repo" | "library" | "product" | "doc";
3747
- primary_link: string;
3748
- why_similar?: string | undefined;
3749
- fit_summary?: string | undefined;
3750
- }[] | undefined;
3751
- }, {
3752
- project_id: string;
3753
- raw_user_intent: string;
3754
- run_id?: string | undefined;
3755
- keywords?: string[] | undefined;
3756
- constraints?: string[] | undefined;
3757
- write_files?: boolean | undefined;
3758
- must_have?: string[] | undefined;
3759
- must_not?: string[] | undefined;
3760
- candidates_seed?: {
3761
- title: string;
3762
- kind: "pattern" | "oss_repo" | "library" | "product" | "doc";
3763
- primary_link: string;
3764
- why_similar?: string | undefined;
3765
- fit_summary?: string | undefined;
3766
- }[] | undefined;
3767
- max_candidates?: number | undefined;
3768
- }>;
3769
- export declare const bridgeGenerateReferencesOutputSchema: z.ZodObject<{
3770
- success: z.ZodBoolean;
3771
- project_id: z.ZodString;
3772
- run_id: z.ZodString;
3773
- references_path: z.ZodString;
3774
- candidates: z.ZodArray<z.ZodObject<{
3775
- key: z.ZodEnum<["A", "B", "C"]>;
3776
- title: z.ZodString;
3777
- primary_link: z.ZodString;
3778
- }, "strict", z.ZodTypeAny, {
3779
- key: "A" | "B" | "C";
3780
- title: string;
3781
- primary_link: string;
3782
- }, {
3783
- key: "A" | "B" | "C";
3784
- title: string;
3785
- primary_link: string;
3786
- }>, "many">;
3787
- warnings: z.ZodArray<z.ZodString, "many">;
3788
- next_action: z.ZodObject<{
3789
- tool: z.ZodLiteral<"vibe_pm.bridge_confirm_reference">;
3790
- reason: z.ZodString;
3791
- }, "strict", z.ZodTypeAny, {
3792
- tool: "vibe_pm.bridge_confirm_reference";
3793
- reason: string;
3794
- }, {
3795
- tool: "vibe_pm.bridge_confirm_reference";
3796
- reason: string;
3797
- }>;
3798
- }, "strict", z.ZodTypeAny, {
3799
- success: boolean;
3800
- run_id: string;
3801
- next_action: {
3802
- tool: "vibe_pm.bridge_confirm_reference";
3803
- reason: string;
3804
- };
3805
- project_id: string;
3806
- warnings: string[];
3807
- candidates: {
3808
- key: "A" | "B" | "C";
3809
- title: string;
3810
- primary_link: string;
3811
- }[];
3812
- references_path: string;
3813
- }, {
3814
- success: boolean;
3815
- run_id: string;
3816
- next_action: {
3817
- tool: "vibe_pm.bridge_confirm_reference";
3818
- reason: string;
3819
- };
3820
- project_id: string;
3821
- warnings: string[];
3822
- candidates: {
3823
- key: "A" | "B" | "C";
3824
- title: string;
3825
- primary_link: string;
3826
- }[];
3827
- references_path: string;
3828
- }>;
3829
- export type BridgeGenerateReferencesInput = z.infer<typeof bridgeGenerateReferencesInputSchema>;
3830
- export type BridgeGenerateReferencesOutput = z.infer<typeof bridgeGenerateReferencesOutputSchema>;
3831
- export declare const bridgeConfirmReferenceInputSchema: z.ZodObject<{
3832
- project_id: z.ZodString;
3833
- run_id: z.ZodOptional<z.ZodString>;
3834
- selected_key: z.ZodEnum<["A", "B", "C"]>;
3835
- raw_answer: z.ZodString;
3836
- notes: z.ZodOptional<z.ZodString>;
3837
- must_have_overrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3838
- must_not_overrides: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3839
- write_files: z.ZodDefault<z.ZodBoolean>;
3840
- }, "strict", z.ZodTypeAny, {
3841
- project_id: string;
3842
- write_files: boolean;
3843
- selected_key: "A" | "B" | "C";
3844
- raw_answer: string;
3845
- run_id?: string | undefined;
3846
- notes?: string | undefined;
3847
- must_have_overrides?: string[] | undefined;
3848
- must_not_overrides?: string[] | undefined;
3849
- }, {
3850
- project_id: string;
3851
- selected_key: "A" | "B" | "C";
3852
- raw_answer: string;
3853
- run_id?: string | undefined;
3854
- notes?: string | undefined;
3855
- write_files?: boolean | undefined;
3856
- must_have_overrides?: string[] | undefined;
3857
- must_not_overrides?: string[] | undefined;
3858
- }>;
3859
- export declare const bridgeConfirmReferenceOutputSchema: z.ZodObject<{
3860
- success: z.ZodBoolean;
3861
- project_id: z.ZodString;
3862
- run_id: z.ZodString;
3863
- confirmed_reference_path: z.ZodString;
3864
- selected: z.ZodObject<{
3865
- key: z.ZodEnum<["A", "B", "C"]>;
3866
- title: z.ZodString;
3867
- primary_link: z.ZodString;
3868
- }, "strict", z.ZodTypeAny, {
3869
- key: "A" | "B" | "C";
3870
- title: string;
3871
- primary_link: string;
3872
- }, {
3873
- key: "A" | "B" | "C";
3874
- title: string;
3875
- primary_link: string;
3876
- }>;
3877
- next_action: z.ZodObject<{
3878
- tool: z.ZodLiteral<"vibe_pm.bridge_build_seed">;
3879
- reason: z.ZodString;
3880
- }, "strict", z.ZodTypeAny, {
3881
- tool: "vibe_pm.bridge_build_seed";
3882
- reason: string;
3883
- }, {
3884
- tool: "vibe_pm.bridge_build_seed";
3885
- reason: string;
3886
- }>;
3887
- }, "strict", z.ZodTypeAny, {
3888
- success: boolean;
3889
- run_id: string;
3890
- next_action: {
3891
- tool: "vibe_pm.bridge_build_seed";
3892
- reason: string;
3893
- };
3894
- project_id: string;
3895
- confirmed_reference_path: string;
3896
- selected: {
3897
- key: "A" | "B" | "C";
3898
- title: string;
3899
- primary_link: string;
3900
- };
3901
- }, {
3902
- success: boolean;
3903
- run_id: string;
3904
- next_action: {
3905
- tool: "vibe_pm.bridge_build_seed";
3906
- reason: string;
3907
- };
3908
- project_id: string;
3909
- confirmed_reference_path: string;
3910
- selected: {
3911
- key: "A" | "B" | "C";
3912
- title: string;
3913
- primary_link: string;
3914
- };
3915
- }>;
3916
- export type BridgeConfirmReferenceInput = z.infer<typeof bridgeConfirmReferenceInputSchema>;
3917
- export type BridgeConfirmReferenceOutput = z.infer<typeof bridgeConfirmReferenceOutputSchema>;
3918
- export declare const bridgeBuildSeedInputSchema: z.ZodObject<{
3919
- project_id: z.ZodString;
3920
- run_id: z.ZodOptional<z.ZodString>;
3921
- raw_user_intent: z.ZodOptional<z.ZodString>;
3922
- goal: z.ZodOptional<z.ZodString>;
3923
- user_story: z.ZodOptional<z.ZodString>;
3924
- acceptance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3925
- constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3926
- non_goals: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3927
- scope_seed: z.ZodOptional<z.ZodObject<{
3928
- include: z.ZodArray<z.ZodString, "many">;
3929
- exclude: z.ZodArray<z.ZodString, "many">;
3930
- do_not_touch: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3931
- }, "strict", z.ZodTypeAny, {
3932
- include: string[];
3933
- exclude: string[];
3934
- do_not_touch?: string[] | undefined;
3935
- }, {
3936
- include: string[];
3937
- exclude: string[];
3938
- do_not_touch?: string[] | undefined;
3939
- }>>;
3940
- preferred_stack_hint: z.ZodOptional<z.ZodString>;
3941
- risk_notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3942
- overwrite: z.ZodDefault<z.ZodBoolean>;
3943
- write_files: z.ZodDefault<z.ZodBoolean>;
3944
- }, "strict", z.ZodTypeAny, {
3945
- project_id: string;
3946
- write_files: boolean;
3947
- overwrite: boolean;
3948
- run_id?: string | undefined;
3949
- goal?: string | undefined;
3950
- risk_notes?: string[] | undefined;
3951
- constraints?: string[] | undefined;
3952
- raw_user_intent?: string | undefined;
3953
- user_story?: string | undefined;
3954
- acceptance?: string[] | undefined;
3955
- non_goals?: string[] | undefined;
3956
- scope_seed?: {
3957
- include: string[];
3958
- exclude: string[];
3959
- do_not_touch?: string[] | undefined;
3960
- } | undefined;
3961
- preferred_stack_hint?: string | undefined;
3962
- }, {
3963
- project_id: string;
3964
- run_id?: string | undefined;
3965
- goal?: string | undefined;
3966
- risk_notes?: string[] | undefined;
3967
- constraints?: string[] | undefined;
3968
- write_files?: boolean | undefined;
3969
- raw_user_intent?: string | undefined;
3970
- user_story?: string | undefined;
3971
- acceptance?: string[] | undefined;
3972
- non_goals?: string[] | undefined;
3973
- scope_seed?: {
3974
- include: string[];
3975
- exclude: string[];
3976
- do_not_touch?: string[] | undefined;
3977
- } | undefined;
3978
- preferred_stack_hint?: string | undefined;
3979
- overwrite?: boolean | undefined;
3980
- }>;
3981
- export declare const bridgeBuildSeedOutputSchema: z.ZodObject<{
3982
- success: z.ZodBoolean;
3983
- project_id: z.ZodString;
3984
- run_id: z.ZodString;
3985
- seed_path: z.ZodString;
3986
- next_action: z.ZodObject<{
3987
- tool: z.ZodLiteral<"vibe_pm.create_work_order">;
3988
- reason: z.ZodString;
3989
- }, "strict", z.ZodTypeAny, {
3990
- tool: "vibe_pm.create_work_order";
3991
- reason: string;
3992
- }, {
3993
- tool: "vibe_pm.create_work_order";
3994
- reason: string;
3995
- }>;
3996
- }, "strict", z.ZodTypeAny, {
3997
- success: boolean;
3998
- run_id: string;
3999
- next_action: {
4000
- tool: "vibe_pm.create_work_order";
4001
- reason: string;
4002
- };
4003
- project_id: string;
4004
- seed_path: string;
4005
- }, {
4006
- success: boolean;
4007
- run_id: string;
4008
- next_action: {
4009
- tool: "vibe_pm.create_work_order";
4010
- reason: string;
4011
- };
4012
- project_id: string;
4013
- seed_path: string;
4014
- }>;
4015
- export type BridgeBuildSeedInput = z.infer<typeof bridgeBuildSeedInputSchema>;
4016
- export type BridgeBuildSeedOutput = z.infer<typeof bridgeBuildSeedOutputSchema>;
4017
- export declare const doctorOutputSchema: z.ZodObject<{
4018
- status: z.ZodEnum<["OK", "FIXED", "NEEDS_ATTENTION", "ERROR"]>;
4019
- summary: z.ZodString;
4020
- contracts: z.ZodOptional<z.ZodObject<{
4021
- version: z.ZodString;
4022
- bundle_sha256: z.ZodString;
4023
- schema_count: z.ZodNumber;
4024
- }, "strict", z.ZodTypeAny, {
4025
- version: string;
4026
- bundle_sha256: string;
4027
- schema_count: number;
4028
- }, {
4029
- version: string;
4030
- bundle_sha256: string;
4031
- schema_count: number;
4032
- }>>;
4033
- engines: z.ZodArray<z.ZodObject<{
4034
- name: z.ZodString;
4035
- status: z.ZodEnum<["정상", "업데이트 필요", "설치 필요", "손상됨"]>;
4036
- version: z.ZodString;
4037
- current_version: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4038
- }, "strict", z.ZodTypeAny, {
4039
- status: "설치 필요" | "업데이트 필요" | "정상" | "손상됨";
4040
- version: string;
4041
- name: string;
4042
- current_version: string | null;
4043
- }, {
4044
- status: "설치 필요" | "업데이트 필요" | "정상" | "손상됨";
4045
- version: string;
4046
- name: string;
4047
- current_version: string | null;
4048
- }>, "many">;
4049
- actions_taken: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4050
- python_cli: z.ZodOptional<z.ZodObject<{
4051
- status: z.ZodEnum<["정상", "오류"]>;
4052
- message: z.ZodString;
4053
- pythonpath_detected: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4054
- }, "strict", z.ZodTypeAny, {
4055
- status: "정상" | "오류";
4056
- message: string;
4057
- pythonpath_detected: string | null;
4058
- }, {
4059
- status: "정상" | "오류";
4060
- message: string;
4061
- pythonpath_detected: string | null;
4062
- }>>;
4063
- claude_hook: z.ZodOptional<z.ZodObject<{
4064
- status: z.ZodEnum<["정상", "설치 필요", "설정 필요"]>;
4065
- hook_script_exists: z.ZodBoolean;
4066
- settings_json_exists: z.ZodBoolean;
4067
- is_executable: z.ZodBoolean;
4068
- }, "strict", z.ZodTypeAny, {
4069
- status: "설치 필요" | "정상" | "설정 필요";
4070
- hook_script_exists: boolean;
4071
- settings_json_exists: boolean;
4072
- is_executable: boolean;
4073
- }, {
4074
- status: "설치 필요" | "정상" | "설정 필요";
4075
- hook_script_exists: boolean;
4076
- settings_json_exists: boolean;
4077
- is_executable: boolean;
4078
- }>>;
4079
- skills: z.ZodOptional<z.ZodObject<{
4080
- status: z.ZodEnum<["OK", "WARN", "ERROR"]>;
4081
- version: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4082
- installed: z.ZodNumber;
4083
- total: z.ZodNumber;
4084
- }, "strict", z.ZodTypeAny, {
4085
- status: "WARN" | "ERROR" | "OK";
4086
- version: string | null;
4087
- installed: number;
4088
- total: number;
4089
- }, {
4090
- status: "WARN" | "ERROR" | "OK";
4091
- version: string | null;
4092
- installed: number;
4093
- total: number;
4094
- }>>;
4095
- remote_updates: z.ZodOptional<z.ZodObject<{
4096
- available: z.ZodBoolean;
4097
- release_tag: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4098
- updates: z.ZodArray<z.ZodObject<{
4099
- name: z.ZodString;
4100
- current: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4101
- remote: z.ZodString;
4102
- }, "strict", z.ZodTypeAny, {
4103
- name: string;
4104
- current: string | null;
4105
- remote: string;
4106
- }, {
4107
- name: string;
4108
- current: string | null;
4109
- remote: string;
4110
- }>, "many">;
4111
- }, "strict", z.ZodTypeAny, {
4112
- available: boolean;
4113
- release_tag: string | null;
4114
- updates: {
4115
- name: string;
4116
- current: string | null;
4117
- remote: string;
4118
- }[];
4119
- }, {
4120
- available: boolean;
4121
- release_tag: string | null;
4122
- updates: {
4123
- name: string;
4124
- current: string | null;
4125
- remote: string;
4126
- }[];
4127
- }>>;
4128
- local_memory: z.ZodOptional<z.ZodEffects<z.ZodAny, any, any>>;
4129
- next_action: z.ZodObject<{
4130
- type: z.ZodEnum<["NONE", "MANUAL_FIX", "CONTACT_SUPPORT"]>;
4131
- message: z.ZodString;
4132
- }, "strict", z.ZodTypeAny, {
4133
- type: "NONE" | "MANUAL_FIX" | "CONTACT_SUPPORT";
4134
- message: string;
4135
- }, {
4136
- type: "NONE" | "MANUAL_FIX" | "CONTACT_SUPPORT";
4137
- message: string;
4138
- }>;
4139
- }, "strict", z.ZodTypeAny, {
4140
- status: "ERROR" | "OK" | "FIXED" | "NEEDS_ATTENTION";
4141
- engines: {
4142
- status: "설치 필요" | "업데이트 필요" | "정상" | "손상됨";
4143
- version: string;
4144
- name: string;
4145
- current_version: string | null;
4146
- }[];
4147
- next_action: {
4148
- type: "NONE" | "MANUAL_FIX" | "CONTACT_SUPPORT";
4149
- message: string;
4150
- };
4151
- summary: string;
4152
- skills?: {
4153
- status: "WARN" | "ERROR" | "OK";
4154
- version: string | null;
4155
- installed: number;
4156
- total: number;
4157
- } | undefined;
4158
- contracts?: {
4159
- version: string;
4160
- bundle_sha256: string;
4161
- schema_count: number;
4162
- } | undefined;
4163
- actions_taken?: string[] | undefined;
4164
- python_cli?: {
4165
- status: "정상" | "오류";
4166
- message: string;
4167
- pythonpath_detected: string | null;
4168
- } | undefined;
4169
- claude_hook?: {
4170
- status: "설치 필요" | "정상" | "설정 필요";
4171
- hook_script_exists: boolean;
4172
- settings_json_exists: boolean;
4173
- is_executable: boolean;
4174
- } | undefined;
4175
- remote_updates?: {
4176
- available: boolean;
4177
- release_tag: string | null;
4178
- updates: {
4179
- name: string;
4180
- current: string | null;
4181
- remote: string;
4182
- }[];
4183
- } | undefined;
4184
- local_memory?: any;
4185
- }, {
4186
- status: "ERROR" | "OK" | "FIXED" | "NEEDS_ATTENTION";
4187
- engines: {
4188
- status: "설치 필요" | "업데이트 필요" | "정상" | "손상됨";
4189
- version: string;
4190
- name: string;
4191
- current_version: string | null;
4192
- }[];
4193
- next_action: {
4194
- type: "NONE" | "MANUAL_FIX" | "CONTACT_SUPPORT";
4195
- message: string;
4196
- };
4197
- summary: string;
4198
- skills?: {
4199
- status: "WARN" | "ERROR" | "OK";
4200
- version: string | null;
4201
- installed: number;
4202
- total: number;
4203
- } | undefined;
4204
- contracts?: {
4205
- version: string;
4206
- bundle_sha256: string;
4207
- schema_count: number;
4208
- } | undefined;
4209
- actions_taken?: string[] | undefined;
4210
- python_cli?: {
4211
- status: "정상" | "오류";
4212
- message: string;
4213
- pythonpath_detected: string | null;
4214
- } | undefined;
4215
- claude_hook?: {
4216
- status: "설치 필요" | "정상" | "설정 필요";
4217
- hook_script_exists: boolean;
4218
- settings_json_exists: boolean;
4219
- is_executable: boolean;
4220
- } | undefined;
4221
- remote_updates?: {
4222
- available: boolean;
4223
- release_tag: string | null;
4224
- updates: {
4225
- name: string;
4226
- current: string | null;
4227
- remote: string;
4228
- }[];
4229
- } | undefined;
4230
- local_memory?: any;
4231
- }>;
4232
- export declare const updateOutputSchema: z.ZodObject<{
4233
- status: z.ZodEnum<["OK", "PARTIAL", "ERROR"]>;
4234
- summary: z.ZodString;
4235
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
4236
- name: z.ZodString;
4237
- action: z.ZodEnum<["updated", "skipped", "failed"]>;
4238
- from_version: z.ZodUnion<[z.ZodString, z.ZodNull]>;
4239
- to_version: z.ZodString;
4240
- message: z.ZodString;
4241
- }, "strict", z.ZodTypeAny, {
4242
- name: string;
4243
- message: string;
4244
- action: "failed" | "skipped" | "updated";
4245
- from_version: string | null;
4246
- to_version: string;
4247
- }, {
4248
- name: string;
4249
- message: string;
4250
- action: "failed" | "skipped" | "updated";
4251
- from_version: string | null;
4252
- to_version: string;
4253
- }>, "many">>;
4254
- npm_result: z.ZodOptional<z.ZodObject<{
4255
- action: z.ZodEnum<["updated", "skipped", "failed"]>;
4256
- from_version: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4257
- to_version: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4258
- message: z.ZodString;
4259
- }, "strict", z.ZodTypeAny, {
4260
- message: string;
4261
- action: "failed" | "skipped" | "updated";
4262
- from_version?: string | null | undefined;
4263
- to_version?: string | null | undefined;
4264
- }, {
4265
- message: string;
4266
- action: "failed" | "skipped" | "updated";
4267
- from_version?: string | null | undefined;
4268
- to_version?: string | null | undefined;
4269
- }>>;
4270
- local_result: z.ZodOptional<z.ZodObject<{
4271
- action: z.ZodEnum<["updated", "skipped", "failed"]>;
4272
- path: z.ZodOptional<z.ZodString>;
4273
- git_status: z.ZodOptional<z.ZodString>;
4274
- build_status: z.ZodOptional<z.ZodString>;
4275
- message: z.ZodString;
4276
- }, "strict", z.ZodTypeAny, {
4277
- message: string;
4278
- action: "failed" | "skipped" | "updated";
4279
- path?: string | undefined;
4280
- git_status?: string | undefined;
4281
- build_status?: string | undefined;
4282
- }, {
4283
- message: string;
4284
- action: "failed" | "skipped" | "updated";
4285
- path?: string | undefined;
4286
- git_status?: string | undefined;
4287
- build_status?: string | undefined;
4288
- }>>;
4289
- next_action: z.ZodObject<{
4290
- type: z.ZodEnum<["NONE", "RETRY", "RESTART_CLAUDE", "CONTACT_SUPPORT"]>;
4291
- message: z.ZodString;
4292
- }, "strict", z.ZodTypeAny, {
4293
- type: "RETRY" | "NONE" | "CONTACT_SUPPORT" | "RESTART_CLAUDE";
4294
- message: string;
4295
- }, {
4296
- type: "RETRY" | "NONE" | "CONTACT_SUPPORT" | "RESTART_CLAUDE";
4297
- message: string;
4298
- }>;
4299
- }, "strict", z.ZodTypeAny, {
4300
- status: "ERROR" | "OK" | "PARTIAL";
4301
- next_action: {
4302
- type: "RETRY" | "NONE" | "CONTACT_SUPPORT" | "RESTART_CLAUDE";
4303
- message: string;
4304
- };
4305
- summary: string;
4306
- results?: {
4307
- name: string;
4308
- message: string;
4309
- action: "failed" | "skipped" | "updated";
4310
- from_version: string | null;
4311
- to_version: string;
4312
- }[] | undefined;
4313
- npm_result?: {
4314
- message: string;
4315
- action: "failed" | "skipped" | "updated";
4316
- from_version?: string | null | undefined;
4317
- to_version?: string | null | undefined;
4318
- } | undefined;
4319
- local_result?: {
4320
- message: string;
4321
- action: "failed" | "skipped" | "updated";
4322
- path?: string | undefined;
4323
- git_status?: string | undefined;
4324
- build_status?: string | undefined;
4325
- } | undefined;
4326
- }, {
4327
- status: "ERROR" | "OK" | "PARTIAL";
4328
- next_action: {
4329
- type: "RETRY" | "NONE" | "CONTACT_SUPPORT" | "RESTART_CLAUDE";
4330
- message: string;
4331
- };
4332
- summary: string;
4333
- results?: {
4334
- name: string;
4335
- message: string;
4336
- action: "failed" | "skipped" | "updated";
4337
- from_version: string | null;
4338
- to_version: string;
4339
- }[] | undefined;
4340
- npm_result?: {
4341
- message: string;
4342
- action: "failed" | "skipped" | "updated";
4343
- from_version?: string | null | undefined;
4344
- to_version?: string | null | undefined;
4345
- } | undefined;
4346
- local_result?: {
4347
- message: string;
4348
- action: "failed" | "skipped" | "updated";
4349
- path?: string | undefined;
4350
- git_status?: string | undefined;
4351
- build_status?: string | undefined;
4352
- } | undefined;
4353
- }>;
4354
- export interface FixedIssue {
4355
- type: string;
4356
- description: string;
4357
- file?: string;
4358
- status: "FIXED";
4359
- }
4360
- export declare const skillsInputSchema: z.ZodObject<{
4361
- action: z.ZodEnum<["recommend", "execute", "status", "list"]>;
4362
- project_id: z.ZodOptional<z.ZodString>;
4363
- run_id: z.ZodOptional<z.ZodString>;
4364
- skill_id: z.ZodOptional<z.ZodString>;
4365
- user_intent: z.ZodOptional<z.ZodString>;
4366
- step_input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4367
- resume_from: z.ZodOptional<z.ZodString>;
4368
- max_recommendations: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4369
- }, "strict", z.ZodTypeAny, {
4370
- action: "status" | "list" | "recommend" | "execute";
4371
- run_id?: string | undefined;
4372
- project_id?: string | undefined;
4373
- skill_id?: string | undefined;
4374
- user_intent?: string | undefined;
4375
- step_input?: Record<string, unknown> | undefined;
4376
- resume_from?: string | undefined;
4377
- max_recommendations?: number | undefined;
4378
- }, {
4379
- action: "status" | "list" | "recommend" | "execute";
4380
- run_id?: string | undefined;
4381
- project_id?: string | undefined;
4382
- skill_id?: string | undefined;
4383
- user_intent?: string | undefined;
4384
- step_input?: Record<string, unknown> | undefined;
4385
- resume_from?: string | undefined;
4386
- max_recommendations?: number | undefined;
4387
- }>;
4388
- export declare const skillsOutputSchema: z.ZodObject<{
4389
- ok: z.ZodBoolean;
4390
- action: z.ZodEnum<["recommend", "execute", "status", "list"]>;
4391
- error: z.ZodOptional<z.ZodString>;
4392
- error_code: z.ZodOptional<z.ZodString>;
4393
- hint: z.ZodOptional<z.ZodString>;
4394
- recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
4395
- skill_id: z.ZodString;
4396
- title: z.ZodString;
4397
- intent: z.ZodOptional<z.ZodString>;
4398
- match_score: z.ZodNumber;
4399
- match_reasons: z.ZodArray<z.ZodString, "many">;
4400
- }, "strict", z.ZodTypeAny, {
4401
- title: string;
4402
- skill_id: string;
4403
- match_score: number;
4404
- match_reasons: string[];
4405
- intent?: string | undefined;
4406
- }, {
4407
- title: string;
4408
- skill_id: string;
4409
- match_score: number;
4410
- match_reasons: string[];
4411
- intent?: string | undefined;
4412
- }>, "many">>;
4413
- execution: z.ZodOptional<z.ZodObject<{
4414
- execution_id: z.ZodString;
4415
- skill_id: z.ZodString;
4416
- status: z.ZodEnum<["running", "waiting_for_user", "completed", "failed", "aborted"]>;
4417
- current_step: z.ZodOptional<z.ZodObject<{
4418
- id: z.ZodOptional<z.ZodString>;
4419
- tool: z.ZodOptional<z.ZodString>;
4420
- mode: z.ZodOptional<z.ZodString>;
4421
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4422
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4423
- id: z.ZodOptional<z.ZodString>;
4424
- tool: z.ZodOptional<z.ZodString>;
4425
- mode: z.ZodOptional<z.ZodString>;
4426
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4427
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4428
- id: z.ZodOptional<z.ZodString>;
4429
- tool: z.ZodOptional<z.ZodString>;
4430
- mode: z.ZodOptional<z.ZodString>;
4431
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4432
- }, z.ZodTypeAny, "passthrough">>>;
4433
- completed_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4434
- pending_steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4435
- user_prompt: z.ZodOptional<z.ZodString>;
4436
- next_action: z.ZodOptional<z.ZodString>;
4437
- execution_log_path: z.ZodOptional<z.ZodString>;
4438
- evidence_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4439
- }, "strict", z.ZodTypeAny, {
4440
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4441
- skill_id: string;
4442
- execution_id: string;
4443
- next_action?: string | undefined;
4444
- current_step?: z.objectOutputType<{
4445
- id: z.ZodOptional<z.ZodString>;
4446
- tool: z.ZodOptional<z.ZodString>;
4447
- mode: z.ZodOptional<z.ZodString>;
4448
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4449
- }, z.ZodTypeAny, "passthrough"> | undefined;
4450
- completed_steps?: string[] | undefined;
4451
- pending_steps?: string[] | undefined;
4452
- user_prompt?: string | undefined;
4453
- execution_log_path?: string | undefined;
4454
- evidence_paths?: string[] | undefined;
4455
- }, {
4456
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4457
- skill_id: string;
4458
- execution_id: string;
4459
- next_action?: string | undefined;
4460
- current_step?: z.objectInputType<{
4461
- id: z.ZodOptional<z.ZodString>;
4462
- tool: z.ZodOptional<z.ZodString>;
4463
- mode: z.ZodOptional<z.ZodString>;
4464
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4465
- }, z.ZodTypeAny, "passthrough"> | undefined;
4466
- completed_steps?: string[] | undefined;
4467
- pending_steps?: string[] | undefined;
4468
- user_prompt?: string | undefined;
4469
- execution_log_path?: string | undefined;
4470
- evidence_paths?: string[] | undefined;
4471
- }>>;
4472
- available_skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
4473
- skill_id: z.ZodString;
4474
- title: z.ZodString;
4475
- intent: z.ZodOptional<z.ZodString>;
4476
- pack_id: z.ZodString;
4477
- version: z.ZodOptional<z.ZodString>;
4478
- }, "strict", z.ZodTypeAny, {
4479
- title: string;
4480
- skill_id: string;
4481
- pack_id: string;
4482
- version?: string | undefined;
4483
- intent?: string | undefined;
4484
- }, {
4485
- title: string;
4486
- skill_id: string;
4487
- pack_id: string;
4488
- version?: string | undefined;
4489
- intent?: string | undefined;
4490
- }>, "many">>;
4491
- execution_status: z.ZodOptional<z.ZodObject<{
4492
- execution_id: z.ZodString;
4493
- skill_id: z.ZodString;
4494
- status: z.ZodEnum<["running", "waiting_for_user", "completed", "failed", "aborted"]>;
4495
- current_step_id: z.ZodOptional<z.ZodString>;
4496
- progress: z.ZodOptional<z.ZodNumber>;
4497
- started_at: z.ZodOptional<z.ZodString>;
4498
- updated_at: z.ZodOptional<z.ZodString>;
4499
- }, "strict", z.ZodTypeAny, {
4500
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4501
- skill_id: string;
4502
- execution_id: string;
4503
- updated_at?: string | undefined;
4504
- started_at?: string | undefined;
4505
- current_step_id?: string | undefined;
4506
- progress?: number | undefined;
4507
- }, {
4508
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4509
- skill_id: string;
4510
- execution_id: string;
4511
- updated_at?: string | undefined;
4512
- started_at?: string | undefined;
4513
- current_step_id?: string | undefined;
4514
- progress?: number | undefined;
4515
- }>>;
4516
- }, "strict", z.ZodTypeAny, {
4517
- ok: boolean;
4518
- action: "status" | "list" | "recommend" | "execute";
4519
- error?: string | undefined;
4520
- error_code?: string | undefined;
4521
- hint?: string | undefined;
4522
- recommendations?: {
4523
- title: string;
4524
- skill_id: string;
4525
- match_score: number;
4526
- match_reasons: string[];
4527
- intent?: string | undefined;
4528
- }[] | undefined;
4529
- execution?: {
4530
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4531
- skill_id: string;
4532
- execution_id: string;
4533
- next_action?: string | undefined;
4534
- current_step?: z.objectOutputType<{
4535
- id: z.ZodOptional<z.ZodString>;
4536
- tool: z.ZodOptional<z.ZodString>;
4537
- mode: z.ZodOptional<z.ZodString>;
4538
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4539
- }, z.ZodTypeAny, "passthrough"> | undefined;
4540
- completed_steps?: string[] | undefined;
4541
- pending_steps?: string[] | undefined;
4542
- user_prompt?: string | undefined;
4543
- execution_log_path?: string | undefined;
4544
- evidence_paths?: string[] | undefined;
4545
- } | undefined;
4546
- available_skills?: {
4547
- title: string;
4548
- skill_id: string;
4549
- pack_id: string;
4550
- version?: string | undefined;
4551
- intent?: string | undefined;
4552
- }[] | undefined;
4553
- execution_status?: {
4554
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4555
- skill_id: string;
4556
- execution_id: string;
4557
- updated_at?: string | undefined;
4558
- started_at?: string | undefined;
4559
- current_step_id?: string | undefined;
4560
- progress?: number | undefined;
4561
- } | undefined;
4562
- }, {
4563
- ok: boolean;
4564
- action: "status" | "list" | "recommend" | "execute";
4565
- error?: string | undefined;
4566
- error_code?: string | undefined;
4567
- hint?: string | undefined;
4568
- recommendations?: {
4569
- title: string;
4570
- skill_id: string;
4571
- match_score: number;
4572
- match_reasons: string[];
4573
- intent?: string | undefined;
4574
- }[] | undefined;
4575
- execution?: {
4576
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4577
- skill_id: string;
4578
- execution_id: string;
4579
- next_action?: string | undefined;
4580
- current_step?: z.objectInputType<{
4581
- id: z.ZodOptional<z.ZodString>;
4582
- tool: z.ZodOptional<z.ZodString>;
4583
- mode: z.ZodOptional<z.ZodString>;
4584
- result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4585
- }, z.ZodTypeAny, "passthrough"> | undefined;
4586
- completed_steps?: string[] | undefined;
4587
- pending_steps?: string[] | undefined;
4588
- user_prompt?: string | undefined;
4589
- execution_log_path?: string | undefined;
4590
- evidence_paths?: string[] | undefined;
4591
- } | undefined;
4592
- available_skills?: {
4593
- title: string;
4594
- skill_id: string;
4595
- pack_id: string;
4596
- version?: string | undefined;
4597
- intent?: string | undefined;
4598
- }[] | undefined;
4599
- execution_status?: {
4600
- status: "running" | "completed" | "failed" | "aborted" | "waiting_for_user";
4601
- skill_id: string;
4602
- execution_id: string;
4603
- updated_at?: string | undefined;
4604
- started_at?: string | undefined;
4605
- current_step_id?: string | undefined;
4606
- progress?: number | undefined;
4607
- } | undefined;
4608
- }>;
4609
- export type SkillsInput = z.infer<typeof skillsInputSchema>;
4610
- export type SkillsOutput = z.infer<typeof skillsOutputSchema>;
4611
- /** Missing 항목 ID */
4612
- export type MissingId = "RUN_CONTEXT" | "TICKET_MISSING" | "SPEC_MISSING" | "PLAN_MISSING" | "INGRESS_MISSING";
4613
- /** Missing 항목 */
4614
- export interface MissingItem {
4615
- id: MissingId;
4616
- required_for: Array<"STATUS" | "WORKFLOW" | "MUTATION">;
4617
- evidence: string[];
4618
- }
4619
- /** Rewind 액션 타입 */
4620
- export type RewindAction = "AUTO_INIT_RUN_CONTEXT" | "ENSURE_SPEC_LOCKED" | "ENSURE_PLAN_LOCKED" | "RUN_INGRESS" | "RETRY_ORIGINAL_TOOL";
4621
- /** Rewind Plan Step */
4622
- export interface RewindStep {
4623
- step: string;
4624
- action: RewindAction;
4625
- produces: string[];
4626
- }
4627
- /** Loop Policy */
4628
- export interface LoopPolicy {
4629
- max_attempts: number;
4630
- stop_on: Array<"FORBIDDEN_PATH" | "BUDGET_EXCEEDED" | "PERMISSION_DENIED">;
4631
- backoff_ms: number[];
4632
- }
4633
- /** User Surface (유저에게 보여줄 메시지) */
4634
- export interface UserSurface {
4635
- title: string;
4636
- message: string;
4637
- }
4638
- /** Rewind Directive (rewind.v1) */
4639
- export interface RewindDirective {
4640
- schema_version: "rewind.v1";
4641
- tool: string;
4642
- intent: "REWIND_AND_PREPARE";
4643
- missing: MissingItem[];
4644
- plan: RewindStep[];
4645
- loop_policy: LoopPolicy;
4646
- user_surface: UserSurface;
4647
- }
4648
- /** Status output with rewind support */
4649
- export type StatusResult = StatusOutput | RewindDirective;
1
+ export * from './types/common.js';
2
+ export * from './types/schemas.js';
3
+ export * from './types/workflow.js';
4
+ export * from './types/analysis.js';
5
+ export * from './types/runtime.js';