@fish-under-sea/dsh-agent-teams-fish 1.1.0 → 2.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/NOTICE.md +12 -6
- package/README.en.md +19 -12
- package/README.md +19 -12
- package/icon.png +0 -0
- package/lib/client/StagingPlanEditor.js +33 -4
- package/lib/client.js +202 -184
- package/lib/client.js.map +1 -1
- package/lib/git-artifact-stamp.json +1 -1
- package/lib/harness-compat.js +14 -7
- package/lib/index.js +34 -1
- package/lib/types/harness-compat.d.ts +5 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +262 -257
- package/release-notes/v2.0.0.md +17 -0
- package/scripts/artwork-role-match.test.mjs +517 -0
- package/scripts/capabilities.test.mjs +301 -0
- package/scripts/check-install-channel.mjs +55 -0
- package/scripts/check-install-channel.test.mjs +39 -0
- package/scripts/clean-build.mjs +14 -0
- package/scripts/client-harness-migration.test.mjs +46 -0
- package/scripts/compatibility.test.mjs +187 -0
- package/scripts/corrupt-teamjson.test.mjs +180 -0
- package/scripts/custom-artwork.test.mjs +273 -0
- package/scripts/fallback-tdd.mjs +61 -0
- package/scripts/fixtures/harness-benchmark-scope.mjs +16 -0
- package/scripts/fixtures/harness-benchmark-scope.test.mjs +18 -0
- package/scripts/fixtures/harness-complex-case.mjs +201 -0
- package/scripts/fixtures/harness-complex-case.test.mjs +21 -0
- package/scripts/fixtures/harness-complex-oracle.mjs +63 -0
- package/scripts/fixtures/harness-issue-case.mjs +51 -0
- package/scripts/fixtures/harness-issue159-case.mjs +28 -0
- package/scripts/fixtures/harness-model-case.mjs +127 -0
- package/scripts/fixtures/harness-model-case.test.mjs +37 -0
- package/scripts/fixtures/harness-model-driver.mjs +100 -0
- package/scripts/fixtures/harness-runtime-credentials.mjs +23 -0
- package/scripts/fixtures/harness-runtime-entry.mjs +171 -0
- package/scripts/fixtures/harness-runtime-idle.mjs +42 -0
- package/scripts/fixtures/harness-runtime-llm.mjs +193 -0
- package/scripts/fixtures/harness-runtime-protocol.mjs +187 -0
- package/scripts/fixtures/harness-runtime-resume.mjs +24 -0
- package/scripts/fixtures/harness-runtime-stability.mjs +282 -0
- package/scripts/fixtures/harness-runtime-tools.mjs +13 -0
- package/scripts/fixtures/harness-runtime-web-approval.mjs +341 -0
- package/scripts/fixtures/issue-336-audit-worker.mjs +18 -0
- package/scripts/git-artifacts.mjs +64 -0
- package/scripts/git-artifacts.test.mjs +32 -0
- package/scripts/harness-compat-tdd.mjs +492 -0
- package/scripts/harness-issue-verify.mjs +26 -0
- package/scripts/harness-model-benchmark.mjs +163 -0
- package/scripts/harness-runtime-platform.test.mjs +31 -0
- package/scripts/harness-runtime-scenarios.mjs +297 -0
- package/scripts/harness-runtime-verify.mjs +169 -0
- package/scripts/harness-source-verify.mjs +211 -0
- package/scripts/harness-source-verify.test.mjs +97 -0
- package/scripts/harness-validation.mjs +68 -0
- package/scripts/harness-validation.test.mjs +95 -0
- package/scripts/http-body.test.mjs +72 -0
- package/scripts/import-vendor-artwork.mjs +78 -0
- package/scripts/inline-plan-blank-optional-tdd.mjs +121 -0
- package/scripts/issue-159.test.mjs +78 -0
- package/scripts/issue-188.test.mjs +148 -0
- package/scripts/issue-189.test.mjs +100 -0
- package/scripts/issue-203-card.test.mjs +181 -0
- package/scripts/issue-205.test.mjs +163 -0
- package/scripts/issue-234.test.mjs +424 -0
- package/scripts/issue-236-stale-module.test.mjs +63 -0
- package/scripts/issue-236.test.mjs +59 -0
- package/scripts/issue-262.test.mjs +98 -0
- package/scripts/issue-336.test.mjs +404 -0
- package/scripts/legacy-session-source-repair.test.mjs +201 -0
- package/scripts/lifecycle-verify.mjs +1573 -0
- package/scripts/lineage-identity.test.mjs +77 -0
- package/scripts/member-failure-tdd.mjs +451 -0
- package/scripts/member-spawn-recovery.test.mjs +92 -0
- package/scripts/quality-gates-amend.test.mjs +161 -0
- package/scripts/quality-gates-content-bound.test.mjs +572 -0
- package/scripts/quality-gates-cross-binding.test.mjs +184 -0
- package/scripts/quality-gates-excluded-scope.test.mjs +163 -0
- package/scripts/quality-gates-repair-scope.test.mjs +143 -0
- package/scripts/quality-gates-repair-wiring.test.mjs +189 -0
- package/scripts/quality-gates-tdd.mjs +1238 -0
- package/scripts/quality-gates-work-order.test.mjs +494 -0
- package/scripts/readme-version.mjs +89 -0
- package/scripts/readme-version.test.mjs +77 -0
- package/scripts/release-metadata.mjs +45 -0
- package/scripts/release-metadata.test.mjs +66 -0
- package/scripts/scoped-release.test.mjs +52 -0
- package/scripts/stability-tdd.mjs +144 -0
- package/scripts/stress-verify.mjs +548 -0
- package/scripts/symlink-support.mjs +46 -0
- package/scripts/sync-skill.mjs +103 -0
- package/scripts/tool-policies.test.mjs +280 -0
- package/scripts/update-skills.mjs +105 -0
- package/scripts/update-skills.test.mjs +79 -0
- package/scripts/upgrade-status.mjs +66 -0
- package/scripts/upgrade-status.test.mjs +83 -0
- package/scripts/verify-package.mjs +73 -0
- package/scripts/verify.mjs +2199 -0
- package/scripts/web-routes-verify.mjs +142 -0
- package/scripts/workspace-activity.test.mjs +346 -0
- package/scripts/workspace-summary.test.mjs +49 -0
- package/src/artifacts.ts +487 -0
- package/src/artwork-source.ts +262 -0
- package/src/capabilities.ts +113 -0
- package/src/client/ActivityPanel.module.css +2390 -0
- package/src/client/ActivityPanel.tsx +1507 -0
- package/src/client/AgentTeamsCard.module.css +148 -0
- package/src/client/AgentTeamsCard.tsx +155 -0
- package/src/client/StagingPlanEditor.tsx +861 -0
- package/src/client/TeamChatEntry.tsx +27 -0
- package/src/client/WorkspaceActivity.module.css +41 -0
- package/src/client/WorkspaceActivity.tsx +137 -0
- package/src/client/activity-model.ts +372 -0
- package/src/client/activity-monitor.ts +440 -0
- package/src/client/agent-teams-card-definition.ts +250 -0
- package/src/client/artwork.ts +374 -0
- package/src/client/icons.tsx +17 -0
- package/src/client/index.tsx +140 -0
- package/src/client/locales.ts +481 -0
- package/src/client/panel-geometry.ts +194 -0
- package/src/client/session-navigation.ts +73 -0
- package/src/client/workspace-state.ts +52 -0
- package/src/command.ts +145 -0
- package/src/css-modules.d.ts +4 -0
- package/src/event-types.ts +177 -0
- package/src/events.ts +78 -0
- package/src/harness-compat.ts +577 -0
- package/src/index.ts +632 -0
- package/src/lineage.ts +248 -0
- package/src/mailbox.ts +185 -0
- package/src/members.ts +1230 -0
- package/src/profiles.ts +765 -0
- package/src/quality-gates.ts +2124 -0
- package/src/scheduler.ts +554 -0
- package/src/snapshot.ts +333 -0
- package/src/state.ts +1317 -0
- package/src/tool-names.ts +14 -0
- package/src/tool-policies.ts +219 -0
- package/src/tools.ts +2939 -0
- package/src/types.ts +414 -0
- package/src/web-routes.ts +128 -0
- package/src/workspace-audit-service.ts +182 -0
- package/src/workspace-audit-worker.ts +12 -0
- package/src/workspace-audit.ts +57 -0
package/NOTICE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 来源与署名(NOTICE)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
本包是 **dsh-agent-teams** 插件的**补充版(fork)**,**不是原创项目**。自 2.0.0 起作为 [Fish-under-sea/dsh-fish](https://github.com/Fish-under-sea/dsh-fish) 聚合仓库的工作区成员 `packages/dsh-agent-teams-fish` 维护与发布。
|
|
4
4
|
|
|
5
5
|
## 原始项目
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
| 许可证 | **MIT** |
|
|
16
16
|
| 本版基线 | 上游 tag **v0.1.29**(commit `369c278`) |
|
|
17
17
|
|
|
18
|
-
## 本版(
|
|
18
|
+
## 本版(dsh-agent-teams-fish)做了什么
|
|
19
19
|
|
|
20
20
|
只做**增量补充**,未改动上游的团队协作逻辑(花名册、任务 DAG、调度、质量门、信箱、面板主体交互):
|
|
21
21
|
|
|
@@ -31,14 +31,20 @@
|
|
|
31
31
|
10. **第二轮厂商素材**(2026-10-08)—— 厂商命名空间 9 → 15,厂商素材 108 → 265 张;`audio` / `video` 两个此前只登记、未出图的岗位桶补齐(10 个厂商);`member-<vendor>-v2.png` 与高清立绘全套换成新的 15 张全身立绘。素材分两档:10 个厂商有「厂商 × 岗位」全套,`meta` / `mistral` / `rwkv` / `seed` / `ernie` 只有通用图与立绘
|
|
32
32
|
11. **高清预览族**(2026-10-08,同一轮)—— 点开的小图/大图拆成两份:列表仍是 256×256 PNG,点击放大改用**去背后的原分辨率**画面(岗位/队长 1024×1024、厂商立绘长边 ≤2048),编成 WebP(质量 92、带 alpha)。宿主端为 `member-` / `team-lead-` 族加了按扩展名探测,所以客户端请求的 `.png` 名字能命中随包的 `.webp`;原先 512×512 的 PNG 立绘被高清 WebP 取代
|
|
33
33
|
|
|
34
|
+
## 2.0.0:并入 dsh-fish 聚合仓库
|
|
35
|
+
|
|
36
|
+
- 源码、构建产物(`lib/`)、美术素材、脚本与技能整体并入 `packages/dsh-agent-teams-fish`,成为与其它成员同等的工作区子包;包名保持 `@fish-under-sea/dsh-agent-teams-fish`,版本随聚合统一为 **2.0.0**。上游基线仍是 v0.1.29(commit `369c278`),本轮不同步新的上游代码。
|
|
37
|
+
- `repository` / `homepage` / `bugs` 指向聚合仓库;新增聚合图标 `icon.png` 与插件清单元数据 `locale/zh.json`、`locale/en.json`(meta.title / meta.description)。
|
|
38
|
+
- `scripts/git-artifacts.mjs` 的构建门禁容忍包级 `pnpm-lock.yaml` 缺失(聚合仓库的锁文件在根目录);`pnpm-workspace.yaml` 保留为 `scripts/compatibility.mjs` 与 doctor 的兼容性策略清单。团队协作逻辑未改动。
|
|
39
|
+
|
|
34
40
|
## 原作者的权利
|
|
35
41
|
|
|
36
42
|
- 插件全部功能与代码的著作权归**原作者**所有。
|
|
37
|
-
-
|
|
43
|
+
- 本包**完整保留**上游 `LICENSE` 原文与版权声明,未做任何修改。
|
|
38
44
|
- 上游原始 README 完整保留为 [`README.original.md`](README.original.md) 与 [`README_ZH.original.md`](README_ZH.original.md),未做任何修改。
|
|
39
|
-
- 上游 `CONTRIBUTING.md`
|
|
45
|
+
- 上游 `CONTRIBUTING.md` 不随聚合分发;开发流程以聚合仓库为准。
|
|
40
46
|
- 本版新增代码同样以 **MIT** 发布;再分发时请保留本文件与上游署名。
|
|
41
|
-
- `package.json` 只改身份字段:包名为本版的
|
|
47
|
+
- `package.json` 只改身份字段:包名为本版的 **`@fish-under-sea/dsh-agent-teams-fish`**(上游包名 `@nanmicoder/dsh-agent-teams` 属原作者,本版无法沿用),`repository` / `homepage` / `bugs` 指向聚合仓库 dsh-fish;**版本 `2.0.0` 随聚合统一,`author`、`license` 的署名关系保持上游不变**。
|
|
42
48
|
- 包名牵动三处必须同步,否则插件加载失败:`package.json` 的 `name`、`cordis.patch.yml` 的插件行 `name`、客户端包 `lib/client.js` 的注册 `id`(不一致会报 `loaded without registering`)。
|
|
43
49
|
|
|
44
50
|
## 美术素材与商标
|
|
@@ -46,4 +52,4 @@
|
|
|
46
52
|
- **0.3.1 起本仓库随包分发美术素材**:`assets/agent-teams/` 含厂商素材(岗位头像 + 点击放大的高清图 + 厂商通用头像/立绘 + 队长头像/高清 + 商标 SVG)。2026-10-08 第二轮后共 **265 张厂商素材 / 约 28.6 MB**(100 张岗位头像 PNG + 100 张岗位高清 WebP + 15 张厂商通用 PNG + 15 张厂商立绘高清 WebP + 10 张队长头像 PNG + 10 张队长高清 WebP + 15 个商标 SVG),加上上游自带的 15 张内置素材,共 **280 个文件**。
|
|
47
53
|
- 角色图是各家角色的 **AI 二次创作**;商标 SVG 是在 simple-icons(`minimax` / `meta` / `mistralai`)与 LobeHub icons(`rwkv` / `bytedance` / `wenxin`)等图标集的单色 path 上按各厂商品牌色着色的**各厂商商标**。两者**版权均归各厂商所有**,随包分发**仅供个人学习与本地使用**。
|
|
48
54
|
- 若你**商用或再分发**(包括把本包再发布到公共 registry、镜像站、或打包进商业产品),请自行评估并取得相应授权 —— 本仓库不代为授权。
|
|
49
|
-
- 想整套换画风仍可用 `artworkDir` 目录覆盖随包素材,命名与降级规则见 [`README.md`](README.md)
|
|
55
|
+
- 想整套换画风仍可用 `artworkDir` 目录覆盖随包素材,命名与降级规则见 [`README.md`](README.md) 与 `src/artwork-source.ts`。
|
package/README.en.md
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
# @fish-under-sea/dsh-agent-teams-fish
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**2.0.1 · Upstream v0.1.29 synced · dsh-fish bundle member · Durable teams with Fish vendor artwork**
|
|
4
4
|
|
|
5
5
|
[简体中文](README.md)
|
|
6
6
|
|
|
7
7
|
## Installation and Compatibility
|
|
8
8
|
|
|
9
|
+
Since 2.0.1 this package lives in the [Fish-under-sea/dsh-fish](https://github.com/Fish-under-sea/dsh-fish) bundle repository as the workspace member `packages/dsh-agent-teams-fish`, built, versioned and released together with the other members; the former standalone repository no longer evolves separately.
|
|
10
|
+
|
|
9
11
|
```sh
|
|
10
|
-
|
|
12
|
+
# Bundle install (recommended, includes every member)
|
|
13
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-fish@2.0.1
|
|
14
|
+
|
|
15
|
+
# Or install this member alone
|
|
16
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-agent-teams-fish@2.0.1
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
The bundle already includes this member; do not mount twice. Restart DSH after installation. Requires Node `>=24.9`. Recommended Host: `0.2.2-rc.1`; older targets such as `0.2.1-rc.2` and `0.2.1-alpha.2` remain supported. [compatibility.json](compatibility.json) is the exact support authority; desktop and core versions are distinct.
|
|
14
20
|
|
|
15
21
|
## Features
|
|
16
22
|
|
|
@@ -22,30 +28,31 @@ Also included in `@fish-under-sea/dsh-fish`; do not mount twice. Restart DSH aft
|
|
|
22
28
|
|
|
23
29
|
## Migration and Configuration
|
|
24
30
|
|
|
25
|
-
The old unscoped npm name `dsh-agent-teams-fish` moves to this scope. Update direct dependencies, bundle names and profile override `name` values, keeping `id: agent-teams`; never load both sources. State defaults to workspace `.agent-teams`, memberProvider to `spawn`; artworkDir is machine-local.
|
|
31
|
+
The old unscoped npm name `dsh-agent-teams-fish` moves to this scope. Update direct dependencies, bundle names and profile override `name` values, keeping `id: agent-teams`; never load both sources. State defaults to workspace `.agent-teams`, memberProvider to `spawn`; artworkDir is machine-local. Neither the rename nor the repository merge changes configuration fields or the team data format.
|
|
26
32
|
|
|
27
33
|
Back up securely first. Members consume real model quota. Tool policies are deployment-owned and cannot be bypassed by renaming. The plugin does not auto-repair logs, delete historical events or replay interrupted work; diagnose old corruption separately.
|
|
28
34
|
|
|
29
35
|
## Development Checks
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
Build artifacts under `lib/` are committed with the source, so publishing does not depend on a local build; `src/` and the build configuration are kept in full for rebuilds. Inside the bundle repository, run these commands manually as needed:
|
|
32
38
|
|
|
33
39
|
```sh
|
|
34
40
|
pnpm install --frozen-lockfile
|
|
35
|
-
pnpm typecheck
|
|
36
|
-
pnpm build
|
|
37
|
-
pnpm verify
|
|
41
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish typecheck
|
|
42
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish build
|
|
43
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish verify
|
|
38
44
|
```
|
|
39
45
|
|
|
40
|
-
The `dsh-agent-teams-doctor` command inspects manifests and dependency closure only; it does not prove runtime behavior or identify the current process. Real Host and UI acceptance are separate.
|
|
46
|
+
Maintainers decide when to build and check before a release. Runtime approvals and optional quality-task rules are unchanged. The `dsh-agent-teams-doctor` command inspects manifests and dependency closure only; it does not prove runtime behavior or identify the current process. Real Host and UI acceptance are separate.
|
|
41
47
|
|
|
42
48
|
## Attribution and History
|
|
43
49
|
|
|
44
|
-
Based on [NanmiCoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams) (original author Relakkes / 程序员阿江). MIT. Upstream READMEs, NOTICE and release history are preserved.
|
|
50
|
+
Based on [NanmiCoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams) (original author Relakkes / 程序员阿江). MIT. Upstream READMEs, NOTICE and release history are preserved. The source baseline follows upstream tag v0.1.29 (commit 369c278); since 2.0.1 the package is vendored into the dsh-fish bundle repository and versioned with it.
|
|
45
51
|
|
|
52
|
+
- [2.0.1](release-notes/v2.0.1.md)
|
|
46
53
|
- [1.1.0](release-notes/v1.1.0.md)
|
|
47
54
|
- [1.0.2](release-notes/v1.0.2.md)
|
|
48
55
|
- [1.0.1](release-notes/v1.0.1.md)
|
|
49
56
|
- [1.0.0](release-notes/v1.0.0.md)
|
|
50
|
-
- [Historical notes](https://github.com/Fish-under-sea/dsh-agent-teams-fish/
|
|
51
|
-
- [NOTICE](NOTICE.md)
|
|
57
|
+
- [Historical notes](https://github.com/Fish-under-sea/dsh-fish/tree/main/packages/dsh-agent-teams-fish/release-notes)
|
|
58
|
+
- [NOTICE](NOTICE.md)
|
package/README.md
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
# @fish-under-sea/dsh-agent-teams-fish
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**2.0.1 · 同步上游 v0.1.29 · dsh-fish 聚合成员 · 持久团队协作与 Fish 厂商美术**
|
|
4
4
|
|
|
5
5
|
[English](README.en.md)
|
|
6
6
|
|
|
7
7
|
## 安装与兼容
|
|
8
8
|
|
|
9
|
+
自 2.0.1 起,本包并入 [Fish-under-sea/dsh-fish](https://github.com/Fish-under-sea/dsh-fish) 聚合仓库,作为工作区成员 `packages/dsh-agent-teams-fish` 与其它成员统一构建、统一版本、统一发布;原独立仓库不再单独演进。
|
|
10
|
+
|
|
9
11
|
```sh
|
|
10
|
-
|
|
12
|
+
# 聚合安装(推荐,含全部成员)
|
|
13
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-fish@2.0.1
|
|
14
|
+
|
|
15
|
+
# 或单独安装本成员
|
|
16
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-agent-teams-fish@2.0.1
|
|
11
17
|
```
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
聚合已包含本成员,不要重复挂载。安装后重启 DSH。Node 要求 `>=24.9`。推荐宿主 `0.2.2-rc.1`;`0.2.1-rc.2`、`0.2.1-alpha.2` 等旧版本仍在支持列表内。精确支持列表以 [compatibility.json](compatibility.json) 为唯一事实源,不以桌面应用版本推断核心版本。
|
|
14
20
|
|
|
15
21
|
## 功能
|
|
16
22
|
|
|
@@ -22,30 +28,31 @@ dsh plugin --profile <profile> add @fish-under-sea/dsh-agent-teams-fish@1.1.0
|
|
|
22
28
|
|
|
23
29
|
## 迁移与配置
|
|
24
30
|
|
|
25
|
-
旧 npm 名 `dsh-agent-teams-fish` 改为当前 scoped 名。更新直接依赖、bundle 名和覆盖行的 `name`,保留 `id: agent-teams`;不要同时加载两个来源。状态目录默认是工作区 `.agent-teams`,memberProvider 默认 `spawn`,自定义 artworkDir
|
|
31
|
+
旧 npm 名 `dsh-agent-teams-fish` 改为当前 scoped 名。更新直接依赖、bundle 名和覆盖行的 `name`,保留 `id: agent-teams`;不要同时加载两个来源。状态目录默认是工作区 `.agent-teams`,memberProvider 默认 `spawn`,自定义 artworkDir 使用本机路径。配置字段与团队数据格式不因包名整理或本次并入聚合仓库而改变。
|
|
26
32
|
|
|
27
33
|
先安全备份再迁移。成员使用真实模型额度;工具策略由部署方声明,不能以改名绕过。不会自动修复损坏日志、删除历史事件或重发中断任务。旧会话损坏应独立诊断。
|
|
28
34
|
|
|
29
35
|
## 开发检查
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
构建产物 `lib/` 已随源码提交,发布不依赖本地构建;`src/` 与构建配置完整保留,可随时重建。在聚合仓库中按需手动执行:
|
|
32
38
|
|
|
33
39
|
```sh
|
|
34
40
|
pnpm install --frozen-lockfile
|
|
35
|
-
pnpm typecheck
|
|
36
|
-
pnpm build
|
|
37
|
-
pnpm verify
|
|
41
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish typecheck
|
|
42
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish build
|
|
43
|
+
pnpm --filter @fish-under-sea/dsh-agent-teams-fish verify
|
|
38
44
|
```
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
发布前是否构建与检查由维护者决定。插件运行时的权限确认与可选质量任务规则不变。诊断器 `dsh-agent-teams-doctor` 只检查清单和依赖闭包,不证明运行行为或识别当前进程。真实宿主验收与 UI 检查需要另行执行。
|
|
41
47
|
|
|
42
48
|
## 来源与记录
|
|
43
49
|
|
|
44
|
-
基于 [NanmiCoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams)
|
|
50
|
+
基于 [NanmiCoder/dsh-agent-teams](https://github.com/NanmiCoder/dsh-agent-teams)(原作者 Relakkes / 程序员阿江)。MIT。保留上游 README、NOTICE 和历史发布说明。源码基线为上游 tag v0.1.29(commit 369c278);自 2.0.1 起并入 dsh-fish 聚合仓库,版本随聚合统一。
|
|
45
51
|
|
|
52
|
+
- [2.0.1](release-notes/v2.0.1.md)
|
|
46
53
|
- [1.1.0](release-notes/v1.1.0.md)
|
|
47
54
|
- [1.0.2](release-notes/v1.0.2.md)
|
|
48
55
|
- [1.0.1](release-notes/v1.0.1.md)
|
|
49
56
|
- [1.0.0](release-notes/v1.0.0.md)
|
|
50
|
-
- [历史记录](https://github.com/Fish-under-sea/dsh-agent-teams-fish/
|
|
51
|
-
- [NOTICE](NOTICE.md)
|
|
57
|
+
- [历史记录](https://github.com/Fish-under-sea/dsh-fish/tree/main/packages/dsh-agent-teams-fish/release-notes)
|
|
58
|
+
- [NOTICE](NOTICE.md)
|
package/icon.png
ADDED
|
Binary file
|
|
@@ -68,11 +68,40 @@ function effortMenuId(effort) {
|
|
|
68
68
|
* reads only catalog metadata: choosing a member route must not change the
|
|
69
69
|
* captain session's composer model.
|
|
70
70
|
*/
|
|
71
|
-
function StagedModelPicker({ directory, provider, model, reasoningEffort, busy, onChange, t, }) {
|
|
71
|
+
function StagedModelPicker({ directory, sessionId, provider, model, reasoningEffort, busy, onChange, t, }) {
|
|
72
72
|
const state = useSyncExternalStore(directory.store.subscribe, directory.store.getSnapshot);
|
|
73
73
|
const [open, setOpen] = useState(false);
|
|
74
74
|
const [pane, setPane] = useState('root');
|
|
75
|
-
|
|
75
|
+
// null = no official policy captured for this session: keep the full catalog.
|
|
76
|
+
const [allowedModels, setAllowedModels] = useState(null);
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
if (sessionId === '')
|
|
79
|
+
return;
|
|
80
|
+
let cancelled = false;
|
|
81
|
+
void fetch(`/plugins/dsh-agent-teams/model-policy?session=${encodeURIComponent(sessionId)}`, { credentials: 'same-origin' })
|
|
82
|
+
.then((response) => response.ok ? response.json() : undefined)
|
|
83
|
+
.then((data) => {
|
|
84
|
+
if (cancelled)
|
|
85
|
+
return;
|
|
86
|
+
const models = data?.allowedModels;
|
|
87
|
+
setAllowedModels(Array.isArray(models)
|
|
88
|
+
? models.filter((candidate) => (typeof candidate === 'object' && candidate !== null
|
|
89
|
+
&& typeof candidate.provider === 'string'
|
|
90
|
+
&& typeof candidate.model === 'string'))
|
|
91
|
+
: null);
|
|
92
|
+
})
|
|
93
|
+
.catch(() => { });
|
|
94
|
+
return () => { cancelled = true; };
|
|
95
|
+
}, [sessionId]);
|
|
96
|
+
const visibleGroups = allowedModels === null
|
|
97
|
+
? state.groups
|
|
98
|
+
: state.groups
|
|
99
|
+
.map((group) => ({
|
|
100
|
+
...group,
|
|
101
|
+
models: group.models.filter((candidate) => allowedModels.some((route) => route.provider === group.id && route.model === candidate.id)),
|
|
102
|
+
}))
|
|
103
|
+
.filter((group) => group.models.length > 0);
|
|
104
|
+
const catalogRoutes = visibleGroups.flatMap((group) => group.models.map((candidate) => ({
|
|
76
105
|
key: routeKey(group.id, candidate.id),
|
|
77
106
|
provider: group.id,
|
|
78
107
|
providerName: group.name,
|
|
@@ -123,7 +152,7 @@ function StagedModelPicker({ directory, provider, model, reasoningEffort, busy,
|
|
|
123
152
|
});
|
|
124
153
|
}
|
|
125
154
|
else {
|
|
126
|
-
for (const group of
|
|
155
|
+
for (const group of visibleGroups) {
|
|
127
156
|
modelItems.push({ type: 'label', id: `provider:${group.id}`, text: group.name });
|
|
128
157
|
for (const candidate of group.models) {
|
|
129
158
|
modelItems.push({
|
|
@@ -290,7 +319,7 @@ function StagedMemberEditor({ team, member, modelDirectory, onPendingChange, t }
|
|
|
290
319
|
await persist();
|
|
291
320
|
};
|
|
292
321
|
const route = `${provider}/${model}`.replace(/^\//u, '');
|
|
293
|
-
return (_jsxs("article", { className: css.planCard, "data-plan-member": member.name, "data-open": open, children: [_jsxs("button", { type: "button", className: css.planCardHeader, "aria-expanded": open, "aria-controls": bodyId, onClick: () => { setOpen((current) => !current); }, children: [_jsxs("span", { className: css.planCardIdentity, children: [_jsx("strong", { children: member.name }), _jsx("span", { children: role || t('plan.member.roleFallback') })] }), _jsx("span", { className: css.planCardMeta, title: route, children: route }), dirty && _jsx("em", { className: css.planDirty, children: t('plan.unsaved') }), _jsx(DisclosureChevron, { open: open })] }), open && (_jsxs("form", { id: bodyId, className: css.planCardBody, onSubmit: (event) => { void save(event); }, children: [_jsxs("fieldset", { disabled: busy, children: [_jsxs("label", { children: [t('plan.member.role'), _jsx("input", { name: "role", value: role, onChange: (event) => { setRole(event.currentTarget.value); markEdited(); } })] }), _jsx(StagedModelPicker, { directory: modelDirectory, provider: provider, model: model, reasoningEffort: reasoningEffort, busy: busy, onChange: (selection) => { void persist(selection); }, t: t }), _jsxs("label", { children: [t('plan.member.prompt'), _jsx("textarea", { name: "executionPrompt", value: executionPrompt, onChange: (event) => { setExecutionPrompt(event.currentTarget.value); markEdited(); }, rows: 3 })] })] }), _jsxs("span", { className: css.planActions, children: [_jsx(Feedback, { value: feedback }), _jsx("button", { type: "submit", disabled: busy || !dirty || provider.trim() === '' || model.trim() === '', children: busy ? t('plan.saving') : t('plan.save') })] })] }))] }));
|
|
322
|
+
return (_jsxs("article", { className: css.planCard, "data-plan-member": member.name, "data-open": open, children: [_jsxs("button", { type: "button", className: css.planCardHeader, "aria-expanded": open, "aria-controls": bodyId, onClick: () => { setOpen((current) => !current); }, children: [_jsxs("span", { className: css.planCardIdentity, children: [_jsx("strong", { children: member.name }), _jsx("span", { children: role || t('plan.member.roleFallback') })] }), _jsx("span", { className: css.planCardMeta, title: route, children: route }), dirty && _jsx("em", { className: css.planDirty, children: t('plan.unsaved') }), _jsx(DisclosureChevron, { open: open })] }), open && (_jsxs("form", { id: bodyId, className: css.planCardBody, onSubmit: (event) => { void save(event); }, children: [_jsxs("fieldset", { disabled: busy, children: [_jsxs("label", { children: [t('plan.member.role'), _jsx("input", { name: "role", value: role, onChange: (event) => { setRole(event.currentTarget.value); markEdited(); } })] }), _jsx(StagedModelPicker, { directory: modelDirectory, sessionId: team.captainSessionId, provider: provider, model: model, reasoningEffort: reasoningEffort, busy: busy, onChange: (selection) => { void persist(selection); }, t: t }), _jsxs("label", { children: [t('plan.member.prompt'), _jsx("textarea", { name: "executionPrompt", value: executionPrompt, onChange: (event) => { setExecutionPrompt(event.currentTarget.value); markEdited(); }, rows: 3 })] })] }), _jsxs("span", { className: css.planActions, children: [_jsx(Feedback, { value: feedback }), _jsx("button", { type: "submit", disabled: busy || !dirty || provider.trim() === '' || model.trim() === '', children: busy ? t('plan.saving') : t('plan.save') })] })] }))] }));
|
|
294
323
|
}
|
|
295
324
|
function StagedTaskEditor({ team, task, onPendingChange, t }) {
|
|
296
325
|
const bodyId = useId();
|