@qilin-agent/experimental-agent-team 0.0.0-stage → 3.1.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 +103 -0
- package/README.md +227 -2
- package/README.zh.md +228 -0
- package/lib/index.js +2002 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +875 -0
- package/lib/typert.remote-client.d.ts +30 -0
- package/lib/typert.remote-client.js +141 -0
- package/lib/types/activity.d.ts +23 -0
- package/lib/types/activity.js +85 -0
- package/lib/types/client.d.ts +8 -0
- package/lib/types/client.js +3 -0
- package/lib/types/error.d.ts +13 -0
- package/lib/types/error.js +23 -0
- package/lib/types/index.d.ts +142 -0
- package/lib/types/index.js +306 -0
- package/lib/types/journal.d.ts +39 -0
- package/lib/types/journal.js +63 -0
- package/lib/types/lifecycle.d.ts +33 -0
- package/lib/types/lifecycle.js +85 -0
- package/lib/types/mailbox.d.ts +78 -0
- package/lib/types/mailbox.js +293 -0
- package/lib/types/persisted.d.ts +20 -0
- package/lib/types/persisted.js +20 -0
- package/lib/types/projection.d.ts +66 -0
- package/lib/types/projection.js +327 -0
- package/lib/types/remote.d.ts +31 -0
- package/lib/types/remote.js +22 -0
- package/lib/types/roster.d.ts +113 -0
- package/lib/types/roster.js +452 -0
- package/lib/types/session-message.d.ts +11 -0
- package/lib/types/session-message.js +23 -0
- package/lib/types/task-board.d.ts +53 -0
- package/lib/types/task-board.js +235 -0
- package/lib/types/task-graph.d.ts +21 -0
- package/lib/types/task-graph.js +62 -0
- package/lib/types/task-view.d.ts +21 -0
- package/lib/types/task-view.js +57 -0
- package/lib/types/types.d.ts +215 -0
- package/lib/types/types.js +26 -0
- package/lib/types/validation.d.ts +16 -0
- package/lib/types/validation.js +33 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +83 -3
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
/* Generated by @qilin-agent/typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value
|
|
5
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
6
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value
|
|
7
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value ??= z.object({
|
|
8
|
+
'subject': z.string().readonly(),
|
|
9
|
+
'description': z.string().readonly(),
|
|
10
|
+
'blockedBy': z.array(z.intersection(z.string(), z.unknown())).readonly().optional(),
|
|
11
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
12
|
+
}))
|
|
13
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value
|
|
14
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value ??= z.object({
|
|
15
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
16
|
+
'revision': z.number().readonly(),
|
|
17
|
+
'subject': z.string().readonly(),
|
|
18
|
+
'description': z.string().readonly(),
|
|
19
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
20
|
+
'blockedBy': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
21
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
22
|
+
'ownerName': z.string().readonly().optional(),
|
|
23
|
+
'ready': z.boolean().readonly(),
|
|
24
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
25
|
+
}))
|
|
26
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value
|
|
27
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
28
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value
|
|
29
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value ??= z.object({
|
|
30
|
+
'taskId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
31
|
+
'expectedRevision': z.number().readonly(),
|
|
32
|
+
'action': z.union([z.literal("complete"), z.literal("edit"), z.literal("claim"), z.literal("release"), z.literal("set_dependencies"), z.literal("reopen"), z.literal("reassign"), z.literal("delete")]).readonly(),
|
|
33
|
+
'subject': z.string().readonly().optional(),
|
|
34
|
+
'description': z.string().readonly().optional(),
|
|
35
|
+
'blockedBy': z.array(z.intersection(z.string(), z.unknown())).readonly().optional(),
|
|
36
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
37
|
+
'owner': z.string().readonly().optional(),
|
|
38
|
+
}))
|
|
39
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value
|
|
40
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value ??= z.object({
|
|
41
|
+
'id': z.intersection(z.string(), z.unknown()).readonly(),
|
|
42
|
+
'revision': z.number().readonly(),
|
|
43
|
+
'subject': z.string().readonly(),
|
|
44
|
+
'description': z.string().readonly(),
|
|
45
|
+
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
46
|
+
'blockedBy': z.array(z.intersection(z.string(), z.unknown())).readonly(),
|
|
47
|
+
'writeScopes': z.array(z.string()).readonly(),
|
|
48
|
+
'ownerName': z.string().readonly().optional(),
|
|
49
|
+
'ready': z.boolean().readonly(),
|
|
50
|
+
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
51
|
+
}))
|
|
52
|
+
|
|
53
|
+
export const TYPERT = {
|
|
54
|
+
package: '@qilin-agent/experimental-agent-team',
|
|
55
|
+
face: 'host',
|
|
56
|
+
schemas: [
|
|
57
|
+
],
|
|
58
|
+
invocations: [
|
|
59
|
+
{
|
|
60
|
+
id: '@qilin-agent/experimental-agent-team#agentTeams/createTask',
|
|
61
|
+
service: 'agentTeams',
|
|
62
|
+
namespace: 'agentTeams',
|
|
63
|
+
method: 'createTask',
|
|
64
|
+
implementation: 'remoteCreateTask',
|
|
65
|
+
invocation: { kind: 'direct' },
|
|
66
|
+
scope: {
|
|
67
|
+
context: 'agent',
|
|
68
|
+
wire: 'agentId',
|
|
69
|
+
},
|
|
70
|
+
parameters: [
|
|
71
|
+
{
|
|
72
|
+
name: 'agent',
|
|
73
|
+
wire: 'agentId',
|
|
74
|
+
source: 'lookup',
|
|
75
|
+
lookup: 'agent',
|
|
76
|
+
codec: {
|
|
77
|
+
mode: 'strict',
|
|
78
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
79
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'request',
|
|
84
|
+
wire: 'request',
|
|
85
|
+
source: 'json',
|
|
86
|
+
codec: {
|
|
87
|
+
mode: 'strict',
|
|
88
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#CreateTeamTaskRequest',
|
|
89
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
result: {
|
|
94
|
+
mode: 'strict',
|
|
95
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
96
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema,
|
|
97
|
+
},
|
|
98
|
+
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":220,"column":9},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: '@qilin-agent/experimental-agent-team#agentTeams/updateTask',
|
|
102
|
+
service: 'agentTeams',
|
|
103
|
+
namespace: 'agentTeams',
|
|
104
|
+
method: 'updateTask',
|
|
105
|
+
implementation: 'remoteUpdateTask',
|
|
106
|
+
invocation: { kind: 'direct' },
|
|
107
|
+
scope: {
|
|
108
|
+
context: 'agent',
|
|
109
|
+
wire: 'agentId',
|
|
110
|
+
},
|
|
111
|
+
parameters: [
|
|
112
|
+
{
|
|
113
|
+
name: 'agent',
|
|
114
|
+
wire: 'agentId',
|
|
115
|
+
source: 'lookup',
|
|
116
|
+
lookup: 'agent',
|
|
117
|
+
codec: {
|
|
118
|
+
mode: 'strict',
|
|
119
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
120
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: 'request',
|
|
125
|
+
wire: 'request',
|
|
126
|
+
source: 'json',
|
|
127
|
+
codec: {
|
|
128
|
+
mode: 'strict',
|
|
129
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#UpdateTeamTaskRequest',
|
|
130
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
result: {
|
|
135
|
+
mode: 'strict',
|
|
136
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
137
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema,
|
|
138
|
+
},
|
|
139
|
+
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":240,"column":9},
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
model: {
|
|
143
|
+
"services": [
|
|
144
|
+
{
|
|
145
|
+
"description": "Agent Teams service backed by the exact live Lead Session log. `createTask` and `updateTask` also carry the browser write bridge through the `agentTeams` Typert Remote namespace; the wire faces map domain failures onto the shared Remote failure vocabulary without changing the domain methods' contracts.",
|
|
146
|
+
"summary": "Agent Teams service backed by the exact live Lead Session log.",
|
|
147
|
+
"tags": [],
|
|
148
|
+
"jsDoc": "/**\n * Agent Teams service backed by the exact live Lead Session log. `createTask`\n * and `updateTask` also carry the browser write bridge through the `agentTeams`\n * Typert Remote namespace; the wire faces map domain failures onto the shared\n * Remote failure vocabulary without changing the domain methods' contracts.\n */",
|
|
149
|
+
"key": "agentTeams",
|
|
150
|
+
"exportName": "TeamService",
|
|
151
|
+
"members": [
|
|
152
|
+
{
|
|
153
|
+
"kind": "method",
|
|
154
|
+
"name": "membership",
|
|
155
|
+
"signature": "membership(agent: Agent): TeamMembership",
|
|
156
|
+
"summary": "Resolve one exact live Agent's Team role.",
|
|
157
|
+
"jsDoc": "/**\n * Resolve one exact live Agent's Team role.\n * @param agent - exact live Agent used as the authority credential.\n * @returns its root, Team identity, role, and model-facing name.\n */"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "method",
|
|
161
|
+
"name": "listMembers",
|
|
162
|
+
"signature": "listMembers(agent: Agent): TeamMemberView[]",
|
|
163
|
+
"summary": "List the runtime-enriched roster visible to one Team member.",
|
|
164
|
+
"jsDoc": "/**\n * List the runtime-enriched roster visible to one Team member.\n * @param agent - exact live Team member.\n * @returns Lead and teammate rows in creation order.\n */"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"kind": "method",
|
|
168
|
+
"name": "spawnTeammate",
|
|
169
|
+
"signature": "async spawnTeammate(caller: Agent, request: SpawnTeammateRequest): Promise<SpawnTeammateResult>",
|
|
170
|
+
"summary": "Create one named, continuable direct child of the Team Lead.",
|
|
171
|
+
"jsDoc": "/**\n * Create one named, continuable direct child of the Team Lead.\n * @param caller - exact live Lead Agent.\n * @param request - immutable name, description, prompt, context mode, provider, and cancellation.\n * @returns the active roster row.\n */"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"kind": "method",
|
|
175
|
+
"name": "sendMessage",
|
|
176
|
+
"signature": "async sendMessage(caller: Agent, request: SendTeamMessageRequest): Promise<SendTeamMessageResult>",
|
|
177
|
+
"summary": "Queue one durable peer message, then attempt immediate delivery.",
|
|
178
|
+
"jsDoc": "/**\n * Queue one durable peer message, then attempt immediate delivery.\n * @param caller - exact live sending Team member.\n * @param request - target name, content, and pre-queue cancellation.\n * @returns durable message identity and immediate-delivery observation.\n */"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "method",
|
|
182
|
+
"name": "createTask",
|
|
183
|
+
"signature": "async createTask(caller: Agent, request: CreateTeamTaskRequest): Promise<TeamTaskView>",
|
|
184
|
+
"summary": "Create one unowned pending task in the Team Lead log.",
|
|
185
|
+
"jsDoc": "/**\n * Create one unowned pending task in the Team Lead log.\n * @param caller - exact live Team member creating the task.\n * @param request - task text, blockers, and advisory write scopes.\n * @returns the revision-one task view.\n */"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"kind": "method",
|
|
189
|
+
"name": "getTask",
|
|
190
|
+
"signature": "getTask(caller: Agent, id: TeamTaskId): TeamTaskView",
|
|
191
|
+
"summary": "Return one task, including a deleted tombstone.",
|
|
192
|
+
"jsDoc": "/**\n * Return one task, including a deleted tombstone.\n * @param caller - exact live Team member reading the task.\n * @param id - Team-local task identity.\n * @returns the latest task value and derived readiness diagnostics.\n */"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "method",
|
|
196
|
+
"name": "listTasks",
|
|
197
|
+
"signature": "listTasks(caller: Agent): TeamTaskView[]",
|
|
198
|
+
"summary": "List current non-deleted tasks in numeric creation order.",
|
|
199
|
+
"jsDoc": "/**\n * List current non-deleted tasks in numeric creation order.\n * @param caller - exact live Team member reading the board.\n * @returns detached current task views.\n */"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "method",
|
|
203
|
+
"name": "updateTask",
|
|
204
|
+
"signature": "async updateTask(caller: Agent, request: UpdateTeamTaskRequest): Promise<TeamTaskView>",
|
|
205
|
+
"summary": "Compare-and-set one authorized task transition.",
|
|
206
|
+
"jsDoc": "/**\n * Compare-and-set one authorized task transition.\n * @param caller - exact live Team member authorizing the mutation.\n * @param request - task identity, expected revision, action, and action fields.\n * @returns the committed next task revision.\n */"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"kind": "method",
|
|
210
|
+
"name": "remoteCreateTask",
|
|
211
|
+
"signature": "@Remote('createTask') async remoteCreateTask(agent: Agent, request: CreateTeamTaskRequest): Promise<TeamTaskView>",
|
|
212
|
+
"summary": "Wire face of {@link TeamService.createTask}: create one shared task on a person's behalf through the browser write bridge.",
|
|
213
|
+
"jsDoc": "/**\n * Wire face of {@link TeamService.createTask}: create one shared task on a\n * person's behalf through the browser write bridge.\n * @param agent - exact live Team member resolved from the wire identity.\n * @param request - subject, description, optional blockers, and optional write scopes.\n * @returns the revision-one task view.\n * @throws {RemoteError} `agent-team/not-a-member` when the identity is not a Team member, and\n * `agent-team/rejected` when the domain refuses the request.\n */"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "method",
|
|
217
|
+
"name": "remoteUpdateTask",
|
|
218
|
+
"signature": "@Remote('updateTask') async remoteUpdateTask(agent: Agent, request: UpdateTeamTaskRequest): Promise<TeamTaskView>",
|
|
219
|
+
"summary": "Wire face of {@link TeamService.updateTask}: commit one compare-and-set task transition on a person's behalf.",
|
|
220
|
+
"jsDoc": "/**\n * Wire face of {@link TeamService.updateTask}: commit one compare-and-set\n * task transition on a person's behalf. A committed mutation is durable and\n * never undone by a later wire cancellation.\n * @param agent - exact live Team member resolved from the wire identity.\n * @param request - task identity, expected revision, action, and action fields.\n * @returns the committed next task view.\n * @throws {RemoteError} `agent-team/not-a-member` when the identity is not a Team member,\n * `agent-team/stale-revision` when the expected revision no longer matches, and\n * `agent-team/rejected` when the domain refuses the transition.\n */"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"kind": "method",
|
|
224
|
+
"name": "waitForChange",
|
|
225
|
+
"signature": "async waitForChange(caller: Agent, timeoutMs: number, signal: AbortSignal): Promise<TeamWaitResult>",
|
|
226
|
+
"summary": "Wait for the next Team-domain or member-status change.",
|
|
227
|
+
"jsDoc": "/**\n * Wait for the next Team-domain or member-status change.\n * @param caller - exact live Team member waiting for activity.\n * @param timeoutMs - bounded wait duration from ten seconds through one hour.\n * @param signal - caller cancellation for the wait only.\n * @returns one observed change or a timeout result.\n */"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "method",
|
|
231
|
+
"name": "interrupt",
|
|
232
|
+
"signature": "interrupt(caller: Agent, targetName: string): { previousStatus: 'running' | 'inactive' }",
|
|
233
|
+
"summary": "Interrupt one live teammate turn without clearing its pending inbox.",
|
|
234
|
+
"jsDoc": "/**\n * Interrupt one live teammate turn without clearing its pending inbox.\n * @param caller - exact live Lead Agent.\n * @param targetName - durable teammate name.\n * @returns the target status sampled before cancellation.\n */"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"kind": "method",
|
|
238
|
+
"name": "tryMembership",
|
|
239
|
+
"signature": "tryMembership(agent: Agent): TeamMembership | undefined",
|
|
240
|
+
"summary": "Resolve a caller without throwing, used by scoped-tool installation and observers.",
|
|
241
|
+
"jsDoc": "/**\n * Resolve a caller without throwing, used by scoped-tool installation and observers.\n * @param agent - candidate exact live Agent.\n * @returns Team membership, or undefined for non-Team subagents and stale identities.\n */"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"types": [
|
|
245
|
+
{
|
|
246
|
+
"name": "AfterScheduleRecord",
|
|
247
|
+
"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}"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "Agent",
|
|
251
|
+
"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}"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "AgentCancelCause",
|
|
255
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "AgentMessageSource",
|
|
259
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "AgentOptions",
|
|
263
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "AgentStatus",
|
|
267
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "ApprovalOutcome",
|
|
271
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "ApprovalPolicy",
|
|
275
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "ApprovalRequestId",
|
|
279
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "AssistantMessage",
|
|
283
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "AssistantProviderMetadata",
|
|
287
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "AssistantStreamRecord",
|
|
291
|
+
"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; };"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "AtScheduleRecord",
|
|
295
|
+
"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}"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "AttachmentId",
|
|
299
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "Branded",
|
|
303
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "BrandedNumber",
|
|
307
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "CancelOptions",
|
|
311
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "CommandId",
|
|
315
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "CommandSource",
|
|
319
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "CommandSourceMap",
|
|
323
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "CompactionCheckpointSource",
|
|
327
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "CompactionId",
|
|
331
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "ContentBlock",
|
|
335
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "ContentBlockMap",
|
|
339
|
+
"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}"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "ContentBlockType",
|
|
343
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "ContextFormed",
|
|
347
|
+
"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'; };"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "ContextSnapshotSection",
|
|
351
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
355
|
+
"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}"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "CreateTeamTaskRequest",
|
|
359
|
+
"declaration": "export interface CreateTeamTaskRequest {\n readonly subject: string;\n readonly description: string;\n readonly blockedBy?: readonly TeamTaskId[];\n readonly writeScopes?: readonly string[];\n}"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "DeveloperMessage",
|
|
363
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "EpochHeader",
|
|
367
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "EveryScheduleDispatchChange",
|
|
371
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "EveryScheduleRecord",
|
|
375
|
+
"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}"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "FeedbackCategory",
|
|
379
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "FeedbackRecord",
|
|
383
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "FileAttachmentRef",
|
|
387
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "FileBlock",
|
|
391
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "FinishReason",
|
|
395
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "FinishReasonMap",
|
|
399
|
+
"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}"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "GoalBlockReason",
|
|
403
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "GoalChangeMeta",
|
|
407
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "GoalClearChangeMeta",
|
|
411
|
+
"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}"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "GoalId",
|
|
415
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "GoalMessageSource",
|
|
419
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "GoalOperation",
|
|
423
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "GoalPhase",
|
|
427
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "GoalRef",
|
|
431
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "GoalSnapshot",
|
|
435
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "GoalSnapshotChangeMeta",
|
|
439
|
+
"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}"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "ImageAttachmentRef",
|
|
443
|
+
"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}"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "ImageBlock",
|
|
447
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "ImageMediaType",
|
|
451
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "ImageOffloadTarget",
|
|
455
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "Inbox",
|
|
459
|
+
"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}"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "InboxTarget",
|
|
463
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "JsonValue",
|
|
467
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "KnownCatalogMode",
|
|
471
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "LegacyAfterScheduleRecord",
|
|
475
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "LegacyAtScheduleRecord",
|
|
479
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "LegacyEveryScheduleRecord",
|
|
483
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "LegacyScheduleRecord",
|
|
487
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "LlmCallConfig",
|
|
491
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
495
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "LlmFailure",
|
|
499
|
+
"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}"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "Message",
|
|
503
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "MessageBase",
|
|
507
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "MessageFeedbackDelete",
|
|
511
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "MessageFeedbackItem",
|
|
515
|
+
"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}"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "MessageFeedbackPut",
|
|
519
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "MessageFeedbackRating",
|
|
523
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "MessageFeedbackVersion",
|
|
527
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "MessageId",
|
|
531
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "MessageRoleMap",
|
|
535
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "MessageSource",
|
|
539
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "MessageSourceMap",
|
|
543
|
+
"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 '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; };\n 'sidechat-boundary': { kind: 'sidechat-boundary'; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'kylin-host-runner': { kind: 'kylin-host-runner'; };\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n}"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "ModelMessageSource",
|
|
547
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "ModelSelection",
|
|
551
|
+
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "OneShotScheduleDispatchChange",
|
|
555
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "OneShotSubagentDescriptorData",
|
|
559
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "OptionalSessionSeq",
|
|
563
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "ProviderRequestId",
|
|
567
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "PtcDispatchEventData",
|
|
571
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "PtcDispatchStartEventData",
|
|
575
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "ReasoningBlock",
|
|
579
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "ReasoningEffortId",
|
|
583
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "ReplayEnvelope",
|
|
587
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "RequestContext",
|
|
591
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "RequestHeaderReason",
|
|
595
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "SandboxMode",
|
|
599
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "ScheduleChange",
|
|
603
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "ScheduleCreateChange",
|
|
607
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "ScheduleDeleteChange",
|
|
611
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "ScheduleDispatchChange",
|
|
615
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "ScheduleId",
|
|
619
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "SendTeamMessageRequest",
|
|
623
|
+
"declaration": "export interface SendTeamMessageRequest {\n readonly target: string;\n readonly content: ContentBlock[];\n readonly signal: AbortSignal;\n}"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "SendTeamMessageResult",
|
|
627
|
+
"declaration": "export interface SendTeamMessageResult {\n readonly messageId: TeamMessageId;\n readonly status: 'accepted' | 'queued';\n}"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "Session",
|
|
631
|
+
"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}"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "SessionEvent",
|
|
635
|
+
"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];"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "SessionEventMap",
|
|
639
|
+
"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 '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 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@qilin-agent/session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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 'schedule/change': ScheduleChange;\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}"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "SessionEventType",
|
|
643
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "SessionHeader",
|
|
647
|
+
"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}"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "SessionId",
|
|
651
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "SessionLogOffset",
|
|
655
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "SessionReferenceSource",
|
|
659
|
+
"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}"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "SessionRequestId",
|
|
663
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "SessionSeq",
|
|
667
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "SessionSurface",
|
|
671
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"name": "SessionTitleEventData",
|
|
675
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "SessionTitleModelIdentity",
|
|
679
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "SessionTitleProviderId",
|
|
683
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "SessionTitleSource",
|
|
687
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"name": "SkillInvocationSource",
|
|
691
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "SpawnTeammateRequest",
|
|
695
|
+
"declaration": "export interface SpawnTeammateRequest {\n readonly name: string;\n readonly description: string;\n readonly prompt: ContentBlock[];\n readonly context: 'fresh' | 'fork';\n readonly provider: string;\n readonly signal: AbortSignal;\n}"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "SpawnTeammateResult",
|
|
699
|
+
"declaration": "export interface SpawnTeammateResult {\n readonly member: TeamMemberView;\n}"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "StreamChunk",
|
|
703
|
+
"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; };"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "SubagentCatalogEvent",
|
|
707
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "SubagentDescriptorBase",
|
|
711
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "SubagentDescriptorData",
|
|
715
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "SubagentSettledMessageSource",
|
|
719
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "SurfaceEventType",
|
|
723
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "SurfaceIntent",
|
|
727
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "SurfaceOp",
|
|
731
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "SystemMessage",
|
|
735
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "SystemPromptMessageSource",
|
|
739
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "SystemPromptUpdate",
|
|
743
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "TeamId",
|
|
747
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "TeamMemberPhase",
|
|
751
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "TeamMembership",
|
|
755
|
+
"declaration": "export interface TeamMembership {\n readonly root: Agent;\n readonly id: TeamId;\n readonly role: 'lead' | 'teammate';\n readonly name: string;\n}"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "TeamMemberSnapshot",
|
|
759
|
+
"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}"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "TeamMemberView",
|
|
763
|
+
"declaration": "export interface TeamMemberView {\n readonly id: SessionId;\n readonly name: string;\n readonly role: 'lead' | 'teammate';\n readonly status: 'running' | 'inactive' | 'provisioning' | 'failed';\n readonly description?: string;\n readonly provider?: string;\n readonly context?: 'fresh' | 'fork';\n readonly model?: string;\n readonly diagnostics: string[];\n}"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "TeamMessageId",
|
|
767
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "TeamMessageSnapshot",
|
|
771
|
+
"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}"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "TeamMessageSource",
|
|
775
|
+
"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}"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "TeamTaskAction",
|
|
779
|
+
"declaration": "export type TeamTaskAction = 'claim' | 'release' | 'edit' | 'set_dependencies' | 'complete' | 'reopen' | 'reassign' | 'delete';"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "TeamTaskId",
|
|
783
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "TeamTaskSnapshot",
|
|
787
|
+
"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}"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "TeamTaskStatus",
|
|
791
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "TeamTaskView",
|
|
795
|
+
"declaration": "export interface TeamTaskView {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n readonly ownerName?: string;\n readonly ready: boolean;\n readonly writeScopeWarnings: string[];\n}"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "TeamWaitResult",
|
|
799
|
+
"declaration": "export interface TeamWaitResult {\n readonly timedOut: boolean;\n}"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "TextBlock",
|
|
803
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "TodoItem",
|
|
807
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "TokenUsage",
|
|
811
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "ToolAdditionBlock",
|
|
815
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"name": "ToolCallBlock",
|
|
819
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "ToolCallId",
|
|
823
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "ToolHistory",
|
|
827
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "ToolMessageSource",
|
|
831
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "ToolRemovalBlock",
|
|
835
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "ToolRestriction",
|
|
839
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "ToolResultMessage",
|
|
843
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "ToolSchema",
|
|
847
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "TurnEndCancelCause",
|
|
851
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "TurnEndReason",
|
|
855
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "TurnEndReasonMap",
|
|
859
|
+
"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}"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "UpdateTeamTaskRequest",
|
|
863
|
+
"declaration": "export interface UpdateTeamTaskRequest {\n readonly taskId: TeamTaskId;\n readonly expectedRevision: number;\n readonly action: TeamTaskAction;\n readonly subject?: string;\n readonly description?: string;\n readonly blockedBy?: readonly TeamTaskId[];\n readonly writeScopes?: readonly string[];\n readonly owner?: string;\n}"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "UserMessage",
|
|
867
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
868
|
+
}
|
|
869
|
+
]
|
|
870
|
+
}
|
|
871
|
+
],
|
|
872
|
+
"events": [],
|
|
873
|
+
"objects": []
|
|
874
|
+
},
|
|
875
|
+
}
|