@yankeguo/dsh-tool-devlead 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,15 +1,16 @@
1
1
  # @yankeguo/dsh-tool-devlead
2
2
 
3
- The twelve model-facing `devlead_*` tools and the conditional DevLead system-prompt section.
3
+ The thirteen model-facing `devlead_*` tools and the conditional DevLead system-prompt section.
4
4
 
5
5
  The tools are registered with `when: ({ agent }) => ctx.devLead.isEnabled(agent)`, so an ordinary
6
6
  Session never sees them. They become visible only after a human enables DevLead mode with
7
- `/devlead on` or the UI switch.
7
+ `/devlead on` or the composer-toolbar toggle (shown in both states).
8
8
 
9
9
  ## Tools
10
10
 
11
11
  - `devlead_list_workspaces`
12
12
  - `devlead_list_models` (compact Host model catalog for dispatch pinning)
13
+ - `devlead_list_agent_presets` (Host Agent preset roster: id, name/description, default marker, broken reason)
13
14
  - `devlead_use_workspace`
14
15
  - `devlead_list_sessions`
15
16
  - `devlead_create_session` (optional `isolation: "none" | "worktree"`; creation-time
@@ -22,8 +23,8 @@ Session never sees them. They become visible only after a human enables DevLead
22
23
  - `devlead_archive_session` (DSH archive; `stop_running` asks the Host to stop running work)
23
24
  - `devlead_unarchive_session` (restore to the recorded Workspace position)
24
25
 
25
- Every tool except `devlead_list_workspaces` requires a live calling Agent (`exec.agent`) and an
26
- enabled DevLead mode. Since 0.2.0 `devlead_use_workspace` forwards the live Agent to the core
26
+ Every tool requires an enabled DevLead mode; every tool except `devlead_list_workspaces` also
27
+ requires a live calling Agent (`exec.agent`). Since 0.2.0 `devlead_use_workspace` forwards the live Agent to the core
27
28
  `useWorkspace(agent, { path, title?, create? }, signal)`; `create` defaults to `false` (a missing
28
29
  directory is `DEVLEAD_DIRECTORY_MISSING`), and `create: true` is only for a human-explicit request
29
30
  to create the directory. Domain failures are translated to `HarnessError` with a stable
@@ -31,10 +32,19 @@ to create the directory. Domain failures are translated to `HarnessError` with a
31
32
  schemas.
32
33
 
33
34
  `devlead_list_models` reports the compact Host model catalog (default selection, providers,
34
- models, reasoning efforts, and provider failures). `devlead_create_session` inherits the Host
35
- default model unless the human explicitly asked for a route or the brief needs cost/capability
36
- routing or reproducibility; when pinning, call `devlead_list_models` first and pass `provider` +
37
- `model` (optional `reasoning_effort`). Agent Teams is the lead's judgment for complex, multi-step,
35
+ models, reasoning efforts, and provider failures). `devlead_list_agent_presets` reports the
36
+ Host's actual preset roster: the ids accepted by `devlead_create_session`'s `preset`, published
37
+ name/description, the `default` marker (the effective default: `selectedDefault` when configured,
38
+ otherwise the base default), and a `broken` reason for a preset that cannot compose a Session. A
39
+ Host that composes no roster returns `available: false` with a reason; the tool never invents
40
+ preset ids. The `preset` argument is always a Host-defined id; omitted or blank values fall back
41
+ to the plugin `defaultAgentPreset`, then the Host default/selectedDefault, and an invalid or
42
+ unusable id fails creation with a structured error instead of being silently ignored.
43
+
44
+ `devlead_create_session` inherits the Host default model unless the human explicitly asked for a
45
+ route or the brief needs cost/capability routing or reproducibility; when pinning, call
46
+ `devlead_list_models` first and pass `provider` + `model` (optional `reasoning_effort`). Agent
47
+ Teams is the lead's judgment for complex, multi-step,
38
48
  or parallel work (`agent_teams: true`); simple linear work omits it, and an explicit human on/off
39
49
  is obeyed. The model is validated before the Session exists, the selection is recorded on the
