@probelabs/visor 0.1.126 → 0.1.128

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 (178) hide show
  1. package/dist/ai-review-service.d.ts +2 -0
  2. package/dist/ai-review-service.d.ts.map +1 -1
  3. package/dist/docs/ai-configuration.md +23 -0
  4. package/dist/docs/commands.md +1 -1
  5. package/dist/docs/timeouts.md +1 -1
  6. package/dist/docs/workflows.md +30 -1
  7. package/dist/failure-condition-evaluator.d.ts.map +1 -1
  8. package/dist/generated/config-schema.d.ts +63 -9
  9. package/dist/generated/config-schema.d.ts.map +1 -1
  10. package/dist/generated/config-schema.json +67 -11
  11. package/dist/index.js +11476 -6945
  12. package/dist/liquid-extensions.d.ts.map +1 -1
  13. package/dist/output/traces/{run-2026-01-31T16-37-22-321Z.ndjson → run-2026-02-05T13-36-03-279Z.ndjson} +84 -84
  14. package/dist/output/traces/{run-2026-01-31T16-38-06-031Z.ndjson → run-2026-02-05T13-36-48-767Z.ndjson} +839 -1059
  15. package/dist/output/traces/run-2026-02-05T13-36-58-960Z.ndjson +17 -0
  16. package/dist/output/traces/run-2026-02-05T13-37-00-184Z.ndjson +205 -0
  17. package/dist/providers/ai-check-provider.d.ts +16 -0
  18. package/dist/providers/ai-check-provider.d.ts.map +1 -1
  19. package/dist/providers/command-check-provider.d.ts.map +1 -1
  20. package/dist/providers/custom-tool-executor.d.ts.map +1 -1
  21. package/dist/providers/http-client-provider.d.ts.map +1 -1
  22. package/dist/providers/mcp-check-provider.d.ts +3 -0
  23. package/dist/providers/mcp-check-provider.d.ts.map +1 -1
  24. package/dist/providers/mcp-custom-sse-server.d.ts +22 -2
  25. package/dist/providers/mcp-custom-sse-server.d.ts.map +1 -1
  26. package/dist/providers/memory-check-provider.d.ts.map +1 -1
  27. package/dist/providers/workflow-check-provider.d.ts.map +1 -1
  28. package/dist/providers/workflow-tool-executor.d.ts +2 -0
  29. package/dist/providers/workflow-tool-executor.d.ts.map +1 -1
  30. package/dist/sdk/check-provider-registry-OB5FEBJU.mjs +28 -0
  31. package/dist/sdk/check-provider-registry-UC2LPSB4.mjs +28 -0
  32. package/dist/sdk/{chunk-CNX7V5JK.mjs → chunk-25IC7KXZ.mjs} +2 -2
  33. package/dist/sdk/{chunk-YSN4G6CI.mjs → chunk-4HVFUUNB.mjs} +2 -2
  34. package/dist/sdk/{chunk-3OMWVM6J.mjs → chunk-B7BVQM5K.mjs} +2 -2
  35. package/dist/sdk/{chunk-5LI6T4O3.mjs → chunk-D55IQCUP.mjs} +71 -17
  36. package/dist/sdk/chunk-D55IQCUP.mjs.map +1 -0
  37. package/dist/sdk/{chunk-BOVFH3LI.mjs → chunk-EJN6Q4D3.mjs} +16 -7
  38. package/dist/sdk/chunk-EJN6Q4D3.mjs.map +1 -0
  39. package/dist/sdk/{chunk-WMJKH4XE.mjs → chunk-J7LXIPZS.mjs} +16 -1
  40. package/dist/sdk/{chunk-EXFGO4FX.mjs → chunk-KFKHU6CM.mjs} +2 -2
  41. package/dist/sdk/{chunk-7GUAFV6L.mjs → chunk-LMJSJQPP.mjs} +18 -13
  42. package/dist/sdk/chunk-LMJSJQPP.mjs.map +1 -0
  43. package/dist/sdk/{chunk-VW2GBXQT.mjs → chunk-N7IVCCGH.mjs} +3 -3
  44. package/dist/sdk/{chunk-O5EZDNYL.mjs → chunk-NCWIZVOT.mjs} +2 -2
  45. package/dist/sdk/{chunk-3NMLT3YS.mjs → chunk-P6YFV6N2.mjs} +3 -3
  46. package/dist/sdk/{chunk-HQL734ZI.mjs → chunk-QRXSDDYN.mjs} +3 -3
  47. package/dist/sdk/{chunk-J2QWVDXK.mjs → chunk-SIMCSNXO.mjs} +3 -3
  48. package/dist/sdk/{chunk-IHZOSIF4.mjs → chunk-UEWXVJ6C.mjs} +3 -3
  49. package/dist/sdk/{chunk-SWEEZ5D5.mjs → chunk-UKG5UP5U.mjs} +17 -83
  50. package/dist/sdk/chunk-UKG5UP5U.mjs.map +1 -0
  51. package/dist/sdk/chunk-UPKHRMUA.mjs +35108 -0
  52. package/dist/sdk/chunk-UPKHRMUA.mjs.map +1 -0
  53. package/dist/sdk/chunk-V7RIRPO7.mjs +35108 -0
  54. package/dist/sdk/chunk-V7RIRPO7.mjs.map +1 -0
  55. package/dist/sdk/{chunk-2CPMMNIX.mjs → chunk-VEROLBCD.mjs} +21 -65
  56. package/dist/sdk/{chunk-2CPMMNIX.mjs.map → chunk-VEROLBCD.mjs.map} +1 -1
  57. package/dist/sdk/{chunk-ZYAUYXSW.mjs → chunk-WVNQ56DO.mjs} +3 -3
  58. package/dist/sdk/{chunk-NAW3DB3I.mjs → chunk-XXAEN5KU.mjs} +3 -3
  59. package/dist/sdk/{chunk-S2RUE2RG.mjs → chunk-YCUWMIV5.mjs} +3 -3
  60. package/dist/sdk/command-executor-C4DGIQ4Q.mjs +14 -0
  61. package/dist/sdk/config-GYTBTHRZ.mjs +16 -0
  62. package/dist/sdk/config-merger-RKCZJQ44.mjs +10 -0
  63. package/dist/sdk/{event-bus-5BEVPQ6T.mjs → event-bus-XV2TOQFU.mjs} +2 -2
  64. package/dist/sdk/failure-condition-evaluator-KRFY4OLQ.mjs +17 -0
  65. package/dist/sdk/{git-repository-analyzer-HJC4MYW4.mjs → git-repository-analyzer-VO7OZMTM.mjs} +2 -2
  66. package/dist/sdk/{github-frontend-BZ4N3BFZ.mjs → github-frontend-UC326PMS.mjs} +11 -11
  67. package/dist/sdk/{host-NYWXLIFC.mjs → host-H7MKML2H.mjs} +5 -5
  68. package/dist/sdk/{liquid-extensions-DFDEBMUI.mjs → liquid-extensions-WJAC7QKG.mjs} +8 -7
  69. package/dist/sdk/memory-store-LPOZWQ5E.mjs +12 -0
  70. package/dist/sdk/{metrics-7PP3EJUH.mjs → metrics-CSBGJEWW.mjs} +4 -4
  71. package/dist/sdk/{ndjson-sink-B4V4NTAQ.mjs → ndjson-sink-JQ2INHTS.mjs} +2 -2
  72. package/dist/sdk/{prompt-state-EZYOUG75.mjs → prompt-state-X2WDGSEM.mjs} +5 -5
  73. package/dist/sdk/{renderer-schema-CKFB5NDB.mjs → renderer-schema-FRCLA6KH.mjs} +4 -4
  74. package/dist/sdk/routing-745DOEKR.mjs +24 -0
  75. package/dist/sdk/sdk.d.mts +65 -3
  76. package/dist/sdk/sdk.d.ts +65 -3
  77. package/dist/sdk/sdk.js +17945 -540
  78. package/dist/sdk/sdk.js.map +1 -1
  79. package/dist/sdk/sdk.mjs +107 -34
  80. package/dist/sdk/sdk.mjs.map +1 -1
  81. package/dist/sdk/session-registry-6PV6SGEJ.mjs +10 -0
  82. package/dist/sdk/{slack-frontend-JUT3TYVC.mjs → slack-frontend-UPYUYCUQ.mjs} +5 -5
  83. package/dist/sdk/{trace-helpers-VP6QYVBX.mjs → trace-helpers-LUCR52GY.mjs} +4 -4
  84. package/dist/sdk/tracer-init-XPRWKMZT.mjs +10 -0
  85. package/dist/sdk/workflow-check-provider-AA3VNYUY.mjs +28 -0
  86. package/dist/sdk/workflow-check-provider-LQNQZUN5.mjs +28 -0
  87. package/dist/sdk/workflow-registry-W7IEH7GK.mjs +12 -0
  88. package/dist/state-machine/states/routing.d.ts.map +1 -1
  89. package/dist/test-runner/index.d.ts +5 -0
  90. package/dist/test-runner/index.d.ts.map +1 -1
  91. package/dist/test-runner/validator.d.ts.map +1 -1
  92. package/dist/traces/{run-2026-01-31T16-37-22-321Z.ndjson → run-2026-02-05T13-36-03-279Z.ndjson} +84 -84
  93. package/dist/traces/{run-2026-01-31T16-38-06-031Z.ndjson → run-2026-02-05T13-36-48-767Z.ndjson} +839 -1059
  94. package/dist/traces/run-2026-02-05T13-36-58-960Z.ndjson +17 -0
  95. package/dist/traces/run-2026-02-05T13-37-00-184Z.ndjson +205 -0
  96. package/dist/types/config.d.ts +65 -3
  97. package/dist/types/config.d.ts.map +1 -1
  98. package/dist/utils/sandbox.d.ts.map +1 -1
  99. package/dist/utils/workspace-manager.d.ts +22 -2
  100. package/dist/utils/workspace-manager.d.ts.map +1 -1
  101. package/dist/utils/worktree-manager.d.ts +2 -1
  102. package/dist/utils/worktree-manager.d.ts.map +1 -1
  103. package/package.json +6 -7
  104. package/dist/sdk/check-provider-registry-3KI5RKXT.mjs +0 -28
  105. package/dist/sdk/check-provider-registry-IYILYY35.mjs +0 -28
  106. package/dist/sdk/chunk-5LI6T4O3.mjs.map +0 -1
  107. package/dist/sdk/chunk-7GUAFV6L.mjs.map +0 -1
  108. package/dist/sdk/chunk-A4PGHURG.mjs +0 -17667
  109. package/dist/sdk/chunk-A4PGHURG.mjs.map +0 -1
  110. package/dist/sdk/chunk-BOVFH3LI.mjs.map +0 -1
  111. package/dist/sdk/chunk-J6EVEXC2.mjs +0 -558
  112. package/dist/sdk/chunk-J6EVEXC2.mjs.map +0 -1
  113. package/dist/sdk/chunk-PJ7K5UFC.mjs +0 -17732
  114. package/dist/sdk/chunk-PJ7K5UFC.mjs.map +0 -1
  115. package/dist/sdk/chunk-PXFIALUH.mjs +0 -1458
  116. package/dist/sdk/chunk-PXFIALUH.mjs.map +0 -1
  117. package/dist/sdk/chunk-RTKJXNZS.mjs +0 -3591
  118. package/dist/sdk/chunk-RTKJXNZS.mjs.map +0 -1
  119. package/dist/sdk/chunk-SWEEZ5D5.mjs.map +0 -1
  120. package/dist/sdk/command-executor-Q7MHJKZJ.mjs +0 -14
  121. package/dist/sdk/config-5AUYQFHE.mjs +0 -16
  122. package/dist/sdk/config-6CUVEH7H.mjs +0 -16
  123. package/dist/sdk/config-merger-PX3WIT57.mjs +0 -10
  124. package/dist/sdk/failure-condition-evaluator-HB35XRLZ.mjs +0 -17
  125. package/dist/sdk/host-4MT3EW2I.mjs +0 -52
  126. package/dist/sdk/host-NYWXLIFC.mjs.map +0 -1
  127. package/dist/sdk/memory-store-RW5N2NGJ.mjs +0 -12
  128. package/dist/sdk/routing-6R42GXUO.mjs +0 -24
  129. package/dist/sdk/routing-7FXPULTO.mjs +0 -24
  130. package/dist/sdk/session-registry-4E6YRQ77.mjs +0 -10
  131. package/dist/sdk/slack-frontend-J442FJWZ.mjs +0 -793
  132. package/dist/sdk/slack-frontend-J442FJWZ.mjs.map +0 -1
  133. package/dist/sdk/tracer-init-GSLPPLCD.mjs +0 -10
  134. package/dist/sdk/workflow-check-provider-H3CUOLUD.mjs +0 -28
  135. package/dist/sdk/workflow-check-provider-YUNNF4KC.mjs +0 -28
  136. package/dist/sdk/workflow-check-provider-YUNNF4KC.mjs.map +0 -1
  137. package/dist/sdk/workflow-registry-6LZKCWHP.mjs +0 -12
  138. package/dist/sdk/workflow-registry-6LZKCWHP.mjs.map +0 -1
  139. package/dist/sdk/workflow-registry-KFWSDSLM.mjs +0 -12
  140. package/dist/sdk/workflow-registry-KFWSDSLM.mjs.map +0 -1
  141. /package/dist/sdk/{check-provider-registry-3KI5RKXT.mjs.map → check-provider-registry-OB5FEBJU.mjs.map} +0 -0
  142. /package/dist/sdk/{check-provider-registry-IYILYY35.mjs.map → check-provider-registry-UC2LPSB4.mjs.map} +0 -0
  143. /package/dist/sdk/{chunk-CNX7V5JK.mjs.map → chunk-25IC7KXZ.mjs.map} +0 -0
  144. /package/dist/sdk/{chunk-YSN4G6CI.mjs.map → chunk-4HVFUUNB.mjs.map} +0 -0
  145. /package/dist/sdk/{chunk-3OMWVM6J.mjs.map → chunk-B7BVQM5K.mjs.map} +0 -0
  146. /package/dist/sdk/{chunk-WMJKH4XE.mjs.map → chunk-J7LXIPZS.mjs.map} +0 -0
  147. /package/dist/sdk/{chunk-EXFGO4FX.mjs.map → chunk-KFKHU6CM.mjs.map} +0 -0
  148. /package/dist/sdk/{chunk-VW2GBXQT.mjs.map → chunk-N7IVCCGH.mjs.map} +0 -0
  149. /package/dist/sdk/{chunk-O5EZDNYL.mjs.map → chunk-NCWIZVOT.mjs.map} +0 -0
  150. /package/dist/sdk/{chunk-3NMLT3YS.mjs.map → chunk-P6YFV6N2.mjs.map} +0 -0
  151. /package/dist/sdk/{chunk-HQL734ZI.mjs.map → chunk-QRXSDDYN.mjs.map} +0 -0
  152. /package/dist/sdk/{chunk-J2QWVDXK.mjs.map → chunk-SIMCSNXO.mjs.map} +0 -0
  153. /package/dist/sdk/{chunk-IHZOSIF4.mjs.map → chunk-UEWXVJ6C.mjs.map} +0 -0
  154. /package/dist/sdk/{chunk-ZYAUYXSW.mjs.map → chunk-WVNQ56DO.mjs.map} +0 -0
  155. /package/dist/sdk/{chunk-NAW3DB3I.mjs.map → chunk-XXAEN5KU.mjs.map} +0 -0
  156. /package/dist/sdk/{chunk-S2RUE2RG.mjs.map → chunk-YCUWMIV5.mjs.map} +0 -0
  157. /package/dist/sdk/{command-executor-Q7MHJKZJ.mjs.map → command-executor-C4DGIQ4Q.mjs.map} +0 -0
  158. /package/dist/sdk/{config-5AUYQFHE.mjs.map → config-GYTBTHRZ.mjs.map} +0 -0
  159. /package/dist/sdk/{config-6CUVEH7H.mjs.map → config-merger-RKCZJQ44.mjs.map} +0 -0
  160. /package/dist/sdk/{event-bus-5BEVPQ6T.mjs.map → event-bus-XV2TOQFU.mjs.map} +0 -0
  161. /package/dist/sdk/{config-merger-PX3WIT57.mjs.map → failure-condition-evaluator-KRFY4OLQ.mjs.map} +0 -0
  162. /package/dist/sdk/{git-repository-analyzer-HJC4MYW4.mjs.map → git-repository-analyzer-VO7OZMTM.mjs.map} +0 -0
  163. /package/dist/sdk/{github-frontend-BZ4N3BFZ.mjs.map → github-frontend-UC326PMS.mjs.map} +0 -0
  164. /package/dist/sdk/{host-4MT3EW2I.mjs.map → host-H7MKML2H.mjs.map} +0 -0
  165. /package/dist/sdk/{failure-condition-evaluator-HB35XRLZ.mjs.map → liquid-extensions-WJAC7QKG.mjs.map} +0 -0
  166. /package/dist/sdk/{liquid-extensions-DFDEBMUI.mjs.map → memory-store-LPOZWQ5E.mjs.map} +0 -0
  167. /package/dist/sdk/{memory-store-RW5N2NGJ.mjs.map → metrics-CSBGJEWW.mjs.map} +0 -0
  168. /package/dist/sdk/{ndjson-sink-B4V4NTAQ.mjs.map → ndjson-sink-JQ2INHTS.mjs.map} +0 -0
  169. /package/dist/sdk/{metrics-7PP3EJUH.mjs.map → prompt-state-X2WDGSEM.mjs.map} +0 -0
  170. /package/dist/sdk/{renderer-schema-CKFB5NDB.mjs.map → renderer-schema-FRCLA6KH.mjs.map} +0 -0
  171. /package/dist/sdk/{prompt-state-EZYOUG75.mjs.map → routing-745DOEKR.mjs.map} +0 -0
  172. /package/dist/sdk/{routing-6R42GXUO.mjs.map → session-registry-6PV6SGEJ.mjs.map} +0 -0
  173. /package/dist/sdk/{slack-frontend-JUT3TYVC.mjs.map → slack-frontend-UPYUYCUQ.mjs.map} +0 -0
  174. /package/dist/sdk/{routing-7FXPULTO.mjs.map → trace-helpers-LUCR52GY.mjs.map} +0 -0
  175. /package/dist/sdk/{session-registry-4E6YRQ77.mjs.map → tracer-init-XPRWKMZT.mjs.map} +0 -0
  176. /package/dist/sdk/{trace-helpers-VP6QYVBX.mjs.map → workflow-check-provider-AA3VNYUY.mjs.map} +0 -0
  177. /package/dist/sdk/{tracer-init-GSLPPLCD.mjs.map → workflow-check-provider-LQNQZUN5.mjs.map} +0 -0
  178. /package/dist/sdk/{workflow-check-provider-H3CUOLUD.mjs.map → workflow-registry-W7IEH7GK.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __esm,
3
3
  __export
4
- } from "./chunk-WMJKH4XE.mjs";
4
+ } from "./chunk-J7LXIPZS.mjs";
5
5
 
