Skip to content

Commit 3c75e37

Browse files
committed
chore: changelog 更新至 V2.4.1
1 parent f015e00 commit 3c75e37

File tree

4 files changed

+111
-66
lines changed

4 files changed

+111
-66
lines changed

docs/en/guide/changelog/2.1.0.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/en/guide/changelog/latest.md

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,69 @@
11
---
2-
title: V2.3.3
3-
published_at: 2025-07-15 08:00:00
2+
title: V2.4.1
3+
published_at: 2025-10-10 08:00:00
44
---
55

6-
## 2.1.6
6+
## 2.4.1
77

8-
**Assistant Features Update**
8+
# New Features
99

10-
- Introduced custom role mode: Define unique roles for assistants beyond coding support.
11-
- Directly @mention assistant tools in the input box for faster interaction.
12-
- Scripts are now automatically saved to the `scripts` folder under the Scripting App's documents folder for easier access and organization.
10+
Knowledge Base
11+
You can now import multiple files at once by selecting a directory.
1312

14-
**Bug Fixes**
13+
Assistant Tool
14+
Introduced a built-in query knowledge bases tool, enabling the Assistant to search associated knowledge bases when completing tasks.
1515

16-
- Fixed the issue where **file bookmarks weren't working properly**
17-
- Resolved documentation errors to improve clarity and accuracy
16+
ControlWidget (iOS 18+)
17+
Added ControlWidget, allowing you to place Button and Toggle controls in Control Center and assign scripts to handle their logic.
1818

19-
:::details{title=Recent Major Updates}
19+
Custom Keyboard
20+
Added the CustomKeyboard API to create and present your own keyboard UI, handle input events, and insert text programmatically.
2021

21-
**Assistant Tools Migration**
22+
Bluetooth APIs
23+
Introduced BluetoothCentralManager and BluetoothPeripheralManager APIs. Build end-to-end Bluetooth experiences, including scanning, connecting, reading/writing GATT characteristics, subscribing to notifications, advertising, and exposing custom services/characteristics.
2224

23-
- Most importantly, assistant tools have been fully migrated to scripts. You can now **directly create assistant tool scripts through the assistant**, unlocking new levels of flexibility and automation.
25+
Added layoutPriority View Modifier
26+
Introduced support for the layoutPriority view modifier, allowing developers to control how space is distributed among sibling views when layout constraints are tight. This behavior is consistent with SwiftUI’s native layoutPriority(\_:).
2427

25-
**Easier Script Saving from Other Apps**
28+
Introduced modifiers Property and ViewModifiers System
29+
A new modifiers property, along with the ViewModifiers class and the modifiers() helper function, has been added to enable fluent, chainable application of view modifiers.
30+
This system supports applying the same type of view modifier multiple times (e.g., repeated padding() or background() calls) and ensures modifiers are applied in the exact order they are chained, closely mirroring the behavior of SwiftUI.
2631

27-
- You can now quickly save scripts to the Scripting App from other apps like browsers.
32+
SVG Rendering
33+
Added a new SVG rendering component to display vector graphics seamlessly.
2834

29-
**Widget Preview Enhancements**
35+
Custom Fonts
36+
Now supports using fonts installed via the system or third-party apps.
3037

31-
- Widgets in the preview page are now interactive and properly refresh their UI, providing a more accurate and testable preview experience.
38+
# Improvements
3239

33-
**Script Execution & URL Schemes**
40+
Request API
41+
Added an allowInsecureRequest field to RequestInit / Request for controlling whether insecure requests are permitted.
3442

35-
- Added `Script.createDocumentationURLScheme` and `Script.createRunSingleURLScheme` to generate custom deep links for your scripts.
36-
- `Script.run(options)` now supports the `singleMode` parameter to control script execution mode.
37-
- The "Run in App" action in the Shortcuts app also supports configuring `singleMode`.
43+
Location API
44+
Location.requestCurrent now returns cached location data by default if available.
45+
Added a new optional parameter options.forceRequest to always fetch the latest location.
3846

39-
:::
47+
Developer Server
48+
The dev server now remembers and records the last connected address for faster reconnections.
49+
50+
Storage Enhancements
51+
set, get, contains, remove, setData, and getData now accept an optional options.shared parameter for working with shared storage, which is accessible across all scripts for easier cross-script functionality.
52+
53+
Fixes
54+
Assistant Tool Calls
55+
Fixed an issue where the Assistant could misparse tool parameters when invoking tools, improving reliability of tool execution.
56+
57+
Photos API
58+
Fixed an issue where dismissing the Photos.pickPhotos sheet by swiping down would not resolve the promise.
59+
60+
HealthKit Permissions
61+
Fixed an issue where requesting Health permissions did not trigger the authorization dialog.
62+
63+
Script Advanced Settings
64+
Fixed an error when renaming a script in the Advanced Settings page, which could cause a refresh failure after saving.
65+
66+
# Changes
67+
68+
API Providers
69+
Removed the Pollinations.AI API provider.

