Skip to content

Commit 7aa893d

Browse files
authored
docs(site): 0.25 changelog (#1014)
1 parent c0e647c commit 7aa893d

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

apps/site/docs/en/api.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Each Agent in Midscene has its own constructor.
1313
These Agents share some common constructor parameters:
1414

1515
- `generateReport: boolean`: If true, a report file will be generated. (Default: true)
16+
- `reportFileName: string`: The name of the report file. (Default: generated by midscene)
1617
- `autoPrintReportMsg: boolean`: If true, report messages will be printed. (Default: true)
1718
- `cacheId: string | undefined`: If provided, this cacheId will be used to save or match the cache. (Default: undefined, means cache feature is disabled)
1819
- `actionContext: string`: Some background knowledge that should be sent to the AI model when calling `agent.aiAction()`, like 'close the cookie consent dialog first if it exists' (Default: undefined)

apps/site/docs/en/changelog.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22

33
> For the complete changelog, please refer to: [Midscene Releases](https://github.com/web-infra-dev/midscene/releases)
44
5+
## v0.25 - 🚀 Support Using Images as AI Prompt Input
6+
7+
### 🎯 Core Function Enhancement
8+
- New worker runtime support, support running in worker environment
9+
- Support using images as AI prompt input, see [Prompting with images](./api.mdx#prompting-with-images)
10+
- Image processing upgrade, using Photon & Sharp for efficient image cropping
11+
12+
### 🌐 Web Integration Optimization
13+
- Get XPath by coordinates, improve cache reproducibility
14+
- Cache file moves plan module to the front, improving readability
15+
- Chrome Recorder supports exporting all events to markdown documents
16+
- agent supports specifying HTML report name, see [reportFileName](./api.mdx)
17+
18+
### 📱 Android Automation Enhancement
19+
- Long press gesture support
20+
- Pull-to-refresh support
21+
22+
### 🐞 Bug Fixes
23+
- Use global config to handle environment variables, avoid issues caused by multiple packaging
24+
- Manually construct error information when error object serialization fails
25+
- Fix playwright report type dependency declaration order issue
26+
- Fix MCP packaging issue
27+
28+
### 📚 Documentation AI-Friendly
29+
- [LLMs.txt](./llm-txt.mdx) is now available in both Chinese and English, making it easier for AI to understand
30+
- Each document now has a copy-to-markdown button, making it easier to feed to AI
31+
32+
### 🤖 Other Function Enhancement
33+
- Chrome Recorder supports aiScroll function
34+
- Refactor aiAssert to be consistent with aiBoolean
35+
536
## v0.24 - 🤖 MCP for Android Automation
637

738
### 🚀 MCP for Android Automation

apps/site/docs/zh/api.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Midscene 中每个 Agent 都有自己的构造函数。
1313
这些 Agent 有一些相同的构造参数:
1414

1515
- `generateReport: boolean`: 如果为 true,则生成报告文件。默认值为 true。
16+
- `reportFileName: string`: 报告文件的名称,默认值由 midscene 内部生成。
1617
- `autoPrintReportMsg: boolean`: 如果为 true,则打印报告消息。默认值为 true。
1718
- `cacheId: string | undefined`: 如果配置,则使用此 cacheId 保存或匹配缓存。默认值为 undefined,也就是不启用缓存。
1819
- `actionContext: string`: 调用 `agent.aiAction()` 时,发送给 AI 模型的背景知识,比如 '有 cookie 对话框时先关闭它',默认值为空。

apps/site/docs/zh/changelog.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
22

33
> 完整更新日志请参考:[Midscene Releases](https://github.com/web-infra-dev/midscene/releases)
44
5+
## v0.25 - 🚀 支持使用图像作为 AI prompt 输入
6+
7+
### 🎯 核心功能增强
8+
- 新增运行环境,支持运行在 Worker 环境
9+
- 支持使用图像作为 AI prompt 输入,详见 [使用图片作为提示词](./api.mdx#%E4%BD%BF%E7%94%A8%E5%9B%BE%E7%89%87%E4%BD%9C%E4%B8%BA%E6%8F%90%E7%A4%BA%E8%AF%8D)
10+
- 图像处理升级,采用 Photon & Sharp 进行高效图片裁剪
11+
12+
### 🌐 Web 集成优化
13+
- 通过坐标获取 XPath,提高缓存可复现性
14+
- 缓存文件将 plan 模块提到最前面,增加可读性
15+
- Chrome Recorder 支持导出所有事件到 markdown 文档
16+
- agent 支持指定 HTML 报告名称,详见 [reportFileName](./api.mdx)
17+
18+
### 📱 Android 自动化增强
19+
- 长按手势支持
20+
- 下拉刷新支持
21+
22+
### 🐞 问题修复
23+
- 使用全局配置处理环境变量,避免因多打包导致环境无法覆盖的问题
24+
- 当错误对象序列化失败时,手动构造错误信息
25+
- 修复 playwright 报告类型依赖声明顺序问题
26+
- 修复 MCP 打包问题
27+
28+
### 📚 文档 AI 友好
29+
- [LLMs.txt](./llm-txt.mdx) 区分中文与英文,方便 AI 理解
30+
- 每篇文档顶部新增按钮,支持复制为 markdown,方便喂给 AI 使用
31+
32+
### 🤖 其它功能增强
33+
- Chrome Recorder 支持 aiScroll 功能
34+
- 重构 aiAssert 使其与 aiBoolean 实现一致
35+
536
## v0.24 - 🤖 Android 自动化支持 MCP 调用
637

738
### 🚀 Android 自动化支持 MCP 调用

0 commit comments

Comments
 (0)