40
50
  child Session only (never through the controller's profile-default-writing path), and omitted
@@ -72,14 +82,19 @@ supported platform.
72
82
 
73
83
  ## 中文
74
84
 
75
- `@yankeguo/dsh-tool-devlead` 提供 12 个模型工具 `devlead_*` 与条件 system prompt,只在 DevLead
76
- 模式开启时可见。除 `devlead_list_workspaces` 外都需要 live 调用者;0.2.0 起
85
+ `@yankeguo/dsh-tool-devlead` 提供 13 个模型工具 `devlead_*` 与条件 system prompt,只在 DevLead
86
+ 模式开启时可见。所有工具都要求 DevLead 模式开启;除 `devlead_list_workspaces` 外还需要 live
87
+ 调用者(`exec.agent`)。0.2.0 起
77
88
  `devlead_use_workspace` 把 live Agent 转发给 core 的 `useWorkspace(agent, request, signal)`,
78
89
  `create` 默认 `false`(缺目录报 `DEVLEAD_DIRECTORY_MISSING`,只有人类明确要求建目录时才传
79
90
  `true`)。`devlead_create_session` 还支持创建时指定 `provider`+`model`(可选
80
91
  `reasoning_effort`)与 `agent_teams`:模型在创建前按 Host 当前 provider 目录校验,只记录在该
81
92
  子 Session 上(不走会改写 profile 默认模型的 controller 路径),省略时不动 Host 默认,且均为
82
- 仅创建时生效。领域错误翻译为稳定的 `DEVLEAD_*` code。关闭类工具(remove / archive / unarchive)
93
+ 仅创建时生效。`devlead_list_agent_presets` 返回 Host 的真实 preset roster(id、名称/描述、
94
+ `default` 有效默认标记、`broken` 原因;Host 未组合 roster 时返回 `available: false` 与原因,
95
+ 不虚构 id)。`preset` 是 Host 定义的 id;省略/空白先回退插件 `defaultAgentPreset`,再回退
96
+ Host 默认/selectedDefault;无效 id 在创建阶段返回结构化错误,不会被静默忽略。领域错误翻译为
97
+ 稳定的 `DEVLEAD_*` code。关闭类工具(remove / archive / unarchive)
83
98
  都不是破坏性操作,且采用判断式自主:合理收尾时可自行关闭自己创建/派发且已完成的 Session、
84
99
  明显陈旧/重复/空置或由自己创建的 Workspace 注册;但不得关闭人类正在使用/对话的 Session 或
85
100
  Workspace、不得用关闭掩盖失败,并且每次自主关闭都要汇报原因与影响面。remove 只注销 Workspace、
package/lib/index.js CHANGED
@@ -114,8 +114,8 @@ import { HarnessError as HarnessError2 } from "@deepseek-ai/dsh-llm";
114
114
  import { isDevLeadError } from "@yankeguo/dsh-devlead";
115
115
  function translateToolError(error) {
116
116
  if (error instanceof HarnessError2) return error;
117
- if (error instanceof DevLeadToolInputError) return new HarnessError2(error.message, error.code);
118
- if (isDevLeadError(error)) return new HarnessError2(error.message, error.code);
117
+ if (error instanceof DevLeadToolInputError) return new HarnessError2(error.message, error.code, { cause: error });
118
+ if (isDevLeadError(error)) return new HarnessError2(error.message, error.code, { cause: error });
119
119
  return error;
120
120
  }
121
121
  async function runTool(body) {
@@ -138,7 +138,7 @@ Role boundary:
138
138
 
139
139
  Workflow:
140
140
  - List known Workspaces with devlead_list_workspaces. Register a repository directory with devlead_use_workspace using an absolute path; registering an already-registered path is idempotent. A missing directory is never created by default: set create true only when the human explicitly asked to create that directory.
141
- - Dispatch work with devlead_create_session: pass workspace (the owning Workspace's id or registered path; omit it only when the work truly belongs to this session's directory, in which case the new Session lives there) and a self-contained prompt that states the background, the target result, the open questions the Session must confirm or refine, the deliverables, how to verify them, and what not to touch, plus an optional title/preset. Models inherit the Host default: pass provider/model/reasoning_effort only when the human explicitly asked, or the brief needs cost/capability routing or reproducibility; call devlead_list_models first. Agent Teams is your judgment: complex, multi-step, or parallel work that benefits from subagents may set agent_teams true; simple linear work omits it; obey an explicit human on/off; report the choice and why. Team availability depends on the Host composition and DSH version (0.2.2-rc.2+); if unavailable, continue without Team instead of retrying or blocking. Both apply at creation only and never change the profile default. A brief with open questions is expected: the Session owns the deeper investigation, not only the edits. The new Session is watched by default and runs independently; it does not see this conversation, so restate every fact it needs.
141
+ - Dispatch work with devlead_create_session: pass workspace (the owning Workspace's id or registered path; omit it only when the work truly belongs to this session's directory, in which case the new Session lives there) and a self-contained prompt that states the background, the target result, the open questions the Session must confirm or refine, the deliverables, how to verify them, and what not to touch, plus an optional title/preset. Preset is a Host-defined Agent preset id: call devlead_list_agent_presets before setting it; omit or leave it blank to inherit the plugin defaultAgentPreset, then the Host default/selectedDefault. An unknown or unusable preset fails creation with a structured error, so never guess an id. Models inherit the Host default: pass provider/model/reasoning_effort only when the human explicitly asked, or the brief needs cost/capability routing or reproducibility; call devlead_list_models first. Agent Teams is your judgment: complex, multi-step, or parallel work that benefits from subagents may set agent_teams true; simple linear work omits it; obey an explicit human on/off; report the choice and why. Team availability depends on the Host composition and DSH version (0.2.2-rc.2+); if unavailable, continue without Team instead of retrying or blocking. Both apply at creation only and never change the profile default. A brief with open questions is expected: the Session owns the deeper investigation, not only the edits. The new Session is watched by default and runs independently; it does not see this conversation, so restate every fact it needs.
142
142
  - Prefer an existing Session: if the owning Workspace already has a live Session working on the request, continue that Session with devlead_prompt_session instead of opening a duplicate.
143
143
  - Inspect progress with devlead_list_sessions and devlead_get_session. The listing carries live, running, watched, archived, and lastTurn; the single-Session detail adds lastTransition, lastError, and lastAssistant when the Host can read the log. Read those fields rather than guessing.
144
144
  - Continue a Session with devlead_prompt_session: the prompt is admitted as a user message attributed to you, and a cold Session is resumed first. Archived Sessions are rejected.
@@ -152,7 +152,7 @@ Waiting after dispatch: dispatch is asynchronous, so never wait for a child Sess
152
152
 
153
153
  Reporting: before you finish a turn, tell the human which Workspaces and Sessions you created, changed, or closed (and why you closed them), what each child was asked to do, how its latest turn ended (completed, failed, blocked, cancelled), whether you did any implementation work directly in this session and under what human authorization, and anything that needs their decision. Review each delivery by reading the actual diff or commits and the verification output, not only the child's summary; if a further acceptance run is needed, ask the Session to run it and report the output. Never claim a child finished or succeeded without reading it first. Report tool error codes and what you attempted instead of hiding failures.
154
154
 
155
- Only the human can turn DevLead mode on or off (with /devlead on or /devlead off, or the status strip switch); no tool can enable it, so never try to.`;
155
+ Only the human can turn DevLead mode on or off (with /devlead on or /devlead off, or the composer-toolbar toggle shown in both states); no tool can enable it, so never try to.`;
156
156
  var WORKTREE_ISOLATION_POLICY = `Checkout isolation: this Host composes the experimental Git worktree service, so devlead_create_session accepts isolation:'worktree' as a best-effort request. Use it for a write-type Session that may run concurrently with another live Session in the same checkout: two write Sessions sharing one working tree interleave their hunks and corrupt each other's work. The isolated Session keeps its Workspace membership and header cwd, while its files live on a new branch checked out at <checkout root>/.agents/worktrees/<name>. Uncommitted files in the checkout are NOT copied into the worktree, so commit or stash them, or verify the checkout is clean, before dispatching. You own the merge: review the branch diff and merge or cherry-pick that branch (or dispatch the merge to a Session) before reporting the work as delivered. If the result reports isolation status unavailable or failed, the Session stayed in the shared checkout, so serialize write Sessions instead.`;
157
157
  var SERIAL_WRITES_POLICY = `Checkout isolation: no Git worktree isolation is available in this Host composition, so never let two write Sessions run in the same checkout concurrently: their edits would interleave in one shared working tree. Dispatch write Sessions serially, one at a time per checkout, and wait for each to settle before starting the next.`;
158
158
  function devLeadPolicy(options) {
@@ -179,6 +179,9 @@ function presentListWorkspacesCall() {
179
179
  function presentListModelsCall() {
180
180
  return present("List DevLead models", "read");
181
181
  }
182
+ function presentListAgentPresetsCall() {
183
+ return present("List DevLead Agent presets", "read");
184
+ }
182
185
  function presentUseWorkspaceCall(args) {
183
186
  return present("Register DevLead workspace", "other", firstText(args.path));
184
187
  }
@@ -543,7 +546,45 @@ var MODEL_CATALOG_SCHEMA = {
543
546
  }
544
547
  }
545
548
  };
549
+ var AGENT_PRESET_VIEW_SCHEMA = {
550
+ type: "object",
551
+ additionalProperties: false,
552
+ properties: {
553
+ id: {
554
+ type: "string",
555
+ required: true,
556
+ description: "Host-defined preset id accepted by devlead_create_session preset."
557
+ },
558
+ name: { type: "string", description: "Display name the preset publishes." },
559
+ description: { type: "string", description: "One-sentence purpose the preset publishes." },
560
+ default: {
561
+ type: "boolean",
562
+ required: true,
563
+ description: "Whether Sessions naming no preset use this one (selected default when configured)."
564
+ },
565
+ broken: { type: "string", description: "Why this preset cannot compose a Session; absent when usable." }
566
+ }
567
+ };
568
+ var AGENT_PRESET_CATALOG_SCHEMA = {
569
+ type: "object",
570
+ additionalProperties: false,
571
+ properties: {
572
+ available: {
573
+ type: "boolean",
574
+ required: true,
575
+ description: "Whether the Host composes an Agent preset roster service."
576
+ },
577
+ presets: {
578
+ type: "array",
579
+ required: true,
580
+ items: AGENT_PRESET_VIEW_SCHEMA,
581
+ description: "Declared presets in Host roster order; empty when unavailable or empty."
582
+ },
583
+ reason: { type: "string", description: "Why the roster is unavailable; present only with available false." }
584
+ }
585
+ };
546
586
  var LIST_MODELS_OUTPUT = jsonOutput(MODEL_CATALOG_SCHEMA);
587
+ var LIST_AGENT_PRESETS_OUTPUT = jsonOutput(AGENT_PRESET_CATALOG_SCHEMA);
547
588
  var REMOVE_WORKSPACE_OUTPUT = jsonOutput({
548
589
  type: "object",
549
590
  additionalProperties: false,
@@ -613,6 +654,19 @@ function watchMutationValue(mutation) {
613
654
  sessions: [...mutation.sessions]
614
655
  };
615
656
  }
657
+ function agentPresetCatalogValue(catalog) {
658
+ return {
659
+ available: catalog.available,
660
+ presets: catalog.presets.map((preset) => ({
661
+ id: preset.id,
662
+ default: preset.default,
663
+ ...preset.name === void 0 ? {} : { name: preset.name },
664
+ ...preset.description === void 0 ? {} : { description: preset.description },
665
+ ...preset.broken === void 0 ? {} : { broken: preset.broken }
666
+ })),
667
+ ...catalog.reason === void 0 ? {} : { reason: catalog.reason }
668
+ };
669
+ }
616
670
  function modelCatalogValue(catalog) {
617
671
  return {
618
672
  default: modelSelectionValue(catalog.default),
@@ -664,10 +718,11 @@ var inject = ["devLead", "tools", "systemPrompt"];
664
718
  var DEFAULT_NOTIFICATIONS_LIMIT = 20;
665
719
  var SESSION_ARGUMENT_DESCRIPTION = 'Session id: the full id, a unique id prefix, or the uuid prefix without the "session-" prefix (for example e59ab350); it resolves only when unique.';
666
720
  var LIST_MODELS_DESCRIPTION = "List the model routes this Host can dispatch to: the Host default selection, routable providers, each provider's models with their reasoning efforts and default effort, and any provider whose catalog could not be loaded. Call this before pinning provider/model/reasoning_effort on devlead_create_session. Most dispatches should omit the model parameters and inherit the Host default; only pin a model when the human explicitly asked, or the brief needs cost/capability routing or reproducibility.";
721
+ var LIST_AGENT_PRESETS_DESCRIPTION = "List the Agent preset roster this Host currently defines for Session creation. Each entry carries the id accepted by devlead_create_session preset, its published name/description when available, a default marker (the Host effective default: selectedDefault when configured, otherwise its base default), and a broken reason when the preset cannot compose a Session. Call this before setting preset and never assume a fixed list; standard and ptc are examples on some Hosts, not a complete vocabulary. An unknown or unusable preset fails creation with a structured error rather than being silently ignored. If the Host composes no roster, the result reports available false with a reason; omitting preset then falls back to the plugin defaultAgentPreset, then the Host default.";
667
722
  var LIST_WORKSPACES_DESCRIPTION = "List every registered DSH Workspace: its title, canonical directory path, live directory status, and the Sessions the registry accounts to it. Use it first to decide which Workspace owns a request, before registering a new Workspace or dispatching a Session.";
668
723
  var USE_WORKSPACE_DESCRIPTION = "Register a repository directory as a DSH Workspace so Sessions can be created in it. The path must be absolute, and an already-registered path is reused with its existing title. A missing directory is an error by default: set create to true only when the human explicitly asked to create that directory.";
669
724
  var LIST_SESSIONS_DESCRIPTION = "List DSH Sessions this DevLead Session can address: whether each is live, running, watched, or archived, plus latest-turn facts when the Host knows them. Watched and running rows come first. Optionally restrict to one Workspace or to the watched set; use devlead_get_session for a log detail with the latest turn outcome and assistant excerpt. Inspect it after a wake-up or when the human explicitly asks, not as a polling loop while waiting for a dispatched Session.";
670
- var CREATE_SESSION_DESCRIPTION = "Create an ordinary DSH Session in a Workspace and optionally start it with a prompt. The child inherits the Host default model unless you explicitly pin provider/model (plus optional reasoning_effort); pin only when the human explicitly asked, or the brief needs cost/capability routing or reproducibility, and call devlead_list_models first so provider/model/effort are real. Agent Teams is your judgment: complex, multi-step, or parallel work that benefits from subagent collaboration may set agent_teams true; simple linear work should omit it; obey an explicit human on/off. Agent Teams requires DSH 0.2.2-rc.2 or newer with the Agent Teams service composed; when the Host reports it unavailable, continue without Team mode instead of retrying or blocking. Never change the Host/profile default, and do not upgrade or downgrade a model on your own. Both settings are creation-time only; the model is validated before the Session is created. The Session is a real Session the human can open and take over, not a subagent. It runs independently, so after this call end the turn instead of waiting: never sleep, never poll devlead_get_session, devlead_list_sessions, or devlead_notifications, and never call wait_agent to wait for it. A watched Session is the default, and its settled turn starts a new turn of this lead session with the wake-up message. Use it to dispatch the owning Workspace's work to that Session instead of doing the work yourself from this lead session; the brief may carry open questions, because the Session owns the deeper investigation and the implementation.";
725
+ var CREATE_SESSION_DESCRIPTION = "Create an ordinary DSH Session in a Workspace and optionally start it with a prompt. The child inherits the Host default model unless you explicitly pin provider/model (plus optional reasoning_effort); pin only when the human explicitly asked, or the brief needs cost/capability routing or reproducibility, and call devlead_list_models first so provider/model/effort are real. Agent Teams is your judgment: complex, multi-step, or parallel work that benefits from subagent collaboration may set agent_teams true; simple linear work should omit it; obey an explicit human on/off. Agent Teams requires DSH 0.2.2-rc.2 or newer with the Agent Teams service composed; when the Host reports it unavailable, continue without Team mode instead of retrying or blocking. Never change the Host/profile default, and do not upgrade or downgrade a model on your own. Both settings are creation-time only; the model is validated before the Session is created. Use devlead_list_agent_presets before pinning a preset: omitted or blank follows the plugin defaultAgentPreset, then the Host default/selectedDefault, and an unknown or unusable preset fails creation with a structured error rather than being silently ignored. The Session is a real Session the human can open and take over, not a subagent. It runs independently, so after this call end the turn instead of waiting: never sleep, never poll devlead_get_session, devlead_list_sessions, or devlead_notifications, and never call wait_agent to wait for it. A watched Session is the default, and its settled turn starts a new turn of this lead session with the wake-up message. Use it to dispatch the owning Workspace's work to that Session instead of doing the work yourself from this lead session; the brief may carry open questions, because the Session owns the deeper investigation and the implementation.";
671
726
  var GET_SESSION_DESCRIPTION = 'Read one Session in detail: whether it is live and running, whether it is archived, and, when the Host can read the Session log, the latest turn number and outcome plus the latest error and assistant excerpts. Address it by full id, a unique id prefix, or the uuid prefix without the "session-" prefix. Use it to inspect state after a wake-up or when the human explicitly asks, not to poll while waiting for a dispatched Session.';
672
727
  var PROMPT_SESSION_DESCRIPTION = "Admit a follow-up prompt into an existing Session, resuming a cold Session first. The prompt is attributed to this DevLead Session. Archived Sessions are rejected. The Session is watched by default, so after this call end the turn instead of waiting: its settled turn starts a new turn of this lead session with the wake-up message.";
673
728
  var WATCH_SESSION_DESCRIPTION = "Add one Session to, or remove it from, this DevLead Session's watch set. Only watched Sessions produce wake-up notifications, so unwatch work that no longer needs attention. A Session cannot watch itself.";
@@ -706,6 +761,19 @@ function apply(ctx) {
706
761
  });
707
762
  }
708
763
  }), { when: ({ agent }) => ctx.devLead.isEnabled(agent) });
