@deepseek-ai/dsh-cordis-host-runner 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/lib/index.js +1 -1
- package/lib/typert.host.js +28 -12
- package/lib/types/guard.js +1 -1
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +24 -22
package/lib/index.js
CHANGED
|
@@ -572,7 +572,7 @@ const TIMER_VERBS = new Set([
|
|
|
572
572
|
* metadata (`schemas`, and `get` returning a schema view, never the live
|
|
573
573
|
* `ToolDefinition`). Exposing the raw definition would hand package code the
|
|
574
574
|
* tool's `execute` function, letting it call another tool directly and bypass
|
|
575
|
-
* `
|
|
575
|
+
* `ToolsService.execute` — identity protection, pre-policy, monotonic guards,
|
|
576
576
|
* around dispatch, post-policy, final observation, and result normalization. So `get` returns the same
|
|
577
577
|
* name/description/parameters view as `schemas()`, and nothing invocable.
|
|
578
578
|
*/
|
package/lib/typert.host.js
CHANGED
|
@@ -1227,7 +1227,7 @@ export const TYPERT = {
|
|
|
1227
1227
|
},
|
|
1228
1228
|
{
|
|
1229
1229
|
"name": "Agent",
|
|
1230
|
-
"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}"
|
|
1230
|
+
"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}"
|
|
1231
1231
|
},
|
|
1232
1232
|
{
|
|
1233
1233
|
"name": "AgentCancelCause",
|
|
@@ -1239,7 +1239,7 @@ export const TYPERT = {
|
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
1241
|
"name": "AgentOptions",
|
|
1242
|
-
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
1242
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
1243
1243
|
},
|
|
1244
1244
|
{
|
|
1245
1245
|
"name": "AgentStatus",
|
|
@@ -1591,7 +1591,11 @@ export const TYPERT = {
|
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
1593
|
"name": "MessageSourceMap",
|
|
1594
|
-
"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 '
|
|
1594
|
+
"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}"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "Model",
|
|
1598
|
+
"declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
|
|
1595
1599
|
},
|
|
1596
1600
|
{
|
|
1597
1601
|
"name": "ModelMessageSource",
|
|
@@ -1599,7 +1603,7 @@ export const TYPERT = {
|
|
|
1599
1603
|
},
|
|
1600
1604
|
{
|
|
1601
1605
|
"name": "ModelSelection",
|
|
1602
|
-
"declaration": "export interface ModelSelection {\n
|
|
1606
|
+
"declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
|
|
1603
1607
|
},
|
|
1604
1608
|
{
|
|
1605
1609
|
"name": "OneShotScheduleDispatchChange",
|
|
@@ -1619,7 +1623,7 @@ export const TYPERT = {
|
|
|
1619
1623
|
},
|
|
1620
1624
|
{
|
|
1621
1625
|
"name": "PrincipalMap",
|
|
1622
|
-
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
|
|
1626
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n 'share-viewer': ShareViewerPrincipal;\n}"
|
|
1623
1627
|
},
|
|
1624
1628
|
{
|
|
1625
1629
|
"name": "ProviderRequestId",
|
|
@@ -1691,7 +1695,7 @@ export const TYPERT = {
|
|
|
1691
1695
|
},
|
|
1692
1696
|
{
|
|
1693
1697
|
"name": "SessionEventMap",
|
|
1694
|
-
"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 '
|
|
1698
|
+
"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}"
|
|
1695
1699
|
},
|
|
1696
1700
|
{
|
|
1697
1701
|
"name": "SessionEventType",
|
|
@@ -1741,6 +1745,10 @@ export const TYPERT = {
|
|
|
1741
1745
|
"name": "SessionTitleSource",
|
|
1742
1746
|
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
1743
1747
|
},
|
|
1748
|
+
{
|
|
1749
|
+
"name": "ShareViewerPrincipal",
|
|
1750
|
+
"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}"
|
|
1751
|
+
},
|
|
1744
1752
|
{
|
|
1745
1753
|
"name": "SkillInvocationSource",
|
|
1746
1754
|
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
@@ -2066,7 +2074,7 @@ export const TYPERT = {
|
|
|
2066
2074
|
},
|
|
2067
2075
|
{
|
|
2068
2076
|
"name": "Agent",
|
|
2069
|
-
"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}"
|
|
2077
|
+
"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}"
|
|
2070
2078
|
},
|
|
2071
2079
|
{
|
|
2072
2080
|
"name": "AgentCancelCause",
|
|
@@ -2078,7 +2086,7 @@ export const TYPERT = {
|
|
|
2078
2086
|
},
|
|
2079
2087
|
{
|
|
2080
2088
|
"name": "AgentOptions",
|
|
2081
|
-
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
2089
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
2082
2090
|
},
|
|
2083
2091
|
{
|
|
2084
2092
|
"name": "AgentStatus",
|
|
@@ -2522,7 +2530,11 @@ export const TYPERT = {
|
|
|
2522
2530
|
},
|
|
2523
2531
|
{
|
|
2524
2532
|
"name": "MessageSourceMap",
|
|
2525
|
-
"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 '
|
|
2533
|
+
"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}"
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
"name": "Model",
|
|
2537
|
+
"declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
|
|
2526
2538
|
},
|
|
2527
2539
|
{
|
|
2528
2540
|
"name": "ModelMessageSource",
|
|
@@ -2530,7 +2542,7 @@ export const TYPERT = {
|
|
|
2530
2542
|
},
|
|
2531
2543
|
{
|
|
2532
2544
|
"name": "ModelSelection",
|
|
2533
|
-
"declaration": "export interface ModelSelection {\n
|
|
2545
|
+
"declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
|
|
2534
2546
|
},
|
|
2535
2547
|
{
|
|
2536
2548
|
"name": "OneShotScheduleDispatchChange",
|
|
@@ -2550,7 +2562,7 @@ export const TYPERT = {
|
|
|
2550
2562
|
},
|
|
2551
2563
|
{
|
|
2552
2564
|
"name": "PrincipalMap",
|
|
2553
|
-
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
|
|
2565
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n 'share-viewer': ShareViewerPrincipal;\n}"
|
|
2554
2566
|
},
|
|
2555
2567
|
{
|
|
2556
2568
|
"name": "ProviderRequestId",
|
|
@@ -2622,7 +2634,7 @@ export const TYPERT = {
|
|
|
2622
2634
|
},
|
|
2623
2635
|
{
|
|
2624
2636
|
"name": "SessionEventMap",
|
|
2625
|
-
"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 '
|
|
2637
|
+
"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}"
|
|
2626
2638
|
},
|
|
2627
2639
|
{
|
|
2628
2640
|
"name": "SessionEventType",
|
|
@@ -2672,6 +2684,10 @@ export const TYPERT = {
|
|
|
2672
2684
|
"name": "SessionTitleSource",
|
|
2673
2685
|
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
2674
2686
|
},
|
|
2687
|
+
{
|
|
2688
|
+
"name": "ShareViewerPrincipal",
|
|
2689
|
+
"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}"
|
|
2690
|
+
},
|
|
2675
2691
|
{
|
|
2676
2692
|
"name": "SkillInvocationSource",
|
|
2677
2693
|
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
package/lib/types/guard.js
CHANGED
|
@@ -573,7 +573,7 @@ const TIMER_VERBS = new Set(['timeout', 'interval', 'setTimeout', 'setInterval',
|
|
|
573
573
|
* metadata (`schemas`, and `get` returning a schema view, never the live
|
|
574
574
|
* `ToolDefinition`). Exposing the raw definition would hand package code the
|
|
575
575
|
* tool's `execute` function, letting it call another tool directly and bypass
|
|
576
|
-
* `
|
|
576
|
+
* `ToolsService.execute` — identity protection, pre-policy, monotonic guards,
|
|
577
577
|
* around dispatch, post-policy, final observation, and result normalization. So `get` returns the same
|
|
578
578
|
* name/description/parameters view as `schemas()`, and nothing invocable.
|
|
579
579
|
*/
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-cordis-host-runner",
|
|
3
3
|
"description": "Dynamic package definition registry, host-half sandbox lifecycle, and invoke handler table for model-mounted dual-half packages",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -46,31 +46,33 @@
|
|
|
46
46
|
],
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-util-values": "0.2.
|
|
50
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
49
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-alpha.3",
|
|
50
|
+
"@deepseek-ai/schemastery": "~3.18.6-alpha.2",
|
|
51
51
|
"zod": "4.4.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
55
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
56
|
-
"@deepseek-ai/dsh-brand": "0.2.
|
|
57
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
58
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
59
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
60
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
61
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
54
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
|
|
56
|
+
"@deepseek-ai/dsh-brand": "0.2.2-alpha.3",
|
|
57
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
|
|
58
|
+
"@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
|
|
59
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.3",
|
|
60
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
|
|
61
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
65
|
-
"@deepseek-ai/cordis-plugin-timer": "~1.1.
|
|
66
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
67
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.
|
|
68
|
-
"@deepseek-ai/dsh-api-remote-access": "0.2.
|
|
69
|
-
"@deepseek-ai/dsh-brand": "0.2.
|
|
70
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
71
|
-
"@deepseek-ai/dsh-scope": "0.2.
|
|
72
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-
|
|
64
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2",
|
|
65
|
+
"@deepseek-ai/cordis-plugin-timer": "~1.1.8-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
|
|
67
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-alpha.3",
|
|
68
|
+
"@deepseek-ai/dsh-api-remote-access": "0.2.2-alpha.3",
|
|
69
|
+
"@deepseek-ai/dsh-brand": "0.2.2-alpha.3",
|
|
70
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
|
|
71
|
+
"@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
|
|
72
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.3",
|
|
73
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.3",
|
|
74
|
+
"@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.3",
|
|
75
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
|
|
76
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3"
|
|
75
77
|
}
|
|
76
78
|
}
|