@fish-under-sea/dsh-client-ui-task-board-fish 1.0.0 → 1.0.1
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.en.md +4 -4
- package/README.md +4 -4
- package/README.zh.md +4 -4
- package/lib/index.js +10 -2
- package/lib/types/host-runner.d.ts +4 -1
- package/lib/types/host-service.d.ts +2 -0
- package/package.json +3 -2
- package/src/host-runner.ts +7 -2
- package/src/host-service.ts +3 -1
- package/src/index.ts +3 -1
package/README.en.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @fish-under-sea/dsh-client-ui-task-board-fish
|
|
2
2
|
|
|
3
|
-
**1.0.
|
|
3
|
+
**1.0.1 · Task Board**
|
|
4
4
|
|
|
5
5
|
[简体中文](README.md)
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@ Host-authoritative task ledger, Kanban and subtasks; real DSH session execution,
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.1
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Also included in `@fish-under-sea/dsh-fish@1.0.
|
|
17
|
+
Also included in `@fish-under-sea/dsh-fish@1.0.1`. Do not expand duplicate rows through both aggregate and standalone bundles. Restart DSH after installation; use the desktop plugin manager when no CLI is available.
|
|
18
18
|
|
|
19
19
|
## Configuration and Safety
|
|
20
20
|
|
|
@@ -24,6 +24,6 @@ Node requirement: `see package.json`. Host compatibility follows this package ma
|
|
|
24
24
|
|
|
25
25
|
## Maintenance and Attribution
|
|
26
26
|
|
|
27
|
-
1.0.
|
|
27
|
+
1.0.1 is a coordinated release number, not a claim that all latest upstream commits are merged. Historical documentation remains in Git; see [aggregate changelog](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.en.md).
|
|
28
28
|
|
|
29
29
|
Forked from [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). Original authorship, LICENSE and NOTICE are preserved; Fish maintains naming and integration adaptations. License: Apache-2.0.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @fish-under-sea/dsh-client-ui-task-board-fish
|
|
2
2
|
|
|
3
|
-
**1.0.
|
|
3
|
+
**1.0.1 · 任务看板**
|
|
4
4
|
|
|
5
5
|
[English](README.en.md)
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@ Host 权威任务账本、看板与子任务;真实 DSH 会话执行、循环
|
|
|
11
11
|
## 安装
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.1
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.
|
|
17
|
+
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.1`。聚合与独立安装不要重复展开相同插件行;安装完成后重启 DSH。桌面环境无 CLI 时使用插件管理器。
|
|
18
18
|
|
|
19
19
|
## 配置与边界
|
|
20
20
|
|
|
@@ -24,6 +24,6 @@ Node 要求: `see package.json`. DSH 支持范围以本包声明为准;聚合
|
|
|
24
24
|
|
|
25
25
|
## 维护与来源
|
|
26
26
|
|
|
27
|
-
1.0.
|
|
27
|
+
1.0.1 统一发布版本,不表示已合并上游所有最新提交。历史说明保留在 Git 历史中;聚合变更见 [聚合变更记录](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.md).
|
|
28
28
|
|
|
29
29
|
派生自 [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). 保留原作者署名、LICENSE 与 NOTICE;Fish 修改包括包名与对应适配。 许可证: Apache-2.0.
|
package/README.zh.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @fish-under-sea/dsh-client-ui-task-board-fish
|
|
2
2
|
|
|
3
|
-
**1.0.
|
|
3
|
+
**1.0.1 · 任务看板**
|
|
4
4
|
|
|
5
5
|
[English](README.en.md)
|
|
6
6
|
|
|
@@ -11,10 +11,10 @@ Host 权威任务账本、看板与子任务;真实 DSH 会话执行、循环
|
|
|
11
11
|
## 安装
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-client-ui-task-board-fish@1.0.1
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.
|
|
17
|
+
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.1`。聚合与独立安装不要重复展开相同插件行;安装完成后重启 DSH。桌面环境无 CLI 时使用插件管理器。
|
|
18
18
|
|
|
19
19
|
## 配置与边界
|
|
20
20
|
|
|
@@ -24,6 +24,6 @@ Node 要求: `see package.json`. DSH 支持范围以本包声明为准;聚合
|
|
|
24
24
|
|
|
25
25
|
## 维护与来源
|
|
26
26
|
|
|
27
|
-
1.0.
|
|
27
|
+
1.0.1 统一发布版本,不表示已合并上游所有最新提交。历史说明保留在 Git 历史中;聚合变更见 [聚合变更记录](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.md).
|
|
28
28
|
|
|
29
29
|
派生自 [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). 保留原作者署名、LICENSE 与 NOTICE;Fish 修改包括包名与对应适配。 许可证: Apache-2.0.
|
package/lib/index.js
CHANGED
|
@@ -5417,32 +5417,38 @@ var HostExecutionRunner = class {
|
|
|
5417
5417
|
gateway;
|
|
5418
5418
|
commands;
|
|
5419
5419
|
workspaceRegistry;
|
|
5420
|
+
operatorPeer;
|
|
5420
5421
|
/** Newest scanned event sequence per session with no matching execution end. */
|
|
5421
5422
|
scanMemos = /* @__PURE__ */ new Map();
|
|
5422
5423
|
unavailableAttempts;
|
|
5423
5424
|
unavailableBackoffMs;
|
|
5424
5425
|
unsupportedSessionListWarned = false;
|
|
5425
|
-
constructor(gateway, commands, workspaceRegistry, unavailableRetry) {
|
|
5426
|
+
constructor(gateway, commands, workspaceRegistry, unavailableRetry, operatorPeer) {
|
|
5426
5427
|
this.gateway = gateway;
|
|
5427
5428
|
this.commands = commands;
|
|
5428
5429
|
this.workspaceRegistry = workspaceRegistry;
|
|
5430
|
+
this.operatorPeer = operatorPeer;
|
|
5429
5431
|
this.unavailableAttempts = unavailableRetry?.attempts ?? SERVICE_UNAVAILABLE_ATTEMPTS;
|
|
5430
5432
|
this.unavailableBackoffMs = unavailableRetry?.backoffMs ?? SERVICE_UNAVAILABLE_BACKOFF_MS;
|
|
5431
5433
|
}
|
|
5432
5434
|
invoke(namespace, method, request, signal) {
|
|
5435
|
+
const peer = this.operatorPeer?.();
|
|
5433
5436
|
return this.gateway.invoke({
|
|
5434
5437
|
namespace,
|
|
5435
5438
|
method,
|
|
5436
5439
|
args: invokeWireArgs(namespace, method, request),
|
|
5440
|
+
...peer === void 0 ? {} : { peer },
|
|
5437
5441
|
...signal === void 0 ? {} : { signal }
|
|
5438
5442
|
});
|
|
5439
5443
|
}
|
|
5440
5444
|
stream(namespace, method, request, signal) {
|
|
5441
5445
|
if (!("stream" in this.gateway) || this.gateway.stream === void 0) throw new Error("gateway stream is unavailable");
|
|
5446
|
+
const peer = this.operatorPeer?.();
|
|
5442
5447
|
return this.gateway.stream({
|
|
5443
5448
|
namespace,
|
|
5444
5449
|
method,
|
|
5445
5450
|
args: { request },
|
|
5451
|
+
...peer === void 0 ? {} : { peer },
|
|
5446
5452
|
...signal === void 0 ? {} : { signal }
|
|
5447
5453
|
});
|
|
5448
5454
|
}
|
|
@@ -6655,7 +6661,7 @@ var TaskBoardHostService = class {
|
|
|
6655
6661
|
sessionDefaultPermission: options.sessionDefaultPermission,
|
|
6656
6662
|
maxSubtaskDepth: options.maxSubtaskDepth
|
|
6657
6663
|
});
|
|
6658
|
-
this.runner = new HostExecutionRunner(gateway, options.commandDispatcher, options.workspaceRegistry);
|
|
6664
|
+
this.runner = new HostExecutionRunner(gateway, options.commandDispatcher, options.workspaceRegistry, void 0, options.operatorPeer);
|
|
6659
6665
|
this.workspaceRegistry = options.workspaceRegistry;
|
|
6660
6666
|
this.team = options.team;
|
|
6661
6667
|
this.timers = options.timers ?? PROCESS_TIMERS;
|
|
@@ -10072,6 +10078,7 @@ const DEFAULT_PROXY_TOKEN_ENV = "DSH_TASK_BOARD_PROXY_TOKEN";
|
|
|
10072
10078
|
const inject = [
|
|
10073
10079
|
"systemPrompt",
|
|
10074
10080
|
"typertGateway",
|
|
10081
|
+
"connection",
|
|
10075
10082
|
"workspaceRegistry",
|
|
10076
10083
|
"webServer",
|
|
10077
10084
|
"agents",
|
|
@@ -10335,6 +10342,7 @@ function applyImpl(ctx, config) {
|
|
|
10335
10342
|
const goalRunEnabled = () => readConfigField(config?.goalRunEnabled, false);
|
|
10336
10343
|
const host = new TaskBoardHostService(ctx.typertGateway, {
|
|
10337
10344
|
workspaceRegistry: ctx.workspaceRegistry,
|
|
10345
|
+
operatorPeer: () => ctx.connection.operator,
|
|
10338
10346
|
sessionDefaultPermission,
|
|
10339
10347
|
maxSubtaskDepth: maxSubtaskDepth(),
|
|
10340
10348
|
goalRunEnabled,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TypertGateway } from '@deepseek-ai/dsh-api-gateway';
|
|
2
|
+
import type { PeerScope } from '@deepseek-ai/dsh-client-connection';
|
|
2
3
|
import type { SessionSummary } from '@deepseek-ai/dsh-api-session-controller/types';
|
|
3
4
|
import type { CommandResult } from '@deepseek-ai/dsh-commands/types';
|
|
4
5
|
import type { Workspace } from '@deepseek-ai/dsh-workspace/types';
|
|
@@ -14,6 +15,7 @@ interface GatewayRequest {
|
|
|
14
15
|
namespace: string;
|
|
15
16
|
method: string;
|
|
16
17
|
args: Record<string, unknown>;
|
|
18
|
+
peer?: PeerScope;
|
|
17
19
|
signal?: AbortSignal;
|
|
18
20
|
}
|
|
19
21
|
interface SessionGateway {
|
|
@@ -111,6 +113,7 @@ export declare class HostExecutionRunner {
|
|
|
111
113
|
private readonly gateway;
|
|
112
114
|
private readonly commands?;
|
|
113
115
|
private readonly workspaceRegistry?;
|
|
116
|
+
private readonly operatorPeer?;
|
|
114
117
|
/** Newest scanned event sequence per session with no matching execution end. */
|
|
115
118
|
private readonly scanMemos;
|
|
116
119
|
private readonly unavailableAttempts;
|
|
@@ -119,7 +122,7 @@ export declare class HostExecutionRunner {
|
|
|
119
122
|
constructor(gateway: SessionGateway | TypertGateway, commands?: SessionCommandDispatcher | undefined, workspaceRegistry?: TaskBoardWorkspaceRegistry | undefined, unavailableRetry?: {
|
|
120
123
|
attempts?: number;
|
|
121
124
|
backoffMs?: number;
|
|
122
|
-
});
|
|
125
|
+
}, operatorPeer?: (() => PeerScope | undefined) | undefined);
|
|
123
126
|
private invoke;
|
|
124
127
|
private stream;
|
|
125
128
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TypertGateway } from '@deepseek-ai/dsh-api-gateway';
|
|
2
|
+
import type { PeerScope } from '@deepseek-ai/dsh-client-connection';
|
|
2
3
|
import { HostTaskLedger } from './host-ledger.ts';
|
|
3
4
|
import { HostExecutionRunner, type SessionCommandDispatcher, type TaskBoardWorkspaceRegistry } from './host-runner.ts';
|
|
4
5
|
import { PowerInhibitor } from './power-inhibitor.ts';
|
|
@@ -156,6 +157,7 @@ export declare class TaskBoardHostService {
|
|
|
156
157
|
verificationSettings?: () => VerificationSettings;
|
|
157
158
|
/** The host model catalog the acceptance contract resolves its route from. */
|
|
158
159
|
verificationCatalog?: () => Promise<ModelCatalogView | undefined>;
|
|
160
|
+
operatorPeer?: () => PeerScope | undefined;
|
|
159
161
|
});
|
|
160
162
|
start(): void;
|
|
161
163
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/dsh-client-ui-task-board-fish",
|
|
3
3
|
"description": "Host-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"build": "tsc -b tsconfig.build.json && tsdown",
|
|
44
44
|
"bundle": "tsdown",
|
|
45
45
|
"watch": "tsdown --watch",
|
|
46
|
-
"typecheck": "tsc --noEmit"
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"test": "node --experimental-transform-types --test test/*.test.mjs"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"@deepseek-ai/dsh": ">=0.2.0-rc.2",
|
package/src/host-runner.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TypertGateway } from '@deepseek-ai/dsh-api-gateway'
|
|
2
|
+
import type { PeerScope } from '@deepseek-ai/dsh-client-connection'
|
|
2
3
|
import type { SessionAddress, SessionHistoryRecord, SessionListValue, SessionPage, SessionSummary } from '@deepseek-ai/dsh-api-session-controller/types'
|
|
3
4
|
import type { CommandResult } from '@deepseek-ai/dsh-commands/types'
|
|
4
5
|
import type { Workspace } from '@deepseek-ai/dsh-workspace/types'
|
|
@@ -18,6 +19,7 @@ interface GatewayRequest {
|
|
|
18
19
|
namespace: string
|
|
19
20
|
method: string
|
|
20
21
|
args: Record<string, unknown>
|
|
22
|
+
peer?: PeerScope
|
|
21
23
|
signal?: AbortSignal
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -324,18 +326,21 @@ export class HostExecutionRunner {
|
|
|
324
326
|
private readonly commands?: SessionCommandDispatcher,
|
|
325
327
|
private readonly workspaceRegistry?: TaskBoardWorkspaceRegistry,
|
|
326
328
|
unavailableRetry?: { attempts?: number; backoffMs?: number },
|
|
329
|
+
private readonly operatorPeer?: () => PeerScope | undefined,
|
|
327
330
|
) {
|
|
328
331
|
this.unavailableAttempts = unavailableRetry?.attempts ?? SERVICE_UNAVAILABLE_ATTEMPTS
|
|
329
332
|
this.unavailableBackoffMs = unavailableRetry?.backoffMs ?? SERVICE_UNAVAILABLE_BACKOFF_MS
|
|
330
333
|
}
|
|
331
334
|
|
|
332
335
|
private invoke(namespace: string, method: string, request: Record<string, unknown>, signal?: AbortSignal): Promise<unknown> {
|
|
333
|
-
|
|
336
|
+
const peer = this.operatorPeer?.()
|
|
337
|
+
return this.gateway.invoke({ namespace, method, args: invokeWireArgs(namespace, method, request), ...(peer === undefined ? {} : { peer }), ...(signal === undefined ? {} : { signal }) })
|
|
334
338
|
}
|
|
335
339
|
|
|
336
340
|
private stream(namespace: string, method: string, request: Record<string, unknown>, signal?: AbortSignal): Promise<AsyncIterable<unknown>> {
|
|
337
341
|
if (!('stream' in this.gateway) || this.gateway.stream === undefined) throw new Error('gateway stream is unavailable')
|
|
338
|
-
|
|
342
|
+
const peer = this.operatorPeer?.()
|
|
343
|
+
return this.gateway.stream({ namespace, method, args: { request }, ...(peer === undefined ? {} : { peer }), ...(signal === undefined ? {} : { signal }) })
|
|
339
344
|
}
|
|
340
345
|
|
|
341
346
|
/**
|
package/src/host-service.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TypertGateway } from '@deepseek-ai/dsh-api-gateway'
|
|
2
|
+
import type { PeerScope } from '@deepseek-ai/dsh-client-connection'
|
|
2
3
|
import { DEFAULT_SESSION_POLL_SECONDS, normalizeSessionPollSeconds, sessionPollMs } from './core/poll-cadence.ts'
|
|
3
4
|
import { reusableSessionId } from './core/session-reuse.ts'
|
|
4
5
|
import { HostTaskLedger, type OpenedRun, type OpenExecutionReference } from './host-ledger.ts'
|
|
@@ -216,12 +217,13 @@ export class TaskBoardHostService {
|
|
|
216
217
|
verificationSettings?: () => VerificationSettings
|
|
217
218
|
/** The host model catalog the acceptance contract resolves its route from. */
|
|
218
219
|
verificationCatalog?: () => Promise<ModelCatalogView | undefined>
|
|
220
|
+
operatorPeer?: () => PeerScope | undefined
|
|
219
221
|
} = {}) {
|
|
220
222
|
this.ledger = options.ledger ?? new HostTaskLedger(undefined, undefined, {
|
|
221
223
|
sessionDefaultPermission: options.sessionDefaultPermission,
|
|
222
224
|
maxSubtaskDepth: options.maxSubtaskDepth,
|
|
223
225
|
})
|
|
224
|
-
this.runner = new HostExecutionRunner(gateway, options.commandDispatcher, options.workspaceRegistry)
|
|
226
|
+
this.runner = new HostExecutionRunner(gateway, options.commandDispatcher, options.workspaceRegistry, undefined, options.operatorPeer)
|
|
225
227
|
this.workspaceRegistry = options.workspaceRegistry
|
|
226
228
|
this.team = options.team
|
|
227
229
|
this.timers = options.timers ?? PROCESS_TIMERS
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type {} from '@deepseek-ai/dsh-commands'
|
|
|
12
12
|
import z from '@deepseek-ai/schemastery'
|
|
13
13
|
import type {} from '@deepseek-ai/dsh-system-prompt'
|
|
14
14
|
import type {} from '@deepseek-ai/dsh-api-gateway'
|
|
15
|
+
import type {} from '@deepseek-ai/dsh-client-connection'
|
|
15
16
|
import type {} from '@deepseek-ai/dsh-workspace'
|
|
16
17
|
import type {} from '@deepseek-ai/dsh-host-webserver'
|
|
17
18
|
import type {} from '@deepseek-ai/dsh-tools'
|
|
@@ -48,7 +49,7 @@ const SECTION_ORDER = PLUGIN_TOOL_SECTION_ORDERS['task-board']
|
|
|
48
49
|
/** Default environment variable holding the authenticated proxy token. */
|
|
49
50
|
export const DEFAULT_PROXY_TOKEN_ENV = 'DSH_TASK_BOARD_PROXY_TOKEN'
|
|
50
51
|
|
|
51
|
-
export const inject = ['systemPrompt', 'typertGateway', 'workspaceRegistry', 'webServer', 'agents', 'commands']
|
|
52
|
+
export const inject = ['systemPrompt', 'typertGateway', 'connection', 'workspaceRegistry', 'webServer', 'agents', 'commands']
|
|
52
53
|
|
|
53
54
|
/** Model-facing announcement: plugin presence, capabilities, and limits. */
|
|
54
55
|
export const TASK_BOARD_GUIDANCE = '本机已安装 dsh-task-board 插件(DSH Web GUI 的任务看板):侧边栏「任务看板」入口;在 dsh-web 插件全家桶仓库(packages/dsh-task-board)统一维护,经聚合包 web-ui-all 一键安装。能力:多列看板管理任务;Host 权威账本;关闭浏览器后仍由 Host 执行和结算;任务可钉住工作区、agent 预设和权限;任务可建子任务(深度上限可配 1..3,默认 1 层,子任务不能再带子任务),执行父任务会并发执行其子任务树,子任务可单独覆盖权限与模型;另注册 task_board_* agent 工具(list/get/create/update/set_parent/run/manage/schedule),任何会话都可直接读写看板、子任务与定时计划,但运行任务会真实执行并消耗额度,高于会话默认权限的绑定仍必须由用户在 GUI 人工确认(工具刻意不提供确认能力);支持 Host 本地时区的 5 段 cron,错过的触发点不补跑;可选且默认关闭的空闲系统睡眠保护允许屏幕熄灭,但不承诺拦截合盖、手动睡眠、休眠、关机或唤醒已睡眠机器。执行消耗 API 额度。用户提到「任务看板 / 看板 / 定时任务」时即指本插件,请据此协作。若你同时用 todo_write 维护会话顶部的可见计划列表,最终回复前必须再次调用 todo_write 收尾:没有剩余工作时不要保留 in_progress,已完成的最后一步要标为 completed。'
|
|
@@ -531,6 +532,7 @@ function applyImpl(ctx: Context, config?: Config): void {
|
|
|
531
532
|
const goalRunEnabled = (): boolean => readConfigField(config?.goalRunEnabled, DEFAULT_GOAL_RUN)
|
|
532
533
|
const host = new TaskBoardHostService(ctx.typertGateway, {
|
|
533
534
|
workspaceRegistry: ctx.workspaceRegistry,
|
|
535
|
+
operatorPeer: () => ctx.connection.operator,
|
|
534
536
|
sessionDefaultPermission,
|
|
535
537
|
maxSubtaskDepth: maxSubtaskDepth(),
|
|
536
538
|
goalRunEnabled,
|