@checksum-ai/runtime 4.1.1-beta.6 → 4.1.1-beta.7

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/index.d.ts CHANGED
@@ -186,6 +186,8 @@ export enum AutoRecoveryMode {
186
186
  Regular = "regular",
187
187
  Fast = "fast",
188
188
  ExtraFast = "extra_fast",
189
+ // SYNC: mirror of packages/nodejs-lib/src/runtime/types.ts AutoRecoveryMode
190
+ OneShot = "one_shot",
189
191
  }
190
192
  export type RuntimeOptions = {
191
193
  /**
@@ -204,8 +206,38 @@ export type RuntimeOptions = {
204
206
  assertions: boolean;
205
207
  visualComparison?: boolean;
206
208
  skipTestsWithKnownBugs?: boolean;
207
- arMode?: AutoRecoveryMode;
209
+ arMode?: AutoRecoveryMode;
208
210
  arVersion?: 1|2;
211
+ /**
212
+ * OneShot mode only. When true, the one-shot agent suggests a fix instead
213
+ * of applying it to the browser. Defaults to false (apply + verify).
214
+ */
215
+ oneShotSuggestOnly?: boolean;
216
+ /**
217
+ * Override the auto-recovery model for the selected arMode. Useful to
218
+ * make OneShot accuracy-first, e.g. modelName: "claude_opus_4_8".
219
+ * SYNC: values mirror modelSelectionName in
220
+ * packages/nodejs-lib/src/agent-flow/types.ts.
221
+ */
222
+ modelName?:
223
+ | "claude_4"
224
+ | "claude_3.7"
225
+ | "claude_sonnet_4_6"
226
+ | "claude_opus_4_8"
227
+ | "gemini_2.5_pro"
228
+ | "gemini_2.0_flash"
229
+ | "gemini_2.5_flash"
230
+ | "gemini_2.5_flash_lite"
231
+ | "gemini_3.5_flash"
232
+ | "gpt_4o_mini"
233
+ | "gpt_4o_nano"
234
+ | "gpt_41_nano"
235
+ | "gpt_41_mini"
236
+ | "gpt_41"
237
+ | "o4_mini"
238
+ | "o3_mini"
239
+ | "gpt_5_mini"
240
+ | "gpt_5_nano";
209
241
  };
210
242
  /**
211
243
  * Add new assertions