dsh-agent-team-profile-manager 0.2.2-alpha.2 → 0.2.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -4
- package/NOTICE +1 -1
- package/README.md +13 -11
- package/docs/VERIFICATION.md +13 -13
- package/lib/client.js +2 -2
- package/lib/compatibility/dsh-0.2.2-rc.1.js +64 -0
- package/lib/index.js +2 -2
- package/package.json +26 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.2.2-
|
|
3
|
+
## 0.2.2-rc.1
|
|
4
|
+
|
|
5
|
+
- Align the plugin and all DSH peers/dev dependencies exactly to DSH `0.2.2-rc.1`; use Cordis 4.1.0 and Loader 1.1.0.
|
|
6
|
+
- Update compatibility guard and build against the rc.1 browser bundle.
|
|
7
|
+
- Keep npm OIDC publishing on `latest` and enforce version parity in CI.
|
|
4
8
|
|
|
5
|
-
|
|
6
|
-
- Update runtime guard and browser panel to the matching upstream release.
|
|
7
|
-
- Publish the prerelease through OIDC with the matching `alpha` dist-tag.
|
|
9
|
+
## 0.2.2-alpha.2
|
|
8
10
|
|
|
11
|
+
- Align the plugin with DSH `0.2.2-alpha.2`.
|
|
9
12
|
|
|
10
13
|
## 0.2.1-rc.4
|
|
11
14
|
|
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.2-
|
|
5
|
+
lib/client.js: build adapts the installed @deepseek-ai/dsh-experimental-client-ui-agent-team 0.2.2-rc.1 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.2-
|
|
3
|
+
Agent Teams model routing, durable display aliases and Team-first delegation for **DSH 0.2.2-rc.1 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 0.2.2-
|
|
10
|
+
- Builds the alias-aware Web panel from the matching 0.2.2-rc.1 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
|
|
|
@@ -49,6 +49,8 @@ A missing provider, disallowed route, invalid effort or unavailable exact model
|
|
|
49
49
|
|
|
50
50
|
## Build and validation
|
|
51
51
|
|
|
52
|
+
Plugin release: **0.2.2-rc.1**. Compatible Host/Agent Teams release: **0.2.2-rc.1**.
|
|
53
|
+
|
|
52
54
|
~~~sh
|
|
53
55
|
npm ci --ignore-scripts
|
|
54
56
|
npm run build
|
|
@@ -56,13 +58,13 @@ npm test
|
|
|
56
58
|
npm pack --dry-run
|
|
57
59
|
~~~
|
|
58
60
|
|
|
59
|
-
32 tests cover actual 0.2.2-
|
|
61
|
+
32 tests cover actual 0.2.2-rc.1 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
62
|
|
|
61
63
|
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
64
|
|
|
63
65
|
## Install / update a profile
|
|
64
66
|
|
|
65
|
-
Stop and back up the selected profile first.
|
|
67
|
+
Stop and back up the selected profile first. Use Host and Agent Teams bundle **0.2.2-rc.1** with this plugin **0.2.2-rc.1**. Do not mix DSH package versions or force peer resolution.
|
|
66
68
|
|
|
67
69
|
~~~sh
|
|
68
70
|
REPO="$HOME/path/to/dsh-agent-team-profile-manager" # replace
|
|
@@ -70,9 +72,9 @@ PROFILE=web # replace with your actual profile
|
|
|
70
72
|
npm ci --ignore-scripts
|
|
71
73
|
npm run build
|
|
72
74
|
npm test
|
|
73
|
-
dsh --version # must be 0.2.2-
|
|
75
|
+
dsh --version # must be 0.2.2-rc.1
|
|
74
76
|
# Install/update the upstream bundle before this plugin:
|
|
75
|
-
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-
|
|
77
|
+
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-rc.1
|
|
76
78
|
dsh plugin --profile "$PROFILE" add "link:$REPO"
|
|
77
79
|
dsh --profile "$PROFILE" --dump-config
|
|
78
80
|
dsh --profile "$PROFILE"
|
|
@@ -94,18 +96,18 @@ For an existing local installation, stop the Host, remove the old plugin bundle/
|
|
|
94
96
|
npm pack --dry-run
|
|
95
97
|
# Authenticate and verify ownership/availability before the first publication:
|
|
96
98
|
npm whoami
|
|
97
|
-
npm publish --tag
|
|
99
|
+
npm publish --tag latest --access public
|
|
98
100
|
npm dist-tag ls dsh-agent-team-profile-manager
|
|
99
101
|
~~~
|
|
100
102
|
|
|
101
|
-
|
|
103
|
+
Every release, including prereleases, publishes to the npm `latest` dist-tag via GitHub Actions OIDC with provenance. This workflow does not create secondary dist-tags or use an npm token.
|
|
102
104
|
|
|
103
105
|
After publication, install using:
|
|
104
106
|
|
|
105
107
|
~~~sh
|
|
106
108
|
PROFILE=web # replace with your actual profile
|
|
107
|
-
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-
|
|
108
|
-
dsh plugin --profile "$PROFILE" add dsh-agent-team-profile-manager@0.2.2-
|
|
109
|
+
dsh plugin --profile "$PROFILE" add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-rc.1
|
|
110
|
+
dsh plugin --profile "$PROFILE" add dsh-agent-team-profile-manager@0.2.2-rc.1
|
|
109
111
|
~~~
|
|
110
112
|
|
|
111
113
|
## GitHub Actions CI and publication
|
|
@@ -119,7 +121,7 @@ Before the first automated release:
|
|
|
119
121
|
|
|
120
122
|
1. Create the GitHub environment **npm** in **wads-dev/dsh-agent-team-profile-manager**, preferably with main-only deployment and required reviewers.
|
|
121
123
|
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.2-
|
|
124
|
+
3. Run **Publish to npm** from main. Version **0.2.2-rc.1** publishes directly to `latest` via OIDC, without `NPM_TOKEN`. The GitHub Release is marked prerelease.
|
|
123
125
|
|
|
124
126
|
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
127
|
|
package/docs/VERIFICATION.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
## Current verification — DSH 0.2.2-
|
|
1
|
+
## Current verification — DSH 0.2.2-rc.1
|
|
2
2
|
|
|
3
|
-
Validated locally with the exact published DSH
|
|
3
|
+
Validated locally with the exact published DSH 0.2.2-rc.1 packages.
|
|
4
4
|
|
|
5
|
-
# Verification — DSH 0.2.2-
|
|
5
|
+
# Verification — DSH 0.2.2-rc.1
|
|
6
6
|
|
|
7
|
-
This verification supersedes the
|
|
7
|
+
This verification supersedes the earlier alpha.2 compatibility report.
|
|
8
8
|
|
|
9
|
-
Verified 2026-
|
|
9
|
+
Verified 2026-11-07 with Node v22.23.3 and matching published rc.1 DSH packages. Cordis 4.1.0, Loader 1.1.0.
|
|
10
10
|
|
|
11
11
|
## Passed
|
|
12
12
|
|
|
13
|
-
- Clean npm ci --ignore-scripts
|
|
14
|
-
- npm run build: Host ESM and matching
|
|
15
|
-
- npm test: 32 passed, zero failed/skipped.
|
|
16
|
-
- npm pack --dry-run:
|
|
17
|
-
- npm ls --depth=0: no invalid or missing direct dependencies; DSH 0.2.2-
|
|
13
|
+
- Clean npm ci --ignore-scripts with the updated lockfile.
|
|
14
|
+
- npm run build: Host ESM and matching rc.1 alias-aware browser bundle.
|
|
15
|
+
- npm test: 32 passed, zero failed/skipped (re-run against rc.1).
|
|
16
|
+
- npm pack --dry-run: release package inspection.
|
|
17
|
+
- npm ls --depth=0: no invalid or missing direct dependencies; DSH 0.2.2-rc.1, Cordis 4.1.0 and Loader 1.1.0.
|
|
18
18
|
- git diff --check.
|
|
19
19
|
|
|
20
20
|
## Coverage
|
|
@@ -25,7 +25,7 @@ Tests cover fresh/fork explicit routes and inheritance; repeated same-session sw
|
|
|
25
25
|
|
|
26
26
|
## Compatibility review
|
|
27
27
|
|
|
28
|
-
The
|
|
28
|
+
The rc.1 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.1 versions (including dsh-scope), and the version guard checks declared DSH dependency pins and lockfile root.
|
|
29
29
|
|
|
30
30
|
### Earlier alpha migration fixes retained
|
|
31
31
|
|
|
@@ -33,6 +33,6 @@ The removed startContinuable method is replaced by startActivation. The router p
|
|
|
33
33
|
|
|
34
34
|
## Limits / deployment still required
|
|
35
35
|
|
|
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
|
|
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 rc.1 release before loading the plugin. The historical inactive-context live incident is not independently reproduced or claimed universally fixed.
|
|
37
37
|
|
|
38
|
-
Browser verification is DOM-based against the built
|
|
38
|
+
Browser verification is DOM-based against the built rc.1 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
|
-
// 0.2.2-
|
|
1
|
+
// 0.2.2-rc.1 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: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
|
|
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;width:min(500px,100vw - 32px);max-height:min(680px, calc(100vh - 32px), var(--dsh-anchored-max-height,100vh));--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-shadow:var(--dsw-elevation-prominent);max-width:var(--dsh-anchored-max-width,none);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");
|
|
@@ -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-rc.1';
|
|
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-rc.1 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.2-
|
|
4
|
+
import { assertCompatibility, installDecorators } from './compatibility/dsh-0.2.2-rc.1.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.2-
|
|
142
|
+
ctx.logger.info('[agent-team-profile-manager] loaded for DSH 0.2.2-rc.1');
|
|
143
143
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agent-team-profile-manager",
|
|
3
|
-
"version": "0.2.2-
|
|
3
|
+
"version": "0.2.2-rc.1",
|
|
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": "
|
|
7
|
+
"tag": "latest"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "node scripts/build.mjs",
|
|
34
|
+
"check:versions": "node scripts/check-versions.mjs",
|
|
34
35
|
"test": "node --test tests/*.test.mjs",
|
|
35
36
|
"prepack": "npm run build && npm test"
|
|
36
37
|
},
|
|
@@ -38,17 +39,17 @@
|
|
|
38
39
|
"node": ">=22.23.0"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@deepseek-ai/cordis": "~4.0
|
|
42
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
43
|
-
"@deepseek-ai/dsh-experimental-agent-team": "0.2.2-
|
|
44
|
-
"@deepseek-ai/dsh-experimental-tool-agent-team": "0.2.2-
|
|
45
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
46
|
-
"@deepseek-ai/dsh-scope": "0.2.2-
|
|
47
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
48
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-
|
|
49
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-
|
|
50
|
-
"@deepseek-ai/dsh-tool-subagent": "0.2.2-
|
|
51
|
-
"@deepseek-ai/dsh-tools": "0.2.2-
|
|
42
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
43
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
44
|
+
"@deepseek-ai/dsh-experimental-agent-team": "0.2.2-rc.1",
|
|
45
|
+
"@deepseek-ai/dsh-experimental-tool-agent-team": "0.2.2-rc.1",
|
|
46
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
47
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.1",
|
|
52
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"zod": "^4.4.3"
|
|
@@ -70,18 +71,18 @@
|
|
|
70
71
|
},
|
|
71
72
|
"license": "MIT",
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@deepseek-ai/cordis": "~4.0
|
|
74
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0
|
|
75
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-
|
|
76
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-
|
|
78
|
-
"@deepseek-ai/dsh-experimental-client-ui-agent-team": "0.2.2-
|
|
79
|
-
"@deepseek-ai/dsh-fs-local": "0.2.2-
|
|
80
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-
|
|
81
|
-
"@deepseek-ai/dsh-session-query": "0.2.2-
|
|
82
|
-
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.2-
|
|
83
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-
|
|
84
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-
|
|
74
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
75
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.1.0",
|
|
76
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-experimental-client-ui-agent-team": "0.2.2-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.2-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
|
|
85
86
|
"jsdom": "^26.1.0",
|
|
86
87
|
"react": "^18.3.1",
|
|
87
88
|
"react-dom": "^18.3.1"
|