@probelabs/visor 0.1.178 → 0.1.179

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 (94) hide show
  1. package/defaults/assistant.yaml +38 -16
  2. package/defaults/skills/code-explorer.yaml +8 -8
  3. package/dist/agent-protocol/tasks-cli-handler.d.ts.map +1 -1
  4. package/dist/agent-protocol/track-execution.d.ts.map +1 -1
  5. package/dist/defaults/assistant.yaml +38 -16
  6. package/dist/defaults/skills/code-explorer.yaml +8 -8
  7. package/dist/frontends/slack-frontend.d.ts +6 -0
  8. package/dist/frontends/slack-frontend.d.ts.map +1 -1
  9. package/dist/index.js +305 -87
  10. package/dist/output/traces/{run-2026-03-11T06-33-05-398Z.ndjson → run-2026-03-11T13-57-13-250Z.ndjson} +96 -96
  11. package/dist/output/traces/{run-2026-03-11T06-33-47-884Z.ndjson → run-2026-03-11T13-57-55-455Z.ndjson} +1932 -1932
  12. package/dist/providers/ai-check-provider.d.ts.map +1 -1
  13. package/dist/sdk/{a2a-frontend-WYBMBBYG.mjs → a2a-frontend-HKPCABGG.mjs} +2 -2
  14. package/dist/sdk/{a2a-frontend-U3PTNCLR.mjs → a2a-frontend-KJFLIZJT.mjs} +2 -2
  15. package/dist/sdk/{check-provider-registry-3DZOXYIA.mjs → check-provider-registry-EXP6DYGL.mjs} +5 -5
  16. package/dist/sdk/{check-provider-registry-T5J3H2N7.mjs → check-provider-registry-SYAHJMWJ.mjs} +5 -5
  17. package/dist/sdk/{check-provider-registry-ZX76MY2L.mjs → check-provider-registry-WKVXEZXA.mjs} +5 -5
  18. package/dist/sdk/{chunk-AK64Y6Y2.mjs → chunk-BFQUKQQI.mjs} +163 -124
  19. package/dist/sdk/chunk-BFQUKQQI.mjs.map +1 -0
  20. package/dist/sdk/{chunk-6YGCACBF.mjs → chunk-CHARL3TY.mjs} +2 -2
  21. package/dist/sdk/{chunk-6YGCACBF.mjs.map → chunk-CHARL3TY.mjs.map} +1 -1
  22. package/dist/sdk/{chunk-4ECMTCOM.mjs → chunk-DMUBFE4V.mjs} +2 -2
  23. package/dist/sdk/{chunk-B7XHSG3L.mjs → chunk-FTPLYUQ3.mjs} +163 -124
  24. package/dist/sdk/chunk-FTPLYUQ3.mjs.map +1 -0
  25. package/dist/sdk/{chunk-ANEKFNAS.mjs → chunk-JTRN5AR7.mjs} +163 -124
  26. package/dist/sdk/chunk-JTRN5AR7.mjs.map +1 -0
  27. package/dist/sdk/{chunk-ENSZDV3O.mjs → chunk-NNL5M6QR.mjs} +3 -3
  28. package/dist/sdk/{chunk-CDRKH5HH.mjs → chunk-OYHDBTKY.mjs} +2 -2
  29. package/dist/sdk/{chunk-KG6PM4OL.mjs → chunk-WSPF7FAK.mjs} +3 -3
  30. package/dist/sdk/{chunk-KG6PM4OL.mjs.map → chunk-WSPF7FAK.mjs.map} +1 -1
  31. package/dist/sdk/{chunk-WZS4ARZB.mjs → chunk-ZJYQMNPA.mjs} +3 -3
  32. package/dist/sdk/{failure-condition-evaluator-P3MS5DRL.mjs → failure-condition-evaluator-CBJ2DP4X.mjs} +3 -3
  33. package/dist/sdk/{failure-condition-evaluator-MMPKQGUA.mjs → failure-condition-evaluator-V2YGFRKO.mjs} +3 -3
  34. package/dist/sdk/{github-frontend-7RLEBJWG.mjs → github-frontend-4LM4NAZK.mjs} +3 -3
  35. package/dist/sdk/{github-frontend-QTKOYB56.mjs → github-frontend-VGU6PNQH.mjs} +3 -3
  36. package/dist/sdk/{host-I2TBBKD5.mjs → host-AMJG7BIE.mjs} +4 -4
  37. package/dist/sdk/{host-SE3MQHWG.mjs → host-XXPPPC76.mjs} +4 -4
  38. package/dist/sdk/{routing-2X6QF5IW.mjs → routing-W6AUOIGF.mjs} +4 -4
  39. package/dist/sdk/{routing-QHXBQS6X.mjs → routing-YAYBIVPL.mjs} +4 -4
  40. package/dist/sdk/{schedule-tool-R6JJIDZ6.mjs → schedule-tool-BVWTYA2Y.mjs} +5 -5
  41. package/dist/sdk/{schedule-tool-W4SQ334O.mjs → schedule-tool-OIVJDIDK.mjs} +5 -5
  42. package/dist/sdk/{schedule-tool-MKT5FZ6J.mjs → schedule-tool-T3PAV4N3.mjs} +5 -5
  43. package/dist/sdk/{schedule-tool-handler-AOMZV3Q3.mjs → schedule-tool-handler-AYJP3FGI.mjs} +5 -5
  44. package/dist/sdk/{schedule-tool-handler-MPJFLH4J.mjs → schedule-tool-handler-SJF4ZKSB.mjs} +5 -5
  45. package/dist/sdk/{schedule-tool-handler-WY7WCFE5.mjs → schedule-tool-handler-VOCVDJSM.mjs} +5 -5
  46. package/dist/sdk/sdk.js +214 -138
  47. package/dist/sdk/sdk.js.map +1 -1
  48. package/dist/sdk/sdk.mjs +4 -4
  49. package/dist/sdk/{slack-frontend-XKSIOUXB.mjs → slack-frontend-OWD7BSWF.mjs} +22 -3
  50. package/dist/sdk/slack-frontend-OWD7BSWF.mjs.map +1 -0
  51. package/dist/sdk/{trace-helpers-4ADQ4GB3.mjs → trace-helpers-FZAVMGTD.mjs} +2 -2
  52. package/dist/sdk/{trace-helpers-K47ZVJSU.mjs → trace-helpers-QL2B75AK.mjs} +2 -2
  53. package/dist/sdk/{track-execution-XTCZBUWX.mjs → track-execution-2Q66SXBZ.mjs} +20 -2
  54. package/dist/sdk/{track-execution-XTCZBUWX.mjs.map → track-execution-2Q66SXBZ.mjs.map} +1 -1
  55. package/dist/sdk/{workflow-check-provider-WHZP7BDF.mjs → workflow-check-provider-IXW6BMQA.mjs} +5 -5
  56. package/dist/sdk/{workflow-check-provider-WZN3B2S2.mjs → workflow-check-provider-JW43OGRQ.mjs} +5 -5
  57. package/dist/sdk/{workflow-check-provider-A3YH2UZJ.mjs → workflow-check-provider-ZG2JHKBH.mjs} +5 -5
  58. package/dist/traces/{run-2026-03-11T06-33-05-398Z.ndjson → run-2026-03-11T13-57-13-250Z.ndjson} +96 -96
  59. package/dist/traces/{run-2026-03-11T06-33-47-884Z.ndjson → run-2026-03-11T13-57-55-455Z.ndjson} +1932 -1932
  60. package/dist/utils/workspace-manager.d.ts +2 -0
  61. package/dist/utils/workspace-manager.d.ts.map +1 -1
  62. package/package.json +2 -2
  63. package/dist/sdk/chunk-AK64Y6Y2.mjs.map +0 -1
  64. package/dist/sdk/chunk-ANEKFNAS.mjs.map +0 -1
  65. package/dist/sdk/chunk-B7XHSG3L.mjs.map +0 -1
  66. package/dist/sdk/slack-frontend-XKSIOUXB.mjs.map +0 -1
  67. /package/dist/sdk/{a2a-frontend-U3PTNCLR.mjs.map → a2a-frontend-HKPCABGG.mjs.map} +0 -0
  68. /package/dist/sdk/{a2a-frontend-WYBMBBYG.mjs.map → a2a-frontend-KJFLIZJT.mjs.map} +0 -0
  69. /package/dist/sdk/{check-provider-registry-3DZOXYIA.mjs.map → check-provider-registry-EXP6DYGL.mjs.map} +0 -0
  70. /package/dist/sdk/{check-provider-registry-T5J3H2N7.mjs.map → check-provider-registry-SYAHJMWJ.mjs.map} +0 -0
  71. /package/dist/sdk/{check-provider-registry-ZX76MY2L.mjs.map → check-provider-registry-WKVXEZXA.mjs.map} +0 -0
  72. /package/dist/sdk/{chunk-4ECMTCOM.mjs.map → chunk-DMUBFE4V.mjs.map} +0 -0
  73. /package/dist/sdk/{chunk-ENSZDV3O.mjs.map → chunk-NNL5M6QR.mjs.map} +0 -0
  74. /package/dist/sdk/{chunk-CDRKH5HH.mjs.map → chunk-OYHDBTKY.mjs.map} +0 -0
  75. /package/dist/sdk/{chunk-WZS4ARZB.mjs.map → chunk-ZJYQMNPA.mjs.map} +0 -0
  76. /package/dist/sdk/{failure-condition-evaluator-MMPKQGUA.mjs.map → failure-condition-evaluator-CBJ2DP4X.mjs.map} +0 -0
  77. /package/dist/sdk/{failure-condition-evaluator-P3MS5DRL.mjs.map → failure-condition-evaluator-V2YGFRKO.mjs.map} +0 -0
  78. /package/dist/sdk/{github-frontend-7RLEBJWG.mjs.map → github-frontend-4LM4NAZK.mjs.map} +0 -0
  79. /package/dist/sdk/{github-frontend-QTKOYB56.mjs.map → github-frontend-VGU6PNQH.mjs.map} +0 -0
  80. /package/dist/sdk/{host-I2TBBKD5.mjs.map → host-AMJG7BIE.mjs.map} +0 -0
  81. /package/dist/sdk/{host-SE3MQHWG.mjs.map → host-XXPPPC76.mjs.map} +0 -0
  82. /package/dist/sdk/{routing-2X6QF5IW.mjs.map → routing-W6AUOIGF.mjs.map} +0 -0
  83. /package/dist/sdk/{routing-QHXBQS6X.mjs.map → routing-YAYBIVPL.mjs.map} +0 -0
  84. /package/dist/sdk/{schedule-tool-MKT5FZ6J.mjs.map → schedule-tool-BVWTYA2Y.mjs.map} +0 -0
  85. /package/dist/sdk/{schedule-tool-R6JJIDZ6.mjs.map → schedule-tool-OIVJDIDK.mjs.map} +0 -0
  86. /package/dist/sdk/{schedule-tool-W4SQ334O.mjs.map → schedule-tool-T3PAV4N3.mjs.map} +0 -0
  87. /package/dist/sdk/{schedule-tool-handler-AOMZV3Q3.mjs.map → schedule-tool-handler-AYJP3FGI.mjs.map} +0 -0
  88. /package/dist/sdk/{schedule-tool-handler-MPJFLH4J.mjs.map → schedule-tool-handler-SJF4ZKSB.mjs.map} +0 -0
  89. /package/dist/sdk/{schedule-tool-handler-WY7WCFE5.mjs.map → schedule-tool-handler-VOCVDJSM.mjs.map} +0 -0
  90. /package/dist/sdk/{trace-helpers-4ADQ4GB3.mjs.map → trace-helpers-FZAVMGTD.mjs.map} +0 -0
  91. /package/dist/sdk/{trace-helpers-K47ZVJSU.mjs.map → trace-helpers-QL2B75AK.mjs.map} +0 -0
  92. /package/dist/sdk/{workflow-check-provider-A3YH2UZJ.mjs.map → workflow-check-provider-IXW6BMQA.mjs.map} +0 -0
  93. /package/dist/sdk/{workflow-check-provider-WHZP7BDF.mjs.map → workflow-check-provider-JW43OGRQ.mjs.map} +0 -0
  94. /package/dist/sdk/{workflow-check-provider-WZN3B2S2.mjs.map → workflow-check-provider-ZG2JHKBH.mjs.map} +0 -0
