Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

docs: update plugin optimization plans

hairyfc76f3577ca98
diff --git a/docs/AGENTS.plugins.md b/docs/AGENTS.plugins.md
index c6ada67c..1c5147af 100644
--- a/docs/AGENTS.plugins.md
+++ b/docs/AGENTS.plugins.md
@@ -64,6 +64,7 @@ packages/<plugin>/
- `createAtomicFsStorage(base)` 从 `dsh-tauri` 根导入(宿主侧 unstorage fs + tmp+rename 原子写)。
- 后果:`dsh-tauri` 的 client bundle 是唯一内联三库的地方;其他插件 client 走外部 `dsh-tauri/client`,不重复内联。
- 纯 client 插件(dsh-tauri-panel / rightclick / ui 等)通常只需 `dsh-tauri` 一个依赖。
+- 通用 UI 只允许单向复用:消费插件从 `dsh-tauri-ui/client` 导入 `MenuSelect`、`styles` 和共享图标;`dsh-tauri-ui/client` 不得反向依赖消费插件。Gravity 图标由 `dsh-tauri-ui` 单点内联,消费插件禁止直接导入 `@gravity-ui/icons`。
## 基本技术约定
diff --git "a/docs/plugins/4.\344\274\230\345\214\226\350\256\241\345\210\222.alpha.plan.md" "b/docs/plugins/4.\344\274\230\345\214\226\350\256\241\345\210\222.alpha.plan.done.md"
similarity index 100%
rename from "docs/plugins/4.\344\274\230\345\214\226\350\256\241\345\210\222.alpha.plan.md"
rename to "docs/plugins/4.\344\274\230\345\214\226\350\256\241\345\210\222.alpha.plan.done.md"
diff --git "a/docs/plugins/5.\344\274\230\345\214\226\350\256\241\345\210\222.webhook-\351\233\206\346\210\220.\347\233\230\347\202\271.md" "b/docs/plugins/5.\344\274\230\345\214\226\350\256\241\345\210\222.webhook-\351\233\206\346\210\220.\347\233\230\347\202\271.done.md"
similarity index 100%
rename from "docs/plugins/5.\344\274\230\345\214\226\350\256\241\345\210\222.webhook-\351\233\206\346\210\220.\347\233\230\347\202\271.md"
rename to "docs/plugins/5.\344\274\230\345\214\226\350\256\241\345\210\222.webhook-\351\233\206\346\210\220.\347\233\230\347\202\271.done.md"
diff --git "a/docs/plugins/6.\344\274\230\345\214\226\350\256\241\345\210\222.worktree.md" "b/docs/plugins/6.\344\274\230\345\214\226\350\256\241\345\210\222.worktree.done.md"
similarity index 100%
rename from "docs/plugins/6.\344\274\230\345\214\226\350\256\241\345\210\222.worktree.md"
rename to "docs/plugins/6.\344\274\230\345\214\226\350\256\241\345\210\222.worktree.done.md"
diff --git "a/docs/plugins/8.\344\274\230\345\214\226\350\256\241\345\210\222.\345\206\205\347\275\256\346\217\222\344\273\266UI\346\224\266\346\225\233.md" "b/docs/plugins/8.\344\274\230\345\214\226\350\256\241\345\210\222.\345\206\205\347\275\256\346\217\222\344\273\266UI\346\224\266\346\225\233.md"
index ce7d3bf8..c20a4a34 100644
--- "a/docs/plugins/8.\344\274\230\345\214\226\350\256\241\345\210\222.\345\206\205\347\275\256\346\217\222\344\273\266UI\346\224\266\346\225\233.md"
+++ "b/docs/plugins/8.\344\274\230\345\214\226\350\256\241\345\210\222.\345\206\205\347\275\256\346\217\222\344\273\266UI\346\224\266\346\225\233.md"
@@ -1,6 +1,6 @@
# 内置插件 UI 收敛优化方案
-> 目标:消除 `packages/*` 之间从官方源码 / 彼此 Copy 的重复 UI 实现,把所有通用组件、通用样式变量统一收敛到 `dsh-tauri-ui` 的共享 `client` 面,其他插件经 `dsh-tauri-ui/client` 复用。官方组件可用的优先引用官方组件(Icon 除外)。本方案是**计划文档**,不含最终代码,供实施时对照执行。
+> 目标:消除 `packages/*` 之间从官方源码 / 彼此 Copy 的重复 UI 实现,把所有通用组件、通用样式变量统一收敛到 `dsh-tauri-ui` 的共享 `client` 面,其他插件经 `dsh-tauri-ui/client` 复用。官方组件可用的优先引用官方组件(Icon 除外)。本方案已进入实施阶段,以下清单继续作为代码与验收对照。
---
diff --git "a/docs/plugins/9.\344\274\230\345\214\226\350\256\241\345\210\222.\347\261\273\345\236\213\345\256\232\344\271\211\344\274\230\345\214\226.md" "b/docs/plugins/9.\344\274\230\345\214\226\350\256\241\345\210\222.\347\261\273\345\236\213\345\256\232\344\271\211\344\274\230\345\214\226.md"
index 2815675f..d8c40d82 100644
--- "a/docs/plugins/9.\344\274\230\345\214\226\350\256\241\345\210\222.\347\261\273\345\236\213\345\256\232\344\271\211\344\274\230\345\214\226.md"
+++ "b/docs/plugins/9.\344\274\230\345\214\226\350\256\241\345\210\222.\347\261\273\345\236\213\345\256\232\344\271\211\344\274\230\345\214\226.md"
@@ -180,4 +180,19 @@ packages/dsh-tauri/src/
- **`SessionListState` vs 手写 `SessionListSnapshot` 形状差异**:官方带 `subagentsByParent`、`jobsBySession`、
`currentAddress` 等富字段,替换后消费点可能需补齐读取;评估是否缩小替代(只取所需子面)。
- **`dsh-tauri` 是否把官方类型推进 `dependencies`?** 结论:**否**,只能 `devDependencies` + type-only;
- 若未来某插件 client 需要 `@deepseek-ai/*` 的运行时值,走 `dsh-tauri` 的 `dsh.client.inject` 注入而非直接 import。
\ No newline at end of file
+ 若未来某插件 client 需要 `@deepseek-ai/*` 的运行时值,走 `dsh-tauri` 的 `dsh.client.inject` 注入而非直接 import。
+
+---
+
+## 8. 本轮实施记录
+
+已完成第一轮类型收敛,覆盖 `dsh-tauri`、`dsh-tauri-session`、`dsh-tauri-panel-scheduler`、`dsh-tauri-worktree` 与 `dsh-tauri-rightclick`:
+
+- 新增 `packages/dsh-tauri/src/client/types/agent.ts`、`json.ts` 官方类型出口;`client/types/runtime.ts` 统一导出官方 session/workspace controller 类型,并删除重复 slots ambient augmentation,解决 `GlobalStandardProps.useSessions` 的 TS2717 冲突。
+- `packages/dsh-tauri/src/host/types/index.ts` 收口 HTTP fallback、HostContext 与官方 Agent/Session/Tools/Workspace/Llm 类型;官方包只进入 `devDependencies` 且均为 type-only。
+- 删除 `packages/dsh-tauri-panel-scheduler/src/types/dsh.d.ts`;scheduler 使用官方 `AgentHandle`、`Context`、`ModelSelection`、`ToolExecution`、`LlmRuntime`、`ToolDefinition` 与 `ContentBlock`,运行时 Agent/LLM/approval 仍通过 `loader.import()`。
+- `packages/dsh-tauri-session/src/client/types/runtime.ts` 改用官方 controller 投影,branded id 进入官方索引/方法时显式转换,并保留清晰命名的兼容别名。
+- `packages/dsh-tauri-worktree/src/client/types/runtime.ts` 与 `packages/dsh-tauri-rightclick/src/client/types/runtime.ts` 改为官方 controller 的 adapter 投影;桌面专属 `provideInfo`、`startSession`、输入动作和右键扩展协议保留在本地并明确标注,不再伪称官方。
+- 已生成并检查 `packages/dsh-tauri/dist/index.d.ts`、`packages/dsh-tauri/dist/client.d.cts` 以及五个迁移包的 declaration 输出;全 workspace 12 个包 typecheck 通过,根测试 35 个测试文件/254 项测试通过,相关 build/publint 通过。scheduler bundle 中的 `@deepseek-ai/*` 命中仅为 `loader.import()` 字符串,不是静态运行时 import。
+
+根 lint 仍存在本轮之外的桌面端既有错误;迁移涉及的类型与 host/client 源文件已单独 lint 通过。根测试依赖先执行 `pnpm build:plugins` 生成部署资源,本轮已执行该步骤并验证资源闭包测试通过。
\ No newline at end of file
diff --git "a/docs/plugins/\346\217\222\344\273\266\346\240\267\345\274\217\345\257\271\347\205\247.done.md" "b/docs/plugins/\346\217\222\344\273\266\346\240\267\345\274\217\345\257\271\347\205\247.done.md"
deleted file mode 100644
index 9ea289c9..00000000
--- "a/docs/plugins/\346\217\222\344\273\266\346\240\267\345\274\217\345\257\271\347\205\247.done.md"
+++ /dev/null
@@ -1,196 +0,0 @@
-# 定时任务面板 样式对照表(`dsch-*` → 官方控件复刻)
-
-> 状态:已完成(PR #317 控件官方化改造)
-> 关联插件:`dsh-tauri-panel-scheduler`(feat/scheduler @ dsh/panel-scheduler)
-> 核心版本:`[email protected]`(dev/dependencies/dsh)
-> 依赖:`@deepseek-ai/[email protected]`(仅 `dsh.client.inject` 注入,构建为 external,运行时走宿主 ModuleLoader)
-
----
-
-## 一、背景与原则
-
-### 1.1 起因
-
-用户要求把调度器面板的自绘控件(`.dsch-*` 自定义类 + `--dsw-alias-*` 令牌)换成**官方控件外观**,并点名了开发工具里看到的官方 CSS module hash 类名:
-
-- `.zGbnIq_input` / `.zGbnIq_iconButton` / `.zGbnIq_selectInput`(官方 `ModelsSection.module.css`,属 `dsh-client-ui-settings-models` 插件)
-- `.hVGvvW_selector`(官方 `LanguageRow.module.css`,属 `dsh-client-locale` 插件)
-- 参考实现:`dsh-tauri-session`(其 `archive-panel.tsx` / `menu-select.tsx`)
-
-### 1.2 调研结论(决定实现路径)
-
-1. 上述 hash 类名是**构建期生成的 CSS module hash**,仅在其所属插件加载(`<style data-plugin-css>` 注入)时才存在于全局 DOM,且依赖 ui-theme 插件的 `--dsw-*` 令牌;**跨版本不变性无保证**;
-2. `docs/AGENTS.plugins.md:223/250` 明确**禁止依赖生成的 CSS module hash**(DOM 补丁/选择器必须用稳定 slot、ARIA、插件前缀 class);
-3. `dsh-tauri-session` 参考实现**零处硬编码 hash**——用的是官方 primitives 组件 + 插件前缀类 + `--dsw-*` 令牌;
-4. `.hVGvvW_selector` 不是原生 `<select>`:它是 **pill 触发按钮 + primitives `Menu`**(官方 Select 模式)。
-
-**结论**:不引用字面 hash 类;把官方规则**逐字复制**到本插件自己的 css-render 样式表,改用稳定前缀类承载(`dsh-tauri-panel-scheduler-*`),下拉/弹窗用官方 primitives 组件(`Menu` / `Modal`)。视觉与官方一致,浅色/深色由令牌自动适配。
-
----
-
-## 二、控件级对照总览
-
-| 旧(自绘 `.dsch-*`) | 新 | 官方来源 | 使用位置 |
-| --- | --- | --- | --- |
-| `.dsch-searchWrap` + `.dsch-search` + `.dsch-searchIcon` | `K.searchWrap`(定位)+ `K.input`(官方 input 类)+ `K.searchIcon` | ModelsSection `.input` 值 | `scheduler-panel.tsx` 工具栏搜索框 |
-| `.dsch-iconBtn` | `K.iconButton`(28px 圆角 iconButton;危险色加 `K.iconButtonDanger`) | ModelsSection `.iconButton` | 刷新按钮;卡片「…」菜单锚点 |
-| `input`(任务名称;搜索框共用) | `K.input` | ModelsSection `.input` | `task-create-dialog.tsx` 名称字段 |
-| `.dsch-select` | `K.input` + `K.selectInput`(下箭头 modifier)+ `K.inlineSelect` / `K.inlineSelectAuto` | ModelsSection `.input` + `.selectInput` | 计划模式 / 时间段 / 间隔时长 / 星期 下拉 |
-| `textarea`(任务指令) | `K.textarea`(同 input 值 + textarea 标签、120px、竖直 resize) | ModelsSection `.input` 值扩展 | `task-create-dialog.tsx` 指令字段 |
-| `.dsch-composer` 下三个 select(workspace/mode/module) | `MenuSelect` 组件 = `K.selector`(pill 触发按钮)+ primitives `Menu`(portal, align=end) | LanguageRow `.selector` + 官方 Menu | `task-create-dialog.tsx` composer |
-| `.dsch-more` + `.dsch-menuPanel` + `.dsch-menuItem(.is-danger)` | primitives `Menu`(items:运行/暂停恢复/分隔/删除 danger) | 官方 Menu(session 参考) | `task-card.tsx` 卡片「…」菜单 |
-| `.dsch-mask` / `.dsch-dialog` / `.dsch-dialogHead` / `.dsch-dialogClose` / `.dsch-dialogFooter` | primitives `Modal`(title / description / closeLabel / footer) | 官方 Modal | `task-create-dialog.tsx` 外壳;`task-card.tsx` 删除确认 |
-| `.dsch-btn` / `.dsch-btn--primary` / `.dsch-btn--danger` | `K.btn` / `K.btnPrimary` / `K.btnDanger`(36px 胶囊,radius 18) | ModelsSection `.secondaryButton` / `.primaryButton` / `.dangerButton` | 工具栏「通过 Chat 创建 / 手动创建」;对话框「取消/保存」;删除确认 |
-| `.dsch-field` / `.dsch-fieldLabel` | `K.field` / `K.fieldLabel` | ModelsSection `.field` / `.fieldLabel` | 对话框字段包装 |
-| `.dsch-error` | `K.error` | ModelsSection `.error` | 面板/对话框错误提示 |
-
-> 行为语义保持不变:weekly 仍单选(`weekdays:[event.target.value]`)、保存中禁止关闭(`closeSafe` 经 `savingRef`)。
-
----
-
-## 三、布局类重命名(`dsch-*` → 插件前缀)
-
-类名前缀约定与 `dsh-tauri-session` 的 `SESSION_CLASSES` 一致:`dsh-tauri-panel-scheduler-<语义>`(`SCHEDULER_CLASSES` 常量,见 `client/constants/index.ts`)。纯布局类仅重命名,样式值不变。
-
-| 旧 | 新 | 复用范围 |
-| --- | --- | --- |
-| `.dsch-shell` | `K.shell` | 面板外壳(max-width 1080 居中) |
-| `.dsch-top` / `.dsch-heading h1, p` | `K.top` / `K.heading` | 页头 |
-| `.dsch-toolbar` | `K.toolbar` | 工具条 |
-| `.dsch-banner` | `K.banner` | 唤醒提示横幅 |
-| `.dsch-tabs` / `.dsch-tab` / `.is-on` | `K.tabs` / `K.tab` / `K.tabActive` | 双 tab |
-| `.dsch-cards` / `.dsch-card` / `.is-paused` | `K.cards` / `K.card` / `K.cardPaused` | 任务卡片网格 |
-| `.dsch-cardTitle` / `.dsch-cardMeta` / `.dsch-cardMetaText` | `K.cardTitle` / `K.cardMeta` / `K.cardMetaText` | 卡片内文 |
-| `.dsch-inline` / `.dsch-select--auto` | `K.inline` / `K.inlineSelectAuto` | 计划动态参数排布 |
-| `.dsch-empty` / `.dsch-muted` | `K.empty` / `K.muted` | 空态 / 次要文案 |
-| `.dsch-runsList` / `.dsch-runRow` / `.dsch-runName` / `.dsch-runTime` / `.dsch-runError` / `.dsch-chip` | `K.runsList` / `K.runRow` / `K.runName` / `K.runTime` / `K.runError` / `K.chip` | 执行记录 tab |
-
----
-
-## 四、官方样式值复刻(`client/styles/index.ts`,全部令牌化)
-
-以下值逐字取自官方编译产物(`node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js` = ModelsSection;`.../dsh-client-locale/lib/client.js` = LanguageRow),改由本插件 css-render 类承载;`--dsw-*` 令牌使浅/深色自动适配。
-
-### 4.1 input(官方 `.zGbnIq_input` 原值)
-
-```css
-/* K.input */
-box-sizing:border-box; border:.5px solid var(--dsw-alias-border-l4); width:100%; height:32px;
-font:inherit; background:var(--dsw-alias-bg-layer-1); color:var(--dsw-alias-label-primary);
-border-radius:8px; padding:0 10px; font-size:14px; line-height:22px;
-/* select 元素叠加(官方 select.zGbnIq_input) */
-cursor:pointer; max-width:240px;
-/* :focus */ border-color:var(--dsw-alias-brand-primary); outline:none;
-/* ::placeholder */ color:var(--dsw-alias-label-dimmed);
-/* :disabled */ opacity:.6; cursor:default;
-```
-
-### 4.2 selectInput(官方 `.zGbnIq_selectInput`——必须与 input 叠加)
-
-```css
-/* K.selectInput */
-appearance:none;
-background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
-background-position:right 12px center; background-repeat:no-repeat; background-size:12px 12px;
-padding-right:32px;
-```
-
-### 4.3 iconButton(官方 `.zGbnIq_iconButton`)
-
-```css
-/* K.iconButton */
-box-sizing:border-box; width:28px; height:28px; color:var(--dsw-alias-label-tertiary);
-cursor:pointer; background:transparent; border:none; border-radius:6px;
-justify-content:center; align-items:center; display:inline-flex;
-/* :hover:not(:disabled) */ background:var(--dsw-alias-interactive-bg-hover); color:var(--dsw-alias-label-primary);
-/* :disabled */ cursor:default; opacity:.4;
-/* K.iconButtonDanger:hover:not(:disabled) */
-background:var(--dsw-alias-interactive-bg-hover-danger); color:var(--dsw-alias-state-error-primary);
-/* :focus-visible(官方共用焦点环) */
-box-shadow:0 0 0 2px var(--dsw-alias-border-l3); outline:none;
-```
-
-### 4.4 36px 胶囊按钮(官方 `.zGbnIq_primaryButton` / `.secondaryButton` / `.dangerButton`)
-
-```css
-/* K.btn / K.btnPrimary / K.btnDanger 共用几何 */
-box-sizing:border-box; height:36px; font:inherit; cursor:pointer; border:none; border-radius:18px;
-justify-content:center; align-items:center; gap:4px; padding:0 14px; font-size:14px; line-height:22px; display:inline-flex;
-/* K.btn(secondary)*/ border:.5px solid var(--dsw-alias-border-l3); color:var(--dsw-alias-label-primary); background:transparent;
- :hover → background:var(--dsw-alias-interactive-bg-hover-solid);
-/* K.btnPrimary */ background:var(--dsw-alias-button-primary-fill); color:var(--dsw-alias-label-primary-foreground);
- :hover → background:var(--dsw-alias-button-primary-hover);
-/* K.btnDanger */ color:var(--dsw-alias-state-error-primary);
- :hover → background:var(--dsw-alias-interactive-bg-hover-danger);
-/* :disabled(共用) */ opacity:.4; cursor:default;
-/* :focus-visible(共用) */ box-shadow:0 0 0 2px var(--dsw-alias-border-l3); outline:none;
-```
-
-### 4.5 字段(官方 `.zGbnIq_field` / `.zGbnIq_fieldLabel`)
-
-```css
-/* K.field */ flex-direction:column; gap:6px; display:flex;
-/* K.fieldLabel */ color:var(--dsw-alias-label-secondary); align-items:center; gap:10px;
- font-size:12px; font-weight:500; line-height:18px; display:inline-flex;
-```
-
-### 4.6 selector pill(官方 LanguageRow `.hVGvvW_selector`,配 primitives `Menu`)
-
-```css
-/* K.selector(MenuSelect 触发按钮) */
-background:var(--dsw-alias-bg-module-platform); height:36px; font:inherit;
-color:var(--dsw-alias-label-primary); cursor:pointer; border:none; border-radius:18px;
-align-items:center; gap:12px; padding:0 14px; font-size:14px; line-height:22px; display:inline-flex;
-/* :hover */ background:var(--dsw-alias-interactive-bg-hover);
-/* K.selectorChevron */ flex:none; /* Menu 内下箭头 IconChevronDownOutline14 */
-```
-
-### 4.7 textarea(官方无 textarea 原语;按用户要求用 input 值 + textarea 标签)
-
-```css
-/* K.textarea = input 值 + 覆盖 */
-box-sizing:border-box; border:.5px solid var(--dsw-alias-border-l4); width:100%; height:auto; min-height:120px;
-font:inherit; background:var(--dsw-alias-bg-layer-1); color:var(--dsw-alias-label-primary);
-border-radius:8px; padding:10px; font-size:14px; line-height:1.55; resize:vertical; outline:none;
-/* :focus */ border-color:var(--dsw-alias-brand-primary);
-```
-
----
-
-## 五、组件替换说明
-
-### 5.1 `MenuSelect`(新增 `client/components/menu-select.tsx`)
-
-- 官方 Select 模式 = pill 触发按钮 + primitives `Menu`(portal, align=end, closeOnPointerLeave, selectedId 勾选);
-- 与 `dsh-tauri-session` 的 `menu-select.tsx` 同构,外围样式换成 `K.selector`;
-- 用于新建对话框 composer 的 workspace / mode / module 三项;空选项(`id:''`)带「未分组 / 默认模式 / 默认模型」文案进选项表,回选可重置。
-
-### 5.2 对话框外壳与删除确认 → primitives `Modal`
-
-- 新建对话框:`title`=`新建定时任务`、`description`=`dialogHint`、`closeLabel`=`close`、`footer`=取消/保存(官方 36px 按钮);
-- 关闭保护:Esc / 遮罩 / [X] 均走 `onClose={() => closeSafe()}`,`savingRef` 为真时忽略;
-- 卡片删除:Menu danger 项 → `Modal` 二次确认(新文案键 `deleteConfirmTitle` / `deleteConfirmBody`,zh/en),footer 取消 / 删除(`K.btnDanger`)。
-
-### 5.3 依赖接线(`package.json`)
-
-- `dsh.client.inject`:`["@deepseek-ai/dsh-client-ui-layout", "@deepseek-ai/dsh-client-ui-primitives", "dsh-tauri"]`(与 `dsh-tauri-session` 一致);
-- 不进入 `dependencies`——primitives 构建为 external(`dist/client.cjs` 仅 `window.__ModuleLoader__.load({id:'dsh-tauri-panel-scheduler',…})` 内 `e('@deepseek-ai/dsh-client-ui-primitives')` 单次引用),运行时从宿主 ModuleLoader 解析。
-
----
-
-## 六、约束与注意事项
-
-1. **禁止依赖生成的 CSS module hash**(`AGENTS.plugins.md:223/250`):不把 `.zGbnIq_*` / `.hVGvvW_*` 写进代码/选择器;控件值以插件前缀类 + 令牌承载。若审查方坚持字面 hash 类,需自行评估跨版本与插件常驻风险。
-2. **样式一律 css-render 对象节点**(`AGENTS.plugins.md:136`),mount 仅在 `apply()` 经 `ctx.effect`(`STYLES_EFFECT`),`STYLE_ID` 幂等守卫(`cssr.find`)。
-3. **插件前缀类**(`AGENTS.plugins.md:145`):`dsh-tauri-panel-scheduler-*`,避免跨插件 `.dsch-*` 撞名。
-4. **令牌注意**:`--dsw-alias-label-error` 在官方令牌集中**从未声明**(4 个官方插件样式表引用但解析无效);一律用 `--dsw-alias-state-error-primary`。
-5. **行为不改**:weekly 单选、时区(宿主本地时间)、键盘焦点陷阱、docstring 阈值(CodeRabbit 75%<80%)仍为遗留项,未在本轮处理。
-6. 改动后需 `pnpm build:plugins` 重建部署(`src-tauri/resources`),浏览器刷新即可;若 `pnpm run dev:web` 的 watcher 在跑,客户端插件改动会自动重打包(需确认该 watcher 存在)。
-
----
-
-## 七、门禁与产物
-
-- 门禁全绿:`pnpm run lint`(0 errors)· `pnpm run typecheck` · `pnpm run test -- --run`(22 files / 178 tests)· `pnpm build:plugins`(9 插件部署)· `pnpm build`(tsc + vite)。
-- 改动文件:`package.json`、`client/constants/index.ts`(+`SCHEDULER_CLASSES`)、`client/styles/index.ts`(重写)、`client/components/scheduler-panel.tsx`、`task-create-dialog.tsx`、`task-card.tsx`、`runs-tab.tsx`、`client/components/menu-select.tsx`(新增)、`client/locales/index.ts`(+2 键)。
-- 工作树干净(dist / `src-tauri/resources` 均被 gitignore,不入库)。
\ No newline at end of file
diff --git "a/docs/plugins/\345\256\240\347\211\251\350\256\276\347\275\256\351\241\265\351\235\242.md" b/docs/spec/PET_PLUGINS.md
similarity index 100%
rename from "docs/plugins/\345\256\240\347\211\251\350\256\276\347\275\256\351\241\265\351\235\242.md"
rename to docs/spec/PET_PLUGINS.md