@deepseek-ai/dsh-tool-jobs 0.2.1-rc.3 → 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/README.i18n.yaml CHANGED
@@ -9,8 +9,8 @@
9
9
  en: 256894de7b318e7e
10
10
  zh: a6f3cb0060fe2c4d
11
11
  /deepseek-ai-dsh-tool-jobs/summary:
12
- en: b32de88c29a3c2e0
13
- zh: 63142a605332b4b7
12
+ en: ad22af3fba41f06a
13
+ zh: a098b203c6a70b76
14
14
  /deepseek-ai-dsh-tool-jobs/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
@@ -18,17 +18,17 @@
18
18
  en: 823e94910a15e2e1
19
19
  zh: c23e0b605f32f0bd
20
20
  /deepseek-ai-dsh-tool-jobs/use-this-package/the-three-tools:
21
- en: e9e9cb2ee5cea462
22
- zh: 833beb2bca84bd6a
21
+ en: 6f20f54e60bcf637
22
+ zh: 6279c685d9d0bb16
23
23
  /deepseek-ai-dsh-tool-jobs/use-this-package/completion-notices:
24
- en: f69e3f96353234c3
25
- zh: 6caa74174a2d79b1
24
+ en: 99577924f3d65112
25
+ zh: 521dac5540f9c1b7
26
26
  /deepseek-ai-dsh-tool-jobs/use-this-package/minimal-configuration:
27
- en: fc08838f1843b8c7
28
- zh: e5d3c11216967aca
27
+ en: da2fb742af042b52
28
+ zh: 4afa3918b44b00b9
29
29
  /deepseek-ai-dsh-tool-jobs/use-this-package/what-can-go-wrong:
30
- en: a09c5c8225dec06c
31
- zh: 3e9fcab42613775e
30
+ en: 177f79c7c446a5e1
31
+ zh: 3e9c1852f8046763
32
32
  /deepseek-ai-dsh-tool-jobs/understand-the-implementation:
33
33
  en: 32a36a3fe388e2c1
34
34
  zh: f4bd2866fff6fa8d
@@ -36,14 +36,14 @@
36
36
  en: e1d89b73fdcc5b24
37
37
  zh: 38dd176ae111561f
38
38
  /deepseek-ai-dsh-tool-jobs/understand-the-implementation/source-map:
39
- en: 6f006ff2d901bc92
40
- zh: 779d18ba7bec4202
39
+ en: e6278ea246410c01
40
+ zh: d202575c3e53852e
41
41
  /deepseek-ai-dsh-tool-jobs/understand-the-implementation/output-capping:
42
42
  en: ca18e4bdfb12a1e2
43
43
  zh: 6592697c561c6e6d
44
44
  /deepseek-ai-dsh-tool-jobs/understand-the-implementation/notice-delivery-lanes:
45
- en: 2540b7abbb3c9710
46
- zh: 4fb355bceab2f865
45
+ en: fa233a922bf44051
46
+ zh: 1fa567b33d2b0513
47
47
  /deepseek-ai-dsh-tool-jobs/further-exploration:
48
48
  en: 11250fc631d55d99
49
49
  zh: 7885ce173bd1cd5f
@@ -81,17 +81,17 @@
81
81
  en: 8160e01d6bfc5e0c
82
82
  zh: 570dc95be7f13260
83
83
  /deepseek-ai-dsh-tool-jobs/model-experience/results-and-notices/what-the-model-sees:
84
- en: 960436b3f61c7f96
85
- zh: 2c956bb4fee134c2
84
+ en: fff929f198d39939
85
+ zh: d3a738483c542819
86
86
  /deepseek-ai-dsh-tool-jobs/model-experience/results-and-notices/token-effect:
87
- en: 16efd9cb948ca4bf
88
- zh: 563cc4c78dc63b4d
87
+ en: 40aeb5a93409f4a4
88
+ zh: 6f894bb247ffff14
89
89
  /deepseek-ai-dsh-tool-jobs/model-experience/results-and-notices/kv-cache-effect:
90
90
  en: 2fbf2175168e8244
91
91
  zh: f681f89596f500f5
92
92
  /deepseek-ai-dsh-tool-jobs/known-limitations-and-deferred-work:
93
- en: 1971e3b84c568c3c
94
- zh: 3e357265178a8b00
93
+ en: eec6635d3d95b2ec
94
+ zh: f61f11ea8d405509
95
95
  /deepseek-ai-dsh-tool-jobs/known-limitations-and-deferred-work/dev-note:
96
96
  en: e67f633dc6fe7773
97
97
  zh: 3bb0c20c93f16f98
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Use `dsh-tool-jobs` to inspect and control background commands and PTY work through `job_output`, `job_list`, and `job_kill`. Reads can wait within a configured timeout, list results identify each job's kind and status, and cancellation settles only after the work stops. When owned work finishes, the agent receives an in-session notice: busy agents receive it in their next step, while idle agents are woken by a follow-up turn. Configuration controls wait limits, completion delivery, and an optional cap on consecutive wakeups. Stream output is consumed by one reader, and pending notices do not survive owner disposal.
12
+ Use `dsh-tool-jobs` to inspect and control background commands and PTY work through `job_output`, `job_list`, and `job_kill`. Reads can wait within a configured timeout, and a wait yields early to a user steer; list results identify each job's kind and status, and cancellation settles after the work stops. When owned work finishes, the agent receives an in-session notice carrying short output: busy agents get it next step, and idle agents are woken by a follow-up turn. Configuration controls wait limits, completion delivery, and an optional consecutive-wakeup cap. Stream output has one reader, and pending notices do not survive owner disposal.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -29,7 +29,7 @@ Load this plugin in any composition where the agent should start, observe, and s
29
29
 
30
30
  ### The three tools
31
31
 
