@deepseek-ai/dsh-subagent 0.2.1-rc.5 → 0.2.2-alpha.3

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
@@ -18,8 +18,8 @@
18
18
  en: 924b8c15f9529028
19
19
  zh: 9fb0c399b5a79e3e
20
20
  /deepseek-ai-dsh-subagent/use-this-package/enabling-delegation:
21
- en: 388ae5427c869173
22
- zh: aff830f4986cf1b3
21
+ en: 025605eddae02478
22
+ zh: 5659cba4340735d8
23
23
  /deepseek-ai-dsh-subagent/use-this-package/delegation-settings:
24
24
  en: 86c982223fab1a3a
25
25
  zh: 3d220d8ed84eab9a
@@ -69,8 +69,8 @@
69
69
  en: f7cec22ba9d3fb4f
70
70
  zh: 67b1d40f9b136f71
71
71
  /deepseek-ai-dsh-subagent/model-experience/settlement-notice/what-the-model-sees:
72
- en: b61ce5a34e154028
73
- zh: 861b809745f47672
72
+ en: 8e28e4542cd6bcb6
73
+ zh: c840f65ffb8fcfbd
74
74
  /deepseek-ai-dsh-subagent/model-experience/settlement-notice/token-effect:
75
75
  en: f98ad834e8ce8950
76
76
  zh: cf509805dd934094
package/README.md CHANGED
@@ -31,7 +31,7 @@ This package is the contract every delegation setup shares. You enable it by mou
31
31
 
32
32
  ### Enabling delegation
33
33
 
34
- Mount the service with a provider and the delegation tool. The provider registers under its configured name; each tool row selects one provider. A minimal setup:
34
+ Mount the service with `@deepseek-ai/dsh-session-projection`, a provider, and the delegation tool; the service waits for the projection registry before initializing. The provider registers under its configured name; each tool row selects one provider. A minimal setup:
35
35
 
36
36
  ```yaml
37
37
  - name: '@deepseek-ai/dsh-subagent'
@@ -164,7 +164,7 @@ Read these pages when the package-level contract is not enough. They move from t
164
164
 
165
165
  #### What the model sees
166
166
 
167
- Parent delivery emits a user-role status notice containing the child’s nonempty final text blocks, regardless of `send_message` availability or use. External notices also state that further messages are unsupported. Reasoning and other nontext blocks are excluded. Every parent notice includes available structured output as `Structured result: <JSON>` and the provider’s safe diagnostic as a separate text block. Empty closing text is reported as `It left no closing message.` Caller delivery emits no notice; SDK lifecycle notifications retain complete child output when cleanup succeeds.
167
+ Parent delivery emits a user-role status notice containing the child’s nonempty final text blocks. When the child's last action before that text was a message to its parent, with no input claimed and no tool call logged after it, the notice replaces them with `It sent you a message just before finishing, so its closing message is omitted.`; the parent recovers omitted closing text only by messaging the child again. External notices also state that further messages are unsupported. Reasoning and other nontext blocks are excluded. Every parent notice includes available structured output as `Structured result: <JSON>` and the provider’s safe diagnostic as a separate text block. Empty closing text is reported as `It left no closing message.` Caller delivery emits no notice; SDK lifecycle notifications retain complete child output when cleanup succeeds.
168
168
 
169
169
  #### Token effect
170
170
 
package/README.zh.md CHANGED
@@ -31,7 +31,7 @@ kind: "package-reference"
31
31
 
32
32
  ### 启用委派
33
33
 
34
- 挂载服务、提供方与委派工具。提供方按配置名称注册,每个工具行选择一个提供方。最小配置如下:
34
+ 一起挂载本服务、`@deepseek-ai/dsh-session-projection`、提供方与委派工具;本服务等待投影注册表可用后才初始化。提供方按配置名称注册,每个工具行选择一个提供方。最小配置如下:
35
35
 
36
36
  ```yaml
37
37
  - name: '@deepseek-ai/dsh-subagent'
@@ -164,7 +164,7 @@ kind: "package-reference"
164
164
 
165
165
  #### 模型看到什么
166
166
 
