agenthooksprotocol 0.0.0-bootstrap.0
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 +202 -0
- package/README.md +29 -0
- package/dist/src/client/auth.d.ts +147 -0
- package/dist/src/client/auth.d.ts.map +1 -0
- package/dist/src/client/auth.js +629 -0
- package/dist/src/client/auth.js.map +1 -0
- package/dist/src/client/composition.d.ts +42 -0
- package/dist/src/client/composition.d.ts.map +1 -0
- package/dist/src/client/composition.js +523 -0
- package/dist/src/client/composition.js.map +1 -0
- package/dist/src/client/content.d.ts +73 -0
- package/dist/src/client/content.d.ts.map +1 -0
- package/dist/src/client/content.js +404 -0
- package/dist/src/client/content.js.map +1 -0
- package/dist/src/client/hooks.d.ts +62 -0
- package/dist/src/client/hooks.d.ts.map +1 -0
- package/dist/src/client/hooks.js +997 -0
- package/dist/src/client/hooks.js.map +1 -0
- package/dist/src/client/index.d.ts +11 -0
- package/dist/src/client/index.d.ts.map +1 -0
- package/dist/src/client/index.js +9 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/client/transport.d.ts +12 -0
- package/dist/src/client/transport.d.ts.map +1 -0
- package/dist/src/client/transport.js +347 -0
- package/dist/src/client/transport.js.map +1 -0
- package/dist/src/client/types.d.ts +117 -0
- package/dist/src/client/types.d.ts.map +1 -0
- package/dist/src/client/types.js +10 -0
- package/dist/src/client/types.js.map +1 -0
- package/dist/src/client/validation.d.ts +3 -0
- package/dist/src/client/validation.d.ts.map +1 -0
- package/dist/src/client/validation.js +25 -0
- package/dist/src/client/validation.js.map +1 -0
- package/dist/src/compaction.d.ts +27 -0
- package/dist/src/compaction.d.ts.map +1 -0
- package/dist/src/compaction.js +155 -0
- package/dist/src/compaction.js.map +1 -0
- package/dist/src/content-upload.d.ts +60 -0
- package/dist/src/content-upload.d.ts.map +1 -0
- package/dist/src/content-upload.js +129 -0
- package/dist/src/content-upload.js.map +1 -0
- package/dist/src/draft/generated.d.ts +3085 -0
- package/dist/src/draft/generated.d.ts.map +1 -0
- package/dist/src/draft/generated.js +15372 -0
- package/dist/src/draft/generated.js.map +1 -0
- package/dist/src/draft/index.d.ts +31 -0
- package/dist/src/draft/index.d.ts.map +1 -0
- package/dist/src/draft/index.js +129 -0
- package/dist/src/draft/index.js.map +1 -0
- package/dist/src/draft/schemas.d.ts +8848 -0
- package/dist/src/draft/schemas.d.ts.map +1 -0
- package/dist/src/draft/schemas.js +9219 -0
- package/dist/src/draft/schemas.js.map +1 -0
- package/dist/src/draft-atomic.d.ts +18 -0
- package/dist/src/draft-atomic.d.ts.map +1 -0
- package/dist/src/draft-atomic.js +102 -0
- package/dist/src/draft-atomic.js.map +1 -0
- package/dist/src/draft-runtime.d.ts +89 -0
- package/dist/src/draft-runtime.d.ts.map +1 -0
- package/dist/src/draft-runtime.js +242 -0
- package/dist/src/draft-runtime.js.map +1 -0
- package/dist/src/elicitation.d.ts +18 -0
- package/dist/src/elicitation.d.ts.map +1 -0
- package/dist/src/elicitation.js +191 -0
- package/dist/src/elicitation.js.map +1 -0
- package/dist/src/errors.d.ts +7 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +15 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/framing.d.ts +7 -0
- package/dist/src/framing.d.ts.map +1 -0
- package/dist/src/framing.js +39 -0
- package/dist/src/framing.js.map +1 -0
- package/dist/src/generated.d.ts +304 -0
- package/dist/src/generated.d.ts.map +1 -0
- package/dist/src/generated.js +1885 -0
- package/dist/src/generated.js.map +1 -0
- package/dist/src/hook-runner.d.ts +11 -0
- package/dist/src/hook-runner.d.ts.map +1 -0
- package/dist/src/hook-runner.js +223 -0
- package/dist/src/hook-runner.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/observation.d.ts +26 -0
- package/dist/src/observation.d.ts.map +1 -0
- package/dist/src/observation.js +28 -0
- package/dist/src/observation.js.map +1 -0
- package/dist/src/server/attachments.d.ts +29 -0
- package/dist/src/server/attachments.d.ts.map +1 -0
- package/dist/src/server/attachments.js +112 -0
- package/dist/src/server/attachments.js.map +1 -0
- package/dist/src/server/hooks.d.ts +20 -0
- package/dist/src/server/hooks.d.ts.map +1 -0
- package/dist/src/server/hooks.js +129 -0
- package/dist/src/server/hooks.js.map +1 -0
- package/dist/src/server/index.d.ts +7 -0
- package/dist/src/server/index.d.ts.map +1 -0
- package/dist/src/server/index.js +4 -0
- package/dist/src/server/index.js.map +1 -0
- package/dist/src/server/stdio.d.ts +15 -0
- package/dist/src/server/stdio.d.ts.map +1 -0
- package/dist/src/server/stdio.js +69 -0
- package/dist/src/server/stdio.js.map +1 -0
- package/dist/src/transport.d.ts +7 -0
- package/dist/src/transport.d.ts.map +1 -0
- package/dist/src/transport.js +195 -0
- package/dist/src/transport.js.map +1 -0
- package/dist/src/types.d.ts +116 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +14 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/validation.d.ts +7 -0
- package/dist/src/validation.d.ts.map +1 -0
- package/dist/src/validation.js +209 -0
- package/dist/src/validation.js.map +1 -0
- package/package.json +64 -0
- package/src/client/auth.ts +1076 -0
- package/src/client/composition.ts +708 -0
- package/src/client/content.ts +510 -0
- package/src/client/hooks.ts +1368 -0
- package/src/client/index.ts +28 -0
- package/src/client/transport.ts +408 -0
- package/src/client/types.ts +173 -0
- package/src/client/validation.ts +24 -0
- package/src/compaction.ts +196 -0
- package/src/content-upload.ts +205 -0
- package/src/draft/README.md +16 -0
- package/src/draft/ahp-codegen.lock.json +123 -0
- package/src/draft/generated.ts +19143 -0
- package/src/draft/index.ts +246 -0
- package/src/draft/schemas.ts +9413 -0
- package/src/draft-atomic.ts +119 -0
- package/src/draft-runtime.ts +365 -0
- package/src/elicitation.ts +254 -0
- package/src/errors.ts +30 -0
- package/src/framing.ts +56 -0
- package/src/generated.ts +2408 -0
- package/src/hook-runner.ts +310 -0
- package/src/index.ts +8 -0
- package/src/observation.ts +65 -0
- package/src/server/attachments.ts +128 -0
- package/src/server/hooks.ts +205 -0
- package/src/server/index.ts +18 -0
- package/src/server/node-crypto.d.ts +7 -0
- package/src/server/stdio.ts +81 -0
- package/src/transport.ts +273 -0
- package/src/types.ts +124 -0
- package/src/validation.ts +372 -0
|
@@ -0,0 +1,3085 @@
|
|
|
1
|
+
export declare const SCHEMA_REVISION: "draft";
|
|
2
|
+
export declare const PROTOCOL_VERSION: "draft";
|
|
3
|
+
export type JsonPrimitive = null | boolean | number | string;
|
|
4
|
+
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
5
|
+
[key: string]: JsonValue;
|
|
6
|
+
};
|
|
7
|
+
export type AdditionalProperties = {
|
|
8
|
+
[key: string]: JsonValue;
|
|
9
|
+
};
|
|
10
|
+
export type OpenString<Known extends string> = Known | (string & {});
|
|
11
|
+
export type UnknownVariant<Discriminator extends string> = AdditionalProperties & {
|
|
12
|
+
[Key in Discriminator]: string;
|
|
13
|
+
};
|
|
14
|
+
export interface ParseDiagnostic {
|
|
15
|
+
readonly path: string;
|
|
16
|
+
readonly code: "invalid_type" | "missing_required" | "literal_mismatch" | "unknown_enum" | "unknown_variant" | "invalid_known_variant" | "no_union_match" | "ambiguous_union" | "invalid_json";
|
|
17
|
+
readonly severity: "error" | "warning";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}
|
|
20
|
+
export type ParseResult<T> = {
|
|
21
|
+
readonly ok: true;
|
|
22
|
+
readonly value: T;
|
|
23
|
+
readonly raw: JsonValue;
|
|
24
|
+
readonly diagnostics: readonly ParseDiagnostic[];
|
|
25
|
+
} | {
|
|
26
|
+
readonly ok: false;
|
|
27
|
+
readonly raw?: JsonValue;
|
|
28
|
+
readonly diagnostics: readonly ParseDiagnostic[];
|
|
29
|
+
};
|
|
30
|
+
/** Source: schema/draft/registration.schema.json#/$defs/authentication */
|
|
31
|
+
export type Authentication = ({
|
|
32
|
+
tokenEnv?: string;
|
|
33
|
+
tokenRef?: string;
|
|
34
|
+
type: "bearer";
|
|
35
|
+
} & AdditionalProperties & {
|
|
36
|
+
tokenEnv: JsonValue;
|
|
37
|
+
} & AdditionalProperties) | ({
|
|
38
|
+
tokenRef: JsonValue;
|
|
39
|
+
} & AdditionalProperties) | ({
|
|
40
|
+
clientId: string;
|
|
41
|
+
clientSecretRef?: string;
|
|
42
|
+
flow: OpenString<"authorization_code_pkce" | "client_credentials">;
|
|
43
|
+
issuer: string;
|
|
44
|
+
resource: string;
|
|
45
|
+
scopes?: Array<string>;
|
|
46
|
+
type: "oauth";
|
|
47
|
+
} & AdditionalProperties);
|
|
48
|
+
/** Source: schema/draft/registration.schema.json#/$defs/backend */
|
|
49
|
+
export type Backend = {
|
|
50
|
+
authentication?: Authentication;
|
|
51
|
+
id: ReverseDnsName;
|
|
52
|
+
subscriptions: Array<InterceptSubscription | ObserveSubscription | UnknownVariant<"mode">>;
|
|
53
|
+
transport: StdioTransport | HttpTransport | UnknownVariant<"type">;
|
|
54
|
+
} & AdditionalProperties;
|
|
55
|
+
/** Source: schema/draft/capabilities.schema.json# */
|
|
56
|
+
export type Capabilities = {
|
|
57
|
+
effects: Array<OpenString<"deny" | "allow" | "ask" | "modify" | "message" | "return" | "flow" | "inject"> | string>;
|
|
58
|
+
elicitation?: {
|
|
59
|
+
form?: {} & AdditionalProperties;
|
|
60
|
+
url?: {} & AdditionalProperties;
|
|
61
|
+
} & AdditionalProperties;
|
|
62
|
+
flow?: {
|
|
63
|
+
continuationCount?: number;
|
|
64
|
+
maxContinuations?: number;
|
|
65
|
+
operations: Array<OpenString<"stop" | "continue">>;
|
|
66
|
+
remainingContinuations?: number;
|
|
67
|
+
} & AdditionalProperties;
|
|
68
|
+
inject?: {
|
|
69
|
+
context: {
|
|
70
|
+
append: true;
|
|
71
|
+
deliverAt: Array<OpenString<"now" | "next_turn">>;
|
|
72
|
+
} & AdditionalProperties;
|
|
73
|
+
} & AdditionalProperties;
|
|
74
|
+
modify?: {
|
|
75
|
+
content?: ({
|
|
76
|
+
merge: boolean;
|
|
77
|
+
replace: boolean;
|
|
78
|
+
} & AdditionalProperties & {
|
|
79
|
+
replace: true;
|
|
80
|
+
} & AdditionalProperties) | ({
|
|
81
|
+
merge: true;
|
|
82
|
+
} & AdditionalProperties);
|
|
83
|
+
input?: ({
|
|
84
|
+
merge: boolean;
|
|
85
|
+
replace: boolean;
|
|
86
|
+
} & AdditionalProperties & {
|
|
87
|
+
replace: true;
|
|
88
|
+
} & AdditionalProperties) | ({
|
|
89
|
+
merge: true;
|
|
90
|
+
} & AdditionalProperties);
|
|
91
|
+
instructions?: ({
|
|
92
|
+
merge: boolean;
|
|
93
|
+
replace: boolean;
|
|
94
|
+
} & AdditionalProperties & {
|
|
95
|
+
replace: true;
|
|
96
|
+
} & AdditionalProperties) | ({
|
|
97
|
+
merge: true;
|
|
98
|
+
} & AdditionalProperties);
|
|
99
|
+
output?: ({
|
|
100
|
+
merge: boolean;
|
|
101
|
+
replace: boolean;
|
|
102
|
+
} & AdditionalProperties & {
|
|
103
|
+
replace: true;
|
|
104
|
+
} & AdditionalProperties) | ({
|
|
105
|
+
merge: true;
|
|
106
|
+
} & AdditionalProperties);
|
|
107
|
+
prompt?: ({
|
|
108
|
+
merge: boolean;
|
|
109
|
+
replace: boolean;
|
|
110
|
+
} & AdditionalProperties & {
|
|
111
|
+
replace: true;
|
|
112
|
+
} & AdditionalProperties) | ({
|
|
113
|
+
merge: true;
|
|
114
|
+
} & AdditionalProperties);
|
|
115
|
+
request?: ({
|
|
116
|
+
merge: boolean;
|
|
117
|
+
replace: boolean;
|
|
118
|
+
} & AdditionalProperties & {
|
|
119
|
+
replace: true;
|
|
120
|
+
} & AdditionalProperties) | ({
|
|
121
|
+
merge: true;
|
|
122
|
+
} & AdditionalProperties);
|
|
123
|
+
response?: ({
|
|
124
|
+
merge: boolean;
|
|
125
|
+
replace: boolean;
|
|
126
|
+
} & AdditionalProperties & {
|
|
127
|
+
replace: true;
|
|
128
|
+
} & AdditionalProperties) | ({
|
|
129
|
+
merge: true;
|
|
130
|
+
} & AdditionalProperties);
|
|
131
|
+
summary?: ({
|
|
132
|
+
merge: boolean;
|
|
133
|
+
replace: boolean;
|
|
134
|
+
} & AdditionalProperties & {
|
|
135
|
+
replace: true;
|
|
136
|
+
} & AdditionalProperties) | ({
|
|
137
|
+
merge: true;
|
|
138
|
+
} & AdditionalProperties);
|
|
139
|
+
workspace?: ({
|
|
140
|
+
merge: boolean;
|
|
141
|
+
replace: boolean;
|
|
142
|
+
} & AdditionalProperties & {
|
|
143
|
+
replace: true;
|
|
144
|
+
} & AdditionalProperties) | ({
|
|
145
|
+
merge: true;
|
|
146
|
+
} & AdditionalProperties);
|
|
147
|
+
} & AdditionalProperties;
|
|
148
|
+
} & AdditionalProperties;
|
|
149
|
+
/** Source: schema/draft/capabilities-request.schema.json# */
|
|
150
|
+
export type CapabilitiesRequest = JsonRpcRequest & {
|
|
151
|
+
method: "hooks/capabilities";
|
|
152
|
+
params: {
|
|
153
|
+
protocolVersion: ProtocolVersion;
|
|
154
|
+
} & AdditionalProperties;
|
|
155
|
+
} & AdditionalProperties;
|
|
156
|
+
/** Source: schema/draft/capabilities-response.schema.json# */
|
|
157
|
+
export type CapabilitiesResponse = JsonRpcSuccessResponse & {
|
|
158
|
+
result: {
|
|
159
|
+
manifest: {
|
|
160
|
+
authentication: Array<OpenString<"bearer" | "oauth">>;
|
|
161
|
+
contentCategories: Array<string>;
|
|
162
|
+
correlationIdentityFields: Array<string>;
|
|
163
|
+
events: Array<{
|
|
164
|
+
capabilities?: Capabilities;
|
|
165
|
+
event: OpenString<"tool.before" | "tool.after" | "session.start" | "session.end" | "config.change.before" | "config.change.after" | "turn.start" | "turn.finish.before" | "turn.end" | "turn.progress" | "model.request.before" | "model.response.after" | "model.error" | "model.switch.before" | "model.switch.after" | "tool.permission.request" | "tool.permission.resolved" | "tool.progress" | "tool.batch.after" | "context.compact.before" | "context.compact.after" | "task.change.before" | "task.change.after" | "user.attention" | "user.elicitation.request" | "user.elicitation.result" | "user.message.inbound" | "user.message.outbound" | "workspace.change.before" | "workspace.change.after" | "file.changed" | "hook.failure">;
|
|
166
|
+
modes: Array<OpenString<"observe" | "intercept">>;
|
|
167
|
+
} & AdditionalProperties>;
|
|
168
|
+
gaps: Array<{
|
|
169
|
+
path: string;
|
|
170
|
+
reason: string;
|
|
171
|
+
} & AdditionalProperties>;
|
|
172
|
+
limits: {
|
|
173
|
+
maxContinuations?: number;
|
|
174
|
+
maxTimeoutMs?: number;
|
|
175
|
+
maxUploadBytes?: number;
|
|
176
|
+
minTimeoutMs?: number;
|
|
177
|
+
} & AdditionalProperties;
|
|
178
|
+
managedPolicy: {
|
|
179
|
+
disableable: boolean;
|
|
180
|
+
scopes: Array<OpenString<"user" | "project" | "managed">>;
|
|
181
|
+
} & AdditionalProperties;
|
|
182
|
+
toolPaths: Array<string>;
|
|
183
|
+
transports: Array<OpenString<"http" | "stdio" | "in_process">>;
|
|
184
|
+
} & AdditionalProperties;
|
|
185
|
+
protocolVersion: ProtocolVersion;
|
|
186
|
+
} & AdditionalProperties;
|
|
187
|
+
} & AdditionalProperties;
|
|
188
|
+
/** Source: schema/draft/catalogue-event.schema.json# */
|
|
189
|
+
export type CatalogueEvent = ConfigChangeBeforeEvent | ConfigChangeAfterEvent | TurnStartEvent | TurnFinishBeforeEvent | TurnEndEvent | TurnProgressEvent | ModelRequestBeforeEvent | ModelResponseAfterEvent | ModelErrorEvent | ModelSwitchBeforeEvent | ModelSwitchAfterEvent | ToolPermissionRequestEvent | ToolPermissionResolvedEvent | ToolProgressEvent | ToolBatchAfterEvent | ContextCompactBeforeEvent | ContextCompactAfterEvent | TaskChangeBeforeEvent | TaskChangeAfterEvent | UserAttentionEvent | UserElicitationRequestEvent | UserElicitationResultEvent | UserMessageInboundEvent | UserMessageOutboundEvent | WorkspaceChangeBeforeEvent | WorkspaceChangeAfterEvent | FileChangedEvent | HookFailureEvent;
|
|
190
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/config.change.after */
|
|
191
|
+
export type ConfigChangeAfterEvent = {
|
|
192
|
+
extensions?: Extensions;
|
|
193
|
+
gaps?: Array<{
|
|
194
|
+
path: string;
|
|
195
|
+
reason: string;
|
|
196
|
+
} & AdditionalProperties>;
|
|
197
|
+
id: string;
|
|
198
|
+
items?: Array<ContentItem>;
|
|
199
|
+
native?: NativeEvent;
|
|
200
|
+
parentEventId?: string;
|
|
201
|
+
session?: Session;
|
|
202
|
+
source: string;
|
|
203
|
+
synthesized?: boolean;
|
|
204
|
+
time: string;
|
|
205
|
+
turn?: {
|
|
206
|
+
id: string;
|
|
207
|
+
synthesized?: boolean;
|
|
208
|
+
} & AdditionalProperties;
|
|
209
|
+
type: "config.change.after";
|
|
210
|
+
} & AdditionalProperties & InteractionEventConfigChangeAfter;
|
|
211
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/config.change.before */
|
|
212
|
+
export type ConfigChangeBeforeCapabilities = Capabilities & {
|
|
213
|
+
effects?: Array<OpenString<"deny" | "message">>;
|
|
214
|
+
} & AdditionalProperties;
|
|
215
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/config.change.before */
|
|
216
|
+
export type ConfigChangeBeforeEvent = {
|
|
217
|
+
extensions?: Extensions;
|
|
218
|
+
gaps?: Array<{
|
|
219
|
+
path: string;
|
|
220
|
+
reason: string;
|
|
221
|
+
} & AdditionalProperties>;
|
|
222
|
+
id: string;
|
|
223
|
+
items?: Array<ContentItem>;
|
|
224
|
+
native?: NativeEvent;
|
|
225
|
+
parentEventId?: string;
|
|
226
|
+
session?: Session;
|
|
227
|
+
source: string;
|
|
228
|
+
synthesized?: boolean;
|
|
229
|
+
time: string;
|
|
230
|
+
turn?: {
|
|
231
|
+
id: string;
|
|
232
|
+
synthesized?: boolean;
|
|
233
|
+
} & AdditionalProperties;
|
|
234
|
+
type: "config.change.before";
|
|
235
|
+
} & AdditionalProperties & InteractionEventConfigChangeBefore;
|
|
236
|
+
/** Source: schema/draft/content-item.schema.json# */
|
|
237
|
+
export type ContentItem = ({
|
|
238
|
+
body: ContentReference;
|
|
239
|
+
category?: string;
|
|
240
|
+
id: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
mediaType: string;
|
|
243
|
+
parentItemId?: string;
|
|
244
|
+
role?: string;
|
|
245
|
+
selection: "body";
|
|
246
|
+
sha256?: string;
|
|
247
|
+
size?: number;
|
|
248
|
+
synthesized?: boolean;
|
|
249
|
+
} & AdditionalProperties) | ({
|
|
250
|
+
category?: string;
|
|
251
|
+
gap: {
|
|
252
|
+
path?: string;
|
|
253
|
+
reason: string;
|
|
254
|
+
} & AdditionalProperties;
|
|
255
|
+
id: string;
|
|
256
|
+
kind: string;
|
|
257
|
+
mediaType: string;
|
|
258
|
+
parentItemId?: string;
|
|
259
|
+
role?: string;
|
|
260
|
+
selection: "body";
|
|
261
|
+
sha256?: string;
|
|
262
|
+
size?: number;
|
|
263
|
+
synthesized?: boolean;
|
|
264
|
+
} & AdditionalProperties) | ({
|
|
265
|
+
category?: string;
|
|
266
|
+
id: string;
|
|
267
|
+
kind: string;
|
|
268
|
+
mediaType: string;
|
|
269
|
+
parentItemId?: string;
|
|
270
|
+
role?: string;
|
|
271
|
+
selection: "metadata";
|
|
272
|
+
sha256?: string;
|
|
273
|
+
size?: number;
|
|
274
|
+
synthesized?: boolean;
|
|
275
|
+
} & AdditionalProperties) | ({
|
|
276
|
+
category?: string;
|
|
277
|
+
id: string;
|
|
278
|
+
kind: string;
|
|
279
|
+
mediaType: string;
|
|
280
|
+
parentItemId?: string;
|
|
281
|
+
role?: string;
|
|
282
|
+
selection: "omit";
|
|
283
|
+
sha256?: string;
|
|
284
|
+
size?: number;
|
|
285
|
+
synthesized?: boolean;
|
|
286
|
+
} & AdditionalProperties);
|
|
287
|
+
/** Source: schema/draft/content-reference.schema.json# */
|
|
288
|
+
export type ContentReference = {
|
|
289
|
+
ref: string;
|
|
290
|
+
sha256: string;
|
|
291
|
+
size: number;
|
|
292
|
+
} & AdditionalProperties;
|
|
293
|
+
/** Source: schema/draft/content-selection.schema.json# */
|
|
294
|
+
export type ContentSelection = {
|
|
295
|
+
audio?: OpenString<"body" | "metadata" | "omit">;
|
|
296
|
+
default: OpenString<"body" | "metadata" | "omit">;
|
|
297
|
+
files?: OpenString<"body" | "metadata" | "omit">;
|
|
298
|
+
images?: OpenString<"body" | "metadata" | "omit">;
|
|
299
|
+
reasoning?: OpenString<"body" | "metadata" | "omit">;
|
|
300
|
+
text?: OpenString<"body" | "metadata" | "omit">;
|
|
301
|
+
video?: OpenString<"body" | "metadata" | "omit">;
|
|
302
|
+
} & AdditionalProperties;
|
|
303
|
+
/** Source: schema/draft/content-upload.schema.json# */
|
|
304
|
+
export type ContentUpload = {
|
|
305
|
+
auth?: Authentication;
|
|
306
|
+
endpoint: string;
|
|
307
|
+
maxBytes: number;
|
|
308
|
+
timeoutMs: number;
|
|
309
|
+
} & AdditionalProperties;
|
|
310
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/context.compact.after */
|
|
311
|
+
export type ContextCompactAfterCapabilities = Capabilities & {
|
|
312
|
+
effects?: Array<OpenString<"inject" | "modify" | "message">>;
|
|
313
|
+
modify?: {} & AdditionalProperties;
|
|
314
|
+
} & AdditionalProperties;
|
|
315
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/context.compact.after */
|
|
316
|
+
export type ContextCompactAfterEvent = ExecutionEventContextCompactAfter;
|
|
317
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/context.compact.before */
|
|
318
|
+
export type ContextCompactBeforeCapabilities = Capabilities & {
|
|
319
|
+
effects?: Array<OpenString<"deny" | "modify" | "return" | "inject" | "message">>;
|
|
320
|
+
modify?: {} & AdditionalProperties;
|
|
321
|
+
} & AdditionalProperties;
|
|
322
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/context.compact.before */
|
|
323
|
+
export type ContextCompactBeforeEvent = ExecutionEventContextCompactBefore;
|
|
324
|
+
/** Source: schema/draft/deny-effect.schema.json# */
|
|
325
|
+
export type DenyEffect = {
|
|
326
|
+
code?: string;
|
|
327
|
+
extensions?: Extensions;
|
|
328
|
+
reason: string;
|
|
329
|
+
type: "deny";
|
|
330
|
+
} & AdditionalProperties;
|
|
331
|
+
/** Source: schema/draft/effect.schema.json# */
|
|
332
|
+
export type Effect = DenyEffect | ({
|
|
333
|
+
type: "allow";
|
|
334
|
+
} & AdditionalProperties) | ({
|
|
335
|
+
type: "ask";
|
|
336
|
+
} & AdditionalProperties) | ({
|
|
337
|
+
operation: OpenString<"replace" | "merge">;
|
|
338
|
+
target: OpenString<"input" | "output" | "prompt" | "request" | "response" | "content" | "instructions" | "summary" | "workspace">;
|
|
339
|
+
type: "modify";
|
|
340
|
+
value: JsonValue;
|
|
341
|
+
} & AdditionalProperties) | ({
|
|
342
|
+
text: string;
|
|
343
|
+
type: "message";
|
|
344
|
+
} & AdditionalProperties) | ({
|
|
345
|
+
type: "return";
|
|
346
|
+
value: JsonValue;
|
|
347
|
+
} & AdditionalProperties) | ({
|
|
348
|
+
operation: "stop";
|
|
349
|
+
reason: string;
|
|
350
|
+
type: "flow";
|
|
351
|
+
} & AdditionalProperties) | ({
|
|
352
|
+
instruction?: string;
|
|
353
|
+
operation: "continue";
|
|
354
|
+
type: "flow";
|
|
355
|
+
} & AdditionalProperties) | ({
|
|
356
|
+
deliverAt: OpenString<"now" | "next_turn">;
|
|
357
|
+
operation: "append";
|
|
358
|
+
target: "context";
|
|
359
|
+
type: "inject";
|
|
360
|
+
value: JsonValue;
|
|
361
|
+
} & AdditionalProperties);
|
|
362
|
+
/** Source: schema/draft/execution-event.schema.json# */
|
|
363
|
+
export type ExecutionEvent = ExecutionEventTurnStart | ExecutionEventTurnFinishBefore | ExecutionEventTurnEnd | ExecutionEventTurnProgress | ExecutionEventModelRequestBefore | ExecutionEventModelResponseAfter | ExecutionEventModelError | ExecutionEventModelSwitchBefore | ExecutionEventModelSwitchAfter | ExecutionEventToolPermissionRequest | ExecutionEventToolPermissionResolved | ExecutionEventToolProgress | ExecutionEventToolBatchAfter | ExecutionEventContextCompactBefore | ExecutionEventContextCompactAfter | UnknownVariant<"type">;
|
|
364
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/attempt */
|
|
365
|
+
export type ExecutionEventAttempt = {
|
|
366
|
+
id: string;
|
|
367
|
+
number: number;
|
|
368
|
+
synthesized?: boolean;
|
|
369
|
+
} & AdditionalProperties;
|
|
370
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/attemptUsage */
|
|
371
|
+
export type ExecutionEventAttemptusage = ExecutionEventUsage & {
|
|
372
|
+
kind?: "amount";
|
|
373
|
+
provenance?: OpenString<"provider" | "estimate">;
|
|
374
|
+
scope?: "attempt";
|
|
375
|
+
} & AdditionalProperties;
|
|
376
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/batch */
|
|
377
|
+
export type ExecutionEventBatch = {
|
|
378
|
+
callIds: Array<string>;
|
|
379
|
+
id: string;
|
|
380
|
+
synthesized?: boolean;
|
|
381
|
+
} & AdditionalProperties;
|
|
382
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/context.compact.after */
|
|
383
|
+
export type ExecutionEventContextCompactAfter = {
|
|
384
|
+
execution: ExecutionEventExecution;
|
|
385
|
+
extensions?: Extensions;
|
|
386
|
+
gaps?: Array<{
|
|
387
|
+
path: string;
|
|
388
|
+
reason: string;
|
|
389
|
+
} & AdditionalProperties>;
|
|
390
|
+
id: string;
|
|
391
|
+
items?: Array<ModelVisibleItem>;
|
|
392
|
+
native?: NativeEvent;
|
|
393
|
+
parentEventId?: string;
|
|
394
|
+
removed: Array<{
|
|
395
|
+
id: string;
|
|
396
|
+
} & AdditionalProperties>;
|
|
397
|
+
session?: Session;
|
|
398
|
+
source: string;
|
|
399
|
+
summary: ModelVisibleItem;
|
|
400
|
+
synthesized?: boolean;
|
|
401
|
+
time: string;
|
|
402
|
+
tokenCounts?: ExecutionEventTokencounts;
|
|
403
|
+
turn?: {
|
|
404
|
+
id: string;
|
|
405
|
+
synthesized?: boolean;
|
|
406
|
+
} & AdditionalProperties;
|
|
407
|
+
type: "context.compact.after";
|
|
408
|
+
} & AdditionalProperties;
|
|
409
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/context.compact.before */
|
|
410
|
+
export type ExecutionEventContextCompactBefore = {
|
|
411
|
+
extensions?: Extensions;
|
|
412
|
+
gaps?: Array<{
|
|
413
|
+
path: string;
|
|
414
|
+
reason: string;
|
|
415
|
+
} & AdditionalProperties>;
|
|
416
|
+
id: string;
|
|
417
|
+
instructions?: ContentItem;
|
|
418
|
+
items: Array<ModelVisibleItem>;
|
|
419
|
+
native?: NativeEvent;
|
|
420
|
+
parentEventId?: string;
|
|
421
|
+
session?: Session;
|
|
422
|
+
source: string;
|
|
423
|
+
synthesized?: boolean;
|
|
424
|
+
time: string;
|
|
425
|
+
tokenCounts?: ExecutionEventTokencounts;
|
|
426
|
+
trigger: OpenString<"auto" | "manual" | "hook">;
|
|
427
|
+
turn?: {
|
|
428
|
+
id: string;
|
|
429
|
+
synthesized?: boolean;
|
|
430
|
+
} & AdditionalProperties;
|
|
431
|
+
type: "context.compact.before";
|
|
432
|
+
} & AdditionalProperties & JsonValue & {
|
|
433
|
+
tokenCounts?: JsonValue;
|
|
434
|
+
} & AdditionalProperties;
|
|
435
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/error */
|
|
436
|
+
export type ExecutionEventError = {
|
|
437
|
+
class: string;
|
|
438
|
+
code?: string;
|
|
439
|
+
message: string;
|
|
440
|
+
native?: NativeEvent;
|
|
441
|
+
status?: string | number;
|
|
442
|
+
} & AdditionalProperties;
|
|
443
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/execution */
|
|
444
|
+
export type ExecutionEventExecution = ({
|
|
445
|
+
status: "executed";
|
|
446
|
+
} & AdditionalProperties) | ({
|
|
447
|
+
reason: "supplied_result";
|
|
448
|
+
status: "skipped";
|
|
449
|
+
} & AdditionalProperties) | ({
|
|
450
|
+
detail?: string;
|
|
451
|
+
reason: "policy";
|
|
452
|
+
status: "skipped";
|
|
453
|
+
} & AdditionalProperties) | ({
|
|
454
|
+
detail?: string;
|
|
455
|
+
reason: "cancelled";
|
|
456
|
+
status: "skipped";
|
|
457
|
+
} & AdditionalProperties) | ({
|
|
458
|
+
detail?: string;
|
|
459
|
+
reason: "timeout";
|
|
460
|
+
status: "skipped";
|
|
461
|
+
} & AdditionalProperties) | ({
|
|
462
|
+
detail?: string;
|
|
463
|
+
reason: "other";
|
|
464
|
+
status: "skipped";
|
|
465
|
+
} & AdditionalProperties);
|
|
466
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/fileChange */
|
|
467
|
+
export type ExecutionEventFilechange = {
|
|
468
|
+
after?: ContentItem;
|
|
469
|
+
before?: ContentItem;
|
|
470
|
+
change: OpenString<"created" | "modified" | "deleted" | "moved">;
|
|
471
|
+
path: string;
|
|
472
|
+
previousPath?: string;
|
|
473
|
+
} & AdditionalProperties;
|
|
474
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/mcp */
|
|
475
|
+
export type ExecutionEventMcp = {
|
|
476
|
+
connection: ({
|
|
477
|
+
gaps?: Array<{
|
|
478
|
+
path: string;
|
|
479
|
+
reason: string;
|
|
480
|
+
} & AdditionalProperties>;
|
|
481
|
+
transport: "http";
|
|
482
|
+
url?: string;
|
|
483
|
+
} & AdditionalProperties & {
|
|
484
|
+
url: JsonValue;
|
|
485
|
+
} & AdditionalProperties) | ({
|
|
486
|
+
gaps: JsonValue;
|
|
487
|
+
} & AdditionalProperties) | ({
|
|
488
|
+
gaps?: Array<{
|
|
489
|
+
path: string;
|
|
490
|
+
reason: string;
|
|
491
|
+
} & AdditionalProperties>;
|
|
492
|
+
transport: "sse";
|
|
493
|
+
url?: string;
|
|
494
|
+
} & AdditionalProperties & {
|
|
495
|
+
url: JsonValue;
|
|
496
|
+
} & AdditionalProperties) | ({
|
|
497
|
+
gaps: JsonValue;
|
|
498
|
+
} & AdditionalProperties) | ({
|
|
499
|
+
args?: Array<string>;
|
|
500
|
+
command?: string;
|
|
501
|
+
cwd?: string;
|
|
502
|
+
gaps?: Array<{
|
|
503
|
+
path: string;
|
|
504
|
+
reason: string;
|
|
505
|
+
} & AdditionalProperties>;
|
|
506
|
+
transport: "stdio";
|
|
507
|
+
} & AdditionalProperties & {
|
|
508
|
+
command: JsonValue;
|
|
509
|
+
} & AdditionalProperties) | ({
|
|
510
|
+
gaps: JsonValue;
|
|
511
|
+
} & AdditionalProperties & {
|
|
512
|
+
args: JsonValue;
|
|
513
|
+
} & AdditionalProperties) | ({
|
|
514
|
+
gaps: JsonValue;
|
|
515
|
+
} & AdditionalProperties & {
|
|
516
|
+
cwd: JsonValue;
|
|
517
|
+
} & AdditionalProperties) | ({
|
|
518
|
+
gaps: JsonValue;
|
|
519
|
+
} & AdditionalProperties) | ({
|
|
520
|
+
address?: string;
|
|
521
|
+
addressForm?: string;
|
|
522
|
+
gaps?: Array<{
|
|
523
|
+
path: string;
|
|
524
|
+
reason: string;
|
|
525
|
+
} & AdditionalProperties>;
|
|
526
|
+
transport: string;
|
|
527
|
+
} & AdditionalProperties & {
|
|
528
|
+
addressForm: JsonValue;
|
|
529
|
+
} & AdditionalProperties) | ({
|
|
530
|
+
gaps: JsonValue;
|
|
531
|
+
} & AdditionalProperties & {
|
|
532
|
+
address: JsonValue;
|
|
533
|
+
} & AdditionalProperties) | ({
|
|
534
|
+
gaps: JsonValue;
|
|
535
|
+
} & AdditionalProperties) | UnknownVariant<"transport">;
|
|
536
|
+
provenance: OpenString<"runtime" | "inferred">;
|
|
537
|
+
server: {
|
|
538
|
+
id: string;
|
|
539
|
+
name?: string;
|
|
540
|
+
} & AdditionalProperties;
|
|
541
|
+
toolName: string;
|
|
542
|
+
} & AdditionalProperties;
|
|
543
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model */
|
|
544
|
+
export type ExecutionEventModel = {
|
|
545
|
+
id: string;
|
|
546
|
+
provider: string;
|
|
547
|
+
} & AdditionalProperties;
|
|
548
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model.error */
|
|
549
|
+
export type ExecutionEventModelError = {
|
|
550
|
+
attempt: ExecutionEventAttempt;
|
|
551
|
+
error: ExecutionEventError;
|
|
552
|
+
execution: ExecutionEventExecution & {
|
|
553
|
+
status?: "executed";
|
|
554
|
+
} & AdditionalProperties;
|
|
555
|
+
extensions?: Extensions;
|
|
556
|
+
gaps?: Array<{
|
|
557
|
+
path: string;
|
|
558
|
+
reason: string;
|
|
559
|
+
} & AdditionalProperties>;
|
|
560
|
+
id: string;
|
|
561
|
+
items?: Array<ContentItem>;
|
|
562
|
+
latencyMs?: number;
|
|
563
|
+
model: ExecutionEventModel;
|
|
564
|
+
native?: NativeEvent;
|
|
565
|
+
parentEventId?: string;
|
|
566
|
+
recovery?: string;
|
|
567
|
+
session?: Session;
|
|
568
|
+
source: string;
|
|
569
|
+
synthesized?: boolean;
|
|
570
|
+
time: string;
|
|
571
|
+
turn?: {
|
|
572
|
+
id: string;
|
|
573
|
+
synthesized?: boolean;
|
|
574
|
+
} & AdditionalProperties;
|
|
575
|
+
type: "model.error";
|
|
576
|
+
usage?: ExecutionEventAttemptusage;
|
|
577
|
+
} & AdditionalProperties;
|
|
578
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model.request.before */
|
|
579
|
+
export type ExecutionEventModelRequestBefore = {
|
|
580
|
+
attempt: ExecutionEventAttempt;
|
|
581
|
+
extensions?: Extensions;
|
|
582
|
+
gaps?: Array<{
|
|
583
|
+
path: string;
|
|
584
|
+
reason: string;
|
|
585
|
+
} & AdditionalProperties>;
|
|
586
|
+
id: string;
|
|
587
|
+
items: Array<ModelVisibleItem>;
|
|
588
|
+
model: ExecutionEventModel;
|
|
589
|
+
native?: NativeEvent;
|
|
590
|
+
params: {} & AdditionalProperties;
|
|
591
|
+
parentEventId?: string;
|
|
592
|
+
session?: Session;
|
|
593
|
+
source: string;
|
|
594
|
+
synthesized?: boolean;
|
|
595
|
+
time: string;
|
|
596
|
+
turn?: {
|
|
597
|
+
id: string;
|
|
598
|
+
synthesized?: boolean;
|
|
599
|
+
} & AdditionalProperties;
|
|
600
|
+
type: "model.request.before";
|
|
601
|
+
} & AdditionalProperties;
|
|
602
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model.response.after */
|
|
603
|
+
export type ExecutionEventModelResponseAfter = {
|
|
604
|
+
attempt: ExecutionEventAttempt;
|
|
605
|
+
execution: ExecutionEventExecution;
|
|
606
|
+
extensions?: Extensions;
|
|
607
|
+
finishReason: string;
|
|
608
|
+
gaps?: Array<{
|
|
609
|
+
path: string;
|
|
610
|
+
reason: string;
|
|
611
|
+
} & AdditionalProperties>;
|
|
612
|
+
id: string;
|
|
613
|
+
items: Array<ModelVisibleItem>;
|
|
614
|
+
latencyMs?: number;
|
|
615
|
+
model: ExecutionEventModel;
|
|
616
|
+
native?: NativeEvent;
|
|
617
|
+
parentEventId?: string;
|
|
618
|
+
session?: Session;
|
|
619
|
+
source: string;
|
|
620
|
+
synthesized?: boolean;
|
|
621
|
+
time: string;
|
|
622
|
+
turn?: {
|
|
623
|
+
id: string;
|
|
624
|
+
synthesized?: boolean;
|
|
625
|
+
} & AdditionalProperties;
|
|
626
|
+
type: "model.response.after";
|
|
627
|
+
usage?: ExecutionEventAttemptusage;
|
|
628
|
+
} & AdditionalProperties;
|
|
629
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model.switch.after */
|
|
630
|
+
export type ExecutionEventModelSwitchAfter = {
|
|
631
|
+
current: ExecutionEventModel;
|
|
632
|
+
extensions?: Extensions;
|
|
633
|
+
gaps?: Array<{
|
|
634
|
+
path: string;
|
|
635
|
+
reason: string;
|
|
636
|
+
} & AdditionalProperties>;
|
|
637
|
+
id: string;
|
|
638
|
+
items?: Array<ContentItem>;
|
|
639
|
+
native?: NativeEvent;
|
|
640
|
+
parentEventId?: string;
|
|
641
|
+
previous: ExecutionEventModel;
|
|
642
|
+
reason: string;
|
|
643
|
+
session?: Session;
|
|
644
|
+
source: string;
|
|
645
|
+
synthesized?: boolean;
|
|
646
|
+
time: string;
|
|
647
|
+
turn?: {
|
|
648
|
+
id: string;
|
|
649
|
+
synthesized?: boolean;
|
|
650
|
+
} & AdditionalProperties;
|
|
651
|
+
type: "model.switch.after";
|
|
652
|
+
} & AdditionalProperties;
|
|
653
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/model.switch.before */
|
|
654
|
+
export type ExecutionEventModelSwitchBefore = {
|
|
655
|
+
current: ExecutionEventModel;
|
|
656
|
+
extensions?: Extensions;
|
|
657
|
+
gaps?: Array<{
|
|
658
|
+
path: string;
|
|
659
|
+
reason: string;
|
|
660
|
+
} & AdditionalProperties>;
|
|
661
|
+
id: string;
|
|
662
|
+
items?: Array<ContentItem>;
|
|
663
|
+
native?: NativeEvent;
|
|
664
|
+
parentEventId?: string;
|
|
665
|
+
pricing?: {
|
|
666
|
+
currency: string;
|
|
667
|
+
inputPerMillionTokens?: number;
|
|
668
|
+
outputPerMillionTokens?: number;
|
|
669
|
+
} & AdditionalProperties;
|
|
670
|
+
proposed: ExecutionEventModel;
|
|
671
|
+
reason: string;
|
|
672
|
+
session?: Session;
|
|
673
|
+
source: string;
|
|
674
|
+
synthesized?: boolean;
|
|
675
|
+
time: string;
|
|
676
|
+
turn?: {
|
|
677
|
+
id: string;
|
|
678
|
+
synthesized?: boolean;
|
|
679
|
+
} & AdditionalProperties;
|
|
680
|
+
type: "model.switch.before";
|
|
681
|
+
} & AdditionalProperties;
|
|
682
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tokenCounts */
|
|
683
|
+
export type ExecutionEventTokencounts = {
|
|
684
|
+
after?: number;
|
|
685
|
+
before?: number;
|
|
686
|
+
} & AdditionalProperties;
|
|
687
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tool */
|
|
688
|
+
export type ExecutionEventTool = {
|
|
689
|
+
input: {} & AdditionalProperties;
|
|
690
|
+
kind?: string;
|
|
691
|
+
mcp?: ExecutionEventMcp;
|
|
692
|
+
name: string;
|
|
693
|
+
origin: OpenString<"native" | "mcp">;
|
|
694
|
+
} & AdditionalProperties;
|
|
695
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tool.batch.after */
|
|
696
|
+
export type ExecutionEventToolBatchAfter = {
|
|
697
|
+
batch: {
|
|
698
|
+
id: string;
|
|
699
|
+
synthesized?: boolean;
|
|
700
|
+
} & AdditionalProperties;
|
|
701
|
+
calls: Array<{
|
|
702
|
+
batch?: ExecutionEventBatch;
|
|
703
|
+
call: {
|
|
704
|
+
id: string;
|
|
705
|
+
synthesized?: boolean;
|
|
706
|
+
} & AdditionalProperties;
|
|
707
|
+
execution: ExecutionEventExecution;
|
|
708
|
+
outcome: OpenString<"ok" | "error" | "denied" | "cancelled" | "timeout">;
|
|
709
|
+
path: string;
|
|
710
|
+
tool: ExecutionEventTool;
|
|
711
|
+
} & AdditionalProperties>;
|
|
712
|
+
extensions?: Extensions;
|
|
713
|
+
gaps?: Array<{
|
|
714
|
+
path: string;
|
|
715
|
+
reason: string;
|
|
716
|
+
} & AdditionalProperties>;
|
|
717
|
+
id: string;
|
|
718
|
+
items?: Array<ContentItem>;
|
|
719
|
+
native?: NativeEvent;
|
|
720
|
+
parentEventId?: string;
|
|
721
|
+
session?: Session;
|
|
722
|
+
source: string;
|
|
723
|
+
synthesized?: boolean;
|
|
724
|
+
time: string;
|
|
725
|
+
turn?: {
|
|
726
|
+
id: string;
|
|
727
|
+
synthesized?: boolean;
|
|
728
|
+
} & AdditionalProperties;
|
|
729
|
+
type: "tool.batch.after";
|
|
730
|
+
} & AdditionalProperties;
|
|
731
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tool.permission.request */
|
|
732
|
+
export type ExecutionEventToolPermissionRequest = {
|
|
733
|
+
batch?: ExecutionEventBatch;
|
|
734
|
+
call: {
|
|
735
|
+
id: string;
|
|
736
|
+
synthesized?: boolean;
|
|
737
|
+
} & AdditionalProperties;
|
|
738
|
+
extensions?: Extensions;
|
|
739
|
+
gaps?: Array<{
|
|
740
|
+
path: string;
|
|
741
|
+
reason: string;
|
|
742
|
+
} & AdditionalProperties>;
|
|
743
|
+
id: string;
|
|
744
|
+
items?: Array<ContentItem>;
|
|
745
|
+
native?: NativeEvent;
|
|
746
|
+
parentEventId?: string;
|
|
747
|
+
path: string;
|
|
748
|
+
sandboxBypass: boolean;
|
|
749
|
+
session?: Session;
|
|
750
|
+
source: string;
|
|
751
|
+
suggestions: Array<{} & AdditionalProperties>;
|
|
752
|
+
synthesized?: boolean;
|
|
753
|
+
time: string;
|
|
754
|
+
tool: ExecutionEventTool;
|
|
755
|
+
turn?: {
|
|
756
|
+
id: string;
|
|
757
|
+
synthesized?: boolean;
|
|
758
|
+
} & AdditionalProperties;
|
|
759
|
+
type: "tool.permission.request";
|
|
760
|
+
} & AdditionalProperties;
|
|
761
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tool.permission.resolved */
|
|
762
|
+
export type ExecutionEventToolPermissionResolved = {
|
|
763
|
+
batch?: ExecutionEventBatch;
|
|
764
|
+
call: {
|
|
765
|
+
id: string;
|
|
766
|
+
synthesized?: boolean;
|
|
767
|
+
} & AdditionalProperties;
|
|
768
|
+
decidedBy: OpenString<"user" | "policy" | "hook" | "auto" | "classifier">;
|
|
769
|
+
decision: OpenString<"allow" | "deny">;
|
|
770
|
+
extensions?: Extensions;
|
|
771
|
+
gaps?: Array<{
|
|
772
|
+
path: string;
|
|
773
|
+
reason: string;
|
|
774
|
+
} & AdditionalProperties>;
|
|
775
|
+
id: string;
|
|
776
|
+
items?: Array<ContentItem>;
|
|
777
|
+
native?: NativeEvent;
|
|
778
|
+
parentEventId?: string;
|
|
779
|
+
path: string;
|
|
780
|
+
session?: Session;
|
|
781
|
+
source: string;
|
|
782
|
+
synthesized?: boolean;
|
|
783
|
+
time: string;
|
|
784
|
+
tool: ExecutionEventTool;
|
|
785
|
+
turn?: {
|
|
786
|
+
id: string;
|
|
787
|
+
synthesized?: boolean;
|
|
788
|
+
} & AdditionalProperties;
|
|
789
|
+
type: "tool.permission.resolved";
|
|
790
|
+
} & AdditionalProperties;
|
|
791
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/tool.progress */
|
|
792
|
+
export type ExecutionEventToolProgress = {
|
|
793
|
+
backgrounded: boolean;
|
|
794
|
+
batch?: ExecutionEventBatch;
|
|
795
|
+
call: {
|
|
796
|
+
id: string;
|
|
797
|
+
synthesized?: boolean;
|
|
798
|
+
} & AdditionalProperties;
|
|
799
|
+
extensions?: Extensions;
|
|
800
|
+
gaps?: Array<{
|
|
801
|
+
path: string;
|
|
802
|
+
reason: string;
|
|
803
|
+
} & AdditionalProperties>;
|
|
804
|
+
id: string;
|
|
805
|
+
items?: Array<ContentItem>;
|
|
806
|
+
native?: NativeEvent;
|
|
807
|
+
parentEventId?: string;
|
|
808
|
+
partialOutput: ModelVisibleItem;
|
|
809
|
+
path: string;
|
|
810
|
+
session?: Session;
|
|
811
|
+
source: string;
|
|
812
|
+
synthesized?: boolean;
|
|
813
|
+
time: string;
|
|
814
|
+
tool: ExecutionEventTool;
|
|
815
|
+
turn?: {
|
|
816
|
+
id: string;
|
|
817
|
+
synthesized?: boolean;
|
|
818
|
+
} & AdditionalProperties;
|
|
819
|
+
type: "tool.progress";
|
|
820
|
+
} & AdditionalProperties;
|
|
821
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/turn.end */
|
|
822
|
+
export type ExecutionEventTurnEnd = {
|
|
823
|
+
continuationCount: number;
|
|
824
|
+
error?: ExecutionEventError;
|
|
825
|
+
extensions?: Extensions;
|
|
826
|
+
gaps?: Array<{
|
|
827
|
+
path: string;
|
|
828
|
+
reason: string;
|
|
829
|
+
} & AdditionalProperties>;
|
|
830
|
+
id: string;
|
|
831
|
+
items: Array<ModelVisibleItem>;
|
|
832
|
+
lastAssistantItem?: {
|
|
833
|
+
id: string;
|
|
834
|
+
synthesized?: boolean;
|
|
835
|
+
} & AdditionalProperties;
|
|
836
|
+
native?: NativeEvent;
|
|
837
|
+
outcome: OpenString<"completed" | "failed" | "cancelled" | "max_iterations">;
|
|
838
|
+
parentEventId?: string;
|
|
839
|
+
session?: Session;
|
|
840
|
+
source: string;
|
|
841
|
+
synthesized?: boolean;
|
|
842
|
+
time: string;
|
|
843
|
+
turn: {
|
|
844
|
+
id: string;
|
|
845
|
+
synthesized?: boolean;
|
|
846
|
+
} & AdditionalProperties;
|
|
847
|
+
type: "turn.end";
|
|
848
|
+
usage?: ExecutionEventTurnusage;
|
|
849
|
+
} & AdditionalProperties;
|
|
850
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/turn.finish.before */
|
|
851
|
+
export type ExecutionEventTurnFinishBefore = {
|
|
852
|
+
continuationCount: number;
|
|
853
|
+
extensions?: Extensions;
|
|
854
|
+
gaps?: Array<{
|
|
855
|
+
path: string;
|
|
856
|
+
reason: string;
|
|
857
|
+
} & AdditionalProperties>;
|
|
858
|
+
id: string;
|
|
859
|
+
items: Array<ModelVisibleItem>;
|
|
860
|
+
lastAssistantItem?: {
|
|
861
|
+
id: string;
|
|
862
|
+
synthesized?: boolean;
|
|
863
|
+
} & AdditionalProperties;
|
|
864
|
+
native?: NativeEvent;
|
|
865
|
+
outcome: OpenString<"completed" | "failed" | "cancelled" | "max_iterations">;
|
|
866
|
+
parentEventId?: string;
|
|
867
|
+
session?: Session;
|
|
868
|
+
source: string;
|
|
869
|
+
synthesized?: boolean;
|
|
870
|
+
time: string;
|
|
871
|
+
turn: {
|
|
872
|
+
id: string;
|
|
873
|
+
synthesized?: boolean;
|
|
874
|
+
} & AdditionalProperties;
|
|
875
|
+
type: "turn.finish.before";
|
|
876
|
+
usage?: ExecutionEventTurnusage;
|
|
877
|
+
} & AdditionalProperties;
|
|
878
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/turn.progress */
|
|
879
|
+
export type ExecutionEventTurnProgress = {
|
|
880
|
+
delta: ModelVisibleItem;
|
|
881
|
+
extensions?: Extensions;
|
|
882
|
+
final: boolean;
|
|
883
|
+
gaps?: Array<{
|
|
884
|
+
path: string;
|
|
885
|
+
reason: string;
|
|
886
|
+
} & AdditionalProperties>;
|
|
887
|
+
id: string;
|
|
888
|
+
item: {
|
|
889
|
+
id: string;
|
|
890
|
+
synthesized?: boolean;
|
|
891
|
+
} & AdditionalProperties;
|
|
892
|
+
items?: Array<ContentItem>;
|
|
893
|
+
native?: NativeEvent;
|
|
894
|
+
parentEventId?: string;
|
|
895
|
+
session?: Session;
|
|
896
|
+
source: string;
|
|
897
|
+
synthesized?: boolean;
|
|
898
|
+
time: string;
|
|
899
|
+
turn: {
|
|
900
|
+
id: string;
|
|
901
|
+
synthesized?: boolean;
|
|
902
|
+
} & AdditionalProperties;
|
|
903
|
+
type: "turn.progress";
|
|
904
|
+
} & AdditionalProperties;
|
|
905
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/turn.start */
|
|
906
|
+
export type ExecutionEventTurnStart = {
|
|
907
|
+
expandedFrom?: string;
|
|
908
|
+
extensions?: Extensions;
|
|
909
|
+
gaps?: Array<{
|
|
910
|
+
path: string;
|
|
911
|
+
reason: string;
|
|
912
|
+
} & AdditionalProperties>;
|
|
913
|
+
id: string;
|
|
914
|
+
items: Array<ModelVisibleItem>;
|
|
915
|
+
native?: NativeEvent;
|
|
916
|
+
parentEventId?: string;
|
|
917
|
+
session?: Session;
|
|
918
|
+
source: string;
|
|
919
|
+
synthesized?: boolean;
|
|
920
|
+
time: string;
|
|
921
|
+
trigger: OpenString<"user" | "continuation" | "hook" | "external">;
|
|
922
|
+
turn: {
|
|
923
|
+
id: string;
|
|
924
|
+
synthesized?: boolean;
|
|
925
|
+
} & AdditionalProperties;
|
|
926
|
+
type: "turn.start";
|
|
927
|
+
} & AdditionalProperties;
|
|
928
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/turnUsage */
|
|
929
|
+
export type ExecutionEventTurnusage = ExecutionEventUsage & {
|
|
930
|
+
kind?: "total";
|
|
931
|
+
scope?: "turn";
|
|
932
|
+
} & AdditionalProperties;
|
|
933
|
+
/** Source: schema/draft/execution-event.schema.json#/$defs/usage */
|
|
934
|
+
export type ExecutionEventUsage = {
|
|
935
|
+
cacheReadTokens?: number;
|
|
936
|
+
cacheWriteTokens?: number;
|
|
937
|
+
completeness: OpenString<"complete" | "partial" | "unknown">;
|
|
938
|
+
cost?: {
|
|
939
|
+
amount: number;
|
|
940
|
+
basis: OpenString<"billed" | "reported" | "estimated">;
|
|
941
|
+
currency: string;
|
|
942
|
+
} & AdditionalProperties;
|
|
943
|
+
inputTokens?: number;
|
|
944
|
+
kind: OpenString<"amount" | "total">;
|
|
945
|
+
outputTokens?: number;
|
|
946
|
+
provenance: OpenString<"provider" | "estimate" | "mixed">;
|
|
947
|
+
scope: OpenString<"attempt" | "turn">;
|
|
948
|
+
} & AdditionalProperties;
|
|
949
|
+
/** Source: schema/draft/extensions.schema.json# */
|
|
950
|
+
export type Extensions = {} & AdditionalProperties;
|
|
951
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/file.changed */
|
|
952
|
+
export type FileChangedEvent = TaskWorkspaceEventFileChanged;
|
|
953
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/hook.failure */
|
|
954
|
+
export type HookFailureEvent = {
|
|
955
|
+
extensions?: Extensions;
|
|
956
|
+
gaps?: Array<{
|
|
957
|
+
path: string;
|
|
958
|
+
reason: string;
|
|
959
|
+
} & AdditionalProperties>;
|
|
960
|
+
id: string;
|
|
961
|
+
items?: Array<ContentItem>;
|
|
962
|
+
native?: NativeEvent;
|
|
963
|
+
session?: Session;
|
|
964
|
+
source: string;
|
|
965
|
+
synthesized?: boolean;
|
|
966
|
+
time: string;
|
|
967
|
+
turn?: {
|
|
968
|
+
id: string;
|
|
969
|
+
synthesized?: boolean;
|
|
970
|
+
} & AdditionalProperties;
|
|
971
|
+
type: "hook.failure";
|
|
972
|
+
} & AdditionalProperties & InteractionEventHookFailure;
|
|
973
|
+
/** Source: schema/draft/registration.schema.json#/$defs/httpTransport */
|
|
974
|
+
export type HttpTransport = {
|
|
975
|
+
type: "http";
|
|
976
|
+
url: string;
|
|
977
|
+
} & AdditionalProperties;
|
|
978
|
+
/** Source: schema/draft/interaction-event.schema.json# */
|
|
979
|
+
export type InteractionEvent = InteractionEventConfigChangeBefore | InteractionEventConfigChangeAfter | InteractionEventUserAttention | InteractionEventUserElicitationRequest | InteractionEventUserElicitationResult | InteractionEventUserMessageInbound | InteractionEventUserMessageOutbound | InteractionEventHookFailure | UnknownVariant<"type">;
|
|
980
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/config.change.after */
|
|
981
|
+
export type InteractionEventConfigChangeAfter = {
|
|
982
|
+
change: {
|
|
983
|
+
mcpServers?: Array<{} & AdditionalProperties>;
|
|
984
|
+
path?: string;
|
|
985
|
+
scope: string;
|
|
986
|
+
settings: Array<string>;
|
|
987
|
+
source: string;
|
|
988
|
+
summary: string;
|
|
989
|
+
} & AdditionalProperties;
|
|
990
|
+
type: "config.change.after";
|
|
991
|
+
} & AdditionalProperties;
|
|
992
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/config.change.before */
|
|
993
|
+
export type InteractionEventConfigChangeBefore = {
|
|
994
|
+
change: {
|
|
995
|
+
path?: string;
|
|
996
|
+
scope: string;
|
|
997
|
+
settings: Array<string>;
|
|
998
|
+
source: string;
|
|
999
|
+
summary: string;
|
|
1000
|
+
} & AdditionalProperties;
|
|
1001
|
+
type: "config.change.before";
|
|
1002
|
+
} & AdditionalProperties;
|
|
1003
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/hook.failure */
|
|
1004
|
+
export type InteractionEventHookFailure = {
|
|
1005
|
+
failure: {
|
|
1006
|
+
backendId: string;
|
|
1007
|
+
policy: OpenString<"fail-open" | "fail-closed">;
|
|
1008
|
+
reason: string;
|
|
1009
|
+
} & AdditionalProperties;
|
|
1010
|
+
parentEventId: string;
|
|
1011
|
+
type: "hook.failure";
|
|
1012
|
+
} & AdditionalProperties;
|
|
1013
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/user.attention */
|
|
1014
|
+
export type InteractionEventUserAttention = {
|
|
1015
|
+
attention: {
|
|
1016
|
+
kind: string;
|
|
1017
|
+
message: Array<ContentItem>;
|
|
1018
|
+
title: Array<ContentItem>;
|
|
1019
|
+
} & AdditionalProperties;
|
|
1020
|
+
type: "user.attention";
|
|
1021
|
+
} & AdditionalProperties;
|
|
1022
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/user.elicitation.request */
|
|
1023
|
+
export type InteractionEventUserElicitationRequest = {
|
|
1024
|
+
elicitation: {
|
|
1025
|
+
mode: OpenString<"form" | "url">;
|
|
1026
|
+
request?: ContentItem & {
|
|
1027
|
+
mediaType?: "application/json";
|
|
1028
|
+
} & AdditionalProperties;
|
|
1029
|
+
server: string;
|
|
1030
|
+
} & AdditionalProperties;
|
|
1031
|
+
type: "user.elicitation.request";
|
|
1032
|
+
} & AdditionalProperties;
|
|
1033
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/user.elicitation.result */
|
|
1034
|
+
export type InteractionEventUserElicitationResult = {
|
|
1035
|
+
elicitation: {
|
|
1036
|
+
action: OpenString<"accept" | "decline" | "cancel">;
|
|
1037
|
+
mode: OpenString<"form" | "url">;
|
|
1038
|
+
result?: ContentItem & {
|
|
1039
|
+
mediaType?: "application/json";
|
|
1040
|
+
} & AdditionalProperties;
|
|
1041
|
+
server: string;
|
|
1042
|
+
} & AdditionalProperties;
|
|
1043
|
+
type: "user.elicitation.result";
|
|
1044
|
+
} & AdditionalProperties;
|
|
1045
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/user.message.inbound */
|
|
1046
|
+
export type InteractionEventUserMessageInbound = {
|
|
1047
|
+
message: {
|
|
1048
|
+
channel: string;
|
|
1049
|
+
sender: string;
|
|
1050
|
+
text: Array<ContentItem>;
|
|
1051
|
+
} & AdditionalProperties;
|
|
1052
|
+
type: "user.message.inbound";
|
|
1053
|
+
} & AdditionalProperties;
|
|
1054
|
+
/** Source: schema/draft/interaction-event.schema.json#/$defs/user.message.outbound */
|
|
1055
|
+
export type InteractionEventUserMessageOutbound = {
|
|
1056
|
+
message: {
|
|
1057
|
+
channel: string;
|
|
1058
|
+
payload: Array<ContentItem>;
|
|
1059
|
+
} & AdditionalProperties;
|
|
1060
|
+
type: "user.message.outbound";
|
|
1061
|
+
} & AdditionalProperties;
|
|
1062
|
+
/** Source: schema/draft/intercept-deny-response.schema.json# */
|
|
1063
|
+
export type InterceptDenyResponse = JsonRpcSuccessResponse & {
|
|
1064
|
+
result?: {
|
|
1065
|
+
effects: Array<DenyEffect>;
|
|
1066
|
+
extensions?: Extensions;
|
|
1067
|
+
protocolVersion: ProtocolVersion;
|
|
1068
|
+
} & AdditionalProperties;
|
|
1069
|
+
} & AdditionalProperties;
|
|
1070
|
+
/** Source: schema/draft/intercept-no-effect-response.schema.json# */
|
|
1071
|
+
export type InterceptNoEffectResponse = JsonRpcSuccessResponse & {
|
|
1072
|
+
result?: {
|
|
1073
|
+
effects: Array<JsonValue>;
|
|
1074
|
+
extensions?: Extensions;
|
|
1075
|
+
protocolVersion: ProtocolVersion;
|
|
1076
|
+
} & AdditionalProperties;
|
|
1077
|
+
} & AdditionalProperties;
|
|
1078
|
+
/** Source: schema/draft/intercept-request.schema.json# */
|
|
1079
|
+
export type InterceptRequest = JsonRpcRequest & {
|
|
1080
|
+
method: "hooks/intercept";
|
|
1081
|
+
params: {
|
|
1082
|
+
capabilities: Capabilities & {
|
|
1083
|
+
flow?: JsonValue;
|
|
1084
|
+
} & AdditionalProperties;
|
|
1085
|
+
event: ToolBeforeEvent | ToolAfterEvent | SessionStartEvent | ConfigChangeBeforeEvent | TurnStartEvent | TurnFinishBeforeEvent | ModelRequestBeforeEvent | ModelSwitchBeforeEvent | ToolPermissionRequestEvent | ToolBatchAfterEvent | ContextCompactBeforeEvent | ContextCompactAfterEvent | TaskChangeBeforeEvent | UserElicitationRequestEvent | UserElicitationResultEvent | UserMessageInboundEvent | UserMessageOutboundEvent | WorkspaceChangeBeforeEvent | ModelResponseAfterEvent;
|
|
1086
|
+
extensions?: Extensions;
|
|
1087
|
+
protocolVersion: ProtocolVersion;
|
|
1088
|
+
state?: {
|
|
1089
|
+
candidate: null | ({
|
|
1090
|
+
provenance?: {} & AdditionalProperties;
|
|
1091
|
+
value: JsonValue;
|
|
1092
|
+
} & AdditionalProperties);
|
|
1093
|
+
flow?: OpenString<"none" | "stop" | "continue">;
|
|
1094
|
+
injections?: Array<JsonValue>;
|
|
1095
|
+
instructions?: Array<string>;
|
|
1096
|
+
permission: OpenString<"none" | "allow" | "ask" | "deny">;
|
|
1097
|
+
} & AdditionalProperties;
|
|
1098
|
+
} & AdditionalProperties;
|
|
1099
|
+
} & AdditionalProperties;
|
|
1100
|
+
/** Source: schema/draft/intercept-response.schema.json# */
|
|
1101
|
+
export type InterceptResponse = JsonRpcSuccessResponse & {
|
|
1102
|
+
result: {
|
|
1103
|
+
effects: Array<Effect>;
|
|
1104
|
+
extensions?: Extensions;
|
|
1105
|
+
protocolVersion: ProtocolVersion;
|
|
1106
|
+
} & AdditionalProperties;
|
|
1107
|
+
} & AdditionalProperties;
|
|
1108
|
+
/** Source: schema/draft/registration.schema.json#/$defs/interceptSubscription */
|
|
1109
|
+
export type InterceptSubscription = {
|
|
1110
|
+
content: ContentSelection;
|
|
1111
|
+
disableable?: boolean;
|
|
1112
|
+
events: Array<OpenString<"tool.before" | "tool.after" | "session.start" | "config.change.before" | "turn.start" | "turn.finish.before" | "model.request.before" | "model.switch.before" | "tool.permission.request" | "tool.batch.after" | "context.compact.before" | "context.compact.after" | "task.change.before" | "user.elicitation.request" | "user.elicitation.result" | "user.message.inbound" | "user.message.outbound" | "workspace.change.before" | "model.response.after"> | string>;
|
|
1113
|
+
failurePolicy: OpenString<"fail-open" | "fail-closed">;
|
|
1114
|
+
filters?: {
|
|
1115
|
+
paths?: Array<string>;
|
|
1116
|
+
toolKinds?: Array<string>;
|
|
1117
|
+
} & AdditionalProperties;
|
|
1118
|
+
includeNative?: boolean;
|
|
1119
|
+
mode: "intercept";
|
|
1120
|
+
scope?: OpenString<"managed" | "project" | "user">;
|
|
1121
|
+
timeoutMs: number;
|
|
1122
|
+
upload?: ContentUpload;
|
|
1123
|
+
} & AdditionalProperties;
|
|
1124
|
+
/** Source: schema/draft/common.schema.json#/$defs/errorResponse */
|
|
1125
|
+
export type JsonRpcErrorResponse = {
|
|
1126
|
+
error: {
|
|
1127
|
+
code: number;
|
|
1128
|
+
data?: JsonValue;
|
|
1129
|
+
message: string;
|
|
1130
|
+
} & AdditionalProperties;
|
|
1131
|
+
id: JsonRpcResponseId;
|
|
1132
|
+
jsonrpc: "2.0";
|
|
1133
|
+
} & AdditionalProperties;
|
|
1134
|
+
/** Source: schema/draft/common.schema.json#/$defs/jsonRpcId */
|
|
1135
|
+
export type JsonRpcId = string | number;
|
|
1136
|
+
/** Source: schema/draft/json-rpc-message.schema.json# */
|
|
1137
|
+
export type JsonRpcMessage = JsonRpcRequest | JsonRpcNotification | JsonRpcSuccessResponse | JsonRpcErrorResponse;
|
|
1138
|
+
/** Source: schema/draft/common.schema.json#/$defs/notification */
|
|
1139
|
+
export type JsonRpcNotification = {
|
|
1140
|
+
jsonrpc: "2.0";
|
|
1141
|
+
method: string;
|
|
1142
|
+
params: {} & AdditionalProperties;
|
|
1143
|
+
} & AdditionalProperties;
|
|
1144
|
+
/** Source: schema/draft/common.schema.json#/$defs/request */
|
|
1145
|
+
export type JsonRpcRequest = {
|
|
1146
|
+
id: JsonRpcId;
|
|
1147
|
+
jsonrpc: "2.0";
|
|
1148
|
+
method: string;
|
|
1149
|
+
params: {} & AdditionalProperties;
|
|
1150
|
+
} & AdditionalProperties;
|
|
1151
|
+
/** Source: schema/draft/common.schema.json#/$defs/jsonRpcResponseId */
|
|
1152
|
+
export type JsonRpcResponseId = JsonRpcId | null;
|
|
1153
|
+
/** Source: schema/draft/common.schema.json#/$defs/successResponse */
|
|
1154
|
+
export type JsonRpcSuccessResponse = {
|
|
1155
|
+
id: JsonRpcResponseId;
|
|
1156
|
+
jsonrpc: "2.0";
|
|
1157
|
+
result: {} & AdditionalProperties;
|
|
1158
|
+
} & AdditionalProperties;
|
|
1159
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/BooleanSchema */
|
|
1160
|
+
export type McpElicitationBooleanSchema = {
|
|
1161
|
+
default?: boolean;
|
|
1162
|
+
description?: string;
|
|
1163
|
+
title?: string;
|
|
1164
|
+
type: "boolean";
|
|
1165
|
+
} & AdditionalProperties;
|
|
1166
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/ElicitRequestFormParams */
|
|
1167
|
+
export type McpElicitationElicitRequestFormParams = {
|
|
1168
|
+
_meta?: {
|
|
1169
|
+
progressToken?: McpElicitationProgressToken;
|
|
1170
|
+
} & AdditionalProperties;
|
|
1171
|
+
message: string;
|
|
1172
|
+
mode?: "form";
|
|
1173
|
+
requestedSchema: {
|
|
1174
|
+
$schema?: string;
|
|
1175
|
+
properties: {} & AdditionalProperties;
|
|
1176
|
+
required?: Array<string>;
|
|
1177
|
+
type: "object";
|
|
1178
|
+
} & AdditionalProperties;
|
|
1179
|
+
task?: McpElicitationTaskMetadata;
|
|
1180
|
+
} & AdditionalProperties;
|
|
1181
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/ElicitRequestParams */
|
|
1182
|
+
export type McpElicitationElicitRequestParams = McpElicitationElicitRequestURLParams | McpElicitationElicitRequestFormParams;
|
|
1183
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/ElicitRequestURLParams */
|
|
1184
|
+
export type McpElicitationElicitRequestURLParams = {
|
|
1185
|
+
_meta?: {
|
|
1186
|
+
progressToken?: McpElicitationProgressToken;
|
|
1187
|
+
} & AdditionalProperties;
|
|
1188
|
+
elicitationId: string;
|
|
1189
|
+
message: string;
|
|
1190
|
+
mode: "url";
|
|
1191
|
+
task?: McpElicitationTaskMetadata;
|
|
1192
|
+
url: string;
|
|
1193
|
+
} & AdditionalProperties;
|
|
1194
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/ElicitResult */
|
|
1195
|
+
export type McpElicitationElicitResult = {
|
|
1196
|
+
_meta?: {} & AdditionalProperties;
|
|
1197
|
+
action: OpenString<"accept" | "cancel" | "decline">;
|
|
1198
|
+
content?: {} & AdditionalProperties;
|
|
1199
|
+
} & AdditionalProperties;
|
|
1200
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/LegacyTitledEnumSchema */
|
|
1201
|
+
export type McpElicitationLegacyTitledEnumSchema = {
|
|
1202
|
+
default?: string;
|
|
1203
|
+
description?: string;
|
|
1204
|
+
enum: Array<string>;
|
|
1205
|
+
enumNames?: Array<string>;
|
|
1206
|
+
title?: string;
|
|
1207
|
+
type: "string";
|
|
1208
|
+
} & AdditionalProperties;
|
|
1209
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/NumberSchema */
|
|
1210
|
+
export type McpElicitationNumberSchema = {
|
|
1211
|
+
default?: number;
|
|
1212
|
+
description?: string;
|
|
1213
|
+
maximum?: number;
|
|
1214
|
+
minimum?: number;
|
|
1215
|
+
title?: string;
|
|
1216
|
+
type: OpenString<"integer" | "number">;
|
|
1217
|
+
} & AdditionalProperties;
|
|
1218
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/PrimitiveSchemaDefinition */
|
|
1219
|
+
export type McpElicitationPrimitiveSchemaDefinition = McpElicitationStringSchema | McpElicitationNumberSchema | McpElicitationBooleanSchema | McpElicitationUntitledSingleSelectEnumSchema | McpElicitationTitledSingleSelectEnumSchema | McpElicitationUntitledMultiSelectEnumSchema | McpElicitationTitledMultiSelectEnumSchema | McpElicitationLegacyTitledEnumSchema;
|
|
1220
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/ProgressToken */
|
|
1221
|
+
export type McpElicitationProgressToken = string | number;
|
|
1222
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/request */
|
|
1223
|
+
export type McpElicitationRequest = McpElicitationElicitRequestParams;
|
|
1224
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/result */
|
|
1225
|
+
export type McpElicitationResult = McpElicitationElicitResult;
|
|
1226
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/StringSchema */
|
|
1227
|
+
export type McpElicitationStringSchema = {
|
|
1228
|
+
default?: string;
|
|
1229
|
+
description?: string;
|
|
1230
|
+
format?: OpenString<"date" | "date-time" | "email" | "uri">;
|
|
1231
|
+
maxLength?: number;
|
|
1232
|
+
minLength?: number;
|
|
1233
|
+
title?: string;
|
|
1234
|
+
type: "string";
|
|
1235
|
+
} & AdditionalProperties;
|
|
1236
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/TaskMetadata */
|
|
1237
|
+
export type McpElicitationTaskMetadata = {
|
|
1238
|
+
ttl?: number;
|
|
1239
|
+
} & AdditionalProperties;
|
|
1240
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/TitledMultiSelectEnumSchema */
|
|
1241
|
+
export type McpElicitationTitledMultiSelectEnumSchema = {
|
|
1242
|
+
default?: Array<string>;
|
|
1243
|
+
description?: string;
|
|
1244
|
+
items: {
|
|
1245
|
+
anyOf: Array<{
|
|
1246
|
+
const: string;
|
|
1247
|
+
title: string;
|
|
1248
|
+
} & AdditionalProperties>;
|
|
1249
|
+
} & AdditionalProperties;
|
|
1250
|
+
maxItems?: number;
|
|
1251
|
+
minItems?: number;
|
|
1252
|
+
title?: string;
|
|
1253
|
+
type: "array";
|
|
1254
|
+
} & AdditionalProperties;
|
|
1255
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/TitledSingleSelectEnumSchema */
|
|
1256
|
+
export type McpElicitationTitledSingleSelectEnumSchema = {
|
|
1257
|
+
default?: string;
|
|
1258
|
+
description?: string;
|
|
1259
|
+
oneOf: Array<{
|
|
1260
|
+
const: string;
|
|
1261
|
+
title: string;
|
|
1262
|
+
} & AdditionalProperties>;
|
|
1263
|
+
title?: string;
|
|
1264
|
+
type: "string";
|
|
1265
|
+
} & AdditionalProperties;
|
|
1266
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/UntitledMultiSelectEnumSchema */
|
|
1267
|
+
export type McpElicitationUntitledMultiSelectEnumSchema = {
|
|
1268
|
+
default?: Array<string>;
|
|
1269
|
+
description?: string;
|
|
1270
|
+
items: {
|
|
1271
|
+
enum: Array<string>;
|
|
1272
|
+
type: "string";
|
|
1273
|
+
} & AdditionalProperties;
|
|
1274
|
+
maxItems?: number;
|
|
1275
|
+
minItems?: number;
|
|
1276
|
+
title?: string;
|
|
1277
|
+
type: "array";
|
|
1278
|
+
} & AdditionalProperties;
|
|
1279
|
+
/** Source: schema/draft/mcp-elicitation.schema.json#/$defs/UntitledSingleSelectEnumSchema */
|
|
1280
|
+
export type McpElicitationUntitledSingleSelectEnumSchema = {
|
|
1281
|
+
default?: string;
|
|
1282
|
+
description?: string;
|
|
1283
|
+
enum: Array<string>;
|
|
1284
|
+
title?: string;
|
|
1285
|
+
type: "string";
|
|
1286
|
+
} & AdditionalProperties;
|
|
1287
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/model.error */
|
|
1288
|
+
export type ModelErrorEvent = ExecutionEventModelError;
|
|
1289
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/model.request.before */
|
|
1290
|
+
export type ModelRequestBeforeCapabilities = Capabilities & {
|
|
1291
|
+
effects?: Array<OpenString<"deny" | "modify" | "inject" | "return" | "flow" | "message">>;
|
|
1292
|
+
flow?: {
|
|
1293
|
+
operations?: Array<OpenString<"stop">>;
|
|
1294
|
+
} & AdditionalProperties;
|
|
1295
|
+
modify?: {} & AdditionalProperties;
|
|
1296
|
+
} & AdditionalProperties;
|
|
1297
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/model.request.before */
|
|
1298
|
+
export type ModelRequestBeforeEvent = ExecutionEventModelRequestBefore;
|
|
1299
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/model.response.after */
|
|
1300
|
+
export type ModelResponseAfterCapabilities = Capabilities & {
|
|
1301
|
+
effects?: Array<OpenString<"modify" | "flow" | "message">>;
|
|
1302
|
+
flow?: {
|
|
1303
|
+
operations?: Array<OpenString<"stop">>;
|
|
1304
|
+
} & AdditionalProperties;
|
|
1305
|
+
modify?: {} & AdditionalProperties;
|
|
1306
|
+
} & AdditionalProperties;
|
|
1307
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/model.response.after */
|
|
1308
|
+
export type ModelResponseAfterEvent = ExecutionEventModelResponseAfter;
|
|
1309
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/model.switch.after */
|
|
1310
|
+
export type ModelSwitchAfterEvent = ExecutionEventModelSwitchAfter;
|
|
1311
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/model.switch.before */
|
|
1312
|
+
export type ModelSwitchBeforeCapabilities = Capabilities & {
|
|
1313
|
+
effects?: Array<OpenString<"deny" | "flow" | "message">>;
|
|
1314
|
+
flow?: {
|
|
1315
|
+
operations?: Array<OpenString<"stop">>;
|
|
1316
|
+
} & AdditionalProperties;
|
|
1317
|
+
} & AdditionalProperties;
|
|
1318
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/model.switch.before */
|
|
1319
|
+
export type ModelSwitchBeforeEvent = ExecutionEventModelSwitchBefore;
|
|
1320
|
+
/** Source: schema/draft/content-item.schema.json#/$defs/modelVisibleItem */
|
|
1321
|
+
export type ModelVisibleItem = ContentItem & {
|
|
1322
|
+
role: string;
|
|
1323
|
+
} & AdditionalProperties;
|
|
1324
|
+
/** Source: schema/draft/common.schema.json#/$defs/native */
|
|
1325
|
+
export type NativeEvent = JsonValue;
|
|
1326
|
+
/** Source: schema/draft/observe-notification.schema.json# */
|
|
1327
|
+
export type ObserveNotification = JsonRpcNotification & {
|
|
1328
|
+
method?: "hooks/observe";
|
|
1329
|
+
params?: {
|
|
1330
|
+
event: ToolBeforeEvent | ToolAfterEvent | SessionStartEvent | SessionEndEvent | ConfigChangeBeforeEvent | ConfigChangeAfterEvent | TurnStartEvent | TurnFinishBeforeEvent | TurnEndEvent | TurnProgressEvent | ModelRequestBeforeEvent | ModelResponseAfterEvent | ModelErrorEvent | ModelSwitchBeforeEvent | ModelSwitchAfterEvent | ToolPermissionRequestEvent | ToolPermissionResolvedEvent | ToolProgressEvent | ToolBatchAfterEvent | ContextCompactBeforeEvent | ContextCompactAfterEvent | TaskChangeBeforeEvent | TaskChangeAfterEvent | UserAttentionEvent | UserElicitationRequestEvent | UserElicitationResultEvent | UserMessageInboundEvent | UserMessageOutboundEvent | WorkspaceChangeBeforeEvent | WorkspaceChangeAfterEvent | FileChangedEvent | HookFailureEvent;
|
|
1331
|
+
protocolVersion: ProtocolVersion;
|
|
1332
|
+
} & AdditionalProperties;
|
|
1333
|
+
} & AdditionalProperties;
|
|
1334
|
+
/** Source: schema/draft/registration.schema.json#/$defs/observeSubscription */
|
|
1335
|
+
export type ObserveSubscription = {
|
|
1336
|
+
content: ContentSelection;
|
|
1337
|
+
disableable?: boolean;
|
|
1338
|
+
events: Array<OpenString<"tool.before" | "tool.after" | "session.start" | "session.end" | "config.change.before" | "config.change.after" | "turn.start" | "turn.finish.before" | "turn.end" | "turn.progress" | "model.request.before" | "model.response.after" | "model.error" | "model.switch.before" | "model.switch.after" | "tool.permission.request" | "tool.permission.resolved" | "tool.progress" | "tool.batch.after" | "context.compact.before" | "context.compact.after" | "task.change.before" | "task.change.after" | "user.attention" | "user.elicitation.request" | "user.elicitation.result" | "user.message.inbound" | "user.message.outbound" | "workspace.change.before" | "workspace.change.after" | "file.changed" | "hook.failure"> | string>;
|
|
1339
|
+
filters?: {
|
|
1340
|
+
paths?: Array<string>;
|
|
1341
|
+
toolKinds?: Array<string>;
|
|
1342
|
+
} & AdditionalProperties;
|
|
1343
|
+
includeNative?: boolean;
|
|
1344
|
+
mode: "observe";
|
|
1345
|
+
scope?: OpenString<"managed" | "project" | "user">;
|
|
1346
|
+
upload?: ContentUpload;
|
|
1347
|
+
} & AdditionalProperties;
|
|
1348
|
+
/** Source: schema/draft/common.schema.json#/$defs/protocolVersion */
|
|
1349
|
+
export type ProtocolVersion = "draft";
|
|
1350
|
+
/** Source: schema/draft/registration.schema.json# */
|
|
1351
|
+
export type Registration = {
|
|
1352
|
+
hooks: Array<Backend>;
|
|
1353
|
+
protocolVersion: ProtocolVersion;
|
|
1354
|
+
} & AdditionalProperties;
|
|
1355
|
+
/** Source: schema/draft/registration.schema.json#/$defs/contentReceiver */
|
|
1356
|
+
export type RegistrationContentreceiver = {
|
|
1357
|
+
authentication?: Authentication;
|
|
1358
|
+
maxBytes: number;
|
|
1359
|
+
timeoutMs: number;
|
|
1360
|
+
url: string;
|
|
1361
|
+
} & AdditionalProperties;
|
|
1362
|
+
/** Source: schema/draft/registration.schema.json#/$defs/reverseDns */
|
|
1363
|
+
export type ReverseDnsName = string;
|
|
1364
|
+
/** Source: schema/draft/common.schema.json#/$defs/session */
|
|
1365
|
+
export type Session = {
|
|
1366
|
+
agent?: {
|
|
1367
|
+
id: string;
|
|
1368
|
+
type?: string;
|
|
1369
|
+
} & AdditionalProperties;
|
|
1370
|
+
cwd?: string;
|
|
1371
|
+
id: string;
|
|
1372
|
+
model?: string;
|
|
1373
|
+
synthesized?: boolean;
|
|
1374
|
+
workspaceRoots?: Array<string>;
|
|
1375
|
+
} & AdditionalProperties;
|
|
1376
|
+
/** Source: schema/draft/session-end.schema.json# */
|
|
1377
|
+
export type SessionEndEvent = {
|
|
1378
|
+
counters?: {} & AdditionalProperties;
|
|
1379
|
+
extensions?: Extensions;
|
|
1380
|
+
gaps?: Array<{
|
|
1381
|
+
path: string;
|
|
1382
|
+
reason: string;
|
|
1383
|
+
} & AdditionalProperties>;
|
|
1384
|
+
id: string;
|
|
1385
|
+
items?: Array<ContentItem>;
|
|
1386
|
+
native?: NativeEvent;
|
|
1387
|
+
outcome: OpenString<"completed" | "cancelled" | "error" | "unknown">;
|
|
1388
|
+
parentEventId?: string;
|
|
1389
|
+
reason: string;
|
|
1390
|
+
session: Session;
|
|
1391
|
+
source: string;
|
|
1392
|
+
synthesized?: boolean;
|
|
1393
|
+
time: string;
|
|
1394
|
+
turn?: {
|
|
1395
|
+
id: string;
|
|
1396
|
+
synthesized?: boolean;
|
|
1397
|
+
} & AdditionalProperties;
|
|
1398
|
+
type: "session.end";
|
|
1399
|
+
} & AdditionalProperties;
|
|
1400
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/session.start */
|
|
1401
|
+
export type SessionStartCapabilities = Capabilities & {
|
|
1402
|
+
effects?: Array<OpenString<"inject" | "message">>;
|
|
1403
|
+
} & AdditionalProperties;
|
|
1404
|
+
/** Source: schema/draft/session-start.schema.json# */
|
|
1405
|
+
export type SessionStartEvent = {
|
|
1406
|
+
extensions?: Extensions;
|
|
1407
|
+
gaps?: Array<{
|
|
1408
|
+
path: string;
|
|
1409
|
+
reason: string;
|
|
1410
|
+
} & AdditionalProperties>;
|
|
1411
|
+
harness: {
|
|
1412
|
+
name: string;
|
|
1413
|
+
version: string;
|
|
1414
|
+
} & AdditionalProperties;
|
|
1415
|
+
id: string;
|
|
1416
|
+
items: Array<ModelVisibleItem>;
|
|
1417
|
+
manifest: StaticCapabilityManifest;
|
|
1418
|
+
native?: NativeEvent;
|
|
1419
|
+
parentEventId?: string;
|
|
1420
|
+
permissionMode: string;
|
|
1421
|
+
resumedFrom?: {
|
|
1422
|
+
id: string;
|
|
1423
|
+
synthesized?: boolean;
|
|
1424
|
+
} & AdditionalProperties;
|
|
1425
|
+
session: Session;
|
|
1426
|
+
source: string;
|
|
1427
|
+
synthesized?: boolean;
|
|
1428
|
+
time: string;
|
|
1429
|
+
trigger: OpenString<"startup" | "resume" | "clear" | "compact" | "fork">;
|
|
1430
|
+
turn?: {
|
|
1431
|
+
id: string;
|
|
1432
|
+
synthesized?: boolean;
|
|
1433
|
+
} & AdditionalProperties;
|
|
1434
|
+
type: "session.start";
|
|
1435
|
+
} & AdditionalProperties;
|
|
1436
|
+
/** Source: schema/draft/capabilities-response.schema.json#/allOf/1/properties/result/properties/manifest */
|
|
1437
|
+
export type StaticCapabilityManifest = {
|
|
1438
|
+
authentication: Array<OpenString<"bearer" | "oauth">>;
|
|
1439
|
+
contentCategories: Array<string>;
|
|
1440
|
+
correlationIdentityFields: Array<string>;
|
|
1441
|
+
events: Array<{
|
|
1442
|
+
capabilities?: Capabilities;
|
|
1443
|
+
event: OpenString<"tool.before" | "tool.after" | "session.start" | "session.end" | "config.change.before" | "config.change.after" | "turn.start" | "turn.finish.before" | "turn.end" | "turn.progress" | "model.request.before" | "model.response.after" | "model.error" | "model.switch.before" | "model.switch.after" | "tool.permission.request" | "tool.permission.resolved" | "tool.progress" | "tool.batch.after" | "context.compact.before" | "context.compact.after" | "task.change.before" | "task.change.after" | "user.attention" | "user.elicitation.request" | "user.elicitation.result" | "user.message.inbound" | "user.message.outbound" | "workspace.change.before" | "workspace.change.after" | "file.changed" | "hook.failure">;
|
|
1444
|
+
modes: Array<OpenString<"observe" | "intercept">>;
|
|
1445
|
+
} & AdditionalProperties>;
|
|
1446
|
+
gaps: Array<{
|
|
1447
|
+
path: string;
|
|
1448
|
+
reason: string;
|
|
1449
|
+
} & AdditionalProperties>;
|
|
1450
|
+
limits: {
|
|
1451
|
+
maxContinuations?: number;
|
|
1452
|
+
maxTimeoutMs?: number;
|
|
1453
|
+
maxUploadBytes?: number;
|
|
1454
|
+
minTimeoutMs?: number;
|
|
1455
|
+
} & AdditionalProperties;
|
|
1456
|
+
managedPolicy: {
|
|
1457
|
+
disableable: boolean;
|
|
1458
|
+
scopes: Array<OpenString<"user" | "project" | "managed">>;
|
|
1459
|
+
} & AdditionalProperties;
|
|
1460
|
+
toolPaths: Array<string>;
|
|
1461
|
+
transports: Array<OpenString<"http" | "stdio" | "in_process">>;
|
|
1462
|
+
} & AdditionalProperties;
|
|
1463
|
+
/** Source: schema/draft/registration.schema.json#/$defs/stdioTransport */
|
|
1464
|
+
export type StdioTransport = {
|
|
1465
|
+
args?: Array<string>;
|
|
1466
|
+
command: string;
|
|
1467
|
+
cwd?: string;
|
|
1468
|
+
lifecycle: OpenString<"persistent" | "per_event">;
|
|
1469
|
+
type: "stdio";
|
|
1470
|
+
} & AdditionalProperties;
|
|
1471
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/task.change.after */
|
|
1472
|
+
export type TaskChangeAfterEvent = TaskWorkspaceEventTaskChangeAfter;
|
|
1473
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/task.change.before */
|
|
1474
|
+
export type TaskChangeBeforeCapabilities = Capabilities & {
|
|
1475
|
+
effects?: Array<OpenString<"deny" | "message">>;
|
|
1476
|
+
} & AdditionalProperties;
|
|
1477
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/task.change.before */
|
|
1478
|
+
export type TaskChangeBeforeEvent = TaskWorkspaceEventTaskChangeBefore;
|
|
1479
|
+
/** Source: schema/draft/task-workspace-event.schema.json# */
|
|
1480
|
+
export type TaskWorkspaceEvent = TaskWorkspaceEventTaskChangeBefore | TaskWorkspaceEventTaskChangeAfter | TaskWorkspaceEventWorkspaceChangeBefore | TaskWorkspaceEventWorkspaceChangeAfter | TaskWorkspaceEventFileChanged | UnknownVariant<"type">;
|
|
1481
|
+
/** Source: schema/draft/task-workspace-event.schema.json#/$defs/file.changed */
|
|
1482
|
+
export type TaskWorkspaceEventFileChanged = {
|
|
1483
|
+
changes: Array<{
|
|
1484
|
+
after?: ContentReference;
|
|
1485
|
+
agentCaused: boolean;
|
|
1486
|
+
before?: ContentReference;
|
|
1487
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
1488
|
+
path: string;
|
|
1489
|
+
} & AdditionalProperties>;
|
|
1490
|
+
extensions?: Extensions;
|
|
1491
|
+
gaps?: Array<{
|
|
1492
|
+
path: string;
|
|
1493
|
+
reason: string;
|
|
1494
|
+
} & AdditionalProperties>;
|
|
1495
|
+
id: string;
|
|
1496
|
+
items?: Array<ContentItem>;
|
|
1497
|
+
native?: NativeEvent;
|
|
1498
|
+
parentEventId?: string;
|
|
1499
|
+
session?: Session;
|
|
1500
|
+
source: string;
|
|
1501
|
+
synthesized?: boolean;
|
|
1502
|
+
time: string;
|
|
1503
|
+
turn?: {
|
|
1504
|
+
id: string;
|
|
1505
|
+
synthesized?: boolean;
|
|
1506
|
+
} & AdditionalProperties;
|
|
1507
|
+
type: "file.changed";
|
|
1508
|
+
} & AdditionalProperties;
|
|
1509
|
+
/** Source: schema/draft/task-workspace-event.schema.json#/$defs/task.change.after */
|
|
1510
|
+
export type TaskWorkspaceEventTaskChangeAfter = {
|
|
1511
|
+
extensions?: Extensions;
|
|
1512
|
+
gaps?: Array<{
|
|
1513
|
+
path: string;
|
|
1514
|
+
reason: string;
|
|
1515
|
+
} & AdditionalProperties>;
|
|
1516
|
+
id: string;
|
|
1517
|
+
items?: Array<ContentItem>;
|
|
1518
|
+
native?: NativeEvent;
|
|
1519
|
+
parentEventId?: string;
|
|
1520
|
+
session?: Session;
|
|
1521
|
+
source: string;
|
|
1522
|
+
synthesized?: boolean;
|
|
1523
|
+
task: {
|
|
1524
|
+
change: {} & AdditionalProperties;
|
|
1525
|
+
description?: string;
|
|
1526
|
+
id: string;
|
|
1527
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
1528
|
+
prior?: {} & AdditionalProperties;
|
|
1529
|
+
synthesized?: boolean;
|
|
1530
|
+
} & AdditionalProperties;
|
|
1531
|
+
time: string;
|
|
1532
|
+
turn?: {
|
|
1533
|
+
id: string;
|
|
1534
|
+
synthesized?: boolean;
|
|
1535
|
+
} & AdditionalProperties;
|
|
1536
|
+
type: "task.change.after";
|
|
1537
|
+
} & AdditionalProperties;
|
|
1538
|
+
/** Source: schema/draft/task-workspace-event.schema.json#/$defs/task.change.before */
|
|
1539
|
+
export type TaskWorkspaceEventTaskChangeBefore = {
|
|
1540
|
+
extensions?: Extensions;
|
|
1541
|
+
gaps?: Array<{
|
|
1542
|
+
path: string;
|
|
1543
|
+
reason: string;
|
|
1544
|
+
} & AdditionalProperties>;
|
|
1545
|
+
id: string;
|
|
1546
|
+
items?: Array<ContentItem>;
|
|
1547
|
+
native?: NativeEvent;
|
|
1548
|
+
parentEventId?: string;
|
|
1549
|
+
session?: Session;
|
|
1550
|
+
source: string;
|
|
1551
|
+
synthesized?: boolean;
|
|
1552
|
+
task: {
|
|
1553
|
+
change: {} & AdditionalProperties;
|
|
1554
|
+
description?: string;
|
|
1555
|
+
id: string;
|
|
1556
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
1557
|
+
prior?: {} & AdditionalProperties;
|
|
1558
|
+
synthesized?: boolean;
|
|
1559
|
+
} & AdditionalProperties;
|
|
1560
|
+
time: string;
|
|
1561
|
+
turn?: {
|
|
1562
|
+
id: string;
|
|
1563
|
+
synthesized?: boolean;
|
|
1564
|
+
} & AdditionalProperties;
|
|
1565
|
+
type: "task.change.before";
|
|
1566
|
+
} & AdditionalProperties;
|
|
1567
|
+
/** Source: schema/draft/task-workspace-event.schema.json#/$defs/workspace.change.after */
|
|
1568
|
+
export type TaskWorkspaceEventWorkspaceChangeAfter = {
|
|
1569
|
+
extensions?: Extensions;
|
|
1570
|
+
gaps?: Array<{
|
|
1571
|
+
path: string;
|
|
1572
|
+
reason: string;
|
|
1573
|
+
} & AdditionalProperties>;
|
|
1574
|
+
id: string;
|
|
1575
|
+
items?: Array<ContentItem>;
|
|
1576
|
+
native?: NativeEvent;
|
|
1577
|
+
parentEventId?: string;
|
|
1578
|
+
session?: Session;
|
|
1579
|
+
source: string;
|
|
1580
|
+
synthesized?: boolean;
|
|
1581
|
+
time: string;
|
|
1582
|
+
turn?: {
|
|
1583
|
+
id: string;
|
|
1584
|
+
synthesized?: boolean;
|
|
1585
|
+
} & AdditionalProperties;
|
|
1586
|
+
type: "workspace.change.after";
|
|
1587
|
+
workspace: {
|
|
1588
|
+
change: {
|
|
1589
|
+
cwd?: string;
|
|
1590
|
+
workspaceRoots?: Array<string>;
|
|
1591
|
+
} & AdditionalProperties;
|
|
1592
|
+
kind: OpenString<"cwd" | "roots" | "switch">;
|
|
1593
|
+
prior?: {
|
|
1594
|
+
cwd?: string;
|
|
1595
|
+
workspaceRoots?: Array<string>;
|
|
1596
|
+
} & AdditionalProperties;
|
|
1597
|
+
reason?: string;
|
|
1598
|
+
} & AdditionalProperties;
|
|
1599
|
+
} & AdditionalProperties;
|
|
1600
|
+
/** Source: schema/draft/task-workspace-event.schema.json#/$defs/workspace.change.before */
|
|
1601
|
+
export type TaskWorkspaceEventWorkspaceChangeBefore = {
|
|
1602
|
+
extensions?: Extensions;
|
|
1603
|
+
gaps?: Array<{
|
|
1604
|
+
path: string;
|
|
1605
|
+
reason: string;
|
|
1606
|
+
} & AdditionalProperties>;
|
|
1607
|
+
id: string;
|
|
1608
|
+
items?: Array<ContentItem>;
|
|
1609
|
+
native?: NativeEvent;
|
|
1610
|
+
parentEventId?: string;
|
|
1611
|
+
session?: Session;
|
|
1612
|
+
source: string;
|
|
1613
|
+
synthesized?: boolean;
|
|
1614
|
+
time: string;
|
|
1615
|
+
turn?: {
|
|
1616
|
+
id: string;
|
|
1617
|
+
synthesized?: boolean;
|
|
1618
|
+
} & AdditionalProperties;
|
|
1619
|
+
type: "workspace.change.before";
|
|
1620
|
+
workspace: {
|
|
1621
|
+
change: {
|
|
1622
|
+
cwd?: string;
|
|
1623
|
+
workspaceRoots?: Array<string>;
|
|
1624
|
+
} & AdditionalProperties;
|
|
1625
|
+
kind: OpenString<"cwd" | "roots" | "switch">;
|
|
1626
|
+
prior?: {
|
|
1627
|
+
cwd?: string;
|
|
1628
|
+
workspaceRoots?: Array<string>;
|
|
1629
|
+
} & AdditionalProperties;
|
|
1630
|
+
reason?: string;
|
|
1631
|
+
} & AdditionalProperties;
|
|
1632
|
+
} & AdditionalProperties;
|
|
1633
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/tool.after */
|
|
1634
|
+
export type ToolAfterCapabilities = Capabilities & {
|
|
1635
|
+
effects?: Array<OpenString<"modify" | "inject" | "flow" | "message">>;
|
|
1636
|
+
flow?: {
|
|
1637
|
+
operations?: Array<OpenString<"stop" | "continue">>;
|
|
1638
|
+
} & AdditionalProperties;
|
|
1639
|
+
modify?: {} & AdditionalProperties;
|
|
1640
|
+
} & AdditionalProperties;
|
|
1641
|
+
/** Source: schema/draft/tool-after.schema.json# */
|
|
1642
|
+
export type ToolAfterEvent = {
|
|
1643
|
+
batch?: ExecutionEventBatch;
|
|
1644
|
+
call: {
|
|
1645
|
+
id: string;
|
|
1646
|
+
synthesized?: boolean;
|
|
1647
|
+
} & AdditionalProperties;
|
|
1648
|
+
durationMs?: number;
|
|
1649
|
+
error?: ExecutionEventError;
|
|
1650
|
+
execution: ExecutionEventExecution;
|
|
1651
|
+
extensions?: Extensions;
|
|
1652
|
+
fileChanges?: Array<ExecutionEventFilechange>;
|
|
1653
|
+
gaps?: Array<{
|
|
1654
|
+
path: string;
|
|
1655
|
+
reason: string;
|
|
1656
|
+
} & AdditionalProperties>;
|
|
1657
|
+
id: string;
|
|
1658
|
+
items: Array<ModelVisibleItem>;
|
|
1659
|
+
native?: NativeEvent;
|
|
1660
|
+
outcome: OpenString<"ok" | "error" | "denied" | "cancelled" | "timeout">;
|
|
1661
|
+
parentEventId?: string;
|
|
1662
|
+
path: string;
|
|
1663
|
+
session?: Session;
|
|
1664
|
+
source: string;
|
|
1665
|
+
synthesized?: boolean;
|
|
1666
|
+
time: string;
|
|
1667
|
+
tool: ExecutionEventTool;
|
|
1668
|
+
turn?: {
|
|
1669
|
+
id: string;
|
|
1670
|
+
synthesized?: boolean;
|
|
1671
|
+
} & AdditionalProperties;
|
|
1672
|
+
type: "tool.after";
|
|
1673
|
+
} & AdditionalProperties;
|
|
1674
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/tool.batch.after */
|
|
1675
|
+
export type ToolBatchAfterCapabilities = Capabilities & {
|
|
1676
|
+
effects?: Array<OpenString<"flow" | "inject" | "message">>;
|
|
1677
|
+
flow?: {
|
|
1678
|
+
operations?: Array<OpenString<"stop">>;
|
|
1679
|
+
} & AdditionalProperties;
|
|
1680
|
+
} & AdditionalProperties;
|
|
1681
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/tool.batch.after */
|
|
1682
|
+
export type ToolBatchAfterEvent = ExecutionEventToolBatchAfter;
|
|
1683
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/tool.before */
|
|
1684
|
+
export type ToolBeforeCapabilities = Capabilities & {
|
|
1685
|
+
effects?: Array<OpenString<"deny" | "allow" | "ask" | "modify" | "inject" | "flow" | "return" | "message">>;
|
|
1686
|
+
flow?: {
|
|
1687
|
+
operations?: Array<OpenString<"stop">>;
|
|
1688
|
+
} & AdditionalProperties;
|
|
1689
|
+
modify?: {} & AdditionalProperties;
|
|
1690
|
+
} & AdditionalProperties;
|
|
1691
|
+
/** Source: schema/draft/tool-before.schema.json# */
|
|
1692
|
+
export type ToolBeforeEvent = {
|
|
1693
|
+
batch?: ExecutionEventBatch;
|
|
1694
|
+
call: {
|
|
1695
|
+
id: string;
|
|
1696
|
+
synthesized?: boolean;
|
|
1697
|
+
} & AdditionalProperties;
|
|
1698
|
+
extensions?: Extensions;
|
|
1699
|
+
gaps?: Array<{
|
|
1700
|
+
path: string;
|
|
1701
|
+
reason: string;
|
|
1702
|
+
} & AdditionalProperties>;
|
|
1703
|
+
id: string;
|
|
1704
|
+
items?: Array<ContentItem>;
|
|
1705
|
+
native?: NativeEvent;
|
|
1706
|
+
parentEventId?: string;
|
|
1707
|
+
path: string;
|
|
1708
|
+
session?: Session;
|
|
1709
|
+
source: string;
|
|
1710
|
+
synthesized?: boolean;
|
|
1711
|
+
time: string;
|
|
1712
|
+
tool: ExecutionEventTool;
|
|
1713
|
+
turn?: {
|
|
1714
|
+
id: string;
|
|
1715
|
+
synthesized?: boolean;
|
|
1716
|
+
} & AdditionalProperties;
|
|
1717
|
+
type: "tool.before";
|
|
1718
|
+
} & AdditionalProperties;
|
|
1719
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/tool.permission.request */
|
|
1720
|
+
export type ToolPermissionRequestCapabilities = Capabilities & {
|
|
1721
|
+
effects?: Array<OpenString<"allow" | "deny" | "modify" | "flow" | "message">>;
|
|
1722
|
+
flow?: {
|
|
1723
|
+
operations?: Array<OpenString<"stop">>;
|
|
1724
|
+
} & AdditionalProperties;
|
|
1725
|
+
modify?: {} & AdditionalProperties;
|
|
1726
|
+
} & AdditionalProperties;
|
|
1727
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/tool.permission.request */
|
|
1728
|
+
export type ToolPermissionRequestEvent = ExecutionEventToolPermissionRequest;
|
|
1729
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/tool.permission.resolved */
|
|
1730
|
+
export type ToolPermissionResolvedEvent = ExecutionEventToolPermissionResolved;
|
|
1731
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/tool.progress */
|
|
1732
|
+
export type ToolProgressEvent = ExecutionEventToolProgress;
|
|
1733
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/turn.end */
|
|
1734
|
+
export type TurnEndEvent = ExecutionEventTurnEnd;
|
|
1735
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/turn.finish.before */
|
|
1736
|
+
export type TurnFinishBeforeCapabilities = Capabilities & {
|
|
1737
|
+
effects?: Array<OpenString<"modify" | "flow" | "message">>;
|
|
1738
|
+
flow?: {
|
|
1739
|
+
operations?: Array<OpenString<"stop" | "continue">>;
|
|
1740
|
+
} & AdditionalProperties;
|
|
1741
|
+
modify?: {} & AdditionalProperties;
|
|
1742
|
+
} & AdditionalProperties;
|
|
1743
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/turn.finish.before */
|
|
1744
|
+
export type TurnFinishBeforeEvent = ExecutionEventTurnFinishBefore;
|
|
1745
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/turn.progress */
|
|
1746
|
+
export type TurnProgressEvent = ExecutionEventTurnProgress;
|
|
1747
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/turn.start */
|
|
1748
|
+
export type TurnStartCapabilities = Capabilities & {
|
|
1749
|
+
effects?: Array<OpenString<"deny" | "modify" | "inject" | "flow" | "message">>;
|
|
1750
|
+
flow?: {
|
|
1751
|
+
operations?: Array<OpenString<"stop">>;
|
|
1752
|
+
} & AdditionalProperties;
|
|
1753
|
+
modify?: {} & AdditionalProperties;
|
|
1754
|
+
} & AdditionalProperties;
|
|
1755
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/turn.start */
|
|
1756
|
+
export type TurnStartEvent = ExecutionEventTurnStart;
|
|
1757
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/user.attention */
|
|
1758
|
+
export type UserAttentionEvent = {
|
|
1759
|
+
extensions?: Extensions;
|
|
1760
|
+
gaps?: Array<{
|
|
1761
|
+
path: string;
|
|
1762
|
+
reason: string;
|
|
1763
|
+
} & AdditionalProperties>;
|
|
1764
|
+
id: string;
|
|
1765
|
+
items?: Array<ContentItem>;
|
|
1766
|
+
native?: NativeEvent;
|
|
1767
|
+
parentEventId?: string;
|
|
1768
|
+
session?: Session;
|
|
1769
|
+
source: string;
|
|
1770
|
+
synthesized?: boolean;
|
|
1771
|
+
time: string;
|
|
1772
|
+
turn?: {
|
|
1773
|
+
id: string;
|
|
1774
|
+
synthesized?: boolean;
|
|
1775
|
+
} & AdditionalProperties;
|
|
1776
|
+
type: "user.attention";
|
|
1777
|
+
} & AdditionalProperties & InteractionEventUserAttention;
|
|
1778
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/user.elicitation.request */
|
|
1779
|
+
export type UserElicitationRequestCapabilities = Capabilities & {
|
|
1780
|
+
effects?: Array<OpenString<"deny" | "return" | "message">>;
|
|
1781
|
+
} & AdditionalProperties;
|
|
1782
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/user.elicitation.request */
|
|
1783
|
+
export type UserElicitationRequestEvent = {
|
|
1784
|
+
extensions?: Extensions;
|
|
1785
|
+
gaps?: Array<{
|
|
1786
|
+
path: string;
|
|
1787
|
+
reason: string;
|
|
1788
|
+
} & AdditionalProperties>;
|
|
1789
|
+
id: string;
|
|
1790
|
+
items?: Array<ContentItem>;
|
|
1791
|
+
native?: NativeEvent;
|
|
1792
|
+
parentEventId?: string;
|
|
1793
|
+
session?: Session;
|
|
1794
|
+
source: string;
|
|
1795
|
+
synthesized?: boolean;
|
|
1796
|
+
time: string;
|
|
1797
|
+
turn?: {
|
|
1798
|
+
id: string;
|
|
1799
|
+
synthesized?: boolean;
|
|
1800
|
+
} & AdditionalProperties;
|
|
1801
|
+
type: "user.elicitation.request";
|
|
1802
|
+
} & AdditionalProperties & InteractionEventUserElicitationRequest;
|
|
1803
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/user.elicitation.result */
|
|
1804
|
+
export type UserElicitationResultCapabilities = Capabilities & {
|
|
1805
|
+
effects?: Array<OpenString<"modify" | "message">>;
|
|
1806
|
+
modify?: {} & AdditionalProperties;
|
|
1807
|
+
} & AdditionalProperties;
|
|
1808
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/user.elicitation.result */
|
|
1809
|
+
export type UserElicitationResultEvent = {
|
|
1810
|
+
extensions?: Extensions;
|
|
1811
|
+
gaps?: Array<{
|
|
1812
|
+
path: string;
|
|
1813
|
+
reason: string;
|
|
1814
|
+
} & AdditionalProperties>;
|
|
1815
|
+
id: string;
|
|
1816
|
+
items?: Array<ContentItem>;
|
|
1817
|
+
native?: NativeEvent;
|
|
1818
|
+
parentEventId?: string;
|
|
1819
|
+
session?: Session;
|
|
1820
|
+
source: string;
|
|
1821
|
+
synthesized?: boolean;
|
|
1822
|
+
time: string;
|
|
1823
|
+
turn?: {
|
|
1824
|
+
id: string;
|
|
1825
|
+
synthesized?: boolean;
|
|
1826
|
+
} & AdditionalProperties;
|
|
1827
|
+
type: "user.elicitation.result";
|
|
1828
|
+
} & AdditionalProperties & InteractionEventUserElicitationResult;
|
|
1829
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/user.message.inbound */
|
|
1830
|
+
export type UserMessageInboundCapabilities = Capabilities & {
|
|
1831
|
+
effects?: Array<OpenString<"deny" | "modify" | "message">>;
|
|
1832
|
+
modify?: {} & AdditionalProperties;
|
|
1833
|
+
} & AdditionalProperties;
|
|
1834
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/user.message.inbound */
|
|
1835
|
+
export type UserMessageInboundEvent = {
|
|
1836
|
+
extensions?: Extensions;
|
|
1837
|
+
gaps?: Array<{
|
|
1838
|
+
path: string;
|
|
1839
|
+
reason: string;
|
|
1840
|
+
} & AdditionalProperties>;
|
|
1841
|
+
id: string;
|
|
1842
|
+
items?: Array<ContentItem>;
|
|
1843
|
+
native?: NativeEvent;
|
|
1844
|
+
parentEventId?: string;
|
|
1845
|
+
session?: Session;
|
|
1846
|
+
source: string;
|
|
1847
|
+
synthesized?: boolean;
|
|
1848
|
+
time: string;
|
|
1849
|
+
turn?: {
|
|
1850
|
+
id: string;
|
|
1851
|
+
synthesized?: boolean;
|
|
1852
|
+
} & AdditionalProperties;
|
|
1853
|
+
type: "user.message.inbound";
|
|
1854
|
+
} & AdditionalProperties & InteractionEventUserMessageInbound;
|
|
1855
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/user.message.outbound */
|
|
1856
|
+
export type UserMessageOutboundCapabilities = Capabilities & {
|
|
1857
|
+
effects?: Array<OpenString<"deny" | "modify" | "message">>;
|
|
1858
|
+
modify?: {} & AdditionalProperties;
|
|
1859
|
+
} & AdditionalProperties;
|
|
1860
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/user.message.outbound */
|
|
1861
|
+
export type UserMessageOutboundEvent = {
|
|
1862
|
+
extensions?: Extensions;
|
|
1863
|
+
gaps?: Array<{
|
|
1864
|
+
path: string;
|
|
1865
|
+
reason: string;
|
|
1866
|
+
} & AdditionalProperties>;
|
|
1867
|
+
id: string;
|
|
1868
|
+
items?: Array<ContentItem>;
|
|
1869
|
+
native?: NativeEvent;
|
|
1870
|
+
parentEventId?: string;
|
|
1871
|
+
session?: Session;
|
|
1872
|
+
source: string;
|
|
1873
|
+
synthesized?: boolean;
|
|
1874
|
+
time: string;
|
|
1875
|
+
turn?: {
|
|
1876
|
+
id: string;
|
|
1877
|
+
synthesized?: boolean;
|
|
1878
|
+
} & AdditionalProperties;
|
|
1879
|
+
type: "user.message.outbound";
|
|
1880
|
+
} & AdditionalProperties & InteractionEventUserMessageOutbound;
|
|
1881
|
+
/** Source: schema/draft/schema.json# */
|
|
1882
|
+
export type WireMessage = InterceptRequest | InterceptResponse | JsonRpcErrorResponse | ObserveNotification | CapabilitiesRequest | CapabilitiesResponse;
|
|
1883
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/workspace.change.after */
|
|
1884
|
+
export type WorkspaceChangeAfterEvent = TaskWorkspaceEventWorkspaceChangeAfter;
|
|
1885
|
+
/** Source: schema/draft/capabilities.schema.json#/$defs/workspace.change.before */
|
|
1886
|
+
export type WorkspaceChangeBeforeCapabilities = Capabilities & {
|
|
1887
|
+
effects?: Array<OpenString<"deny" | "modify" | "message">>;
|
|
1888
|
+
modify?: {} & AdditionalProperties;
|
|
1889
|
+
} & AdditionalProperties;
|
|
1890
|
+
/** Source: schema/draft/catalogue-event.schema.json#/$defs/workspace.change.before */
|
|
1891
|
+
export type WorkspaceChangeBeforeEvent = TaskWorkspaceEventWorkspaceChangeBefore;
|
|
1892
|
+
export declare function parseCapabilities(input: string | unknown): ParseResult<Capabilities>;
|
|
1893
|
+
export declare function encodeCapabilities(value: Capabilities): string;
|
|
1894
|
+
export declare const capabilitiesSchemaRevision: "draft";
|
|
1895
|
+
export declare function parseCapabilitiesRequest(input: string | unknown): ParseResult<CapabilitiesRequest>;
|
|
1896
|
+
export declare function encodeCapabilitiesRequest(value: CapabilitiesRequest): string;
|
|
1897
|
+
export declare const capabilitiesRequestSchemaRevision: "draft";
|
|
1898
|
+
export declare function parseCapabilitiesResponse(input: string | unknown): ParseResult<CapabilitiesResponse>;
|
|
1899
|
+
export declare function encodeCapabilitiesResponse(value: CapabilitiesResponse): string;
|
|
1900
|
+
export declare const capabilitiesResponseSchemaRevision: "draft";
|
|
1901
|
+
export declare function parseCatalogueEvent(input: string | unknown): ParseResult<CatalogueEvent>;
|
|
1902
|
+
export declare function encodeCatalogueEvent(value: CatalogueEvent): string;
|
|
1903
|
+
export declare const catalogueEventSchemaRevision: "draft";
|
|
1904
|
+
export declare function parseContentItem(input: string | unknown): ParseResult<ContentItem>;
|
|
1905
|
+
export declare function encodeContentItem(value: ContentItem): string;
|
|
1906
|
+
export declare const contentItemSchemaRevision: "draft";
|
|
1907
|
+
export declare function parseContentReference(input: string | unknown): ParseResult<ContentReference>;
|
|
1908
|
+
export declare function encodeContentReference(value: ContentReference): string;
|
|
1909
|
+
export declare const contentReferenceSchemaRevision: "draft";
|
|
1910
|
+
export declare function parseContentSelection(input: string | unknown): ParseResult<ContentSelection>;
|
|
1911
|
+
export declare function encodeContentSelection(value: ContentSelection): string;
|
|
1912
|
+
export declare const contentSelectionSchemaRevision: "draft";
|
|
1913
|
+
export declare function parseContentUpload(input: string | unknown): ParseResult<ContentUpload>;
|
|
1914
|
+
export declare function encodeContentUpload(value: ContentUpload): string;
|
|
1915
|
+
export declare const contentUploadSchemaRevision: "draft";
|
|
1916
|
+
export declare function parseDenyEffect(input: string | unknown): ParseResult<DenyEffect>;
|
|
1917
|
+
export declare function encodeDenyEffect(value: DenyEffect): string;
|
|
1918
|
+
export declare const denyEffectSchemaRevision: "draft";
|
|
1919
|
+
export declare function parseEffect(input: string | unknown): ParseResult<Effect>;
|
|
1920
|
+
export declare function encodeEffect(value: Effect): string;
|
|
1921
|
+
export declare const effectSchemaRevision: "draft";
|
|
1922
|
+
export declare function parseExecutionEvent(input: string | unknown): ParseResult<ExecutionEvent>;
|
|
1923
|
+
export declare function encodeExecutionEvent(value: ExecutionEvent): string;
|
|
1924
|
+
export declare const executionEventSchemaRevision: "draft";
|
|
1925
|
+
export declare function parseExtensions(input: string | unknown): ParseResult<Extensions>;
|
|
1926
|
+
export declare function encodeExtensions(value: Extensions): string;
|
|
1927
|
+
export declare const extensionsSchemaRevision: "draft";
|
|
1928
|
+
export declare function parseInteractionEvent(input: string | unknown): ParseResult<InteractionEvent>;
|
|
1929
|
+
export declare function encodeInteractionEvent(value: InteractionEvent): string;
|
|
1930
|
+
export declare const interactionEventSchemaRevision: "draft";
|
|
1931
|
+
export declare function parseInterceptDenyResponse(input: string | unknown): ParseResult<InterceptDenyResponse>;
|
|
1932
|
+
export declare function encodeInterceptDenyResponse(value: InterceptDenyResponse): string;
|
|
1933
|
+
export declare const interceptDenyResponseSchemaRevision: "draft";
|
|
1934
|
+
export declare function parseInterceptNoEffectResponse(input: string | unknown): ParseResult<InterceptNoEffectResponse>;
|
|
1935
|
+
export declare function encodeInterceptNoEffectResponse(value: InterceptNoEffectResponse): string;
|
|
1936
|
+
export declare const interceptNoEffectResponseSchemaRevision: "draft";
|
|
1937
|
+
export declare function parseInterceptRequest(input: string | unknown): ParseResult<InterceptRequest>;
|
|
1938
|
+
export declare function encodeInterceptRequest(value: InterceptRequest): string;
|
|
1939
|
+
export declare const interceptRequestSchemaRevision: "draft";
|
|
1940
|
+
export declare function parseInterceptResponse(input: string | unknown): ParseResult<InterceptResponse>;
|
|
1941
|
+
export declare function encodeInterceptResponse(value: InterceptResponse): string;
|
|
1942
|
+
export declare const interceptResponseSchemaRevision: "draft";
|
|
1943
|
+
export declare function parseJsonRpcMessage(input: string | unknown): ParseResult<JsonRpcMessage>;
|
|
1944
|
+
export declare function encodeJsonRpcMessage(value: JsonRpcMessage): string;
|
|
1945
|
+
export declare const jsonRpcMessageSchemaRevision: "draft";
|
|
1946
|
+
export declare function parseObserveNotification(input: string | unknown): ParseResult<ObserveNotification>;
|
|
1947
|
+
export declare function encodeObserveNotification(value: ObserveNotification): string;
|
|
1948
|
+
export declare const observeNotificationSchemaRevision: "draft";
|
|
1949
|
+
export declare function parseRegistration(input: string | unknown): ParseResult<Registration>;
|
|
1950
|
+
export declare function encodeRegistration(value: Registration): string;
|
|
1951
|
+
export declare const registrationSchemaRevision: "draft";
|
|
1952
|
+
export declare function parseSessionEndEvent(input: string | unknown): ParseResult<SessionEndEvent>;
|
|
1953
|
+
export declare function encodeSessionEndEvent(value: SessionEndEvent): string;
|
|
1954
|
+
export declare const sessionEndEventSchemaRevision: "draft";
|
|
1955
|
+
export declare function parseSessionStartEvent(input: string | unknown): ParseResult<SessionStartEvent>;
|
|
1956
|
+
export declare function encodeSessionStartEvent(value: SessionStartEvent): string;
|
|
1957
|
+
export declare const sessionStartEventSchemaRevision: "draft";
|
|
1958
|
+
export declare function parseTaskWorkspaceEvent(input: string | unknown): ParseResult<TaskWorkspaceEvent>;
|
|
1959
|
+
export declare function encodeTaskWorkspaceEvent(value: TaskWorkspaceEvent): string;
|
|
1960
|
+
export declare const taskWorkspaceEventSchemaRevision: "draft";
|
|
1961
|
+
export declare function parseToolAfterEvent(input: string | unknown): ParseResult<ToolAfterEvent>;
|
|
1962
|
+
export declare function encodeToolAfterEvent(value: ToolAfterEvent): string;
|
|
1963
|
+
export declare const toolAfterEventSchemaRevision: "draft";
|
|
1964
|
+
export declare function parseToolBeforeEvent(input: string | unknown): ParseResult<ToolBeforeEvent>;
|
|
1965
|
+
export declare function encodeToolBeforeEvent(value: ToolBeforeEvent): string;
|
|
1966
|
+
export declare const toolBeforeEventSchemaRevision: "draft";
|
|
1967
|
+
export declare function parseWireMessage(input: string | unknown): ParseResult<WireMessage>;
|
|
1968
|
+
export declare function encodeWireMessage(value: WireMessage): string;
|
|
1969
|
+
export declare const wireMessageSchemaRevision: "draft";
|
|
1970
|
+
export type DeliveryDiagnosticCode = "protocol_rejection" | "remote_rpc" | "transport" | "cancelled" | "deadline_exceeded" | "preparation" | "capacity";
|
|
1971
|
+
export type ConfigChangeAfterInput = {
|
|
1972
|
+
change: {
|
|
1973
|
+
mcpServers?: Array<{} & AdditionalProperties>;
|
|
1974
|
+
path?: string;
|
|
1975
|
+
scope: string;
|
|
1976
|
+
settings: Array<string>;
|
|
1977
|
+
source: string;
|
|
1978
|
+
summary: string;
|
|
1979
|
+
} & AdditionalProperties;
|
|
1980
|
+
extensions?: Extensions;
|
|
1981
|
+
gaps?: Array<{
|
|
1982
|
+
path: string;
|
|
1983
|
+
reason: string;
|
|
1984
|
+
} & AdditionalProperties>;
|
|
1985
|
+
id?: string;
|
|
1986
|
+
items?: Array<ContentItem>;
|
|
1987
|
+
native?: NativeEvent;
|
|
1988
|
+
parentEventId?: string;
|
|
1989
|
+
session?: Session;
|
|
1990
|
+
synthesized?: boolean;
|
|
1991
|
+
time?: string;
|
|
1992
|
+
turn?: {
|
|
1993
|
+
id: string;
|
|
1994
|
+
synthesized?: boolean;
|
|
1995
|
+
} & AdditionalProperties;
|
|
1996
|
+
};
|
|
1997
|
+
export type ConfigChangeBeforeInput = {
|
|
1998
|
+
change: {
|
|
1999
|
+
path?: string;
|
|
2000
|
+
scope: string;
|
|
2001
|
+
settings: Array<string>;
|
|
2002
|
+
source: string;
|
|
2003
|
+
summary: string;
|
|
2004
|
+
} & AdditionalProperties;
|
|
2005
|
+
extensions?: Extensions;
|
|
2006
|
+
gaps?: Array<{
|
|
2007
|
+
path: string;
|
|
2008
|
+
reason: string;
|
|
2009
|
+
} & AdditionalProperties>;
|
|
2010
|
+
id?: string;
|
|
2011
|
+
items?: Array<ContentItem>;
|
|
2012
|
+
native?: NativeEvent;
|
|
2013
|
+
parentEventId?: string;
|
|
2014
|
+
session?: Session;
|
|
2015
|
+
synthesized?: boolean;
|
|
2016
|
+
time?: string;
|
|
2017
|
+
turn?: {
|
|
2018
|
+
id: string;
|
|
2019
|
+
synthesized?: boolean;
|
|
2020
|
+
} & AdditionalProperties;
|
|
2021
|
+
};
|
|
2022
|
+
export type ContextCompactAfterInput = {
|
|
2023
|
+
execution: ExecutionEventExecution;
|
|
2024
|
+
extensions?: Extensions;
|
|
2025
|
+
gaps?: Array<{
|
|
2026
|
+
path: string;
|
|
2027
|
+
reason: string;
|
|
2028
|
+
} & AdditionalProperties>;
|
|
2029
|
+
id?: string;
|
|
2030
|
+
items?: Array<ModelVisibleItem>;
|
|
2031
|
+
native?: NativeEvent;
|
|
2032
|
+
parentEventId?: string;
|
|
2033
|
+
removed: Array<{
|
|
2034
|
+
id: string;
|
|
2035
|
+
} & AdditionalProperties>;
|
|
2036
|
+
session?: Session;
|
|
2037
|
+
summary: ModelVisibleItem;
|
|
2038
|
+
synthesized?: boolean;
|
|
2039
|
+
time?: string;
|
|
2040
|
+
tokenCounts?: ExecutionEventTokencounts;
|
|
2041
|
+
turn?: {
|
|
2042
|
+
id: string;
|
|
2043
|
+
synthesized?: boolean;
|
|
2044
|
+
} & AdditionalProperties;
|
|
2045
|
+
};
|
|
2046
|
+
export type ContextCompactBeforeInput = {
|
|
2047
|
+
extensions?: Extensions;
|
|
2048
|
+
gaps?: Array<{
|
|
2049
|
+
path: string;
|
|
2050
|
+
reason: string;
|
|
2051
|
+
} & AdditionalProperties>;
|
|
2052
|
+
id?: string;
|
|
2053
|
+
instructions?: ContentItem;
|
|
2054
|
+
items: Array<ModelVisibleItem>;
|
|
2055
|
+
native?: NativeEvent;
|
|
2056
|
+
parentEventId?: string;
|
|
2057
|
+
session?: Session;
|
|
2058
|
+
synthesized?: boolean;
|
|
2059
|
+
time?: string;
|
|
2060
|
+
tokenCounts?: ExecutionEventTokencounts;
|
|
2061
|
+
trigger: OpenString<"auto" | "manual" | "hook">;
|
|
2062
|
+
turn?: {
|
|
2063
|
+
id: string;
|
|
2064
|
+
synthesized?: boolean;
|
|
2065
|
+
} & AdditionalProperties;
|
|
2066
|
+
};
|
|
2067
|
+
export type FileChangedInput = {
|
|
2068
|
+
changes: Array<{
|
|
2069
|
+
after?: ContentReference;
|
|
2070
|
+
agentCaused: boolean;
|
|
2071
|
+
before?: ContentReference;
|
|
2072
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
2073
|
+
path: string;
|
|
2074
|
+
} & AdditionalProperties>;
|
|
2075
|
+
extensions?: Extensions;
|
|
2076
|
+
gaps?: Array<{
|
|
2077
|
+
path: string;
|
|
2078
|
+
reason: string;
|
|
2079
|
+
} & AdditionalProperties>;
|
|
2080
|
+
id?: string;
|
|
2081
|
+
items?: Array<ContentItem>;
|
|
2082
|
+
native?: NativeEvent;
|
|
2083
|
+
parentEventId?: string;
|
|
2084
|
+
session?: Session;
|
|
2085
|
+
synthesized?: boolean;
|
|
2086
|
+
time?: string;
|
|
2087
|
+
turn?: {
|
|
2088
|
+
id: string;
|
|
2089
|
+
synthesized?: boolean;
|
|
2090
|
+
} & AdditionalProperties;
|
|
2091
|
+
};
|
|
2092
|
+
export type HookFailureInput = {
|
|
2093
|
+
extensions?: Extensions;
|
|
2094
|
+
failure: {
|
|
2095
|
+
backendId: string;
|
|
2096
|
+
policy: OpenString<"fail-open" | "fail-closed">;
|
|
2097
|
+
reason: string;
|
|
2098
|
+
} & AdditionalProperties;
|
|
2099
|
+
gaps?: Array<{
|
|
2100
|
+
path: string;
|
|
2101
|
+
reason: string;
|
|
2102
|
+
} & AdditionalProperties>;
|
|
2103
|
+
id?: string;
|
|
2104
|
+
items?: Array<ContentItem>;
|
|
2105
|
+
native?: NativeEvent;
|
|
2106
|
+
parentEventId: string;
|
|
2107
|
+
session?: Session;
|
|
2108
|
+
synthesized?: boolean;
|
|
2109
|
+
time?: string;
|
|
2110
|
+
turn?: {
|
|
2111
|
+
id: string;
|
|
2112
|
+
synthesized?: boolean;
|
|
2113
|
+
} & AdditionalProperties;
|
|
2114
|
+
};
|
|
2115
|
+
export type ModelErrorInput = {
|
|
2116
|
+
attempt: ExecutionEventAttempt;
|
|
2117
|
+
error: ExecutionEventError;
|
|
2118
|
+
execution: ExecutionEventExecution & {
|
|
2119
|
+
status?: "executed";
|
|
2120
|
+
} & AdditionalProperties;
|
|
2121
|
+
extensions?: Extensions;
|
|
2122
|
+
gaps?: Array<{
|
|
2123
|
+
path: string;
|
|
2124
|
+
reason: string;
|
|
2125
|
+
} & AdditionalProperties>;
|
|
2126
|
+
id?: string;
|
|
2127
|
+
items?: Array<ContentItem>;
|
|
2128
|
+
latencyMs?: number;
|
|
2129
|
+
model: ExecutionEventModel;
|
|
2130
|
+
native?: NativeEvent;
|
|
2131
|
+
parentEventId?: string;
|
|
2132
|
+
recovery?: string;
|
|
2133
|
+
session?: Session;
|
|
2134
|
+
synthesized?: boolean;
|
|
2135
|
+
time?: string;
|
|
2136
|
+
turn?: {
|
|
2137
|
+
id: string;
|
|
2138
|
+
synthesized?: boolean;
|
|
2139
|
+
} & AdditionalProperties;
|
|
2140
|
+
usage?: ExecutionEventAttemptusage;
|
|
2141
|
+
};
|
|
2142
|
+
export type ModelRequestBeforeInput = {
|
|
2143
|
+
attempt: ExecutionEventAttempt;
|
|
2144
|
+
extensions?: Extensions;
|
|
2145
|
+
gaps?: Array<{
|
|
2146
|
+
path: string;
|
|
2147
|
+
reason: string;
|
|
2148
|
+
} & AdditionalProperties>;
|
|
2149
|
+
id?: string;
|
|
2150
|
+
items: Array<ModelVisibleItem>;
|
|
2151
|
+
model: ExecutionEventModel;
|
|
2152
|
+
native?: NativeEvent;
|
|
2153
|
+
params: {} & AdditionalProperties;
|
|
2154
|
+
parentEventId?: string;
|
|
2155
|
+
session?: Session;
|
|
2156
|
+
synthesized?: boolean;
|
|
2157
|
+
time?: string;
|
|
2158
|
+
turn?: {
|
|
2159
|
+
id: string;
|
|
2160
|
+
synthesized?: boolean;
|
|
2161
|
+
} & AdditionalProperties;
|
|
2162
|
+
};
|
|
2163
|
+
export type ModelResponseAfterInput = {
|
|
2164
|
+
attempt: ExecutionEventAttempt;
|
|
2165
|
+
execution: ExecutionEventExecution;
|
|
2166
|
+
extensions?: Extensions;
|
|
2167
|
+
finishReason: string;
|
|
2168
|
+
gaps?: Array<{
|
|
2169
|
+
path: string;
|
|
2170
|
+
reason: string;
|
|
2171
|
+
} & AdditionalProperties>;
|
|
2172
|
+
id?: string;
|
|
2173
|
+
items: Array<ModelVisibleItem>;
|
|
2174
|
+
latencyMs?: number;
|
|
2175
|
+
model: ExecutionEventModel;
|
|
2176
|
+
native?: NativeEvent;
|
|
2177
|
+
parentEventId?: string;
|
|
2178
|
+
session?: Session;
|
|
2179
|
+
synthesized?: boolean;
|
|
2180
|
+
time?: string;
|
|
2181
|
+
turn?: {
|
|
2182
|
+
id: string;
|
|
2183
|
+
synthesized?: boolean;
|
|
2184
|
+
} & AdditionalProperties;
|
|
2185
|
+
usage?: ExecutionEventAttemptusage;
|
|
2186
|
+
};
|
|
2187
|
+
export type ModelSwitchAfterInput = {
|
|
2188
|
+
current: ExecutionEventModel;
|
|
2189
|
+
extensions?: Extensions;
|
|
2190
|
+
gaps?: Array<{
|
|
2191
|
+
path: string;
|
|
2192
|
+
reason: string;
|
|
2193
|
+
} & AdditionalProperties>;
|
|
2194
|
+
id?: string;
|
|
2195
|
+
items?: Array<ContentItem>;
|
|
2196
|
+
native?: NativeEvent;
|
|
2197
|
+
parentEventId?: string;
|
|
2198
|
+
previous: ExecutionEventModel;
|
|
2199
|
+
reason: string;
|
|
2200
|
+
session?: Session;
|
|
2201
|
+
synthesized?: boolean;
|
|
2202
|
+
time?: string;
|
|
2203
|
+
turn?: {
|
|
2204
|
+
id: string;
|
|
2205
|
+
synthesized?: boolean;
|
|
2206
|
+
} & AdditionalProperties;
|
|
2207
|
+
};
|
|
2208
|
+
export type ModelSwitchBeforeInput = {
|
|
2209
|
+
current: ExecutionEventModel;
|
|
2210
|
+
extensions?: Extensions;
|
|
2211
|
+
gaps?: Array<{
|
|
2212
|
+
path: string;
|
|
2213
|
+
reason: string;
|
|
2214
|
+
} & AdditionalProperties>;
|
|
2215
|
+
id?: string;
|
|
2216
|
+
items?: Array<ContentItem>;
|
|
2217
|
+
native?: NativeEvent;
|
|
2218
|
+
parentEventId?: string;
|
|
2219
|
+
pricing?: {
|
|
2220
|
+
currency: string;
|
|
2221
|
+
inputPerMillionTokens?: number;
|
|
2222
|
+
outputPerMillionTokens?: number;
|
|
2223
|
+
} & AdditionalProperties;
|
|
2224
|
+
proposed: ExecutionEventModel;
|
|
2225
|
+
reason: string;
|
|
2226
|
+
session?: Session;
|
|
2227
|
+
synthesized?: boolean;
|
|
2228
|
+
time?: string;
|
|
2229
|
+
turn?: {
|
|
2230
|
+
id: string;
|
|
2231
|
+
synthesized?: boolean;
|
|
2232
|
+
} & AdditionalProperties;
|
|
2233
|
+
};
|
|
2234
|
+
export type SessionEndInput = {
|
|
2235
|
+
counters?: {} & AdditionalProperties;
|
|
2236
|
+
extensions?: Extensions;
|
|
2237
|
+
gaps?: Array<{
|
|
2238
|
+
path: string;
|
|
2239
|
+
reason: string;
|
|
2240
|
+
} & AdditionalProperties>;
|
|
2241
|
+
id?: string;
|
|
2242
|
+
items?: Array<ContentItem>;
|
|
2243
|
+
native?: NativeEvent;
|
|
2244
|
+
outcome: OpenString<"completed" | "cancelled" | "error" | "unknown">;
|
|
2245
|
+
parentEventId?: string;
|
|
2246
|
+
reason: string;
|
|
2247
|
+
session: Session;
|
|
2248
|
+
synthesized?: boolean;
|
|
2249
|
+
time?: string;
|
|
2250
|
+
turn?: {
|
|
2251
|
+
id: string;
|
|
2252
|
+
synthesized?: boolean;
|
|
2253
|
+
} & AdditionalProperties;
|
|
2254
|
+
};
|
|
2255
|
+
export type SessionStartInput = {
|
|
2256
|
+
extensions?: Extensions;
|
|
2257
|
+
gaps?: Array<{
|
|
2258
|
+
path: string;
|
|
2259
|
+
reason: string;
|
|
2260
|
+
} & AdditionalProperties>;
|
|
2261
|
+
harness: {
|
|
2262
|
+
name: string;
|
|
2263
|
+
version: string;
|
|
2264
|
+
} & AdditionalProperties;
|
|
2265
|
+
id?: string;
|
|
2266
|
+
items: Array<ModelVisibleItem>;
|
|
2267
|
+
native?: NativeEvent;
|
|
2268
|
+
parentEventId?: string;
|
|
2269
|
+
permissionMode: string;
|
|
2270
|
+
resumedFrom?: {
|
|
2271
|
+
id: string;
|
|
2272
|
+
synthesized?: boolean;
|
|
2273
|
+
} & AdditionalProperties;
|
|
2274
|
+
session: Session;
|
|
2275
|
+
synthesized?: boolean;
|
|
2276
|
+
time?: string;
|
|
2277
|
+
trigger: OpenString<"startup" | "resume" | "clear" | "compact" | "fork">;
|
|
2278
|
+
turn?: {
|
|
2279
|
+
id: string;
|
|
2280
|
+
synthesized?: boolean;
|
|
2281
|
+
} & AdditionalProperties;
|
|
2282
|
+
};
|
|
2283
|
+
export type TaskChangeAfterInput = {
|
|
2284
|
+
extensions?: Extensions;
|
|
2285
|
+
gaps?: Array<{
|
|
2286
|
+
path: string;
|
|
2287
|
+
reason: string;
|
|
2288
|
+
} & AdditionalProperties>;
|
|
2289
|
+
id?: string;
|
|
2290
|
+
items?: Array<ContentItem>;
|
|
2291
|
+
native?: NativeEvent;
|
|
2292
|
+
parentEventId?: string;
|
|
2293
|
+
session?: Session;
|
|
2294
|
+
synthesized?: boolean;
|
|
2295
|
+
task: {
|
|
2296
|
+
change: {} & AdditionalProperties;
|
|
2297
|
+
description?: string;
|
|
2298
|
+
id: string;
|
|
2299
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
2300
|
+
prior?: {} & AdditionalProperties;
|
|
2301
|
+
synthesized?: boolean;
|
|
2302
|
+
} & AdditionalProperties;
|
|
2303
|
+
time?: string;
|
|
2304
|
+
turn?: {
|
|
2305
|
+
id: string;
|
|
2306
|
+
synthesized?: boolean;
|
|
2307
|
+
} & AdditionalProperties;
|
|
2308
|
+
};
|
|
2309
|
+
export type TaskChangeBeforeInput = {
|
|
2310
|
+
extensions?: Extensions;
|
|
2311
|
+
gaps?: Array<{
|
|
2312
|
+
path: string;
|
|
2313
|
+
reason: string;
|
|
2314
|
+
} & AdditionalProperties>;
|
|
2315
|
+
id?: string;
|
|
2316
|
+
items?: Array<ContentItem>;
|
|
2317
|
+
native?: NativeEvent;
|
|
2318
|
+
parentEventId?: string;
|
|
2319
|
+
session?: Session;
|
|
2320
|
+
synthesized?: boolean;
|
|
2321
|
+
task: {
|
|
2322
|
+
change: {} & AdditionalProperties;
|
|
2323
|
+
description?: string;
|
|
2324
|
+
id: string;
|
|
2325
|
+
operation: OpenString<"create" | "update" | "remove">;
|
|
2326
|
+
prior?: {} & AdditionalProperties;
|
|
2327
|
+
synthesized?: boolean;
|
|
2328
|
+
} & AdditionalProperties;
|
|
2329
|
+
time?: string;
|
|
2330
|
+
turn?: {
|
|
2331
|
+
id: string;
|
|
2332
|
+
synthesized?: boolean;
|
|
2333
|
+
} & AdditionalProperties;
|
|
2334
|
+
};
|
|
2335
|
+
export type ToolAfterInput<T = unknown> = {
|
|
2336
|
+
batch?: ExecutionEventBatch;
|
|
2337
|
+
callId: string;
|
|
2338
|
+
callSynthesized?: boolean;
|
|
2339
|
+
durationMs?: number;
|
|
2340
|
+
error?: ExecutionEventError;
|
|
2341
|
+
execution: ExecutionEventExecution;
|
|
2342
|
+
extensions?: Extensions;
|
|
2343
|
+
fileChanges?: Array<ExecutionEventFilechange>;
|
|
2344
|
+
gaps?: Array<{
|
|
2345
|
+
path: string;
|
|
2346
|
+
reason: string;
|
|
2347
|
+
} & AdditionalProperties>;
|
|
2348
|
+
id?: string;
|
|
2349
|
+
items: Array<ModelVisibleItem>;
|
|
2350
|
+
native?: NativeEvent;
|
|
2351
|
+
outcome: OpenString<"ok" | "error" | "denied" | "cancelled" | "timeout">;
|
|
2352
|
+
parentEventId?: string;
|
|
2353
|
+
path: string;
|
|
2354
|
+
session?: Session;
|
|
2355
|
+
synthesized?: boolean;
|
|
2356
|
+
time?: string;
|
|
2357
|
+
input: T;
|
|
2358
|
+
toolKind?: string;
|
|
2359
|
+
toolMcp?: ExecutionEventMcp;
|
|
2360
|
+
name: string;
|
|
2361
|
+
origin: OpenString<"native" | "mcp">;
|
|
2362
|
+
turn?: {
|
|
2363
|
+
id: string;
|
|
2364
|
+
synthesized?: boolean;
|
|
2365
|
+
} & AdditionalProperties;
|
|
2366
|
+
};
|
|
2367
|
+
export type ToolBatchAfterInput = {
|
|
2368
|
+
batch: {
|
|
2369
|
+
id: string;
|
|
2370
|
+
synthesized?: boolean;
|
|
2371
|
+
} & AdditionalProperties;
|
|
2372
|
+
calls: Array<{
|
|
2373
|
+
batch?: ExecutionEventBatch;
|
|
2374
|
+
call: {
|
|
2375
|
+
id: string;
|
|
2376
|
+
synthesized?: boolean;
|
|
2377
|
+
} & AdditionalProperties;
|
|
2378
|
+
execution: ExecutionEventExecution;
|
|
2379
|
+
outcome: OpenString<"ok" | "error" | "denied" | "cancelled" | "timeout">;
|
|
2380
|
+
path: string;
|
|
2381
|
+
tool: ExecutionEventTool;
|
|
2382
|
+
} & AdditionalProperties>;
|
|
2383
|
+
extensions?: Extensions;
|
|
2384
|
+
gaps?: Array<{
|
|
2385
|
+
path: string;
|
|
2386
|
+
reason: string;
|
|
2387
|
+
} & AdditionalProperties>;
|
|
2388
|
+
id?: string;
|
|
2389
|
+
items?: Array<ContentItem>;
|
|
2390
|
+
native?: NativeEvent;
|
|
2391
|
+
parentEventId?: string;
|
|
2392
|
+
session?: Session;
|
|
2393
|
+
synthesized?: boolean;
|
|
2394
|
+
time?: string;
|
|
2395
|
+
turn?: {
|
|
2396
|
+
id: string;
|
|
2397
|
+
synthesized?: boolean;
|
|
2398
|
+
} & AdditionalProperties;
|
|
2399
|
+
};
|
|
2400
|
+
export type ToolBeforeInput<T = unknown> = {
|
|
2401
|
+
batch?: ExecutionEventBatch;
|
|
2402
|
+
callId: string;
|
|
2403
|
+
callSynthesized?: boolean;
|
|
2404
|
+
extensions?: Extensions;
|
|
2405
|
+
gaps?: Array<{
|
|
2406
|
+
path: string;
|
|
2407
|
+
reason: string;
|
|
2408
|
+
} & AdditionalProperties>;
|
|
2409
|
+
id?: string;
|
|
2410
|
+
items?: Array<ContentItem>;
|
|
2411
|
+
native?: NativeEvent;
|
|
2412
|
+
parentEventId?: string;
|
|
2413
|
+
path: string;
|
|
2414
|
+
session?: Session;
|
|
2415
|
+
synthesized?: boolean;
|
|
2416
|
+
time?: string;
|
|
2417
|
+
input: T;
|
|
2418
|
+
toolKind?: string;
|
|
2419
|
+
toolMcp?: ExecutionEventMcp;
|
|
2420
|
+
name: string;
|
|
2421
|
+
origin: OpenString<"native" | "mcp">;
|
|
2422
|
+
turn?: {
|
|
2423
|
+
id: string;
|
|
2424
|
+
synthesized?: boolean;
|
|
2425
|
+
} & AdditionalProperties;
|
|
2426
|
+
};
|
|
2427
|
+
export type ToolPermissionRequestInput<T = unknown> = {
|
|
2428
|
+
batch?: ExecutionEventBatch;
|
|
2429
|
+
callId: string;
|
|
2430
|
+
callSynthesized?: boolean;
|
|
2431
|
+
extensions?: Extensions;
|
|
2432
|
+
gaps?: Array<{
|
|
2433
|
+
path: string;
|
|
2434
|
+
reason: string;
|
|
2435
|
+
} & AdditionalProperties>;
|
|
2436
|
+
id?: string;
|
|
2437
|
+
items?: Array<ContentItem>;
|
|
2438
|
+
native?: NativeEvent;
|
|
2439
|
+
parentEventId?: string;
|
|
2440
|
+
path: string;
|
|
2441
|
+
sandboxBypass: boolean;
|
|
2442
|
+
session?: Session;
|
|
2443
|
+
suggestions: Array<{} & AdditionalProperties>;
|
|
2444
|
+
synthesized?: boolean;
|
|
2445
|
+
time?: string;
|
|
2446
|
+
input: T;
|
|
2447
|
+
toolKind?: string;
|
|
2448
|
+
toolMcp?: ExecutionEventMcp;
|
|
2449
|
+
name: string;
|
|
2450
|
+
origin: OpenString<"native" | "mcp">;
|
|
2451
|
+
turn?: {
|
|
2452
|
+
id: string;
|
|
2453
|
+
synthesized?: boolean;
|
|
2454
|
+
} & AdditionalProperties;
|
|
2455
|
+
};
|
|
2456
|
+
export type ToolPermissionResolvedInput<T = unknown> = {
|
|
2457
|
+
batch?: ExecutionEventBatch;
|
|
2458
|
+
callId: string;
|
|
2459
|
+
callSynthesized?: boolean;
|
|
2460
|
+
decidedBy: OpenString<"user" | "policy" | "hook" | "auto" | "classifier">;
|
|
2461
|
+
decision: OpenString<"allow" | "deny">;
|
|
2462
|
+
extensions?: Extensions;
|
|
2463
|
+
gaps?: Array<{
|
|
2464
|
+
path: string;
|
|
2465
|
+
reason: string;
|
|
2466
|
+
} & AdditionalProperties>;
|
|
2467
|
+
id?: string;
|
|
2468
|
+
items?: Array<ContentItem>;
|
|
2469
|
+
native?: NativeEvent;
|
|
2470
|
+
parentEventId?: string;
|
|
2471
|
+
path: string;
|
|
2472
|
+
session?: Session;
|
|
2473
|
+
synthesized?: boolean;
|
|
2474
|
+
time?: string;
|
|
2475
|
+
input: T;
|
|
2476
|
+
toolKind?: string;
|
|
2477
|
+
toolMcp?: ExecutionEventMcp;
|
|
2478
|
+
name: string;
|
|
2479
|
+
origin: OpenString<"native" | "mcp">;
|
|
2480
|
+
turn?: {
|
|
2481
|
+
id: string;
|
|
2482
|
+
synthesized?: boolean;
|
|
2483
|
+
} & AdditionalProperties;
|
|
2484
|
+
};
|
|
2485
|
+
export type ToolProgressInput<T = unknown> = {
|
|
2486
|
+
backgrounded: boolean;
|
|
2487
|
+
batch?: ExecutionEventBatch;
|
|
2488
|
+
callId: string;
|
|
2489
|
+
callSynthesized?: boolean;
|
|
2490
|
+
extensions?: Extensions;
|
|
2491
|
+
gaps?: Array<{
|
|
2492
|
+
path: string;
|
|
2493
|
+
reason: string;
|
|
2494
|
+
} & AdditionalProperties>;
|
|
2495
|
+
id?: string;
|
|
2496
|
+
items?: Array<ContentItem>;
|
|
2497
|
+
native?: NativeEvent;
|
|
2498
|
+
parentEventId?: string;
|
|
2499
|
+
partialOutput: ModelVisibleItem;
|
|
2500
|
+
path: string;
|
|
2501
|
+
session?: Session;
|
|
2502
|
+
synthesized?: boolean;
|
|
2503
|
+
time?: string;
|
|
2504
|
+
input: T;
|
|
2505
|
+
toolKind?: string;
|
|
2506
|
+
toolMcp?: ExecutionEventMcp;
|
|
2507
|
+
name: string;
|
|
2508
|
+
origin: OpenString<"native" | "mcp">;
|
|
2509
|
+
turn?: {
|
|
2510
|
+
id: string;
|
|
2511
|
+
synthesized?: boolean;
|
|
2512
|
+
} & AdditionalProperties;
|
|
2513
|
+
};
|
|
2514
|
+
export type TurnEndInput = {
|
|
2515
|
+
continuationCount: number;
|
|
2516
|
+
error?: ExecutionEventError;
|
|
2517
|
+
extensions?: Extensions;
|
|
2518
|
+
gaps?: Array<{
|
|
2519
|
+
path: string;
|
|
2520
|
+
reason: string;
|
|
2521
|
+
} & AdditionalProperties>;
|
|
2522
|
+
id?: string;
|
|
2523
|
+
items: Array<ModelVisibleItem>;
|
|
2524
|
+
lastAssistantItem?: {
|
|
2525
|
+
id: string;
|
|
2526
|
+
synthesized?: boolean;
|
|
2527
|
+
} & AdditionalProperties;
|
|
2528
|
+
native?: NativeEvent;
|
|
2529
|
+
outcome: OpenString<"completed" | "failed" | "cancelled" | "max_iterations">;
|
|
2530
|
+
parentEventId?: string;
|
|
2531
|
+
session?: Session;
|
|
2532
|
+
synthesized?: boolean;
|
|
2533
|
+
time?: string;
|
|
2534
|
+
turn: {
|
|
2535
|
+
id: string;
|
|
2536
|
+
synthesized?: boolean;
|
|
2537
|
+
} & AdditionalProperties;
|
|
2538
|
+
usage?: ExecutionEventTurnusage;
|
|
2539
|
+
};
|
|
2540
|
+
export type TurnFinishBeforeInput = {
|
|
2541
|
+
continuationCount: number;
|
|
2542
|
+
extensions?: Extensions;
|
|
2543
|
+
gaps?: Array<{
|
|
2544
|
+
path: string;
|
|
2545
|
+
reason: string;
|
|
2546
|
+
} & AdditionalProperties>;
|
|
2547
|
+
id?: string;
|
|
2548
|
+
items: Array<ModelVisibleItem>;
|
|
2549
|
+
lastAssistantItem?: {
|
|
2550
|
+
id: string;
|
|
2551
|
+
synthesized?: boolean;
|
|
2552
|
+
} & AdditionalProperties;
|
|
2553
|
+
native?: NativeEvent;
|
|
2554
|
+
outcome: OpenString<"completed" | "failed" | "cancelled" | "max_iterations">;
|
|
2555
|
+
parentEventId?: string;
|
|
2556
|
+
session?: Session;
|
|
2557
|
+
synthesized?: boolean;
|
|
2558
|
+
time?: string;
|
|
2559
|
+
turn: {
|
|
2560
|
+
id: string;
|
|
2561
|
+
synthesized?: boolean;
|
|
2562
|
+
} & AdditionalProperties;
|
|
2563
|
+
usage?: ExecutionEventTurnusage;
|
|
2564
|
+
};
|
|
2565
|
+
export type TurnProgressInput = {
|
|
2566
|
+
delta: ModelVisibleItem;
|
|
2567
|
+
extensions?: Extensions;
|
|
2568
|
+
final: boolean;
|
|
2569
|
+
gaps?: Array<{
|
|
2570
|
+
path: string;
|
|
2571
|
+
reason: string;
|
|
2572
|
+
} & AdditionalProperties>;
|
|
2573
|
+
id?: string;
|
|
2574
|
+
item: {
|
|
2575
|
+
id: string;
|
|
2576
|
+
synthesized?: boolean;
|
|
2577
|
+
} & AdditionalProperties;
|
|
2578
|
+
items?: Array<ContentItem>;
|
|
2579
|
+
native?: NativeEvent;
|
|
2580
|
+
parentEventId?: string;
|
|
2581
|
+
session?: Session;
|
|
2582
|
+
synthesized?: boolean;
|
|
2583
|
+
time?: string;
|
|
2584
|
+
turn: {
|
|
2585
|
+
id: string;
|
|
2586
|
+
synthesized?: boolean;
|
|
2587
|
+
} & AdditionalProperties;
|
|
2588
|
+
};
|
|
2589
|
+
export type TurnStartInput = {
|
|
2590
|
+
expandedFrom?: string;
|
|
2591
|
+
extensions?: Extensions;
|
|
2592
|
+
gaps?: Array<{
|
|
2593
|
+
path: string;
|
|
2594
|
+
reason: string;
|
|
2595
|
+
} & AdditionalProperties>;
|
|
2596
|
+
id?: string;
|
|
2597
|
+
items: Array<ModelVisibleItem>;
|
|
2598
|
+
native?: NativeEvent;
|
|
2599
|
+
parentEventId?: string;
|
|
2600
|
+
session?: Session;
|
|
2601
|
+
synthesized?: boolean;
|
|
2602
|
+
time?: string;
|
|
2603
|
+
trigger: OpenString<"user" | "continuation" | "hook" | "external">;
|
|
2604
|
+
turn: {
|
|
2605
|
+
id: string;
|
|
2606
|
+
synthesized?: boolean;
|
|
2607
|
+
} & AdditionalProperties;
|
|
2608
|
+
};
|
|
2609
|
+
export type UserAttentionInput = {
|
|
2610
|
+
attention: {
|
|
2611
|
+
kind: string;
|
|
2612
|
+
message: Array<ContentItem>;
|
|
2613
|
+
title: Array<ContentItem>;
|
|
2614
|
+
} & AdditionalProperties;
|
|
2615
|
+
extensions?: Extensions;
|
|
2616
|
+
gaps?: Array<{
|
|
2617
|
+
path: string;
|
|
2618
|
+
reason: string;
|
|
2619
|
+
} & AdditionalProperties>;
|
|
2620
|
+
id?: string;
|
|
2621
|
+
items?: Array<ContentItem>;
|
|
2622
|
+
native?: NativeEvent;
|
|
2623
|
+
parentEventId?: string;
|
|
2624
|
+
session?: Session;
|
|
2625
|
+
synthesized?: boolean;
|
|
2626
|
+
time?: string;
|
|
2627
|
+
turn?: {
|
|
2628
|
+
id: string;
|
|
2629
|
+
synthesized?: boolean;
|
|
2630
|
+
} & AdditionalProperties;
|
|
2631
|
+
};
|
|
2632
|
+
export type UserElicitationRequestInput = {
|
|
2633
|
+
elicitation: {
|
|
2634
|
+
mode: OpenString<"form" | "url">;
|
|
2635
|
+
request?: ContentItem & {
|
|
2636
|
+
mediaType?: "application/json";
|
|
2637
|
+
} & AdditionalProperties;
|
|
2638
|
+
server: string;
|
|
2639
|
+
} & AdditionalProperties;
|
|
2640
|
+
extensions?: Extensions;
|
|
2641
|
+
gaps?: Array<{
|
|
2642
|
+
path: string;
|
|
2643
|
+
reason: string;
|
|
2644
|
+
} & AdditionalProperties>;
|
|
2645
|
+
id?: string;
|
|
2646
|
+
items?: Array<ContentItem>;
|
|
2647
|
+
native?: NativeEvent;
|
|
2648
|
+
parentEventId?: string;
|
|
2649
|
+
session?: Session;
|
|
2650
|
+
synthesized?: boolean;
|
|
2651
|
+
time?: string;
|
|
2652
|
+
turn?: {
|
|
2653
|
+
id: string;
|
|
2654
|
+
synthesized?: boolean;
|
|
2655
|
+
} & AdditionalProperties;
|
|
2656
|
+
};
|
|
2657
|
+
export type UserElicitationResultInput = {
|
|
2658
|
+
elicitation: {
|
|
2659
|
+
action: OpenString<"accept" | "decline" | "cancel">;
|
|
2660
|
+
mode: OpenString<"form" | "url">;
|
|
2661
|
+
result?: ContentItem & {
|
|
2662
|
+
mediaType?: "application/json";
|
|
2663
|
+
} & AdditionalProperties;
|
|
2664
|
+
server: string;
|
|
2665
|
+
} & AdditionalProperties;
|
|
2666
|
+
extensions?: Extensions;
|
|
2667
|
+
gaps?: Array<{
|
|
2668
|
+
path: string;
|
|
2669
|
+
reason: string;
|
|
2670
|
+
} & AdditionalProperties>;
|
|
2671
|
+
id?: string;
|
|
2672
|
+
items?: Array<ContentItem>;
|
|
2673
|
+
native?: NativeEvent;
|
|
2674
|
+
parentEventId?: string;
|
|
2675
|
+
session?: Session;
|
|
2676
|
+
synthesized?: boolean;
|
|
2677
|
+
time?: string;
|
|
2678
|
+
turn?: {
|
|
2679
|
+
id: string;
|
|
2680
|
+
synthesized?: boolean;
|
|
2681
|
+
} & AdditionalProperties;
|
|
2682
|
+
};
|
|
2683
|
+
export type UserMessageInboundInput = {
|
|
2684
|
+
extensions?: Extensions;
|
|
2685
|
+
gaps?: Array<{
|
|
2686
|
+
path: string;
|
|
2687
|
+
reason: string;
|
|
2688
|
+
} & AdditionalProperties>;
|
|
2689
|
+
id?: string;
|
|
2690
|
+
items?: Array<ContentItem>;
|
|
2691
|
+
message: {
|
|
2692
|
+
channel: string;
|
|
2693
|
+
sender: string;
|
|
2694
|
+
text: Array<ContentItem>;
|
|
2695
|
+
} & AdditionalProperties;
|
|
2696
|
+
native?: NativeEvent;
|
|
2697
|
+
parentEventId?: string;
|
|
2698
|
+
session?: Session;
|
|
2699
|
+
synthesized?: boolean;
|
|
2700
|
+
time?: string;
|
|
2701
|
+
turn?: {
|
|
2702
|
+
id: string;
|
|
2703
|
+
synthesized?: boolean;
|
|
2704
|
+
} & AdditionalProperties;
|
|
2705
|
+
};
|
|
2706
|
+
export type UserMessageOutboundInput = {
|
|
2707
|
+
extensions?: Extensions;
|
|
2708
|
+
gaps?: Array<{
|
|
2709
|
+
path: string;
|
|
2710
|
+
reason: string;
|
|
2711
|
+
} & AdditionalProperties>;
|
|
2712
|
+
id?: string;
|
|
2713
|
+
items?: Array<ContentItem>;
|
|
2714
|
+
message: {
|
|
2715
|
+
channel: string;
|
|
2716
|
+
payload: Array<ContentItem>;
|
|
2717
|
+
} & AdditionalProperties;
|
|
2718
|
+
native?: NativeEvent;
|
|
2719
|
+
parentEventId?: string;
|
|
2720
|
+
session?: Session;
|
|
2721
|
+
synthesized?: boolean;
|
|
2722
|
+
time?: string;
|
|
2723
|
+
turn?: {
|
|
2724
|
+
id: string;
|
|
2725
|
+
synthesized?: boolean;
|
|
2726
|
+
} & AdditionalProperties;
|
|
2727
|
+
};
|
|
2728
|
+
export type WorkspaceChangeAfterInput = {
|
|
2729
|
+
extensions?: Extensions;
|
|
2730
|
+
gaps?: Array<{
|
|
2731
|
+
path: string;
|
|
2732
|
+
reason: string;
|
|
2733
|
+
} & AdditionalProperties>;
|
|
2734
|
+
id?: string;
|
|
2735
|
+
items?: Array<ContentItem>;
|
|
2736
|
+
native?: NativeEvent;
|
|
2737
|
+
parentEventId?: string;
|
|
2738
|
+
session?: Session;
|
|
2739
|
+
synthesized?: boolean;
|
|
2740
|
+
time?: string;
|
|
2741
|
+
turn?: {
|
|
2742
|
+
id: string;
|
|
2743
|
+
synthesized?: boolean;
|
|
2744
|
+
} & AdditionalProperties;
|
|
2745
|
+
workspace: {
|
|
2746
|
+
change: {
|
|
2747
|
+
cwd?: string;
|
|
2748
|
+
workspaceRoots?: Array<string>;
|
|
2749
|
+
} & AdditionalProperties;
|
|
2750
|
+
kind: OpenString<"cwd" | "roots" | "switch">;
|
|
2751
|
+
prior?: {
|
|
2752
|
+
cwd?: string;
|
|
2753
|
+
workspaceRoots?: Array<string>;
|
|
2754
|
+
} & AdditionalProperties;
|
|
2755
|
+
reason?: string;
|
|
2756
|
+
} & AdditionalProperties;
|
|
2757
|
+
};
|
|
2758
|
+
export type WorkspaceChangeBeforeInput = {
|
|
2759
|
+
extensions?: Extensions;
|
|
2760
|
+
gaps?: Array<{
|
|
2761
|
+
path: string;
|
|
2762
|
+
reason: string;
|
|
2763
|
+
} & AdditionalProperties>;
|
|
2764
|
+
id?: string;
|
|
2765
|
+
items?: Array<ContentItem>;
|
|
2766
|
+
native?: NativeEvent;
|
|
2767
|
+
parentEventId?: string;
|
|
2768
|
+
session?: Session;
|
|
2769
|
+
synthesized?: boolean;
|
|
2770
|
+
time?: string;
|
|
2771
|
+
turn?: {
|
|
2772
|
+
id: string;
|
|
2773
|
+
synthesized?: boolean;
|
|
2774
|
+
} & AdditionalProperties;
|
|
2775
|
+
workspace: {
|
|
2776
|
+
change: {
|
|
2777
|
+
cwd?: string;
|
|
2778
|
+
workspaceRoots?: Array<string>;
|
|
2779
|
+
} & AdditionalProperties;
|
|
2780
|
+
kind: OpenString<"cwd" | "roots" | "switch">;
|
|
2781
|
+
prior?: {
|
|
2782
|
+
cwd?: string;
|
|
2783
|
+
workspaceRoots?: Array<string>;
|
|
2784
|
+
} & AdditionalProperties;
|
|
2785
|
+
reason?: string;
|
|
2786
|
+
} & AdditionalProperties;
|
|
2787
|
+
};
|
|
2788
|
+
export interface EventInputs {
|
|
2789
|
+
"config.change.after": ConfigChangeAfterInput;
|
|
2790
|
+
"config.change.before": ConfigChangeBeforeInput;
|
|
2791
|
+
"context.compact.after": ContextCompactAfterInput;
|
|
2792
|
+
"context.compact.before": ContextCompactBeforeInput;
|
|
2793
|
+
"file.changed": FileChangedInput;
|
|
2794
|
+
"hook.failure": HookFailureInput;
|
|
2795
|
+
"model.error": ModelErrorInput;
|
|
2796
|
+
"model.request.before": ModelRequestBeforeInput;
|
|
2797
|
+
"model.response.after": ModelResponseAfterInput;
|
|
2798
|
+
"model.switch.after": ModelSwitchAfterInput;
|
|
2799
|
+
"model.switch.before": ModelSwitchBeforeInput;
|
|
2800
|
+
"session.end": SessionEndInput;
|
|
2801
|
+
"session.start": SessionStartInput;
|
|
2802
|
+
"task.change.after": TaskChangeAfterInput;
|
|
2803
|
+
"task.change.before": TaskChangeBeforeInput;
|
|
2804
|
+
"tool.after": ToolAfterInput;
|
|
2805
|
+
"tool.batch.after": ToolBatchAfterInput;
|
|
2806
|
+
"tool.before": ToolBeforeInput;
|
|
2807
|
+
"tool.permission.request": ToolPermissionRequestInput;
|
|
2808
|
+
"tool.permission.resolved": ToolPermissionResolvedInput;
|
|
2809
|
+
"tool.progress": ToolProgressInput;
|
|
2810
|
+
"turn.end": TurnEndInput;
|
|
2811
|
+
"turn.finish.before": TurnFinishBeforeInput;
|
|
2812
|
+
"turn.progress": TurnProgressInput;
|
|
2813
|
+
"turn.start": TurnStartInput;
|
|
2814
|
+
"user.attention": UserAttentionInput;
|
|
2815
|
+
"user.elicitation.request": UserElicitationRequestInput;
|
|
2816
|
+
"user.elicitation.result": UserElicitationResultInput;
|
|
2817
|
+
"user.message.inbound": UserMessageInboundInput;
|
|
2818
|
+
"user.message.outbound": UserMessageOutboundInput;
|
|
2819
|
+
"workspace.change.after": WorkspaceChangeAfterInput;
|
|
2820
|
+
"workspace.change.before": WorkspaceChangeBeforeInput;
|
|
2821
|
+
}
|
|
2822
|
+
/** Project host facts only. The runtime supplies source, IDs, time, and manifest and validates the assembled request. */
|
|
2823
|
+
export declare function toEventInput<K extends keyof EventInputs>(type: K, input: EventInputs[K]): Record<string, JsonValue>;
|
|
2824
|
+
export type EventType = keyof EventInputs;
|
|
2825
|
+
export declare const events: {
|
|
2826
|
+
readonly configChangeAfter: "config.change.after";
|
|
2827
|
+
readonly configChangeBefore: "config.change.before";
|
|
2828
|
+
readonly contextCompactAfter: "context.compact.after";
|
|
2829
|
+
readonly contextCompactBefore: "context.compact.before";
|
|
2830
|
+
readonly fileChanged: "file.changed";
|
|
2831
|
+
readonly hookFailure: "hook.failure";
|
|
2832
|
+
readonly modelError: "model.error";
|
|
2833
|
+
readonly modelRequestBefore: "model.request.before";
|
|
2834
|
+
readonly modelResponseAfter: "model.response.after";
|
|
2835
|
+
readonly modelSwitchAfter: "model.switch.after";
|
|
2836
|
+
readonly modelSwitchBefore: "model.switch.before";
|
|
2837
|
+
readonly sessionEnd: "session.end";
|
|
2838
|
+
readonly sessionStart: "session.start";
|
|
2839
|
+
readonly taskChangeAfter: "task.change.after";
|
|
2840
|
+
readonly taskChangeBefore: "task.change.before";
|
|
2841
|
+
readonly toolAfter: "tool.after";
|
|
2842
|
+
readonly toolBatchAfter: "tool.batch.after";
|
|
2843
|
+
readonly toolBefore: "tool.before";
|
|
2844
|
+
readonly toolPermissionRequest: "tool.permission.request";
|
|
2845
|
+
readonly toolPermissionResolved: "tool.permission.resolved";
|
|
2846
|
+
readonly toolProgress: "tool.progress";
|
|
2847
|
+
readonly turnEnd: "turn.end";
|
|
2848
|
+
readonly turnFinishBefore: "turn.finish.before";
|
|
2849
|
+
readonly turnProgress: "turn.progress";
|
|
2850
|
+
readonly turnStart: "turn.start";
|
|
2851
|
+
readonly userAttention: "user.attention";
|
|
2852
|
+
readonly userElicitationRequest: "user.elicitation.request";
|
|
2853
|
+
readonly userElicitationResult: "user.elicitation.result";
|
|
2854
|
+
readonly userMessageInbound: "user.message.inbound";
|
|
2855
|
+
readonly userMessageOutbound: "user.message.outbound";
|
|
2856
|
+
readonly workspaceChangeAfter: "workspace.change.after";
|
|
2857
|
+
readonly workspaceChangeBefore: "workspace.change.before";
|
|
2858
|
+
};
|
|
2859
|
+
/** Named out-of-band content bindings. Streams are never inserted into wire models. */
|
|
2860
|
+
export interface ContentSourceBinding<S> {
|
|
2861
|
+
readonly path: readonly (string | number)[];
|
|
2862
|
+
readonly source: S;
|
|
2863
|
+
}
|
|
2864
|
+
export declare const contentSlots: {
|
|
2865
|
+
readonly "config.change.after": {
|
|
2866
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2867
|
+
};
|
|
2868
|
+
readonly "config.change.before": {
|
|
2869
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2870
|
+
};
|
|
2871
|
+
readonly "context.compact.after": {
|
|
2872
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2873
|
+
readonly summary: <S>(source: S) => ContentSourceBinding<S>;
|
|
2874
|
+
};
|
|
2875
|
+
readonly "context.compact.before": {
|
|
2876
|
+
readonly instructions: <S>(source: S) => ContentSourceBinding<S>;
|
|
2877
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2878
|
+
};
|
|
2879
|
+
readonly "file.changed": {
|
|
2880
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2881
|
+
};
|
|
2882
|
+
readonly "hook.failure": {
|
|
2883
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2884
|
+
};
|
|
2885
|
+
readonly "model.error": {
|
|
2886
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2887
|
+
};
|
|
2888
|
+
readonly "model.request.before": {
|
|
2889
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2890
|
+
};
|
|
2891
|
+
readonly "model.response.after": {
|
|
2892
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2893
|
+
};
|
|
2894
|
+
readonly "model.switch.after": {
|
|
2895
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2896
|
+
};
|
|
2897
|
+
readonly "model.switch.before": {
|
|
2898
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2899
|
+
};
|
|
2900
|
+
readonly "session.end": {
|
|
2901
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2902
|
+
};
|
|
2903
|
+
readonly "session.start": {
|
|
2904
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2905
|
+
};
|
|
2906
|
+
readonly "task.change.after": {
|
|
2907
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2908
|
+
};
|
|
2909
|
+
readonly "task.change.before": {
|
|
2910
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2911
|
+
};
|
|
2912
|
+
readonly "tool.after": {
|
|
2913
|
+
readonly fileChangesAfter: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2914
|
+
readonly fileChangesBefore: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2915
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2916
|
+
};
|
|
2917
|
+
readonly "tool.batch.after": {
|
|
2918
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2919
|
+
};
|
|
2920
|
+
readonly "tool.before": {
|
|
2921
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2922
|
+
};
|
|
2923
|
+
readonly "tool.permission.request": {
|
|
2924
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2925
|
+
};
|
|
2926
|
+
readonly "tool.permission.resolved": {
|
|
2927
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2928
|
+
};
|
|
2929
|
+
readonly "tool.progress": {
|
|
2930
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2931
|
+
readonly partialOutput: <S>(source: S) => ContentSourceBinding<S>;
|
|
2932
|
+
};
|
|
2933
|
+
readonly "turn.end": {
|
|
2934
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2935
|
+
};
|
|
2936
|
+
readonly "turn.finish.before": {
|
|
2937
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2938
|
+
};
|
|
2939
|
+
readonly "turn.progress": {
|
|
2940
|
+
readonly delta: <S>(source: S) => ContentSourceBinding<S>;
|
|
2941
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2942
|
+
};
|
|
2943
|
+
readonly "turn.start": {
|
|
2944
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2945
|
+
};
|
|
2946
|
+
readonly "user.attention": {
|
|
2947
|
+
readonly attentionMessage: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2948
|
+
readonly attentionTitle: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2949
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2950
|
+
};
|
|
2951
|
+
readonly "user.elicitation.request": {
|
|
2952
|
+
readonly elicitationRequest: <S>(source: S) => ContentSourceBinding<S>;
|
|
2953
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2954
|
+
};
|
|
2955
|
+
readonly "user.elicitation.result": {
|
|
2956
|
+
readonly elicitationResult: <S>(source: S) => ContentSourceBinding<S>;
|
|
2957
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2958
|
+
};
|
|
2959
|
+
readonly "user.message.inbound": {
|
|
2960
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2961
|
+
readonly messageText: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2962
|
+
};
|
|
2963
|
+
readonly "user.message.outbound": {
|
|
2964
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2965
|
+
readonly messagePayload: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2966
|
+
};
|
|
2967
|
+
readonly "workspace.change.after": {
|
|
2968
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2969
|
+
};
|
|
2970
|
+
readonly "workspace.change.before": {
|
|
2971
|
+
readonly items: <S>(index: number, source: S) => ContentSourceBinding<S>;
|
|
2972
|
+
};
|
|
2973
|
+
};
|
|
2974
|
+
export declare enum Permission {
|
|
2975
|
+
None = "none",
|
|
2976
|
+
Allow = "allow",
|
|
2977
|
+
Ask = "ask",
|
|
2978
|
+
Deny = "deny"
|
|
2979
|
+
}
|
|
2980
|
+
export type InitialState = NonNullable<InterceptRequest["params"]["state"]>;
|
|
2981
|
+
export type StateCandidate = NonNullable<InitialState["candidate"]>;
|
|
2982
|
+
export declare const state: {
|
|
2983
|
+
readonly candidate: (value: JsonValue, provenance?: Record<string, JsonValue>) => StateCandidate;
|
|
2984
|
+
readonly initial: (permission: Permission, options?: Partial<InitialState>) => InitialState;
|
|
2985
|
+
};
|
|
2986
|
+
/** Canonical effect constructors; grants and admission remain runtime checks. */
|
|
2987
|
+
export declare const effects: {
|
|
2988
|
+
readonly deny: (reason: string) => Effect;
|
|
2989
|
+
readonly allow: () => Effect;
|
|
2990
|
+
readonly ask: () => Effect;
|
|
2991
|
+
readonly modify: (operation: OpenString<"replace" | "merge">, target: OpenString<"input" | "output" | "prompt" | "request" | "response" | "content" | "instructions" | "summary" | "workspace">, value: JsonValue) => Effect;
|
|
2992
|
+
readonly message: (text: string) => Effect;
|
|
2993
|
+
readonly return: (value: JsonValue) => Effect;
|
|
2994
|
+
readonly flow_stop: (reason: string) => Effect;
|
|
2995
|
+
readonly flow_continue: () => Effect;
|
|
2996
|
+
readonly inject_append: (deliverAt: OpenString<"now" | "next_turn">, value: JsonValue) => Effect;
|
|
2997
|
+
readonly modify_input: {
|
|
2998
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
2999
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3000
|
+
};
|
|
3001
|
+
readonly modify_output: {
|
|
3002
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3003
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3004
|
+
};
|
|
3005
|
+
readonly modify_prompt: {
|
|
3006
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3007
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3008
|
+
};
|
|
3009
|
+
readonly modify_request: {
|
|
3010
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3011
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3012
|
+
};
|
|
3013
|
+
readonly modify_response: {
|
|
3014
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3015
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3016
|
+
};
|
|
3017
|
+
readonly modify_content: {
|
|
3018
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3019
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3020
|
+
};
|
|
3021
|
+
readonly modify_instructions: {
|
|
3022
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3023
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3024
|
+
};
|
|
3025
|
+
readonly modify_summary: {
|
|
3026
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3027
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3028
|
+
};
|
|
3029
|
+
readonly modify_workspace: {
|
|
3030
|
+
readonly replace: (value: JsonValue) => Effect;
|
|
3031
|
+
readonly merge: (value: JsonValue) => Effect;
|
|
3032
|
+
};
|
|
3033
|
+
};
|
|
3034
|
+
/** Declaration convenience only. Event admission and per-call narrowing are runtime-owned. */
|
|
3035
|
+
export type CapabilityDeclaration = {
|
|
3036
|
+
modes: ("intercept" | "observe")[];
|
|
3037
|
+
capabilities: Capabilities;
|
|
3038
|
+
};
|
|
3039
|
+
export type CapabilityObservation = {
|
|
3040
|
+
modes: ["observe"];
|
|
3041
|
+
};
|
|
3042
|
+
export type CapabilityModifyOperations = {
|
|
3043
|
+
merge?: boolean;
|
|
3044
|
+
replace?: boolean;
|
|
3045
|
+
};
|
|
3046
|
+
export type CapabilityFlowOperation = "continue" | "stop";
|
|
3047
|
+
export type CapabilityDelivery = "next_turn" | "now";
|
|
3048
|
+
export declare class CapabilityBuilder {
|
|
3049
|
+
#private;
|
|
3050
|
+
private constructor();
|
|
3051
|
+
static intercept(): CapabilityBuilder;
|
|
3052
|
+
private add;
|
|
3053
|
+
build(): CapabilityDeclaration;
|
|
3054
|
+
get modes(): ("intercept" | "observe")[];
|
|
3055
|
+
get capabilities(): Capabilities;
|
|
3056
|
+
toJSON(): CapabilityDeclaration;
|
|
3057
|
+
allow(): CapabilityBuilder;
|
|
3058
|
+
ask(): CapabilityBuilder;
|
|
3059
|
+
deny(): CapabilityBuilder;
|
|
3060
|
+
message(): CapabilityBuilder;
|
|
3061
|
+
return(): CapabilityBuilder;
|
|
3062
|
+
modifyContent(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3063
|
+
modifyInput(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3064
|
+
modifyInstructions(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3065
|
+
modifyOutput(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3066
|
+
modifyPrompt(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3067
|
+
modifyRequest(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3068
|
+
modifyResponse(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3069
|
+
modifySummary(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3070
|
+
modifyWorkspace(operations: CapabilityModifyOperations): CapabilityBuilder;
|
|
3071
|
+
elicitationForm(): CapabilityBuilder;
|
|
3072
|
+
elicitationUrl(): CapabilityBuilder;
|
|
3073
|
+
flow(operations: readonly CapabilityFlowOperation[], counts?: {
|
|
3074
|
+
remainingContinuations?: number;
|
|
3075
|
+
continuationCount?: number;
|
|
3076
|
+
maxContinuations?: number;
|
|
3077
|
+
}): CapabilityBuilder;
|
|
3078
|
+
injectContext(deliverAt: readonly CapabilityDelivery[]): CapabilityBuilder;
|
|
3079
|
+
}
|
|
3080
|
+
/** intercept includes observe; declarations do not prove host execution. */
|
|
3081
|
+
export declare const capabilities: Readonly<{
|
|
3082
|
+
intercept: () => CapabilityBuilder;
|
|
3083
|
+
observe: () => CapabilityObservation;
|
|
3084
|
+
}>;
|
|
3085
|
+
//# sourceMappingURL=generated.d.ts.map
|