@dsh-cc/coordinator 0.5.0 → 0.6.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/README.md CHANGED
@@ -19,15 +19,15 @@ Disposing the plugin fiber reverses every registration in one pass, so disabling
19
19
  The scheduling tools are thin adapters over the subagent service, so residency, cold resume, and delivery authority remain the service's:
20
20
 
21
21
  - `spawn_worker(name, prompt)` calls `ctx.subagents.startContinuable()` and records the durable child id under the given name.
22
- - `send_to_worker(worker, message)` resolves a name (or durable id) and delivers one next-turn message through `ctx.subagents.followup()`, sourcing it `{ kind: 'coordinator', form: 'relay' }`.
23
- - `worker_broadcast(message)` follows up the same content with every registered worker.
22
+ - `send_to_worker(worker, message)` resolves a name (or durable id) and steers or wakes that worker through `ctx.subagents.sendMessage()` a running worker takes the message at its next step boundary, an idle or parked one is woken (or cold-resumed). Sender attribution is derived from the live coordinator Agent.
23
+ - `worker_broadcast(message)` sends the same content to every registered worker (steer + wake semantics as above).
24
24
  - `worker_tasks()` lists registered workers with a live status from the Agent registry.
25
25
 
26
26
  An unknown worker reference is an errored result; a scheduling tool invoked without a calling agent fails loud.
27
27
 
28
28
  ## Result return and completion (reused protocols)
29
29
 
