dsh-agent-team-profile-manager 0.2.1-rc.4 → 0.2.2-alpha.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/CHANGELOG.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.1-rc.4
3
+ ## 0.2.2-alpha.2
4
4
 
5
- - Align plugin and exact DSH integration dependencies with DSH `0.2.1-rc.4`.
6
- - Update the runtime compatibility guard, upstream browser bundle and release verification.
5
+ - Align plugin version and DSH integrations with DSH `0.2.2-alpha.2`.
6
+ - Update runtime guard and browser panel to the matching upstream release.
7
+ - Publish the prerelease through OIDC with the matching `alpha` dist-tag.
7
8
 
8
9
 
9
10
  ## 0.2.1-rc.4
package/NOTICE CHANGED
@@ -2,7 +2,7 @@ This plugin contains MIT-licensed code adapted from deepseek-ai/deepseek-harness
2
2
 
3
3
  src/vendor/model-selection.js: ivbrajkovic fork commit 30da5c7, packages/subagent/tool-subagent/src/model-selection.ts.
4
4
  tests/adapter.mjs and tests/query.mjs: release baseline 639ed01539 test helpers.
5
- lib/client.js: build adapts the installed @deepseek-ai/dsh-experimental-client-ui-agent-team 0.2.1-rc.4 browser bundle (MIT) with an isolated display-alias projection, locale namespace and supported slot-priority override. vendor/rc2-team-panel.js is retained only as historical source and is no longer the build input.
5
+ lib/client.js: build adapts the installed @deepseek-ai/dsh-experimental-client-ui-agent-team 0.2.2-alpha.2 browser bundle (MIT) with an isolated display-alias projection, locale namespace and supported slot-priority override. vendor/rc2-team-panel.js is retained only as historical source and is no longer the build input.
6
6
 
7
7
  Copyright (c) 2026 DeepSeek. Upstream contributors include Ivan Brajkovic.
8
8
  The upstream MIT license and local plugin MIT license are included in LICENSE.
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # dsh-agent-team-profile-manager
2
2
 
3
- Agent Teams model routing, durable display aliases and Team-first delegation for **DSH 0.2.1-rc.4 only**. Node 22.23+.
3
+ Agent Teams model routing, durable display aliases and Team-first delegation for **DSH 0.2.2-alpha.2 only**. Node 22.23+.
4
4
 
5
5
  ## What this release fixes
6
6
 
7
7
  - Migrates the Team routing bridge from removed `startContinuable` to `startActivation`, retaining upstream provisioning, authority, cancellation and persistence.
8
8
  - Restores explicit provider/model/reasoning-effort selection for fresh and fork teammates and runtime model changes without replacing their sessions.
9
9
  - Shares both upstream Team policy and the new Team identity context when duplicate tool compositions are enabled, preventing duplicate-registration failures.
10
- - Builds the alias-aware Web panel from the matching rc.4 upstream browser bundle, not the old RC panel. Display aliases preserve stable message/task targets.
10
+ - Builds the alias-aware Web panel from the matching 0.2.2-alpha.2 upstream browser bundle, not the old RC panel. Display aliases preserve stable message/task targets.
11
11
 
12
12
  ## Team-first delegation (default)
13
13
 
@@ -56,13 +56,13 @@ npm test
56
56
  npm pack --dry-run
57
57
  ~~~
58
58
 
59
- 32 tests cover actual rc.4 AgentLoop requests through keyless adapters, fresh/fork spawning, repeated switches and same-session history, JSONL restart/resume, invalid/cancelled selections, concurrent routing, real Cordis Loader duplicate composition/toggles, alias persistence/browser DOM navigation, and delegation visibility/dispatch/cleanup/opt-out. Compaction uses a stub backend; real summarization is not tested.
59
+ 32 tests cover actual 0.2.2-alpha.2 AgentLoop requests through keyless adapters, fresh/fork spawning, repeated switches and same-session history, JSONL restart/resume, invalid/cancelled selections, concurrent routing, real Cordis Loader duplicate composition/toggles, alias persistence/browser DOM navigation, and delegation visibility/dispatch/cleanup/opt-out. Compaction uses a stub backend; real summarization is not tested.
60
60
 
61
61
  The suite does not exercise cloud credentials or install/restart the user's running Web profile. A successful local suite is not a claim of live-profile verification.
62
62
 
63
63
  ## Install / update a profile
64
64
 
65
- Stop and back up the selected profile first. Upgrade the Host and Agent Teams bundle together to **0.2.1-rc.4**. Do not mix DSH package versions or force peer resolution.
65
+ Stop and back up the selected profile first. Upgrade the Host and Agent Teams bundle together to **0.2.2-alpha.2**. Do not mix DSH package versions or force peer resolution.
66
66
 
67
67
  ~~~sh
68
68
  REPO="$HOME/path/to/dsh-agent-team-profile-manager" # replace
@@ -70,9 +70,9 @@ PROFILE=web # replace with your actual profile
70
70
  npm ci --ignore-scripts
71
71
  npm run build
72
72
  npm test