32
- - `job_output(job_id, wait?, timeout_ms?)` — Read a job's output. Stream jobs return only the output since the previous read; final-output jobs return their result after settlement. Every response ends with `[status: ...]`. Reads are non-blocking unless `wait: true`, which waits up to the configured cap and leaves a still-running job alive on timeout. A read renders stdout first and stderr in one `[stderr]` section, notes output that left memory before the read, and carries a job's result (a subagent's answer) exactly once, on the first read after settlement.
32
+ - `job_output(job_id, wait?, timeout_ms?)` — Read a job's output. Stream jobs return only the output since the previous read; final-output jobs return their result after settlement. Every response ends with `[status: ...]`. Reads are non-blocking unless `wait: true`. A wait ends on settlement, on the configured timeout, or when a user-authored message is queued for the current step — a chat steer; input queued for a later turn does not end it, and neither do plugin notices or injected context, which stay queued for the next step. A steer and the timeout both return the job's current state, leave it running, and never cancel its producer, so a later read still collects the completion; an interrupted wait names its cause in the status line (`[status: running, user steered]`). A read renders stdout first and stderr in one `[stderr]` section, notes output that left memory before the read, and carries a job's result (a subagent's answer) exactly once, on the first read after settlement.
33
33
  - `job_list()` — List your background jobs with their ids, kinds, and statuses, one per line: `<id> [<kind>] <status> — <label>`.
34
34
  - `job_kill(job_id, reason?)` — Request cancellation of a running job immediately; the job settles as `killed` once its work actually stops. A terminal job returns its current snapshot, and the optional reason is recorded and forwarded to the job.
35
35
 
@@ -37,7 +37,7 @@ The three tools return `{ text, job }`, `PublicJobSnapshot[]`, and `{ outcome: '
37
37
 
38
38
  ### Completion notices
39
39
 
40
- When a job finishes, the owning agent receives `background job <id> (<kind>: <label>) finished [status: ...]. Read its output with job_output.` as an in-session message. A busy agent has the notice injected into its next step — the turn cannot close while the inbox holds it, so several jobs settling together cost one step rather than one turn each. An idle agent is instead woken with a follow-up turn, because an unclaimed notice is a completion the model never learns about. Completions the model already collected get no notice: the registry reports a settlement that released a live `wait` as `awaited` — whether a `job_output` wait or a shell tool waiting on its own foreground command — and the plugin remembers the kills the model requested through `job_kill`; a settlement caused by owner or service teardown is skipped because nobody is left to read it.
40
+ When a job finishes, the owning agent receives `background job <id> (<kind>: <label>) finished [status: ...]. Output:` followed by the output it has not read and the job's final result, or `. No new output.` when there is none. A notice is inlined only when the complete text fits `inlineOutputBytes` (2048 bytes by default) and the producer's `outputLimitBytes`; otherwise it ends `. Read its output with job_output.` instead, so large output and large final results reach the model as a `job_output` result, which the tool pipeline's spill policy bounds. The label is its first line, bounded to 120 characters. A `job_output` call that collects the job while its notice is still pending withdraws the notice, and a notice that never reaches the model leaves its output for `job_output`. A busy agent has the notice injected into its next step — the turn cannot close while the inbox holds it, so several jobs settling together cost one step rather than one turn each. An idle agent is instead woken with a follow-up turn, because an unclaimed notice is a completion the model never learns about. Completions the model already collected get no notice: the registry reports a settlement that released a live `wait` as `awaited` — whether a `job_output` wait or a shell tool waiting on its own foreground command — and the plugin remembers the kills the model requested through `job_kill`; a settlement caused by owner or service teardown is skipped because nobody is left to read it. A settlement that lands after a user steer ended the wait but before that call's read carries the terminal state is delivered by that read, so the plugin withholds the notice instead of reporting the completion twice.
41
41
 
42
42
  Waking is unbounded by default: an unattended agent that chains background commands and one-shot subagents is woken for every completion. `maxConsecutiveWakes` caps that: each owner may be woken that many times before further notices degrade to injection, and claiming any user-authored message restores the budget. The cap bounds the self-exciting chain — a woken turn may start the background job whose completion wakes it again — but a notice past it waits silently until the next user input, so a session that relies on wakes to finish its work stalls there. `completionDelivery: quiet` keeps even idle owners on the injection lane, which deterministic transcripts need.
43
43
 
@@ -55,12 +55,13 @@ Loading the plugin with no config is the common path; a `waitTimeoutMs` above `m
55
55
  | `maxWaitTimeoutMs` | `600,000` | Cap for model-supplied waits; larger values clamp down to it |
56
56
  | `completionDelivery` | `wakeup` | `wakeup` opens a turn on an idle owner; `quiet` leaves the notice pending |
57
57
  | `maxConsecutiveWakes` | unset | Turns one owner may open by wake before notices degrade to injection; unset means no cap |
58
+ | `inlineOutputBytes` | `2048` | Largest complete notice that carries the job's output and final result inline; `0` never inlines |
58
59
 
59
60
  The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-aidsh-tool-jobs) is the exhaustive source for every accepted field and its JSDoc.
60
61
 
61
62
  ### What can go wrong
62
63
 
63
- An agent whose composition loads no `tool-jobs` cannot start background work: this plugin's controller is what arms producers' `ctx.jobs.start()`. A model-supplied wait longer than `maxWaitTimeoutMs` is clamped down to the cap, and a timed-out wait returns `[status: running]` and leaves the job alive rather than failing. A completion notice pending on an idle owner does not survive that owner's disposal.
64
+ An agent whose composition loads no `tool-jobs` cannot start background work: this plugin's controller is what arms producers' `ctx.jobs.start()`. A model-supplied wait longer than `maxWaitTimeoutMs` is clamped down to the cap. A wait that returns `[status: running]` has either timed out or yielded to input queued for the current step; both leave the job alive rather than failing, and neither is a terminal outcome. A completion notice pending on an idle owner does not survive that owner's disposal.
64
65
 
65
66
  -----
66
67
 
@@ -82,7 +83,7 @@ This section explains the design decisions behind the tools and points at the co
82
83
 
83
84
  | File | Role |
84
85
  |---|---|
85
- | [`src/index.ts`](src/index.ts) | Plugin entry: tool registrations, the settlement subscription and model-kill set, prompt section, output capping |
86
+ | [`src/index.ts`](src/index.ts) | Plugin entry: tool registrations, the settlement subscription, model-kill set, and held settlement reads, prompt section, output capping |
86
87
  | [`src/render.ts`](src/render.ts) | Model-facing rendering: the public projection, status lines, and the consuming delta (stdout, `[stderr]` section, dropped-output notice) |