764
+ ctx.tools.register(defineTool({
765
+ name: "devlead_list_agent_presets",
766
+ description: LIST_AGENT_PRESETS_DESCRIPTION,
767
+ parameters: {},
768
+ output: LIST_AGENT_PRESETS_OUTPUT,
769
+ presentCall: presentListAgentPresetsCall,
770
+ execute(_args, exec) {
771
+ return runTool(async () => {
772
+ const agent = requireAgent(exec.agent, "devlead_list_agent_presets");
773
+ return agentPresetCatalogValue(await ctx.devLead.listAgentPresets(agent, exec.signal));
774
+ });
775
+ }
776
+ }), { when: ({ agent }) => ctx.devLead.isEnabled(agent) });
709
777
  ctx.tools.register(defineTool({
710
778
  name: "devlead_use_workspace",
711
779
  description: USE_WORKSPACE_DESCRIPTION,
@@ -758,7 +826,7 @@ function apply(ctx) {
758
826
  },
759
827
  limit: {
760
828
  type: "integer",
761
- description: "Maximum number of Session rows to return; the Host may return fewer when its listing cap is lower."
829
+ description: "Maximum number of Session rows to return; the Host may return fewer when its listing cap is lower. With watched_only, the whole watch set is returned even when it exceeds this limit, so no watched Session is hidden."
762
830
  }
763
831
  },
764
832
  output: LIST_SESSIONS_OUTPUT,
@@ -803,7 +871,7 @@ function apply(ctx) {
803
871
  },
804
872
  preset: {
805
873
  type: "string",
806
- description: "Optional Agent preset id for the new Session."
874
+ description: "Optional Host-defined Agent preset id for the new Session; call devlead_list_agent_presets to read this Host's roster. Do not assume a fixed list (standard and ptc are examples on some Hosts). Omit or leave blank to inherit the plugin defaultAgentPreset, then the Host default/selectedDefault. An unknown or unusable preset fails creation with a structured error; it is never silently ignored."
807
875
  },
808
876
  isolation: {
809
877
  type: "string",
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "DevLead Tools",
4
- "description": "Model-facing devlead_* tools available only in DevLead mode: list and use Workspaces, create and prompt Sessions, read session status, watch Sessions, and read notifications."
4
+ "description": "Model-facing devlead_* tools available only in DevLead mode: list and use Workspaces, list Host models and Agent presets, create (inherit or pin a model/Agent Teams) and read/prompt/archive/unarchive/watch Sessions, and read notifications."
5
5
  }
6
6
  }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "DevLead 工具",
4
- "description": "仅在 DevLead 模式下可用的 devlead_* 模型工具:列出并使用 Workspace、创建会话并发送提示词、读取会话状态、监督会话以及读取通知。"
4
+ "description": "仅在 DevLead 模式下可用的 devlead_* 模型工具:列出并使用 Workspace,列出 Host 模型与 Agent preset,创建(继承或固定模型/Agent Teams)、读取、续写、归档、恢复与监督会话,并读取通知。"
5
5
  }
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-tool-devlead",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Model-facing DevLead tools: register and list DSH Workspaces, create and steer ordinary Sessions, read session status, watch state changes, and read the lead's notification feed.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,16 +17,16 @@
17
17
  ],
18
18
  "peerDependencies": {
19
19
  "@deepseek-ai/cordis": "~4.1.0",
20
- "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
21
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
22
- "@deepseek-ai/dsh-session": "0.2.2-rc.1",
23
- "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
24
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
20
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.3.0",
21
+ "@deepseek-ai/dsh-llm": ">=0.2.2-rc.1 <0.3.0",
22
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.3.0",
23
+ "@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.1 <0.3.0",
24
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.3.0",
25
25
  "@deepseek-ai/schemastery": "~3.19.0"
26
26
  },
27
27
  "dependencies": {
28
- "@yankeguo/dsh-devlead": "0.2.3",
29
- "@yankeguo/dsh-devlead-protocol": "0.2.3"
28
+ "@yankeguo/dsh-devlead": "0.2.4",
29
+ "@yankeguo/dsh-devlead-protocol": "0.2.4"
30
30
  },
31
31
  "engines": {
32
32
  "dsh": ">=0.2.2-rc.1 <0.3.0"