6
6
  // src/session-registry.ts
7
7
  var session_registry_exports = {};
@@ -114,7 +114,7 @@ var init_session_registry = __esm({
114
114
  });
115
115
  if (sourceAgent.debug && checkName) {
116
116
  try {
117
- const { initializeTracer } = await import("./tracer-init-GSLPPLCD.mjs");
117
+ const { initializeTracer } = await import("./tracer-init-XPRWKMZT.mjs");
118
118
  const tracerResult = await initializeTracer(newSessionId, checkName);
119
119
  if (tracerResult) {
120
120
  clonedAgent.tracer = tracerResult.tracer;
@@ -194,4 +194,4 @@ export {
194
194
  session_registry_exports,
195
195
  init_session_registry
196
196
  };
197
- //# sourceMappingURL=chunk-NAW3DB3I.mjs.map
197
+ //# sourceMappingURL=chunk-XXAEN5KU.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  init_lazy_otel,
3
3
  metrics
4
- } from "./chunk-YSN4G6CI.mjs";
4
+ } from "./chunk-4HVFUUNB.mjs";
5
5
  import {
6
6
  __esm
7
- } from "./chunk-WMJKH4XE.mjs";
7
+ } from "./chunk-J7LXIPZS.mjs";
8
8
 
9
9
  // src/telemetry/metrics.ts