87
88
 
88
89
  ### Output capping
@@ -91,7 +92,9 @@ This section explains the design decisions behind the tools and points at the co
91
92
 
92
93
  ### Notice delivery lanes
93
94
 
94
- The settlement subscription (`{ owners: 'scope' }`) skips settlements the registry reports as `awaited`, jobs the model killed through `job_kill`, unowned jobs, and teardown settlements, then resolves the agent registered for the owner session. A `wakeup` delivery opens a turn on an idle owner; with `maxConsecutiveWakes` set, only while the budget lasts, tracked per exact `Agent` in a `WeakMap`, and claiming a user-authored message (`agent/inbox/claimed`) resets that owner's budget. A busy owner — or any notice past a configured budget, or `quiet` delivery — is injected into the next-step inbox instead. The registry counts only a wait still owed the projection at settlement, so a wait that timed out or was aborted leaves a later settlement to notify as usual; a removal drops the job from the model-kill set, which only ever holds live jobs the model killed.
95
+ The settlement subscription (`{ owners: 'scope' }`) skips settlements the registry reports as `awaited`, jobs the model killed through `job_kill`, unowned jobs, and teardown settlements, then resolves the agent registered for the owner session. A `wakeup` delivery opens a turn on an idle owner; with `maxConsecutiveWakes` set, only while the budget lasts, tracked per exact `Agent` in a `WeakMap`, and claiming a user-authored message (`agent/inbox/claimed`) resets that owner's budget. A busy owner — or any notice past a configured budget, or `quiet` delivery — is injected into the next-step inbox instead. The registry counts only a wait still owed the projection at settlement, so a wait that timed out or was aborted leaves a later settlement to notify as usual; a removal drops the job from the model-kill set, which only ever holds live jobs the model killed. A wait this plugin ended on next-step input holds a claim from that interruption until its own read commits: a settlement landing inside that window reaches the model through the read's terminal state and result, so the notice is withheld, while a settlement after a read that reported a running job notifies as usual. The tool releases the wait by aborting its own controller — the registry keeps its abort-as-cancellation contract — so a cancelled call discards that read and the withheld notice is delivered when the claim releases.
96
+
97
+ A job whose whole output stream (`JobView.output.total`) exceeds `inlineOutputBytes` cannot fit, so its read stays in the registry. Otherwise the notice takes the consuming read at settlement. An inline notice holds that read until it is logged as a `user/message` (`session/event`); a notice claimed by a step that is then rejected or cancelled is never logged, so `job_output` returns its held read. A notice the read did not fit holds it for `job_output`. `job_output` also removes a pending notice from the inbox of the agent registered for the owner session. A job removal drops the entry. A plugin reload drops every held read, so the model then reads `(no new output)` for that job.
95
98
 
96
99
  </details>
97
100
 
@@ -153,11 +156,11 @@ Prefix-stable while tool definitions and visibility are unchanged. Registration
153
156
 
154
157
  #### What the model sees
155
158
 
156
- Reads return output or `(no new output)` followed by `[status: <status>]` and optional detail. An empty list returns `(no background jobs)`. Kill returns `requested cancellation of job <id>` or the existing terminal status. An owned completion the model has not already collected uses the notice above.
159
+ Reads return output or `(no new output)` followed by `[status: <status>]` and optional detail. An empty list returns `(no background jobs)`. Kill returns `requested cancellation of job <id>` or the existing terminal status. An owned completion the model has not already collected uses the notice above, with the job's unread output when it fits. A `wait: true` read returns `[status: running]` when the wait yielded to a user steer or timed out — a yield names its cause beside the progress line, as `[status: running, user steered]` — and the terminal status when it collected the settlement.
157
160
 
158
161
  #### Token effect
159
162
 
160
- Results and notices remain in parent history until compaction. Stream reads do not repeat consumed output; a producer-supplied `outputLimitBytes` bounds each complete read or notice. Under `wakeup`, a notice reaching an idle owner also buys a model request the user did not ask for, capped per owner only when `maxConsecutiveWakes` is set; a notice reaching a busy owner adds a step to the turn it is already paying for.
163
+ Results and notices remain in parent history until compaction. Stream reads do not repeat consumed output, and an inline notice saves the `job_output` step that would otherwise follow it; a producer-supplied `outputLimitBytes` bounds each complete read or notice. Under `wakeup`, a notice reaching an idle owner also buys a model request the user did not ask for, capped per owner only when `maxConsecutiveWakes` is set; a notice reaching a busy owner adds a step to the turn it is already paying for.
161
164
 
162
165
  #### KV Cache effect
163
166
 
@@ -171,6 +174,7 @@ Append-only; newly visible content follows the reusable request prefix and does
171
174
  These limits define when the tools are a poor fit. They are current package constraints, not a task backlog.
172
175
 
173
176
  - **A settlement inside the driver's retirement window still strands its notice** — between the turn loop's last inbox check and the driver committing its idle phase the owner still reads as busy, so the notice is injected and nothing wakes. Steering has the same hole; closing it belongs to `agent-loop`.
177
+ - **A plugin reload drops output read at settlement** — a notice that took the job's read holds it in plugin memory until it is logged or collected by `job_output`, and the registry has already handed that read out, so a reload in between leaves `job_output` with `(no new output)`.
174
178
  - **A spent wake budget is not restored by time** — with `maxConsecutiveWakes` set, only user-authored input refills it, so an unattended agent whose budget ran out collects its remaining notices on the next turn something else opens, and nothing in the client shows that a notice is waiting.
175
179
  - **A notice pending on an idle owner does not survive that owner's disposal** — the disposal cancel clears the unclaimed inbox, and the log keeps the insert/cancel pair as the record.