docs/zh/guide/changelog/2.1.0.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/zh/guide/changelog/latest.md

Lines changed: 59 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,76 @@
11
---
2-
title: V2.3.3
3-
published_at: 2025-07-15 08:00:00
2+
title: V2.4.1
3+
published_at: 2025-10-10 08:00:00
44
---
55

6-
## 2.1.6
6+
## 2.4.1
77

8-
**助手功能更新**
8+
# 新功能
99

10-
- 引入 自定义角色模式:为助手定义超出编码支持之外的独特角色。
11-
- 在输入框中直接 @助手工具,以便更快地进行交互。
12-
- 脚本现在会自动 保存到 Scripting App 文档文件夹下的 `scripts` 文件夹中,以便更轻松地访问和组织。
10+
知识库
11+
您现在可以通过选择一个目录一次性导入多个文件。
1312

14-
**Bug 修复**
13+
助手工具
14+
引入了内置的查询知识库工具,使助手在完成任务时可以搜索相关知识库。
1515

16-
- 修复了 **文件书签无法正常工作** 的问题
17-
- 解决了文档错误,以提高清晰度和准确性
16+
控制中心小组件(iOS 18 及以上)
17+
新增了 ControlWidget,允许您将按钮和切换控件添加到控制中心,并分配脚本来处理其逻辑。
1818

19-
:::details{title=近期重大更新}
19+
自定义键盘
20+
新增 CustomKeyboard API,用于创建和展示自定义键盘界面、处理输入事件,并以编程方式插入文本。
2021

21-
**助手工具迁移**
22+
蓝牙 API
23+
引入了 BluetoothCentralManager 和 BluetoothPeripheralManager API。可构建完整的蓝牙交互体验,包括扫描、连接、读写 GATT 特征、订阅通知、广播以及提供自定义服务/特征。
2224

23-
- 最重要的是,助手工具已完全迁移到脚本中。您现在可以 **直接通过助手** 创建助手工具脚本,从而解锁新的灵活性和自动化水平。
25+
新增 layoutPriority 视图修饰符
26+
新增对 layoutPriority 视图修饰符的支持,使开发者能够在布局受限时控制兄弟视图之间的空间分配方式。该行为与 SwiftUI 的 layoutPriority(\_:) 保持一致。
2427

25-
**更轻松地从其他 App 保存脚本**
28+
引入 modifiers 属性和 ViewModifiers 系统
29+
新增了 modifiers 属性、ViewModifiers 类和 modifiers() 辅助函数,支持流畅、链式地应用视图修饰符。
30+
该系统支持多次应用同类型的修饰符(例如重复调用 padding() 或 background()),并确保修饰符严格按照链式顺序生效,贴近 SwiftUI 的行为。
2631

27-
- 您现在可以从浏览器等其他 App 快速将脚本保存到 Scripting App。
32+
SVG 渲染
33+
新增 SVG 渲染组件,可无缝显示矢量图形。
2834

29-
**小组件预览增强**
35+
自定义字体
36+
现在支持使用系统或第三方应用安装的字体。
3037

31-
- 预览页面中的小组件现在可以交互并正确刷新其 UI,从而提供更准确和可测试的预览体验。
38+
---
39+
40+
# 改进
41+
42+
请求 API
43+
RequestInit / Request 新增 allowInsecureRequest 字段,用于控制是否允许不安全的请求。
44+
45+
定位 API
46+
Location.requestCurrent 现在默认返回缓存的位置数据(如果可用)。
47+
新增可选参数 options.forceRequest,用于始终获取最新位置。
48+
49+
开发者服务器
50+
开发者服务器现在会记住并记录上次连接的地址,以加快重新连接速度。
51+
52+
存储增强
53+
set、get、contains、remove、setData 和 getData 现在支持可选参数 options.shared,用于跨脚本访问共享存储,方便实现跨脚本功能。
54+
55+
---
56+
57+
# 修复
58+
59+
助手工具调用
60+
修复了助手在调用工具时可能错误解析参数的问题,提高了工具执行的可靠性。
61+
62+
照片 API
63+
修复了通过下滑手势关闭 Photos.pickPhotos 窗口时不会正确结束 promise 的问题。
3264

33-
**脚本执行 & URL Schemes**
65+
健康数据权限
66+
修复了请求 Health 权限时未弹出授权对话框的问题。
67+
68+
脚本高级设置
69+
修复了在“高级设置”页面重命名脚本时出现的错误,该错误可能导致保存后刷新失败。
70+
71+
---
3472

35-
- 添加了 `Script.createDocumentationURLScheme``Script.createRunSingleURLScheme`,用于为您的脚本生成自定义深度链接。
36-
- `Script.run(options)` 现在支持 `singleMode` 参数来控制脚本执行模式。
37-
- 快捷指令 APP 的“在 App 中运行”操作也支持配置 `singleMode`.
73+
# 变更
3874

39-
:::
75+
API 提供方
76+
移除了 Pollinations.AI API 提供方。

0 commit comments

Comments
 (0)