dsh-agent-team-presets 0.3.1 → 0.3.2

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 CHANGED
@@ -48,18 +48,20 @@ plugin. They are never installed automatically: the settings page's
48
48
  confirms it, keeps the original as a backup, and can restore it. Upstream
49
49
  license texts are shipped beside them under `assets/card-patches/licenses/`.
50
50
 
51
- 1. dsh-context 0.84.0
51
+ 1. dsh-context 0.84.0 and 0.84.1
52
52
  https://github.com/bowenliang123/dsh-context
53
- revision aa98b1231d5f0f8e833391f198e65e14e73b3323
53
+ revisions aa98b1231d5f0f8e833391f198e65e14e73b3323 (0.84.0) and
54
+ d81325ec6bab9dae9bf83e7a866ac74119504e18 (0.84.1)
54
55
  Licensed under the Apache License, Version 2.0 (see
55
56
  assets/card-patches/licenses/dsh-context-LICENSE).
56
57
  Changes: a new client module registers an optional `contextAgentCardBadges`
57
58
  registry, and the shared Agent card renders components registered with it.
58
59
  No other behaviour was changed.
59
60
 
60
- 2. dsh-better-sidebar 0.32.0
61
+ 2. dsh-better-sidebar 0.32.0 and 0.32.1
61
62
  https://github.com/omdsh-dev/DSH-better-sidebar
62
- tag v0.32.0
63
+ tags v0.32.0 and v0.32.1 (commit
64
+ 06d21351a50b60063010c178590fc24ecd76fb74)
63
65
  Licensed under the MIT License (see
64
66
  assets/card-patches/licenses/dsh-better-sidebar-LICENSE).
65
67
  Changes: a new client module registers an optional
package/README.md CHANGED
@@ -8,13 +8,18 @@ English | [中文](<README.zh.md>)
8
8
 
9
9
  > **New to this plugin?** Start with the illustrated walkthrough — every screen, every button: **[Getting started](docs/guide/getting-started.md)**.
10
10
 
11
- > **Community plugin v0.3.1** · [Tag](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.3.1)
11
+ > **Community plugin v0.3.2** · [Tag](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.3.2)
12
12
  >
13
- > This release adds optional **Preset** tags on other plugins' subagent cards, installed from the new **Integrations** settings page. It still requires **DeepSeek Harness 0.2.2-rc.2** and keeps the member runtime and header roster from 0.2.1. Prebuilt artifacts are included.
13
+ > This release keeps more than one version of each supported target patchable at once, so updating **dsh-context** or **dsh-better-sidebar** no longer takes the Preset badge away, and it ships rebuilt replacements for **dsh-context 0.84.1** and **dsh-better-sidebar 0.32.1**. It requires **DeepSeek Harness 0.2.2-rc.3**: that is the release this build was verified on, and 0.2.2-rc.2 is now refused rather than claimed.
14
14
 
15
- ### What changed in 0.3.1
15
+ ### What changed in 0.3.2
16
16
 
17
- Documentation only. The interface screenshots moved into an illustrated [Getting started](docs/guide/getting-started.md) walkthrough, both READMEs keep their banner and now carry only the current release notes, the screenshots the plugin market shows were refreshed, and the outdated 0.1.9/0.2 screenshot set was removed. No plugin behaviour changed.
17
+ - **Several upstream versions stay supported.** The patch catalog is keyed by target *and* version, each row is classified from the version that is actually installed, and the Integrations page lists every version this build ships a replacement for instead of only the newest.
18
+ - **New replacements for `dsh-context` 0.84.1 and `dsh-better-sidebar` 0.32.1**, rebuilt from their upstream sources with the same small registration patch, then verified (the service must register, the bundle must stay within its size band, both hashes are recorded). The 0.84.0 and 0.32.0 entries stay, so a profile that has not upgraded is still patchable.
19
+ - **A shipped catalog file.** `assets/card-patches/catalog.json` is merged over the versions compiled into the plugin, so supporting another version becomes data rather than a code change.
20
+ - **A rebuild pipeline.** `tools/card-patches.mjs` clones the upstream tag, applies the source patch (`git apply`, `--3way`, then fuzz), builds it with the target's own toolchain, verifies the result, and only then publishes; `apply` / `revert` install or remove one replacement in a profile with a backup. Repository only — not part of the npm package.
21
+ - **Fixed a stale artifact.** 0.3.1 shipped a `lib/` built before the "a shipped preset set went missing" work, so its warning and restore path never reached users. Both are in 0.3.2.
22
+ - **Host support narrowed to `0.2.2-rc.3`** in `engines.dsh` and the DSH peer ranges. The previous release claimed rc.2 while shipping a bundle built against a later contract; rc.2 and older are now refused with a named reason instead of being over-promised.
18
23
 
