@midscene/core 1.7.6 → 1.7.7-beta-20260428102047.0

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.
@@ -49,12 +49,14 @@ export declare class ReportGenerator implements IReportGenerator {
49
49
  screenshotMode: 'inline' | 'directory';
50
50
  persistExecutionDump?: boolean;
51
51
  autoPrint?: boolean;
52
+ reuseExistingReport?: boolean;
52
53
  });
53
54
  static create(reportFileName: string, opts: {
54
55
  generateReport?: boolean;
55
56
  persistExecutionDump?: boolean;
56
57
  outputFormat?: 'single-html' | 'html-and-external-assets';
57
58
  autoPrintReportMsg?: boolean;
59
+ appendToExistingReport?: boolean;
58
60
  }): IReportGenerator;
59
61
  onExecutionUpdate(execution: ExecutionDump, reportMeta: ReportMeta, attributes?: ReportAttributes): void;
60
62
  flush(): Promise<void>;
@@ -530,6 +530,7 @@ export interface DeviceAction<TParam = any, TReturn = any> {
530
530
  interfaceAlias?: string;
531
531
  paramSchema?: z.ZodType<TParam>;
532
532
  call: (param: TParam, context: ExecutorContext) => Promise<TReturn> | TReturn;
533
+ delayBeforeRunner?: number;
533
534
  delayAfterRunner?: number;
534
535
  /**
535
536
  * An example param object for this action.
@@ -595,6 +596,11 @@ export interface AgentOpt {
595
596
  aiActContext?: string;
596
597
  aiActionContext?: string;
597
598
  reportFileName?: string;
599
+ /**
600
+ * Reuse and append to an existing report file with the same reportFileName.
601
+ * Default false (overwrite behavior).
602
+ */
603
+ appendToExistingReport?: boolean;
598
604
  reportAttributes?: ReportAttributes;
599
605
  modelConfig?: TModelConfig;
600
606
  cache?: Cache;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@midscene/core",
3
3
  "description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
4
- "version": "1.7.6",
4
+ "version": "1.7.7-beta-20260428102047.0",
5
5
  "repository": "https://github.com/web-infra-dev/midscene",
6
6
  "homepage": "https://midscenejs.com/",
7
7
  "main": "./dist/lib/index.js",
@@ -97,7 +97,7 @@
97
97
  "semver": "7.5.2",
98
98
  "undici": "^6.0.0",
99
99
  "zod": "^3.25.1",
100
- "@midscene/shared": "1.7.6"
100
+ "@midscene/shared": "1.7.7-beta-20260428102047.0"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@rslib/core": "^0.18.3",