73
- dsh --version # must be 0.2.1-rc.4
73
+ dsh --version # must be 0.2.2-alpha.2
74
74
  # Install/update the upstream bundle before this plugin:
75
- dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.4
75
+ dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-alpha.2
76
76
  dsh plugin --profile "$PROFILE" add "link:$REPO"
77
77
  dsh --profile "$PROFILE" --dump-config
78
78
  dsh --profile "$PROFILE"
@@ -94,18 +94,18 @@ For an existing local installation, stop the Host, remove the old plugin bundle/
94
94
  npm pack --dry-run
95
95
  # Authenticate and verify ownership/availability before the first publication:
96
96
  npm whoami
97
- npm publish --tag rc --access public
97
+ npm publish --tag alpha --access public
98
98
  npm dist-tag ls dsh-agent-team-profile-manager
99
99
  ~~~
100
100
 
101
- Publication follows the Live Voice pattern: one npm dist-tag derived from the version (`rc` for `0.2.1-rc.4`, `latest` for stable versions). GitHub Actions uses OIDC trusted publishing with provenance, without an npm token or secondary dist-tag operation.
101
+ Publication follows the Live Voice pattern: one npm dist-tag derived from the version (`alpha` for `0.2.2-alpha.2`, `latest` for stable versions). GitHub Actions uses OIDC trusted publishing with provenance, without an npm token or secondary dist-tag operation.
102
102
 
103
103
  After publication, install using:
104
104
 
105
105
  ~~~sh
106
106
  PROFILE=web # replace with your actual profile
107
- dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.4
108
- dsh plugin --profile "$PROFILE" add dsh-agent-team-profile-manager@0.2.1-rc.4
107
+ dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-alpha.2
108
+ dsh plugin --profile "$PROFILE" add dsh-agent-team-profile-manager@0.2.2-alpha.2
109
109
  ~~~
110
110
 
111
111
  ## GitHub Actions CI and publication
@@ -119,7 +119,7 @@ Before the first automated release:
119
119
 
120
120
  1. Create the GitHub environment **npm** in **wads-dev/dsh-agent-team-profile-manager**, preferably with main-only deployment and required reviewers.
121
121
  2. Configure npm Trusted Publisher: GitHub Actions, owner **wads-dev**, repository **dsh-agent-team-profile-manager**, workflow **publish.yml**, environment **npm**. A first manual publication may be required to create the package before configuring its trusted publisher.
122
- 3. Run **Publish to npm** from main. Version **0.2.1-rc.4** publishes directly to `rc` via OIDC, without `NPM_TOKEN`. The GitHub Release is marked prerelease.
122
+ 3. Run **Publish to npm** from main. Version **0.2.2-alpha.2** publishes directly to `alpha` via OIDC, without `NPM_TOKEN`. The GitHub Release is marked prerelease.
123
123
 
124
124
  Git tagging and npm publication are not atomic. If publication fails after Git tagging, inspect the run and registry before recovery; do not blindly republish an immutable version.
125
125
 
@@ -1,16 +1,20 @@
1
- # Verification — DSH 0.2.1-rc.4
1
+ ## Current verification — DSH 0.2.2-alpha.2
2
2
 
3
- This verification supersedes the prior rc.2 compatibility report.
3
+ Validated locally with the exact published DSH alpha.2 packages. The full build, 32-test suite, npm dependency tree, and package dry run passed.
4
4
 
5
- Verified 2026-10-28 with Node v22.23.3 and matching published rc.4 DSH packages. Cordis 4.0.5, Loader 1.0.6.
5
+ # Verification — DSH 0.2.2-alpha.2
6
+
7
+ This verification supersedes the prior rc.4 compatibility report.
8
+
9
+ Verified 2026-10-28 with Node v22.23.3 and matching published alpha.2 DSH packages. Cordis 4.0.6-alpha.1, Loader 1.0.7-alpha.1.
6
10
 
7
11
  ## Passed
8
12
 
9
13
  - Clean npm ci --ignore-scripts using the committed lockfile.
10
- - npm run build: Host ESM and matching rc.4 alias-aware browser bundle.
14
+ - npm run build: Host ESM and matching alpha.2 alias-aware browser bundle.
11
15
  - npm test: 32 passed, zero failed/skipped.
12
16
  - npm pack --dry-run: prepack rebuild and all 32 tests passed again; expected Host/client entry points, bundle patch and documentation included.
13
- - npm ls --depth=0: no invalid or missing direct dependencies.
17
+ - npm ls --depth=0: no invalid or missing direct dependencies; DSH 0.2.2-alpha.2, Cordis 4.0.6-alpha.1 and Loader 1.0.7-alpha.1.
14
18
  - git diff --check.
15
19
 
16
20
  ## Coverage
@@ -21,7 +25,7 @@ Tests cover fresh/fork explicit routes and inheritance; repeated same-session sw
21
25
 
22
26
  ## Compatibility review
23
27
 