19
24
  Earlier releases and the full changelog are on the [Releases](https://github.com/bloodarea/dsh-agent-team-presets/releases) page.
20
25
 
@@ -95,13 +100,13 @@ Interface screenshots live with the walkthrough, taken live from an isolated ins
95
100
  <a id="requirements"></a>
96
101
  ## Requirements
97
102
 
98
- - **DeepSeek Harness `>=0.2.2-rc.2 <0.3.0`.** Verified against **`0.2.2-rc.2`**; 0.2.2-rc.1 and older are refused. Each member's route is recorded through `agent.model.select()` for fresh, forked, and cold-resumed execution; the captain keeps the conversation's model selection. The plugin manager enforces `engines.dsh` from [package.json](<package.json>).
103
+ - **DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`.** Verified against **`0.2.2-rc.3`**; 0.2.2-rc.2 and older are refused. Each member's route is recorded through `agent.model.select()` for fresh, forked, and cold-resumed execution; the captain keeps the conversation's model selection. The plugin manager enforces `engines.dsh` from [package.json](<package.json>).
99
104
  - **Custom tool allow-lists work on PTC by giving that Session its own native surface.** The Host cannot restore an inherited executor after a release, so the plugin never releases one: on a PTC preset it mounts the Harness native tool executor on the Session's Agent scope and leaves the deployment executor alone. The trade-off is deliberate — that Session stops using `run_code` for the rest of its life, while other Sessions and the all-tools mode keep PTC. If mounting fails, or the surface still exposes the PTC transport afterwards, the application is refused and nothing is left behind, because no executor was ever released.
100
105
  - **No Agent Teams bundle is required.** Members are created through the deployment's continuable subagent providers, and native messaging, task tools, and the Web roster are unaffected by this plugin.
101
106
  - **A Web or Desktop profile with Settings and the required client services.** Install into the profile you actually use, typically `web` for the Web GUI or `desktop` for Desktop.
102
107
  - **Durable storage and a continuable subagent backend for member execution.** Member creation is refused if the storage domain or selected execution backend is unavailable. The default backend names are `spawn` and `fork`.
103
108
 
104
- The plugin version (`0.3.1`) and the Harness version (`0.2.2-rc.2`, for example) are separate version lines.
109
+ The plugin version (`0.3.2`) and the Harness version (`0.2.2-rc.3`, for example) are separate version lines.
105
110
 
106
111
  <a id="use-this-package"></a>
107
112
  ## Install and upgrade
@@ -241,7 +246,7 @@ A fresh installation seeds nine editable Teams across two series:
241
246
  | **独立代码与安全审计**<br>`builtin-audit` | Captain, vulnerability-expert, security-auditor, compliance-inspector | Independent read-only review of specified code, vulnerabilities, security configurations, and dependency compliance. |
242
247
  | **科研协作**<br>`builtin-research` | Captain, domain-researcher, experiment-analyst, rigor-reviewer | Literature review, experiment design, scientific computing, data analysis, and academic rigor inspection. |
243
248
 
244
- Default presets are seeded once per profile. Deleting or editing a built-in preset is respected across restarts. **Restore defaults** restores shipped fields and official rosters while preserving local member model routes and tool policies.
249
+ Default presets are seeded once per profile. Deleting or editing a built-in preset is respected across restarts, which also means a Team list that lost its shipped presets some other way (a hand-edited or restored settings file) does not get them back by itself: the Host logs a warning and the page shows a notice pointing at **Restore defaults**. That button stages a draft, so save afterwards. Restoring brings back shipped fields and official rosters while preserving local member model routes and tool policies.
245
250
 
246
251
  <a id="metadata-categories-search"></a>
247
252
  ## Display metadata, categories, and search
@@ -315,10 +320,10 @@ Cards in **dsh-context** (Fleet view, top bar) and **dsh-better-sidebar** (Tasks
315
320
 
316
321
  Neither target published such a service at the time of writing, so this plugin ships **prebuilt replacement bundles** for the exact versions listed below and offers them in **Settings → Agent Team presets → Integrations**:
317
322
 
318
- | Target | Version this build patches | What the row offers |
323
+ | Target | Versions this build patches | What the row offers |
319
324
  | --- | --- | --- |
320
- | `dsh-context` | 0.84.0 | Install patch / Remove patch |
321
- | `dsh-better-sidebar` | 0.32.0 | Install patch / Remove patch |
325
+ | `dsh-context` | 0.84.0, 0.84.1 | Install patch / Remove patch |
326
+ | `dsh-better-sidebar` | 0.32.0, 0.32.1 | Install patch / Remove patch |
322
327
 
323
328
  Each row reports its own state, and the page never guesses: `not installed`, `version not supported`, `not patched`, `patched`, `modified by something else`. "Install patch" asks for confirmation, backs up the target's `lib/client.js`, then writes this plugin's build of the same source. "Remove patch" restores that backup and deletes it.
324
329
 
@@ -327,9 +332,11 @@ Each row reports its own state, and the page never guesses: `not installed`, `ve
327
332
  Safety rules worth knowing:
328
333
 
329
334
  - A target whose bundle matches neither the published build nor this plugin's replacement is refused, because overwriting it would destroy an edit this plugin cannot reproduce.
330
- - Only the one pinned version per target is patchable; installing a newer target version makes the row report `version not supported` until a build for it ships here.
335
+ - Each row is classified by the version that is actually installed and lists every version this build ships a replacement for. A version outside that list reports `version not supported`; supporting one is a verified rebuild, not a code rewrite (see below).
331
336
  - Upgrading a patched target replaces its bundle, which silently removes the patch — the row then reports `not patched` again.
332
337
 
338
+ New upstream releases are adopted with `node tools/card-patches.mjs rebuild --target <id> --version <version> --write`: it clones the release, applies the source patch, builds it, and refuses to publish anything unless the rebuilt bundle still registers the card service. Adding a version keeps the older ones patchable, and a shipped `assets/card-patches/catalog.json` reaches new versions without a code change.
339
+
333
340
  If you would rather not use the bundled builds, the same change is available as source patches in [`contrib/agent-card-badges`](contrib/agent-card-badges/README.md) for applying to the matching target and rebuilding it yourself, and as upstream-ready changes for the target maintainers.
334
341
 
335
342
  <a id="agent-facing-tools"></a>
package/README.zh.md CHANGED
@@ -8,13 +8,18 @@
8
8
 
9
9
  > **第一次用这个插件?** 先看图文教程,每一屏、每个按钮都讲到:**[新手必读](docs/guide/getting-started.zh.md)**。
10
10
 
11
- > **社区插件 v0.3.1** · [标签](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.3.1)
11
+ > **社区插件 v0.3.2** · [标签](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.3.2)
12
12
  >
13
- > 本版给其他插件的子代理卡片加上可选的**「预设」标签**,从新增的**插件联动**设置页安装。宿主仍要求 **DeepSeek Harness 0.2.2-rc.2**,成员运行时与会话头部名册沿用 0.2.1。仓库包含预构建产物,安装时无需构建。
13
+ > 本版让**同一个目标插件的多个版本同时可用**:升级 **dsh-context** 或 **dsh-better-sidebar** 不会再把「预设」标签弄丢;同时为 **dsh-context 0.84.1** 与 **dsh-better-sidebar 0.32.1** 提供重编后的替换包。宿主要求收紧为 **DeepSeek Harness 0.2.2-rc.3**——这是实测过的版本,`0.2.2-rc.2` 及更旧会被明确拒绝,而不是含糊声称兼容。
14
14
 
15
- ### 0.3.1 更新内容
15
+ ### 0.3.2 更新内容
16
16
 
17
- 仅文档改动。界面截图移入图文教程[新手必读](docs/guide/getting-started.zh.md),两份 README 保留 banner、只保留当前版本说明,插件市场展示的截图换成新的,并清理了 0.1.9/0.2 时期的旧截图。插件行为没有任何变化。
17
+ - **多个上游版本并存。** 补丁目录按「目标 + 版本」索引,每一行按**实际安装的版本**判定状态,插件联动页会列出本版为该目标准备的全部版本,而不只是最新那个。
18
+ - **新增 `dsh-context` 0.84.1、`dsh-better-sidebar` 0.32.1 的替换包**:用同一份小补丁从上游源码重编,并逐一校验(必须真的注册卡片服务、体积必须落在允许区间、两个哈希都记录在案)。`0.84.0` 与 `0.32.0` 的条目保留,还没升级的 profile 依然能打补丁。
19
+ - **随包目录文件。** `assets/card-patches/catalog.json` 会覆盖合并到插件内置的版本清单,因此「多支持一个版本」变成加数据,而不是改代码。
20
+ - **重建管线。** `tools/card-patches.mjs` 会克隆上游 tag、应用源码补丁(`git apply` → `--3way` → fuzz)、用目标自己的工具链构建、校验后才发布;`apply` / `revert` 负责带备份地装进/撤出 profile。仅仓库内使用,不随 npm 包发布。
21
+ - **修掉一个陈旧产物。** 0.3.1 的 `lib/` 是在「内置预设丢失提示」那次改动之前编的,导致该提示与恢复入口从未真正到达用户;0.3.2 补上了。
22
+ - **宿主支持收紧到 `0.2.2-rc.3`**(`engines.dsh` 与 DSH 相关 peer 范围同步)。上一版声称支持 rc.2,但产物是对着更晚的契约编的;现在 rc.2 及更旧会被带原因地拒绝,而不是过度承诺。
18
23
 
19
24
  更早的版本与完整变更记录见 [Releases](https://github.com/bloodarea/dsh-agent-team-presets/releases) 页面。
20
25
 
@@ -95,13 +100,13 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
95
100
  <a id="requirements"></a>
96
101
  ## 环境要求
97
102
 
98
- - **DeepSeek Harness `>=0.2.2-rc.2 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.2`**;0.2.2-rc.1 及更旧版本会被拒绝。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](<package.json>) 的 `engines.dsh` 判定兼容性。
103
+ - **DeepSeek Harness `>=0.2.2-rc.3 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.3`**;0.2.2-rc.2 及更旧版本会被拒绝。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](<package.json>) 的 `engines.dsh` 判定兼容性。
99
104
  - **自定义工具白名单在 PTC 下通过给该会话一个自己的 native 面来工作。** 宿主无法在释放执行器后恢复继承,所以插件从不主动释放:在 PTC 预设下它把宿主自带的 native 工具执行器挂到该会话的 Agent 作用域,部署级执行器保持原样。代价是明确的:该会话此后不再使用 `run_code`,而其他会话与「所有工具」模式继续走 PTC。若挂载失败、或挂载后工具面仍暴露 PTC 传输,则应用被拒绝且不留残留 —— 因为从未释放过任何执行器。