10
10
  function ensureInstruments() {
@@ -142,4 +142,4 @@ export {
142
142
  resetTestMetricsSnapshot,
143
143
  init_metrics
144
144
  };
145
- //# sourceMappingURL=chunk-S2RUE2RG.mjs.map
145
+ //# sourceMappingURL=chunk-YCUWMIV5.mjs.map
@@ -0,0 +1,14 @@
1
+ import {
2
+ CommandExecutor,
3
+ commandExecutor,
4
+ init_command_executor
5
+ } from "./chunk-SIMCSNXO.mjs";
6
+ import "./chunk-P6YFV6N2.mjs";
7
+ import "./chunk-4HVFUUNB.mjs";
8
+ import "./chunk-J7LXIPZS.mjs";
9
+ init_command_executor();
10
+ export {
11
+ CommandExecutor,
12
+ commandExecutor
13
+ };
14
+ //# sourceMappingURL=command-executor-C4DGIQ4Q.mjs.map
@@ -0,0 +1,16 @@
1
+ import {
2
+ ConfigManager,
3
+ VALID_EVENT_TRIGGERS,
4
+ init_config
5
+ } from "./chunk-D55IQCUP.mjs";
6
+ import "./chunk-NCWIZVOT.mjs";
7
+ import "./chunk-EJN6Q4D3.mjs";
8
+ import "./chunk-P6YFV6N2.mjs";
9
+ import "./chunk-4HVFUUNB.mjs";
10
+ import "./chunk-J7LXIPZS.mjs";
11
+ init_config();
12
+ export {
13
+ ConfigManager,
14
+ VALID_EVENT_TRIGGERS
15
+ };
16
+ //# sourceMappingURL=config-GYTBTHRZ.mjs.map
@@ -0,0 +1,10 @@
1
+ import {
2
+ ConfigMerger,
3
+ init_config_merger
4
+ } from "./chunk-NCWIZVOT.mjs";
5
+ import "./chunk-J7LXIPZS.mjs";
6
+ init_config_merger();
7
+ export {
8
+ ConfigMerger
9
+ };
10
+ //# sourceMappingURL=config-merger-RKCZJQ44.mjs.map
@@ -1,4 +1,4 @@
1
- import "./chunk-WMJKH4XE.mjs";
1
+ import "./chunk-J7LXIPZS.mjs";
2
2
 
3
3
  // src/event-bus/event-bus.ts
4
4
  var EventBus = class {
@@ -32,4 +32,4 @@ var EventBus = class {
32
32
  export {
33
33
  EventBus
34
34
  };
35
- //# sourceMappingURL=event-bus-5BEVPQ6T.mjs.map
35
+ //# sourceMappingURL=event-bus-XV2TOQFU.mjs.map
@@ -0,0 +1,17 @@
1
+ import {
2
+ FailureConditionEvaluator,
3
+ init_failure_condition_evaluator
4
+ } from "./chunk-UKG5UP5U.mjs";
5
+ import "./chunk-WVNQ56DO.mjs";
6
+ import "./chunk-YCUWMIV5.mjs";
7
+ import "./chunk-25IC7KXZ.mjs";
8
+ import "./chunk-EJN6Q4D3.mjs";
9
+ import "./chunk-UEWXVJ6C.mjs";
10
+ import "./chunk-P6YFV6N2.mjs";
11
+ import "./chunk-4HVFUUNB.mjs";
12
+ import "./chunk-J7LXIPZS.mjs";
13
+ init_failure_condition_evaluator();
14
+ export {
15
+ FailureConditionEvaluator
16
+ };
17
+ //# sourceMappingURL=failure-condition-evaluator-KRFY4OLQ.mjs.map
@@ -1,4 +1,4 @@
1
- import "./chunk-WMJKH4XE.mjs";
1
+ import "./chunk-J7LXIPZS.mjs";
2
2
 
3
3
  // src/git-repository-analyzer.ts
4
4
  import { simpleGit } from "simple-git";
@@ -455,4 +455,4 @@ ${file.patch}`).join("\n\n");
455
455
  export {
456
456
  GitRepositoryAnalyzer
457
457
  };
458
- //# sourceMappingURL=git-repository-analyzer-HJC4MYW4.mjs.map
458
+ //# sourceMappingURL=git-repository-analyzer-VO7OZMTM.mjs.map
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  generateShortHumanId,
3
3
  init_human_id
4
- } from "./chunk-EXFGO4FX.mjs";
4
+ } from "./chunk-KFKHU6CM.mjs";
5
5
  import {
6
6
  failure_condition_evaluator_exports,
7
7
  init_failure_condition_evaluator
8
- } from "./chunk-SWEEZ5D5.mjs";
9
- import "./chunk-BOVFH3LI.mjs";
10
- import "./chunk-ZYAUYXSW.mjs";
11
- import "./chunk-S2RUE2RG.mjs";
12
- import "./chunk-CNX7V5JK.mjs";
13
- import "./chunk-IHZOSIF4.mjs";
8
+ } from "./chunk-UKG5UP5U.mjs";
9
+ import "./chunk-WVNQ56DO.mjs";
10
+ import "./chunk-YCUWMIV5.mjs";
11
+ import "./chunk-25IC7KXZ.mjs";
12
+ import "./chunk-EJN6Q4D3.mjs";
13
+ import "./chunk-UEWXVJ6C.mjs";
14
14
  import {
15
15
  init_logger,
16
16
  logger
17
- } from "./chunk-3NMLT3YS.mjs";
18
- import "./chunk-YSN4G6CI.mjs";
17
+ } from "./chunk-P6YFV6N2.mjs";
18
+ import "./chunk-4HVFUUNB.mjs";
19
19
  import {
20
20
  __esm,
21
21
  __export,
22
22
  __toCommonJS
23
- } from "./chunk-WMJKH4XE.mjs";
23
+ } from "./chunk-J7LXIPZS.mjs";
24
24
 
25
25
  // src/footer.ts
26
26
  function generateFooter(options = {}) {
@@ -1421,4 +1421,4 @@ ${blocks}
1421
1421
  export {
1422
1422
  GitHubFrontend
1423
1423
  };
1424
- //# sourceMappingURL=github-frontend-BZ4N3BFZ.mjs.map
1424
+ //# sourceMappingURL=github-frontend-UC326PMS.mjs.map
@@ -1,4 +1,4 @@
1
- import "./chunk-WMJKH4XE.mjs";
1
+ import "./chunk-J7LXIPZS.mjs";
2
2
 
3
3
  // src/frontends/host.ts
4
4
  var FrontendsHost = class {
@@ -13,13 +13,13 @@ var FrontendsHost = class {
13
13
  this.frontends = [];
14
14
  for (const spec of specs) {
15
15
  if (spec.name === "ndjson-sink") {
16
- const { NdjsonSink } = await import("./ndjson-sink-B4V4NTAQ.mjs");
16
+ const { NdjsonSink } = await import("./ndjson-sink-JQ2INHTS.mjs");
17
17
  this.frontends.push(new NdjsonSink(spec.config));
18
18
  } else if (spec.name === "github") {
19
- const { GitHubFrontend } = await import("./github-frontend-BZ4N3BFZ.mjs");
19
+ const { GitHubFrontend } = await import("./github-frontend-UC326PMS.mjs");
20
20
  this.frontends.push(new GitHubFrontend());
21
21
  } else if (spec.name === "slack") {
22
- const { SlackFrontend } = await import("./slack-frontend-J442FJWZ.mjs");
22
+ const { SlackFrontend } = await import("./slack-frontend-UPYUYCUQ.mjs");
23
23
  this.frontends.push(new SlackFrontend(spec.config));
24
24
  } else {
25
25
  this.log.warn(`[FrontendsHost] Unknown frontend '${spec.name}', skipping`);
@@ -49,4 +49,4 @@ var FrontendsHost = class {
49
49
  export {
50
50
  FrontendsHost
51
51
  };
52
- //# sourceMappingURL=host-NYWXLIFC.mjs.map
52
+ //# sourceMappingURL=host-H7MKML2H.mjs.map
@@ -6,12 +6,13 @@ import {
6
6
  sanitizeLabel,
7
7
  sanitizeLabelList,
8
8
  withPermissionsContext
9
- } from "./chunk-7GUAFV6L.mjs";
10
- import "./chunk-CNX7V5JK.mjs";
11
- import "./chunk-IHZOSIF4.mjs";
12
- import "./chunk-3NMLT3YS.mjs";
13
- import "./chunk-YSN4G6CI.mjs";
14
- import "./chunk-WMJKH4XE.mjs";
9
+ } from "./chunk-LMJSJQPP.mjs";
10
+ import "./chunk-25IC7KXZ.mjs";
11
+ import "./chunk-EJN6Q4D3.mjs";
12
+ import "./chunk-UEWXVJ6C.mjs";
13
+ import "./chunk-P6YFV6N2.mjs";
14
+ import "./chunk-4HVFUUNB.mjs";
15
+ import "./chunk-J7LXIPZS.mjs";
15
16
  init_liquid_extensions();
16
17
  export {
17
18
  ReadFileTag,
@@ -21,4 +22,4 @@ export {
21
22
  sanitizeLabelList,
22
23
  withPermissionsContext
23
24
  };
24
- //# sourceMappingURL=liquid-extensions-DFDEBMUI.mjs.map
25
+ //# sourceMappingURL=liquid-extensions-WJAC7QKG.mjs.map
@@ -0,0 +1,12 @@
1
+ import {
2
+ MemoryStore,
3
+ init_memory_store
4
+ } from "./chunk-UEWXVJ6C.mjs";
5
+ import "./chunk-P6YFV6N2.mjs";
6
+ import "./chunk-4HVFUUNB.mjs";
7
+ import "./chunk-J7LXIPZS.mjs";
8
+ init_memory_store();
9
+ export {
10
+ MemoryStore
11
+ };
12
+ //# sourceMappingURL=memory-store-LPOZWQ5E.mjs.map
@@ -10,9 +10,9 @@ import {
10
10
  recordForEachDuration,
11
11
  recordProviderDuration,
12
12
  resetTestMetricsSnapshot
13
- } from "./chunk-S2RUE2RG.mjs";
14
- import "./chunk-YSN4G6CI.mjs";
15
- import "./chunk-WMJKH4XE.mjs";
13
+ } from "./chunk-YCUWMIV5.mjs";
14
+ import "./chunk-4HVFUUNB.mjs";
15
+ import "./chunk-J7LXIPZS.mjs";
16
16
  init_metrics();
17
17
  export {
18
18
  addDiagramBlock,
@@ -26,4 +26,4 @@ export {
26
26
  recordProviderDuration,
27
27
  resetTestMetricsSnapshot
28
28
  };
29
- //# sourceMappingURL=metrics-7PP3EJUH.mjs.map
29
+ //# sourceMappingURL=metrics-CSBGJEWW.mjs.map
@@ -1,4 +1,4 @@
1
- import "./chunk-WMJKH4XE.mjs";
1
+ import "./chunk-J7LXIPZS.mjs";
2
2
 
3
3
  // src/frontends/ndjson-sink.ts
4
4
  import fs from "fs";
@@ -41,4 +41,4 @@ var NdjsonSink = class {
41
41
  export {
42
42
  NdjsonSink
43
43
  };
44
- //# sourceMappingURL=ndjson-sink-B4V4NTAQ.mjs.map
44
+ //# sourceMappingURL=ndjson-sink-JQ2INHTS.mjs.map
@@ -3,14 +3,14 @@ import {
3
3
  getPromptStateManager,
4
4
  init_prompt_state,
5
5
  resetPromptStateManager
6
- } from "./chunk-HQL734ZI.mjs";
7
- import "./chunk-3NMLT3YS.mjs";
8
- import "./chunk-YSN4G6CI.mjs";
9
- import "./chunk-WMJKH4XE.mjs";
6
+ } from "./chunk-QRXSDDYN.mjs";
7
+ import "./chunk-P6YFV6N2.mjs";
8
+ import "./chunk-4HVFUUNB.mjs";
9
+ import "./chunk-J7LXIPZS.mjs";
10
10
  init_prompt_state();
11
11
  export {
12
12
  PromptStateManager,
13
13
  getPromptStateManager,
14
14
  resetPromptStateManager
15
15
  };
16
- //# sourceMappingURL=prompt-state-EZYOUG75.mjs.map
16
+ //# sourceMappingURL=prompt-state-X2WDGSEM.mjs.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  init_logger,
3
3
  logger
4
- } from "./chunk-3NMLT3YS.mjs";
5
- import "./chunk-YSN4G6CI.mjs";
4
+ } from "./chunk-P6YFV6N2.mjs";
5
+ import "./chunk-4HVFUUNB.mjs";
6
6
  import {
7
7
  __esm
8
- } from "./chunk-WMJKH4XE.mjs";
8
+ } from "./chunk-J7LXIPZS.mjs";
9
9
 
10
10
  // src/state-machine/dispatch/renderer-schema.ts
11
11
  async function loadRendererSchema(name) {
@@ -48,4 +48,4 @@ init_renderer_schema();
48
48
  export {
49
49
  loadRendererSchema
50
50
  };
51
- //# sourceMappingURL=renderer-schema-CKFB5NDB.mjs.map
51
+ //# sourceMappingURL=renderer-schema-FRCLA6KH.mjs.map
@@ -0,0 +1,24 @@
1
+ import {
2
+ checkLoopBudget,
3
+ evaluateGoto,
4
+ evaluateTransitions,
5
+ handleRouting,
6
+ init_routing
7
+ } from "./chunk-VEROLBCD.mjs";
8
+ import "./chunk-UKG5UP5U.mjs";
9
+ import "./chunk-WVNQ56DO.mjs";
10
+ import "./chunk-YCUWMIV5.mjs";
11
+ import "./chunk-25IC7KXZ.mjs";
12
+ import "./chunk-EJN6Q4D3.mjs";
13
+ import "./chunk-UEWXVJ6C.mjs";
14
+ import "./chunk-P6YFV6N2.mjs";
15
+ import "./chunk-4HVFUUNB.mjs";
16
+ import "./chunk-J7LXIPZS.mjs";
17
+ init_routing();
18
+ export {
19
+ checkLoopBudget,
20
+ evaluateGoto,
21
+ evaluateTransitions,
22
+ handleRouting
23
+ };
24
+ //# sourceMappingURL=routing-745DOEKR.mjs.map
@@ -225,6 +225,8 @@ interface AIProviderConfig {
225
225
  apiKey?: string;
226
226
  /** Request timeout in milliseconds */
227
227
  timeout?: number;
228
+ /** Maximum tool iterations for ProbeAgent */
229
+ max_iterations?: number;
228
230
  /** Enable debug mode */
229
231
  debug?: boolean;
230
232
  /** Probe promptType to use (e.g., engineer, code-review, architect) */
@@ -248,6 +250,8 @@ interface AIProviderConfig {
248
250
  mcpServers?: Record<string, McpServerConfig>;
249
251
  /** Enable the delegate tool for task distribution to subagents */
250
252
  enableDelegate?: boolean;
253
+ /** Enable task management for tracking multi-goal requests */
254
+ enableTasks?: boolean;
251
255
  /** Retry configuration for this provider */
252
256
  retry?: AIRetryConfig;
253
257
  /** Fallback configuration for provider failures */
@@ -266,15 +270,35 @@ interface AIProviderConfig {
266
270
  completion_prompt?: string;
267
271
  }
268
272
  /**
269
- * MCP Server configuration
273
+ * Unified MCP server/tool entry - type detected by which properties are present
274
+ *
275
+ * Detection logic (priority order):
276
+ * 1. Has `command` → stdio MCP server (external process)
277
+ * 2. Has `url` → SSE/HTTP MCP server (external endpoint)
278
+ * 3. Has `workflow` → workflow tool reference
279
+ * 4. Empty `{}` or just key → auto-detect from `tools:` section
270
280
  */
271
281
  interface McpServerConfig {
272
- /** Command to execute for the MCP server */
273
- command: string;
282
+ /** Command to execute (presence indicates stdio server) */
283
+ command?: string;
274
284
  /** Arguments to pass to the command */
275
285
  args?: string[];
276
286
  /** Environment variables for the MCP server */
277
287
  env?: Record<string, string>;
288
+ /** URL endpoint (presence indicates external server) */
289
+ url?: string;
290
+ /** Transport type */
291
+ transport?: 'stdio' | 'sse' | 'http';
292
+ /** Workflow ID or path (presence indicates workflow tool) */
293
+ workflow?: string;
294
+ /** Inputs to pass to workflow */
295
+ inputs?: Record<string, unknown>;
296
+ /** Tool description for AI */
297
+ description?: string;
298
+ /** Whitelist specific methods from this MCP server (supports wildcards like "search_*") */
299
+ allowedMethods?: string[];
300
+ /** Block specific methods from this MCP server (supports wildcards like "*_delete") */
301
+ blockedMethods?: string[];
278
302
  }
279
303
  /**
280
304
  * Claude Code configuration
@@ -352,14 +376,52 @@ interface CheckConfig {
352
376
  ai_persona?: string;
353
377
  /** Probe promptType for this check (underscore style) */
354
378
  ai_prompt_type?: string;
379
+ /** Maximum tool iterations for ProbeAgent (underscore style) */
380
+ ai_max_iterations?: number;
355
381
  /** System prompt for this check (underscore style) */
356
382
  ai_system_prompt?: string;
357
383
  /** Legacy customPrompt (underscore style) — deprecated, use ai_system_prompt */
358
384
  ai_custom_prompt?: string;
359
385
  /** MCP servers for this AI check - overrides global setting */
360
386
  ai_mcp_servers?: Record<string, McpServerConfig>;
387
+ /**
388
+ * JavaScript expression to dynamically compute MCP servers for this AI check.
389
+ * Expression has access to: outputs, inputs, pr, files, env, memory
390
+ * Must return an object mapping server names to McpServerConfig objects.
391
+ *
392
+ * Example:
393
+ * ```
394
+ * const servers = {};
395
+ * const tags = outputs['route-intent']?.tags || [];
396
+ * if (tags.includes('jira')) {
397
+ * servers.jira = {
398
+ * command: "npx",
399
+ * args: ["-y", "@aashari/mcp-server-atlassian-jira"],
400
+ * env: { ATLASSIAN_SITE_NAME: "mysite" }
401
+ * };
402
+ * }
403
+ * return servers;
404
+ * ```
405
+ */
406
+ ai_mcp_servers_js?: string;
361
407
  /** List of custom tool names to expose to this AI check via ephemeral SSE MCP server */
362
408
  ai_custom_tools?: string[];
409
+ /**
410
+ * JavaScript expression to dynamically compute custom tools for this AI check.
411
+ * Expression has access to: outputs, inputs, pr, files, env, memory
412
+ * Must return an array of tool names (strings) or WorkflowToolReference objects
413
+ * ({ workflow: string, args?: Record<string, unknown> })
414
+ *
415
+ * Example:
416
+ * ```
417
+ * const tools = [];
418
+ * if (outputs['route-intent'].intent === 'engineer') {
419
+ * tools.push({ workflow: 'engineer', args: { projects: ['tyk'] } });
420
+ * }
421
+ * return tools;
422
+ * ```
423
+ */
424
+ ai_custom_tools_js?: string;
363
425
  /** Claude Code configuration (for claude-code type checks) */
364
426
  claude_code?: ClaudeCodeConfig;
365
427
  /** Environment variables for this check */
package/dist/sdk/sdk.d.ts CHANGED
@@ -225,6 +225,8 @@ interface AIProviderConfig {
225
225
  apiKey?: string;
226
226
  /** Request timeout in milliseconds */
227
227
  timeout?: number;
228
+ /** Maximum tool iterations for ProbeAgent */
229
+ max_iterations?: number;
228
230
  /** Enable debug mode */
229
231
  debug?: boolean;
230
232
  /** Probe promptType to use (e.g., engineer, code-review, architect) */
@@ -248,6 +250,8 @@ interface AIProviderConfig {
248
250
  mcpServers?: Record<string, McpServerConfig>;
249
251
  /** Enable the delegate tool for task distribution to subagents */
250
252
  enableDelegate?: boolean;
253
+ /** Enable task management for tracking multi-goal requests */
254
+ enableTasks?: boolean;
251
255
  /** Retry configuration for this provider */
252
256
  retry?: AIRetryConfig;
253
257
  /** Fallback configuration for provider failures */
@@ -266,15 +270,35 @@ interface AIProviderConfig {
266
270
  completion_prompt?: string;
267
271
  }
268
272
  /**
269
- * MCP Server configuration
273
+ * Unified MCP server/tool entry - type detected by which properties are present
274
+ *
275
+ * Detection logic (priority order):
276
+ * 1. Has `command` → stdio MCP server (external process)
277
+ * 2. Has `url` → SSE/HTTP MCP server (external endpoint)
278
+ * 3. Has `workflow` → workflow tool reference
279
+ * 4. Empty `{}` or just key → auto-detect from `tools:` section
270
280
  */
271
281
  interface McpServerConfig {
272
- /** Command to execute for the MCP server */
273
- command: string;
282
+ /** Command to execute (presence indicates stdio server) */
283
+ command?: string;
274
284
  /** Arguments to pass to the command */
275
285
  args?: string[];
276
286
  /** Environment variables for the MCP server */
277
287
  env?: Record<string, string>;
288
+ /** URL endpoint (presence indicates external server) */
289
+ url?: string;
290
+ /** Transport type */
291
+ transport?: 'stdio' | 'sse' | 'http';
292
+ /** Workflow ID or path (presence indicates workflow tool) */
293
+ workflow?: string;
294
+ /** Inputs to pass to workflow */
295
+ inputs?: Record<string, unknown>;
296
+ /** Tool description for AI */
297
+ description?: string;
298
+ /** Whitelist specific methods from this MCP server (supports wildcards like "search_*") */
299
+ allowedMethods?: string[];
300
+ /** Block specific methods from this MCP server (supports wildcards like "*_delete") */
301
+ blockedMethods?: string[];
278
302
  }
279
303
  /**
280
304
  * Claude Code configuration
@@ -352,14 +376,52 @@ interface CheckConfig {
352
376
  ai_persona?: string;
353
377
  /** Probe promptType for this check (underscore style) */
354
378
  ai_prompt_type?: string;
379
+ /** Maximum tool iterations for ProbeAgent (underscore style) */
380
+ ai_max_iterations?: number;
355
381
  /** System prompt for this check (underscore style) */
356
382
  ai_system_prompt?: string;
357
383
  /** Legacy customPrompt (underscore style) — deprecated, use ai_system_prompt */
358
384
  ai_custom_prompt?: string;
359
385
  /** MCP servers for this AI check - overrides global setting */
360
386
  ai_mcp_servers?: Record<string, McpServerConfig>;
387
+ /**
388
+ * JavaScript expression to dynamically compute MCP servers for this AI check.
389
+ * Expression has access to: outputs, inputs, pr, files, env, memory
390
+ * Must return an object mapping server names to McpServerConfig objects.
391
+ *
392
+ * Example:
393
+ * ```
394
+ * const servers = {};
395
+ * const tags = outputs['route-intent']?.tags || [];
396
+ * if (tags.includes('jira')) {
397
+ * servers.jira = {
398
+ * command: "npx",
399
+ * args: ["-y", "@aashari/mcp-server-atlassian-jira"],
400
+ * env: { ATLASSIAN_SITE_NAME: "mysite" }
401
+ * };
402
+ * }
403
+ * return servers;
404
+ * ```
405
+ */
406
+ ai_mcp_servers_js?: string;
361
407
  /** List of custom tool names to expose to this AI check via ephemeral SSE MCP server */
362
408
  ai_custom_tools?: string[];
409
+ /**
410
+ * JavaScript expression to dynamically compute custom tools for this AI check.
411
+ * Expression has access to: outputs, inputs, pr, files, env, memory
412
+ * Must return an array of tool names (strings) or WorkflowToolReference objects
413
+ * ({ workflow: string, args?: Record<string, unknown> })
414
+ *
415
+ * Example:
416
+ * ```
417
+ * const tools = [];
418
+ * if (outputs['route-intent'].intent === 'engineer') {
419
+ * tools.push({ workflow: 'engineer', args: { projects: ['tyk'] } });
420
+ * }
421
+ * return tools;
422
+ * ```
423
+ */
424
+ ai_custom_tools_js?: string;
363
425
  /** Claude Code configuration (for claude-code type checks) */
364
426
  claude_code?: ClaudeCodeConfig;
365
427
  /** Environment variables for this check */