176
180
  - **Model reads are single-consumer** — independent observers use the registry's non-consuming `readAt` (the Web client's `job.follow`), not these tools.
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 使用 `dsh-tool-jobs`,可通过 `job_output`、`job_list` 与 `job_kill` 检查和控制后台命令、PTY 工作与 subagent。读取可在配置的超时内等待,列表结果标识各任务的 kind 与状态,而取消只有在工作停止后才结算。归属明确的工作完成时,agent(智能体)会收到会话内通知:繁忙的 agent 在下一步收到通知,空闲的 agent 则由 follow-up 轮次唤醒。配置控制等待上限、完成投递与可选的连续唤醒上限。流输出仅供单一读取方消费,待领通知无法在所有者释放后存活。
12
+ 使用 `dsh-tool-jobs`,可通过 `job_output`、`job_list` 与 `job_kill` 检查和控制后台命令、PTY 工作与 subagent。读取可在配置的超时内等待,而等待会因用户 steer 提前结束;列表结果标识各任务的 kind 与状态,而取消只有在工作停止后才结算。归属明确的工作完成时,agent(智能体)会收到携带简短输出的会话内通知:繁忙的 agent 在下一步收到,空闲的 agent 则由 follow-up 轮次唤醒。配置控制等待上限、完成投递与可选的连续唤醒上限。流输出只有一个读取方,待领通知无法在所有者释放后存活。
13
13
 
14
14
  ## 目录
15
15
 
@@ -29,7 +29,7 @@ kind: "package-reference"
29
29
 
30
30
  ### 三个工具
31
31
 
32
- - `job_output(job_id, wait?, timeout_ms?)`——读取任务输出。流任务只返回自上次读取以来的输出;最终输出任务在结算后返回其结果。每个响应都以 `[status: ...]` 结尾。除非 `wait: true`,否则读取是非阻塞的;`wait: true` 最多等待到配置上限,超时时仍让运行中的任务保持存活。一次读取先渲染 stdout,再把 stderr 放进一段 `[stderr]`,标注读取前已离开内存的输出,并在结算后的第一次读取恰好携带一次任务的结果(subagent 的回答)。
32
+ - `job_output(job_id, wait?, timeout_ms?)`——读取任务输出。流任务只返回自上次读取以来的输出;最终输出任务在结算后返回其结果。每个响应都以 `[status: ...]` 结尾。除非 `wait: true`,否则读取是非阻塞的。等待会在三种情况下结束:结算、到达配置的超时,或当前步骤有用户撰写的消息排队(chat steer);排队到后续轮次的输入不会结束等待,插件通知与注入的上下文也不会结束等待,它们留到下一步投递。steer 与超时都返回任务的当前状态、让任务保持运行,且都不会取消其生产方,因此之后的读取仍能收走完成结果;被打断的等待会在状态行写明原因(`[status: running, user steered]`)。一次读取先渲染 stdout,再把 stderr 放进一段 `[stderr]`,标注读取前已离开内存的输出,并在结算后的第一次读取恰好携带一次任务的结果(subagent 的回答)。
33
33
  - `job_list()`——列出你的后台任务及其 id、kind 与状态,每行一个:`<id> [<kind>] <status> — <label>`。
34
34
  - `job_kill(job_id, reason?)`——立即请求取消运行中的任务;任务在其工作真正停止后以 `killed` 结算。终止任务返回其当前快照,可选的原因会被记录并转发给任务。
35
35
 
@@ -37,7 +37,7 @@ kind: "package-reference"
37
37
 
38
38
  ### 完成通知
39
39
 
40
- 任务完成时,拥有它的 agent 会收到会话内消息 `background job <id> (<kind>: <label>) finished [status: ...]. Read its output with job_output.`。繁忙的 agent 会在下一步收到注入的通知——inbox 尚有内容时轮次无法结束,因此同时结算的多个任务只花掉一步,而不是各占一轮。空闲的 agent 则被一个 follow-up 轮次唤醒,因为无人领取的通知就是模型永远不会知道的完成。模型已经收走的完成不再通知:注册表把释放了存活 `wait` 的结算报告为 `awaited`——无论是 `job_output` 的等待,还是 shell 工具在等待自己的前台命令——插件则记着模型经 `job_kill` 请求的杀停;所有者或服务 teardown 导致的结算会被跳过,因为没有人能读它。
40
+ 任务完成时,拥有它的 agent 会收到 `background job <id> (<kind>: <label>) finished [status: ...]. Output:`,其后是它尚未读取的输出和任务的最终结果;没有输出时则以 `. No new output.` 结尾。只有完整文本同时不超过 `inlineOutputBytes`(默认 2048 字节)和生产方的 `outputLimitBytes` 时,通知才会内联;否则改以 `. Read its output with job_output.` 结尾,因此较大的输出和较大的最终结果会以 `job_output` 结果的形式抵达模型,由工具管线的 spill 策略限制其大小。label 取其首行,上限 120 个字符。在通知仍待领时收走该任务的 `job_output` 调用会撤回该通知;从未抵达模型的通知会把输出留给 `job_output`。繁忙的 agent 会在下一步收到注入的通知——inbox 尚有内容时轮次无法结束,因此同时结算的多个任务只花掉一步,而不是各占一轮。空闲的 agent 则被一个 follow-up 轮次唤醒,因为无人领取的通知就是模型永远不会知道的完成。模型已经收走的完成不再通知:注册表把释放了存活 `wait` 的结算报告为 `awaited`——无论是 `job_output` 的等待,还是 shell 工具在等待自己的前台命令——插件则记着模型经 `job_kill` 请求的杀停;所有者或服务 teardown 导致的结算会被跳过,因为没有人能读它。若结算发生在用户 steer 结束等待之后、该次调用的读取之前,终态由那次读取携带,插件因此不再发出通知,避免把同一个完成报告两次。
41
41
 
42
42
  唤醒默认不设上限:无人值守的 agent 连续串起后台命令与一次性 subagent 时,每次完成都会唤醒它。`maxConsecutiveWakes` 可以封顶:每个所有者最多被唤醒这么多次,此后的通知降级为注入;领取任何用户撰写的消息都会恢复预算。上限用来约束自激链——被唤醒的一轮可能启动某个后台任务,而它的完成又会唤醒同一个所有者——但超出上限的通知会静默等到用户下一次输入,依赖唤醒完成工作的会话会停在那里。`completionDelivery: quiet` 让空闲所有者也在注入通道上,确定性 transcript(文本记录)需要的正是这一点。
43
43
 
@@ -55,12 +55,13 @@ kind: "package-reference"
55
55
  | `maxWaitTimeoutMs` | `600,000` | 模型所给等待时间的上限;更大的值向下收敛到它 |
