WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。
docs: document GitHub/Gitee task discovery and session branching
Strange Leoea03a1c6c6ee
diff --git a/README.md b/README.mdindex 7e40bfd..5d3bbf5 100644--- a/README.md+++ b/README.md@@ -22,18 +22,18 @@- **成长计划与活跃状态**:国内版账号页查询成长任务进度、当日签到和活跃状态、连续活跃天数,以及 Buddy 解锁和旅行状态。- **Token 和积分用量统计页面**:按天查看 Token 与积分消耗,支持按账号筛选,并显示模型和账号用量排行。- **积分不足时的账号切换建议**:当前账号积分不足时提示可用账号,方便继续工作。-- **自动化任务**:从公开仓库发现并导入任务,或用自然语言让 WorkBuddy 创建任务;支持编辑、手动、事件和定时触发,以及运行日志、停止任务和 JSON / ZIP 导出。+- **自动化任务**:从 GitHub / Gitee 公开仓库发现并导入任务,或用自然语言让 WorkBuddy 创建任务;支持编辑、手动、事件和定时触发,以及运行日志、停止任务和 JSON / ZIP 导出。- **权限弹窗免打扰**:真正的零决策弹窗弹出,可以放心开启任务后睡觉。- **暂存提示词**:输入框边上一键把草稿「暂存」到待发送队列——图片 / 文件 / 引用原样保留,择机发送。- **切换精美主题**:内置毛玻璃官方主题,多套预设壁纸,支持自定义壁纸。- **账号间会话迁移**:自动或手动跨账号复制会话,跨账号继续接龙。+- **会话分支**:在「增强」页开启后,任意一条回复都能从此处开始新会话——复制到该条回复为止的聊天内容,原会话保持不变,可在当前工作区继续聊。- **模型切换更便捷**:解决 WorkBuddy 不支持添加多个同名模型的问题。- **防止电脑休眠**:睡前任务未完成,开启休眠模式,任务结束后自动切换成允许休眠。- **异常中断会话自动继续**:AI 回复因网络波动、超时等原因中断时,自动让异常中断任务继续执行。- **快捷短语**:常用语存进面板,输入框操作栏一键点发;----## 演示@@ -238,8 +238,8 @@ WorkBuddy 右下角的机器人按钮 → 弹出面板 → 选你要的操作:| **主题** | 切换默认 / WorkDaddy 主题,选择或上传壁纸、更换头像,调整毛玻璃和背景蒙版 || **会话** | 按账号和时间筛选会话,批量复制或删除,并设置会话 / 工作空间在切换账号时自动复制 || **模型** | 管理当前模型和备选模型,支持备份、复制、编辑、启用、连通测试及批量删除 |-| **增强** | 配置权限免打扰、异常中断自动续接、暂存提示词和快捷短语 |-| **自动化** | 从 Gitee 发现并导入任务、让 WorkBuddy 创建任务,管理触发方式与运行日志,以及 JSON / ZIP 导出 |+| **增强** | 配置权限免打扰、异常中断自动续接、会话分支、暂存提示词和快捷短语 |+| **自动化** | 从 GitHub / Gitee 发现并导入任务、让 WorkBuddy 创建任务,管理触发方式与运行日志,以及 JSON / ZIP 导出 || **电脑** | 允许或持续禁止休眠,也可在所有 AI 任务结束后自动恢复休眠 || **关于** | 查看版本和项目说明、检查并安装更新、控制脱敏错误诊断 || **设置** | 选择中文或英语;首次打开按系统语言匹配,未匹配时使用英语 |@@ -256,7 +256,19 @@ WorkBuddy 右下角的机器人按钮 → 弹出面板 → 选你要的操作:2. 设置触发方式:手动运行,或在客户端加载、打开面板、页面就绪、账号切换等事件发生时执行;也支持按间隔、每日、每周、每月或指定时间调度。3. 在列表中启用、停用、编辑或复制任务。手动任务可立即运行,事件和定时任务按配置触发;执行过程中可停止,并通过「运行日志」查看结果和失败步骤。-**任务导入导出**:通过「发现任务」从 Gitee 公开仓库导入,导入后保持停用,不覆盖相同 ID 的已有任务;不兼容任务会提示原因。通过批量操作选择任务导出,单个保存为 JSON,多个保存为 ZIP。+**任务导入导出**:通过「发现任务」从 GitHub / Gitee 公开仓库导入,导入后保持停用,不覆盖相同 ID 的已有任务;不兼容任务会提示原因。通过批量操作选择任务导出,单个保存为 JSON,多个保存为 ZIP。++#### 提交公开任务++「发现任务」收录 GitHub 和 Gitee 公开仓库中的任务,参考示例仓库 [`babygoton/workdaddy-official-plugin`](https://github.com/babygoton/workdaddy-official-plugin):++1. 克隆示例仓库,删掉 `tasks/` 目录里不需要的示例任务;+2. 把自己的自动化任务 JSON 放进 `tasks/` 目录(单个文件不超过 1 MiB,每个仓库最多收录 200 个);+3. 提交改动并推送到 GitHub 或 Gitee;+4. 在仓库描述(简介)里加入关键词 `WorkDaddyAutomationRepository`。++符合约定的仓库会在下一次刷新后出现在「发现任务」列表中(搜索结果有 10 分钟缓存)。导入只读取文件并做兼容性检查,不会执行任务;导入后保持停用,相同 ID 的已有任务不会被覆盖。+任务定义保存在本机,由 WorkDaddy 本地服务执行;定时和事件触发需要服务保持运行,涉及页面交互的步骤还需要对应 WorkBuddy 客户端可用。任务导出不包含账号备份或运行日志;自动化页不提供本地 JSON / ZIP 文件导入。diff --git a/README_en.md b/README_en.mdindex 3281d12..374431d 100644--- a/README_en.md+++ b/README_en.md@@ -37,11 +37,12 @@ It injects UI components into the running WorkBuddy renderer without patching or- **Daily credits:** daily check-in automation is disabled by default. On the first panel opening, a risk notice lets you enable the task or cancel. Either choice is saved locally and dismisses future notices; you can later enable or disable the task under Automations.- **Token and credit usage pages:** review daily token and credit consumption, filter by account, and view usage rankings by model and account.- **Credit-aware account suggestions:** when an account is running low on credits, WorkDaddy suggests another account you can use.-- **Automation tasks:** describe what you need and let WorkBuddy create a task, or edit the steps yourself. Supports manual, event, and scheduled triggers, run logs, stopping tasks, and JSON / ZIP import/export.+- **Automation tasks:** discover and import tasks from public GitHub and Gitee repositories, or describe what you need and let WorkBuddy create a task. Supports manual, event, and scheduled triggers, run logs, stopping tasks, and JSON / ZIP export.- **Quiet approval mode:** automatically handle supported permission prompts while you are away.- **Stash prompts:** send drafts to WorkBuddy's pending message queue while preserving images, files, and quotes for later use.- **Themes:** use the built-in frosted-glass theme, preset wallpapers, or your own backgrounds.- **Session migration:** copy sessions between accounts automatically or manually and continue working where you left off.+- **Session branching:** once enabled under Enhance, any reply can start a new conversation that keeps the chat up to that reply, while the original conversation stays untouched.- **Model tools:** manage and switch models more easily, including multiple configurations with the same model name.- **Sleep control:** keep the computer awake while AI tasks run, then allow normal sleep when they finish.- **Auto-continue:** automatically continue tasks interrupted by network fluctuations, timeouts, or similar failures.@@ -159,8 +160,8 @@ Click the robot button in the lower-right corner of WorkBuddy and choose a tab:| **Theme** | Switch between the default and WorkDaddy themes, choose or upload wallpapers, change avatars, and adjust blur and background overlays || **Sessions** | Filter by account and date, copy or delete in bulk, and configure automatic session or workspace copying when switching accounts || **Models** | Manage current and alternative models, including backups, copying, editing, enabling, connectivity tests, and bulk deletion |-| **Enhance** | Configure quiet approvals, auto-continue, prompt stashing, and quick phrases |-| **Automation** | Create and manage tasks, configure event or scheduled triggers, inspect run logs, stop running tasks, and import/export JSON or ZIP files |+| **Enhance** | Configure quiet approvals, auto-continue, session branching, prompt stashing, and quick phrases |+| **Automation** | Discover and import tasks from public repositories, create and manage tasks, configure event or scheduled triggers, inspect run logs, stop running tasks, and export JSON or ZIP files || **Computer** | Allow or prevent sleep, or restore normal sleep after all AI tasks finish || **About** | View version and project information, check for and install updates, and control redacted error diagnostics || **Settings** | Choose Chinese or English; the first launch follows the system language and falls back to English |@@ -171,13 +172,24 @@ Click the robot button in the lower-right corner of WorkBuddy and choose a tab:Save repetitive actions as tasks: daily check-ins, account credit queries, conditional reminders, or sending a message in a specific conversation and waiting for a reply.-1. Open **Automation** and use **Quick create** to choose an example, or **Create with WorkBuddy** to describe what you need. WorkBuddy generates the task in a new conversation and adds it to the list when finished. You can also use **New task** to edit the step JSON yourself; **View capabilities** lists the currently supported operations.+1. Open **Automation** and use **Discover tasks** to browse tasks published in public repositories, or **Create with WorkBuddy** to describe what you need. WorkBuddy generates the task in a new conversation and adds it to the list when finished. You can also use **New task** to edit the step JSON yourself; **View capabilities** lists the currently supported operations.2. Choose a trigger: run manually, or respond to events such as client loading, panel opening, page readiness, and account switching. Schedules support intervals, daily, weekly, monthly, and a specific date and time.3. Enable, disable, edit, or copy tasks from the list. Manual tasks can run immediately; event and scheduled tasks run according to their configuration. Stop a running task when needed and inspect **Run logs** for results and failed steps.-**Import and export:** choose **Import**, select a JSON or ZIP file, preview it, and select the tasks to import. Imported tasks remain disabled, existing tasks with the same ID are not overwritten, and incompatible tasks show the reason. Use bulk actions to select tasks for export: one task produces a JSON file, while multiple tasks produce a ZIP for backup or sharing.+**Import and export:** import tasks from public repositories through **Discover tasks**. Imported tasks remain disabled, existing tasks with the same ID are not overwritten, and incompatible tasks show the reason. Use bulk actions to select tasks for export: one task produces a JSON file, while multiple tasks produce a ZIP for backup or sharing.-Task definitions are stored locally and executed by the WorkDaddy daemon. Scheduled and event triggers require the daemon to remain running; steps that interact with a page also require the corresponding WorkBuddy client to be available. Task exports exclude account backups and run logs. Local file import/export is supported; an online task marketplace and automatic task updates are not yet available.+Task definitions are stored locally and executed by the WorkDaddy daemon. Scheduled and event triggers require the daemon to remain running; steps that interact with a page also require the corresponding WorkBuddy client to be available. Task exports exclude account backups and run logs. The Automation page does not import local JSON or ZIP files.++#### Submit public tasks++**Discover tasks** lists tasks from public GitHub and Gitee repositories. See [`babygoton/workdaddy-official-plugin`](https://github.com/babygoton/workdaddy-official-plugin) for the recommended layout:++1. Clone the example repository and remove the sample tasks you do not need.+2. Put your task JSON files in the `tasks/` directory (up to 1 MiB per file, up to 200 tasks per repository).+3. Commit and push to GitHub or Gitee.+4. Add the keyword `WorkDaddyAutomationRepository` to the repository description.++Repositories that follow this convention appear in **Discover tasks** after the next refresh (search results are cached for 10 minutes). Importing only reads the file and runs compatibility checks; imported tasks stay disabled and existing tasks with the same ID are not overwritten.### Move accounts to another computer