167
- 父级投递发送包含子级最终输出中非空文本块的 user-role 状态通知,不受 `send_message` 是否可用或是否调用影响。外部通知还说明不支持后续消息。推理及其他非文本块被排除。每条父级通知都会以 `Structured result: <JSON>` 附带可用的结构化输出,并以独立文本块附带提供方安全诊断。收尾文本为空时,通知使用 `It left no closing message.`。调用方投递不发送通知;清理成功时 SDK 生命周期通知保留完整子级输出。
167
+ 父级投递发送包含子级最终输出中非空文本块的 user-role 状态通知。若子级在该文本之前的最后一个动作是向父级发送消息,且此后既未领取输入也未记录任何工具调用,通知会以 `It sent you a message just before finishing, so its closing message is omitted.` 替代这些文本块;父级只有再次向子级发送消息才能取回被省略的收尾文本。外部通知还说明不支持后续消息。推理及其他非文本块被排除。每条父级通知都会以 `Structured result: <JSON>` 附带可用的结构化输出,并以独立文本块附带提供方安全诊断。收尾文本为空时,通知使用 `It left no closing message.`。调用方投递不发送通知;清理成功时 SDK 生命周期通知保留完整子级输出。
168
168
 
169
169
  #### Token 影响
170
170
 
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { Service } from "@deepseek-ai/cordis";
1
2
  import z from "@deepseek-ai/schemastery";
2
3
  import { scopeTarget } from "@deepseek-ai/dsh-scope";
3
4
  import { ToolArgsError, assertObjectJsonSchema, validateJsonSchemaValue } from "@deepseek-ai/dsh-tools";
@@ -415,11 +416,11 @@ function captureDelegatedPolicyOverrides(parent) {
415
416
  }
416
417
  /**
417
418
  * Append the captured delegation policy onto the child's own log as
418
- * `source: 'delegation'` events inside the unpublished creation window, so the
419
+ * `source: 'delegation'` events after Session announcement and before Agent registration, so the
419
420
  * child's effective policy is reconstructable from its log alone. Appends land
420
421
  * after any fork seed, so fresh policy wins stale seed state; later child
421
422
  * switches still win over these events.
422
- * @param childSession - the unpublished child's session.
423
+ * @param childSession - the child's announced, writable Session.
423
424
  * @param overrides - the policy captured at delegation.
424
425
  */