56
56
  | `completionDelivery` | `wakeup` | `wakeup` 为空闲所有者开启一轮;`quiet` 让通知继续待领 |
57
57
  | `maxConsecutiveWakes` | 未设置 | 一个所有者可由唤醒开启的轮数,超出后通知降级为注入;未设置即不封顶 |
58
+ | `inlineOutputBytes` | `2048` | 内联携带任务输出和最终结果的完整通知的最大长度;`0` 表示从不内联 |
58
59
 
59
60
  生成的[配置目录](../../../docs/config-catalog.zh.md#deepseek-aidsh-tool-jobs)是每个受支持字段及其 JSDoc 的穷尽式真源。
60
61
 
61
62
  ### 可能出什么问题
62
63
 
63
- 组合中未加载 `tool-jobs` 的 agent 无法启动后台工作:本插件的控制器正是生产方 `ctx.jobs.start()` 得以启用所依赖的。模型给出的等待时间超过 `maxWaitTimeoutMs` 时会向下收敛到上限,超时的等待返回 `[status: running]` 并让任务保持存活,而不是失败。待领于空闲所有者的完成通知无法在该所有者释放后存活。
64
+ 组合中未加载 `tool-jobs` 的 agent 无法启动后台工作:本插件的控制器正是生产方 `ctx.jobs.start()` 得以启用所依赖的。模型给出的等待时间超过 `maxWaitTimeoutMs` 时会向下收敛到上限。返回 `[status: running]` 的等待,要么超时,要么让位于当前步骤排队的输入;两者都让任务保持存活而不是失败,也都不是终态。待领于空闲所有者的完成通知无法在该所有者释放后存活。
64
65
 
65
66
  -----
66
67
 
@@ -82,7 +83,7 @@ kind: "package-reference"
82
83
 
83
84
  | 文件 | 职责 |
84
85
  |---|---|
85
- | [`src/index.ts`](src/index.ts) | 插件入口:工具注册、结算订阅与模型杀停集合、提示词区段、输出上限 |
86
+ | [`src/index.ts`](src/index.ts) | 插件入口:工具注册、结算订阅、模型杀停集合与暂存的结算读取、提示词区段、输出上限 |
86
87
  | [`src/render.ts`](src/render.ts) | 面向模型的渲染:公共投影、状态行与消耗式增量(stdout、`[stderr]` 段、丢失输出提示) |
87
88
 
88
89
  ### 输出上限
@@ -91,7 +92,9 @@ kind: "package-reference"
91
92
 
92
93
  ### 通知投递通道
93
94
 
94
- 结算订阅(`{ owners: 'scope' }`)跳过注册表报告为 `awaited` 的结算、模型经 `job_kill` 杀停的任务、无所有者的任务与 teardown 结算,然后解析登记在拥有者会话下的 agent。`wakeup` 投递为空闲所有者开启一轮;设置了 `maxConsecutiveWakes` 时只在预算内开启,按确切 `Agent` 记录在 `WeakMap` 中,领取用户撰写的消息(`agent/inbox/claimed`)会重置该所有者的预算。繁忙的所有者——或超出所配预算的任何通知,以及 `quiet` 投递——改为注入 next-step inbox。注册表只计入结算时仍被欠着投影的等待,因此超时或中止的等待会让之后的结算照常通知;移除会把任务从模型杀停集合里删掉,该集合只保有模型杀停过的存活任务。
95
+ 结算订阅(`{ owners: 'scope' }`)跳过注册表报告为 `awaited` 的结算、模型经 `job_kill` 杀停的任务、无所有者的任务与 teardown 结算,然后解析登记在拥有者会话下的 agent。`wakeup` 投递为空闲所有者开启一轮;设置了 `maxConsecutiveWakes` 时只在预算内开启,按确切 `Agent` 记录在 `WeakMap` 中,领取用户撰写的消息(`agent/inbox/claimed`)会重置该所有者的预算。繁忙的所有者——或超出所配预算的任何通知,以及 `quiet` 投递——改为注入 next-step inbox。注册表只计入结算时仍被欠着投影的等待,因此超时或中止的等待会让之后的结算照常通知;移除会把任务从模型杀停集合里删掉,该集合只保有模型杀停过的存活任务。本插件因 next-step 输入结束的等待,从被打断起持有一次占用,直到它自己的读取提交:落在这个窗口内的结算经该读取的终态与结果到达模型,因此不再发通知;而在读取报告任务仍在运行之后才发生的结算照常通知。工具通过中止自己的 controller 结束等待(注册表保持“中止即取消”的契约),因此被取消的调用会丢弃该次读取,被抑制的通知在占用释放时补发。
96
+
97
+ 完整输出流(`JobView.output.total`)超过 `inlineOutputBytes` 的任务无法放入通知,因此其读取留在注册表中。否则,通知会在结算时取走消费式读取。内联通知暂存该读取,直到它被记录为 `user/message`(`session/event`);被某一步领取、但该步随后被拒绝或取消的通知不会被记录,因此 `job_output` 会返回其暂存的读取。读取放不下的通知会为 `job_output` 暂存该读取。`job_output` 还会将待领通知从为所有者会话注册的 agent 的 inbox 中移除。任务移除会丢弃该条目。插件重新加载会丢弃所有暂存读取,因此模型随后读取该任务时得到 `(no new output)`。
95
98
 
96
99
  </details>
97
100
 
@@ -153,11 +156,11 @@ Track every background job id you start. You are notified in-session when a job
153
156
 
154
157
  #### 模型看到什么
155
158
 
156
- 读取会返回输出或 `(no new output)`,随后是 `[status: <status>]` 和可选 detail。空列表返回 `(no background jobs)`。kill 返回 `requested cancellation of job <id>` 或现有终止状态。模型尚未收走且有所有者归属的完成使用上述通知。
159
+ 读取会返回输出或 `(no new output)`,随后是 `[status: <status>]` 和可选 detail。空列表返回 `(no background jobs)`。kill 返回 `requested cancellation of job <id>` 或现有终止状态。模型尚未收走且有所有者归属的完成使用上述通知,并在容纳得下时附带任务的未读输出。`wait: true` 的读取在等待让位于用户 steer 或超时时返回 `[status: running]`(让位时会在进度行旁写明原因,如 `[status: running, user steered]`),在收走结算时返回终止状态。
157
160
 
158
161
  #### Token 影响
159
162
 
160
- 结果与通知在压缩(compaction)前保留于父级历史。流读取不会重复已消费的输出;生产方提供的 `outputLimitBytes` 会限制每次完整读取或通知。在 `wakeup` 下,抵达空闲所有者的通知还会额外买下一次用户并未要求的模型请求,其数量仅在设置了 `maxConsecutiveWakes` 时按所有者封顶;抵达繁忙所有者的通知则只是给它已经在支付的那一轮加一步。
163
+ 结果与通知在压缩(compaction)前保留于父级历史。流读取不会重复已消费的输出,内联通知省去了原本随后需要的 `job_output` 一步;生产方提供的 `outputLimitBytes` 会限制每次完整读取或通知。在 `wakeup` 下,抵达空闲所有者的通知还会额外买下一次用户并未要求的模型请求,其数量仅在设置了 `maxConsecutiveWakes` 时按所有者封顶;抵达繁忙所有者的通知则只是给它已经在支付的那一轮加一步。
161
164
 
162
165
  #### KV Cache 影响
163
166
 
@@ -171,6 +174,7 @@ Track every background job id you start. You are notified in-session when a job
171
174
  这些限制说明工具何时不合适。它们是当前包约束,不是任务积压。
172
175
 
173
176
  - **落在 driver 退休窗口内的结算仍会让通知搁浅**——在轮次循环最后一次检查 inbox 与 driver 提交 idle 相位之间,所有者读起来仍是繁忙,因此通知走注入且无人唤醒。steering(中途引导)存在同样的问题;修复它属于 `agent-loop`。
177
+ - **插件重新加载会丢弃结算时取走的输出**——取走任务读取的通知会把该读取暂存在插件内存中,直到通知被记录或被 `job_output` 收走;而注册表已经交出该读取,因此在此期间重新加载会让 `job_output` 只得到 `(no new output)`。
174
178
  - **已花掉的唤醒预算不会随时间恢复**——设置了 `maxConsecutiveWakes` 时,只有用户撰写的输入才能补充,因此预算耗尽的无人值守 agent 要等到其他原因开启下一轮时才收走剩余通知,且客户端不会显示有通知在等待。
175
179
  - **待领于空闲所有者的通知无法在该所有者释放后存活**——释放时的取消会清空未领取的 inbox,日志保留插入/取消这一对作为记录。
176
180
  - **模型读取只有单一消费方**——独立观察者使用注册表非消耗的 `readAt`(Web 客户端的 `job.follow`),而不是这些工具。
package/lib/index.js CHANGED
@@ -76,7 +76,9 @@ function renderModelDelta(chunks, lossy, spillPaths) {
76
76
  * producers. It also delivers completions the model has not already
77
77
  * collected to the owning agent: injected into a busy owner's next step, or
78
78
  * opening a turn on an idle one under the default `wakeup` delivery, unbounded
79
- * unless `maxConsecutiveWakes` caps it per owner.
79
+ * unless `maxConsecutiveWakes` caps it per owner. A notice carries the job's
80
+ * output and result when it fits `inlineOutputBytes`, and `job_output`
81
+ * withdraws a notice still pending.
80
82
  * @module @deepseek-ai/dsh-tool-jobs
81
83
  */
82
84
  const name = "tool-jobs";
@@ -89,7 +91,8 @@ const Config = z.object({
89
91
  waitTimeoutMs: z.number().min(1).default(3e4),
90
92
  maxWaitTimeoutMs: z.number().min(1).default(6e5),
91
93
  completionDelivery: z.union(["quiet", "wakeup"]).default("wakeup"),
92
- maxConsecutiveWakes: z.number().min(1)
94
+ maxConsecutiveWakes: z.number().min(1),
95
+ inlineOutputBytes: z.natural().default(2048)
93
96
  });
94
97
  /** Shared schema for job-control outputs. */
95
98
  const PUBLIC_JOB_SCHEMA = {
@@ -160,9 +163,35 @@ function fitWithSuffix(content, suffix, maxBytes, omitted) {
160
163
  function completionSummary(job) {
161
164
  return boundContextSummary(`${job.kind} ${job.label} ${statusLine(publicJob(job))}`);
162
165
  }
166
+ /**
167
+ * The job's label as a notice names it: the first non-empty line, bounded
168
+ * like a notice summary. The model wrote the full command and holds the job id.
169
+ * @param job - the settled job.
170
+ * @returns ` (kind: label) finished [status: …]`.
171
+ */
172
+ function noticeDetail(job) {
173
+ const text = job.label.trimStart();
174
+ const newline = text.indexOf("\n");
175
+ const label = boundContextSummary(newline === -1 ? text : `${text.slice(0, newline)}…`);
176
+ return ` (${job.kind}: ${label}) finished ${statusLine(publicJob(job))}`;
177
+ }
178
+ /**
179
+ * The notice that carries the job's output and final result, when the
180
+ * complete text fits both `maxBytes` and the producer's cap.
181
+ * @param job - the settled job.
182
+ * @param output - the consuming read taken at settlement.
183
+ * @param maxBytes - the configured inline bound.
184
+ * @returns the notice text, or undefined when it does not fit.
185
+ */
186
+ function inlineCompletionNotice(job, output, maxBytes) {
187
+ const head = `background job ${job.id}${noticeDetail(job)}`;
188
+ const text = output.length === 0 ? `${head}. No new output.` : `${head}. Output:\n${output.replace(/\n$/, "")}`;
189
+ const bytes = encoder.encode(text).byteLength;
190
+ return bytes <= maxBytes && bytes <= (job.outputLimitBytes ?? Infinity) ? text : void 0;
191
+ }
163
192
  function fitCompletionNotice(job) {
164
193
  const prefix = `background job ${job.id}`;
165
- const detail = ` (${job.kind}: ${job.label}) finished ${statusLine(publicJob(job))}`;
194
+ const detail = noticeDetail(job);
166
195
  const action = "\nDone; job_output.";
167
196
  const complete = `${prefix}${detail}. Read its output with job_output.`;
168
197
  const maxBytes = job.outputLimitBytes;
@@ -225,12 +254,21 @@ function apply(ctx, config) {
225
254
  const waitCap = config.maxWaitTimeoutMs ?? 6e5;
226
255
  const delivery = config.completionDelivery ?? "wakeup";
227
256
  const wakeBudget = config.maxConsecutiveWakes;
257
+ const inlineBytes = config.inlineOutputBytes ?? 2048;
228
258
  const spentWakes = /* @__PURE__ */ new WeakMap();
229
259
  if (waitDefault > waitCap) throw new Error(`tool-jobs: waitTimeoutMs (${waitDefault}) exceeds maxWaitTimeoutMs (${waitCap})`);
230
260
  if (wakeBudget !== void 0 && !Number.isSafeInteger(wakeBudget)) throw new Error(`tool-jobs: maxConsecutiveWakes (${wakeBudget}) must be a whole number of turns`);
261
+ const pending = /* @__PURE__ */ new Map();
231
262
  if (delivery === "wakeup" && wakeBudget !== void 0) ctx.on("agent/inbox/claimed", ({ agent, message }) => {
232
263
  if (message.source.kind === "user") spentWakes.delete(agent);
233
264
  });
265
+ ctx.on("session/event", (session, event) => {
266
+ if (event.type !== "user/message" || event.data.source.kind !== "tool-jobs") return;
267
+ for (const [id, notice] of pending) {
268
+ if (notice.messageId !== event.data.id || notice.owner !== session.id) continue;
269
+ if (notice.inline || notice.held === void 0) pending.delete(id);
270
+ }
271
+ });
234
272
  const outputLimits = /* @__PURE__ */ new WeakMap();
235
273
  ctx.on("tools/pre-execute", (exec, next) => {
236
274
  const maxBytes = visibleOutputLimit(ctx, exec);
@@ -260,19 +298,37 @@ function apply(ctx, config) {
260
298
  text: "Track every background job id you start. You are notified in-session when a job finishes — do not busy-poll or sleep on one; keep working on independent steps and do not duplicate a running job's work. Before giving a final answer, collect every still-relevant job with job_output (set wait: true only when you are genuinely blocked on it), and job_kill jobs that stopped mattering."
261
299
  });
262
300
  const killedByModel = /* @__PURE__ */ new Set();
263
- ctx.jobs.events.subscribe({ owners: "scope" }, (event) => {
264
- if (event.type === "removed") {
265
- killedByModel.delete(event.job.id);
266
- return;
267
- }
268
- if (event.type !== "settled") return;
269
- if (killedByModel.delete(event.job.id) || event.awaited || event.cause === "teardown" || event.job.owner === void 0) return;
301
+ const releasedReads = /* @__PURE__ */ new Map();
302
+ /** A settlement a released read is expected to carry; delivered at once if that read never commits. */
303
+ const suppressedSettlements = /* @__PURE__ */ new Map();
304
+ const beginReleasedRead = (id) => {
305
+ const claim = releasedReads.get(id) ?? { pending: 0 };
306
+ releasedReads.set(id, claim);
307
+ claim.pending += 1;
308
+ return () => {
309
+ claim.pending -= 1;
310
+ if (claim.pending !== 0) return;
311
+ releasedReads.delete(id);
312
+ const pending = suppressedSettlements.get(id);
313
+ if (pending === void 0) return;
314
+ suppressedSettlements.delete(id);
315
+ deliverSettlement(pending);
316
+ };
317
+ };
318
+ /**
319
+ * Deliver one settlement that no caller already collected.
320
+ * @param event - the settlement to announce.
321
+ */
322
+ const deliverSettlement = (event) => {
323
+ if (event.cause === "teardown" || event.job.owner === void 0) return;
270
324
  const owner = ctx.get("agents")?.get(event.job.owner);
271
325
  if (owner === void 0) return;
326
+ const held = inlineBytes > 0 && event.job.output.total <= inlineBytes ? readBody(ctx.jobs.read(event.job.id, event.job.owner)).text : void 0;
327
+ const inline = held === void 0 ? void 0 : inlineCompletionNotice(event.job, held, inlineBytes);
272
328
  const message = createUserMessage({
273
329
  content: [{
274
330
  type: "text",
275
- text: fitCompletionNotice(event.job)
331
+ text: inline ?? fitCompletionNotice(event.job)
276
332
  }],
277
333
  source: {
278
334
  kind: "tool-jobs",
@@ -280,6 +336,12 @@ function apply(ctx, config) {
280
336
  summary: completionSummary(event.job)
281
337
  }
282
338
  });
339
+ pending.set(event.job.id, {
340
+ owner: event.job.owner,
341
+ messageId: message.id,
342
+ inline: inline !== void 0,
343
+ ...held === void 0 ? {} : { held }
344
+ });
283
345
  if (delivery === "wakeup" && owner.status === "idle") {
284
346
  if (wakeBudget === void 0) {
285
347
  owner.followup(message);
@@ -293,6 +355,20 @@ function apply(ctx, config) {
293
355
  }
294
356
  }
295
357
  owner.inject(message);
358
+ };
359
+ ctx.jobs.events.subscribe({ owners: "scope" }, (event) => {
360
+ if (event.type === "removed") {
361
+ killedByModel.delete(event.job.id);
362
+ pending.delete(event.job.id);
363
+ return;
364
+ }
365
+ if (event.type !== "settled") return;
366
+ if (killedByModel.delete(event.job.id) || event.awaited) return;
367
+ if (releasedReads.has(event.job.id)) {
368
+ suppressedSettlements.set(event.job.id, event);
369
+ return;
370
+ }
371
+ deliverSettlement(event);
296
372
  });
297
373
  ctx.tools.register(defineTool({
298
374
  name: "job_output",
@@ -339,8 +415,46 @@ function apply(ctx, config) {
339
415
  async execute(args, exec) {
340
416
  const id = validateJobId(args.job_id);
341
417
  const jobs = ctx.jobs;
342
- if (args.wait === true) await jobs.wait(id, Math.min(args.timeout_ms ?? waitDefault, waitCap), exec.agent?.id, exec.signal);
343
- return readBody(jobs.read(id, exec.agent?.id));
418
+ const agent = exec.agent;
419
+ let endReleasedRead;
420
+ let releasedBy;
421
+ try {
422
+ if (args.wait === true) {
423
+ const input = new AbortController();
424
+ const checkInput = () => {
425
+ if (agent === void 0 || !agent.inbox.nextStep.some((message) => message.source.kind === "user")) return;
426
+ if (endReleasedRead === void 0) {
427
+ endReleasedRead = beginReleasedRead(id);
428
+ releasedBy = "user steered";
429
+ }
430
+ input.abort();
431
+ };
432
+ const unsubscribe = agent === void 0 ? () => {} : ctx.on("agent/inbox/inserted", ({ agent: subject }) => {
433
+ if (subject === agent) checkInput();
434
+ });
435
+ try {
436
+ checkInput();
437
+ await jobs.wait(id, Math.min(args.timeout_ms ?? waitDefault, waitCap), agent?.id, AbortSignal.any([exec.signal, input.signal]));
438
+ } catch (error) {
439
+ if (!input.signal.aborted) throw error;
440
+ if (exec.signal.aborted) throw new Error("wait aborted");
441
+ } finally {
442
+ unsubscribe();
443
+ }
444
+ }
445
+ const body = readBody(jobs.read(id, exec.agent?.id));
446
+ if (releasedBy !== void 0) suppressedSettlements.delete(id);
447
+ const notice = pending.get(id);
448
+ if (notice !== void 0) {
449
+ pending.delete(id);
450
+ ctx.get("agents")?.get(notice.owner)?.inbox.remove(notice.messageId);
451
+ body.text = `${notice.held ?? ""}${body.text}`;
452
+ }
453
+ if (releasedBy !== void 0 && (body.job.status === "running" || body.job.status === "stopping")) body.job.detail = body.job.detail === void 0 ? releasedBy : `${body.job.detail}; ${releasedBy}`;
454
+ return body;
455
+ } finally {
456
+ endReleasedRead?.();
457
+ }
344
458
  },
345
459
  presentCall: (args) => presentJobCall(`Read output from background job ${args.job_id}`, "read", args.job_id)
346
460
  }));
@@ -4,7 +4,9 @@
4
4
  * producers. It also delivers completions the model has not already
5
5
  * collected to the owning agent: injected into a busy owner's next step, or
6
6
  * opening a turn on an idle one under the default `wakeup` delivery, unbounded
7
- * unless `maxConsecutiveWakes` caps it per owner.
7
+ * unless `maxConsecutiveWakes` caps it per owner. A notice carries the job's
8
+ * output and result when it fits `inlineOutputBytes`, and `job_output`
9
+ * withdraws a notice still pending.
8
10
  * @module @deepseek-ai/dsh-tool-jobs
9
11
  */
10
12
  import type { Context } from '@deepseek-ai/cordis';
@@ -42,6 +44,13 @@ export interface Config {
42
44
  * the next user input.
43
45
  */
44
46
  maxConsecutiveWakes?: number;
47
+ /**
48
+ * Largest complete completion notice, in UTF-8 bytes, that carries the
49
+ * job's output and final result inline (default 2048); a larger one, or one
50
+ * over the producer's `outputLimitBytes`, leaves them for `job_output`. 0
51
+ * never inlines.
52
+ */
53
+ inlineOutputBytes?: number;
45
54
  }
46
55
  export declare const Config: z<Config>;
47
56
  export declare function apply(ctx: Context, config: Config): void;
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Hintergrundaufgabentool",
4
+ "description": "Lassen Sie die KI Hintergrundaufgaben anzeigen, Ausgaben lesen oder Aufgaben stoppen."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Herramienta de tarea en segundo plano",
4
+ "description": "Haga que la IA vea tareas en segundo plano, lea resultados o detenga tareas."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Outil de tâche en arrière-plan",
4
+ "description": "Demandez à l'IA d'afficher les tâches en arrière-plan, de lire le résultat ou d'arrêter les tâches."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "バックグラウンドタスクツール",
4
+ "description": "AI がバックグラウンドタスクを確認し、出力を読み取り、タスクを停止できます。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Ferramenta de tarefa em segundo plano",
4
+ "description": "Faça com que a IA visualize tarefas em segundo plano, leia a saída ou interrompa tarefas."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Инструмент фоновой задачи",
4
+ "description": "Пусть ИИ просматривает фоновые задачи, читает выходные данные или останавливает задачи."
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-jobs",
3
3
  "description": "Model-facing background job control tools (job_output, job_list, job_kill) over the ctx.jobs registry",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,26 +29,28 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@deepseek-ai/schemastery": "~3.18.5"
32
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.1"
33
33
  },
34
34
  "peerDependencies": {
35
- "@deepseek-ai/dsh-agent": "0.2.1-rc.3",
36
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
37
- "@deepseek-ai/dsh-output-retention": "0.2.1-rc.3",
38
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.3",
39
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.3",
40
- "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
41
- "@deepseek-ai/cordis": "~4.0.5"
35
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
36
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
37
+ "@deepseek-ai/dsh-output-retention": "0.2.2-alpha.2",
38
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
39
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
40
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
41
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@deepseek-ai/dsh-agent": "0.2.1-rc.3",
45
- "@deepseek-ai/dsh-llm": "0.2.1-rc.3",
46
- "@deepseek-ai/dsh-output-retention": "0.2.1-rc.3",
47
- "@deepseek-ai/dsh-session": "0.2.1-rc.3",
48
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.3",
49
- "@deepseek-ai/dsh-jobs": "0.2.1-rc.3",
50
- "@deepseek-ai/dsh-jobs-local": "0.2.1-rc.3",
51
- "@deepseek-ai/dsh-tools": "0.2.1-rc.3",
52
- "@deepseek-ai/cordis": "~4.0.5"
44
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
45
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
46
+ "@deepseek-ai/dsh-output-retention": "0.2.2-alpha.2",
47
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
48
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
49
+ "@deepseek-ai/dsh-jobs": "0.2.2-alpha.2",
50
+ "@deepseek-ai/dsh-jobs-local": "0.2.2-alpha.2",
51
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.2",
52
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.2",
53
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
54
+ "@deepseek-ai/cordis": "~4.0.6-alpha.1"
53
55
  }
54
56
  }