@linxin666/dsh-client-ui-task-board 0.4.14 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +2 -2
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/lib/client.js +40 -254
- package/lib/client.js.map +1 -1
- package/lib/index.js +37 -1
- package/lib/types/client/board/ExecutionLog.d.ts +8 -0
- package/lib/types/client/locales.d.ts +1 -0
- package/lib/types/client/plugin-card-seat.d.ts +1 -1
- package/lib/types/core/subtask.d.ts +31 -0
- package/lib/types/host-runner.d.ts +9 -0
- package/lib/types/host-service.d.ts +8 -0
- package/lib/types/index.d.ts +1 -1
- package/package.json +28 -28
- package/src/client/board/ExecutionLog.tsx +15 -1
- package/src/client/index.ts +0 -10
- package/src/client/locales.ts +2 -0
- package/src/client/plugin-card-seat.ts +2 -2
- package/src/core/subtask.ts +36 -0
- package/src/host-runner.ts +21 -1
- package/src/host-service.ts +9 -0
- package/src/index.ts +19 -2
- package/lib/types/client/suppress-schedule-row.d.ts +0 -86
- package/src/client/suppress-schedule-row.ts +0 -198
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 31f9272645c1b7021a8084616cd4434ca6cd4a0f
|
|
6
|
+
README.zh.md: 4e7e5dd56415b1bc913d9125a68b73da5ff58a8f
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -27,7 +27,7 @@ A hot-pluggable DeepSeek Harness (DSH) Web GUI and official desktop client task
|
|
|
27
27
|
Cards keep multi-line title and description previews with visible metadata. Previews strip Markdown formatting; task details render description and prompt as safe Markdown without raw HTML or automatic remote images, and content taller than about eight rendered lines is clamped to a fixed height with a fade hint and a "Show more" toggle that expands and collapses it, while shorter content renders untouched with no toggle. Stored task text is unchanged. A bracketed title prefix such as `[Bug]:` renders as a type badge, and the description preview skips issue-form boilerplate (checkbox lists, section headings, empty-field placeholders), preferring a summary section when one exists. A left stripe shows the latest run (running, succeeded, failed, cancelled); a card whose column disagrees with that run is labelled as set by hand. Each column shows the time its cards differ by — created in Backlog/To Do, started while running, settled in Done/Failed — read in the Host time zone. The latest execution session opens straight from the card. Every column header toggles compact single-line cards (Done starts compact, the choice is stored in the browser). All five columns and the archive first group cards by provider source — full `owner/repository` labels for GitHub — with unclaimed cards in Local tasks; source groups sort by label and their fold choices persist per browser. Done source groups start collapsed while the other columns and the archive start expanded, and search always reveals matching groups. Done, Failed and the archive nest Today / Last 7 days / Earlier within each source group and fold the oldest group once that source holds more than 30 cards, unless a search is active.
|
|
28
28
|
|
|
29
29
|
- **Task board UI**: the board is the shell's own center-column panel — like the desktop application's Plugins page, it contributes a row to the shell's official sidebar panel list and a page to the layout's center-column seat, so row geometry, the active highlight, the collapsed rail, the label, and language switching are the shell's to own; the board provides five kanban columns, search, task details, archive/restore, execution history, and links to execution transcripts. Every column is reachable by hand, by dragging a card or from the detail view's move menu: the move writes the column and no execution record, so Done or Failed declares work that finished (or failed) outside a tracked run and Running parks work that is under way without a session, while a card the runner is actually executing refuses every move until it settles. Archived tasks are read-only except for restore, delete, and transcript viewing, and cannot run manually or on schedule until restored.
|
|
30
|
-
- **
|
|
30
|
+
- **Two complementary automation entries**: the shell's official *Automation tasks* page manages reminders and timed prompts in the Host Schedule service, while *Task board* manages cards, subtasks, real Session execution, cron, acceptance, and execution history. Both entries stay available so the user can choose the task shape; the board neither hides nor takes over the official page.
|
|
31
31
|
- **Detail layout and folds**: the task detail is two columns on a wide viewport — the left holds the task itself (description, execution prompt, labels, subtasks, frozen snapshot, handover bundle) and the right holds how this run will run (execution settings, scheduled runs, execution history, status); a narrow viewport falls back to one column in the same order. Workspace, agent preset, permission, model, and reasoning effort stay visible, while the three card-level switches (continue in the same conversation, start with /goal, skip this task's acceptance) fold into one "Advanced" row that echoes the switches that are on while it is closed, so the card's shape is readable without expanding it. Scheduled runs and execution history each take one fold row: the schedule row says whether a rule is armed and when it next fires, the history row says how many runs there are and what the latest one did, and the list itself shows the five most recent runs until it is expanded; an acceptance report shows one verdict badge on its row and the verdict, judge route, per-criterion scores, and findings only once expanded. The permission gate and the current status never fold. The view uses three type sizes (title, body, meta), status and result badges share one filled slot scale, and every fold row and button carries a hit target of at least 44 pixels.
|
|
32
32
|
- **Continuation cards (data plane)**: a new task may paste a `<<<FREEZE ... >>>FREEZE` block from a session; it parses into a goal/progress/next snapshot persisted with the task (ledger v3). Cards carry a frozen badge, the detail view shows the full snapshot and freeze time, search covers snapshot text, and archive/restore matches plain tasks. The snapshot reuses the freeze security gate at the protocol layer: sensitive patterns become `[REDACTED]` with a marker, slash-prefixed command lines reject the whole snapshot, and each field is capped at 8 KiB.
|
|
33
33
|
- **Handover bundles and the permission confirmation gate**: a continuation card may attach a handover bundle — the pinned execution triplet (workspace / agent preset / permission) plus doc/script references. The bundle's triplet overrides the plain pin fields at execution, and the references ride the prompt as a handover preamble. A binding whose effective permission is above the deployment's permission baseline — the Host's own default permission preset unless the profile pins `sessionDefaultPermission` — is unconfirmed: manual run refuses, cron skips the card and rolls to the next occurrence, and the confirm button in the task detail resolves the binding; any later permission or bundle change re-arms the gate.
|
|
@@ -35,7 +35,7 @@ Cards keep multi-line title and description previews with visible metadata. Prev
|
|
|
35
35
|
- **Task tags (issue #1521)**: a task may carry up to eight labels. A label renders as a colour-toned badge on the card — the tone is hashed from the name, so one label always paints the same way and no colour is stored — the board header gains a multi-select tag filter built from every label in use (including archived tasks), and search also matches label names. A label with an "execution hint" is injected ahead of the execution prompt on every run as a `标签提示` block; a label without one is display and filter only, so an untagged task's prompt is byte-for-byte what it was before the feature. Labels stay editable after the first run: they classify the task and shape the next run, they are not the record of what already ran. A **Manage labels** action on the filter row opens the label manager: every label in use with the number of tasks carrying it, a rename that rewrites the label on every card (merging into an existing label of that name and keeping that label's execution hint), and a delete that removes it from every task including archived ones. Both are ledger-wide Host transactions, so several windows looking at one board stay consistent.
|
|
36
36
|
- **Label cleanup**: a **Cleanup** row in the label manager takes a threshold (5 by default, 1 to 99) and removes the labels the board has stopped using. A label is a candidate when fewer than that many tasks carry it and every one of those tasks is already done or failed; archived cards count on the same terms, so an archived card that settled lets its label go while a card that is archived and still unfinished keeps it. Cleanup works out its candidates before it writes anything: with none it only says so and leaves the ledger alone, and with some it opens the confirm dialog listing each label with its task count, after which each of them goes through the same ledger-wide delete the manager's own delete button uses. The label leaves every card including archived ones, its execution hint goes with it, and no task is otherwise touched; the removal cannot be undone.
|
|
37
37
|
- **Subtasks and parent-card dispatch**: a task can be given subtasks, either by creating one from its detail view (the form starts from the parent's workspace, preset, permission, and model, and each stays overridable) or by linking an existing task that has no parent yet; a subtask can be detached again once it is not running. The lineage gate lives in the Host: the parent must exist and be on board, a task can never be attached under one of its own descendants, and a tree may not exceed the configured `maxSubtaskDepth` (1 by default, 3 maximum). Running a card opens one session for that card and none for its subtasks, and running a subtask directly is the same operation: that card is the root of the run even when it carries a parent and subtasks of its own, and nothing under it is expanded. A subtask already in the done column is outside the run's dispatch set, so finishing subtasks one by one and then running the parent costs one session instead of a repeat of the tree; move it back to the todo column to have it dispatched again. The board marks parent and subtask cards, the detail view lists the direct subtasks and says what one run will do, and the header offers a one-click hide-subtasks filter.
|
|
38
|
-
- **Parent-card dispatch and subtask accounting**: clicking a card that carries unfinished subtasks opens that card's own session and nothing else. The run is forced under the `liangshen` dispatcher preset shipped by `packages/dsh-liangshen`, the card's stored agent preset is never rewritten, and session reuse is skipped so the run mints a fresh session; a deployment that registers no `liangshen` preset fails the run closed, with that missing preset as the reason on the card. The prompt names every unfinished subtask with its title, task id, and status, states that no session is opened for them, and asks the session to read each card with `task_board_get`, dispatch it with `subagent` in dependency order (independent ones may run together), and write each conclusion back with `task_board_manage({action:'record-external-outcome'})` before it finishes. A conclusion the session never wrote back is supplied by the Host when the card's own run ends: every still-unrecorded unfinished subtask inherits that verdict as an external record whose initiator reads `parent-run:<card id>` and whose reason says the card ran no session of its own and inherited the parent run's conclusion. The backfill is idempotent, and a cancelled parent writes nothing. A card with no unfinished subtask is unaffected.
|
|
38
|
+
- **Parent-card dispatch and subtask accounting**: clicking a card that carries unfinished subtasks opens that card's own session and nothing else. The run is forced under the `liangshen` dispatcher preset shipped by `packages/dsh-liangshen`, the card's stored agent preset is never rewritten, and session reuse is skipped so the run mints a fresh session; a deployment that registers no `liangshen` preset fails the run closed, with that missing preset as the reason on the card, and so does a deployment running the legacy Agent Teams runtime, where that preset cannot orchestrate and would stop to await a reply an unattended run never gets: the run is refused before any session exists, and the card carries the reason naming the exit. The prompt names every unfinished subtask with its title, task id, and status, states that no session is opened for them, and asks the session to read each card with `task_board_get`, dispatch it with `subagent` in dependency order (independent ones may run together), and write each conclusion back with `task_board_manage({action:'record-external-outcome'})` before it finishes. A conclusion the session never wrote back is supplied by the Host when the card's own run ends: every still-unrecorded unfinished subtask inherits that verdict as an external record whose initiator reads `parent-run:<card id>` and whose reason says the card ran no session of its own and inherited the parent run's conclusion. The backfill is idempotent, and a cancelled parent writes nothing. A card with no unfinished subtask is unaffected.
|
|
39
39
|
- **Project partition (issue #1536)**: the board header offers a project row built from the deployment's DSH workspaces — "all projects" plus one entry per registered project. Selecting a project narrows the columns to the tasks pinned to it, and tasks with no pinned workspace stay visible under "all projects". Opening the new-task form while a project is open preselects that project as the task's workspace, and "new project…" registers a host directory through the same runtime call the GUI's own add-project uses. A root task created without a project choice — from the form or through the board's agent tool — inherits the workspace of the session that created it, and a card that still pins nothing runs in the deployment's most recently used workspace instead of the Host's own working directory.
|
|
40
40
|
- **AI parse of pasted text (issue #1540)**: the new-task form takes text copied from anywhere and has a model turn it into the title, description, and run prompt. The model is one of the deployment's configured models (the same list the task's model pin uses, first entry preselected), and the call runs on the Host behind the board's usual loopback and same-origin fence, with a 45 s budget and a cancel affordance. The draft only fills the form: nothing is created until the task is submitted, and a failed parse leaves what you already typed untouched.
|
|
41
41
|
- **Collapsible task form**: the create/duplicate/subtask dialog groups its configuration into collapsible regions — task content open by default, then labels, execution settings, run mode, handover, and scheduled runs — and every collapsed region keeps a one-line summary of the values it holds, so the dialog fits without a scrollbar (its body keeps an overflow fallback for very short windows). The agent-preset field is named "Agent preset" and lists the deployment's built-in presets under localized names plus any user preset, with an inherit default that names the preset a run without a pin actually uses.
|
package/README.zh.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
卡片保留多行标题、描述预览及可见的元数据。预览去除 Markdown 标记,详情中的描述与 Prompt 按安全 Markdown 渲染,不执行原始 HTML 或自动加载远程图片;超过约八行的内容默认按固定高度钳制并带渐隐提示,点「展开全文」展开、可再收起,未超出的内容原样渲染且无切换按钮。任务原文保持不变。标题开头的方括号前缀(如 `[Bug]:`)渲染为类型徽章,描述预览跳过 Issue 表单的模板内容(勾选列表、小节标题、空字段占位),存在摘要类小节时优先取它。卡片左侧色条显示最近一次执行(运行中、成功、失败、取消);所在列与该次执行不一致的卡片标注为手动结算。每列显示能区分卡片的时间——待规划/待办为创建时间、运行中为开始时间、已完成/已失败为结算时间——按 Host 时区读取。最近一次执行的会话可直接从卡片打开。每个列头都可切换紧凑单行卡片(已完成列默认紧凑,选择保存在浏览器中)。五个主列与归档先按提供方来源分组——GitHub 显示完整 `owner/repository`——未被提供方认领的卡片进入「本地任务」组;来源组按名称排序,折叠选择按浏览器保存。已完成的来源组默认折叠,其他主列与归档默认展开,搜索总会露出命中的分组。已完成、已失败与归档在每个来源组内部再按「今天 / 近 7 天 / 更早」分组,该来源超过 30 张卡时折叠最早一组,搜索时不折叠。
|
|
28
28
|
|
|
29
29
|
- **任务看板 UI**:看板是 shell 自己的中栏面板——它像桌面版【插件】页那样,向 shell 的官方侧栏面板列表贡献一行、向布局的中栏座位贡献一页,因此行的几何、选中高亮、折叠 rail、标签与语言切换都由 shell 统一负责;看板提供五列布局、搜索、任务详情、归档/恢复、执行历史和执行会话跳转。五列都可以手工切换:拖拽卡片或从详情页的「移动到…」菜单切换状态,只写列、不产生执行记录——「已完成」「已失败」声明工作在受追踪的执行之外结束(或失败),「进行中」则表示工作正在进行但没有对应会话;真正在执行中的卡片在结算前拒绝任何移动。归档任务除恢复、删除和查看 transcript 外保持只读,恢复前不能手动或定时执行。
|
|
30
|
-
-
|
|
30
|
+
- **两个互补的自动化入口**:shell 官方「自动化任务」页管理 Host Schedule 服务里的提醒与定时提示;「任务看板」管理卡片、子任务、真实会话执行、cron、验收与执行历史。两个入口同时保留,用户可按任务形态选择,看板不会隐藏或接管官方页面。
|
|
31
31
|
- **任务详情的布局与折叠**:任务详情在宽视口上是双栏——左栏是任务本身(描述、执行 Prompt、标签、子任务、冻结快照、交接包),右栏是这次执行会怎么跑(执行设置、定时运行、执行记录、状态);窄视口按同一顺序退回单栏。执行设置里的工作区、Agent 预设、权限、模型与思考档位常驻可见,三个卡片级开关(同一对话继续、以 /goal 开始执行、跳过本任务的验收)收进一行「高级设置」,收起时在行上回显已开启项,因此不展开也知道这张卡会怎么跑。定时运行与执行记录各占一行折叠:定时行说明是否启用与下次触发时刻,执行记录行说明次数与最近一次结果,记录本身默认只列最近五次,展开才看全部;每条记录里的验收报告在行上只给一个结论徽标,展开后才是判定、裁判路由、逐项分数与问题反馈。权限确认门与当前状态不折叠。视图内字号只有三档(标题、正文、元信息),状态与结果徽标共用一套填充色槽位,折叠行与按钮的命中区不小于 44 像素。
|
|
32
32
|
- **续接卡片(数据面)**:新建任务时可粘贴会话输出的 `<<<FREEZE … >>>FREEZE` 冻结块,解析为「目标/进度/下一步」快照随任务持久化(v3 账本);卡片带冻结徽标,详情页可读完整快照与冻结时间,搜索覆盖快照文本,归档/恢复与普通任务一致。快照在协议层复用冻结安全门:敏感模式自动替换为 `[REDACTED]` 并标记、以 `/` 开头的命令行整体拒绝、每字段 8 KiB 上限。
|
|
33
33
|
- **交接包与权限确认门**:续接卡片可附交接包——钉住三元组(工作区/agent 预设/权限)加文档与脚本引用。执行时交接包三元组覆盖普通钉住字段,引用以交接前言随 Prompt 下发。有效权限高于部署权限基线——未钉住 `sessionDefaultPermission` 时即宿主自己的默认权限预设——的绑定处于待确认状态:手动执行被拒绝、cron 跳过该卡并滚动到下一触发点,任务详情中的确认按钮完成人工确认;此后任何权限或交接包变更都会重新武装确认门。
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
- **任务标签(issue #1521)**:每个任务可带最多八个标签。标签在卡片上渲染为带色调的徽章——色调由标签名哈希得到,因此同一标签永远同色,也不需要存储颜色;看板顶栏据此提供多选标签筛选,候选项来自全账本在用的标签(含已归档任务),搜索也会匹配标签名。填了「执行提示」的标签会在每次执行前以 `标签提示` 段注入到执行 Prompt 之前;没填的标签只作展示与筛选,因此无标签任务的 Prompt 与加入该功能前逐字节一致。标签在首次执行后仍可编辑:它们给任务分类、塑造下一次运行,而不是「已经跑过什么」的凭证。筛选行的**管理标签**入口会打开标签管理器:列出每个在用标签及其任务数,重命名会写到所有卡片上(与已有同名标签合并,并保留该标签的执行提示),删除会从全部任务(含已归档)上移除。两者都是 Host 的整账本事务,因此多个窗口看同一块看板时状态一致。
|
|
36
36
|
- **标签清理**:标签管理器里的**清理**一行给出一个阈值输入框(默认 5,可填 1 到 99),用来清掉看板已经不再使用的标签。携带某个标签的任务数小于该阈值、且这些任务全部是已完成或已失败时,这个标签成为候选;已归档卡片按同一口径参与,所以归档后已结算的卡片会让它的标签放行,归档后仍未完成的卡片会把标签留住。清理先算出候选再动账本:没有候选时只说明这一点、不碰账本;有候选则打开确认框,逐个列出标签与携带它的任务数,确认后每个标签都走管理器的删除按钮所用的同一笔整账本删除。标签会从所有卡片(含已归档)上移除,执行提示随之一并消失,任务本身不受其他影响;删除不可撤销。
|
|
37
37
|
- **子任务与父卡自治派发**:任务可以有子任务——在详情页新建子任务(表单以父任务的工作区、模式、权限和模型为起点,每一项都可覆盖),或把一个还没有父任务的现有任务关联为子任务;子任务不在运行中时也可以解除关联。父子关系的准入由 Host 判定:父任务必须存在且在看板上、任务不能挂到自己的后代之下、树的深度不得超过配置的 `maxSubtaskDepth`(默认 1 层,最大 3 层)。执行一张卡只为这张卡开一个会话,不为它的子任务开任何会话;直接点某张子卡执行也是同一件事:它自己就是这次运行的 root,即使它有父卡、自己也有子任务,也不会展开。已在「完成」列的子任务不在这次的派发集合里,因此把子任务逐个做完再执行父卡只花一个会话,而不是整棵树重来;需要重新派发就把它移回「待办」列。看板会标注父任务与子任务卡片,详情页列出直接子任务并说明一次执行会怎么做,顶栏提供一键隐藏子任务。
|
|
38
|
-
- **父卡自治派发与子卡记账**:点击一张带未完成子任务的卡,只开这张卡自己的会话,别的都不开。这次执行强制使用 `packages/dsh-liangshen` 提供的 `liangshen` 派发预设,卡片自己存的 Agent 预设绝不被改写,session 复用被跳过、新开一个会话;部署没有注册 `liangshen`
|
|
38
|
+
- **父卡自治派发与子卡记账**:点击一张带未完成子任务的卡,只开这张卡自己的会话,别的都不开。这次执行强制使用 `packages/dsh-liangshen` 提供的 `liangshen` 派发预设,卡片自己存的 Agent 预设绝不被改写,session 复用被跳过、新开一个会话;部署没有注册 `liangshen` 预设时失败关闭,原因写在卡片上;运行 legacy Agent Teams 那一代的部署同样失败关闭——该预设在那里无法编排,只会停下来等人回复,而无人值守的运行等不到回复:这次执行在任何会话存在之前就被拒绝,卡片上写明出口。启动 Prompt 会列出每张未完成子卡的标题、任务 id 与状态,说明本次不为它们开会话,并要求这个会话用 `task_board_get` 读每张子卡、用 `subagent` 按依赖顺序派发(互不依赖的可以并发)、完工前用 `task_board_manage({action:'record-external-outcome'})` 把结论一次性写回。会话没有回填的结论由 Host 在父卡自身运行结束时补上:仍未回填的未完成子卡继承这次运行的判定,记为一条 external 记录,发起方写作 `parent-run:<父卡 id>`,原因说明本卡未单独开会话执行、结论继承自父卡运行。这次回填幂等,父卡判定为 cancelled 时不写。没有未完成子任务的卡不受影响。
|
|
39
39
|
- **项目分区(issue #1536)**:看板头部新增项目下拉,选项来自当前部署的 DSH 工作区——「全部项目」加每个已注册项目。选定项目后各列只显示钉在该项目上的任务,未钉工作区的任务只在「全部项目」下可见;在某个项目下打开「新建任务」会把该项目预选为任务工作区,「新建项目…」则用与 GUI「添加项目」相同的运行时接口把宿主目录注册为项目。未选项目而创建的根任务——无论来自表单还是看板的 agent 工具——继承创建它的会话所在的工作区;仍未钉住工作区的卡片在部署最近使用的工作区里执行,而不是落到宿主自身的工作目录。
|
|
40
40
|
- **粘贴文本 AI 解析(issue #1540)**:新建任务表单可以把从别处复制的一段话交给模型,整理成标题、描述和执行 Prompt。模型取当前部署已配置的模型(与任务「模型」下拉同一份列表,默认选中第一项),调用在宿主侧完成,走看板既有的回环与同源校验,预算 45 秒并支持取消。解析结果只填进表单:不提交就不会创建任务,解析失败也不会改动你已经输入的内容。
|
|
41
41
|
- **可折叠的任务表单**:新建/复制/子任务对话框把配置分成可折叠区域——任务内容默认展开,其后依次是标签、执行设置、运行方式、交接与续跑、定时运行——每个折叠区域都保留一行当前值摘要,因此对话框不需要滚动条(正文仍保留极矮窗口下的溢出兜底)。Agent 预设字段更名为「Agent 预设」,把部署内置预设以本地化名称列出,并附上任何用户预设;默认的「继承」选项会写明未钉住时真正使用的预设。
|
package/lib/client.js
CHANGED
|
@@ -6,7 +6,6 @@ window.__ModuleLoader__.load({
|
|
|
6
6
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
7
|
let react = require("react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
let _deepseek_ai_dsh_client_ui_slots = require("@deepseek-ai/dsh-client-ui-slots");
|
|
10
9
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
11
10
|
//#region src/core/extension.ts
|
|
12
11
|
/** Cordis service name the host and browser halves each publish. */
|
|
@@ -716,6 +715,28 @@ window.__ModuleLoader__.load({
|
|
|
716
715
|
return task.status !== "done";
|
|
717
716
|
}
|
|
718
717
|
/**
|
|
718
|
+
* The failure text the Host records when a run would have been forced under
|
|
719
|
+
* the dispatcher preset on a deployment that cannot orchestrate.
|
|
720
|
+
*
|
|
721
|
+
* A finished sentence rather than a code (the shape `core/workspace-target.ts`
|
|
722
|
+
* gives its missing-workspace refusal): the ledger stores it as the
|
|
723
|
+
* execution's failure text, the agent tools serve it to a model, and any
|
|
724
|
+
* client prints it verbatim. It names the fix, not the mechanism. The launch
|
|
725
|
+
* is refused before any session exists, because the dispatcher preset would
|
|
726
|
+
* otherwise stop and wait for a human reply that an unattended run never
|
|
727
|
+
* brings.
|
|
728
|
+
*/
|
|
729
|
+
const LEGACY_AGENT_TEAMS_REASON = "this deployment runs the legacy Agent Teams runtime, which cannot dispatch a card that has unfinished subtasks under the liangshen preset; disable that runtime and restart the Host, or finish the subtasks before running";
|
|
730
|
+
/**
|
|
731
|
+
* Whether a recorded failure text is the legacy-runtime refusal, which the
|
|
732
|
+
* browser half renders in the reader's own language.
|
|
733
|
+
* @param reason - the execution's recorded failure text.
|
|
734
|
+
* @returns true when that run was refused for a deployment that cannot orchestrate.
|
|
735
|
+
*/
|
|
736
|
+
function isLegacyAgentTeamsReason(reason) {
|
|
737
|
+
return reason === LEGACY_AGENT_TEAMS_REASON;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
719
740
|
* Whether a card belongs to a run's dispatch set: the card the request named,
|
|
720
741
|
* or a card whose work is still outstanding. Kept for the browser's subtask
|
|
721
742
|
* preview; the Host run itself opens the clicked card alone
|
|
@@ -3910,6 +3931,7 @@ window.__ModuleLoader__.load({
|
|
|
3910
3931
|
"status.move.done": "移到已完成",
|
|
3911
3932
|
"status.move.failed": "移到已失败",
|
|
3912
3933
|
"exec.error.noWorkspace": "这张卡没有指定工作区,请先在卡片上选择工作区",
|
|
3934
|
+
"exec.error.legacyAgentTeams": "这张卡有未完成的子任务,需按梁神模式的派发方式执行,但当前部署运行的是 legacy Agent Teams,无法编排;请关闭该 runtime 并重启 Host,或先完成子任务再执行",
|
|
3913
3935
|
"exec.error.promptRejected": "Prompt 被拒绝",
|
|
3914
3936
|
"run.failed": "执行失败:{error}",
|
|
3915
3937
|
"time.justNow": "刚刚",
|
|
@@ -4411,6 +4433,7 @@ window.__ModuleLoader__.load({
|
|
|
4411
4433
|
"status.move.done": "Move to Done",
|
|
4412
4434
|
"status.move.failed": "Move to Failed",
|
|
4413
4435
|
"exec.error.noWorkspace": "This card has no workspace pinned; choose one on the card before it can run",
|
|
4436
|
+
"exec.error.legacyAgentTeams": "This card has unfinished subtasks, which run through the LiangShen dispatcher preset, but this deployment runs the legacy Agent Teams runtime and cannot orchestrate; disable that runtime and restart the Host, or finish the subtasks before running",
|
|
4414
4437
|
"exec.error.promptRejected": "Prompt rejected",
|
|
4415
4438
|
"run.failed": "Run failed: {error}",
|
|
4416
4439
|
"time.justNow": "just now",
|
|
@@ -10824,6 +10847,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
10824
10847
|
});
|
|
10825
10848
|
}
|
|
10826
10849
|
/** Execution outcome → locale key, shared with the history's folded summary. */
|
|
10850
|
+
/**
|
|
10851
|
+
* A recorded failure text in the reader's own language, for the refusals the
|
|
10852
|
+
* board itself produces and can therefore translate. Any other text is the
|
|
10853
|
+
* Host's own sentence and is printed verbatim.
|
|
10854
|
+
* @param error - the execution's recorded failure text.
|
|
10855
|
+
* @returns the localized refusal, or the original text.
|
|
10856
|
+
*/
|
|
10857
|
+
function failureText(error) {
|
|
10858
|
+
if (isMissingWorkspaceReason(error)) return t("exec.error.noWorkspace");
|
|
10859
|
+
if (isLegacyAgentTeamsReason(error)) return t("exec.error.legacyAgentTeams");
|
|
10860
|
+
return error;
|
|
10861
|
+
}
|
|
10827
10862
|
const EXECUTION_RESULT_KEY = {
|
|
10828
10863
|
succeeded: "detail.result.succeeded",
|
|
10829
10864
|
failed: "detail.result.failed",
|
|
@@ -10881,7 +10916,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
10881
10916
|
execution.verification !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VerificationReport, { verification: execution.verification }),
|
|
10882
10917
|
execution.error !== void 0 && execution.error !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
10883
10918
|
className: board_module_css_default.executionError,
|
|
10884
|
-
children:
|
|
10919
|
+
children: failureText(execution.error)
|
|
10885
10920
|
})
|
|
10886
10921
|
]
|
|
10887
10922
|
})]
|
|
@@ -13052,251 +13087,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
13052
13087
|
};
|
|
13053
13088
|
}
|
|
13054
13089
|
//#endregion
|
|
13055
|
-
//#region src/client/body-mutations.ts
|
|
13056
|
-
/** Cross-bundle registry key; `Symbol.for` so every module copy agrees. */
|
|
13057
|
-
const HUB_KEY = Symbol.for("dsh-web.body-mutation-hub");
|
|
13058
|
-
const INVALIDATION_ONLY = Symbol.for("dsh-web.body-mutation-invalidation");
|
|
13059
|
-
function needsRecords(subscribers) {
|
|
13060
|
-
for (const listener of subscribers) if (!listener[INVALIDATION_ONLY]) return true;
|
|
13061
|
-
return false;
|
|
13062
|
-
}
|
|
13063
|
-
/**
|
|
13064
|
-
* Subscribe to a coalesced DOM re-check without retaining mutation records.
|
|
13065
|
-
* The marked wrapper also works with an older hub, which delivers records
|
|
13066
|
-
* that it simply ignores until a page reload picks up the updated hub.
|
|
13067
|
-
*/
|
|
13068
|
-
function subscribeBodyInvalidations(subscriber) {
|
|
13069
|
-
const listener = () => {
|
|
13070
|
-
subscriber();
|
|
13071
|
-
};
|
|
13072
|
-
listener[INVALIDATION_ONLY] = true;
|
|
13073
|
-
return subscribeBodyMutations(listener);
|
|
13074
|
-
}
|
|
13075
|
-
/**
|
|
13076
|
-
* Subscribe to body-level childList mutations.
|
|
13077
|
-
* @param subscriber - called at most once per animation frame with the records
|
|
13078
|
-
* collected since the previous flush; must be safe to run repeatedly.
|
|
13079
|
-
* @returns the disposer removing this subscriber (and the observer when it was
|
|
13080
|
-
* the last one).
|
|
13081
|
-
*/
|
|
13082
|
-
function subscribeBodyMutations(subscriber) {
|
|
13083
|
-
if (typeof globalThis === "undefined" || typeof document === "undefined") return () => {};
|
|
13084
|
-
if (typeof MutationObserver !== "function") return () => {};
|
|
13085
|
-
const registry = globalThis;
|
|
13086
|
-
let hub = registry[HUB_KEY];
|
|
13087
|
-
if (hub === void 0) {
|
|
13088
|
-
const subscribers = /* @__PURE__ */ new Set();
|
|
13089
|
-
const created = {
|
|
13090
|
-
observer: void 0,
|
|
13091
|
-
subscribers,
|
|
13092
|
-
pending: [],
|
|
13093
|
-
scheduled: false
|
|
13094
|
-
};
|
|
13095
|
-
const flush = () => {
|
|
13096
|
-
created.frame = void 0;
|
|
13097
|
-
created.scheduled = false;
|
|
13098
|
-
const batch = created.pending;
|
|
13099
|
-
created.pending = [];
|
|
13100
|
-
for (const listener of [...subscribers]) {
|
|
13101
|
-
if (!subscribers.has(listener)) continue;
|
|
13102
|
-
try {
|
|
13103
|
-
listener(batch);
|
|
13104
|
-
} catch {}
|
|
13105
|
-
}
|
|
13106
|
-
};
|
|
13107
|
-
const schedule = () => {
|
|
13108
|
-
if (created.scheduled) return;
|
|
13109
|
-
created.scheduled = true;
|
|
13110
|
-
if (typeof requestAnimationFrame === "function") created.frame = requestAnimationFrame(flush);
|
|
13111
|
-
else flush();
|
|
13112
|
-
};
|
|
13113
|
-
created.observer = new MutationObserver((records) => {
|
|
13114
|
-
if (needsRecords(subscribers)) for (const record of records) created.pending.push(record);
|
|
13115
|
-
schedule();
|
|
13116
|
-
});
|
|
13117
|
-
created.observer.observe(document.body ?? document.documentElement, {
|
|
13118
|
-
childList: true,
|
|
13119
|
-
subtree: true
|
|
13120
|
-
});
|
|
13121
|
-
registry[HUB_KEY] = created;
|
|
13122
|
-
hub = created;
|
|
13123
|
-
}
|
|
13124
|
-
const active = hub;
|
|
13125
|
-
active.subscribers.add(subscriber);
|
|
13126
|
-
let subscribed = true;
|
|
13127
|
-
return () => {
|
|
13128
|
-
if (!subscribed) return;
|
|
13129
|
-
subscribed = false;
|
|
13130
|
-
active.subscribers.delete(subscriber);
|
|
13131
|
-
if (!needsRecords(active.subscribers)) active.pending = [];
|
|
13132
|
-
if (active.subscribers.size === 0 && registry[HUB_KEY] === active) {
|
|
13133
|
-
active.observer.disconnect();
|
|
13134
|
-
if (active.frame !== void 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(active.frame);
|
|
13135
|
-
active.frame = void 0;
|
|
13136
|
-
active.pending = [];
|
|
13137
|
-
active.scheduled = false;
|
|
13138
|
-
delete registry[HUB_KEY];
|
|
13139
|
-
}
|
|
13140
|
-
};
|
|
13141
|
-
}
|
|
13142
|
-
//#endregion
|
|
13143
|
-
//#region src/client/suppress-schedule-row.ts
|
|
13144
|
-
/**
|
|
13145
|
-
* Hide the official automation-tasks entry while the board is on.
|
|
13146
|
-
*
|
|
13147
|
-
* The shell mounts two scheduling surfaces side by side in the sidebar: the
|
|
13148
|
-
* official `ui-schedule` client half ("Automation tasks" — the Host Schedule
|
|
13149
|
-
* service's own page) and this package's board ("Task board" — a Host ledger
|
|
13150
|
-
* that runs real DSH sessions). The board is the family's complete surface, so
|
|
13151
|
-
* while it is enabled the official row is hidden and the sidebar offers one
|
|
13152
|
-
* scheduling entry instead of two.
|
|
13153
|
-
*
|
|
13154
|
-
* The shell owns that row: it renders the button, the label, the tooltip, the
|
|
13155
|
-
* active highlight and the collapsed rail, and the host's own end-to-end suite
|
|
13156
|
-
* addresses the row by its accessible name. The row is therefore located the
|
|
13157
|
-
* same way — the shell's global panel list seat (`sidebar.panellist`), whose
|
|
13158
|
-
* per-row anchor the slot renderer stamps — and it is identified by the label
|
|
13159
|
-
* the shell itself resolves for that entry (`resolveSlotLabel`, exactly the
|
|
13160
|
-
* call the shell's panel projection makes), so the match follows the active
|
|
13161
|
-
* language instead of a hard-coded translation.
|
|
13162
|
-
*
|
|
13163
|
-
* The write is one inline `display: none` on the shell's own button: the row
|
|
13164
|
-
* stays mounted (React keeps owning it) and the official panel keeps working
|
|
13165
|
-
* everywhere else it is reachable — only the duplicate sidebar entry goes
|
|
13166
|
-
* away. The board's master switch owns the state, exactly as it owns the
|
|
13167
|
-
* board's own row: with the board off, the official row comes back.
|
|
13168
|
-
*/
|
|
13169
|
-
/**
|
|
13170
|
-
* The official automation-tasks panel id.
|
|
13171
|
-
*
|
|
13172
|
-
* The host `ui-schedule` client half registers its sidebar row and its
|
|
13173
|
-
* center-column page under this id; the shell's panel projection addresses
|
|
13174
|
-
* both by it.
|
|
13175
|
-
*/
|
|
13176
|
-
const OFFICIAL_SCHEDULE_PANEL_ID = "schedules";
|
|
13177
|
-
/** The shell's global panel list seat; every rendered panel row carries one anchor. */
|
|
13178
|
-
const PANEL_LIST_SLOT = "sidebar.panellist";
|
|
13179
|
-
/** The anchor the slot renderer stamps for each global panel row. */
|
|
13180
|
-
const PANEL_ROW_ANCHOR = `[data-slot="${PANEL_LIST_SLOT}"]`;
|
|
13181
|
-
/**
|
|
13182
|
-
* The family's own hook on a plugin-owned panel row.
|
|
13183
|
-
*
|
|
13184
|
-
* A row carrying it belongs to a plugin that owns its entry, never to the
|
|
13185
|
-
* official automation-tasks row, so the guard skips those rows: it must not
|
|
13186
|
-
* be able to hide the board's own entry.
|
|
13187
|
-
*/
|
|
13188
|
-
const PLUGIN_ROW_HOOK = "[data-dsh-panel-entry]";
|
|
13189
|
-
/**
|
|
13190
|
-
* The live panel-list ledger, or an empty one.
|
|
13191
|
-
*
|
|
13192
|
-
* A context that serves no slot registry (a capture-only test context, or a
|
|
13193
|
-
* shell that never declared the seat) has no official row to hide, and the
|
|
13194
|
-
* guard must read that as "nothing to do" instead of failing the page.
|
|
13195
|
-
* @param ctx - the client context.
|
|
13196
|
-
* @returns the panel-list entries the shell currently projects.
|
|
13197
|
-
*/
|
|
13198
|
-
function panelEntries(ctx) {
|
|
13199
|
-
const reader = ctx.slots;
|
|
13200
|
-
if (reader === void 0 || typeof reader.entriesOfSlot !== "function") return [];
|
|
13201
|
-
try {
|
|
13202
|
-
return reader.entriesOfSlot(PANEL_LIST_SLOT) ?? [];
|
|
13203
|
-
} catch {
|
|
13204
|
-
return [];
|
|
13205
|
-
}
|
|
13206
|
-
}
|
|
13207
|
-
/**
|
|
13208
|
-
* The accessible name the shell renders on the official automation-tasks row.
|
|
13209
|
-
*
|
|
13210
|
-
* The shell projects its panel list with `resolveSlotLabel(options.label) ??
|
|
13211
|
-
* id`, and that value becomes the row's accessible name. Reading the same
|
|
13212
|
-
* value out of the same ledger is what keeps the DOM match correct in every
|
|
13213
|
-
* language.
|
|
13214
|
-
* @param entries - the live panel-list ledger.
|
|
13215
|
-
* @returns the row's accessible name, or undefined when the official panel is not mounted.
|
|
13216
|
-
*/
|
|
13217
|
-
function officialScheduleRowLabel(entries) {
|
|
13218
|
-
const entry = entries.find((candidate) => candidate.options.id === OFFICIAL_SCHEDULE_PANEL_ID);
|
|
13219
|
-
if (entry === void 0) return void 0;
|
|
13220
|
-
try {
|
|
13221
|
-
return (0, _deepseek_ai_dsh_client_ui_slots.resolveSlotLabel)(entry.options.label) ?? entry.options.id;
|
|
13222
|
-
} catch {
|
|
13223
|
-
return;
|
|
13224
|
-
}
|
|
13225
|
-
}
|
|
13226
|
-
/**
|
|
13227
|
-
* The shell's button for the panel row carrying this accessible name.
|
|
13228
|
-
*
|
|
13229
|
-
* Every global panel row renders one slot anchor inside the shell's own
|
|
13230
|
-
* button, so the anchor is the row's handle and the button is what the user
|
|
13231
|
-
* sees. Rows a plugin owns (they carry the family's own entry hook) are
|
|
13232
|
-
* skipped.
|
|
13233
|
-
* @param root - the document (or a subtree) to search.
|
|
13234
|
-
* @param label - the accessible name to match.
|
|
13235
|
-
* @returns the row button, or undefined when no row carries that name.
|
|
13236
|
-
*/
|
|
13237
|
-
function findPanelRow(root, label) {
|
|
13238
|
-
for (const anchor of root.querySelectorAll(PANEL_ROW_ANCHOR)) {
|
|
13239
|
-
if (anchor.querySelector(PLUGIN_ROW_HOOK) !== null) continue;
|
|
13240
|
-
const button = anchor.closest("button");
|
|
13241
|
-
if (button !== null && button.getAttribute("aria-label") === label) return button;
|
|
13242
|
-
}
|
|
13243
|
-
}
|
|
13244
|
-
/**
|
|
13245
|
-
* Guard the official automation-tasks row against the board's presence.
|
|
13246
|
-
*
|
|
13247
|
-
* The guard hides the row while the board is enabled and restores it when the
|
|
13248
|
-
* board is switched off. It re-applies its write after every DOM change,
|
|
13249
|
-
* because the shell owns the row and may mount or replace it at any time (a
|
|
13250
|
-
* re-render, a panel-list change, the official plugin arriving late).
|
|
13251
|
-
* @param ctx - client context carrying the slot registry.
|
|
13252
|
-
* @param root - the document to search; defaults to the ambient one.
|
|
13253
|
-
* @returns the guard's controls.
|
|
13254
|
-
*/
|
|
13255
|
-
function createScheduleRowGuard(ctx, root) {
|
|
13256
|
-
const scope = root ?? (typeof document === "undefined" ? void 0 : document);
|
|
13257
|
-
let hidden;
|
|
13258
|
-
let previousDisplay = null;
|
|
13259
|
-
let stopWatching;
|
|
13260
|
-
const restoreRow = () => {
|
|
13261
|
-
if (hidden === void 0) return;
|
|
13262
|
-
const button = hidden;
|
|
13263
|
-
hidden = void 0;
|
|
13264
|
-
if (previousDisplay === null) button.style.removeProperty("display");
|
|
13265
|
-
else button.style.setProperty("display", previousDisplay);
|
|
13266
|
-
previousDisplay = null;
|
|
13267
|
-
};
|
|
13268
|
-
const hideRow = () => {
|
|
13269
|
-
if (scope === void 0) return;
|
|
13270
|
-
const label = officialScheduleRowLabel(panelEntries(ctx));
|
|
13271
|
-
if (label === void 0) return;
|
|
13272
|
-
const button = findPanelRow(scope, label);
|
|
13273
|
-
if (button === void 0) return;
|
|
13274
|
-
if (hidden === button) return;
|
|
13275
|
-
restoreRow();
|
|
13276
|
-
hidden = button;
|
|
13277
|
-
previousDisplay = button.style.getPropertyValue("display");
|
|
13278
|
-
button.style.setProperty("display", "none", "important");
|
|
13279
|
-
};
|
|
13280
|
-
const sync = () => {
|
|
13281
|
-
if (hidden !== void 0 && !hidden.isConnected) restoreRow();
|
|
13282
|
-
hideRow();
|
|
13283
|
-
};
|
|
13284
|
-
const hide = () => {
|
|
13285
|
-
hideRow();
|
|
13286
|
-
if (stopWatching === void 0) stopWatching = subscribeBodyInvalidations(sync);
|
|
13287
|
-
};
|
|
13288
|
-
const show = () => {
|
|
13289
|
-
stopWatching?.();
|
|
13290
|
-
stopWatching = void 0;
|
|
13291
|
-
restoreRow();
|
|
13292
|
-
};
|
|
13293
|
-
return {
|
|
13294
|
-
hide,
|
|
13295
|
-
show,
|
|
13296
|
-
dispose: show
|
|
13297
|
-
};
|
|
13298
|
-
}
|
|
13299
|
-
//#endregion
|
|
13300
13090
|
//#region \0dsh-css:packages/dsh-task-board/src/client/settings-card.module.css.mjs
|
|
13301
13091
|
const css$1 = ".Jh0q7G_card{--settings-card-radius:12px;--settings-card-header-pad:16px;--settings-card-header-gap:13px;--settings-card-title-size:15px;--settings-card-description-size:13px;--settings-card-body-inset:16px;--settings-card-motion:.18s;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:var(--settings-card-radius);list-style:none;transition:border-color .16s,background .16s}.Jh0q7G_card:hover{border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_cardNested{--settings-card-radius:10px;--settings-card-header-pad:10px 12px;--settings-card-header-gap:10px;--settings-card-title-size:13px;--settings-card-description-size:12px;--settings-card-body-inset:12px}.Jh0q7G_cardNested .Jh0q7G_description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.Jh0q7G_header{appearance:none;box-sizing:border-box;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);padding:var(--settings-card-header-pad);background:0 0;border:0;display:flex}.Jh0q7G_header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.Jh0q7G_headerStatic{box-sizing:border-box;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);width:100%;padding:var(--settings-card-header-pad);display:flex}.Jh0q7G_headText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.Jh0q7G_mark{background:var(--dsw-alias-bg-module-platform);width:34px;height:34px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;place-items:center;transition:color .16s;display:grid}.Jh0q7G_header:hover .Jh0q7G_mark,.Jh0q7G_cardOpen .Jh0q7G_mark{color:var(--dsw-alias-label-primary)}.Jh0q7G_name{color:var(--dsw-alias-label-primary);font-size:var(--settings-card-title-size);font-weight:600;line-height:1.4}.Jh0q7G_description{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.Jh0q7G_headerAction{flex:none;align-items:center;display:inline-flex}.Jh0q7G_chevron{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;transition:transform .16s,color .16s}.Jh0q7G_header:hover .Jh0q7G_chevron{color:var(--dsw-alias-label-secondary)}.Jh0q7G_chevronOpen{transform:rotate(180deg)}.Jh0q7G_disclosure{opacity:0;transition:grid-template-rows var(--settings-card-motion) ease, opacity var(--settings-card-motion) ease;grid-template-rows:0fr;display:grid}.Jh0q7G_disclosure[data-state=collapsed],.Jh0q7G_disclosure[data-state=entering],.Jh0q7G_disclosure[data-state=closing]{overflow:hidden}.Jh0q7G_disclosure[data-state=entering],.Jh0q7G_disclosure[data-state=shown]{opacity:1;grid-template-rows:1fr}.Jh0q7G_disclosure>.Jh0q7G_body{min-height:0}.Jh0q7G_body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 var(--settings-card-body-inset);padding-bottom:8px;container:Jh0q7G_settings-card/inline-size}.Jh0q7G_readOnly{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_notExposed{color:var(--dsw-alias-state-warn-primary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_failed{color:var(--dsw-alias-state-error-primary,#b42318);overflow-wrap:anywhere;margin:8px 0 4px;font-size:12px;line-height:18px}.Jh0q7G_field{grid-template-columns:minmax(0,1fr) fit-content(50%);grid-template-areas:\"Jh0q7G_head Jh0q7G_control\"\"Jh0q7G_hint Jh0q7G_control\";align-items:center;gap:4px 24px;padding:16px 0;display:grid}.Jh0q7G_field>.Jh0q7G_head{grid-area:Jh0q7G_head}.Jh0q7G_field>:is(.Jh0q7G_hint,.Jh0q7G_invalid){grid-area:Jh0q7G_hint}.Jh0q7G_field>:not(.Jh0q7G_head,.Jh0q7G_hint,.Jh0q7G_invalid){grid-area:Jh0q7G_control;justify-self:end;max-width:100%}.Jh0q7G_field+.Jh0q7G_field{border-top:1px solid var(--dsw-alias-border-l2)}.Jh0q7G_head{align-items:center;gap:8px;display:flex}.Jh0q7G_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:14px;font-weight:400;line-height:22px}.Jh0q7G_badges{align-items:center;gap:8px;display:inline-flex}.Jh0q7G_badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.Jh0q7G_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}.Jh0q7G_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}.Jh0q7G_reset:disabled{cursor:default}.Jh0q7G_reset:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.Jh0q7G_segmentGroup{background:color-mix(in srgb, var(--dsw-alias-label-primary) 7%, transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-label-primary) 5%, transparent);border-radius:8px;flex-wrap:wrap;align-items:center;gap:2px;padding:2px;display:inline-flex;position:relative}.Jh0q7G_segment{appearance:none;color:var(--dsw-alias-label-secondary);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:7px;margin:0;padding:3px 12px;font-size:13px;font-weight:500;line-height:18px;transition:background-color .12s,color .12s}.Jh0q7G_segment:hover:not(:disabled):not([data-active]){color:var(--dsw-alias-label-primary)}.Jh0q7G_segmentGroup:not([data-pill])>.Jh0q7G_segment[data-active],.Jh0q7G_segmentGroup[data-pill]:before{background:var(--dsw-alias-bg-overlay,var(--dsw-alias-bg-layer-3));box-shadow:0 1px 2px #14141314}body[data-ds-dark-theme] .Jh0q7G_segmentGroup:not([data-pill])>.Jh0q7G_segment[data-active],body[data-ds-dark-theme] .Jh0q7G_segmentGroup[data-pill]:before{box-shadow:none;background:#ffffff24}.Jh0q7G_segment[data-active]{color:var(--dsw-alias-label-primary)}.Jh0q7G_segmentGroup[data-pill]:before{content:\"\";width:var(--segment-pill-w,0px);height:var(--segment-pill-h,0px);transform:translate(var(--segment-pill-x,0px), var(--segment-pill-y,0px));pointer-events:none;border-radius:7px;transition:transform .24s cubic-bezier(.22,.61,.36,1),width .24s cubic-bezier(.22,.61,.36,1),height .24s cubic-bezier(.22,.61,.36,1);position:absolute;top:0;left:0}.Jh0q7G_segmentGroup>*{z-index:1;position:relative}.Jh0q7G_segment:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.Jh0q7G_segment:disabled{cursor:not-allowed;opacity:.45}.Jh0q7G_segmentGroup[data-pill]:has(>.Jh0q7G_segment:disabled):before{opacity:.45}.Jh0q7G_input,.Jh0q7G_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_input:focus-visible,.Jh0q7G_select:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.Jh0q7G_input:disabled,.Jh0q7G_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.Jh0q7G_inputInvalid{border:1px solid var(--dsw-alias-state-error-primary,#b42318);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_inputInvalid:focus-visible{outline:2px solid var(--dsw-alias-state-error-primary,#b42318);outline-offset:1px;border-color:var(--dsw-alias-state-error-primary,#b42318)}.Jh0q7G_field>:is(.Jh0q7G_input,.Jh0q7G_inputInvalid,.Jh0q7G_select,.Jh0q7G_selectWrap,.Jh0q7G_rangeAnchor){box-sizing:border-box;width:220px}.Jh0q7G_rangeAnchor>:is(.Jh0q7G_input,.Jh0q7G_inputInvalid){box-sizing:border-box;width:100%}@container Jh0q7G_settings-card (width<=440px){.Jh0q7G_field{grid-template-columns:minmax(0,1fr);grid-template-areas:\"Jh0q7G_head\"\"Jh0q7G_hint\"\"Jh0q7G_control\";row-gap:8px}.Jh0q7G_field>:not(.Jh0q7G_head,.Jh0q7G_hint,.Jh0q7G_invalid){justify-self:start}.Jh0q7G_field>:is(.Jh0q7G_input,.Jh0q7G_inputInvalid,.Jh0q7G_select,.Jh0q7G_selectWrap,.Jh0q7G_rangeAnchor){justify-self:stretch;width:auto}}.Jh0q7G_selectWrap{position:relative}.Jh0q7G_selectButton{appearance:none;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.Jh0q7G_selectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Jh0q7G_selectChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.Jh0q7G_selectChevronOpen{transform:rotate(180deg)}.Jh0q7G_selectPopup{z-index:40;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);max-height:240px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;border-radius:8px;flex-direction:column;padding:4px;transition:opacity .1s,transform .1s;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;transform:translateY(-4px)}.Jh0q7G_selectPopupOpen{opacity:1;transform:none}.Jh0q7G_selectPopupClose{opacity:0;pointer-events:none;transform:translateY(-4px)}.Jh0q7G_rangeAnchor{display:inline-flex;position:relative}.Jh0q7G_rangeBubble{z-index:40;box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);width:220px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;visibility:hidden;border-radius:10px;padding:10px 12px 6px;transition:opacity .12s,transform .12s,visibility 0s linear .12s;position:absolute;right:0}.Jh0q7G_rangeBubble[data-side=above]{bottom:calc(100% + 6px);transform:translateY(4px)}.Jh0q7G_rangeBubble[data-side=below]{top:calc(100% + 6px);transform:translateY(-4px)}.Jh0q7G_rangeBubble[data-open]{opacity:1;visibility:visible;transition:opacity .12s,transform .12s,visibility;transform:none}.Jh0q7G_rangeSlider{appearance:none;cursor:pointer;background:0 0;width:100%;height:18px;margin:0;display:block}.Jh0q7G_rangeSlider::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--dsw-alias-brand-primary) var(--range-fill,0%), color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent) var(--range-fill,0%));border-radius:999px;height:4px}.Jh0q7G_rangeSlider::-moz-range-track{background:color-mix(in srgb, var(--dsw-alias-label-primary) 12%, transparent);border-radius:999px;height:4px}.Jh0q7G_rangeSlider::-moz-range-progress{background:var(--dsw-alias-brand-primary);border-radius:999px;height:4px}.Jh0q7G_rangeSlider::-webkit-slider-thumb{appearance:none;background:#fff;border:0;border-radius:50%;width:14px;height:14px;margin-top:-5px;transition:transform .12s;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}.Jh0q7G_rangeSlider::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:14px;height:14px;box-shadow:0 0 0 1px #0000001f,0 1px 3px #00000040}.Jh0q7G_rangeSlider:active::-webkit-slider-thumb{transform:scale(1.15)}.Jh0q7G_rangeSlider:focus-visible{outline:none}.Jh0q7G_rangeSlider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--dsw-alias-brand-primary)}.Jh0q7G_rangeSlider:disabled{cursor:not-allowed}.Jh0q7G_rangeEnds{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;justify-content:space-between;margin-top:2px;font-size:11px;line-height:16px;display:flex}.Jh0q7G_selectOption{color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-radius:6px;flex-shrink:0;padding:6px 10px;font-size:13px;line-height:1.5;overflow:hidden}.Jh0q7G_selectOption:hover,.Jh0q7G_selectOptionActive{background:var(--dsw-alias-interactive-bg-hover)}.Jh0q7G_selectOptionSelected{color:var(--dsw-alias-brand-primary);background:color-mix(in srgb, var(--dsw-alias-brand-primary) 10%, transparent);font-weight:500}.Jh0q7G_invalid{color:var(--dsw-alias-state-error-primary,#b42318);margin:0;font-size:12px;line-height:18px}.Jh0q7G_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}.Jh0q7G_toggle{appearance:none;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px;align-items:center;margin:0;padding:0;display:inline-flex}.Jh0q7G_toggleTrack{background:var(--dsw-alias-label-dimmed);border-radius:999px;flex:none;width:36px;height:20px;transition:background-color .18s;position:relative}.Jh0q7G_toggleThumb{--toggle-travel:16px;--toggle-overshoot:1px;background:var(--dsw-alias-bg-layer-3);border-radius:50%;width:16px;height:16px;transition:translate .18s;position:absolute;top:2px;left:2px;translate:0;box-shadow:0 1px 2px #1414132e}.Jh0q7G_toggle[aria-checked=true] .Jh0q7G_toggleTrack{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-label-primary))}.Jh0q7G_toggle[aria-checked=true] .Jh0q7G_toggleThumb{translate:var(--toggle-travel) 0;background:var(--dsw-alias-label-primary-foreground,var(--dsw-alias-bg-layer-3))}.Jh0q7G_toggle[data-moved][aria-checked=true] .Jh0q7G_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both Jh0q7G_toggle-on}.Jh0q7G_toggle[data-moved][aria-checked=false] .Jh0q7G_toggleThumb{animation:.35s cubic-bezier(.34,1.45,.64,1) both Jh0q7G_toggle-off}@keyframes Jh0q7G_toggle-on{0%{translate:0}55%{translate:calc(var(--toggle-travel) + var(--toggle-overshoot)) 0}80%,to{translate:var(--toggle-travel) 0}}@keyframes Jh0q7G_toggle-off{0%{translate:var(--toggle-travel) 0}55%{translate:calc(0px - var(--toggle-overshoot)) 0}80%,to{translate:0}}.Jh0q7G_toggle:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.Jh0q7G_toggle:disabled{opacity:.45;cursor:not-allowed}@media (prefers-reduced-motion:reduce){.Jh0q7G_card,.Jh0q7G_header,.Jh0q7G_mark,.Jh0q7G_chevron,.Jh0q7G_chevronOpen,.Jh0q7G_rangeBubble,.Jh0q7G_selectChevron,.Jh0q7G_selectChevronOpen,.Jh0q7G_selectPopup,.Jh0q7G_toggleTrack,.Jh0q7G_toggleThumb{transition:none}.Jh0q7G_toggle[data-moved] .Jh0q7G_toggleThumb{animation:none}.Jh0q7G_disclosure{transition-property:opacity}}";
|
|
13302
13092
|
const tagId$1 = "@linxin666/dsh-client-ui-task-board/packages/dsh-task-board/src/client/settings-card.module.css";
|
|
@@ -15481,7 +15271,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
15481
15271
|
/** The building package's version, when the bundle carries it. */
|
|
15482
15272
|
function bakedVersion() {
|
|
15483
15273
|
try {
|
|
15484
|
-
return "0.4.
|
|
15274
|
+
return "0.4.16";
|
|
15485
15275
|
} catch {
|
|
15486
15276
|
return;
|
|
15487
15277
|
}
|
|
@@ -15686,9 +15476,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
15686
15476
|
}
|
|
15687
15477
|
};
|
|
15688
15478
|
if (typeof ctx.on === "function") try {
|
|
15689
|
-
ctx.on("slots/changed", () => {
|
|
15479
|
+
ctx.on("slots/changed", (() => {
|
|
15690
15480
|
reconcile();
|
|
15691
|
-
});
|
|
15481
|
+
}));
|
|
15692
15482
|
} catch {}
|
|
15693
15483
|
reconcile();
|
|
15694
15484
|
}
|
|
@@ -16079,16 +15869,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
16079
15869
|
uiDisposer = void 0;
|
|
16080
15870
|
};
|
|
16081
15871
|
};
|
|
16082
|
-
const scheduleRowGuard = createScheduleRowGuard(ctx);
|
|
16083
15872
|
const syncEnabled = () => {
|
|
16084
15873
|
const snapshot = settingsForm.getSnapshot();
|
|
16085
15874
|
if (snapshot.status === "ready" ? snapshot.value?.enabled ?? true : snapshot.status === "unavailable") {
|
|
16086
15875
|
mountUi();
|
|
16087
15876
|
clientService.setEnabled(true);
|
|
16088
|
-
scheduleRowGuard.hide();
|
|
16089
15877
|
} else {
|
|
16090
15878
|
clientService.setEnabled(false);
|
|
16091
|
-
scheduleRowGuard.show();
|
|
16092
15879
|
uiDisposer?.();
|
|
16093
15880
|
}
|
|
16094
15881
|
};
|
|
@@ -16096,7 +15883,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
16096
15883
|
ctx.effect(() => () => {
|
|
16097
15884
|
unsubscribeSettings();
|
|
16098
15885
|
uiDisposer?.();
|
|
16099
|
-
scheduleRowGuard.dispose();
|
|
16100
15886
|
}, "task-board: DOM surfaces");
|
|
16101
15887
|
syncEnabled();
|
|
16102
15888
|
}
|