30
- Coordinator mode does not reinvent worker-to-coordinator reporting. A worker reports through the independently installed [`@deepseek-ai/dsh-tool-subagent-report`](../tool-subagent-report/README.md) `report` tool, and the subagent service delivers that as a parent message. When a worker settles, the subagent service's continuation settlement already injects its `subagent-settled` notice into the coordinator agent's session as a waking message ([`dsh-subagent` continuation settlement delivery](../subagent/README.md)) — the completion notification that wakes the coordinator's loop. This package documents that reuse rather than duplicating the wake; its tests assert the notice reaches the coordinator session.
30
+ Coordinator mode does not reinvent worker-to-coordinator reporting, and there is no report tool. A worker returns its outcome by sending a message back to the coordinator with the harness `send_message` control tool (addressed to the coordinator's session id), and when a worker settles the subagent service's continuation settlement injects its `subagent-settled` notice into the coordinator agent's session as a waking message ([`dsh-subagent` continuation settlement delivery](../subagent/README.md)) — the completion notification that wakes the coordinator's loop. This package documents that reuse rather than duplicating the wake; its tests assert the notice reaches the coordinator session.
31
31
 
32
32
  ## Directory
33
33
 
package/README.zh.md CHANGED
@@ -19,7 +19,7 @@
19
19
  调度工具是 subagent 服务之上的薄适配层,因此驻留、冷恢复和投递权限仍归服务所有:
20
20
 
21
21
  - `spawn_worker(name, prompt)` 调用 `ctx.subagents.startContinuable()`,并把持久子 id 记录在给定名称之下。
22
- - `send_to_worker(worker, message)` 解析名称(或持久 id),并通过 `ctx.subagents.followup()` 投递一条下一轮消息,其来源记为 `{ kind: 'coordinator', form: 'relay' }`。
22
+ - `send_to_worker(worker, message)` 解析名称(或持久 id),并通过 `ctx.subagents.sendMessage()` 对该 worker 执行 steer/wake —— 运行中的 worker 在下一个 step 边界接收消息,空闲或已停靠的 worker 被唤醒(或冷恢复)。发送方归属由存活的协调者 Agent 推导。
23
23
  - `worker_broadcast(message)` 把相同内容发送给每个已注册 worker。
24
24
  - `worker_tasks()` 列出已注册 worker,并附带来自 Agent 注册表的实时状态。
25
25
 
@@ -27,7 +27,7 @@
27
27
 
28
28
  ## 结果回流与完成(复用既有协议)
29
29
 
30
- 协调模式不会重新实现 worker 到协调者的结果回流。worker 通过独立安装的 [`@deepseek-ai/dsh-tool-subagent-report`](../tool-subagent-report/README.md) 的 `report` 工具上报,subagent 服务会将其作为一条父级消息投递。当某 worker 结束(settle)时,subagent 服务的 continuation 结算已把它的 `subagent-settled` 通知作为唤醒消息注入协调者 agent 的会话(参见 [`dsh-subagent` continuation 结算投递](../subagent/README.md))——这正是唤醒协调者循环的完成通知。本包记录这一复用而不是重复实现唤醒;其测试断言该通知确实到达协调者会话。
30
+ 协调模式不会重新实现 worker 到协调者的结果回流,也不再有 report 工具。worker 通过 harness 的 `send_message` 控制工具把结果直接发回协调者(以协调者的会话 id 为目标);当某 worker 结束(settle)时,subagent 服务的 continuation 结算会把它的 `subagent-settled` 通知作为唤醒消息注入协调者 agent 的会话(参见 [`dsh-subagent` continuation 结算投递](../subagent/README.md))——这正是唤醒协调者循环的完成通知。本包记录这一复用而不是重复实现唤醒;其测试断言该通知确实到达协调者会话。
31
31
 
32
32
  ## 目录
33
33
 
package/lib/index.d.ts CHANGED
@@ -6,13 +6,13 @@
6
6
  * scheduling tools ({@link spawn_worker}, {@link send_to_worker},
7
7
  * {@link worker_broadcast}, {@link worker_tasks}).
8
8
  *
9
- * Result return and completion waking are NOT reimplemented here: a worker
10
- * reports through the existing `report` tool (`tool-subagent-report`),
11
- * and the subagent manager already injects its `subagent-settled` notice into
12
- * this coordinator's inbox as a waking message when a worker settles
13
- * (`@deepseek-ai/dsh-subagent`'s continuation settlement delivery). This
14
- * package adds the coordinator role and its naming/messaging surface around
15
- * those seams and documents the reuse.
9
+ * Result return and completion waking are NOT reimplemented here: the subagent
10
+ * manager already injects its `subagent-settled` notice into this coordinator's
11
+ * inbox as a waking message when a worker settles
12
+ * (`@deepseek-ai/dsh-subagent`'s continuation settlement delivery), and a worker
13
+ * can address the coordinator directly with its `send_message` control tool.
14
+ * This package adds the coordinator role and its naming/messaging surface
15
+ * around those seams and documents the reuse.
16
16
  * @module @dsh-cc/coordinator
17
17
  */
18
18
  import type { Agent } from '@deepseek-ai/dsh-agent';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAI7C,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAWhE,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B,EAAE,eAA6C,CAAA;AAExF,gEAAgE;AAChE,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;OA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sB,CACpC,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,OAAO,EACZ,MAAM,GAAE,iBAAsB,GAC7B,MAAM,IAAI,CA4MZ;AAED;;;;;;;;;GASG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,GAAE,iBAAsB,GAAG,MAAM,IAAI,CAS9E;AAED,eAAO,MAAM,IAAI,gBAAgB,CAAA;AACjC,eAAO,MAAM,MAAM,UAAmD,CAAA"}
package/lib/index.js CHANGED
@@ -6,13 +6,13 @@
6
6
  * scheduling tools ({@link spawn_worker}, {@link send_to_worker},
7
7
  * {@link worker_broadcast}, {@link worker_tasks}).
8
8
  *
9
- * Result return and completion waking are NOT reimplemented here: a worker
10
- * reports through the existing `report` tool (`tool-subagent-report`),
11
- * and the subagent manager already injects its `subagent-settled` notice into
12
- * this coordinator's inbox as a waking message when a worker settles
13
- * (`@deepseek-ai/dsh-subagent`'s continuation settlement delivery). This
14
- * package adds the coordinator role and its naming/messaging surface around
15
- * those seams and documents the reuse.
9
+ * Result return and completion waking are NOT reimplemented here: the subagent
10
+ * manager already injects its `subagent-settled` notice into this coordinator's
11
+ * inbox as a waking message when a worker settles
12
+ * (`@deepseek-ai/dsh-subagent`'s continuation settlement delivery), and a worker
13
+ * can address the coordinator directly with its `send_message` control tool.
14
+ * This package adds the coordinator role and its naming/messaging surface
15
+ * around those seams and documents the reuse.
16
16
  * @module @dsh-cc/coordinator
17
17
  */
18
18
  import { defineTool } from '@dsh-cc/tools';
@@ -97,11 +97,6 @@ class WorkerRegistry {
97
97
  export function installCoordinatorMode(agent, ctx, config = {}) {
98
98
  const provider = ctx.subagents;
99
99
  const registry = new WorkerRegistry('spawn');
100
- const taskSource = (sendingId) => ({
101
- kind: 'coordinator',
102
- form: 'relay',
103
- senderSessionId: sendingId,
104
- });
105
100
  // Scoped tool registration helper: each tool's execute resolves the live
106
101
  // coordinator agent and its durable id for authority and attribution.
107
102
  const disposals = [];
@@ -113,9 +108,9 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
113
108
  disposals.push(agent.ctx.tools.register(defineTool({
114
109
  name: SPAWN_WORKER,
115
110
  description: 'Start one named background worker to carry out a task in the shared workspace. '
116
- + 'Name it for later send_to_worker and worker_tasks use. The worker reports its result through the '
117
- + 'report tool, which arrives back here as a waking message; when it finishes you are told either way. '
118
- + 'Delegation is the only way to change the workspace in coordinator mode.',
111
+ + 'Name it for later send_to_worker and worker_tasks use. When the worker finishes you receive a '
112
+ + 'subagent-settled waking message, and a worker may also send you a message directly with its '
113
+ + 'send_message tool. Delegation is the only way to change the workspace in coordinator mode.',
119
114
  parameters: {
120
115
  name: {
121
116
  type: 'string',
@@ -158,9 +153,10 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
158
153
  })));
159
154
  disposals.push(agent.ctx.tools.register(defineTool({
160
155
  name: SEND_TO_WORKER,
161
- description: 'Send a message to one of your named workers, continuing its conversation on the same turn queue. '
162
- + 'Use it to redirect, extend, or clarify work already delegated. Returns only delivery confirmation; '
163
- + 'the worker answers with a later report or its finish notice.',
156
+ description: 'Send a message to one of your named workers. It steers a running worker at its next step boundary '
157
+ + 'and wakes an idle or parked one. Use it to redirect, extend, or clarify work already delegated. '
158
+ + 'Returns only delivery confirmation; the worker answers in a later message or through its '
159
+ + 'subagent-settled finish notice.',
164
160
  parameters: {
165
161
  worker: {
166
162
  type: 'string',
@@ -170,7 +166,7 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
170
166
  message: {
171
167
  type: 'string',
172
168
  required: true,
173
- description: 'The message to deliver as the worker\'s next turn.',
169
+ description: 'The message to deliver to the worker.',
174
170
  },
175
171
  },
176
172
  output: {
@@ -184,7 +180,7 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
184
180
  },
185
181
  render: (args, value) => [{
186
182
  type: 'text',
187
- text: `message queued for worker ${args.worker} as message ${value.messageId}`,
183
+ text: `message delivered to worker ${args.worker} as message ${value.messageId}`,
188
184
  }],
189
185
  },
190
186
  async execute(args, exec) {
@@ -192,13 +188,13 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
192
188
  if (childId === undefined) {
193
189
  throw new Error(`unknown worker "${args.worker}": start it with spawn_worker first`);
194
190
  }
195
- const messageId = await provider.followup(agent, childId, [{ type: 'text', text: args.message }], { source: taskSource(agent.id), signal: exec.signal });
191
+ const messageId = await provider.sendMessage(agent, childId, [{ type: 'text', text: args.message }], { signal: exec.signal });
196
192
  return { worker: args.worker, messageId };
197
193
  },
198
194
  })));
199
195
  disposals.push(agent.ctx.tools.register(defineTool({
200
196
  name: WORKER_BROADCAST,
201
- description: 'Send the same message to every one of your active named workers as their next turn. ',
197
+ description: 'Send the same message to every one of your active named workers, steering running ones and waking idle ones. ',
202
198
  parameters: {
203
199
  message: {
204
200
  type: 'string',
@@ -223,7 +219,7 @@ export function installCoordinatorMode(agent, ctx, config = {}) {
223
219
  const entries = registry.entries();
224
220
  let sent = 0;
225
221
  for (const entry of entries) {
226
- await provider.followup(agent, entry.childId, [{ type: 'text', text: args.message }], { source: taskSource(agent.id), signal: exec.signal });
222
+ await provider.sendMessage(agent, entry.childId, [{ type: 'text', text: args.message }], { signal: exec.signal });
227
223
  sent += 1;
228
224
  }
229
225
  return { sent };
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,UAAU,EAAwB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAUlF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,4BAA4B,GAAoB,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAA;AAoBxF,MAAM,YAAY,GAAG,cAAc,CAAA;AACnC,MAAM,cAAc,GAAG,gBAAgB,CAAA;AACvC,MAAM,gBAAgB,GAAG,kBAAkB,C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EAAE,CAAA;QAC9B,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;YACpD,IAAI,CAAC;gBACH,OAAO,EAAE,CAAA;YACX,CAAC;YAAC,OAAO,KAAc,EAAE,CAAC;gBACxB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC;QACH,CAAC;QACD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,cAAc,CAAC,QAAQ,EAAE,iDAAiD,CAAC,CAAA;QACvF,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,KAAK,CAAC,GAAY,EAAE,SAA4B,EAAE;IAChE,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC;QAAE,OAAO,GAAG,EAAE,GAAE,CAAC,CAAA;IACjD,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAC9B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,yEAAyE;QACzE,4DAA4D;QAC5D,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;IACjH,CAAC;IACD,OAAO,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,CAAA;AACnD,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAA;AACjC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAA"}
package/lib/section.d.ts CHANGED
@@ -10,9 +10,9 @@ export declare const COORDINATOR_SECTION_ORDER = 110;
10
10
  /**
11
11
  * The fixed orchestration guidance installed when coordinator mode is active.
12
12
  * It names the delegation surface a coordinator acts through and pins the
13
- * result-return protocol to the subagent report seam, so a coordinator never
14
- * mistakes direct code-editing for its job and knows how worker results come
15
- * back.
13
+ * result-return protocol to the subagent-settled notice and worker send_message
14
+ * seams, so a coordinator never mistakes direct code-editing for its job and
15
+ * knows how worker results come back.
16
16
  */
17
17
  export declare const COORDINATOR_SECTION_TEXT: string;
18
18
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,yBAAyB,MAAM,CAAA;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,QAO6B,CAAA"}
1
+ {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6EAA6E;AAC7E,eAAO,MAAM,yBAAyB,MAAM,CAAA;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,QAOoD,CAAA"}
package/lib/section.js CHANGED
@@ -10,15 +10,15 @@ export const COORDINATOR_SECTION_ORDER = 110;
10
10
  /**
11
11
  * The fixed orchestration guidance installed when coordinator mode is active.
12
12
  * It names the delegation surface a coordinator acts through and pins the
13
- * result-return protocol to the subagent report seam, so a coordinator never
14
- * mistakes direct code-editing for its job and knows how worker results come
15
- * back.
13
+ * result-return protocol to the subagent-settled notice and worker send_message
14
+ * seams, so a coordinator never mistakes direct code-editing for its job and
15
+ * knows how worker results come back.
16
16
  */
17
17
  export const COORDINATOR_SECTION_TEXT = 'Coordinator mode: you orchestrate workers instead of doing the work yourself. '
18
18
  + 'Delegate tasks with spawn_worker, redirect or extend one with send_to_worker, '
19
19
  + 'reach all of them with worker_broadcast, and review them with worker_tasks. '
20
20
  + 'Do not edit the workspace directly: assign that work to a worker. Each worker '
21
- + 'reports its result through the report tool, which lands back in your conversation '
22
- + 'as a waking message naming the worker; a worker that ends without reporting '
23
- + 'still notifies you so you can decide whether to resume it.';
21
+ + 'returns its outcome either by sending you a message with its send_message tool '
22
+ + '(address it to this agent\'s id) or by finishing, which wakes you with a '
23
+ + 'subagent-settled notice naming the worker so you can decide whether to resume it.';
24
24
  //# sourceMappingURL=section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.js","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6EAA6E;AAC7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GACjC,gFAAgF;MAC9E,gFAAgF;MAChF,8EAA8E;MAC9E,gFAAgF;MAChF,oFAAoF;MACpF,8EAA8E;MAC9E,4DAA4D,CAAA"}
1
+ {"version":3,"file":"section.js","sourceRoot":"","sources":["../src/section.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6EAA6E;AAC7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GACjC,gFAAgF;MAC9E,gFAAgF;MAChF,8EAA8E;MAC9E,gFAAgF;MAChF,iFAAiF;MACjF,2EAA2E;MAC3E,mFAAmF,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dsh-cc/coordinator",
3
3
  "description": "Coordinator-mode orchestration over continuable subagents for the DeepSeek Harness",
4
- "version": "0.5.0",
4
+ "version": "0.6.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dsh-cc/dsh-cc.git",
@@ -25,13 +25,13 @@
25
25
  ],
26
26
  "license": "Apache-2.0",
27
27
  "peerDependencies": {
28
- "@deepseek-ai/dsh-agent": ">=0.1.1-rc.2",
29
- "@deepseek-ai/dsh-invariants": ">=0.1.1-rc.2",
30
- "@deepseek-ai/dsh-llm": ">=0.1.1-rc.2",
31
- "@deepseek-ai/dsh-subagent": ">=0.1.1-rc.2",
32
- "@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.2",
33
- "@deepseek-ai/cordis": ">=0.1.1-rc.2",
34
- "@dsh-cc/tools": "^0.5.0"
28
+ "@deepseek-ai/dsh-agent": ">=0.1.2-rc.1",
29
+ "@deepseek-ai/dsh-invariants": ">=0.1.2-rc.1",
30
+ "@deepseek-ai/dsh-llm": ">=0.1.2-rc.1",
31
+ "@deepseek-ai/dsh-subagent": ">=0.1.2-rc.1",
32
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.2-rc.1",
33
+ "@deepseek-ai/cordis": ">=0.1.2-rc.1",
34
+ "@dsh-cc/tools": "^0.6.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@deepseek-ai/dsh-agent": "link:../../../../deepseek-harness/packages/core/agent",
@@ -41,13 +41,14 @@
41
41
  "@deepseek-ai/dsh-llm": "link:../../../../deepseek-harness/packages/llm/llm",
42
42
  "@deepseek-ai/dsh-session": "link:../../../../deepseek-harness/packages/core/session",
43
43
  "@deepseek-ai/dsh-session-persistence": "link:../../../../deepseek-harness/packages/session/session-persistence",
44
+ "@deepseek-ai/dsh-session-query": "link:../../../../deepseek-harness/packages/session-query/session-query",
44
45
  "@deepseek-ai/dsh-session-persistence-jsonl": "link:../../../../deepseek-harness/packages/session/session-persistence-jsonl",
45
46
  "@deepseek-ai/dsh-session-projection": "link:../../../../deepseek-harness/packages/session/session-projection",
46
47
  "@deepseek-ai/dsh-subagent": "link:../../../../deepseek-harness/packages/subagent/subagent",
47
48
  "@deepseek-ai/dsh-subagent-spawn-in-process": "link:../../../../deepseek-harness/packages/subagent/subagent-spawn-in-process",
48
49
  "@deepseek-ai/dsh-system-prompt": "link:../../../../deepseek-harness/packages/core/system-prompt",
49
50
  "@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
50
- "@dsh-cc/tools": "^0.5.0",
51
+ "@dsh-cc/tools": "^0.6.1",
51
52
  "@dsh-cc/agent-loop-mock": "^0.1.0"
52
53
  },
53
54
  "publishConfig": {