@linxin666/dsh-client-ui-task-board 0.4.22 → 0.4.23

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.
Files changed (40) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +6 -6
  3. package/README.zh.md +6 -6
  4. package/lib/client.js +410 -37
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +45 -27
  7. package/lib/types/client/TaskBoardSettingsCard.d.ts +1 -1
  8. package/lib/types/client/board/NewTaskModal.d.ts +4 -2
  9. package/lib/types/client/board/TaskBoard.d.ts +16 -1
  10. package/lib/types/client/board/model-options.d.ts +2 -2
  11. package/lib/types/client/index.d.ts +1 -1
  12. package/lib/types/client/locales.d.ts +3 -0
  13. package/lib/types/client/native-panel.d.ts +19 -1
  14. package/lib/types/client/session-activity.d.ts +36 -0
  15. package/lib/types/client/user-message-action.d.ts +46 -0
  16. package/lib/types/core/controller.d.ts +16 -0
  17. package/lib/types/core/model-catalog.d.ts +1 -1
  18. package/lib/types/dsh-home.d.ts +13 -3
  19. package/lib/types/host-routes.d.ts +2 -6
  20. package/lib/types/tool-surface.d.ts +6 -2
  21. package/package.json +33 -33
  22. package/src/client/TaskBoardSettingsCard.tsx +2 -2
  23. package/src/client/board/NewTaskModal.tsx +8 -6
  24. package/src/client/board/TaskBoard.tsx +59 -13
  25. package/src/client/board/model-options.ts +18 -8
  26. package/src/client/board.module.css +32 -0
  27. package/src/client/index.ts +31 -19
  28. package/src/client/locales.ts +6 -0
  29. package/src/client/native-panel.tsx +85 -5
  30. package/src/client/session-activity.tsx +163 -0
  31. package/src/client/user-message-action.tsx +211 -0
  32. package/src/core/controller.ts +30 -0
  33. package/src/core/model-catalog.ts +1 -1
  34. package/src/dsh-home.ts +35 -12
  35. package/src/host/agent-tools.ts +8 -0
  36. package/src/host-routes.ts +7 -16
  37. package/src/host-runner.ts +4 -4
  38. package/src/host-service.ts +6 -1
  39. package/src/index.ts +2 -3
  40. package/src/tool-surface.ts +17 -2
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: 0155cc1d506e98141d5797e70be57f720ca511f9
6
- README.zh.md: 957ae5abae2156f2e884a7482a824711ff2e8b65
5
+ README.md: 4debf1dc8285e028343ecc2673428e49ee2b6c7f
6
+ README.zh.md: 7e859368fec2cecc0aba5bbc577332dc1220dfe9
package/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  English | [中文](README.zh.md)
4
4
 
5
5
  <p align="center">
6
- <img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
6
+ <img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-task-board?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.4-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -55,7 +55,7 @@ Cards keep multi-line title and description previews with visible metadata. Prev
55
55
  - **Agent tools**: every session gets eight model-facing tools (`task_board_list`, `task_board_get`, `task_board_create`, `task_board_update`, `task_board_set_parent`, `task_board_run`, `task_board_manage`, `task_board_schedule`) that drive the same Host ledger the browser drives, so an agent can list the board, create subtasks, link or detach them, start a run, move a card to any column (declaring it done, failed, or in progress without a run), archive/restore/delete it, settle a card the board can no longer observe, and arm its cron schedule from the conversation.