24
- The rc.4 Team service still does not forward `agentOptions` from Team spawning; the async-local `startActivation` bridge remains necessary and its request contract is unchanged. Required model-selection, service decoration, projection and browser-panel contracts pass the integration suite. The runtime guard checks exact rc.4 versions (including dsh-scope), and release tests check all DSH lockfile entries as well as direct dependency pins.
28
+ The alpha.2 Team service still does not forward `agentOptions` from Team spawning; the async-local `startActivation` bridge remains necessary and its request contract is unchanged. Required model-selection, service decoration, projection and browser-panel contracts pass the integration suite. The runtime guard checks exact alpha.2 versions (including dsh-scope), and release tests check all DSH lockfile entries as well as direct dependency pins.
25
29
 
26
30
  ### Earlier alpha migration fixes retained
27
31
 
@@ -29,6 +33,6 @@ The removed startContinuable method is replaced by startActivation. The router p
29
33
 
30
34
  ## Limits / deployment still required
31
35
 
32
- No cloud credentials, live provider billing, global installation or user profile configuration changed. No running DSH Host restart or existing-URL Web verification performed. The Host and profile packages must match this exact rc.4 release before loading the plugin. The historical inactive-context live incident is not independently reproduced or claimed universally fixed.
36
+ No cloud credentials, live provider billing, global installation or user profile configuration changed. No running DSH Host restart or existing-URL Web verification performed. The Host and profile packages must match this exact alpha.2 release before loading the plugin. The historical inactive-context live incident is not independently reproduced or claimed universally fixed.
33
37
 