100
105
  - **无需 Agent Teams bundle。** 成员通过部署自带的可继续执行 subagent 后端创建;原生消息、任务工具与 Web 名册不受本插件影响。
101
106
  - **具备 Settings 与所需客户端服务的 Web 或 Desktop profile。** 安装到实际使用的 profile:Web GUI 通常为 `web`,Desktop 通常为 `desktop`。
102
107
  - **成员执行所需的持久存储与支持恢复执行的子智能体后端。** 缺少 storage domain 或所选执行后端时,插件会拒绝创建成员。默认后端名为 `spawn` 和 `fork`。
103
108
 
104
- 插件版本(`0.3.1`)和 Harness 版本(如 `0.2.2-rc.2`)是不同的版本线。
109
+ 插件版本(`0.3.2`)和 Harness 版本(如 `0.2.2-rc.3`)是不同的版本线。
105
110
 
106
111
  <a id="use-this-package"></a>
107
112
  ## 安装与升级
@@ -241,7 +246,7 @@ npm view dsh-agent-team-presets version
241
246
  | **独立代码与安全审计**<br>`builtin-audit` | 队长、漏洞分析专家、代码安全审计员、依赖合规检查员 | 对指定代码、安全漏洞、配置或依赖合规做独立只读审查。 |
242
247
  | **科研协作**<br>`builtin-research` | 队长、领域调研专家、实验与数据分析员、学术严谨性审查员 | 文献综述、实验设计、科学计算、数据分析与学术严谨性论证。 |
243
248
 
244
- 内置预设在每个 profile 中只初始化一次。用户对其编辑或删除会被持久记忆。**恢复默认预设** 会重置内置字段与角色,但完整保留匹配角色的模型路由与工具策略。
249
+ 内置预设在每个 profile 中只初始化一次。用户对其编辑或删除会被持久记忆;这也意味着如果团队列表是因为别的原因丢的(手改配置、配置回滚),插件不会自己补回来——宿主会写一条 warn 日志,设置页顶部也会出现提示,指向 **恢复内置预设**(它只改草稿,恢复后要保存)。恢复会重置内置字段与角色,但完整保留匹配角色的模型路由与工具策略。
245
250
 
246
251
  <a id="metadata-categories-search"></a>
247
252
  ## 展示元数据、本地分类与搜索
@@ -317,8 +322,8 @@ npm view dsh-agent-team-presets version
317
322
 
318
323
  | 目标插件 | 本版补丁适配的版本 | 该行可执行的操作 |
319
324
  | --- | --- | --- |
320
- | `dsh-context` | 0.84.0 | 安装补丁 / 卸载补丁 |
321
- | `dsh-better-sidebar` | 0.32.0 | 安装补丁 / 卸载补丁 |
325
+ | `dsh-context` | 0.84.0、0.84.1 | 安装补丁 / 卸载补丁 |
326
+ | `dsh-better-sidebar` | 0.32.0、0.32.1 | 安装补丁 / 卸载补丁 |
322
327
 
323
328
  每一行都会报告自己的真实状态,页面不做猜测:`未安装`、`版本不支持`、`未打补丁`、`已打补丁`、`已被其他改动修改`。「安装补丁」会先弹出确认框,备份目标插件的 `lib/client.js`,再写入本插件用同一份源码构建的替换包;「卸载补丁」从该备份还原并删除备份。
324
329
 
@@ -327,9 +332,11 @@ npm view dsh-agent-team-presets version
327
332
  几条安全规则:
328
333
 
329
334
  - 如果目标插件的浏览器包既不是发布版、也不是本插件的替换版,操作会被拒绝:覆盖它等于毁掉一份本插件无法重现的改动。
330
- - 每个目标只支持一个固定版本;目标升级到新版本后,该行会显示 `版本不支持`,直到本插件发布对应构建。
335
+ - 每一行按**实际安装的版本**判定状态,并列出本版为其准备替换包的全部版本;不在列表中的版本显示 `版本不支持`。支持新版本是一次「校验后重建」,不需要改代码(见下文)。
331
336
  - 升级已打补丁的目标插件会覆盖其浏览器包,补丁随之消失,该行会重新显示 `未打补丁`。
332
337
 
338
+ 上游发版后,用 `node tools/card-patches.mjs rebuild --target <id> --version <版本> --write` 跟进:它会克隆对应版本、应用源码补丁、重新构建,并只有在重建后的包仍然注册卡片服务时才允许发布。新增版本不会挤掉旧版本;随包的 `assets/card-patches/catalog.json` 可在不改代码的情况下覆盖新版本。
339
+
333
340
  如果不希望使用随包构建,同样的改动也以源码补丁形式放在 [`contrib/agent-card-badges`](contrib/agent-card-badges/README.md),可自行应用到匹配版本并重新构建。
334
341
 
335
342
  <a id="agent-facing-tools"></a>
@@ -0,0 +1,25 @@
1
+ {
2
+ "version": 1,
3
+ "targets": [
4
+ {
5
+ "id": "dsh-better-sidebar",
6
+ "packageName": "dsh-better-sidebar",
7
+ "version": "0.32.1",
8
+ "source": "omdsh-dev/DSH-better-sidebar@06d21351a50b60063010c178590fc24ecd76fb74",
9
+ "asset": "dsh-better-sidebar-0.32.1.client.js.gz",
10
+ "service": "betterSidebarAgentCardBadges",
11
+ "pristineSha256": "c5f6a461ce092fc6fc9cba0b04fa51e4504d8d44b1e1023858c64b1f696272fd",
12
+ "patchedSha256": "faa8afbae9b7fe15b5e31ace6de8c06ba71404e3a8220406dc82f0cc3dcb09fa"
13
+ },
14
+ {
15
+ "id": "dsh-context",
16
+ "packageName": "dsh-context",
17
+ "version": "0.84.1",
18
+ "source": "bowenliang123/dsh-context@d81325ec6bab9dae9bf83e7a866ac74119504e18",
19
+ "asset": "dsh-context-0.84.1.client.js.gz",
20
+ "service": "contextAgentCardBadges",
21
+ "pristineSha256": "120a8d30ae6bca61a3c61e682c99d5a0472b2b495d277d644721fd9ce6e6fa88",
22
+ "patchedSha256": "8e36a42625b02b560d204bb3eb6dd01ccbdf88b3088f48f9428758d8d99f4f29"
23
+ }
24
+ ]
25
+ }
package/lib/client.js CHANGED
@@ -18836,7 +18836,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18836
18836
  "id": string$1().readonly().describe("Stable identity."),