425
426
  function appendDelegatedPolicyOverrides(childSession, overrides) {
@@ -503,9 +504,11 @@ function settlementSummary(childId, stopReason, continuable) {
503
504
  * @param childId - durable child session id named in the notice.
504
505
  * @param terminal - recorded terminal state for the settled Activation.
505
506
  * @param continuable - whether the child can accept another task.
507
+ * @param omitClosingText - replace the closing text with a note that the child's
508
+ * last message to the parent already carries it.
506
509
  * @returns the durable user-message representation delivered to the parent.
507
510
  */
508
- function createSettlementMessage(childId, terminal, continuable = true) {
511
+ function createSettlementMessage(childId, terminal, continuable = true, omitClosingText = false) {
509
512
  const summary = settlementSummary(childId, terminal.stopReason, continuable);
510
513
  const closingText = terminal.output.flatMap((block) => block.type === "text" && block.text.length > 0 ? [block] : []);
511
514
  return createUserMessage({
@@ -514,7 +517,10 @@ function createSettlementMessage(childId, terminal, continuable = true) {
514
517
  type: "text",
515
518
  text: summary
516
519
  },
517
- ...closingText.length === 0 ? [{
520
+ ...omitClosingText ? [{
521
+ type: "text",
522
+ text: "It sent you a message just before finishing, so its closing message is omitted."
523
+ }] : closingText.length === 0 ? [{
518
524
  type: "text",
519
525
  text: "It left no closing message."
520
526
  }] : [{
@@ -1828,7 +1834,8 @@ var SubagentManager = class {
1828
1834
  outputStart: handle.agent.session.seq,
1829
1835
  structured,
1830
1836
  failureAt: void 0,
1831
- poke: Promise.withResolvers()
1837
+ poke: Promise.withResolvers(),
1838
+ omitClosingText: false
1832
1839
  };
1833
1840
  }
1834
1841
  const observer = this.host.observeActivation(provider, childId, parent);
@@ -1859,8 +1866,14 @@ var SubagentManager = class {
1859
1866
  if (activation.kind === "local") {
1860
1867
  observeLocalFailure(activation, wakeSettlement);
1861
1868
  activation.handle.agent.ctx.on("agent/inbox/inserted", wakeSettlement);
1862
- activation.handle.agent.ctx.on("agent/inbox/claimed", wakeSettlement);
1869
+ activation.handle.agent.ctx.on("agent/inbox/claimed", () => {
1870
+ activation.omitClosingText = false;
1871
+ wakeSettlement();
1872
+ });
1863
1873
  activation.handle.agent.ctx.on("agent/inbox/discarded", wakeSettlement);
1874
+ activation.handle.agent.ctx.on("session/event", (_session, event) => {
1875
+ if (event.type === "tool/call") activation.omitClosingText = false;
1876
+ });
1864
1877
  }
1865
1878
  observer.start(activationAgent(activation));
1866
1879
  } catch (error) {
@@ -2050,7 +2063,7 @@ var SubagentManager = class {
2050
2063
  try {
2051
2064
  const parent = this.ctx.agents.get(activation.parent.id);
2052
2065
  if (parent !== activation.parent) return;
2053
- const message = createSettlementMessage(activation.childId, terminal, activationAgent(activation) !== void 0);
2066
+ const message = createSettlementMessage(activation.childId, terminal, activation.kind === "local", activation.kind === "local" && activation.omitClosingText);
2054
2067
  if (this.closingTeardownFor(parent) !== void 0) {
2055
2068
  parent.inject(message);
2056
2069
  return;
@@ -2124,6 +2137,7 @@ var SubagentManager = class {
2124
2137
  if (parent !== activation.parent) throw new SubagentError("direct parent is not live; the message was not delivered", "PARENT_UNAVAILABLE");
2125
2138
  const message = createAgentMessage(sender, content);
2126
2139
  this.sendAgentMessage(parent, message);
2140
+ activation.omitClosingText = true;
2127
2141
  return message.id;
2128
2142
  }
2129
2143
  /** Send one Agent message while translating only the target's own rejection. */
@@ -2979,7 +2993,7 @@ let SubagentRuntime = (() => {
2979
2993
  maxDepth: z.number().step(1).min(0).max(Number.MAX_SAFE_INTEGER).default(1).volatile(),
2980
2994
  maxActiveSubagents: z.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).default(8).volatile()
2981
2995
  });
2982
- static inject = ["workingDirectory"];
2996
+ static inject = ["workingDirectory", "sessionProjections"];
2983
2997
  providers = /* @__PURE__ */ new Map();
2984
2998
  manager;
2985
2999
  /**
@@ -3006,15 +3020,16 @@ let SubagentRuntime = (() => {
3006
3020
  if (this.manager === manager) this.manager = void 0;
3007
3021
  }, "subagents.managerBinding()");
3008
3022
  });
3009
- ctx.inject(["sessionProjections"], (projectionCtx) => {
3010
- projectionCtx.sessionProjections.register(subagentCatalogProjectionDefinition);
3011
- projectionCtx.sessionProjections.register(subagentTimingProjectionDefinition);
3012
- projectionCtx.sessionProjections.register(subagentIdentityProjectionDefinition);
3013
- });
3014
3023
  ctx.inject(["agents"], (agentsCtx) => {
3015
3024
  installSubagentArchiveAdmission(agentsCtx);
3016
3025
  });
3017
3026
  }
3027
+ async [Service.init]() {
3028
+ const { sessionProjections } = this.ctx;
3029
+ await sessionProjections.register(subagentCatalogProjectionDefinition);
3030
+ await sessionProjections.register(subagentTimingProjectionDefinition);
3031
+ await sessionProjections.register(subagentIdentityProjectionDefinition);
3032
+ }
3018
3033
  /**
3019
3034
  * Resolve a delegation tool's depth policy against the current user setting.
3020
3035
  * @param configured - Explicit tool limit, or provider-managed for external delegation.
@@ -127,7 +127,7 @@ const $remote = createTypertRemoteInfo({
127
127
  description: 'acknowledgement that the cancel signal was admitted, not that the target is quiescent.',
128
128
  jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":true},
129
129
  },
130
- sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":517,"column":3},
130
+ sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":519,"column":3},
131
131
  },
132
132
  'subagents/prompt': {
133
133
  service: 'subagents',
@@ -160,7 +160,7 @@ const $remote = createTypertRemoteInfo({
160
160
  description: 'the accepted message\'s inbox identity.',
161
161
  jsonSchema: {"type":"object","properties":{"messageId":{"type":"string"}},"required":["messageId"],"additionalProperties":true},
162
162
  },
163
- sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":448,"column":9},
163
+ sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":450,"column":9},
164
164
  },
165
165
  },
166
166
  }, z)
@@ -294,7 +294,7 @@ export const TYPERT = {
294
294
  },
295
295
  {
296
296
  "name": "Agent",
297
- "declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
297
+ "declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly model: Model;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
298
298
  },
299
299
  {
300
300
  "name": "AgentCancelCause",
@@ -306,7 +306,7 @@ export const TYPERT = {
306
306
  },
307
307
  {
308
308
  "name": "AgentOptions",
309
- "declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
309
+ "declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
310
310
  },
311
311
  {
312
312
  "name": "AgentStatus",
@@ -642,7 +642,11 @@ export const TYPERT = {
642
642
  },
643
643
  {
644
644
  "name": "MessageSourceMap",
645
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
645
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
646
+ },
647
+ {
648
+ "name": "Model",
649
+ "declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
646
650
  },
647
651
  {
648
652
  "name": "ModelMessageSource",
@@ -650,7 +654,7 @@ export const TYPERT = {
650
654
  },
651
655
  {
652
656
  "name": "ModelSelection",
653
- "declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
657
+ "declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
654
658
  },
655
659
  {
656
660
  "name": "ObjectJsonSchema",
@@ -674,7 +678,7 @@ export const TYPERT = {
674
678
  },
675
679
  {
676
680
  "name": "PrincipalMap",
677
- "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
681
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n 'share-viewer': ShareViewerPrincipal;\n}"
678
682
  },
679
683
  {
680
684
  "name": "PromptContentPart",
@@ -754,7 +758,7 @@ export const TYPERT = {
754
758
  },
755
759
  {
756
760
  "name": "SessionEventMap",
757
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
761
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'model/selection': ModelSelection;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'working-directory/change': { cwd: string; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'session-log-deepseek/delivery-accepted': { sessionId: import('@deepseek-ai/dsh-session/types').SessionId; sessionFormatVersion?: number; throughSeq: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
758
762
  },
759
763
  {
760
764
  "name": "SessionEventType",
@@ -804,6 +808,10 @@ export const TYPERT = {
804
808
  "name": "SessionTitleSource",
805
809
  "declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
806
810
  },
811
+ {
812
+ "name": "ShareViewerPrincipal",
813
+ "declaration": "export interface ShareViewerPrincipal {\n readonly kind: 'share-viewer';\n readonly shareId: string;\n readonly actor: { readonly providerId: string; readonly tenantId: string; readonly subjectId: string; readonly displayName?: string; };\n}"
814
+ },
807
815
  {
808
816
  "name": "SkillInvocationSource",
809
817
  "declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
@@ -127,7 +127,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
127
127
  description: 'acknowledgement that the cancel signal was admitted, not that the target is quiescent.',
128
128
  jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":true},
129
129
  },
130
- sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":517,"column":3},
130
+ sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":519,"column":3},
131
131
  },
132
132
  'subagents/prompt': {
133
133
  service: 'subagents',
@@ -160,7 +160,7 @@ export const TYPERT_REMOTE = createTypertRemoteInfo({
160
160
  description: 'the accepted message\'s inbox identity.',
161
161
  jsonSchema: {"type":"object","properties":{"messageId":{"type":"string"}},"required":["messageId"],"additionalProperties":true},
162
162
  },
163
- sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":448,"column":9},
163
+ sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":450,"column":9},
164
164
  },
165
165
  },
166
166
  }, z)
@@ -63,6 +63,12 @@ export type ActivationResource = {
63
63
  failureAt: SessionLogOffset | undefined;
64
64
  /** Renewed when local settlement must recheck input or owned children. */
65
65
  poke: PromiseWithResolvers<void>;
66
+ /**
67
+ * Whether this child's settlement notice omits its closing text: true while
68
+ * the child's last logged tool call was a message to its direct parent and
69
+ * no input was claimed since.
70
+ */
71
+ omitClosingText: boolean;
66
72
  } | {
67
73
  readonly kind: 'external';
68
74
  readonly run: SubagentRun;
@@ -46,11 +46,6 @@ export interface SubagentCatalogState {
46
46
  readonly inheritedEventCount: SessionLogOffset;
47
47
  readonly head?: ChunkedList<SubagentCatalogEvent> | undefined;
48
48
  }
49
- declare module '@deepseek-ai/dsh-session-projection/types' {
50
- interface SessionProjectionStateMap {
51
- subagentCatalog: SubagentCatalogState;
52
- }
53
- }
54
49
  /**
55
50
  * Materialize complete and unknown-mode child identities from parent catalog events.
56
51
  * @param state - parent catalog fold state.
@@ -118,11 +118,11 @@ export interface DelegatedPolicyOverrides {
118
118
  export declare function captureDelegatedPolicyOverrides(parent: Agent): DelegatedPolicyOverrides;
119
119
  /**
120
120
  * Append the captured delegation policy onto the child's own log as
121
- * `source: 'delegation'` events inside the unpublished creation window, so the
121
+ * `source: 'delegation'` events after Session announcement and before Agent registration, so the
122
122
  * child's effective policy is reconstructable from its log alone. Appends land
123
123
  * after any fork seed, so fresh policy wins stale seed state; later child
124
124
  * switches still win over these events.
125
- * @param childSession - the unpublished child's session.
125
+ * @param childSession - the child's announced, writable Session.
126
126
  * @param overrides - the policy captured at delegation.
127
127
  */
128
128
  export declare function appendDelegatedPolicyOverrides(childSession: Session, overrides: DelegatedPolicyOverrides): void;
@@ -187,11 +187,11 @@ export function captureDelegatedPolicyOverrides(parent) {
187
187
  }
188
188
  /**
189
189
  * Append the captured delegation policy onto the child's own log as
190
- * `source: 'delegation'` events inside the unpublished creation window, so the
190
+ * `source: 'delegation'` events after Session announcement and before Agent registration, so the
191
191
  * child's effective policy is reconstructable from its log alone. Appends land
192
192
  * after any fork seed, so fresh policy wins stale seed state; later child
193
193
  * switches still win over these events.
194
- * @param childSession - the unpublished child's session.
194
+ * @param childSession - the child's announced, writable Session.
195
195
  * @param overrides - the policy captured at delegation.
196
196
  */
197
197
  export function appendDelegatedPolicyOverrides(childSession, overrides) {
@@ -57,7 +57,9 @@ export declare function withContinuableReturnGuidance(parentId: SessionId, promp
57
57
  * @param childId - durable child session id named in the notice.
58
58
  * @param terminal - recorded terminal state for the settled Activation.
59
59
  * @param continuable - whether the child can accept another task.
60
+ * @param omitClosingText - replace the closing text with a note that the child's
61
+ * last message to the parent already carries it.
60
62
  * @returns the durable user-message representation delivered to the parent.
61
63
  */
62
- export declare function createSettlementMessage(childId: SessionId, terminal: SubagentResult, continuable?: boolean): ReturnType<typeof createUserMessage>;
64
+ export declare function createSettlementMessage(childId: SessionId, terminal: SubagentResult, continuable?: boolean, omitClosingText?: boolean): ReturnType<typeof createUserMessage>;
63
65
  //# sourceMappingURL=continuation-messages.d.ts.map
@@ -84,9 +84,11 @@ function settlementSummary(childId, stopReason, continuable) {
84
84
  * @param childId - durable child session id named in the notice.
85
85
  * @param terminal - recorded terminal state for the settled Activation.
86
86
  * @param continuable - whether the child can accept another task.
87
+ * @param omitClosingText - replace the closing text with a note that the child's
88
+ * last message to the parent already carries it.
87
89
  * @returns the durable user-message representation delivered to the parent.
88
90
  */
89
- export function createSettlementMessage(childId, terminal, continuable = true) {
91
+ export function createSettlementMessage(childId, terminal, continuable = true, omitClosingText = false) {
90
92
  const summary = settlementSummary(childId, terminal.stopReason, continuable);
91
93
  // Parent providers receive this notice as a user message and may reject
92
94
  // nontext assistant blocks. Keep this conversion local so SDK/UI consumers
@@ -95,9 +97,11 @@ export function createSettlementMessage(childId, terminal, continuable = true) {
95
97
  return createUserMessage({
96
98
  content: [
97
99
  { type: 'text', text: summary },
98
- ...closingText.length === 0
99
- ? [{ type: 'text', text: 'It left no closing message.' }]
100
- : [{ type: 'text', text: 'Its closing message:' }, ...closingText],
100
+ ...omitClosingText
101
+ ? [{ type: 'text', text: 'It sent you a message just before finishing, so its closing message is omitted.' }]
102
+ : closingText.length === 0
103
+ ? [{ type: 'text', text: 'It left no closing message.' }]
104
+ : [{ type: 'text', text: 'Its closing message:' }, ...closingText],
101
105
  ...terminal.structured !== undefined
102
106
  ? [{ type: 'text', text: `Structured result: ${JSON.stringify(terminal.structured)}` }] : [],
103
107
  ...terminal.diagnostic !== undefined
@@ -28,7 +28,7 @@
28
28
  * @module @deepseek-ai/dsh-subagent
29
29
  */
30
30
  import type { Volatile } from '@deepseek-ai/cordis';
31
- import { Context } from '@deepseek-ai/cordis';
31
+ import { Context, Service } from '@deepseek-ai/cordis';
32
32
  import z from '@deepseek-ai/schemastery';
33
33
  import type { Scoped } from '@deepseek-ai/dsh-scope';
34
34
  import type { ContentBlock, MessageId } from '@deepseek-ai/dsh-llm';
@@ -121,6 +121,7 @@ export declare class SubagentRuntime extends TypertRemoteService {
121
121
  */
122
122
  private readonly emitLifecycle;
123
123
  constructor(ctx: Context, config: Config);
124
+ protected [Service.init](): Promise<void>;
124
125
  /**
125
126
  * Resolve a delegation tool's depth policy against the current user setting.
126
127
  * @param configured - Explicit tool limit, or provider-managed for external delegation.
@@ -32,6 +32,7 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
32
32
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
33
33
  done = true;
34
34
  };
35
+ import { Service } from '@deepseek-ai/cordis';
35
36
  import z from '@deepseek-ai/schemastery';
36
37
  import { scopeTarget } from '@deepseek-ai/dsh-scope';
37
38
  import { assertObjectJsonSchema } from '@deepseek-ai/dsh-tools';
@@ -75,7 +76,7 @@ let SubagentRuntime = (() => {
75
76
  maxDepth: z.number().step(1).min(0).max(Number.MAX_SAFE_INTEGER).default(1).volatile(),
76
77
  maxActiveSubagents: z.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER).default(8).volatile(),
77
78
  });
78
- static inject = ['workingDirectory'];
79
+ static inject = ['workingDirectory', 'sessionProjections'];
79
80
  providers = new Map();
80
81
  manager;
81
82
  /**
@@ -104,15 +105,16 @@ let SubagentRuntime = (() => {
104
105
  this.manager = undefined;
105
106
  }, 'subagents.managerBinding()');
106
107
  });
107
- ctx.inject(['sessionProjections'], (projectionCtx) => {
108
- projectionCtx.sessionProjections.register(subagentCatalogProjectionDefinition);
109
- projectionCtx.sessionProjections.register(subagentTimingProjectionDefinition);
110
- projectionCtx.sessionProjections.register(subagentIdentityProjectionDefinition);
111
- });
112
108
  // Archive admission: this runtime is the owner that knows which live
113
109
  // children descend from a Session and how a parent stops them.
114
110
  ctx.inject(['agents'], (agentsCtx) => { installSubagentArchiveAdmission(agentsCtx); });
115
111
  }
112
+ async [Service.init]() {
113
+ const { sessionProjections } = this.ctx;
114
+ await sessionProjections.register(subagentCatalogProjectionDefinition);
115
+ await sessionProjections.register(subagentTimingProjectionDefinition);
116
+ await sessionProjections.register(subagentIdentityProjectionDefinition);
117
+ }
116
118
  /**
117
119
  * Resolve a delegation tool's depth policy against the current user setting.
118
120
  * @param configured - Explicit tool limit, or provider-managed for external delegation.
@@ -802,7 +802,15 @@ export class SubagentManager {
802
802
  signal: inputs.signal,
803
803
  setup,
804
804
  });
805
- resource = { kind: 'local', handle, outputStart: handle.agent.session.seq, structured, failureAt: undefined, poke: Promise.withResolvers() };
805
+ resource = {
806
+ kind: 'local',
807
+ handle,
808
+ outputStart: handle.agent.session.seq,
809
+ structured,
810
+ failureAt: undefined,
811
+ poke: Promise.withResolvers(),
812
+ omitClosingText: false,
813
+ };
806
814
  }
807
815
  const observer = this.host.observeActivation(provider, childId, parent);
808
816
  const activation = {
@@ -831,8 +839,20 @@ export class SubagentManager {
831
839
  if (activation.kind === 'local') {
832
840
  observeLocalFailure(activation, wakeSettlement);
833
841
  activation.handle.agent.ctx.on('agent/inbox/inserted', wakeSettlement);
834
- activation.handle.agent.ctx.on('agent/inbox/claimed', wakeSettlement);
842
+ activation.handle.agent.ctx.on('agent/inbox/claimed', () => {
843
+ // Claimed input means the closing text may report work the child's
844
+ // last message to its parent did not.
845
+ activation.omitClosingText = false;
846
+ wakeSettlement();
847
+ });
835
848
  activation.handle.agent.ctx.on('agent/inbox/discarded', wakeSettlement);
849
+ // A tool call logged after the message also voids it; logged calls
850
+ // cannot be skipped by tool policy. `send_message` is not concurrency
851
+ // safe, so a later call in its step is logged after it executes.
852
+ activation.handle.agent.ctx.on('session/event', (_session, event) => {
853
+ if (event.type === 'tool/call')
854
+ activation.omitClosingText = false;
855
+ });
836
856
  }
837
857
  observer.start(activationAgent(activation));
838
858
  }
@@ -1065,7 +1085,7 @@ export class SubagentManager {
1065
1085
  const parent = this.ctx.agents.get(activation.parent.id);
1066
1086
  if (parent !== activation.parent)
1067
1087
  return;
1068
- const message = createSettlementMessage(activation.childId, terminal, activationAgent(activation) !== undefined);
1088
+ const message = createSettlementMessage(activation.childId, terminal, activation.kind === 'local', activation.kind === 'local' && activation.omitClosingText);
1069
1089
  if (this.closingTeardownFor(parent) !== undefined) {
1070
1090
  parent.inject(message);
1071
1091
  return;
@@ -1153,6 +1173,7 @@ export class SubagentManager {
1153
1173
  }
1154
1174
  const message = createAgentMessage(sender, content);
1155
1175
  this.sendAgentMessage(parent, message);
1176
+ activation.omitClosingText = true;
1156
1177
  return message.id;
1157
1178
  }
1158
1179
  /** Send one Agent message while translating only the target's own rejection. */
@@ -23,12 +23,6 @@ export interface TimingState {
23
23
  /** Whether the latest closed post-descriptor turn completed normally; absent while a turn is open or before one closes. */
24
24
  lastTurnCompleted?: boolean | undefined;
25
25
  }
26
- declare module '@deepseek-ai/dsh-session-projection/types' {
27
- interface SessionProjectionStateMap {
28
- subagentTiming: TimingState;
29
- subagent: IdentityState;
30
- }
31
- }
32
26
  /**
33
27
  * Fold turn boundaries around the child's own durable descriptor.
34
28
  *
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Subagent",
4
+ "description": "Verwalten Sie das Subagenten-Backend und stellen Sie eine einheitliche Schnittstelle für die Aufgabendelegierung bereit."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "subagente",
4
+ "description": "Administre el backend del subagente y proporcione una interfaz unificada para la delegación de tareas."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "sous-agent",
4
+ "description": "Gérez le backend du sous-agent et fournissez une interface unifiée pour la délégation de tâches."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "サブエージェントサービス",
4
+ "description": "サブエージェントのバックエンドを管理し、タスク委派用の共通インターフェースを提供します。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "subagente",
4
+ "description": "Gerencie o back-end do subagente e forneça uma interface unificada para delegação de 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-subagent",
3
3
  "description": "Abstract subagent seam (ctx.subagents): named-provider registry for delegating to child agents",
4
- "version": "0.2.1-rc.5",
4
+ "version": "0.2.2-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -50,33 +50,33 @@
50
50
  ],
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
- "@deepseek-ai/dsh-brand": "0.2.1-rc.5",
54
- "@deepseek-ai/dsh-chunked-list": "0.2.1-rc.5",
55
- "@deepseek-ai/dsh-util-values": "0.2.1-rc.5",
56
- "@deepseek-ai/schemastery": "~3.18.5",
53
+ "@deepseek-ai/dsh-brand": "0.2.2-alpha.3",
54
+ "@deepseek-ai/dsh-chunked-list": "0.2.2-alpha.3",
55
+ "@deepseek-ai/dsh-util-values": "0.2.2-alpha.3",
56
+ "@deepseek-ai/schemastery": "~3.18.6-alpha.2",
57
57
  "zod": "4.4.3"
58
58
  },
59
59
  "peerDependencies": {
60
- "@deepseek-ai/cordis": "~4.0.5",
61
- "@deepseek-ai/dsh-agent": "0.2.1-rc.5",
62
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.5",
63
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
64
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
65
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
66
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
67
- "@deepseek-ai/dsh-scope": "0.2.1-rc.5",
68
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
69
- "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
70
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
71
- "@deepseek-ai/dsh-session-query": "0.2.1-rc.5",
72
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
73
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
74
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.5",
75
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
76
- "@deepseek-ai/dsh-util-time": "0.2.1-rc.5",
77
- "@deepseek-ai/dsh-permission-presets": "0.2.1-rc.5",
78
- "@deepseek-ai/dsh-workspace": "0.2.1-rc.5",
79
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.5"
60
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
61
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
62
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.3",
63
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
64
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
65
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
66
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
67
+ "@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
68
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.3",
69
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.3",
70
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.3",
71
+ "@deepseek-ai/dsh-session-query": "0.2.2-alpha.3",
72
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
73
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
74
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
75
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
76
+ "@deepseek-ai/dsh-util-time": "0.2.2-alpha.3",
77
+ "@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.3",
78
+ "@deepseek-ai/dsh-workspace": "0.2.2-alpha.3",
79
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "@deepseek-ai/dsh-agent-preset-registry": {
@@ -94,9 +94,6 @@
94
94
  "@deepseek-ai/dsh-session-persistence": {
95
95
  "optional": true
96
96
  },
97
- "@deepseek-ai/dsh-session-projection": {
98
- "optional": true
99
- },
100
97
  "@deepseek-ai/dsh-session-query": {
101
98
  "optional": true
102
99
  },
@@ -108,32 +105,33 @@
108
105
  }
109
106
  },
110
107
  "devDependencies": {
111
- "@deepseek-ai/cordis": "~4.0.5",
112
- "@deepseek-ai/dsh-agent": "0.2.1-rc.5",
113
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.5",
114
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
115
- "@deepseek-ai/dsh-llm": "0.2.1-rc.5",
116
- "@deepseek-ai/dsh-sandbox": "0.2.1-rc.5",
117
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.5",
118
- "@deepseek-ai/dsh-scope": "0.2.1-rc.5",
119
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
120
- "@deepseek-ai/dsh-session-persistence": "0.2.1-rc.5",
121
- "@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
122
- "@deepseek-ai/dsh-session-query": "0.2.1-rc.5",
123
- "@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
124
- "@deepseek-ai/dsh-tools": "0.2.1-rc.5",
125
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.5",
126
- "@deepseek-ai/dsh-user-approval": "0.2.1-rc.5",
127
- "@deepseek-ai/dsh-util-time": "0.2.1-rc.5",
128
- "@deepseek-ai/dsh-permission-presets": "0.2.1-rc.5",
129
- "@deepseek-ai/dsh-workspace": "0.2.1-rc.5",
130
- "@deepseek-ai/cordis-plugin-include": "~1.0.10",
131
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
132
- "@deepseek-ai/dsh-agent-loop": "0.2.1-rc.5",
133
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-rc.5",
134
- "@deepseek-ai/dsh-fs-sandbox": "0.2.1-rc.5",
135
- "@deepseek-ai/dsh-tool-fs": "0.2.1-rc.5",
136
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.5",
137
- "@deepseek-ai/dsh-working-directory": "0.2.1-rc.5"
108
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
109
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
110
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.3",
111
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
112
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
113
+ "@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
114
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
115
+ "@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
116
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.3",
117
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.3",
118
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.3",
119
+ "@deepseek-ai/dsh-session-query": "0.2.2-alpha.3",
120
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
121
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.3",
122
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
123
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
124
+ "@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
125
+ "@deepseek-ai/dsh-util-time": "0.2.2-alpha.3",
126
+ "@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.3",
127
+ "@deepseek-ai/dsh-workspace": "0.2.2-alpha.3",
128
+ "@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.2",
129
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
130
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.3",
131
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.3",
132
+ "@deepseek-ai/dsh-fs-sandbox": "0.2.2-alpha.3",
133
+ "@deepseek-ai/dsh-tool-fs": "0.2.2-alpha.3",
134
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.3",
135
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3"
138
136
  }
139
137
  }