34
- Browser verification is DOM-based against the built rc.4 panel. Native compaction is tested with a stub backend, not real summarization. Model-choice confirmation is system-prompt/tool-description guidance; code enforces route authorization and standard-subagent tool denial, not proof of human consent. Tool restrictions are not a security boundary against arbitrary host-side code or other plugins.
38
+ Browser verification is DOM-based against the built alpha.2 panel. Native compaction is tested with a stub backend, not real summarization. Model-choice confirmation is system-prompt/tool-description guidance; code enforces route authorization and standard-subagent tool denial, not proof of human consent. Tool restrictions are not a security boundary against arbitrary host-side code or other plugins.
package/lib/client.js CHANGED
@@ -1,4 +1,4 @@
1
- // rc.4 upstream Team panel (MIT), isolated alias-aware slot override. See NOTICE.
1
+ // 0.2.2-alpha.2 upstream Team panel (MIT), isolated alias-aware slot override. See NOTICE.
2
2
  window.__ModuleLoader__.load({
3
3
  id: "dsh-agent-team-profile-manager",
4
4
  factory: (require) => {
@@ -10,7 +10,7 @@ window.__ModuleLoader__.load({
10
10
  let react_dom = require("react-dom");
11
11
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
12
12
  //#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/experimental/client-ui-agent-team/src/client/TeamAction.module.css.mjs
13
- const css = ".VoX2oq_root{position:relative}.VoX2oq_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:3px 7px;font-size:12px;display:inline-flex}.VoX2oq_trigger:hover,.VoX2oq_trigger:focus-visible{color:var(--dsw-alias-label-primary)}@container (width<=480px){.VoX2oq_triggerLabel{display:none}}.VoX2oq_count{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;line-height:16px}.VoX2oq_panel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);z-index:100;box-sizing:border-box;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:min(500px,100vw - 32px);max-height:min(680px,100vh - 32px);box-shadow:var(--dsw-elevation-prominent);border:0;border-radius:12px;flex-direction:column;padding:8px 2px 0;display:flex;position:fixed;overflow:hidden}.VoX2oq_panel:before{content:\"\";z-index:-1;background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);border-radius:12px;position:absolute;inset:0}.VoX2oq_panelCompact{width:min(320px,100vw - 32px)}.VoX2oq_panelCompact .VoX2oq_roster{grid-template-columns:minmax(0,1fr)}.VoX2oq_body{--dsh-scrollbar-track-margin:8px;scrollbar-gutter:stable;flex:auto;min-height:0;padding:0 9px 16px 14px;overflow-y:auto}.VoX2oq_taskTitle{align-items:center;gap:8px;display:flex}.VoX2oq_taskTitle strong{font-size:13px;font-weight:500}.VoX2oq_panel h3{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;margin:16px 0 8px 4px;font-size:13px;font-weight:500;display:flex}.VoX2oq_body section:first-of-type h3{margin-top:8px}.VoX2oq_roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.VoX2oq_member{--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);min-width:0;box-shadow:var(--dsw-elevation-stroke);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;border:0;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.VoX2oq_member:disabled{cursor:default}.VoX2oq_memberCurrent{--dsw-elevation-stroke-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent);box-shadow:var(--dsw-elevation-stroke), inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent)}.VoX2oq_member:not(:disabled):hover,.VoX2oq_member:not(:disabled):focus-visible{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);box-shadow:var(--dsw-elevation-panel)}.VoX2oq_memberDot{flex:none;align-items:center;height:1lh;display:inline-flex}.VoX2oq_inactiveIcon{color:var(--dsw-alias-label-tertiary)}.VoX2oq_memberText{flex-direction:column;min-width:0;display:flex}.VoX2oq_memberName{align-items:center;gap:5px;min-width:0;display:inline-flex}.VoX2oq_memberNameText,.VoX2oq_memberText small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.VoX2oq_memberModel{display:none}.VoX2oq_member:hover .VoX2oq_memberModel,.VoX2oq_member:focus-visible .VoX2oq_memberModel{display:inline}.VoX2oq_currentTag{text-overflow:ellipsis;flex:0 999 auto;min-width:0;padding:0 4px;font-size:10px;line-height:15px;display:inline-block;overflow:hidden}.VoX2oq_memberText small,.VoX2oq_meta{color:var(--dsw-alias-label-tertiary);font-size:11px}.VoX2oq_diagnostic,.VoX2oq_error,.VoX2oq_warning{color:var(--dsw-alias-state-error-primary)}.VoX2oq_tasks{flex-direction:column;gap:7px;display:flex}.VoX2oq_emptyNotice{color:var(--dsw-alias-label-tertiary);margin:16px 0 0 4px;font-size:12px}.VoX2oq_task{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:9px;padding:11px 13px}.VoX2oq_taskState{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin-left:auto;font-size:11px;display:inline-flex}.VoX2oq_task p{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:5px 0;font-size:12px;line-height:18px}.VoX2oq_clampedDescription{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.VoX2oq_expandToggle{float:right;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;margin-left:10px;padding:0;font-size:11px;line-height:20px;display:inline-flex}.VoX2oq_expandToggle:hover,.VoX2oq_expandToggle:focus-visible{color:var(--dsw-alias-label-primary)}.VoX2oq_expandToggle svg{transition:transform .12s}.VoX2oq_expandToggleOpen{transform:rotate(180deg)}.VoX2oq_meta{line-height:20px}.VoX2oq_meta>span{margin-right:10px}.VoX2oq_notice,.VoX2oq_error{align-items:center;gap:6px;padding:9px;font-size:12px;display:flex}";
13
+ const css = ".VoX2oq_root{position:relative}.VoX2oq_trigger{min-height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:5px;padding:3px 7px;font-size:12px;display:inline-flex}.VoX2oq_trigger:focus-visible{color:var(--dsw-alias-label-primary)}@media (hover:hover){.VoX2oq_trigger:hover{color:var(--dsw-alias-label-primary)}}@container (width<=480px){.VoX2oq_triggerLabel{display:none}}.VoX2oq_count{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;font-size:12px;font-weight:400;line-height:16px}.VoX2oq_panel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);z-index:100;box-sizing:border-box;--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);width:min(500px,100vw - 32px);max-height:min(680px,100vh - 32px);box-shadow:var(--dsw-elevation-prominent);border:0;border-radius:12px;flex-direction:column;padding:8px 2px 0;display:flex;position:fixed;overflow:hidden}.VoX2oq_panel:before{content:\"\";z-index:-1;background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);border-radius:12px;position:absolute;inset:0}.VoX2oq_panelCompact{width:min(320px,100vw - 32px)}.VoX2oq_panelCompact .VoX2oq_roster{grid-template-columns:minmax(0,1fr)}.VoX2oq_body{--dsh-scrollbar-track-margin:8px;scrollbar-gutter:stable;flex:auto;min-height:0;padding:0 9px 16px 14px;overflow-y:auto}.VoX2oq_taskTitle{align-items:center;gap:8px;display:flex}.VoX2oq_taskTitle strong{font-size:13px;font-weight:500}.VoX2oq_panel h3{color:var(--dsw-alias-label-primary);align-items:center;gap:8px;margin:16px 0 8px 4px;font-size:13px;font-weight:500;display:flex}.VoX2oq_body section:first-of-type h3{margin-top:8px}.VoX2oq_roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.VoX2oq_member{--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);min-width:0;box-shadow:var(--dsw-elevation-stroke);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;border:0;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.VoX2oq_member:disabled{cursor:default}.VoX2oq_memberCurrent{--dsw-elevation-stroke-color:color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent);box-shadow:var(--dsw-elevation-stroke), inset 0 0 0 1px color-mix(in srgb, var(--dsw-alias-state-business-primary) 40%, transparent)}.VoX2oq_member:not(:disabled):focus-visible{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);box-shadow:var(--dsw-elevation-panel)}@media (hover:hover){.VoX2oq_member:not(:disabled):hover{--dsw-elevation-stroke-color:var(--dsw-alias-border-l3);box-shadow:var(--dsw-elevation-panel)}}.VoX2oq_memberDot{flex:none;align-items:center;height:1lh;display:inline-flex}.VoX2oq_inactiveIcon{color:var(--dsw-alias-label-tertiary)}.VoX2oq_memberText{flex-direction:column;min-width:0;display:flex}.VoX2oq_memberName{align-items:center;gap:5px;min-width:0;display:inline-flex}.VoX2oq_memberNameText,.VoX2oq_memberText small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.VoX2oq_memberModel{display:none}.VoX2oq_member:focus-visible .VoX2oq_memberModel{display:inline}@media (hover:hover){.VoX2oq_member:hover .VoX2oq_memberModel{display:inline}}.VoX2oq_currentTag{text-overflow:ellipsis;flex:0 999 auto;min-width:0;padding:0 4px;font-size:10px;line-height:15px;display:inline-block;overflow:hidden}.VoX2oq_memberText small,.VoX2oq_meta{color:var(--dsw-alias-label-tertiary);font-size:11px}.VoX2oq_diagnostic,.VoX2oq_error,.VoX2oq_warning{color:var(--dsw-alias-state-error-primary)}.VoX2oq_tasks{flex-direction:column;gap:7px;display:flex}.VoX2oq_emptyNotice{color:var(--dsw-alias-label-tertiary);margin:16px 0 0 4px;font-size:12px}.VoX2oq_task{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);border-radius:9px;padding:11px 13px}.VoX2oq_taskState{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin-left:auto;font-size:11px;display:inline-flex}.VoX2oq_task p{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;margin:5px 0;font-size:12px;line-height:18px}.VoX2oq_clampedDescription{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.VoX2oq_expandToggle{float:right;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;margin-left:10px;padding:0;font-size:11px;line-height:20px;display:inline-flex}.VoX2oq_expandToggle:focus-visible{color:var(--dsw-alias-label-primary)}@media (hover:hover){.VoX2oq_expandToggle:hover{color:var(--dsw-alias-label-primary)}}.VoX2oq_expandToggle svg{transition:transform .12s}.VoX2oq_expandToggleOpen{transform:rotate(180deg)}.VoX2oq_meta{line-height:20px}.VoX2oq_meta>span{margin-right:10px}.VoX2oq_notice,.VoX2oq_error{align-items:center;gap:6px;padding:9px;font-size:12px;display:flex}@media (hover:none){.VoX2oq_memberModel{display:inline}}";
14
14
  const tagId = "dsh-agent-team-profile-manager/TeamAction.module.css";
15
15
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
16
16
  const tag = document.createElement("style");
@@ -427,10 +427,10 @@ const team = baseTeam === undefined ? undefined : { ...baseTeam, members: baseTe
427
427
  };
428
428
  /** English dictionary checked against the Chinese key set. */
429
429
  const en = {
430
- trigger: "Agent Team",
431
- loading: "Loading Team…",
430
+ trigger: "Agent team",
431
+ loading: "Loading team…",
432
432
  unavailable: "Team is unavailable",
433
- failure: "Invalid persisted Team record: {message}",
433
+ failure: "Invalid persisted team record: {message}",
434
434
  empty: "No shared tasks yet. Create them through the conversation.",
435
435
  roster: "Members",
436
436
  tasks: "Shared tasks",
@@ -453,6 +453,174 @@ const team = baseTeam === undefined ? undefined : { ...baseTeam, members: baseTe
453
453
  "status.in_progress": "In progress",
454
454
  "status.completed": "Completed"
455
455
  };
456
+ /** Japanese copy, checked against the English keys. */
457
+ const ja = {
458
+ "trigger": "エージェントチーム",
459
+ "loading": "チームを読み込み中…",
460
+ "unavailable": "チームは利用できません",
461
+ "failure": "保存されたチームレコードが無効です: {message}",
462
+ "empty": "共有タスクはまだありません。会話から作成してください。",
463
+ "roster": "メンバー",
464
+ "tasks": "共有タスク",
465
+ "model": "モデル",
466
+ "open": "メンバーの会話を開く",
467
+ "current": "現在のチャット",
468
+ "owner": "オーナー",
469
+ "unowned": "オーナーなし",
470
+ "blockedBy": "ブロック元",
471
+ "writeScopes": "書き込みスコープ",
472
+ "ready": "準備完了",
473
+ "blocked": "依存関係によりブロック中",
474
+ "task.expand": "もっと見る",
475
+ "task.collapse": "折りたたむ",
476
+ "memberStatus.running": "実行中",
477
+ "memberStatus.inactive": "非アクティブ",
478
+ "memberStatus.provisioning": "プロビジョニング中",
479
+ "memberStatus.failed": "失敗",
480
+ "status.pending": "保留中",
481
+ "status.in_progress": "進行中",
482
+ "status.completed": "完了"
483
+ };
484
+ /** Spanish dictionary, checked against the English keys. */
485
+ const es = {
486
+ trigger: "equipo de agentes",
487
+ loading: "Cargando equipo…",
488
+ unavailable: "El equipo no está disponible",
489
+ failure: "Registro de equipo persistente no válido: {message}",
490
+ empty: "Aún no hay tareas compartidas. Créelos a través de la conversación.",
491
+ roster: "Miembros",
492
+ tasks: "Tareas compartidas",
493
+ model: "modelo",
494
+ open: "Abrir conversación de miembros",
495
+ current: "charla actual",
496
+ owner: "propietario",
497
+ unowned: "Sin dueño",
498
+ blockedBy: "Bloqueado por",
499
+ writeScopes: "Escribir alcances",
500
+ ready: "Listo",
501
+ blocked: "Bloqueado por dependencias",
502
+ "task.expand": "Mostrar más",
503
+ "task.collapse": "Mostrar menos",
504
+ "memberStatus.running": "corriendo",
505
+ "memberStatus.inactive": "Inactivo",
506
+ "memberStatus.provisioning": "Aprovisionamiento",
507
+ "memberStatus.failed": "Fallido",
508
+ "status.pending": "Pendiente",
509
+ "status.in_progress": "En progreso",
510
+ "status.completed": "Completado"
511
+ };
512
+ /** French dictionary, checked against the English keys. */
513
+ const fr = {
514
+ trigger: "Équipe d'agents",
515
+ loading: "Chargement de l'équipe…",
516
+ unavailable: "L'équipe n'est pas disponible",
517
+ failure: "Enregistrement d'équipe persistant non valide\xA0: {message}",
518
+ empty: "Aucune tâche partagée pour l'instant. Créez-les à travers la conversation.",
519
+ roster: "Membres",
520
+ tasks: "Tâches partagées",
521
+ model: "Modèle",
522
+ open: "Conversation ouverte avec les membres",
523
+ current: "Discussion actuelle",
524
+ owner: "Propriétaire",
525
+ unowned: "Sans propriétaire",
526
+ blockedBy: "Bloqué par",
527
+ writeScopes: "Écrire des étendues",
528
+ ready: "Prêt",
529
+ blocked: "Bloqué par les dépendances",
530
+ "task.expand": "Afficher plus",
531
+ "task.collapse": "Afficher moins",
532
+ "memberStatus.running": "Courir",
533
+ "memberStatus.inactive": "Inactif",
534
+ "memberStatus.provisioning": "Approvisionnement",
535
+ "memberStatus.failed": "Échec",
536
+ "status.pending": "En attente",
537
+ "status.in_progress": "En cours",
538
+ "status.completed": "Terminé"
539
+ };
540
+ /** German dictionary, checked against the English keys. */
541
+ const de = {
542
+ trigger: "Agententeam",
543
+ loading: "Team wird geladen…",
544
+ unavailable: "Team ist nicht verfügbar",
545
+ failure: "Ungültiger beibehaltener Teamdatensatz: {message}",
546
+ empty: "Noch keine geteilten Aufgaben. Erstellen Sie sie durch das Gespräch.",
547
+ roster: "Mitglieder",
548
+ tasks: "Geteilte Aufgaben",
549
+ model: "Modell",
550
+ open: "Öffnen Sie die Mitgliederkonversation",
551
+ current: "Aktueller Chat",
552
+ owner: "Besitzer",
553
+ unowned: "Unbesessen",
554
+ blockedBy: "Blockiert von",
555
+ writeScopes: "Bereiche schreiben",
556
+ ready: "Bereit",
557
+ blocked: "Blockiert durch Abhängigkeiten",
558
+ "task.expand": "Mehr anzeigen",
559
+ "task.collapse": "Weniger anzeigen",
560
+ "memberStatus.running": "Laufen",
561
+ "memberStatus.inactive": "Inaktiv",
562
+ "memberStatus.provisioning": "Bereitstellung",
563
+ "memberStatus.failed": "Fehlgeschlagen",
564
+ "status.pending": "Ausstehend",
565
+ "status.in_progress": "In Bearbeitung",
566
+ "status.completed": "Abgeschlossen"
567
+ };
568
+ /** Russian dictionary, checked against the English keys. */
569
+ const ru = {
570
+ trigger: "Команда агентов",
571
+ loading: "Загрузка команды…",
572
+ unavailable: "Команда недоступна",
573
+ failure: "Неверный сохраненный командный рекорд: {message}.",
574
+ empty: "Общие задачи пока отсутствуют. Создайте их посредством разговора.",
575
+ roster: "Члены",
576
+ tasks: "Общие задачи",
577
+ model: "Модель",
578
+ open: "Открыть беседу участников",
579
+ current: "Текущий чат",
580
+ owner: "Владелец",
581
+ unowned: "Невладеющий",
582
+ blockedBy: "Заблокировано",
583
+ writeScopes: "Запись областей",
584
+ ready: "Готово",
585
+ blocked: "Заблокировано зависимостями",
586
+ "task.expand": "Показать больше",
587
+ "task.collapse": "Показать меньше",
588
+ "memberStatus.running": "Бег",
589
+ "memberStatus.inactive": "Неактивный",
590
+ "memberStatus.provisioning": "обеспечение",
591
+ "memberStatus.failed": "Не удалось",
592
+ "status.pending": "Ожидается",
593
+ "status.in_progress": "В процессе",
594
+ "status.completed": "Завершено"
595
+ };
596
+ /** Portuguese dictionary, checked against the English keys. */
597
+ const pt = {
598
+ trigger: "Equipe de agentes",
599
+ loading: "Carregando equipe…",
600
+ unavailable: "A equipe não está disponível",
601
+ failure: "Registro de equipe persistente inválido: {message}",
602
+ empty: "Ainda não há tarefas compartilhadas. Crie-os através da conversa.",
603
+ roster: "Membros",
604
+ tasks: "Tarefas compartilhadas",
605
+ model: "Modelo",
606
+ open: "Abrir conversa entre membros",
607
+ current: "Bate-papo atual",
608
+ owner: "Proprietário",
609
+ unowned: "Sem dono",
610
+ blockedBy: "Bloqueado por",
611
+ writeScopes: "Escrever escopos",
612
+ ready: "Pronto",
613
+ blocked: "Bloqueado por dependências",
614
+ "task.expand": "Mostrar mais",
615
+ "task.collapse": "Mostrar menos",
616
+ "memberStatus.running": "Correndo",
617
+ "memberStatus.inactive": "Inativo",
618
+ "memberStatus.provisioning": "Provisionamento",
619
+ "memberStatus.failed": "Falha",
620
+ "status.pending": "Pendente",
621
+ "status.in_progress": "Em andamento",
622
+ "status.completed": "Concluído"
623
+ };
456
624
  //#endregion
457
625
  //#region lib/types/client/mount.js
458
626
  /** Source-safe Agent Teams browser registration. */
@@ -472,7 +640,13 @@ const team = baseTeam === undefined ? undefined : { ...baseTeam, members: baseTe
472
640
  function registerAgentTeamUi(ctx) {
473
641
  ctx.effect(() => ctx.locale.register(NS, {
474
642
  zh,
475
- en
643
+ en,
644
+ ja,
645
+ es,
646
+ fr,
647
+ de,
648
+ ru,
649
+ pt
476
650
  }), "client-ui-agent-team: dictionaries");
477
651
  const sessions = ctx.sessions;
478
652
  const leadSessionId = (sessionId) => {
@@ -0,0 +1,64 @@
1
+ import { createRequire } from 'node:module';
2
+ import { AsyncLocalStorage } from 'node:async_hooks';
3
+ import { scopeOf } from '@deepseek-ai/dsh-scope';
4
+ const require = createRequire(import.meta.url);
5
+ const EXPECTED = '0.2.2-alpha.2';
6
+ export function assertCompatibility(ctx) {
7
+ for (const pkg of ['agent', 'subagent', 'tools', 'llm', 'scope', 'session', 'experimental-agent-team', 'experimental-tool-agent-team', 'session-projection', 'tool-subagent']) {
8
+ const actual = require('@deepseek-ai/dsh-' + pkg + '/package.json').version;
9
+ if (actual !== EXPECTED) throw new Error('agent-team-profile-manager requires DSH ' + EXPECTED + '; ' + pkg + ' is ' + actual);
10
+ }
11
+ for (const [service, methods] of Object.entries({ agents: ['list', 'get'], subagents: ['startActivation'], llm: ['resolveCallConfig', 'resolveModelInfo', 'listProviders', 'listModels'], tools: ['register', 'get'], agentTeams: ['tryMembership', 'listMembers'] })) {
12
+ for (const method of methods) if (typeof ctx[service]?.[method] !== 'function') throw new Error('Missing DSH API: ' + service + '.' + method);
13
+ }
14
+ }
15
+ /** Cordis internal/get is a public framework waterfall. It decorates caller-traced services,
16
+ * never mutates their prototypes/instances, and unwinds with the plugin fiber.
17
+ * The 0.2.2-alpha.2 Team service does not forward agentOptions. Preserve its full provisioning transaction
18
+ * and inject overrides at its existing startActivation call, using async-local authority.
19
+ */
20
+ export function installDecorators(ctx, transformTool) {
21
+ const spawning = new AsyncLocalStorage();
22
+ const shared = new WeakMap();
23
+ const globalScope = {};
24
+ const retain = (caller, key, register) => {
25
+ const scope = scopeOf(caller) ?? globalScope;
26
+ let entries = shared.get(scope);
27
+ if (!entries) { entries = new Map(); shared.set(scope, entries); }
28
+ let entry = entries.get(key);
29
+ if (!entry) { entry = { count: 0, dispose: register() }; entries.set(key, entry); }
30
+ entry.count++;
31
+ let released = false;
32
+ return () => {
33
+ if (released) return;
34
+ released = true;
35
+ if (--entry.count === 0) { entries.delete(key); entry.dispose(); }
36
+ };
37
+ };
38
+ ctx.on('internal/get', (callerCtx, name, _error, next) => {
39
+ const service = next();
40
+ if (!service || (name !== 'tools' && name !== 'subagents' && name !== 'systemPrompt')) return service;
41
+ return new Proxy(service, { get(target, key) {
42
+ const original = Reflect.get(target, key, target);
43
+ if (name === 'systemPrompt' && (key === 'section' || key === 'context')) return entry => {
44
+ if (!['team:policy', 'team:identity'].includes(entry.name)) return original.call(target, entry);
45
+ return retain(callerCtx, key + ':' + entry.name, () => original.call(target, entry));
46
+ };
47
+ if (name === 'tools' && key === 'register') return definition => {
48
+ const transformed = transformTool(definition, spawning);
49
+ return ['spawn_teammate', 'send_message', 'list_agents', 'wait_agent', 'interrupt_agent', 'team_task_create', 'team_task_list', 'team_task_get', 'team_task_update'].includes(definition.name)
50
+ ? retain(callerCtx, 'tool:' + definition.name, () => original.call(target, transformed))
51
+ : original.call(target, transformed);
52
+ };
53
+ if (name === 'subagents' && key === 'startActivation') return spec => {
54
+ const selection = spawning.getStore();
55
+ if (selection && spec.childId && spec.request.parent === selection.parent) {
56
+ return original.call(target, { ...spec, request: { ...spec.request, agentOptions: selection.options } });
57
+ }
58
+ return original.call(target, spec);
59
+ };
60
+ return typeof original === 'function' ? original.bind(target) : original;
61
+ } });
62
+ });
63
+ return spawning;
64
+ }
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { displayNamesProjection, normalizeDisplayName } from './display-names/state.js';
2
2
  import { defineTool } from '@deepseek-ai/dsh-tools';
3
3
  import * as TeamTools from '@deepseek-ai/dsh-experimental-tool-agent-team';
4
- import { assertCompatibility, installDecorators } from './compatibility/dsh-0.2.1-rc.4.js';
4
+ import { assertCompatibility, installDecorators } from './compatibility/dsh-0.2.2-alpha.2.js';
5
5
  import { routingProjection } from './routing/state.js';
6
6
  import { ModelRouter } from './routing/model-router.js';
7
7
  import { infoSchema, switchSchema, listSchema, jsonOutput } from './tools/schemas.js';
@@ -139,5 +139,5 @@ export async function apply(ctx, config = {}) {
139
139
  for (const agent of ctx.agents.list()) install(agent);
140
140
  // Mount upstream tools AFTER decoration, avoiding replacement of live registry definitions.
141
141
  await ctx.plugin(TeamTools, { freshProvider: config.freshProvider ?? 'spawn', forkProvider: config.forkProvider ?? 'fork' });
142
- ctx.logger.info('[agent-team-profile-manager] loaded for DSH 0.2.1-rc.4');
142
+ ctx.logger.info('[agent-team-profile-manager] loaded for DSH 0.2.2-alpha.2');
143
143
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dsh-agent-team-profile-manager",
3
- "version": "0.2.1-rc.4",
3
+ "version": "0.2.2-alpha.2",
4
4
  "description": "Agent Teams profile manager for DSH: runtime model routing, display names and Team-first delegation",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
- "tag": "rc"
7
+ "tag": "alpha"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -38,17 +38,17 @@
38
38
  "node": ">=22.23.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@deepseek-ai/cordis": "~4.0.5",
42
- "@deepseek-ai/dsh-agent": "0.2.1-rc.4",
43
- "@deepseek-ai/dsh-experimental-agent-team": "0.2.1-rc.4",
44
- "@deepseek-ai/dsh-experimental-tool-agent-team": "0.2.1-rc.4",
45
- "@deepseek-ai/dsh-llm": "0.2.1-rc.4",
46
- "@deepseek-ai/dsh-scope": "0.2.1-rc.4",
47
- "@deepseek-ai/dsh-session": "0.2.1-rc.4",
48
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.4",
49
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.4",
50
- "@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.4",
51
- "@deepseek-ai/dsh-tools": "0.2.1-rc.4"
41
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
42
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
43
+ "@deepseek-ai/dsh-experimental-agent-team": "0.2.2-alpha.2",
44
+ "@deepseek-ai/dsh-experimental-tool-agent-team": "0.2.2-alpha.2",
45
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
46
+ "@deepseek-ai/dsh-scope": "0.2.2-alpha.2",
47
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
48
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
49
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
50
+ "@deepseek-ai/dsh-tool-subagent": "0.2.2-alpha.2",
51
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2"
52
52
  },
53
53
  "dependencies": {
54
54
  "zod": "^4.4.3"
@@ -70,18 +70,18 @@
70
70
  },
71
71
  "license": "MIT",
72
72
  "devDependencies": {
73
- "@deepseek-ai/cordis": "~4.0.5",
74
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
75
- "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.4",
76
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-rc.4",
77
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.4",
78
- "@deepseek-ai/dsh-experimental-client-ui-agent-team": "0.2.1-rc.4",
79
- "@deepseek-ai/dsh-fs-local": "0.2.1-rc.4",
80
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.4",
81
- "@deepseek-ai/dsh-session-query": "0.2.1-rc.4",
82
- "@deepseek-ai/dsh-subagent-fork-in-process": "0.2.1-rc.4",
83
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.4",
84
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.4",
73
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1",
74
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.1",
75
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
76
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.2",
77
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.2",
78
+ "@deepseek-ai/dsh-experimental-client-ui-agent-team": "0.2.2-alpha.2",
79
+ "@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2",
80
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.2",
81
+ "@deepseek-ai/dsh-session-query": "0.2.2-alpha.2",
82
+ "@deepseek-ai/dsh-subagent-fork-in-process": "0.2.2-alpha.2",
83
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-alpha.2",
84
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2",
85
85
  "jsdom": "^26.1.0",
86
86
  "react": "^18.3.1",
87
87
  "react-dom": "^18.3.1"