18837
18837
  "packageName": string$1().readonly().describe("Package the row is about."),
18838
18838
  "source": string$1().readonly().describe("Upstream revision the prebuilt replacement came from."),
18839
- "supportedVersion": string$1().readonly().describe("The version this build ships a replacement for."),
18839
+ "service": string$1().readonly().describe("Service a patched target registers; the page reads it to tell \"active\" from \"installed\"."),
18840
+ "supportedVersion": string$1().readonly().describe("The version whose replacement applies to this row (the newest supported one when none matches)."),
18841
+ "supportedVersions": array(string$1()).readonly().describe("Every upstream version this build ships a replacement for."),
18840
18842
  "installedVersion": string$1().readonly().optional().describe("Installed version, when the package is present."),
18841
18843
  "state": union([
18842
18844
  literal("absent"),
@@ -19644,9 +19646,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19644
19646
  "type": "string",
19645
19647
  "description": "Upstream revision the prebuilt replacement came from."
19646
19648
  },
19649
+ "service": {
19650
+ "type": "string",
19651
+ "description": "Service a patched target registers; the page reads it to tell \"active\" from \"installed\"."
19652
+ },
19647
19653
  "supportedVersion": {
19648
19654
  "type": "string",
19649
- "description": "The version this build ships a replacement for."
19655
+ "description": "The version whose replacement applies to this row (the newest supported one when none matches)."
19656
+ },
19657
+ "supportedVersions": {
19658
+ "type": "array",
19659
+ "items": { "type": "string" },
19660
+ "description": "Every upstream version this build ships a replacement for."
19650
19661
  },
19651
19662
  "installedVersion": {
19652
19663
  "type": "string",
@@ -19672,7 +19683,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19672
19683
  "id",
19673
19684
  "packageName",
19674
19685
  "source",
19686
+ "service",
19675
19687
  "supportedVersion",
19688
+ "supportedVersions",
19676
19689
  "state"
19677
19690
  ],
19678
19691
  "additionalProperties": true
@@ -19880,7 +19893,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19880
19893
  },
19881
19894
  sourceLocation: {
19882
19895
  "file": "packages/experimental/agent-team-presets/src/tool-catalog.ts",
19883
- "line": 272,
19896
+ "line": 274,
19884
19897
  "column": 9
19885
19898
  }
19886
19899
  },
@@ -22511,7 +22524,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
22511
22524
  officialSkillBindings: OFFICIAL_RESEARCH_SKILLS
22512
22525
  }
22513
22526
  ];
