@probelabs/visor 0.1.106 → 0.1.107

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 (450) hide show
  1. package/README.md +65 -2
  2. package/action.yml +1 -1
  3. package/defaults/code-refiner.yaml +114 -0
  4. package/defaults/{.visor.yaml → code-review.yaml} +35 -226
  5. package/defaults/override.yaml +52 -0
  6. package/defaults/task-refinement.yaml +620 -0
  7. package/defaults/visor.tests.yaml +674 -0
  8. package/defaults/visor.yaml +482 -0
  9. package/dist/663.index.js +2 -3
  10. package/dist/80.index.js +2 -3
  11. package/dist/action-cli-bridge.d.ts +11 -82
  12. package/dist/action-cli-bridge.d.ts.map +1 -1
  13. package/dist/ai-review-service.d.ts +15 -0
  14. package/dist/ai-review-service.d.ts.map +1 -1
  15. package/dist/check-execution-engine.d.ts +19 -331
  16. package/dist/check-execution-engine.d.ts.map +1 -1
  17. package/dist/cli-main.d.ts.map +1 -1
  18. package/dist/cli.d.ts +0 -1
  19. package/dist/cli.d.ts.map +1 -1
  20. package/dist/config.d.ts +16 -0
  21. package/dist/config.d.ts.map +1 -1
  22. package/dist/cron-scheduler.d.ts +3 -3
  23. package/dist/cron-scheduler.d.ts.map +1 -1
  24. package/dist/debug-visualizer/ws-server.d.ts.map +1 -1
  25. package/dist/defaults/code-refiner.yaml +114 -0
  26. package/dist/defaults/{.visor.yaml → code-review.yaml} +35 -226
  27. package/dist/defaults/override.yaml +52 -0
  28. package/dist/defaults/task-refinement.yaml +620 -0
  29. package/dist/defaults/visor.tests.yaml +674 -0
  30. package/dist/defaults/visor.yaml +482 -0
  31. package/dist/docs/DEPLOYMENT.md +118 -0
  32. package/dist/docs/GITHUB_CHECKS.md +280 -0
  33. package/dist/docs/NPM_USAGE.md +208 -0
  34. package/dist/docs/action-reference.md +19 -0
  35. package/dist/docs/advanced-ai.md +178 -0
  36. package/dist/docs/ai-configuration.md +468 -0
  37. package/dist/docs/author-permissions.md +610 -0
  38. package/dist/docs/ci-cli-mode.md +34 -0
  39. package/dist/docs/claude-code.md +74 -0
  40. package/dist/docs/command-provider.md +559 -0
  41. package/dist/docs/commands.md +8 -0
  42. package/dist/docs/configuration.md +303 -0
  43. package/dist/docs/custom-tools.md +424 -0
  44. package/dist/docs/dashboards/README.md +23 -0
  45. package/dist/docs/dashboards/grafana-visor-diagrams.json +20 -0
  46. package/dist/docs/dashboards/grafana-visor-overview.json +33 -0
  47. package/dist/docs/debug-visualizer-progress.md +572 -0
  48. package/dist/docs/debug-visualizer-rfc.md +691 -0
  49. package/dist/docs/debug-visualizer.md +114 -0
  50. package/dist/docs/debugging.md +636 -0
  51. package/dist/docs/default-output-schema.md +28 -0
  52. package/dist/docs/dependencies.md +369 -0
  53. package/dist/docs/dev-playbook.md +9 -0
  54. package/dist/docs/engine-state-machine-plan.md +333 -0
  55. package/dist/docs/event-driven-github-integration-rfc.md +743 -0
  56. package/dist/docs/event-triggers.md +292 -0
  57. package/dist/docs/execution-statistics-rfc.md +290 -0
  58. package/dist/docs/fact-validator-gap-analysis.md +178 -0
  59. package/dist/docs/fact-validator-implementation-plan.md +1235 -0
  60. package/dist/docs/fail-if.md +95 -0
  61. package/dist/docs/failure-conditions-implementation.md +271 -0
  62. package/dist/docs/failure-conditions-schema.md +173 -0
  63. package/dist/docs/failure-routing-rfc.md +193 -0
  64. package/dist/docs/failure-routing.md +507 -0
  65. package/dist/docs/foreach-dependency-propagation.md +473 -0
  66. package/dist/docs/github-ops.md +89 -0
  67. package/dist/docs/goto-forward-run-plan.md +113 -0
  68. package/dist/docs/guides/criticality-modes.md +332 -0
  69. package/dist/docs/guides/fault-management-and-contracts.md +738 -0
  70. package/dist/docs/guides/workflow-style-guide.md +224 -0
  71. package/dist/docs/http.md +299 -0
  72. package/dist/docs/human-input-provider.md +372 -0
  73. package/dist/docs/limits.md +64 -0
  74. package/dist/docs/liquid-templates.md +347 -0
  75. package/dist/docs/loop-routing-refactor.md +89 -0
  76. package/dist/docs/mcp-provider.md +557 -0
  77. package/dist/docs/mcp.md +124 -0
  78. package/dist/docs/memory.md +903 -0
  79. package/dist/docs/observability.md +12 -0
  80. package/dist/docs/output-formats.md +20 -0
  81. package/dist/docs/output-formatting.md +29 -0
  82. package/dist/docs/output-history.md +383 -0
  83. package/dist/docs/performance.md +6 -0
  84. package/dist/docs/pluggable.md +124 -0
  85. package/dist/docs/proposals/snapshot-scope-execution.md +236 -0
  86. package/dist/docs/recipes.md +21 -0
  87. package/dist/docs/roadmap/criticality-implementation-tasks.md +92 -0
  88. package/dist/docs/schema-next-pr.md +10 -0
  89. package/dist/docs/schema-templates.md +68 -0
  90. package/dist/docs/script.md +34 -0
  91. package/dist/docs/sdk.md +222 -0
  92. package/dist/docs/security.md +7 -0
  93. package/dist/docs/suppressions.md +89 -0
  94. package/dist/docs/tag-filtering.md +258 -0
  95. package/dist/docs/telemetry-setup.md +119 -0
  96. package/dist/docs/telemetry-tracing-rfc.md +275 -0
  97. package/dist/docs/test-framework-rfc.md +680 -0
  98. package/dist/docs/testing/assertions.md +85 -0
  99. package/dist/docs/testing/ci.md +44 -0
  100. package/dist/docs/testing/cli.md +41 -0
  101. package/dist/docs/testing/cookbook.md +172 -0
  102. package/dist/docs/testing/dsl-reference.md +199 -0
  103. package/dist/docs/testing/fixtures-and-mocks.md +91 -0
  104. package/dist/docs/testing/flows.md +92 -0
  105. package/dist/docs/testing/getting-started.md +93 -0
  106. package/dist/docs/testing/troubleshooting.md +55 -0
  107. package/dist/docs/timeouts.md +50 -0
  108. package/dist/docs/troubleshooting.md +7 -0
  109. package/dist/docs/visor-sdk-rfc.md +186 -0
  110. package/dist/docs/workflows.md +569 -0
  111. package/dist/engine/on-finish/orchestrator.d.ts +19 -0
  112. package/dist/engine/on-finish/orchestrator.d.ts.map +1 -0
  113. package/dist/engine/on-finish/utils.d.ts +44 -0
  114. package/dist/engine/on-finish/utils.d.ts.map +1 -0
  115. package/dist/event-bus/event-bus.d.ts +13 -0
  116. package/dist/event-bus/event-bus.d.ts.map +1 -0
  117. package/dist/event-bus/types.d.ts +57 -0
  118. package/dist/event-bus/types.d.ts.map +1 -0
  119. package/dist/examples/.claude/agents/code-reviewer.md +69 -0
  120. package/dist/examples/.mcp.json +34 -0
  121. package/dist/examples/CALCULATOR-SDK.md +364 -0
  122. package/dist/examples/README.md +384 -0
  123. package/dist/examples/ai-retry-fallback-config.yaml +180 -0
  124. package/dist/examples/ai-with-bash.yaml +126 -0
  125. package/dist/examples/ai-with-mcp.yaml +82 -0
  126. package/dist/examples/basic-human-input.yaml +15 -0
  127. package/dist/examples/bedrock-config.yaml +77 -0
  128. package/dist/examples/calculator-config.yaml +133 -0
  129. package/dist/examples/calculator-json-output-guide.md +311 -0
  130. package/dist/examples/calculator-sdk-automated.ts +340 -0
  131. package/dist/examples/calculator-sdk-example.ts +275 -0
  132. package/dist/examples/calculator-sdk-json.ts +331 -0
  133. package/dist/examples/calculator-sdk-real.ts +374 -0
  134. package/dist/examples/calculator-sdk-test.ts +148 -0
  135. package/dist/examples/claude-code-config.yaml +191 -0
  136. package/dist/examples/cron-webhook-config.yaml +215 -0
  137. package/dist/examples/custom-template.liquid +57 -0
  138. package/dist/examples/custom-tools-example.yaml +281 -0
  139. package/dist/examples/enhanced-config.yaml +165 -0
  140. package/dist/examples/environments/visor.base.yaml +92 -0
  141. package/dist/examples/environments/visor.dev.yaml +33 -0
  142. package/dist/examples/environments/visor.prod.yaml +95 -0
  143. package/dist/examples/environments/visor.staging.yaml +46 -0
  144. package/dist/examples/fact-validator.yaml +361 -0
  145. package/dist/examples/fail-if-simple.yaml +90 -0
  146. package/dist/examples/failure-conditions-advanced.yaml +136 -0
  147. package/dist/examples/failure-conditions-basic.yaml +48 -0
  148. package/dist/examples/failure-conditions-github-style.yaml +119 -0
  149. package/dist/examples/failure-conditions-migration.yaml +74 -0
  150. package/dist/examples/for-loop-example.yaml +176 -0
  151. package/dist/examples/forEach-example.yaml +120 -0
  152. package/dist/examples/github-workflow-with-tags.yml +163 -0
  153. package/dist/examples/http-integration-config.yaml +240 -0
  154. package/dist/examples/https-server-config.yaml +209 -0
  155. package/dist/examples/human-input-example.yaml +63 -0
  156. package/dist/examples/if-conditions.yaml +173 -0
  157. package/dist/examples/jira-simple-example.yaml +56 -0
  158. package/dist/examples/jira-single-issue-workflow.yaml +166 -0
  159. package/dist/examples/jira-workflow-mcp.yaml +182 -0
  160. package/dist/examples/mcp/analyzer.py +119 -0
  161. package/dist/examples/mcp-provider-example.yaml +301 -0
  162. package/dist/examples/memory-counter.yaml +99 -0
  163. package/dist/examples/memory-error-collection.yaml +104 -0
  164. package/dist/examples/memory-exec-js.yaml +247 -0
  165. package/dist/examples/memory-namespace-isolation.yaml +184 -0
  166. package/dist/examples/memory-retry-counter.yaml +65 -0
  167. package/dist/examples/memory-state-machine.yaml +170 -0
  168. package/dist/examples/outputs-raw-basic.yaml +26 -0
  169. package/dist/examples/project-with-tools.yaml +174 -0
  170. package/dist/examples/prompts/architecture-analysis.liquid +116 -0
  171. package/dist/examples/prompts/security-comprehensive.liquid +107 -0
  172. package/dist/examples/quick-start-tags.yaml +53 -0
  173. package/dist/examples/routing-basic.yaml +35 -0
  174. package/dist/examples/routing-dynamic-js.yaml +46 -0
  175. package/dist/examples/routing-foreach.yaml +34 -0
  176. package/dist/examples/routing-goto-event.yaml +34 -0
  177. package/dist/examples/routing-on-success.yaml +25 -0
  178. package/dist/examples/run-calculator-demo.sh +71 -0
  179. package/dist/examples/sdk-basic.mjs +10 -0
  180. package/dist/examples/sdk-cjs.cjs +10 -0
  181. package/dist/examples/sdk-comprehensive.mjs +175 -0
  182. package/dist/examples/sdk-manual-config.mjs +65 -0
  183. package/dist/examples/sdk-typescript.js +81 -0
  184. package/dist/examples/sdk-typescript.ts +92 -0
  185. package/dist/examples/session-reuse-config.yaml +151 -0
  186. package/dist/examples/templates/security-report.liquid +137 -0
  187. package/dist/examples/tools-library.yaml +281 -0
  188. package/dist/examples/transform-example.yaml +199 -0
  189. package/dist/examples/visor-with-tags.yaml +198 -0
  190. package/dist/examples/webhook-pipeline-config.yaml +218 -0
  191. package/dist/examples/workflows/calculator-workflow.yaml +163 -0
  192. package/dist/examples/workflows/code-quality.yaml +222 -0
  193. package/dist/examples/workflows/quick-pr-check.yaml +90 -0
  194. package/dist/examples/workflows/workflow-composition-example.yaml +130 -0
  195. package/dist/failure-condition-evaluator.d.ts +1 -0
  196. package/dist/failure-condition-evaluator.d.ts.map +1 -1
  197. package/dist/frontends/github-frontend.d.ts +38 -0
  198. package/dist/frontends/github-frontend.d.ts.map +1 -0
  199. package/dist/frontends/host.d.ts +43 -0
  200. package/dist/frontends/host.d.ts.map +1 -0
  201. package/dist/frontends/ndjson-sink.d.ts +12 -0
  202. package/dist/frontends/ndjson-sink.d.ts.map +1 -0
  203. package/dist/generated/config-schema.d.ts +564 -22
  204. package/dist/generated/config-schema.d.ts.map +1 -1
  205. package/dist/generated/config-schema.json +612 -24
  206. package/dist/github-check-service.d.ts +4 -6
  207. package/dist/github-check-service.d.ts.map +1 -1
  208. package/dist/github-comments.d.ts +0 -4
  209. package/dist/github-comments.d.ts.map +1 -1
  210. package/dist/index.d.ts.map +1 -1
  211. package/dist/index.js +70335 -62514
  212. package/dist/liquid-extensions.d.ts.map +1 -1
  213. package/dist/logger.d.ts +1 -0
  214. package/dist/logger.d.ts.map +1 -1
  215. package/dist/memory-store.d.ts +6 -0
  216. package/dist/memory-store.d.ts.map +1 -1
  217. package/dist/output/assistant-json/template.liquid +0 -0
  218. package/dist/output/traces/run-2025-11-21T11-50-46-505Z.ndjson +138 -0
  219. package/dist/output/traces/run-2025-11-21T11-51-33-674Z.ndjson +839 -0
  220. package/dist/output-formatters.d.ts +1 -1
  221. package/dist/output-formatters.d.ts.map +1 -1
  222. package/dist/providers/ai-check-provider.d.ts.map +1 -1
  223. package/dist/providers/check-provider-registry.d.ts +6 -0
  224. package/dist/providers/check-provider-registry.d.ts.map +1 -1
  225. package/dist/providers/check-provider.interface.d.ts +34 -1
  226. package/dist/providers/check-provider.interface.d.ts.map +1 -1
  227. package/dist/providers/claude-code-check-provider.d.ts.map +1 -1
  228. package/dist/providers/command-check-provider.d.ts +1 -1
  229. package/dist/providers/command-check-provider.d.ts.map +1 -1
  230. package/dist/providers/custom-tool-executor.d.ts +61 -0
  231. package/dist/providers/custom-tool-executor.d.ts.map +1 -0
  232. package/dist/providers/github-ops-provider.d.ts.map +1 -1
  233. package/dist/providers/http-client-provider.d.ts +1 -4
  234. package/dist/providers/http-client-provider.d.ts.map +1 -1
  235. package/dist/providers/human-input-check-provider.d.ts +3 -0
  236. package/dist/providers/human-input-check-provider.d.ts.map +1 -1
  237. package/dist/providers/index.d.ts +1 -0
  238. package/dist/providers/index.d.ts.map +1 -1
  239. package/dist/providers/log-check-provider.d.ts +2 -5
  240. package/dist/providers/log-check-provider.d.ts.map +1 -1
  241. package/dist/providers/mcp-check-provider.d.ts +9 -3
  242. package/dist/providers/mcp-check-provider.d.ts.map +1 -1
  243. package/dist/providers/memory-check-provider.d.ts +2 -8
  244. package/dist/providers/memory-check-provider.d.ts.map +1 -1
  245. package/dist/providers/script-check-provider.d.ts +25 -0
  246. package/dist/providers/script-check-provider.d.ts.map +1 -0
  247. package/dist/providers/workflow-check-provider.d.ts +56 -0
  248. package/dist/providers/workflow-check-provider.d.ts.map +1 -0
  249. package/dist/reviewer.d.ts +2 -1
  250. package/dist/reviewer.d.ts.map +1 -1
  251. package/dist/sdk/chunk-37ZSCMFC.mjs +482 -0
  252. package/dist/sdk/chunk-37ZSCMFC.mjs.map +1 -0
  253. package/dist/sdk/chunk-6Y4YTKCF.mjs +197 -0
  254. package/dist/sdk/chunk-6Y4YTKCF.mjs.map +1 -0
  255. package/dist/sdk/chunk-CNX7V5JK.mjs +89 -0
  256. package/dist/sdk/chunk-CNX7V5JK.mjs.map +1 -0
  257. package/dist/sdk/chunk-IEO6CFLG.mjs +1215 -0
  258. package/dist/sdk/chunk-IEO6CFLG.mjs.map +1 -0
  259. package/dist/sdk/chunk-JEHPDJIF.mjs +223 -0
  260. package/dist/sdk/chunk-JEHPDJIF.mjs.map +1 -0
  261. package/dist/sdk/chunk-O5EZDNYL.mjs +274 -0
  262. package/dist/sdk/chunk-O5EZDNYL.mjs.map +1 -0
  263. package/dist/sdk/{chunk-TUTOLSFV.mjs → chunk-OOZITMRU.mjs} +1 -1
  264. package/dist/sdk/chunk-OOZITMRU.mjs.map +1 -0
  265. package/dist/sdk/chunk-OWUVOILT.mjs +557 -0
  266. package/dist/sdk/chunk-OWUVOILT.mjs.map +1 -0
  267. package/dist/sdk/chunk-OZJ263FM.mjs +986 -0
  268. package/dist/sdk/chunk-OZJ263FM.mjs.map +1 -0
  269. package/dist/sdk/chunk-PTL3K3PN.mjs +3128 -0
  270. package/dist/sdk/chunk-PTL3K3PN.mjs.map +1 -0
  271. package/dist/sdk/chunk-S2RUE2RG.mjs +145 -0
  272. package/dist/sdk/chunk-S2RUE2RG.mjs.map +1 -0
  273. package/dist/sdk/chunk-VMPLF6FT.mjs +127 -0
  274. package/dist/sdk/chunk-VMPLF6FT.mjs.map +1 -0
  275. package/dist/sdk/chunk-YSN4G6CI.mjs +146 -0
  276. package/dist/sdk/chunk-YSN4G6CI.mjs.map +1 -0
  277. package/dist/sdk/chunk-ZYAUYXSW.mjs +206 -0
  278. package/dist/sdk/chunk-ZYAUYXSW.mjs.map +1 -0
  279. package/dist/sdk/config-M4ZNO6NU.mjs +14 -0
  280. package/dist/sdk/config-merger-PX3WIT57.mjs +10 -0
  281. package/dist/sdk/event-bus-5BEVPQ6T.mjs +35 -0
  282. package/dist/sdk/event-bus-5BEVPQ6T.mjs.map +1 -0
  283. package/dist/sdk/failure-condition-evaluator-NBO5YRXW.mjs +16 -0
  284. package/dist/sdk/git-repository-analyzer-HJC4MYW4.mjs +458 -0
  285. package/dist/sdk/git-repository-analyzer-HJC4MYW4.mjs.map +1 -0
  286. package/dist/sdk/github-frontend-4AWRJT7D.mjs +1242 -0
  287. package/dist/sdk/github-frontend-4AWRJT7D.mjs.map +1 -0
  288. package/dist/sdk/host-7GBC3S7L.mjs +49 -0
  289. package/dist/sdk/host-7GBC3S7L.mjs.map +1 -0
  290. package/dist/sdk/{liquid-extensions-KVL4MKRH.mjs → liquid-extensions-C7EG3YKH.mjs} +7 -2
  291. package/dist/sdk/memory-store-GJACZC2A.mjs +11 -0
  292. package/dist/sdk/metrics-7PP3EJUH.mjs +29 -0
  293. package/dist/sdk/ndjson-sink-B4V4NTAQ.mjs +44 -0
  294. package/dist/sdk/ndjson-sink-B4V4NTAQ.mjs.map +1 -0
  295. package/dist/sdk/renderer-schema-6RF26VUS.mjs +50 -0
  296. package/dist/sdk/renderer-schema-6RF26VUS.mjs.map +1 -0
  297. package/dist/sdk/routing-RP56JTV2.mjs +23 -0
  298. package/dist/sdk/routing-RP56JTV2.mjs.map +1 -0
  299. package/dist/sdk/sdk.d.mts +326 -21
  300. package/dist/sdk/sdk.d.ts +326 -21
  301. package/dist/sdk/sdk.js +21403 -16366
  302. package/dist/sdk/sdk.js.map +1 -1
  303. package/dist/sdk/sdk.mjs +13510 -2096
  304. package/dist/sdk/sdk.mjs.map +1 -1
  305. package/dist/sdk/session-registry-N5FFYFTM.mjs +10 -0
  306. package/dist/sdk/session-registry-N5FFYFTM.mjs.map +1 -0
  307. package/dist/sdk/trace-helpers-VP6QYVBX.mjs +23 -0
  308. package/dist/sdk/trace-helpers-VP6QYVBX.mjs.map +1 -0
  309. package/dist/sdk/{tracer-init-WC75N5NW.mjs → tracer-init-WP4X46IF.mjs} +2 -2
  310. package/dist/sdk/tracer-init-WP4X46IF.mjs.map +1 -0
  311. package/dist/sdk/workflow-registry-2YIIXQCK.mjs +11 -0
  312. package/dist/sdk/workflow-registry-2YIIXQCK.mjs.map +1 -0
  313. package/dist/sdk.d.ts.map +1 -1
  314. package/dist/snapshot-store.d.ts +59 -0
  315. package/dist/snapshot-store.d.ts.map +1 -0
  316. package/dist/state-machine/context/build-engine-context.d.ts +9 -0
  317. package/dist/state-machine/context/build-engine-context.d.ts.map +1 -0
  318. package/dist/state-machine/dispatch/dependency-gating.d.ts +12 -0
  319. package/dist/state-machine/dispatch/dependency-gating.d.ts.map +1 -0
  320. package/dist/state-machine/dispatch/execution-invoker.d.ts +14 -0
  321. package/dist/state-machine/dispatch/execution-invoker.d.ts.map +1 -0
  322. package/dist/state-machine/dispatch/foreach-processor.d.ts +8 -0
  323. package/dist/state-machine/dispatch/foreach-processor.d.ts.map +1 -0
  324. package/dist/state-machine/dispatch/history-snapshot.d.ts +8 -0
  325. package/dist/state-machine/dispatch/history-snapshot.d.ts.map +1 -0
  326. package/dist/state-machine/dispatch/renderer-schema.d.ts +8 -0
  327. package/dist/state-machine/dispatch/renderer-schema.d.ts.map +1 -0
  328. package/dist/state-machine/dispatch/stats-manager.d.ts +15 -0
  329. package/dist/state-machine/dispatch/stats-manager.d.ts.map +1 -0
  330. package/dist/state-machine/dispatch/template-renderer.d.ts +7 -0
  331. package/dist/state-machine/dispatch/template-renderer.d.ts.map +1 -0
  332. package/dist/state-machine/execution/summary.d.ts +8 -0
  333. package/dist/state-machine/execution/summary.d.ts.map +1 -0
  334. package/dist/state-machine/runner.d.ts +73 -0
  335. package/dist/state-machine/runner.d.ts.map +1 -0
  336. package/dist/state-machine/states/check-running.d.ts +14 -0
  337. package/dist/state-machine/states/check-running.d.ts.map +1 -0
  338. package/dist/state-machine/states/completed.d.ts +12 -0
  339. package/dist/state-machine/states/completed.d.ts.map +1 -0
  340. package/dist/state-machine/states/error.d.ts +11 -0
  341. package/dist/state-machine/states/error.d.ts.map +1 -0
  342. package/dist/state-machine/states/init.d.ts +11 -0
  343. package/dist/state-machine/states/init.d.ts.map +1 -0
  344. package/dist/state-machine/states/level-dispatch.d.ts +17 -0
  345. package/dist/state-machine/states/level-dispatch.d.ts.map +1 -0
  346. package/dist/state-machine/states/plan-ready.d.ts +12 -0
  347. package/dist/state-machine/states/plan-ready.d.ts.map +1 -0
  348. package/dist/state-machine/states/routing.d.ts +52 -0
  349. package/dist/state-machine/states/routing.d.ts.map +1 -0
  350. package/dist/state-machine/states/wave-planning.d.ts +14 -0
  351. package/dist/state-machine/states/wave-planning.d.ts.map +1 -0
  352. package/dist/state-machine/workflow-projection.d.ts +47 -0
  353. package/dist/state-machine/workflow-projection.d.ts.map +1 -0
  354. package/dist/state-machine-execution-engine.d.ts +147 -0
  355. package/dist/state-machine-execution-engine.d.ts.map +1 -0
  356. package/dist/telemetry/opentelemetry.d.ts.map +1 -1
  357. package/dist/test-runner/assertions.d.ts +59 -0
  358. package/dist/test-runner/assertions.d.ts.map +1 -0
  359. package/dist/test-runner/core/environment.d.ts +8 -0
  360. package/dist/test-runner/core/environment.d.ts.map +1 -0
  361. package/dist/test-runner/core/fixture.d.ts +3 -0
  362. package/dist/test-runner/core/fixture.d.ts.map +1 -0
  363. package/dist/test-runner/core/flow-stage.d.ts +32 -0
  364. package/dist/test-runner/core/flow-stage.d.ts.map +1 -0
  365. package/dist/test-runner/core/mocks.d.ts +8 -0
  366. package/dist/test-runner/core/mocks.d.ts.map +1 -0
  367. package/dist/test-runner/core/test-execution-wrapper.d.ts +18 -0
  368. package/dist/test-runner/core/test-execution-wrapper.d.ts.map +1 -0
  369. package/dist/test-runner/evaluators.d.ts +12 -0
  370. package/dist/test-runner/evaluators.d.ts.map +1 -0
  371. package/dist/test-runner/fixture-loader.d.ts +30 -0
  372. package/dist/test-runner/fixture-loader.d.ts.map +1 -0
  373. package/dist/test-runner/index.d.ts +120 -0
  374. package/dist/test-runner/index.d.ts.map +1 -0
  375. package/dist/test-runner/recorders/github-recorder.d.ts +23 -0
  376. package/dist/test-runner/recorders/github-recorder.d.ts.map +1 -0
  377. package/dist/test-runner/recorders/global-recorder.d.ts +4 -0
  378. package/dist/test-runner/recorders/global-recorder.d.ts.map +1 -0
  379. package/dist/test-runner/utils/selectors.d.ts +2 -0
  380. package/dist/test-runner/utils/selectors.d.ts.map +1 -0
  381. package/dist/test-runner/validator.d.ts +8 -0
  382. package/dist/test-runner/validator.d.ts.map +1 -0
  383. package/dist/traces/run-2025-11-21T11-50-46-505Z.ndjson +138 -0
  384. package/dist/traces/run-2025-11-21T11-51-33-674Z.ndjson +839 -0
  385. package/dist/types/cli.d.ts +4 -1
  386. package/dist/types/cli.d.ts.map +1 -1
  387. package/dist/types/config.d.ts +278 -5
  388. package/dist/types/config.d.ts.map +1 -1
  389. package/dist/types/engine.d.ts +172 -0
  390. package/dist/types/engine.d.ts.map +1 -0
  391. package/dist/types/execution.d.ts +73 -0
  392. package/dist/types/execution.d.ts.map +1 -0
  393. package/dist/types/github.d.ts +51 -0
  394. package/dist/types/github.d.ts.map +1 -0
  395. package/dist/types/workflow.d.ts +237 -0
  396. package/dist/types/workflow.d.ts.map +1 -0
  397. package/dist/utils/command-executor.d.ts +43 -0
  398. package/dist/utils/command-executor.d.ts.map +1 -0
  399. package/dist/utils/comment-metadata.d.ts +21 -0
  400. package/dist/utils/comment-metadata.d.ts.map +1 -0
  401. package/dist/utils/config-loader.d.ts.map +1 -1
  402. package/dist/utils/config-merger.d.ts.map +1 -1
  403. package/dist/utils/env-exposure.d.ts +3 -0
  404. package/dist/utils/env-exposure.d.ts.map +1 -0
  405. package/dist/utils/file-exclusion.d.ts.map +1 -1
  406. package/dist/utils/interactive-prompt.d.ts +1 -1
  407. package/dist/utils/interactive-prompt.d.ts.map +1 -1
  408. package/dist/utils/sandbox.d.ts.map +1 -1
  409. package/dist/utils/script-memory-ops.d.ts +21 -0
  410. package/dist/utils/script-memory-ops.d.ts.map +1 -0
  411. package/dist/utils/template-context.d.ts +7 -0
  412. package/dist/utils/template-context.d.ts.map +1 -0
  413. package/dist/webhook-server.d.ts +3 -3
  414. package/dist/webhook-server.d.ts.map +1 -1
  415. package/dist/workflow-executor.d.ts +81 -0
  416. package/dist/workflow-executor.d.ts.map +1 -0
  417. package/dist/workflow-registry.d.ts +79 -0
  418. package/dist/workflow-registry.d.ts.map +1 -0
  419. package/package.json +10 -5
  420. package/dist/output/traces/run-2025-10-22T18-22-56-873Z.ndjson +0 -218
  421. package/dist/sdk/check-execution-engine-2YYKUUSH.mjs +0 -11
  422. package/dist/sdk/check-execution-engine-6QJXYYON.mjs +0 -11
  423. package/dist/sdk/check-execution-engine-PJZ4ZOKG.mjs +0 -11
  424. package/dist/sdk/chunk-33QVZ2D4.mjs +0 -316
  425. package/dist/sdk/chunk-33QVZ2D4.mjs.map +0 -1
  426. package/dist/sdk/chunk-B5QBV2QJ.mjs +0 -752
  427. package/dist/sdk/chunk-B5QBV2QJ.mjs.map +0 -1
  428. package/dist/sdk/chunk-BVFNRCHT.mjs +0 -14129
  429. package/dist/sdk/chunk-BVFNRCHT.mjs.map +0 -1
  430. package/dist/sdk/chunk-KWZW23FG.mjs +0 -14129
  431. package/dist/sdk/chunk-KWZW23FG.mjs.map +0 -1
  432. package/dist/sdk/chunk-O4RP4BRH.mjs +0 -14092
  433. package/dist/sdk/chunk-O4RP4BRH.mjs.map +0 -1
  434. package/dist/sdk/chunk-TUTOLSFV.mjs.map +0 -1
  435. package/dist/sdk/chunk-U5D2LY66.mjs +0 -245
  436. package/dist/sdk/chunk-U5D2LY66.mjs.map +0 -1
  437. package/dist/sdk/chunk-U7X54EMV.mjs +0 -331
  438. package/dist/sdk/chunk-U7X54EMV.mjs.map +0 -1
  439. package/dist/sdk/config-merger-TWUBWFC2.mjs +0 -8
  440. package/dist/sdk/mermaid-telemetry-SN6A2TKW.mjs +0 -61
  441. package/dist/sdk/mermaid-telemetry-SN6A2TKW.mjs.map +0 -1
  442. package/dist/sdk/mermaid-telemetry-YCTIG76M.mjs +0 -61
  443. package/dist/sdk/mermaid-telemetry-YCTIG76M.mjs.map +0 -1
  444. package/dist/traces/run-2025-10-22T18-22-56-873Z.ndjson +0 -218
  445. /package/dist/sdk/{check-execution-engine-2YYKUUSH.mjs.map → config-M4ZNO6NU.mjs.map} +0 -0
  446. /package/dist/sdk/{check-execution-engine-6QJXYYON.mjs.map → config-merger-PX3WIT57.mjs.map} +0 -0
  447. /package/dist/sdk/{check-execution-engine-PJZ4ZOKG.mjs.map → failure-condition-evaluator-NBO5YRXW.mjs.map} +0 -0
  448. /package/dist/sdk/{config-merger-TWUBWFC2.mjs.map → liquid-extensions-C7EG3YKH.mjs.map} +0 -0
  449. /package/dist/sdk/{liquid-extensions-KVL4MKRH.mjs.map → memory-store-GJACZC2A.mjs.map} +0 -0
  450. /package/dist/sdk/{tracer-init-WC75N5NW.mjs.map → metrics-7PP3EJUH.mjs.map} +0 -0
