@midscene/core 1.7.1 → 1.7.2

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.
@@ -15,7 +15,7 @@ export { restoreImageReferences, escapeContent, unescapeContent, parseImageScrip
15
15
  export type { IReportGenerator } from './report-generator';
16
16
  export { ReportGenerator, nullReportGenerator } from './report-generator';
17
17
  export { collectDedupedExecutions, ReportMergingTool, dedupeExecutionsKeepLatest, splitReportHtmlByExecution, } from './report';
18
- export { createReportCliCommands, type ReportCliCommandDefinition, type ReportCliCommandEntry, } from './report-cli';
18
+ export { createReportCliCommands, reportFileToMarkdown, splitReportFile, type ConsumeReportFileAction, type ReportFileToMarkdownOptions, type ReportCliCommandDefinition, type ReportCliCommandEntry, type SplitReportFileOptions, } from './report-cli';
19
19
  export { ScreenshotItem } from './screenshot-item';
20
20
  export { ScreenshotStore, type ScreenshotRef } from './dump/screenshot-store';
21
21
  export { executionToMarkdown, reportToMarkdown, type ExecutionMarkdownOptions, type ExecutionMarkdownResult, type ReportMarkdownResult, type MarkdownAttachment, } from './report-markdown';
@@ -17,5 +17,20 @@ export interface ReportCliCommandEntry {
17
17
  name: string;
18
18
  def: ReportCliCommandDefinition;
19
19
  }
20
+ export type ConsumeReportFileAction = 'split' | 'to-markdown';
21
+ export interface ConsumeReportFileOptions {
22
+ htmlPath: string;
23
+ outputDir: string;
24
+ }
25
+ export type SplitReportFileOptions = ConsumeReportFileOptions;
26
+ export type ReportFileToMarkdownOptions = ConsumeReportFileOptions;
27
+ export declare function splitReportFile(options: SplitReportFileOptions): {
28
+ executionJsonFiles: string[];
29
+ screenshotFiles: string[];
30
+ };
31
+ export declare function reportFileToMarkdown(options: ReportFileToMarkdownOptions): Promise<{
32
+ markdownFiles: string[];
33
+ screenshotFiles: string[];
34
+ }>;
20
35
  export declare function createReportCliCommands(): ReportCliCommandEntry[];
21
36
  export {};
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.1",
4
+ "version": "1.7.2",
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.24.3",
100
- "@midscene/shared": "1.7.1"
100
+ "@midscene/shared": "1.7.2"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@rslib/core": "^0.18.3",