@probelabs/visor 0.1.87 → 0.1.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sdk/sdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CheckExecutionEngine,
3
3
  logger
4
- } from "./chunk-VQGP55ZL.mjs";
4
+ } from "./chunk-N34GS4A5.mjs";
5
5
  import "./chunk-FIL2OGF6.mjs";
6
6
  import {
7
7
  ConfigMerger
@@ -253,6 +253,11 @@ var init_config_schema = __esm({
253
253
  type: ["string", "boolean"],
254
254
  description: "Check name to reuse AI session from, or true to use first dependency (only works with depends_on)"
255
255
  },
256
+ session_mode: {
257
+ type: "string",
258
+ enum: ["clone", "append"],
259
+ description: "How to reuse AI session: 'clone' (default, copy history) or 'append' (share history)"
260
+ },
256
261
  fail_if: {
257
262
  type: "string",
258
263
  description: "Simple fail condition - fails check if expression evaluates to true"
@@ -1784,6 +1789,22 @@ var ConfigManager = class {
1784
1789
  }
1785
1790
  }
1786
1791
  }
1792
+ if (checkConfig.session_mode !== void 0) {
1793
+ if (checkConfig.session_mode !== "clone" && checkConfig.session_mode !== "append") {
1794
+ errors.push({
1795
+ field: `checks.${checkName}.session_mode`,
1796
+ message: `Invalid session_mode value for "${checkName}": must be 'clone' or 'append'`,
1797
+ value: checkConfig.session_mode
1798
+ });
1799
+ }
1800
+ if (!checkConfig.reuse_ai_session) {
1801
+ errors.push({
1802
+ field: `checks.${checkName}.session_mode`,
1803
+ message: `Check "${checkName}" has session_mode but no reuse_ai_session. session_mode requires reuse_ai_session to be set.`,
1804
+ value: checkConfig.session_mode
1805
+ });
1806
+ }
1807
+ }
1787
1808
  if (checkConfig.tags !== void 0) {
1788
1809
  if (!Array.isArray(checkConfig.tags)) {
1789
1810
  errors.push({