feat: TransferRename 事件增加 source_path 源文件路径参数

在智能重命名事件中传递源文件路径,便于插件在重命名时获取待整理文件的原始路径信息。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
DDSRem
2026-04-03 06:55:06 +08:00
committed by jxxghp
co-authored by Claude Opus 4.6
parent 388afa8d3c
commit 60ac901c6c
2 changed files with 11 additions and 4 deletions
+2
View File
@@ -168,6 +168,7 @@ class TransferRenameEventData(ChainEventData):
rename_dict (dict): 渲染上下文
render_str (str): 渲染生成的字符串
path (Optional[Path]): 当前文件的目标路径
source_path (Optional[str]): 源文件路径,即待整理的文件路径
# 输出参数
updated (bool): 是否已更新,默认值为 False
@@ -179,6 +180,7 @@ class TransferRenameEventData(ChainEventData):
rename_dict: Dict[str, Any] = Field(..., description="渲染上下文")
path: Optional[Path] = Field(None, description="文件的目标路径")
render_str: str = Field(..., description="渲染生成的字符串")
source_path: Optional[str] = Field(None, description="源文件路径,即待整理的文件路径")
# 输出参数
updated: bool = Field(default=False, description="是否已更新")