56
56
  - **External outcomes (issue #1826)**: work that is not executed by this Host — an agent outside DSH such as Codex or Claude Code, running its own model — can be recorded as a real run rather than a bare column edit. `task_board_manage(action: 'record-external-outcome', result: 'succeeded'|'failed', initiatedBy: <who>)` appends an execution record carrying the verdict, the caller and an optional summary, and the terminal column is derived from that same record by the same rule a Host settlement uses (`core/tasks.ts` `settledStatus`). The record is marked `external`, never carries a session, and is refused while the card still has an open execution (while this Host is running the card it stays the only authority) and on an archived card. `running` and `cancelled` cannot be recorded this way: those stay Host-only. A manual `move-done`/`move-failed` remains available and still writes only the column — the difference is that this one leaves a record behind, so the column and the run history can never disagree.
57
57
 
58
- - **External provider extensions**: the GitHub Issues extension (`@linxin666/dsh-client-ui-task-board-github`, enabled by default) synchronizes GitHub Issues into board cards. It is a provider of THIS board, so its configuration renders inside this plugin's own settings card — the section only appears while the extension is installed, and its repository/credential form only while the extension is on; see [its README](../dsh-task-board-github/README.md).
58
+ - **External provider extensions**: the board exposes a provider contract consumed by four official companion extensions—GitHub Issues sync (`@linxin666/dsh-client-ui-task-board-github`, enabled by default; see [its README](../dsh-task-board-github/README.md)), Cloud Team Hub collaboration (`@linxin666/dsh-client-ui-task-board-team`; see [its README](../dsh-task-board-team/README.md)), Mobile Remote surface (`@linxin666/dsh-task-board-remote`; see [its README](../dsh-task-board-remote/README.md)), and SSH Remote execution (`@linxin666/dsh-client-ui-task-board-ssh`; see [its README](../dsh-task-board-ssh/README.md)). Extensions with GUI settings render their own collapsible sections inside this plugin's settings card whenever installed.
59
59
 
60
60
  ## Architecture and protocol
61
61
 
@@ -97,14 +97,14 @@ For local development:
97
97
  ```sh
98
98
  git clone https://github.com/zhu1090093659/dsh-web.git
99
99
  cd dsh-web
100
- pnpm install
100
+ pnpm run deps:install
101
101
  pnpm build
102
102
  dsh plugin --profile web add link:$(pwd)/packages/dsh-task-board
103
103
  ```
104
104
 
105
105
  ## Configuration
106
106
 
107
- This plugin's settings card groups its options into collapsible sections — Basics, New-card defaults, and the section a provider extension contributes (the GitHub Issues integration). Every section starts collapsed. A change takes effect as it is made: a pick is written at once, and a typed value once typing pauses, on Enter, or when the field is left; Escape puts the stored value back.
107
+ This plugin's settings card groups its options into collapsible sections — Basics, New-card defaults, and any section contributed by installed provider extensions (such as GitHub Issues, Team Hub, and SSH remote execution). Every section starts collapsed. A change takes effect as it is made: a pick is written at once, and a typed value once typing pauses, on Enter, or when the field is left; Escape puts the stored value back.
108
108
 
109
109
  | Key | Default | Behavior |
110
110
  | --- | --- | --- |
@@ -162,7 +162,7 @@ On macOS the backend starts `/usr/bin/caffeinate -i -w <host-pid>` and never req
162
162
 
163
163
  ## Build and test
164
164
 
165
- Node 20 or newer and the official NPM SDK packages are required; no DSH source checkout is used.
165
+ Node ^24.22.3 || >= 26.13.1 and the official NPM SDK packages are required; no DSH source checkout is used.
166
166
 
167
167
  ```sh
168
168
  pnpm --filter @linxin666/dsh-client-ui-task-board typecheck
package/README.zh.md CHANGED
@@ -3,9 +3,9 @@
3
3
  [English](README.md) | 中文
4
4
 
5
5
  <p align="center">
6
- <img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
6
+ <img src="https://img.shields.io/npm/v/@linxin666/dsh-client-ui-task-board?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.3--alpha.4-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -55,7 +55,7 @@
55
55
  - **Agent 工具**:每个会话都可使用八个面向模型的工具(`task_board_list`、`task_board_get`、`task_board_create`、`task_board_update`、`task_board_set_parent`、`task_board_run`、`task_board_manage`、`task_board_schedule`),它们驱动与浏览器完全相同的 Host 账本,因此 agent 可以在对话里列出看板、创建子任务、关联或解除关联、执行一张卡片、把卡片移到任意列(含不经执行直接声明完成、失败或进行中)、归档/恢复/删除卡片、对看板已无法观察的卡片强制结算,以及为卡片配置 cron 计划。
56
56
  - **Host 之外完成的执行结果(issue #1826)**:不由本 Host 执行的工作——例如在 DSH 之外用各自模型工作的 Codex、Claude Code——可以登记成一次真实执行,而不是只改一列。`task_board_manage(action: 'record-external-outcome', result: 'succeeded'|'failed', initiatedBy: <完成者>)` 会追加一条 execution 记录,带上判定、完成者与可选摘要;终态列由这条记录推导,与 Host 结算走同一条规则(`core/tasks.ts` 的 `settledStatus`)。该记录带 `external` 标记、永远不带 session,并在卡片仍有未结算 execution 时被拒绝(本 Host 正在执行时它才是唯一权威),归档卡片同样拒绝。`running` 与 `cancelled` 不能这样登记:它们只属于 Host。手工 `move-done`/`move-failed` 仍然可用,也仍然只写列——区别在于这一条会留下记录,因此列与执行历史永远不会脱节。
57
57
 
58
- - **外部提供方扩展**:GitHub Issues 扩展(`@linxin666/dsh-client-ui-task-board-github`,默认开启)把 GitHub Issues 同步成看板卡片。它是本看板的提供方,因此其配置渲染在本插件自己的设置卡里——仅当扩展已安装时该区块才出现,且只有扩展开启时才显示仓库与凭据表单;见[扩展包 README](../dsh-task-board-github/README.zh.md)。
58
+ - **外部提供方扩展**:看板通过统一提供方契约挂载四个官方伴生扩展——GitHub Issues 同步(`@linxin666/dsh-client-ui-task-board-github`,默认开启,见[扩展包 README](../dsh-task-board-github/README.zh.md))、云端团队协作(`@linxin666/dsh-client-ui-task-board-team`,见[扩展包 README](../dsh-task-board-team/README.zh.md))、手机远端面(`@linxin666/dsh-task-board-remote`,见[扩展包 README](../dsh-task-board-remote/README.zh.md))与 SSH 远端执行(`@linxin666/dsh-client-ui-task-board-ssh`,见[扩展包 README](../dsh-task-board-ssh/README.zh.md))。带 GUI 设置的扩展在安装后将各自的配置区块渲染在本插件自己的设置卡内。
59
59
 
60
60
  ## 架构与协议
61
61
 
@@ -97,14 +97,14 @@ dsh plugin --profile web add @linxin666/dsh-client-ui-task-board@latest
97
97
  ```sh
98
98
  git clone https://github.com/zhu1090093659/dsh-web.git
99
99
  cd dsh-web
100
- pnpm install
100
+ pnpm run deps:install
101
101
  pnpm build
102
102
  dsh plugin --profile web add link:$(pwd)/packages/dsh-task-board
103
103
  ```
104
104
 
105
105
  ## 配置
106
106
 
107
- 本插件的设置卡把选项组织成可折叠的分区——基础、新建卡片默认值,以及提供方扩展(GitHub Issues 集成)贡献的分区。每个分区默认折叠。改动即时生效:点选的选项立刻写入,输入的值在停止输入、按 Enter 或离开输入框时写入;按 Escape 恢复已保存的值。
107
+ 本插件的设置卡把选项组织成可折叠的分区——基础、新建卡片默认值,以及已安装的提供方扩展贡献的分区(如 GitHub Issues、Team Hub 与 SSH 远端执行)。每个分区默认折叠。改动即时生效:点选的选项立刻写入,输入的值在停止输入、按 Enter 或离开输入框时写入;按 Escape 恢复已保存的值。
108
108
 
109
109
  | 键 | 默认值 | 行为 |
110
110
  | --- | --- | --- |
@@ -162,7 +162,7 @@ macOS 后端启动 `/usr/bin/caffeinate -i -w <host-pid>`,绝不请求 `-d`。
162
162
 
163
163
  ## 构建与测试
164
164
 
165
- 需要 Node 20 或更高版本及官方 NPM SDK 包;不使用 DSH 源码 checkout。
165
+ 需要 Node ^24.22.3 || >= 26.13.1 及官方 NPM SDK 包;不使用 DSH 源码 checkout。
166
166
 
167
167
  ```sh
168
168
  pnpm --filter @linxin666/dsh-client-ui-task-board typecheck