@deepseek-ai/dsh-plugin-recommendations 0.0.0-stage → 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/LICENSE +21 -0
- package/README.i18n.yaml +49 -0
- package/README.md +100 -2
- package/README.zh.md +101 -0
- package/icon.svg +9 -0
- package/lib/index.js +287 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +781 -0
- package/lib/typert.remote-client.d.ts +30 -0
- package/lib/typert.remote-client.js +90 -0
- package/lib/types/index.d.ts +46 -0
- package/lib/types/index.js +194 -0
- package/lib/types/skill.d.ts +12 -0
- package/lib/types/skill.js +41 -0
- package/lib/types/types.d.ts +32 -0
- package/lib/types/types.js +2 -0
- package/locale/de.json +6 -0
- package/locale/en.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/locale/zh.json +6 -0
- package/package.json +72 -3
- package/skills/official-plugins.md +23 -0
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
|
|
5
|
+
|
|
6
|
+
let _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0$schema$value
|
|
7
|
+
const _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0$schema$value ??= z.string())
|
|
8
|
+
let _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1$schema$value
|
|
9
|
+
const _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1$schema$value ??= z.string())
|
|
10
|
+
let _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_result$schema$value
|
|
11
|
+
const _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_result$schema = () => (_deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_result$schema$value ??= z.union([z.object({
|
|
12
|
+
'status': z.literal("available").readonly(),
|
|
13
|
+
'title': z.union([z.string(), z.intersection(z.object({
|
|
14
|
+
'en': z.string().readonly(),
|
|
15
|
+
}), z.record(z.string(), z.string()).readonly())]).readonly(),
|
|
16
|
+
'description': z.union([z.string(), z.intersection(z.object({
|
|
17
|
+
'en': z.string().readonly(),
|
|
18
|
+
}), z.record(z.string(), z.string()).readonly())]).readonly(),
|
|
19
|
+
'enabled': z.boolean().readonly(),
|
|
20
|
+
}), z.object({
|
|
21
|
+
'status': z.literal("refused").readonly(),
|
|
22
|
+
'reason': z.union([z.literal("unknown"), z.literal("unavailable"), z.literal("not-live-root"), z.literal("closing")]).readonly(),
|
|
23
|
+
})]))
|
|
24
|
+
let _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0_strict$schema$value
|
|
25
|
+
const _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0_strict$schema$value ??= z.string())
|
|
26
|
+
let _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1_strict$schema$value
|
|
27
|
+
const _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1_strict$schema$value ??= z.string())
|
|
28
|
+
|
|
29
|
+
const $remote = createTypertRemoteInfo({
|
|
30
|
+
package: '@deepseek-ai/dsh-plugin-recommendations',
|
|
31
|
+
methods: {
|
|
32
|
+
'pluginRecommendations/describe': {
|
|
33
|
+
service: 'pluginRecommendations',
|
|
34
|
+
description: 'Read the current catalog text for a logged card.',
|
|
35
|
+
invocation: { kind: 'direct' },
|
|
36
|
+
scope: {
|
|
37
|
+
context: 'agent',
|
|
38
|
+
wire: 'agentId',
|
|
39
|
+
},
|
|
40
|
+
parameters: [
|
|
41
|
+
{
|
|
42
|
+
name: 'agent',
|
|
43
|
+
wire: 'agentId',
|
|
44
|
+
description: 'Exact live root resolved by the Gateway from the Session id.',
|
|
45
|
+
source: 'lookup',
|
|
46
|
+
lookup: 'agent',
|
|
47
|
+
codec: {
|
|
48
|
+
mode: 'strict',
|
|
49
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
50
|
+
create: _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0$schema,
|
|
51
|
+
jsonSchema: {"type":"string"},
|
|
52
|
+
},
|
|
53
|
+
strictCodec: {
|
|
54
|
+
mode: 'strict',
|
|
55
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
56
|
+
create: _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_0_strict$schema,
|
|
57
|
+
jsonSchema: {"type":"string"},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'callId',
|
|
62
|
+
description: 'The card\'s `propose_action` call id, never a package supplied by the browser.',
|
|
63
|
+
source: 'json',
|
|
64
|
+
codec: {
|
|
65
|
+
mode: 'strict',
|
|
66
|
+
typeSymbol: '@deepseek-ai/dsh-llm/brand#ToolCallId',
|
|
67
|
+
create: _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1$schema,
|
|
68
|
+
jsonSchema: {"type":"string"},
|
|
69
|
+
},
|
|
70
|
+
strictCodec: {
|
|
71
|
+
mode: 'strict',
|
|
72
|
+
typeSymbol: '@deepseek-ai/dsh-llm/brand#ToolCallId',
|
|
73
|
+
create: _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_parameter_1_strict$schema,
|
|
74
|
+
jsonSchema: {"type":"string"},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
result: {
|
|
79
|
+
mode: 'strict',
|
|
80
|
+
typeSymbol: '@deepseek-ai/dsh-plugin-recommendations/types#RecommendationDetails',
|
|
81
|
+
create: _deepseek_ai_dsh_plugin_recommendations_pluginRecommendations_describe_result$schema,
|
|
82
|
+
description: 'the plugin\'s title, description and selection, or a refusal when the card names no available official plugin.',
|
|
83
|
+
jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
|
|
84
|
+
},
|
|
85
|
+
sourceLocation: {"file":"packages/experimental/plugin-recommendations/src/index.ts","line":88,"column":9},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
}, z)
|
|
89
|
+
|
|
90
|
+
export const TYPERT = {
|
|
91
|
+
package: '@deepseek-ai/dsh-plugin-recommendations',
|
|
92
|
+
face: 'host',
|
|
93
|
+
schemas: [
|
|
94
|
+
],
|
|
95
|
+
get invocations() { return $remote.descriptors },
|
|
96
|
+
model: {
|
|
97
|
+
"services": [
|
|
98
|
+
{
|
|
99
|
+
"description": "Catalog lookups for card text and the enabling behind the `enable_official_plugin` card.",
|
|
100
|
+
"summary": "Catalog lookups for card text and the enabling behind the `enable_official_plugin` card.",
|
|
101
|
+
"tags": [],
|
|
102
|
+
"jsDoc": "/** Catalog lookups for card text and the enabling behind the `enable_official_plugin` card. */",
|
|
103
|
+
"key": "pluginRecommendations",
|
|
104
|
+
"exportName": "PluginRecommendations",
|
|
105
|
+
"members": [
|
|
106
|
+
{
|
|
107
|
+
"kind": "method",
|
|
108
|
+
"name": "describe",
|
|
109
|
+
"signature": "@Remote async describe(agent: Agent, callId: ToolCallId): Promise<RecommendationDetails>",
|
|
110
|
+
"summary": "Read the current catalog text for a logged card.",
|
|
111
|
+
"jsDoc": "/**\n * Read the current catalog text for a logged card.\n * @param agent - Exact live root resolved by the Gateway from the Session id.\n * @param callId - The card's `propose_action` call id, never a package supplied by the browser.\n * @returns the plugin's title, description and selection, or a refusal when the card names no available official plugin.\n */"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"types": [
|
|
115
|
+
{
|
|
116
|
+
"name": "AfterScheduleRecord",
|
|
117
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "Agent",
|
|
121
|
+
"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}"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "AgentCancelCause",
|
|
125
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "AgentMessageSource",
|
|
129
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "AgentOptions",
|
|
133
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "AgentStatus",
|
|
137
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "AllowedModelRoute",
|
|
141
|
+
"declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "ApprovalOutcome",
|
|
145
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "ApprovalPolicy",
|
|
149
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "ApprovalRequestId",
|
|
153
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "AssistantMessage",
|
|
157
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "AssistantProviderMetadata",
|
|
161
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "AssistantStreamRecord",
|
|
165
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "AtScheduleRecord",
|
|
169
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "AttachmentId",
|
|
173
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "Branded",
|
|
177
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "BrandedNumber",
|
|
181
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "CancelOptions",
|
|
185
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "CommandId",
|
|
189
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "CommandSource",
|
|
193
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "CommandSourceMap",
|
|
197
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "CompactionCheckpointSource",
|
|
201
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "CompactionId",
|
|
205
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "ContentBlock",
|
|
209
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "ContentBlockMap",
|
|
213
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "ContentBlockType",
|
|
217
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "ContextFormed",
|
|
221
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "ContextSnapshotSection",
|
|
225
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
229
|
+
"declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "DeveloperMessage",
|
|
233
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "EpochHeader",
|
|
237
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "EveryScheduleDispatchChange",
|
|
241
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "EveryScheduleRecord",
|
|
245
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "FeedbackCategory",
|
|
249
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "FeedbackRecord",
|
|
253
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "FileAttachmentRef",
|
|
257
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "FileBlock",
|
|
261
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "FinishReason",
|
|
265
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "FinishReasonMap",
|
|
269
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "GoalBlockReason",
|
|
273
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "GoalChangeMeta",
|
|
277
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "GoalClearChangeMeta",
|
|
281
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "GoalId",
|
|
285
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"name": "GoalMessageSource",
|
|
289
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "GoalOperation",
|
|
293
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "GoalPhase",
|
|
297
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"name": "GoalRef",
|
|
301
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "GoalSnapshot",
|
|
305
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "GoalSnapshotChangeMeta",
|
|
309
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "ImageAttachmentRef",
|
|
313
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "ImageBlock",
|
|
317
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "ImageMediaType",
|
|
321
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "ImageOffloadTarget",
|
|
325
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "Inbox",
|
|
329
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "InboxTarget",
|
|
333
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "JobId",
|
|
337
|
+
"declaration": "export type JobId = Branded<'JobId'>;"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "JobOutcome",
|
|
341
|
+
"declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "JobRegisteredData",
|
|
345
|
+
"declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "JobSettleCause",
|
|
349
|
+
"declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "JobSettledData",
|
|
353
|
+
"declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "JobToolCall",
|
|
357
|
+
"declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "JsonValue",
|
|
361
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "KnownCatalogMode",
|
|
365
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "LegacyAfterScheduleRecord",
|
|
369
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "LegacyAtScheduleRecord",
|
|
373
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "LegacyEveryScheduleRecord",
|
|
377
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"name": "LegacyScheduleRecord",
|
|
381
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "LlmCallConfig",
|
|
385
|
+
"declaration": "export interface LlmCallConfig extends LlmCallControls {\n provider: string;\n model: string;\n}"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
389
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "LlmCallControls",
|
|
393
|
+
"declaration": "export interface LlmCallControls {\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "LlmFailure",
|
|
397
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"name": "LlmRetryEventData",
|
|
401
|
+
"declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "LlmRetryStartedEventData",
|
|
405
|
+
"declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "LocalizedText",
|
|
409
|
+
"declaration": "export type LocalizedText = string | { readonly en: string; readonly [locale: string]: string; };"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"name": "Message",
|
|
413
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "MessageBase",
|
|
417
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "MessageFeedbackDelete",
|
|
421
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "MessageFeedbackItem",
|
|
425
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "MessageFeedbackPut",
|
|
429
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "MessageFeedbackRating",
|
|
433
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "MessageFeedbackVersion",
|
|
437
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "MessageId",
|
|
441
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "MessageRoleMap",
|
|
445
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "MessageSource",
|
|
449
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "MessageSourceMap",
|
|
453
|
+
"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}"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "Model",
|
|
457
|
+
"declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "ModelMessageSource",
|
|
461
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "ModelSelection",
|
|
465
|
+
"declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "OneShotScheduleDispatchChange",
|
|
469
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "OneShotSubagentDescriptorData",
|
|
473
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "OptionalSessionSeq",
|
|
477
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "Principal",
|
|
481
|
+
"declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "PrincipalMap",
|
|
485
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n 'share-viewer': ShareViewerPrincipal;\n}"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "ProviderRequestId",
|
|
489
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "PtcDispatchEventData",
|
|
493
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n meta?: JsonValue;\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "PtcDispatchStartEventData",
|
|
497
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "ReasoningBlock",
|
|
501
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "ReasoningEffortId",
|
|
505
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "RecommendationDetails",
|
|
509
|
+
"declaration": "export type RecommendationDetails = { readonly status: 'available'; readonly title: LocalizedText; readonly description: LocalizedText; readonly enabled: boolean; } | { readonly status: 'refused'; readonly reason: 'unknown' | 'unavailable' | 'not-live-root' | 'closing'; };"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "ReplayEnvelope",
|
|
513
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "RequestContext",
|
|
517
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "RequestHeaderReason",
|
|
521
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "RetryId",
|
|
525
|
+
"declaration": "export type RetryId = Branded<'RetryId'>;"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "SandboxMode",
|
|
529
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "ScheduleChange",
|
|
533
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "ScheduleCreateChange",
|
|
537
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "ScheduleDeleteChange",
|
|
541
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "ScheduleDispatchChange",
|
|
545
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "ScheduleId",
|
|
549
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"name": "Session",
|
|
553
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "SessionEvent",
|
|
557
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "SessionEventMap",
|
|
561
|
+
"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}"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "SessionEventType",
|
|
565
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "SessionHeader",
|
|
569
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "SessionId",
|
|
573
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "SessionLogOffset",
|
|
577
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "SessionReferenceSource",
|
|
581
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "SessionRequestId",
|
|
585
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "SessionSeq",
|
|
589
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "SessionSurface",
|
|
593
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "SessionTitleEventData",
|
|
597
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "SessionTitleModelIdentity",
|
|
601
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "SessionTitleProviderId",
|
|
605
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "SessionTitleSource",
|
|
609
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"name": "ShareViewerPrincipal",
|
|
613
|
+
"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}"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"name": "SkillInvocationSource",
|
|
617
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "StreamChunk",
|
|
621
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "SubagentCatalogEvent",
|
|
625
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; });"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "SubagentDescriptorBase",
|
|
629
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "SubagentDescriptorData",
|
|
633
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "SubagentSettledMessageSource",
|
|
637
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "SurfaceEventType",
|
|
641
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "SurfaceIntent",
|
|
645
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "SurfaceOp",
|
|
649
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"name": "SystemMessage",
|
|
653
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"name": "SystemPromptMessageSource",
|
|
657
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "SystemPromptUpdate",
|
|
661
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "TeamId",
|
|
665
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "TeamMemberPhase",
|
|
669
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "TeamMemberSnapshot",
|
|
673
|
+
"declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "TeamMessageId",
|
|
677
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"name": "TeamMessageSnapshot",
|
|
681
|
+
"declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "TeamMessageSource",
|
|
685
|
+
"declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "TeamTaskId",
|
|
689
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "TeamTaskSnapshot",
|
|
693
|
+
"declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"name": "TeamTaskStatus",
|
|
697
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "TextBlock",
|
|
701
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "TodoItem",
|
|
705
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"name": "TokenUsage",
|
|
709
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "ToolAdditionBlock",
|
|
713
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "ToolCallBlock",
|
|
717
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "ToolCallId",
|
|
721
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "ToolHistory",
|
|
725
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
"name": "ToolMessageSource",
|
|
729
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "ToolRemovalBlock",
|
|
733
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"name": "ToolRestriction",
|
|
737
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "ToolResultMessage",
|
|
741
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"name": "ToolSchema",
|
|
745
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "TurnEndCancelCause",
|
|
749
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "TurnEndReason",
|
|
753
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"name": "TurnEndReasonMap",
|
|
757
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "UserMessage",
|
|
761
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "WebhookDeliveryId",
|
|
765
|
+
"declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "WebhookRuleId",
|
|
769
|
+
"declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "WebhookSourceId",
|
|
773
|
+
"declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
|
|
774
|
+
}
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"events": [],
|
|
779
|
+
"objects": []
|
|
780
|
+
},
|
|
781
|
+
}
|