22514
- BUILTIN_TEAM_CATALOG.map((entry) => entry.id);
22527
+ /** Every official Team identity, in install order. */
22528
+ const BUILTIN_TEAM_IDS = BUILTIN_TEAM_CATALOG.map((entry) => entry.id);
22515
22529
  /**
22516
22530
  * Look up one official Team by identity.
22517
22531
  * @param id - Team identity.
@@ -22883,6 +22897,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
22883
22897
  restoreDefaultsHint: "Puts every preset this plugin ships back to its shipped name, description, prompts, colors, and roster. The model routes and tool permissions you configured stay as they are, and teams you created yourself are not touched.",
22884
22898
  defaultsRestored: "Default presets restored in this draft. Save to apply them.",
22885
22899
  defaultsUnchanged: "The default presets already match what this plugin ships; nothing was staged.",
22900
+ restoreMissingHint: "This deployment was offered the {count} built-in Team presets, but none of them are in the list. Unless you deleted them yourself, click \"Restore built-in presets\" to bring them back, then save.",
22886
22901
  importConfirm: "Import",
22887
22902
  cancel: "Cancel",
22888
22903
  close: "Close",
@@ -23222,6 +23237,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
23222
23237
  restoreDefaultsHint: "把插件自带的预设全部恢复到出厂的名称、说明、提示词、颜色和成员名单;你为它们配置的模型路由与工具权限保持不变,你自己创建的团队完全不受影响。",
23223
23238
  defaultsRestored: "默认预设已恢复到草稿,保存后生效。",
23224
23239
  defaultsUnchanged: "默认预设与插件出厂状态一致,无需恢复。",
23240
+ restoreMissingHint: "这个部署曾经拿到过插件自带的 {count} 个团队预设,但它们现在都不在列表里。如果不是你主动删除的,点「恢复内置预设」可以把它们找回来,然后记得保存。",
23225
23241
  importConfirm: "导入",
23226
23242
  cancel: "取消",
23227
23243
  close: "关闭",
@@ -26754,7 +26770,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26754
26770
  if (typeof document !== "undefined" && !document.querySelector("style[data-team-presets-style=\"dsh-agent-team-presets:client/TeamPresetsSection.module.css\"]")) {
26755
26771
  const style = document.createElement("style");
26756
26772
  style.dataset.teamPresetsStyle = key$2;
26757
- style.textContent = "._628ArG_section{--tp-accent-violet:#8d6bff;min-height:100%;color:var(--dsw-alias-label-primary);flex-direction:column;display:flex}._628ArG_page{flex-direction:column;gap:10px;max-width:520px;padding-bottom:8px;display:flex}._628ArG_pageHead{flex-direction:column;gap:2px;display:flex}._628ArG_crumb{color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;align-self:flex-start;align-items:center;gap:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}._628ArG_crumb:hover{color:var(--dsw-alias-label-primary)}._628ArG_title{margin:0;font-size:15px;font-weight:500;line-height:22px}._628ArG_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}._628ArG_empty{color:var(--dsw-alias-label-tertiary);margin:4px 0;font-size:12px;line-height:18px}._628ArG_sectionTitle{color:var(--dsw-alias-label-secondary);padding-top:2px;font-size:12px;line-height:18px}._628ArG_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);gap:6px;margin-bottom:10px;display:flex}._628ArG_actionRow{gap:8px;display:flex}._628ArG_toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0;display:flex}._628ArG_toolbarGroup{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}._628ArG_resultsHead{flex-direction:column;gap:2px;margin:0 0 8px;display:flex}._628ArG_resultCount{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._628ArG_resultNote{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:17px}._628ArG_dialogCopy{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}._628ArG_dialogNote{color:var(--dsw-alias-label-tertiary);margin:10px 0 0;font-size:12px;line-height:18px}._628ArG_fileInput{display:none}._628ArG_conflict{flex-direction:column;gap:6px;display:flex}._628ArG_conflict+._628ArG_conflict{margin-top:16px}._628ArG_conflictLead{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._628ArG_conflictName{overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:18px}._628ArG_conflictMember{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;display:flex}._628ArG_choiceRow{flex-wrap:wrap;gap:12px;display:flex}._628ArG_choice{cursor:pointer;align-items:center;gap:6px;font-size:12px;line-height:18px;display:inline-flex}._628ArG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:10px;padding:10px 12px;display:flex}._628ArG_cardHead{justify-content:space-between;align-items:center;gap:8px;display:flex}._628ArG_cardTitle{font-size:13px;font-weight:500;line-height:20px}._628ArG_rows{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:17px;flex-direction:column;margin:0;padding:0;list-style:none;display:flex;overflow:hidden}._628ArG_rows>._628ArG_card{box-sizing:border-box;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:row;align-items:center;gap:4px;min-height:64px;padding:6px 10px 6px 14px}._628ArG_rows>._628ArG_card:not(:last-child){border-bottom:1px solid var(--dsw-alias-border-l1)}._628ArG_rows>._628ArG_card:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_plainRows{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}._628ArG_plainRows>._628ArG_card{flex-direction:row;align-items:center;gap:4px;padding:8px 12px}._628ArG_entry{align-items:center;gap:4px;display:flex}._628ArG_entryRow,._628ArG_rowMain{min-width:0;color:inherit;font:inherit;text-align:left;border-radius:var(--dsw-radius-md);cursor:pointer;background:0 0;border:none;flex:auto;align-items:center;gap:8px;padding:4px 2px;display:flex}._628ArG_rowMain:hover,._628ArG_entryRow:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_rowText{flex-direction:column;flex:auto;min-width:0;display:flex}._628ArG_rowName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:18px;overflow:hidden}._628ArG_rowMeta{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;overflow:hidden}._628ArG_rowActions{flex:none;gap:2px;display:flex}._628ArG_chevron{color:var(--dsw-alias-label-tertiary);flex:none;font-size:14px;line-height:18px}._628ArG_dot{background:var(--dsw-alias-label-tertiary);border-radius:50%;flex:none;width:10px;height:10px}._628ArG_field{flex-direction:column;gap:4px;min-width:0;display:flex}._628ArG_field>*{box-sizing:border-box;min-width:0;max-width:100%}._628ArG_field input,._628ArG_field textarea,._628ArG_field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}._628ArG_fieldLabel{color:var(--dsw-alias-label-secondary);margin:10px 0 4px;font-size:12px;line-height:18px;display:block}._628ArG_input{box-sizing:border-box;width:100%;max-width:100%}._628ArG_textInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);width:100%;height:32px;color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;outline:none;padding:0 10px;font-size:13px}._628ArG_textInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}select._628ArG_select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);background-color:var(--dsw-specific-input-major);width:100%;height:32px;color:inherit;font:inherit;appearance:none;cursor:pointer;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23818a96' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 10px center;background-repeat:no-repeat;border-radius:8px;padding:0 30px 0 10px;font-size:13px}select._628ArG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}select._628ArG_select:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}._628ArG_toolGroup{flex-direction:column;gap:6px;min-width:0;display:flex}._628ArG_toolGroupHead{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}._628ArG_toolGroupToggle{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0;display:flex}._628ArG_toolGroupCount{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:12px;line-height:18px}._628ArG_toolGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px 12px;min-width:0;display:grid}._628ArG_toolCheckbox{align-items:flex-start;min-width:0}._628ArG_toolCheckbox>span{overflow-wrap:anywhere}._628ArG_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:17px}._628ArG_warn{color:var(--dsw-alias-state-warn-label);margin:0;font-size:11px;line-height:17px}._628ArG_select{border-radius:var(--dsw-radius-lg);border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-specific-input-major);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;justify-content:space-between;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}select._628ArG_select:disabled{opacity:.5;cursor:default}._628ArG_selectLabel{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._628ArG_prompt{box-sizing:border-box;border-radius:var(--dsw-radius-lg);border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-specific-input-major);width:100%;color:var(--dsw-alias-label-primary);font:inherit;resize:vertical;padding:8px;font-size:12px;line-height:18px}._628ArG_prompt:disabled{opacity:.6}._628ArG_swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._628ArG_swatch,._628ArG_swatchNone{border:.5px solid var(--dsw-alias-settings-card-stroke);cursor:pointer;border-radius:50%;width:18px;height:18px;padding:0}._628ArG_swatch[aria-pressed=true],._628ArG_swatchNone[aria-pressed=true]{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}._628ArG_swatchNone{background:0 0}._628ArG_footer{background:var(--dsw-alias-bg-base);border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end;align-items:center;gap:10px;margin-top:auto;padding:8px 0 6px;display:flex}._628ArG_footerNotes{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;margin-right:auto;padding:6px 10px;display:flex}._628ArG_footerActions{white-space:nowrap;flex-shrink:0;align-items:center;gap:10px;display:flex}._628ArG_footerNote{color:var(--dsw-alias-label-tertiary);background:0 0;border:0;padding:0;font-size:11px;line-height:17px}._628ArG_sepTitle{margin:18px 0 8px;font-size:13px;font-weight:550}._628ArG_skillGrid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:9px;margin:10px 0 13px;display:grid}._628ArG_skillCard input{width:16px;height:16px;accent-color:var(--dsw-alias-state-business-primary);flex:none;margin:0}._628ArG_skillCard{cursor:pointer;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:10px;flex-direction:column;gap:8px;min-width:0;min-height:128px;padding:11px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex;position:relative}._628ArG_skillCard:hover{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, var(--dsw-alias-settings-card-fill));border-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 38%, transparent)}._628ArG_skillCard:has(input:checked){background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, var(--dsw-alias-settings-card-fill));border-color:var(--dsw-alias-state-business-primary);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 45%, transparent)}._628ArG_skillCardTop{justify-content:space-between;align-items:flex-start;gap:6px;display:flex}._628ArG_skillCardName{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font-size:12px;font-weight:550;line-height:1.45}._628ArG_skillCardDesc{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}._628ArG_skillCardTag{margin-top:auto}@media (width<=820px){._628ArG_skillGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}._628ArG_listToolbar{gap:8px;margin:0;display:flex}._628ArG_listSearch{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);min-width:0;color:var(--dsw-alias-label-primary);border-radius:9px;outline:none;flex:1;padding:8px 11px;font-size:13px}._628ArG_chipRow{flex-wrap:wrap;gap:4px;margin-bottom:8px;display:flex}._628ArG_chip{border:1px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:7px;padding:6px 10px;font-size:12px}._628ArG_chipActive{background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-label-primary)}._628ArG_categoryPanel{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;padding:9px 10px;display:flex}._628ArG_categoryPill{border:1px solid var(--dsw-alias-border-l3);border-radius:999px;align-items:center;gap:4px;padding:2px 4px 2px 9px;font-size:12px;display:inline-flex}._628ArG_pillInput{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);width:92px;color:var(--dsw-alias-label-primary);border-radius:6px;padding:1px 6px;font-size:12px}._628ArG_panel{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:12px;margin:12px 0;padding:12px 14px}._628ArG_muted{color:var(--dsw-alias-label-secondary);font-size:12.5px;line-height:1.55}._628ArG_filters{flex-direction:column;gap:6px;display:flex}._628ArG_filterRow{flex-wrap:wrap;align-items:center;gap:8px;display:flex}._628ArG_filterLabel{color:var(--dsw-alias-label-secondary);flex:none;min-width:32px;font-size:12px}._628ArG_addRow{align-items:center;gap:8px;margin:10px 0 12px;display:flex}._628ArG_addRow ._628ArG_textInput{flex:auto;width:auto;min-width:0}._628ArG_addRow>*{white-space:nowrap;flex:none}._628ArG_selectWrap{position:relative}._628ArG_selectValue{text-overflow:ellipsis;white-space:nowrap;padding-right:4px;display:block;overflow:hidden}._628ArG_selectPop{z-index:30;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-layer-3);background:rgb(from var(--dsw-specific-menu,var(--dsw-alias-bg-layer-3)) r g b / 1);box-shadow:var(--dsw-elevation-prominent);border-radius:10px;max-height:232px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}._628ArG_selectOption{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:7px;padding:7px 10px;font-size:13px;display:block;overflow:hidden}._628ArG_selectOption:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_selectOptionActive{background:var(--dsw-alias-interactive-bg-active);font-weight:550}._628ArG_rowsEmpty{text-align:center;color:var(--dsw-alias-label-secondary);padding:22px 14px;font-size:12.5px;list-style:none}._628ArG_emptyPage{text-align:center;color:var(--dsw-alias-label-secondary);border:1px dashed var(--dsw-alias-border-l3);border-radius:9px;margin:12px 0;padding:18px;font-size:13px}._628ArG_originTag{white-space:nowrap;border:1px solid #0000;border-radius:5px;align-self:flex-start;align-items:center;padding:0 6px;font-size:11px;line-height:18px;display:inline-flex}._628ArG_originBuiltin{color:var(--dsw-alias-state-business-primary);background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 34%, transparent)}._628ArG_originCustom{color:color-mix(in srgb, var(--tp-accent-violet) 62%, var(--dsw-alias-label-primary));background:color-mix(in srgb, var(--tp-accent-violet) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--tp-accent-violet) 34%, transparent)}._628ArG_originOverride{color:var(--dsw-alias-state-warn-label);background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 34%, transparent)}";
26773
+ style.textContent = "._628ArG_section{--tp-accent-violet:#8d6bff;min-height:100%;color:var(--dsw-alias-label-primary);flex-direction:column;display:flex}._628ArG_page{flex-direction:column;gap:10px;max-width:520px;padding-bottom:8px;display:flex}._628ArG_pageHead{flex-direction:column;gap:2px;display:flex}._628ArG_crumb{color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;align-self:flex-start;align-items:center;gap:4px;padding:0;font-size:12px;line-height:18px;display:inline-flex}._628ArG_crumb:hover{color:var(--dsw-alias-label-primary)}._628ArG_title{margin:0;font-size:15px;font-weight:500;line-height:22px}._628ArG_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}._628ArG_empty{color:var(--dsw-alias-label-tertiary);margin:4px 0;font-size:12px;line-height:18px}._628ArG_sectionTitle{color:var(--dsw-alias-label-secondary);padding-top:2px;font-size:12px;line-height:18px}._628ArG_tabs{border-bottom:1px solid var(--dsw-alias-border-l2);gap:6px;margin-bottom:10px;display:flex}._628ArG_actionRow{gap:8px;display:flex}._628ArG_toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:0;display:flex}._628ArG_toolbarGroup{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}._628ArG_resultsHead{flex-direction:column;gap:2px;margin:0 0 8px;display:flex}._628ArG_resultCount{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._628ArG_resultNote{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:17px}._628ArG_dialogCopy{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:0;font-size:13px;line-height:20px}._628ArG_dialogNote{color:var(--dsw-alias-label-tertiary);margin:10px 0 0;font-size:12px;line-height:18px}._628ArG_fileInput{display:none}._628ArG_conflict{flex-direction:column;gap:6px;display:flex}._628ArG_conflict+._628ArG_conflict{margin-top:16px}._628ArG_conflictLead{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}._628ArG_conflictName{overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:18px}._628ArG_conflictMember{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;display:flex}._628ArG_choiceRow{flex-wrap:wrap;gap:12px;display:flex}._628ArG_choice{cursor:pointer;align-items:center;gap:6px;font-size:12px;line-height:18px;display:inline-flex}._628ArG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-alias-settings-card-fill);border-radius:var(--dsw-radius-xl);flex-direction:column;gap:10px;padding:10px 12px;display:flex}._628ArG_cardHead{justify-content:space-between;align-items:center;gap:8px;display:flex}._628ArG_cardTitle{font-size:13px;font-weight:500;line-height:20px}._628ArG_rows{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:17px;flex-direction:column;margin:0;padding:0;list-style:none;display:flex;overflow:hidden}._628ArG_rows>._628ArG_card{box-sizing:border-box;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:row;align-items:center;gap:4px;min-height:64px;padding:6px 10px 6px 14px}._628ArG_rows>._628ArG_card:not(:last-child){border-bottom:1px solid var(--dsw-alias-border-l1)}._628ArG_rows>._628ArG_card:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_plainRows{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}._628ArG_plainRows>._628ArG_card{flex-direction:row;align-items:center;gap:4px;padding:8px 12px}._628ArG_entry{align-items:center;gap:4px;display:flex}._628ArG_entryRow,._628ArG_rowMain{min-width:0;color:inherit;font:inherit;text-align:left;border-radius:var(--dsw-radius-md);cursor:pointer;background:0 0;border:none;flex:auto;align-items:center;gap:8px;padding:4px 2px;display:flex}._628ArG_rowMain:hover,._628ArG_entryRow:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_rowText{flex-direction:column;flex:auto;min-width:0;display:flex}._628ArG_rowName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:18px;overflow:hidden}._628ArG_rowMeta{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:16px;overflow:hidden}._628ArG_rowActions{flex:none;gap:2px;display:flex}._628ArG_chevron{color:var(--dsw-alias-label-tertiary);flex:none;font-size:14px;line-height:18px}._628ArG_dot{background:var(--dsw-alias-label-tertiary);border-radius:50%;flex:none;width:10px;height:10px}._628ArG_field{flex-direction:column;gap:4px;min-width:0;display:flex}._628ArG_field>*{box-sizing:border-box;min-width:0;max-width:100%}._628ArG_field input,._628ArG_field textarea,._628ArG_field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}._628ArG_fieldLabel{color:var(--dsw-alias-label-secondary);margin:10px 0 4px;font-size:12px;line-height:18px;display:block}._628ArG_input{box-sizing:border-box;width:100%;max-width:100%}._628ArG_textInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);width:100%;height:32px;color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;outline:none;padding:0 10px;font-size:13px}._628ArG_textInput:focus-visible{border-color:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary))}select._628ArG_select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l3);background-color:var(--dsw-specific-input-major);width:100%;height:32px;color:inherit;font:inherit;appearance:none;cursor:pointer;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23818a96' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 10px center;background-repeat:no-repeat;border-radius:8px;padding:0 30px 0 10px;font-size:13px}select._628ArG_select:focus-visible{border-color:var(--dsw-alias-state-business-primary);box-shadow:0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}select._628ArG_select:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}._628ArG_toolGroup{flex-direction:column;gap:6px;min-width:0;display:flex}._628ArG_toolGroupHead{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}._628ArG_toolGroupToggle{min-width:0;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:0;display:flex}._628ArG_toolGroupCount{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;font-size:12px;line-height:18px}._628ArG_toolGrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px 12px;min-width:0;display:grid}._628ArG_toolCheckbox{align-items:flex-start;min-width:0}._628ArG_toolCheckbox>span{overflow-wrap:anywhere}._628ArG_hint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:17px}._628ArG_warn{color:var(--dsw-alias-state-warn-label);margin:0;font-size:11px;line-height:17px}._628ArG_select{border-radius:var(--dsw-radius-lg);border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-specific-input-major);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;justify-content:space-between;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}select._628ArG_select:disabled{opacity:.5;cursor:default}._628ArG_selectLabel{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._628ArG_prompt{box-sizing:border-box;border-radius:var(--dsw-radius-lg);border:.5px solid var(--dsw-alias-settings-card-stroke);background:var(--dsw-specific-input-major);width:100%;color:var(--dsw-alias-label-primary);font:inherit;resize:vertical;padding:8px;font-size:12px;line-height:18px}._628ArG_prompt:disabled{opacity:.6}._628ArG_swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._628ArG_swatch,._628ArG_swatchNone{border:.5px solid var(--dsw-alias-settings-card-stroke);cursor:pointer;border-radius:50%;width:18px;height:18px;padding:0}._628ArG_swatch[aria-pressed=true],._628ArG_swatchNone[aria-pressed=true]{outline:2px solid var(--dsw-alias-label-primary);outline-offset:1px}._628ArG_swatchNone{background:0 0}._628ArG_footer{background:var(--dsw-alias-bg-base);border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end;align-items:center;gap:10px;margin-top:auto;padding:8px 0 6px;display:flex}._628ArG_footerNotes{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;margin-right:auto;padding:6px 10px;display:flex}._628ArG_footerActions{white-space:nowrap;flex-shrink:0;align-items:center;gap:10px;display:flex}._628ArG_footerNote{color:var(--dsw-alias-label-tertiary);background:0 0;border:0;padding:0;font-size:11px;line-height:17px}._628ArG_sepTitle{margin:18px 0 8px;font-size:13px;font-weight:550}._628ArG_skillGrid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:9px;margin:10px 0 13px;display:grid}._628ArG_skillCard input{width:16px;height:16px;accent-color:var(--dsw-alias-state-business-primary);flex:none;margin:0}._628ArG_skillCard{cursor:pointer;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:10px;flex-direction:column;gap:8px;min-width:0;min-height:128px;padding:11px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex;position:relative}._628ArG_skillCard:hover{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 6%, var(--dsw-alias-settings-card-fill));border-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 38%, transparent)}._628ArG_skillCard:has(input:checked){background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 12%, var(--dsw-alias-settings-card-fill));border-color:var(--dsw-alias-state-business-primary);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 45%, transparent)}._628ArG_skillCardTop{justify-content:space-between;align-items:flex-start;gap:6px;display:flex}._628ArG_skillCardName{overflow-wrap:anywhere;color:var(--dsw-alias-label-primary);font-size:12px;font-weight:550;line-height:1.45}._628ArG_skillCardDesc{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.5;display:-webkit-box;overflow:hidden}._628ArG_skillCardTag{margin-top:auto}@media (width<=820px){._628ArG_skillGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}._628ArG_listToolbar{gap:8px;margin:0;display:flex}._628ArG_listSearch{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);min-width:0;color:var(--dsw-alias-label-primary);border-radius:9px;outline:none;flex:1;padding:8px 11px;font-size:13px}._628ArG_chipRow{flex-wrap:wrap;gap:4px;margin-bottom:8px;display:flex}._628ArG_chip{border:1px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:7px;padding:6px 10px;font-size:12px}._628ArG_chipActive{background:var(--dsw-alias-interactive-bg-active);color:var(--dsw-alias-label-primary)}._628ArG_categoryPanel{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;padding:9px 10px;display:flex}._628ArG_categoryPill{border:1px solid var(--dsw-alias-border-l3);border-radius:999px;align-items:center;gap:4px;padding:2px 4px 2px 9px;font-size:12px;display:inline-flex}._628ArG_pillInput{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-specific-input-major);width:92px;color:var(--dsw-alias-label-primary);border-radius:6px;padding:1px 6px;font-size:12px}._628ArG_panel{border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-settings-card-fill);border-radius:12px;margin:12px 0;padding:12px 14px}._628ArG_muted{color:var(--dsw-alias-label-secondary);font-size:12.5px;line-height:1.55}._628ArG_filters{flex-direction:column;gap:6px;display:flex}._628ArG_filterRow{flex-wrap:wrap;align-items:center;gap:8px;display:flex}._628ArG_filterLabel{color:var(--dsw-alias-label-secondary);flex:none;min-width:32px;font-size:12px}._628ArG_addRow{align-items:center;gap:8px;margin:10px 0 12px;display:flex}._628ArG_addRow ._628ArG_textInput{flex:auto;width:auto;min-width:0}._628ArG_addRow>*{white-space:nowrap;flex:none}._628ArG_selectWrap{position:relative}._628ArG_selectValue{text-overflow:ellipsis;white-space:nowrap;padding-right:4px;display:block;overflow:hidden}._628ArG_selectPop{z-index:30;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-layer-3);background:rgb(from var(--dsw-specific-menu,var(--dsw-alias-bg-layer-3)) r g b / 1);box-shadow:var(--dsw-elevation-prominent);border-radius:10px;max-height:232px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto}._628ArG_selectOption{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:7px;padding:7px 10px;font-size:13px;display:block;overflow:hidden}._628ArG_selectOption:hover{background:var(--dsw-alias-interactive-bg-hover)}._628ArG_selectOptionActive{background:var(--dsw-alias-interactive-bg-active);font-weight:550}._628ArG_rowsEmpty{text-align:center;color:var(--dsw-alias-label-secondary);padding:22px 14px;font-size:12.5px;list-style:none}._628ArG_emptyPage{text-align:center;color:var(--dsw-alias-label-secondary);border:1px dashed var(--dsw-alias-border-l3);border-radius:9px;margin:12px 0;padding:18px;font-size:13px}._628ArG_originTag{white-space:nowrap;border:1px solid #0000;border-radius:5px;align-self:flex-start;align-items:center;padding:0 6px;font-size:11px;line-height:18px;display:inline-flex}._628ArG_originBuiltin{color:var(--dsw-alias-state-business-primary);background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 34%, transparent)}._628ArG_originCustom{color:color-mix(in srgb, var(--tp-accent-violet) 62%, var(--dsw-alias-label-primary));background:color-mix(in srgb, var(--tp-accent-violet) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--tp-accent-violet) 34%, transparent)}._628ArG_originOverride{color:var(--dsw-alias-state-warn-label);background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 14%, var(--dsw-alias-bg-layer-2));border-color:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 34%, transparent)}._628ArG_restoreHint{border:1px solid var(--dsw-alias-state-warn-stroke);color:var(--dsw-alias-state-warn-label);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;font-size:11px;line-height:17px;display:flex}._628ArG_restoreHint span{flex:1;min-width:0}";
26758
26774
  document.head.appendChild(style);
26759
26775
  }
26760
26776
  var TeamPresetsSection_module_css_default = {
@@ -26809,6 +26825,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
26809
26825
  "pillInput": "_628ArG_pillInput",
26810
26826
  "plainRows": "_628ArG_plainRows",
26811
26827
  "prompt": "_628ArG_prompt",
26828
+ "restoreHint": "_628ArG_restoreHint",
26812
26829
  "resultCount": "_628ArG_resultCount",
26813
26830
  "resultNote": "_628ArG_resultNote",
26814
26831
  "resultsHead": "_628ArG_resultsHead",
@@ -28271,6 +28288,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
28271
28288
  children: t("description")
28272
28289
  })]
28273
28290
  }),
28291
+ (props.missingBuiltins ?? 0) === 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
28292
+ className: TeamPresetsSection_module_css_default.restoreHint,
28293
+ role: "status",
28294
+ children: [(0, react_jsx_runtime.jsx)("span", { children: t("restoreMissingHint").replace("{count}", String(props.missingBuiltins)) }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
28295
+ size: "sm",
28296
+ variant: "outline",
28297
+ disabled,
28298
+ onClick: () => {
28299
+ setConfirmRestore(true);
28300
+ },
28301
+ children: t("restoreDefaults")
28302
+ })]
28303
+ }),
28274
28304
  (0, react_jsx_runtime.jsxs)("div", {
28275
28305
  className: TeamPresetsSection_module_css_default.toolbar,
28276
28306
  children: [
@@ -29413,6 +29443,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29413
29443
  });
29414
29444
  }
29415
29445
  /**
29446
+ * The versions a row can patch, as text.
29447
+ *
29448
+ * A Host that predates the multi-version catalog sends no `supportedVersions`,
29449
+ * and the page must still render the single version it does report: the client
29450
+ * bundle reloads on its own while the Host only changes on restart.
29451
+ * @param target - the row.
29452
+ * @returns the versions, comma separated.
29453
+ */
29454
+ function versionsOf(target) {
29455
+ return (target.supportedVersions ?? [target.supportedVersion]).join(", ");
29456
+ }
29457
+ /**
29416
29458
  * Render one target with its state and the action that state allows.
29417
29459
  * @param props - the row facts and the action callback.
29418
29460
  * @returns the row.
@@ -29445,7 +29487,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29445
29487
  className: CardPatchView_module_css_default.meta,
29446
29488
  children: [
29447
29489
  (0, react_jsx_runtime.jsx)("dt", { children: t("patchSupported") }),
29448
- (0, react_jsx_runtime.jsx)("dd", { children: target.supportedVersion }),
29490
+ (0, react_jsx_runtime.jsx)("dd", { children: versionsOf(target) }),
29449
29491
  (0, react_jsx_runtime.jsx)("dt", { children: t("patchInstalledVersion") }),
29450
29492
  (0, react_jsx_runtime.jsx)("dd", { children: target.installedVersion ?? "—" }),
29451
29493
  (0, react_jsx_runtime.jsx)("dt", { children: t("patchSource") }),
@@ -29513,7 +29555,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29513
29555
  (0, react_jsx_runtime.jsx)("dt", { children: t("patchFile") }),
29514
29556
  (0, react_jsx_runtime.jsx)("dd", { children: (0, react_jsx_runtime.jsx)("code", { children: `${target.packageName}/lib/client.js` }) }),
29515
29557
  (0, react_jsx_runtime.jsx)("dt", { children: t("patchSupported") }),
29516
- (0, react_jsx_runtime.jsx)("dd", { children: target.supportedVersion })
29558
+ (0, react_jsx_runtime.jsx)("dd", { children: versionsOf(target) })
29517
29559
  ]
29518
29560
  })]
29519
29561
  });
@@ -29737,6 +29779,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29737
29779
  }
29738
29780
  const disabled = !state.writable || state.formIssue !== void 0;
29739
29781
  const teamList = state.teams;
29782
+ const heldIds = new Set(teamList.map((entry) => entry.id));
29783
+ const missingBuiltins = BUILTIN_TEAM_IDS.every((id) => !heldIds.has(id)) ? BUILTIN_TEAM_IDS.length : 0;
29740
29784
  const addressed = view.kind === "team" || view.kind === "agent" ? view.teamId : void 0;
29741
29785
  const found = addressed === void 0 ? void 0 : teamList.find((entry) => entry.id === addressed);
29742
29786
  const active = addressed === void 0 || found !== void 0 ? view : { kind: "list" };
@@ -29855,6 +29899,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
29855
29899
  onManageCategories: () => {
29856
29900
  setView({ kind: "categories" });
29857
29901
  },
29902
+ missingBuiltins,
29858
29903
  teamCategories: state.teamCategories,
29859
29904
  onOpen: openTeam,
29860
29905
  onCreate: () => {
@@ -30538,7 +30583,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30538
30583
  const SETTLE_TIMEOUT_MS = 6e3;
30539
30584
  /** How often that wait re-reads the registered services. */