@@ -52,11 +52,11 @@ import {
52
52
  init_routing,
53
53
  init_snapshot_store,
54
54
  snapshot_store_exports
55
- } from "./chunk-ENSZDV3O.mjs";
55
+ } from "./chunk-ZJYQMNPA.mjs";
56
56
  import {
57
57
  FailureConditionEvaluator,
58
58
  init_failure_condition_evaluator
59
- } from "./chunk-4ECMTCOM.mjs";
59
+ } from "./chunk-OYHDBTKY.mjs";
60
60
  import {
61
61
  addEvent,
62
62
  emitNdjsonFallback,
@@ -67,7 +67,7 @@ import {
67
67
  setSpanAttributes,
68
68
  trace_helpers_exports,
69
69
  withActiveSpan
70
- } from "./chunk-6YGCACBF.mjs";
70
+ } from "./chunk-CHARL3TY.mjs";
71
71
  import {
72
72
  generateHumanId,
73
73
  init_human_id
@@ -2364,7 +2364,7 @@ ${"=".repeat(60)}
2364
2364
  * Generate mock response for testing
2365
2365
  */
2366
2366
  async generateMockResponse(_prompt, _checkName, _schema) {
2367
- await new Promise((resolve9) => setTimeout(resolve9, 500));
2367
+ await new Promise((resolve10) => setTimeout(resolve10, 500));
2368
2368
  const name = (_checkName || "").toLowerCase();
2369
2369
  if (name.includes("extract-facts")) {
2370
2370
  const arr = Array.from({ length: 6 }, (_, i) => ({
@@ -2952,7 +2952,7 @@ async function rateLimitedFetch(url, options, rateLimitConfig) {
2952
2952
  logger.verbose(
2953
2953
  `[rate-limiter] 429 on ${url} (bucket: ${key}), retry ${attempt + 1}/${maxRetries} in ${delayMs}ms`
2954
2954
  );
2955
- await new Promise((resolve9) => setTimeout(resolve9, delayMs));
2955
+ await new Promise((resolve10) => setTimeout(resolve10, delayMs));
2956
2956
  }
2957
2957
  return fetch(url, options);
2958
2958
  }
@@ -3001,8 +3001,8 @@ var init_rate_limiter = __esm({
3001
3001
  return;
3002
3002
  }
3003
3003
  const waitMs = Math.ceil((1 - this.tokens) / this.refillRate);
3004
- return new Promise((resolve9) => {
3005
- const entry = { resolve: resolve9 };
3004
+ return new Promise((resolve10) => {
3005
+ const entry = { resolve: resolve10 };
3006
3006
  this.waitQueue.push(entry);
3007
3007
  setTimeout(() => {
3008
3008
  const idx = this.waitQueue.indexOf(entry);
@@ -3013,7 +3013,7 @@ var init_rate_limiter = __esm({
3013
3013
  if (this.tokens >= 1) {
3014
3014
  this.tokens -= 1;
3015
3015
  }
3016
- resolve9();
3016
+ resolve10();
3017
3017
  }, waitMs);
3018
3018
  });
3019
3019
  }
@@ -4204,7 +4204,7 @@ async function executeWorkflowAsTool(workflowId, args, context2, argsOverrides)
4204
4204
  ...args,
4205
4205
  ...argsOverrides
4206
4206
  };
4207
- const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-A3YH2UZJ.mjs");
4207
+ const { WorkflowCheckProvider: WorkflowCheckProvider2 } = await import("./workflow-check-provider-IXW6BMQA.mjs");
4208
4208
  const provider = new WorkflowCheckProvider2();
4209
4209
  const checkConfig = {
4210
4210
  type: "workflow",
@@ -9529,7 +9529,7 @@ async function executeCheckWithForEachItems2(checkId, forEachParent, forEachItem
9529
9529
  }
9530
9530
  }
9531
9531
  try {
9532
- const { evaluateTransitions } = await import("./routing-2X6QF5IW.mjs");
9532
+ const { evaluateTransitions } = await import("./routing-YAYBIVPL.mjs");
9533
9533
  const transTarget = await evaluateTransitions(
9534
9534
  onFinish.transitions,
9535
9535
  forEachParent,
@@ -9589,7 +9589,7 @@ async function executeCheckWithForEachItems2(checkId, forEachParent, forEachItem
9589
9589
  `[LevelDispatch] Error evaluating on_finish transitions for ${forEachParent}: ${e instanceof Error ? e.message : String(e)}`
9590
9590
  );
9591
9591
  }
9592
- const { evaluateGoto: evaluateGoto2 } = await import("./routing-2X6QF5IW.mjs");
9592
+ const { evaluateGoto: evaluateGoto2 } = await import("./routing-YAYBIVPL.mjs");
9593
9593
  if (context2.debug) {
9594
9594
  logger.info(
9595
9595
  `[LevelDispatch] Evaluating on_finish.goto_js for forEach parent: ${forEachParent}`
@@ -12519,8 +12519,8 @@ var init_workspace_manager = __esm({
12519
12519
  );
12520
12520
  if (this.cleanupRequested && this.activeOperations === 0) {
12521
12521
  logger.debug(`[Workspace] All references released, proceeding with deferred cleanup`);
12522
- for (const resolve9 of this.cleanupResolvers) {
12523
- resolve9();
12522
+ for (const resolve10 of this.cleanupResolvers) {
12523
+ resolve10();
12524
12524
  }
12525
12525
  this.cleanupResolvers = [];
12526
12526
  }
@@ -12567,8 +12567,32 @@ var init_workspace_manager = __esm({
12567
12567
  configuredMainProjectName || this.extractProjectName(this.originalPath)
12568
12568
  );
12569
12569
  this.usedNames.add(mainProjectName);
12570
- const mainProjectPath = path7.join(this.workspacePath, mainProjectName);
12570
+ let mainProjectPath = path7.join(this.workspacePath, mainProjectName);
12571
12571
  const isGitRepo = await this.isGitRepository(this.originalPath);
12572
+ if (isGitRepo) {
12573
+ try {
12574
+ await commandExecutor.execute(`git -C ${shellEscape(this.originalPath)} worktree prune`, {
12575
+ timeout: 15e3
12576
+ });
12577
+ } catch {
12578
+ }
12579
+ }
12580
+ let subdirOffset = "";
12581
+ if (isGitRepo) {
12582
+ const gitRootResult = await commandExecutor.execute(
12583
+ `git -C ${shellEscape(this.originalPath)} rev-parse --show-toplevel`,
12584
+ { timeout: 5e3 }
12585
+ );
12586
+ if (gitRootResult.exitCode === 0) {
12587
+ const gitRoot = gitRootResult.stdout.trim();
12588
+ const normalizedOriginal = path7.resolve(this.originalPath);
12589
+ const normalizedRoot = path7.resolve(gitRoot);
12590
+ if (normalizedOriginal !== normalizedRoot) {
12591
+ subdirOffset = path7.relative(normalizedRoot, normalizedOriginal);
12592
+ logger.info(`[Workspace] Original path is a subdirectory of git repo: ${subdirOffset}`);
12593
+ }
12594
+ }
12595
+ }
12572
12596
  if (isGitRepo) {
12573
12597
  const exists = await this.pathExists(mainProjectPath);
12574
12598
  if (exists) {
@@ -12602,6 +12626,18 @@ var init_workspace_manager = __esm({
12602
12626
  }
12603
12627
  }
12604
12628
  }
12629
+ const worktreeRootPath = mainProjectPath;
12630
+ if (subdirOffset) {
12631
+ mainProjectPath = path7.join(mainProjectPath, subdirOffset);
12632
+ logger.info(`[Workspace] Adjusted main project path to subdirectory: ${mainProjectPath}`);
12633
+ const subdirExists = await this.pathExists(mainProjectPath);
12634
+ if (!subdirExists) {
12635
+ logger.warn(
12636
+ `[Workspace] Subdirectory '${subdirOffset}' not found in worktree \u2014 falling back to worktree root`
12637
+ );
12638
+ mainProjectPath = path7.join(this.workspacePath, mainProjectName);
12639
+ }
12640
+ }
12605
12641
  try {
12606
12642
  const entries = await fsp.readdir(this.workspacePath, { withFileTypes: true });
12607
12643
  for (const entry of entries) {
@@ -12617,7 +12653,8 @@ var init_workspace_manager = __esm({
12617
12653
  workspacePath: this.workspacePath,
12618
12654
  mainProjectPath,
12619
12655
  mainProjectName,
12620
- originalPath: this.originalPath
12656
+ originalPath: this.originalPath,
12657
+ worktreeRootPath
12621
12658
  };
12622
12659
  this.initialized = true;
12623
12660
  logger.info(`Workspace initialized: ${this.workspacePath}`);
@@ -12699,30 +12736,30 @@ var init_workspace_manager = __esm({
12699
12736
  );
12700
12737
  this.cleanupRequested = true;
12701
12738
  await Promise.race([
12702
- new Promise((resolve9) => {
12739
+ new Promise((resolve10) => {
12703
12740
  if (this.activeOperations === 0) {
12704
- resolve9();
12741
+ resolve10();
12705
12742
  } else {
12706
- this.cleanupResolvers.push(resolve9);
12743
+ this.cleanupResolvers.push(resolve10);
12707
12744
  }
12708
12745
  }),
12709
- new Promise((resolve9) => {
12746
+ new Promise((resolve10) => {
12710
12747
  setTimeout(() => {
12711
12748
  logger.warn(
12712
12749
  `[Workspace] Cleanup timeout after ${timeout}ms, proceeding anyway (${this.activeOperations} operations still active)`
12713
12750
  );
12714
- resolve9();
12751
+ resolve10();
12715
12752
  }, timeout);
12716
12753
  })
12717
12754
  ]);
12718
12755
  }
12719
12756
  try {
12720
12757
  if (this.mainProjectInfo) {
12721
- const mainProjectPath = this.mainProjectInfo.mainProjectPath;
12758
+ const worktreePath = this.mainProjectInfo.worktreeRootPath || this.mainProjectInfo.mainProjectPath;
12722
12759
  try {
12723
- const stats = await fsp.lstat(mainProjectPath);
12760
+ const stats = await fsp.lstat(worktreePath);
12724
12761
  if (!stats.isSymbolicLink()) {
12725
- await this.removeMainProjectWorktree(mainProjectPath);
12762
+ await this.removeMainProjectWorktree(worktreePath);
12726
12763
  }
12727
12764
  } catch {
12728
12765
  }
@@ -13126,8 +13163,8 @@ var init_fair_concurrency_limiter = __esm({
13126
13163
  );
13127
13164
  const queuedAt = Date.now();
13128
13165
  const effectiveTimeout = queueTimeout ?? 12e4;
13129
- return new Promise((resolve9, reject) => {
13130
- const entry = { resolve: resolve9, reject, queuedAt };
13166
+ return new Promise((resolve10, reject) => {
13167
+ const entry = { resolve: resolve10, reject, queuedAt };
13131
13168
  entry.reminder = setInterval(() => {
13132
13169
  const waited = Math.round((Date.now() - queuedAt) / 1e3);
13133
13170
  const curQueued = this._totalQueued();
@@ -13575,7 +13612,7 @@ var init_state_machine_execution_engine = __esm({
13575
13612
  try {
13576
13613
  const map = options?.webhookContext?.webhookData;
13577
13614
  if (map) {
13578
- const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-ZX76MY2L.mjs");
13615
+ const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-SYAHJMWJ.mjs");
13579
13616
  const reg = CheckProviderRegistry2.getInstance();
13580
13617
  const p = reg.getProvider("http_input");
13581
13618
  if (p && typeof p.setWebhookContext === "function") p.setWebhookContext(map);
@@ -13698,7 +13735,7 @@ var init_state_machine_execution_engine = __esm({
13698
13735
  tag_filter: tagFilter
13699
13736
  } : config;
13700
13737
  try {
13701
- const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-ZX76MY2L.mjs");
13738
+ const { CheckProviderRegistry: CheckProviderRegistry2 } = await import("./check-provider-registry-SYAHJMWJ.mjs");
13702
13739
  const registry = CheckProviderRegistry2.getInstance();
13703
13740
  registry.setCustomTools(configWithTagFilter.tools || {});
13704
13741
  } catch (error) {
@@ -13762,7 +13799,7 @@ var init_state_machine_execution_engine = __esm({
13762
13799
  try {
13763
13800
  const webhookData = this.executionContext?.webhookContext?.webhookData;
13764
13801
  if (webhookData instanceof Map) {
13765
- const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-AOMZV3Q3.mjs");
13802
+ const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-SJF4ZKSB.mjs");
13766
13803
  const slackCtx = extractSlackContext2(webhookData);
13767
13804
  if (slackCtx) {
13768
13805
  const payload = Array.from(webhookData.values())[0];
@@ -13791,7 +13828,7 @@ var init_state_machine_execution_engine = __esm({
13791
13828
  if (Array.isArray(configWithTagFilter.frontends) && configWithTagFilter.frontends.length > 0) {
13792
13829
  try {
13793
13830
  const { EventBus } = await import("./event-bus-5K3Y2FCS.mjs");
13794
- const { FrontendsHost } = await import("./host-I2TBBKD5.mjs");
13831
+ const { FrontendsHost } = await import("./host-XXPPPC76.mjs");
13795
13832
  const bus = new EventBus();
13796
13833
  context2.eventBus = bus;
13797
13834
  frontendsHost = new FrontendsHost(bus, logger);
@@ -14143,9 +14180,9 @@ var init_state_machine_execution_engine = __esm({
14143
14180
  * @returns Array of failure condition evaluation results
14144
14181
  */
14145
14182
  async evaluateFailureConditions(checkName, reviewSummary, config, previousOutputs, authorAssociation) {
14146
- const { FailureConditionEvaluator: FailureConditionEvaluator2 } = await import("./failure-condition-evaluator-P3MS5DRL.mjs");
14183
+ const { FailureConditionEvaluator: FailureConditionEvaluator2 } = await import("./failure-condition-evaluator-V2YGFRKO.mjs");
14147
14184
  const evaluator = new FailureConditionEvaluator2();
14148
- const { addEvent: addEvent3 } = await import("./trace-helpers-K47ZVJSU.mjs");
14185
+ const { addEvent: addEvent3 } = await import("./trace-helpers-QL2B75AK.mjs");
14149
14186
  const { addFailIfTriggered } = await import("./metrics-JTOG2HNO.mjs");
14150
14187
  const checkConfig = config.checks?.[checkName];
14151
14188
  if (!checkConfig) {
@@ -14981,7 +15018,7 @@ var init_scheduler = __esm({
14981
15018
  inputs: schedule.workflowInputs
14982
15019
  });
14983
15020
  if (this.taskStore) {
14984
- const { trackExecution } = await import("./track-execution-XTCZBUWX.mjs");
15021
+ const { trackExecution } = await import("./track-execution-2Q66SXBZ.mjs");
14985
15022
  await trackExecution(
14986
15023
  {
14987
15024
  taskStore: this.taskStore,
@@ -15110,7 +15147,7 @@ Please provide an updated response based on the reminder above. You may referenc
15110
15147
  debug: process.env.VISOR_DEBUG === "true"
15111
15148
  });
15112
15149
  if (this.taskStore) {
15113
- const { trackExecution } = await import("./track-execution-XTCZBUWX.mjs");
15150
+ const { trackExecution } = await import("./track-execution-2Q66SXBZ.mjs");
15114
15151
  await trackExecution(
15115
15152
  {
15116
15153
  taskStore: this.taskStore,
@@ -16372,7 +16409,7 @@ var init_mcp_custom_sse_server = __esm({
16372
16409
  * Returns the actual bound port number
16373
16410
  */
16374
16411
  async start() {
16375
- return new Promise((resolve9, reject) => {
16412
+ return new Promise((resolve10, reject) => {
16376
16413
  try {
16377
16414
  this.server = http.createServer((req, res) => {
16378
16415
  this.handleRequest(req, res).catch((error) => {
@@ -16406,7 +16443,7 @@ var init_mcp_custom_sse_server = __esm({
16406
16443
  );
16407
16444
  }
16408
16445
  this.startKeepalive();
16409
- resolve9(this.port);
16446
+ resolve10(this.port);
16410
16447
  });
16411
16448
  } catch (error) {
16412
16449
  reject(error);
@@ -16469,7 +16506,7 @@ var init_mcp_custom_sse_server = __esm({
16469
16506
  logger.debug(
16470
16507
  `[CustomToolsSSEServer:${this.sessionId}] Grace period before stop: ${waitMs}ms (activeToolCalls=${this.activeToolCalls})`
16471
16508
  );
16472
- await new Promise((resolve9) => setTimeout(resolve9, waitMs));
16509
+ await new Promise((resolve10) => setTimeout(resolve10, waitMs));
16473
16510
  }
16474
16511
  }
16475
16512
  if (this.activeToolCalls > 0) {
@@ -16478,7 +16515,7 @@ var init_mcp_custom_sse_server = __esm({
16478
16515
  `[CustomToolsSSEServer:${this.sessionId}] Waiting for ${this.activeToolCalls} active tool call(s) before stop`
16479
16516
  );
16480
16517
  while (this.activeToolCalls > 0 && Date.now() - startedAt < effectiveDrainTimeoutMs) {
16481
- await new Promise((resolve9) => setTimeout(resolve9, 250));
16518
+ await new Promise((resolve10) => setTimeout(resolve10, 250));
16482
16519
  }
16483
16520
  if (this.activeToolCalls > 0) {
16484
16521
  logger.warn(
@@ -16503,21 +16540,21 @@ var init_mcp_custom_sse_server = __esm({
16503
16540
  }
16504
16541
  this.connections.clear();
16505
16542
  if (this.server) {
16506
- await new Promise((resolve9, reject) => {
16543
+ await new Promise((resolve10, reject) => {
16507
16544
  const timeout = setTimeout(() => {
16508
16545
  if (this.debug) {
16509
16546
  logger.debug(
16510
16547
  `[CustomToolsSSEServer:${this.sessionId}] Force closing server after timeout`
16511
16548
  );
16512
16549
  }
16513
- this.server?.close(() => resolve9());
16550
+ this.server?.close(() => resolve10());
16514
16551
  }, 5e3);
16515
16552
  this.server.close((error) => {
16516
16553
  clearTimeout(timeout);
16517
16554
  if (error) {
16518
16555
  reject(error);
16519
16556
  } else {
16520
- resolve9();
16557
+ resolve10();
16521
16558
  }
16522
16559
  });
16523
16560
  });
@@ -16974,7 +17011,7 @@ var init_mcp_custom_sse_server = __esm({
16974
17011
  logger.warn(
16975
17012
  `[CustomToolsSSEServer:${this.sessionId}] Tool ${toolName} failed (attempt ${attempt + 1}/${retryCount + 1}): ${errorMsg}. Retrying in ${delay}ms`
16976
17013
  );
16977
- await new Promise((resolve9) => setTimeout(resolve9, delay));
17014
+ await new Promise((resolve10) => setTimeout(resolve10, delay));
16978
17015
  attempt++;
16979
17016
  }
16980
17017
  }
@@ -17833,45 +17870,44 @@ ${preview}`);
17833
17870
  const aiConfig = {};
17834
17871
  if (config.ai) {
17835
17872
  const aiAny2 = config.ai;
17873
+ const resolveLiquid = async (val) => {
17874
+ if (typeof val !== "string" || !val.includes("{{")) return void 0;
17875
+ try {
17876
+ return (await this.liquidEngine.parseAndRender(val, {
17877
+ inputs: config.workflowInputs || {},
17878
+ env: process.env
17879
+ })).trim();
17880
+ } catch {
17881
+ return void 0;
17882
+ }
17883
+ };
17884
+ const resolveBool = async (val) => {
17885
+ const resolved = await resolveLiquid(val) ?? val;
17886
+ if (typeof resolved === "boolean") return resolved;
17887
+ if (typeof resolved === "string") return resolved === "true";
17888
+ return !!resolved;
17889
+ };
17836
17890
  const skipTransport = aiAny2.skip_transport_context === true;
17837
17891
  if (aiAny2.apiKey !== void 0) {
17838
17892
  aiConfig.apiKey = aiAny2.apiKey;
17839
17893
  }
17840
17894
  if (aiAny2.model !== void 0) {
17841
- let modelVal = String(aiAny2.model);
17842
- if (modelVal.includes("{{")) {
17843
- try {
17844
- const rendered = await this.liquidEngine.parseAndRender(modelVal, {
17845
- inputs: config.workflowInputs || {},
17846
- env: process.env
17847
- });
17848
- modelVal = rendered.trim();
17849
- } catch {
17850
- }
17851
- }
17895
+ const modelVal = await resolveLiquid(aiAny2.model) ?? String(aiAny2.model);
17852
17896
  if (modelVal) {
17853
17897
  aiConfig.model = modelVal;
17854
17898
  }
17855
17899
  }
17856
17900
  if (aiAny2.timeout !== void 0) {
17857
- aiConfig.timeout = aiAny2.timeout;
17901
+ const resolvedTimeout = await resolveLiquid(aiAny2.timeout) ?? aiAny2.timeout;
17902
+ aiConfig.timeout = Number(resolvedTimeout);
17858
17903
  }
17859
17904
  if (aiAny2.max_iterations !== void 0 || aiAny2.maxIterations !== void 0) {
17860
17905
  const raw = aiAny2.max_iterations ?? aiAny2.maxIterations;
17861
- aiConfig.maxIterations = Number(raw);
17906
+ const resolved = await resolveLiquid(raw) ?? raw;
17907
+ aiConfig.maxIterations = Number(resolved);
17862
17908
  }
17863
17909
  if (aiAny2.provider !== void 0) {
17864
- let providerVal = String(aiAny2.provider);
17865
- if (providerVal.includes("{{")) {
17866
- try {
17867
- const rendered = await this.liquidEngine.parseAndRender(providerVal, {
17868
- inputs: config.workflowInputs || {},
17869
- env: process.env
17870
- });
17871
- providerVal = rendered.trim();
17872
- } catch {
17873
- }
17874
- }
17910
+ const providerVal = await resolveLiquid(aiAny2.provider) ?? String(aiAny2.provider);
17875
17911
  if (providerVal) {
17876
17912
  aiConfig.provider = providerVal;
17877
17913
  }
@@ -17880,16 +17916,16 @@ ${preview}`);
17880
17916
  aiConfig.debug = aiAny2.debug;
17881
17917
  }
17882
17918
  if (aiAny2.enableDelegate !== void 0) {
17883
- aiConfig.enableDelegate = aiAny2.enableDelegate;
17919
+ aiConfig.enableDelegate = await resolveBool(aiAny2.enableDelegate);
17884
17920
  }
17885
17921
  if (aiAny2.enableTasks !== void 0) {
17886
- aiConfig.enableTasks = aiAny2.enableTasks;
17922
+ aiConfig.enableTasks = await resolveBool(aiAny2.enableTasks);
17887
17923
  }
17888
17924
  if (aiAny2.enableExecutePlan !== void 0) {
17889
- aiConfig.enableExecutePlan = aiAny2.enableExecutePlan;
17925
+ aiConfig.enableExecutePlan = await resolveBool(aiAny2.enableExecutePlan);
17890
17926
  }
17891
17927
  if (aiAny2.allowEdit !== void 0) {
17892
- aiConfig.allowEdit = aiAny2.allowEdit;
17928
+ aiConfig.allowEdit = await resolveBool(aiAny2.allowEdit);
17893
17929
  }
17894
17930
  if (aiAny2.allowedTools !== void 0) {
17895
17931
  aiConfig.allowedTools = aiAny2.allowedTools;
@@ -17898,20 +17934,20 @@ ${preview}`);
17898
17934
  );
17899
17935
  }
17900
17936
  if (aiAny2.disableTools !== void 0) {
17901
- aiConfig.disableTools = aiAny2.disableTools;
17937
+ aiConfig.disableTools = await resolveBool(aiAny2.disableTools);
17902
17938
  this.logDebug(`[AI Provider] Read disableTools from YAML: ${aiAny2.disableTools}`);
17903
17939
  }
17904
17940
  if (aiAny2.allowBash !== void 0) {
17905
- aiConfig.allowBash = aiAny2.allowBash;
17941
+ aiConfig.allowBash = await resolveBool(aiAny2.allowBash);
17906
17942
  }
17907
17943
  if (aiAny2.bashConfig !== void 0) {
17908
17944
  aiConfig.bashConfig = aiAny2.bashConfig;
17909
17945
  }
17910
17946
  if (aiAny2.search_delegate_provider !== void 0) {
17911
- aiConfig.search_delegate_provider = aiAny2.search_delegate_provider;
17947
+ aiConfig.search_delegate_provider = await resolveLiquid(aiAny2.search_delegate_provider) ?? aiAny2.search_delegate_provider;
17912
17948
  }
17913
17949
  if (aiAny2.search_delegate_model !== void 0) {
17914
- aiConfig.search_delegate_model = aiAny2.search_delegate_model;
17950
+ aiConfig.search_delegate_model = await resolveLiquid(aiAny2.search_delegate_model) ?? aiAny2.search_delegate_model;
17915
17951
  }
17916
17952
  if (aiAny2.completion_prompt !== void 0) {
17917
17953
  aiConfig.completionPrompt = aiAny2.completion_prompt;
@@ -18022,6 +18058,9 @@ ${preview}`);
18022
18058
  if (config.ai_max_iterations !== void 0 && aiConfig.maxIterations === void 0) {
18023
18059
  aiConfig.maxIterations = config.ai_max_iterations;
18024
18060
  }
18061
+ if (aiConfig.maxIterations === void 0 || Number.isNaN(aiConfig.maxIterations)) {
18062
+ aiConfig.maxIterations = 100;
18063
+ }
18025
18064
  const sharedLimiter = sessionInfo?._parentContext?.sharedConcurrencyLimiter;
18026
18065
  if (sharedLimiter) {
18027
18066
  aiConfig.concurrencyLimiter = sharedLimiter;
@@ -26637,8 +26676,8 @@ var require_util2 = __commonJS({
26637
26676
  function createDeferredPromise() {
26638
26677
  let res;
26639
26678
  let rej;
26640
- const promise = new Promise((resolve9, reject) => {
26641
- res = resolve9;
26679
+ const promise = new Promise((resolve10, reject) => {
26680
+ res = resolve10;
26642
26681
  rej = reject;
26643
26682
  });
26644
26683
  return { promise, resolve: res, reject: rej };
@@ -28143,8 +28182,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r
28143
28182
  });
28144
28183
  }
28145
28184
  });
28146
- const busboyResolve = new Promise((resolve9, reject) => {
28147
- busboy.on("finish", resolve9);
28185
+ const busboyResolve = new Promise((resolve10, reject) => {
28186
+ busboy.on("finish", resolve10);
28148
28187
  busboy.on("error", (err) => reject(new TypeError(err)));
28149
28188
  });
28150
28189
  if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk);
@@ -28678,9 +28717,9 @@ var require_dispatcher_base = __commonJS({
28678
28717
  }
28679
28718
  close(callback) {
28680
28719
  if (callback === void 0) {
28681
- return new Promise((resolve9, reject) => {
28720
+ return new Promise((resolve10, reject) => {
28682
28721
  this.close((err, data) => {
28683
- return err ? reject(err) : resolve9(data);
28722
+ return err ? reject(err) : resolve10(data);
28684
28723
  });
28685
28724
  });
28686
28725
  }
@@ -28718,12 +28757,12 @@ var require_dispatcher_base = __commonJS({
28718
28757
  err = null;
28719
28758
  }
28720
28759
  if (callback === void 0) {
28721
- return new Promise((resolve9, reject) => {
28760
+ return new Promise((resolve10, reject) => {
28722
28761
  this.destroy(err, (err2, data) => {
28723
28762
  return err2 ? (
28724
28763
  /* istanbul ignore next: should never error */
28725
28764
  reject(err2)
28726
- ) : resolve9(data);
28765
+ ) : resolve10(data);
28727
28766
  });
28728
28767
  });
28729
28768
  }
@@ -29785,16 +29824,16 @@ var require_client = __commonJS({
29785
29824
  return this[kNeedDrain] < 2;
29786
29825
  }
29787
29826
  async [kClose]() {
29788
- return new Promise((resolve9) => {
29827
+ return new Promise((resolve10) => {
29789
29828
  if (!this[kSize]) {
29790
- resolve9(null);
29829
+ resolve10(null);
29791
29830
  } else {
29792
- this[kClosedResolve] = resolve9;
29831
+ this[kClosedResolve] = resolve10;
29793
29832
  }
29794
29833
  });
29795
29834
  }
29796
29835
  async [kDestroy](err) {
29797
- return new Promise((resolve9) => {
29836
+ return new Promise((resolve10) => {
29798
29837
  const requests = this[kQueue].splice(this[kPendingIdx]);
29799
29838
  for (let i = 0; i < requests.length; i++) {
29800
29839
  const request = requests[i];
@@ -29805,7 +29844,7 @@ var require_client = __commonJS({
29805
29844
  this[kClosedResolve]();
29806
29845
  this[kClosedResolve] = null;
29807
29846
  }
29808
- resolve9();
29847
+ resolve10();
29809
29848
  };
29810
29849
  if (this[kHTTP2Session] != null) {
29811
29850
  util.destroy(this[kHTTP2Session], err);
@@ -30385,7 +30424,7 @@ var require_client = __commonJS({
30385
30424
  });
30386
30425
  }
30387
30426
  try {
30388
- const socket = await new Promise((resolve9, reject) => {
30427
+ const socket = await new Promise((resolve10, reject) => {
30389
30428
  client[kConnector]({
30390
30429
  host,
30391
30430
  hostname,
@@ -30397,7 +30436,7 @@ var require_client = __commonJS({
30397
30436
  if (err) {
30398
30437
  reject(err);
30399
30438
  } else {
30400
- resolve9(socket2);
30439
+ resolve10(socket2);
30401
30440
  }
30402
30441
  });
30403
30442
  });
@@ -31021,12 +31060,12 @@ upgrade: ${upgrade}\r
31021
31060
  cb();
31022
31061
  }
31023
31062
  }
31024
- const waitForDrain = () => new Promise((resolve9, reject) => {
31063
+ const waitForDrain = () => new Promise((resolve10, reject) => {
31025
31064
  assert(callback === null);
31026
31065
  if (socket[kError]) {
31027
31066
  reject(socket[kError]);
31028
31067
  } else {
31029
- callback = resolve9;
31068
+ callback = resolve10;
31030
31069
  }
31031
31070
  });
31032
31071
  if (client[kHTTPConnVersion] === "h2") {
@@ -31372,8 +31411,8 @@ var require_pool_base = __commonJS({
31372
31411
  if (this[kQueue].isEmpty()) {
31373
31412
  return Promise.all(this[kClients].map((c) => c.close()));
31374
31413
  } else {
31375
- return new Promise((resolve9) => {
31376
- this[kClosedResolve] = resolve9;
31414
+ return new Promise((resolve10) => {
31415
+ this[kClosedResolve] = resolve10;
31377
31416
  });
31378
31417
  }
31379
31418
  }
@@ -31951,7 +31990,7 @@ var require_readable = __commonJS({
31951
31990
  if (this.closed) {
31952
31991
  return Promise.resolve(null);
31953
31992
  }
31954
- return new Promise((resolve9, reject) => {
31993
+ return new Promise((resolve10, reject) => {
31955
31994
  const signalListenerCleanup = signal ? util.addAbortListener(signal, () => {
31956
31995
  this.destroy();
31957
31996
  }) : noop;
@@ -31960,7 +31999,7 @@ var require_readable = __commonJS({
31960
31999
  if (signal && signal.aborted) {
31961
32000
  reject(signal.reason || Object.assign(new Error("The operation was aborted"), { name: "AbortError" }));
31962
32001
  } else {
31963
- resolve9(null);
32002
+ resolve10(null);
31964
32003
  }
31965
32004
  }).on("error", noop).on("data", function(chunk) {
31966
32005
  limit -= chunk.length;
@@ -31982,11 +32021,11 @@ var require_readable = __commonJS({
31982
32021
  throw new TypeError("unusable");
31983
32022
  }
31984
32023
  assert(!stream[kConsume]);
31985
- return new Promise((resolve9, reject) => {
32024
+ return new Promise((resolve10, reject) => {
31986
32025
  stream[kConsume] = {
31987
32026
  type,
31988
32027
  stream,
31989
- resolve: resolve9,
32028
+ resolve: resolve10,
31990
32029
  reject,
31991
32030
  length: 0,
31992
32031
  body: []
@@ -32021,12 +32060,12 @@ var require_readable = __commonJS({
32021
32060
  }
32022
32061
  }
32023
32062
  function consumeEnd(consume2) {
32024
- const { type, body, resolve: resolve9, stream, length } = consume2;
32063
+ const { type, body, resolve: resolve10, stream, length } = consume2;
32025
32064
  try {
32026
32065
  if (type === "text") {
32027
- resolve9(toUSVString(Buffer.concat(body)));
32066
+ resolve10(toUSVString(Buffer.concat(body)));
32028
32067
  } else if (type === "json") {
32029
- resolve9(JSON.parse(Buffer.concat(body)));
32068
+ resolve10(JSON.parse(Buffer.concat(body)));
32030
32069
  } else if (type === "arrayBuffer") {
32031
32070
  const dst = new Uint8Array(length);
32032
32071
  let pos = 0;
@@ -32034,12 +32073,12 @@ var require_readable = __commonJS({
32034
32073
  dst.set(buf, pos);
32035
32074
  pos += buf.byteLength;
32036
32075
  }
32037
- resolve9(dst.buffer);
32076
+ resolve10(dst.buffer);
32038
32077
  } else if (type === "blob") {
32039
32078
  if (!Blob2) {
32040
32079
  Blob2 = __require("buffer").Blob;
32041
32080
  }
32042
- resolve9(new Blob2(body, { type: stream[kContentType] }));
32081
+ resolve10(new Blob2(body, { type: stream[kContentType] }));
32043
32082
  }
32044
32083
  consumeFinish(consume2);
32045
32084
  } catch (err) {
@@ -32296,9 +32335,9 @@ var require_api_request = __commonJS({
32296
32335
  };
32297
32336
  function request(opts, callback) {
32298
32337
  if (callback === void 0) {
32299
- return new Promise((resolve9, reject) => {
32338
+ return new Promise((resolve10, reject) => {
32300
32339
  request.call(this, opts, (err, data) => {
32301
- return err ? reject(err) : resolve9(data);
32340
+ return err ? reject(err) : resolve10(data);
32302
32341
  });
32303
32342
  });
32304
32343
  }
@@ -32471,9 +32510,9 @@ var require_api_stream = __commonJS({
32471
32510
  };
32472
32511
  function stream(opts, factory, callback) {
32473
32512
  if (callback === void 0) {
32474
- return new Promise((resolve9, reject) => {
32513
+ return new Promise((resolve10, reject) => {
32475
32514
  stream.call(this, opts, factory, (err, data) => {
32476
- return err ? reject(err) : resolve9(data);
32515
+ return err ? reject(err) : resolve10(data);
32477
32516
  });
32478
32517
  });
32479
32518
  }
@@ -32754,9 +32793,9 @@ var require_api_upgrade = __commonJS({
32754
32793
  };
32755
32794
  function upgrade(opts, callback) {
32756
32795
  if (callback === void 0) {
32757
- return new Promise((resolve9, reject) => {
32796
+ return new Promise((resolve10, reject) => {
32758
32797
  upgrade.call(this, opts, (err, data) => {
32759
- return err ? reject(err) : resolve9(data);
32798
+ return err ? reject(err) : resolve10(data);
32760
32799
  });
32761
32800
  });
32762
32801
  }
@@ -32845,9 +32884,9 @@ var require_api_connect = __commonJS({
32845
32884
  };
32846
32885
  function connect(opts, callback) {
32847
32886
  if (callback === void 0) {
32848
- return new Promise((resolve9, reject) => {
32887
+ return new Promise((resolve10, reject) => {
32849
32888
  connect.call(this, opts, (err, data) => {
32850
- return err ? reject(err) : resolve9(data);
32889
+ return err ? reject(err) : resolve10(data);
32851
32890
  });
32852
32891
  });
32853
32892
  }
@@ -36470,7 +36509,7 @@ var require_fetch = __commonJS({
36470
36509
  async function dispatch({ body }) {
36471
36510
  const url = requestCurrentURL(request);
36472
36511
  const agent = fetchParams.controller.dispatcher;
36473
- return new Promise((resolve9, reject) => agent.dispatch(
36512
+ return new Promise((resolve10, reject) => agent.dispatch(
36474
36513
  {
36475
36514
  path: url.pathname + url.search,
36476
36515
  origin: url.origin,
@@ -36546,7 +36585,7 @@ var require_fetch = __commonJS({
36546
36585
  }
36547
36586
  }
36548
36587
  }
36549
- resolve9({
36588
+ resolve10({
36550
36589
  status,
36551
36590
  statusText,
36552
36591
  headersList: headers[kHeadersList],
@@ -36589,7 +36628,7 @@ var require_fetch = __commonJS({
36589
36628
  const val = headersList[n + 1].toString("latin1");
36590
36629
  headers[kHeadersList].append(key, val);
36591
36630
  }
36592
- resolve9({
36631
+ resolve10({
36593
36632
  status,
36594
36633
  statusText: STATUS_CODES[status],
36595
36634
  headersList: headers[kHeadersList],
@@ -40404,7 +40443,7 @@ var init_mcp_check_provider = __esm({
40404
40443
  logger.warn(
40405
40444
  `MCP ${transportName} failed (attempt ${attempt + 1}/${maxRetries + 1}), retrying in ${delay}ms: ${error instanceof Error ? error.message : String(error)}`
40406
40445
  );
40407
- await new Promise((resolve9) => setTimeout(resolve9, delay));
40446
+ await new Promise((resolve10) => setTimeout(resolve10, delay));
40408
40447
  attempt += 1;
40409
40448
  } finally {
40410
40449
  try {
@@ -40698,7 +40737,7 @@ async function acquirePromptLock() {
40698
40737
  );
40699
40738
  }, 1e4);
40700
40739
  try {
40701
- await new Promise((resolve9) => waiters.push(resolve9));
40740
+ await new Promise((resolve10) => waiters.push(resolve10));
40702
40741
  } finally {
40703
40742
  clearInterval(reminder);
40704
40743
  const waitedMs = Date.now() - queuedAt;
@@ -40717,7 +40756,7 @@ function releasePromptLock() {
40717
40756
  }
40718
40757
  async function interactivePrompt(options) {
40719
40758
  await acquirePromptLock();
40720
- return new Promise((resolve9, reject) => {
40759
+ return new Promise((resolve10, reject) => {
40721
40760
  const dbg = process.env.VISOR_DEBUG === "true";
40722
40761
  try {
40723
40762
  if (dbg) {
@@ -40804,12 +40843,12 @@ async function interactivePrompt(options) {
40804
40843
  };
40805
40844
  const finish = (value) => {
40806
40845
  cleanup();
40807
- resolve9(value);
40846
+ resolve10(value);
40808
40847
  };
40809
40848
  if (options.timeout && options.timeout > 0) {
40810
40849
  timeoutId = setTimeout(() => {
40811
40850
  cleanup();
40812
- if (defaultValue !== void 0) return resolve9(defaultValue);
40851
+ if (defaultValue !== void 0) return resolve10(defaultValue);
40813
40852
  return reject(new Error("Input timeout"));
40814
40853
  }, options.timeout);
40815
40854
  }
@@ -40941,7 +40980,7 @@ async function interactivePrompt(options) {
40941
40980
  });
40942
40981
  }
40943
40982
  async function simplePrompt(prompt) {
40944
- return new Promise((resolve9) => {
40983
+ return new Promise((resolve10) => {
40945
40984
  const rl = readline.createInterface({
40946
40985
  input: process.stdin,
40947
40986
  output: process.stdout
@@ -40957,7 +40996,7 @@ async function simplePrompt(prompt) {
40957
40996
  rl.question(`${prompt}
40958
40997
  > `, (answer) => {
40959
40998
  rl.close();
40960
- resolve9(answer.trim());
40999
+ resolve10(answer.trim());
40961
41000
  });
40962
41001
  });
40963
41002
  }
@@ -40975,7 +41014,7 @@ function isStdinAvailable() {
40975
41014
  return !process.stdin.isTTY;
40976
41015
  }
40977
41016
  async function readStdin(timeout, maxSize = 1024 * 1024) {
40978
- return new Promise((resolve9, reject) => {
41017
+ return new Promise((resolve10, reject) => {
40979
41018
  let data = "";
40980
41019
  let timeoutId;
40981
41020
  if (timeout) {
@@ -41002,7 +41041,7 @@ async function readStdin(timeout, maxSize = 1024 * 1024) {
41002
41041
  };
41003
41042
  const onEnd = () => {
41004
41043
  cleanup();
41005
- resolve9(data.trim());
41044
+ resolve10(data.trim());
41006
41045
  };
41007
41046
  const onError = (err) => {
41008
41047
  cleanup();
@@ -41796,8 +41835,8 @@ function buildBuiltinGlobals(opts) {
41796
41835
  const asyncFunctionNames = /* @__PURE__ */ new Set();
41797
41836
  const scheduleFn = async (args = {}) => {
41798
41837
  try {
41799
- const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-R6JJIDZ6.mjs");
41800
- const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-AOMZV3Q3.mjs");
41838
+ const { handleScheduleAction: handleScheduleAction2, buildScheduleToolContext: buildScheduleToolContext2 } = await import("./schedule-tool-OIVJDIDK.mjs");
41839
+ const { extractSlackContext: extractSlackContext2 } = await import("./schedule-tool-handler-SJF4ZKSB.mjs");
41801
41840
  const parentCtx = opts.sessionInfo?._parentContext;
41802
41841
  const webhookData = parentCtx?.prInfo?.eventContext?.webhookData;
41803
41842
  const visorCfg = parentCtx?.config;
@@ -45421,4 +45460,4 @@ undici/lib/fetch/body.js:
45421
45460
  undici/lib/websocket/frame.js:
45422
45461
  (*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
45423
45462
  */
45424
- //# sourceMappingURL=chunk-B7XHSG3L.mjs.map
45463
+ //# sourceMappingURL=chunk-FTPLYUQ3.mjs.map