@@ -1,10 +1,14 @@
1
1
  export declare const configSchema: {
2
2
  readonly $schema: "http://json-schema.org/draft-07/schema#";
3
- readonly $ref: "#/definitions/VisorConfig";
3
+ readonly $ref: "#/definitions/VisorConfigSchema";
4
4
  readonly definitions: {
5
- readonly VisorConfig: {
5
+ readonly VisorConfigSchema: {
6
6
  readonly type: "object";
7
+ readonly additionalProperties: false;
7
8
  readonly properties: {
9
+ readonly hooks: {
10
+ readonly $ref: "#/definitions/Record%3Cstring%2Cunknown%3E";
11
+ };
8
12
  readonly version: {
9
13
  readonly type: "string";
10
14
  readonly description: "Configuration version";
@@ -20,6 +24,28 @@ export declare const configSchema: {
20
24
  }];
21
25
  readonly description: "Extends from other configurations - can be file path, HTTP(S) URL, or \"default\"";
22
26
  };
27
+ readonly include: {
28
+ readonly anyOf: readonly [{
29
+ readonly type: "string";
30
+ }, {
31
+ readonly type: "array";
32
+ readonly items: {
33
+ readonly type: "string";
34
+ };
35
+ }];
36
+ readonly description: "Alias for extends - include from other configurations (backward compatibility)";
37
+ };
38
+ readonly tools: {
39
+ readonly $ref: "#/definitions/Record%3Cstring%2CCustomToolDefinition%3E";
40
+ readonly description: "Custom tool definitions that can be used in MCP blocks";
41
+ };
42
+ readonly imports: {
43
+ readonly type: "array";
44
+ readonly items: {
45
+ readonly type: "string";
46
+ };
47
+ readonly description: "Import workflow definitions from external files or URLs";
48
+ };
23
49
  readonly steps: {
24
50
  readonly $ref: "#/definitions/Record%3Cstring%2CCheckConfig%3E";
25
51
  readonly description: "Step configurations (recommended)";
@@ -80,14 +106,132 @@ export declare const configSchema: {
80
106
  readonly $ref: "#/definitions/RoutingDefaults";
81
107
  readonly description: "Optional routing defaults for retry/goto/run policies";
82
108
  };
109
+ readonly limits: {
110
+ readonly $ref: "#/definitions/LimitsConfig";
111
+ readonly description: "Global execution limits";
112
+ };
113
+ readonly frontends: {
114
+ readonly type: "array";
115
+ readonly items: {
116
+ readonly type: "object";
117
+ readonly properties: {
118
+ readonly name: {
119
+ readonly type: "string";
120
+ readonly description: "Frontend name, e.g., 'ndjson-sink', 'github'";
121
+ };
122
+ readonly config: {
123
+ readonly description: "Frontend-specific configuration";
124
+ };
125
+ };
126
+ readonly required: readonly ["name"];
127
+ readonly additionalProperties: false;
128
+ };
129
+ readonly description: "Optional integrations: event-driven frontends (e.g., ndjson-sink, github)";
130
+ };
131
+ };
132
+ readonly required: readonly ["output", "version"];
133
+ readonly patternProperties: {
134
+ readonly '^x-': {};
135
+ };
136
+ };
137
+ readonly 'Record<string,unknown>': {
138
+ readonly type: "object";
139
+ readonly additionalProperties: {};
140
+ };
141
+ readonly 'Record<string,CustomToolDefinition>': {
142
+ readonly type: "object";
143
+ readonly additionalProperties: {
144
+ readonly $ref: "#/definitions/CustomToolDefinition";
145
+ };
146
+ };
147
+ readonly CustomToolDefinition: {
148
+ readonly type: "object";
149
+ readonly properties: {
150
+ readonly name: {
151
+ readonly type: "string";
152
+ readonly description: "Tool name - used to reference the tool in MCP blocks";
153
+ };
154
+ readonly description: {
155
+ readonly type: "string";
156
+ readonly description: "Description of what the tool does";
157
+ };
158
+ readonly inputSchema: {
159
+ readonly type: "object";
160
+ readonly properties: {
161
+ readonly type: {
162
+ readonly type: "string";
163
+ readonly const: "object";
164
+ };
165
+ readonly properties: {
166
+ readonly $ref: "#/definitions/Record%3Cstring%2Cunknown%3E";
167
+ };
168
+ readonly required: {
169
+ readonly type: "array";
170
+ readonly items: {
171
+ readonly type: "string";
172
+ };
173
+ };
174
+ readonly additionalProperties: {
175
+ readonly type: "boolean";
176
+ };
177
+ };
178
+ readonly required: readonly ["type"];
179
+ readonly additionalProperties: false;
180
+ readonly description: "Input schema for the tool (JSON Schema format)";
181
+ readonly patternProperties: {
182
+ readonly '^x-': {};
183
+ };
184
+ };
185
+ readonly exec: {
186
+ readonly type: "string";
187
+ readonly description: "Command to execute - supports Liquid template";
188
+ };
189
+ readonly stdin: {
190
+ readonly type: "string";
191
+ readonly description: "Optional stdin input - supports Liquid template";
192
+ };
193
+ readonly transform: {
194
+ readonly type: "string";
195
+ readonly description: "Transform the raw output - supports Liquid template";
196
+ };
197
+ readonly transform_js: {
198
+ readonly type: "string";
199
+ readonly description: "Transform the output using JavaScript - alternative to transform";
200
+ };
201
+ readonly cwd: {
202
+ readonly type: "string";
203
+ readonly description: "Working directory for command execution";
204
+ };
205
+ readonly env: {
206
+ readonly $ref: "#/definitions/Record%3Cstring%2Cstring%3E";
207
+ readonly description: "Environment variables for the command";
208
+ };
209
+ readonly timeout: {
210
+ readonly type: "number";
211
+ readonly description: "Timeout in milliseconds";
212
+ };
213
+ readonly parseJson: {
214
+ readonly type: "boolean";
215
+ readonly description: "Whether to parse output as JSON automatically";
216
+ };
217
+ readonly outputSchema: {
218
+ readonly $ref: "#/definitions/Record%3Cstring%2Cunknown%3E";
219
+ readonly description: "Expected output schema for validation";
220
+ };
83
221
  };
84
- readonly required: readonly ["version", "output"];
222
+ readonly required: readonly ["name", "exec"];
85
223
  readonly additionalProperties: false;
86
- readonly description: "Main Visor configuration";
224
+ readonly description: "Custom tool definition for use in MCP blocks";
87
225
  readonly patternProperties: {
88
226
  readonly '^x-': {};
89
227
  };
90
228
  };
229
+ readonly 'Record<string,string>': {
230
+ readonly type: "object";
231
+ readonly additionalProperties: {
232
+ readonly type: "string";
233
+ };
234
+ };
91
235
  readonly 'Record<string,CheckConfig>': {
92
236
  readonly type: "object";
93
237
  readonly additionalProperties: {
@@ -145,6 +289,10 @@ export declare const configSchema: {
145
289
  readonly type: "string";
146
290
  readonly description: "Transform using JavaScript expressions (evaluated in secure sandbox) - optional";
147
291
  };
292
+ readonly content: {
293
+ readonly type: "string";
294
+ readonly description: "Script content to execute for script checks";
295
+ };
148
296
  readonly schedule: {
149
297
  readonly type: "string";
150
298
  readonly description: "Cron schedule expression (e.g., \"0 2 * * *\") - optional for any check type";
@@ -183,6 +331,22 @@ export declare const configSchema: {
183
331
  readonly type: "string";
184
332
  readonly description: "AI provider to use for this check - overrides global setting";
185
333
  };
334
+ readonly ai_persona: {
335
+ readonly type: "string";
336
+ readonly description: "Optional persona hint, prepended to the prompt as 'Persona: <value>'";
337
+ };
338
+ readonly ai_prompt_type: {
339
+ readonly type: "string";
340
+ readonly description: "Probe promptType for this check (underscore style)";
341
+ };
342
+ readonly ai_system_prompt: {
343
+ readonly type: "string";
344
+ readonly description: "System prompt for this check (underscore style)";
345
+ };
346
+ readonly ai_custom_prompt: {
347
+ readonly type: "string";
348
+ readonly description: "Legacy customPrompt (underscore style) — deprecated, use ai_system_prompt";
349
+ };
186
350
  readonly ai_mcp_servers: {
187
351
  readonly $ref: "#/definitions/Record%3Cstring%2CMcpServerConfig%3E";
188
352
  readonly description: "MCP servers for this AI check - overrides global setting";
@@ -218,6 +382,10 @@ export declare const configSchema: {
218
382
  }];
219
383
  readonly description: "Schema type for template rendering (e.g., \"code-review\", \"markdown\") or inline JSON schema object - optional";
220
384
  };
385
+ readonly output_schema: {
386
+ readonly $ref: "#/definitions/Record%3Cstring%2Cunknown%3E";
387
+ readonly description: "Optional JSON Schema to validate the produced output. If omitted and `schema` is an object, the engine will treat that object as the output_schema for validation purposes while still using string schemas (e.g., 'code-review') for template selection.";
388
+ };
221
389
  readonly template: {
222
390
  readonly $ref: "#/definitions/CustomTemplateConfig";
223
391
  readonly description: "Custom template configuration - optional";
@@ -250,10 +418,28 @@ export declare const configSchema: {
250
418
  };
251
419
  readonly description: "Tags for categorizing and filtering checks (e.g., [\"local\", \"fast\", \"security\"])";
252
420
  };
421
+ readonly criticality: {
422
+ readonly type: "string";
423
+ readonly enum: readonly ["external", "internal", "policy", "info"];
424
+ readonly description: "Operational criticality of this step. Drives default safety policies (contracts, retries, loop budgets) at load time. Behavior can still be overridden explicitly per step via on_*, fail_if, assume/guarantee, etc.\n\n- 'external': interacts with external systems (side effects). Highest safety.\n- 'internal': modifies CI/config/state but not prod. High safety.\n- 'policy': organizational checks (linting, style, doc). Moderate safety.\n- 'info': informational checks. Lowest safety.";
425
+ };
426
+ readonly continue_on_failure: {
427
+ readonly type: "boolean";
428
+ readonly description: "Allow dependents to run even if this step fails. Defaults to false (dependents are gated when this step fails). Similar to GitHub Actions' continue-on-error.";
429
+ };
253
430
  readonly forEach: {
254
431
  readonly type: "boolean";
255
432
  readonly description: "Process output as array and run dependent checks for each item";
256
433
  };
434
+ readonly fanout: {
435
+ readonly type: "string";
436
+ readonly enum: readonly ["map", "reduce"];
437
+ readonly description: "Control scheduling behavior when this check is triggered via routing (run/goto) from a forEach scope.\n- 'map': schedule once per item (fan-out) using item scopes.\n- 'reduce': schedule a single run at the parent scope (aggregation). If unset, the current default is a single run (reduce) for backward compatibility.";
438
+ };
439
+ readonly reduce: {
440
+ readonly type: "boolean";
441
+ readonly description: "Alias for fanout: 'reduce'";
442
+ };
257
443
  readonly on_fail: {
258
444
  readonly $ref: "#/definitions/OnFailConfig";
259
445
  readonly description: "Failure routing configuration for this check (retry/goto/run)";
@@ -262,6 +448,36 @@ export declare const configSchema: {
262
448
  readonly $ref: "#/definitions/OnSuccessConfig";
263
449
  readonly description: "Success routing configuration for this check (post-actions and optional goto)";
264
450
  };
451
+ readonly on_finish: {
452
+ readonly $ref: "#/definitions/OnFinishConfig";
453
+ readonly description: "Finish routing configuration for forEach checks (runs after ALL iterations complete)";
454
+ };
455
+ readonly assume: {
456
+ readonly anyOf: readonly [{
457
+ readonly type: "string";
458
+ }, {
459
+ readonly type: "array";
460
+ readonly items: {
461
+ readonly type: "string";
462
+ };
463
+ }];
464
+ readonly description: "Preconditions that must hold before executing the check. If any expression evaluates to false, the check is skipped (skipReason='assume').";
465
+ };
466
+ readonly guarantee: {
467
+ readonly anyOf: readonly [{
468
+ readonly type: "string";
469
+ }, {
470
+ readonly type: "array";
471
+ readonly items: {
472
+ readonly type: "string";
473
+ };
474
+ }];
475
+ readonly description: "Postconditions that should hold after executing the check. Expressions are evaluated against the produced result/output; violations are recorded as error issues with ruleId \"contract/guarantee_failed\".";
476
+ };
477
+ readonly max_runs: {
478
+ readonly type: "number";
479
+ readonly description: "Hard cap on how many times this check may execute within a single engine run. Overrides global limits.max_runs_per_check. Set to 0 or negative to disable for this step.";
480
+ };
265
481
  readonly message: {
266
482
  readonly type: "string";
267
483
  readonly description: "Message template for log checks";
@@ -283,10 +499,15 @@ export declare const configSchema: {
283
499
  readonly type: "boolean";
284
500
  readonly description: "Include execution metadata in log output";
285
501
  };
502
+ readonly output_format: {
503
+ readonly type: "string";
504
+ readonly enum: readonly ["json", "text"];
505
+ readonly description: "Output parsing hint for command provider (optional) When set to 'json', command stdout is expected to be JSON. When 'text', treat as plain text. Note: command provider attempts JSON parsing heuristically; this flag mainly suppresses schema warnings and may be used by providers to alter parsing behavior in the future.";
506
+ };
286
507
  readonly operation: {
287
508
  readonly type: "string";
288
- readonly enum: readonly ["get", "set", "append", "increment", "delete", "clear", "list", "exec_js"];
289
- readonly description: "Memory operation to perform";
509
+ readonly enum: readonly ["get", "set", "append", "increment", "delete", "clear", "list"];
510
+ readonly description: "Memory operation to perform. Use `type: 'script'` for custom JavaScript.";
290
511
  };
291
512
  readonly key: {
292
513
  readonly type: "string";
@@ -299,10 +520,6 @@ export declare const configSchema: {
299
520
  readonly type: "string";
300
521
  readonly description: "JavaScript expression to compute value dynamically";
301
522
  };
302
- readonly memory_js: {
303
- readonly type: "string";
304
- readonly description: "JavaScript code for exec_js operation with full memory access";
305
- };
306
523
  readonly namespace: {
307
524
  readonly type: "string";
308
525
  readonly description: "Override namespace for this check";
@@ -339,7 +556,7 @@ export declare const configSchema: {
339
556
  readonly type: "string";
340
557
  readonly description: "Session ID for HTTP transport (optional, server may generate one)";
341
558
  };
342
- readonly args: {
559
+ readonly command_args: {
343
560
  readonly type: "array";
344
561
  readonly items: {
345
562
  readonly type: "string";
@@ -350,6 +567,38 @@ export declare const configSchema: {
350
567
  readonly type: "string";
351
568
  readonly description: "Working directory (for stdio transport in MCP checks)";
352
569
  };
570
+ readonly placeholder: {
571
+ readonly type: "string";
572
+ readonly description: "Placeholder text to show in input field";
573
+ };
574
+ readonly allow_empty: {
575
+ readonly type: "boolean";
576
+ readonly description: "Allow empty input (default: false)";
577
+ };
578
+ readonly multiline: {
579
+ readonly type: "boolean";
580
+ readonly description: "Support multiline input (default: false)";
581
+ };
582
+ readonly default: {
583
+ readonly type: "string";
584
+ readonly description: "Default value if timeout occurs or empty input when allow_empty is true";
585
+ };
586
+ readonly workflow: {
587
+ readonly type: "string";
588
+ readonly description: "Workflow ID or path to workflow file";
589
+ };
590
+ readonly args: {
591
+ readonly $ref: "#/definitions/Record%3Cstring%2Cunknown%3E";
592
+ readonly description: "Arguments/inputs for the workflow";
593
+ };
594
+ readonly overrides: {
595
+ readonly $ref: "#/definitions/Record%3Cstring%2CPartial%3Cinterface-src_types_config.ts-10692-20779-src_types_config.ts-0-34222%3E%3E";
596
+ readonly description: "Override specific step configurations in the workflow";
597
+ };
598
+ readonly output_mapping: {
599
+ readonly $ref: "#/definitions/Record%3Cstring%2Cstring%3E";
600
+ readonly description: "Map workflow outputs to check outputs";
601
+ };
353
602
  };
354
603
  readonly additionalProperties: false;
355
604
  readonly description: "Configuration for a single check";
@@ -359,15 +608,9 @@ export declare const configSchema: {
359
608
  };
360
609
  readonly ConfigCheckType: {
361
610
  readonly type: "string";
362
- readonly enum: readonly ["ai", "command", "http", "http_input", "http_client", "noop", "log", "memory", "github", "claude-code", "mcp", "human-input"];
611
+ readonly enum: readonly ["ai", "command", "script", "http", "http_input", "http_client", "noop", "log", "memory", "github", "claude-code", "mcp", "human-input", "workflow"];
363
612
  readonly description: "Valid check types in configuration";
364
613
  };
365
- readonly 'Record<string,string>': {
366
- readonly type: "object";
367
- readonly additionalProperties: {
368
- readonly type: "string";
369
- };
370
- };
371
614
  readonly EventTrigger: {
372
615
  readonly type: "string";
373
616
  readonly enum: readonly ["pr_opened", "pr_updated", "pr_closed", "issue_opened", "issue_comment", "manual", "schedule", "webhook_received"];
@@ -397,10 +640,61 @@ export declare const configSchema: {
397
640
  readonly type: "boolean";
398
641
  readonly description: "Enable debug mode";
399
642
  };
643
+ readonly prompt_type: {
644
+ readonly type: "string";
645
+ readonly description: "Probe promptType to use (e.g., engineer, code-review, architect)";
646
+ };
647
+ readonly system_prompt: {
648
+ readonly type: "string";
649
+ readonly description: "System prompt (baseline preamble). Replaces legacy custom_prompt.";
650
+ };
651
+ readonly custom_prompt: {
652
+ readonly type: "string";
653
+ readonly description: "Probe customPrompt (baseline/system prompt) — deprecated, use system_prompt";
654
+ };
655
+ readonly skip_code_context: {
656
+ readonly type: "boolean";
657
+ readonly description: "Skip adding code context (diffs, files, PR info) to the prompt";
658
+ };
400
659
  readonly mcpServers: {
401
660
  readonly $ref: "#/definitions/Record%3Cstring%2CMcpServerConfig%3E";
402
661
  readonly description: "MCP servers configuration";
403
662
  };
663
+ readonly enableDelegate: {
664
+ readonly type: "boolean";
665
+ readonly description: "Enable the delegate tool for task distribution to subagents";
666
+ };
667
+ readonly retry: {
668
+ readonly $ref: "#/definitions/AIRetryConfig";
669
+ readonly description: "Retry configuration for this provider";
670
+ };
671
+ readonly fallback: {
672
+ readonly $ref: "#/definitions/AIFallbackConfig";
673
+ readonly description: "Fallback configuration for provider failures";
674
+ };
675
+ readonly allowEdit: {
676
+ readonly type: "boolean";
677
+ readonly description: "Enable Edit and Create tools for file modification (disabled by default for security)";
678
+ };
679
+ readonly allowedTools: {
680
+ readonly type: "array";
681
+ readonly items: {
682
+ readonly type: "string";
683
+ };
684
+ readonly description: "Filter allowed tools - supports whitelist, exclusion (!prefix), or raw AI mode (empty array)";
685
+ };
686
+ readonly disableTools: {
687
+ readonly type: "boolean";
688
+ readonly description: "Disable all tools for raw AI mode (alternative to allowedTools: [])";
689
+ };
690
+ readonly allowBash: {
691
+ readonly type: "boolean";
692
+ readonly description: "Enable bash command execution (shorthand for bashConfig.enabled)";
693
+ };
694
+ readonly bashConfig: {
695
+ readonly $ref: "#/definitions/BashConfig";
696
+ readonly description: "Advanced bash command execution configuration";
697
+ };
404
698
  };
405
699
  readonly additionalProperties: false;
406
700
  readonly description: "AI provider configuration";
@@ -440,6 +734,149 @@ export declare const configSchema: {
440
734
  readonly '^x-': {};
441
735
  };
442
736
  };
737
+ readonly AIRetryConfig: {
738
+ readonly type: "object";
739
+ readonly properties: {
740
+ readonly maxRetries: {
741
+ readonly type: "number";
742
+ readonly description: "Maximum retry attempts (0-50)";
743
+ };
744
+ readonly initialDelay: {
745
+ readonly type: "number";
746
+ readonly description: "Initial delay in milliseconds (0-60000)";
747
+ };
748
+ readonly maxDelay: {
749
+ readonly type: "number";
750
+ readonly description: "Maximum delay cap in milliseconds (0-300000)";
751
+ };
752
+ readonly backoffFactor: {
753
+ readonly type: "number";
754
+ readonly description: "Exponential backoff multiplier (1-10)";
755
+ };
756
+ readonly retryableErrors: {
757
+ readonly type: "array";
758
+ readonly items: {
759
+ readonly type: "string";
760
+ };
761
+ readonly description: "Custom error patterns to retry on";
762
+ };
763
+ };
764
+ readonly additionalProperties: false;
765
+ readonly description: "Retry configuration for AI provider calls";
766
+ readonly patternProperties: {
767
+ readonly '^x-': {};
768
+ };
769
+ };
770
+ readonly AIFallbackConfig: {
771
+ readonly type: "object";
772
+ readonly properties: {
773
+ readonly strategy: {
774
+ readonly type: "string";
775
+ readonly enum: readonly ["same-model", "same-provider", "any", "custom"];
776
+ readonly description: "Fallback strategy: 'same-model', 'same-provider', 'any', or 'custom'";
777
+ };
778
+ readonly providers: {
779
+ readonly type: "array";
780
+ readonly items: {
781
+ readonly $ref: "#/definitions/AIFallbackProviderConfig";
782
+ };
783
+ readonly description: "Array of fallback provider configurations";
784
+ };
785
+ readonly maxTotalAttempts: {
786
+ readonly type: "number";
787
+ readonly description: "Maximum total attempts across all providers";
788
+ };
789
+ readonly auto: {
790
+ readonly type: "boolean";
791
+ readonly description: "Enable automatic fallback using available environment variables";
792
+ };
793
+ };
794
+ readonly additionalProperties: false;
795
+ readonly description: "Fallback configuration for AI providers";
796
+ readonly patternProperties: {
797
+ readonly '^x-': {};
798
+ };
799
+ };
800
+ readonly AIFallbackProviderConfig: {
801
+ readonly type: "object";
802
+ readonly properties: {
803
+ readonly provider: {
804
+ readonly type: "string";
805
+ readonly enum: readonly ["google", "anthropic", "openai", "bedrock"];
806
+ readonly description: "AI provider to use";
807
+ };
808
+ readonly model: {
809
+ readonly type: "string";
810
+ readonly description: "Model name to use";
811
+ };
812
+ readonly apiKey: {
813
+ readonly type: "string";
814
+ readonly description: "API key for this provider";
815
+ };
816
+ readonly maxRetries: {
817
+ readonly type: "number";
818
+ readonly description: "Per-provider retry override";
819
+ };
820
+ readonly region: {
821
+ readonly type: "string";
822
+ readonly description: "AWS region (for Bedrock)";
823
+ };
824
+ readonly accessKeyId: {
825
+ readonly type: "string";
826
+ readonly description: "AWS access key ID (for Bedrock)";
827
+ };
828
+ readonly secretAccessKey: {
829
+ readonly type: "string";
830
+ readonly description: "AWS secret access key (for Bedrock)";
831
+ };
832
+ };
833
+ readonly required: readonly ["provider", "model"];
834
+ readonly additionalProperties: false;
835
+ readonly description: "Fallback provider configuration";
836
+ readonly patternProperties: {
837
+ readonly '^x-': {};
838
+ };
839
+ };
840
+ readonly BashConfig: {
841
+ readonly type: "object";
842
+ readonly properties: {
843
+ readonly allow: {
844
+ readonly type: "array";
845
+ readonly items: {
846
+ readonly type: "string";
847
+ };
848
+ readonly description: "Array of permitted command patterns (e.g., ['ls', 'git status'])";
849
+ };
850
+ readonly deny: {
851
+ readonly type: "array";
852
+ readonly items: {
853
+ readonly type: "string";
854
+ };
855
+ readonly description: "Array of blocked command patterns (e.g., ['rm -rf', 'sudo'])";
856
+ };
857
+ readonly noDefaultAllow: {
858
+ readonly type: "boolean";
859
+ readonly description: "Disable default safe command list (use with caution)";
860
+ };
861
+ readonly noDefaultDeny: {
862
+ readonly type: "boolean";
863
+ readonly description: "Disable default dangerous command blocklist (use with extreme caution)";
864
+ };
865
+ readonly timeout: {
866
+ readonly type: "number";
867
+ readonly description: "Execution timeout in milliseconds";
868
+ };
869
+ readonly workingDirectory: {
870
+ readonly type: "string";
871
+ readonly description: "Default working directory for command execution";
872
+ };
873
+ };
874
+ readonly additionalProperties: false;
875
+ readonly description: "Bash command execution configuration for ProbeAgent Note: Use 'allowBash: true' in AIProviderConfig to enable bash execution";
876
+ readonly patternProperties: {
877
+ readonly '^x-': {};
878
+ };
879
+ };
443
880
  readonly ClaudeCodeConfig: {
444
881
  readonly type: "object";
445
882
  readonly properties: {
@@ -466,6 +903,10 @@ export declare const configSchema: {
466
903
  readonly type: "string";
467
904
  readonly description: "Path to subagent script";
468
905
  };
906
+ readonly enableDelegate: {
907
+ readonly type: "boolean";
908
+ readonly description: "Enable the delegate tool for task distribution to subagents";
909
+ };
469
910
  readonly hooks: {
470
911
  readonly type: "object";
471
912
  readonly properties: {
@@ -502,10 +943,6 @@ export declare const configSchema: {
502
943
  };
503
944
  readonly description: "Environment variable reference configuration";
504
945
  };
505
- readonly 'Record<string,unknown>': {
506
- readonly type: "object";
507
- readonly additionalProperties: {};
508
- };
509
946
  readonly CustomTemplateConfig: {
510
947
  readonly type: "object";
511
948
  readonly properties: {
@@ -605,6 +1042,13 @@ export declare const configSchema: {
605
1042
  readonly type: "string";
606
1043
  readonly description: "Dynamic remediation list: JS expression returning string[]";
607
1044
  };
1045
+ readonly transitions: {
1046
+ readonly type: "array";
1047
+ readonly items: {
1048
+ readonly $ref: "#/definitions/TransitionRule";
1049
+ };
1050
+ readonly description: "Declarative transitions. Evaluated in order; first matching rule wins. If a rule's `to` is null, no goto occurs. When omitted or none match, the engine falls back to goto_js/goto for backward compatibility.";
1051
+ };
608
1052
  };
609
1053
  readonly additionalProperties: false;
610
1054
  readonly description: "Failure routing configuration per check";
@@ -649,6 +1093,29 @@ export declare const configSchema: {
649
1093
  readonly '^x-': {};
650
1094
  };
651
1095
  };
1096
+ readonly TransitionRule: {
1097
+ readonly type: "object";
1098
+ readonly properties: {
1099
+ readonly when: {
1100
+ readonly type: "string";
1101
+ readonly description: "JavaScript expression evaluated in the same sandbox as goto_js; truthy enables the rule.";
1102
+ };
1103
+ readonly to: {
1104
+ readonly type: readonly ["string", "null"];
1105
+ readonly description: "Target step ID, or null to explicitly prevent goto.";
1106
+ };
1107
+ readonly goto_event: {
1108
+ readonly $ref: "#/definitions/EventTrigger";
1109
+ readonly description: "Optional event override when performing goto.";
1110
+ };
1111
+ };
1112
+ readonly required: readonly ["when"];
1113
+ readonly additionalProperties: false;
1114
+ readonly description: "Declarative transition rule for on_* blocks.";
1115
+ readonly patternProperties: {
1116
+ readonly '^x-': {};
1117
+ };
1118
+ };
652
1119
  readonly OnSuccessConfig: {
653
1120
  readonly type: "object";
654
1121
  readonly properties: {
@@ -675,6 +1142,13 @@ export declare const configSchema: {
675
1142
  readonly type: "string";
676
1143
  readonly description: "Dynamic post-success steps: JS expression returning string[]";
677
1144
  };
1145
+ readonly transitions: {
1146
+ readonly type: "array";
1147
+ readonly items: {
1148
+ readonly $ref: "#/definitions/TransitionRule";
1149
+ };
1150
+ readonly description: "Declarative transitions (see OnFailConfig.transitions).";
1151
+ };
678
1152
  };
679
1153
  readonly additionalProperties: false;
680
1154
  readonly description: "Success routing configuration per check";
@@ -682,6 +1156,56 @@ export declare const configSchema: {
682
1156
  readonly '^x-': {};
683
1157
  };
684
1158
  };
1159
+ readonly OnFinishConfig: {
1160
+ readonly type: "object";
1161
+ readonly properties: {
1162
+ readonly run: {
1163
+ readonly type: "array";
1164
+ readonly items: {
1165
+ readonly type: "string";
1166
+ };
1167
+ readonly description: "Post-finish steps to run";
1168
+ };
1169
+ readonly goto: {
1170
+ readonly type: "string";
1171
+ readonly description: "Optional jump back to ancestor step (by id)";
1172
+ };
1173
+ readonly goto_event: {
1174
+ readonly $ref: "#/definitions/EventTrigger";
1175
+ readonly description: "Simulate a different event when performing goto (e.g., 'pr_updated')";
1176
+ };
1177
+ readonly goto_js: {
1178
+ readonly type: "string";
1179
+ readonly description: "Dynamic goto: JS expression returning step id or null";
1180
+ };
1181
+ readonly run_js: {
1182
+ readonly type: "string";
1183
+ readonly description: "Dynamic post-finish steps: JS expression returning string[]";
1184
+ };
1185
+ readonly transitions: {
1186
+ readonly type: "array";
1187
+ readonly items: {
1188
+ readonly $ref: "#/definitions/TransitionRule";
1189
+ };
1190
+ readonly description: "Declarative transitions (see OnFailConfig.transitions).";
1191
+ };
1192
+ };
1193
+ readonly additionalProperties: false;
1194
+ readonly description: "Finish routing configuration for forEach checks Runs once after ALL iterations of forEach and ALL dependent checks complete";
1195
+ readonly patternProperties: {
1196
+ readonly '^x-': {};
1197
+ };
1198
+ };
1199
+ readonly 'Record<string,Partial<interface-src_types_config.ts-10692-20779-src_types_config.ts-0-34222>>': {
1200
+ readonly type: "object";
1201
+ readonly additionalProperties: {
1202
+ readonly $ref: "#/definitions/Partial%3Cinterface-src_types_config.ts-10692-20779-src_types_config.ts-0-34222%3E";
1203
+ };
1204
+ };
1205
+ readonly 'Partial<interface-src_types_config.ts-10692-20779-src_types_config.ts-0-34222>': {
1206
+ readonly type: "object";
1207
+ readonly additionalProperties: false;
1208
+ };
685
1209
  readonly OutputConfig: {
686
1210
  readonly type: "object";
687
1211
  readonly properties: {
@@ -1026,6 +1550,24 @@ export declare const configSchema: {
1026
1550
  readonly '^x-': {};
1027
1551
  };
1028
1552
  };
1553
+ readonly LimitsConfig: {
1554
+ readonly type: "object";
1555
+ readonly properties: {
1556
+ readonly max_runs_per_check: {
1557
+ readonly type: "number";
1558
+ readonly description: "Maximum number of executions per check within a single engine run. Applies to each distinct scope independently for forEach item executions. Set to 0 or negative to disable. Default: 50.";
1559
+ };
1560
+ readonly max_workflow_depth: {
1561
+ readonly type: "number";
1562
+ readonly description: "Maximum nesting depth for workflows executed by the state machine engine. Nested workflows are invoked by the workflow provider; this limit prevents accidental infinite recursion. Default: 3.";
1563
+ };
1564
+ };
1565
+ readonly additionalProperties: false;
1566
+ readonly description: "Global engine limits";
1567
+ readonly patternProperties: {
1568
+ readonly '^x-': {};
1569
+ };
1570
+ };
1029
1571
  };
1030
1572
  };
1031
1573
  export default configSchema;