30540
30585
  const SETTLE_POLL_MS = 250;
30541
- /** Services a patched target registers, by target identity. */
30586
+ /**
30587
+ * Fallback services, used only before the Host's rows have arrived.
30588
+ *
30589
+ * Once a row exists its own `service` field is authoritative: the Host derives
30590
+ * it from the catalog entry that matches the installed version, so a target
30591
+ * added by a shipped catalog never needs a code change here.
30592
+ */
30542
30593
  const SERVICES = {
30543
30594
  "dsh-context": "contextAgentCardBadges",
30544
30595
  "dsh-better-sidebar": "betterSidebarAgentCardBadges"
@@ -30623,8 +30674,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30623
30674
  * alone changes nothing until the server restarts and the page reloads.
30624
30675
  * @returns the live target identities, in catalog order.
30625
30676
  */
30626
- liveTargets() {
30627
- return Object.entries(SERVICES).filter(([, service]) => this.ctx.get(service) !== void 0).map(([id]) => id);
30677
+ liveTargets(targets = this.state.targets) {
30678
+ return (targets.length > 0 ? targets.map((target) => [target.id, target.service ?? SERVICES[target.id]]) : Object.entries(SERVICES)).filter(([, service]) => service !== void 0 && this.ctx.get(service) !== void 0).map(([id]) => id);
30628
30679
  }
30629
30680
  /**
30630
30681
  * Re-read every target's installed state.
@@ -30647,7 +30698,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
30647
30698
  ...this.state,
30648
30699
  status: "ready",
30649
30700
  targets,
30650
- live: this.liveTargets()
30701
+ live: this.liveTargets(targets)
30651
30702
  };
30652
30703
  } catch (error) {
30653
30704
  this.state = {