@stitchmux/client 0.0.0-stage → 0.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -2
- package/dist/chunk-wddwdvbj.js +714 -0
- package/dist/index.js +4070 -0
- package/dist/monitoring.js +279 -0
- package/native-stream.json +8 -0
- package/package.json +36 -4
- package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
- package/types/src/agent/custom/config.d.ts +159 -0
- package/types/src/agent/custom/endpoint.d.ts +26 -0
- package/types/src/agent/transcript/messageSchema.d.ts +153 -0
- package/types/src/attachments/reference.d.ts +56 -0
- package/types/src/attachments/schema.d.ts +512 -0
- package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
- package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
- package/types/src/chat/feedSchema.d.ts +641 -0
- package/types/src/chat/holdKind.d.ts +26 -0
- package/types/src/chat/identity.d.ts +55 -0
- package/types/src/chat/identitySchema.d.ts +121 -0
- package/types/src/chat/letterRequestSchema.d.ts +35 -0
- package/types/src/chat/messageOperationSchema.d.ts +277 -0
- package/types/src/chat/messageSchema.d.ts +284 -0
- package/types/src/chat/originSchema.d.ts +67 -0
- package/types/src/chat/sentLetterSchema.d.ts +79 -0
- package/types/src/client.d.ts +16 -0
- package/types/src/config/claudeProfileSchema.d.ts +22 -0
- package/types/src/config/launchSchema.d.ts +136 -0
- package/types/src/config/location.d.ts +6 -0
- package/types/src/config/machineSchema.d.ts +320 -0
- package/types/src/config/modelSelectionFlags.d.ts +4 -0
- package/types/src/config/paths.d.ts +87 -0
- package/types/src/config/remoteTransport.d.ts +12 -0
- package/types/src/content/schema.d.ts +312 -0
- package/types/src/content/toolSchema.d.ts +36 -0
- package/types/src/context/corpusSearchSchema.d.ts +578 -0
- package/types/src/context/exactMessageSchema.d.ts +54 -0
- package/types/src/context/messageSenderSchema.d.ts +14 -0
- package/types/src/context/schema.d.ts +176 -0
- package/types/src/context/searchFrames.d.ts +225 -0
- package/types/src/context/searchRequestSchema.d.ts +47 -0
- package/types/src/context/transcriptJsonSchema.d.ts +210 -0
- package/types/src/control/schema/context.d.ts +188 -0
- package/types/src/control/schema/contract.d.ts +7142 -0
- package/types/src/control/schema/core.d.ts +722 -0
- package/types/src/control/schema/directory.d.ts +34 -0
- package/types/src/control/schema/eventsContract.d.ts +1423 -0
- package/types/src/control/schema/externalList.d.ts +96 -0
- package/types/src/control/schema/message.d.ts +280 -0
- package/types/src/control/schema/model.d.ts +128 -0
- package/types/src/control/schema/native.d.ts +664 -0
- package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
- package/types/src/control/schema/performance.d.ts +85 -0
- package/types/src/control/schema/public.d.ts +48 -0
- package/types/src/control/schema/reading.d.ts +24 -0
- package/types/src/control/schema/refusals.d.ts +433 -0
- package/types/src/control/schema/runtimeOps.d.ts +724 -0
- package/types/src/control/schema/searchContract.d.ts +258 -0
- package/types/src/control/schema/selection.d.ts +124 -0
- package/types/src/control/schema/session.d.ts +272 -0
- package/types/src/control/schema/terminalPrompt.d.ts +102 -0
- package/types/src/control/transport/boundary.d.ts +7137 -0
- package/types/src/control/transport/client.d.ts +10838 -0
- package/types/src/control/transport/connection.d.ts +13 -0
- package/types/src/control/transport/socketPath.d.ts +3 -0
- package/types/src/control-client.d.ts +9 -0
- package/types/src/delegation/applicationSchema.d.ts +132 -0
- package/types/src/delegation/schema.d.ts +267 -0
- package/types/src/events/schema.d.ts +155 -0
- package/types/src/external/contentSchema.d.ts +145 -0
- package/types/src/external/messageSchema.d.ts +131 -0
- package/types/src/external/residentFrames.d.ts +130 -0
- package/types/src/external/residentSchema.d.ts +144 -0
- package/types/src/external/sessionSchema.d.ts +427 -0
- package/types/src/external/turnSchema.d.ts +55 -0
- package/types/src/fleet/fleetSchema.d.ts +937 -0
- package/types/src/inventory/listSchema.d.ts +442 -0
- package/types/src/monitoring/nativeFile.d.ts +7 -0
- package/types/src/monitoring/nativeRead.d.ts +14 -0
- package/types/src/monitoring/performanceSchema.d.ts +28 -0
- package/types/src/monitoring/schema.d.ts +410 -0
- package/types/src/monitoring/validate.d.ts +5 -0
- package/types/src/monitoring-reader.d.ts +4 -0
- package/types/src/policy/reference.d.ts +93 -0
- package/types/src/policy/runtimeProfile.d.ts +24 -0
- package/types/src/policy/schema.d.ts +177 -0
- package/types/src/runtime/capabilities.d.ts +124 -0
- package/types/src/runtime/modes.d.ts +47 -0
- package/types/src/runtime/permissionScope.d.ts +22 -0
- package/types/src/runtime/planLimitsSchema.d.ts +55 -0
- package/types/src/runtime/projectionSchema.d.ts +539 -0
- package/types/src/runtime/rewindSchema.d.ts +16 -0
- package/types/src/runtime/selectionSchema.d.ts +158 -0
- package/types/src/runtime/workloadContract.d.ts +55 -0
- package/types/src/session/boundary.d.ts +43 -0
- package/types/src/session/identitySchema.d.ts +353 -0
- package/types/src/session/schema.d.ts +341 -0
- package/types/src/session/sleep/schema.d.ts +283 -0
- package/types/src/steering/schema.d.ts +197 -0
- package/types/src/types.d.ts +48 -0
- package/types/src/usage/schema.d.ts +978 -0
- package/types/src/util/home.d.ts +9 -0
- package/types/src/util/preview.d.ts +13 -0
- package/types/src/util/version.d.ts +3 -0
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const NATIVE_RUNTIME_TTL_MS = 5000;
|
|
3
|
+
export declare const NATIVE_RUNTIME_MAX_BYTES: number;
|
|
4
|
+
export declare const NATIVE_RUNTIME_MAX_EVENTS = 128;
|
|
5
|
+
export declare const NATIVE_RUNTIME_MAX_NATIVE_ITEMS = 128;
|
|
6
|
+
export declare const NativeStateSchema: z.ZodEnum<{
|
|
7
|
+
idle: "idle";
|
|
8
|
+
unknown: "unknown";
|
|
9
|
+
"waiting-approval": "waiting-approval";
|
|
10
|
+
"waiting-input": "waiting-input";
|
|
11
|
+
working: "working";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const NativeTurnSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<{
|
|
16
|
+
completed: "completed";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
inProgress: "inProgress";
|
|
19
|
+
interrupted: "interrupted";
|
|
20
|
+
}>;
|
|
21
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export declare const NativeEventSchema: z.ZodObject<{
|
|
24
|
+
sequence: z.ZodNumber;
|
|
25
|
+
at: z.ZodISODateTime;
|
|
26
|
+
kind: z.ZodEnum<{
|
|
27
|
+
state: "state";
|
|
28
|
+
"turn-end": "turn-end";
|
|
29
|
+
"turn-start": "turn-start";
|
|
30
|
+
unavailable: "unavailable";
|
|
31
|
+
}>;
|
|
32
|
+
state: z.ZodEnum<{
|
|
33
|
+
idle: "idle";
|
|
34
|
+
unknown: "unknown";
|
|
35
|
+
"waiting-approval": "waiting-approval";
|
|
36
|
+
"waiting-input": "waiting-input";
|
|
37
|
+
working: "working";
|
|
38
|
+
}>;
|
|
39
|
+
turn: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
status: z.ZodEnum<{
|
|
42
|
+
completed: "completed";
|
|
43
|
+
failed: "failed";
|
|
44
|
+
inProgress: "inProgress";
|
|
45
|
+
interrupted: "interrupted";
|
|
46
|
+
}>;
|
|
47
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const NativeUsageSchema: z.ZodObject<{
|
|
51
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
reasoningOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
export type NativeUsage = z.infer<typeof NativeUsageSchema>;
|
|
58
|
+
export declare const NativeItemSchema: z.ZodObject<{
|
|
59
|
+
sequence: z.ZodNumber;
|
|
60
|
+
at: z.ZodISODateTime;
|
|
61
|
+
kind: z.ZodEnum<{
|
|
62
|
+
approval: "approval";
|
|
63
|
+
assistant: "assistant";
|
|
64
|
+
input: "input";
|
|
65
|
+
reasoning: "reasoning";
|
|
66
|
+
terminal: "terminal";
|
|
67
|
+
tool: "tool";
|
|
68
|
+
usage: "usage";
|
|
69
|
+
user: "user";
|
|
70
|
+
}>;
|
|
71
|
+
stage: z.ZodEnum<{
|
|
72
|
+
completed: "completed";
|
|
73
|
+
requested: "requested";
|
|
74
|
+
resolved: "resolved";
|
|
75
|
+
started: "started";
|
|
76
|
+
submitted: "submitted";
|
|
77
|
+
updated: "updated";
|
|
78
|
+
}>;
|
|
79
|
+
nativeId: z.ZodString;
|
|
80
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
81
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
82
|
+
status: z.ZodNullable<z.ZodString>;
|
|
83
|
+
text: z.ZodNullable<z.ZodString>;
|
|
84
|
+
tool: z.ZodNullable<z.ZodString>;
|
|
85
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
86
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
88
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
90
|
+
reasoningOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const NativePendingRequestSchema: z.ZodObject<{
|
|
94
|
+
requestId: z.ZodString;
|
|
95
|
+
rpcId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
96
|
+
kind: z.ZodEnum<{
|
|
97
|
+
approval: "approval";
|
|
98
|
+
input: "input";
|
|
99
|
+
}>;
|
|
100
|
+
approvalKind: z.ZodNullable<z.ZodEnum<{
|
|
101
|
+
command: "command";
|
|
102
|
+
file: "file";
|
|
103
|
+
tool: "tool";
|
|
104
|
+
}>>;
|
|
105
|
+
turnId: z.ZodString;
|
|
106
|
+
itemId: z.ZodString;
|
|
107
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
108
|
+
scope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
109
|
+
operation: z.ZodString;
|
|
110
|
+
kind: z.ZodLiteral<"filesystem-patterns">;
|
|
111
|
+
requested: z.ZodObject<{
|
|
112
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
113
|
+
omitted: z.ZodNumber;
|
|
114
|
+
complete: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
session: z.ZodObject<{
|
|
117
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
118
|
+
omitted: z.ZodNumber;
|
|
119
|
+
complete: z.ZodBoolean;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
}, z.core.$strict>>>;
|
|
122
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
123
|
+
accept: "accept";
|
|
124
|
+
acceptForSession: "acceptForSession";
|
|
125
|
+
cancel: "cancel";
|
|
126
|
+
decline: "decline";
|
|
127
|
+
}>>;
|
|
128
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
header: z.ZodString;
|
|
131
|
+
question: z.ZodString;
|
|
132
|
+
isOther: z.ZodBoolean;
|
|
133
|
+
isSecret: z.ZodBoolean;
|
|
134
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
135
|
+
label: z.ZodString;
|
|
136
|
+
description: z.ZodString;
|
|
137
|
+
}, z.core.$strict>>>;
|
|
138
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
}, z.core.$strict>>;
|
|
140
|
+
requestedAt: z.ZodISODateTime;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
/**
|
|
143
|
+
* How much a turn may do without asking. The set is the runtime's, not this project's invention.
|
|
144
|
+
*/
|
|
145
|
+
export declare const PermissionModeSchema: z.ZodEnum<{
|
|
146
|
+
acceptEdits: "acceptEdits";
|
|
147
|
+
bypassPermissions: "bypassPermissions";
|
|
148
|
+
default: "default";
|
|
149
|
+
plan: "plan";
|
|
150
|
+
}>;
|
|
151
|
+
export type PermissionMode = z.infer<typeof PermissionModeSchema>;
|
|
152
|
+
/**
|
|
153
|
+
* How full the conversation's context window is, as the runtime measures it.
|
|
154
|
+
*
|
|
155
|
+
* `limitTokens` is the window a turn is actually judged against and `rawLimitTokens` is the model's
|
|
156
|
+
* own; they differ when a compaction policy sets a smaller one, and a reader shown only a percentage
|
|
157
|
+
* cannot tell which it was against. Both are carried so the number is interpretable.
|
|
158
|
+
*/
|
|
159
|
+
export declare const NativeContextUsageSchema: z.ZodObject<{
|
|
160
|
+
usedTokens: z.ZodNumber;
|
|
161
|
+
limitTokens: z.ZodNumber;
|
|
162
|
+
rawLimitTokens: z.ZodNumber;
|
|
163
|
+
percent: z.ZodNumber;
|
|
164
|
+
window: z.ZodEnum<{
|
|
165
|
+
"compaction-window": "compaction-window";
|
|
166
|
+
"model-limit": "model-limit";
|
|
167
|
+
}>;
|
|
168
|
+
observedAt: z.ZodISODateTime;
|
|
169
|
+
}, z.core.$strict>;
|
|
170
|
+
export type NativeContextUsage = z.infer<typeof NativeContextUsageSchema>;
|
|
171
|
+
/**
|
|
172
|
+
* Which account a session runs on, and what it has spent on it.
|
|
173
|
+
*
|
|
174
|
+
* An identity, never a credential: no token, key, or the name of the place one came from reaches
|
|
175
|
+
* this — knowing WHERE a credential lives is a step toward it and answers nothing about who is
|
|
176
|
+
* spending. The label is what a person recognises the account by; a fleet of many sessions is read
|
|
177
|
+
* by grouping on it, which is the whole reason it exists.
|
|
178
|
+
*/
|
|
179
|
+
export declare const NativeAccountSchema: z.ZodObject<{
|
|
180
|
+
label: z.ZodNullable<z.ZodString>;
|
|
181
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
182
|
+
subscription: z.ZodNullable<z.ZodString>;
|
|
183
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
export type NativeAccount = z.infer<typeof NativeAccountSchema>;
|
|
186
|
+
/** Cumulative spend the runtime reports for this conversation. Null when it reports none. */
|
|
187
|
+
export declare const NativeSpendSchema: z.ZodObject<{
|
|
188
|
+
totalCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
189
|
+
observedAt: z.ZodISODateTime;
|
|
190
|
+
}, z.core.$strict>;
|
|
191
|
+
/**
|
|
192
|
+
* One MCP server of a session, as its runtime reports it.
|
|
193
|
+
*
|
|
194
|
+
* The server's own configuration is deliberately absent — a URL, a header or a token belongs to the
|
|
195
|
+
* host that wrote it and has no business travelling in a status projection. `error` IS carried: it
|
|
196
|
+
* is the runtime's own sentence about a server that failed, and without it a failed server is
|
|
197
|
+
* undiagnosable, which is the whole reason a status exists.
|
|
198
|
+
*/
|
|
199
|
+
export declare const NativeMcpServerSchema: z.ZodObject<{
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
status: z.ZodEnum<{
|
|
202
|
+
connected: "connected";
|
|
203
|
+
disabled: "disabled";
|
|
204
|
+
failed: "failed";
|
|
205
|
+
"needs-auth": "needs-auth";
|
|
206
|
+
pending: "pending";
|
|
207
|
+
unknown: "unknown";
|
|
208
|
+
}>;
|
|
209
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
210
|
+
tools: z.ZodNullable<z.ZodNumber>;
|
|
211
|
+
error: z.ZodNullable<z.ZodString>;
|
|
212
|
+
}, z.core.$strict>;
|
|
213
|
+
export type NativeMcpServer = z.infer<typeof NativeMcpServerSchema>;
|
|
214
|
+
export declare const NativeSnapshotSchema: z.ZodObject<{
|
|
215
|
+
protocol: z.ZodLiteral<1>;
|
|
216
|
+
provider: z.ZodEnum<{
|
|
217
|
+
antigravity: "antigravity";
|
|
218
|
+
claude: "claude";
|
|
219
|
+
codex: "codex";
|
|
220
|
+
custom: "custom";
|
|
221
|
+
opencode: "opencode";
|
|
222
|
+
}>;
|
|
223
|
+
machine: z.ZodString;
|
|
224
|
+
session: z.ZodString;
|
|
225
|
+
threadId: z.ZodUUID;
|
|
226
|
+
generation: z.ZodUUID;
|
|
227
|
+
sequence: z.ZodNumber;
|
|
228
|
+
pid: z.ZodNumber;
|
|
229
|
+
providerPid: z.ZodNumber;
|
|
230
|
+
version: z.ZodString;
|
|
231
|
+
connected: z.ZodBoolean;
|
|
232
|
+
state: z.ZodEnum<{
|
|
233
|
+
idle: "idle";
|
|
234
|
+
unknown: "unknown";
|
|
235
|
+
"waiting-approval": "waiting-approval";
|
|
236
|
+
"waiting-input": "waiting-input";
|
|
237
|
+
working: "working";
|
|
238
|
+
}>;
|
|
239
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
240
|
+
observedAt: z.ZodISODateTime;
|
|
241
|
+
expiresAt: z.ZodISODateTime;
|
|
242
|
+
turn: z.ZodNullable<z.ZodObject<{
|
|
243
|
+
id: z.ZodString;
|
|
244
|
+
status: z.ZodEnum<{
|
|
245
|
+
completed: "completed";
|
|
246
|
+
failed: "failed";
|
|
247
|
+
inProgress: "inProgress";
|
|
248
|
+
interrupted: "interrupted";
|
|
249
|
+
}>;
|
|
250
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
|
+
events: z.ZodArray<z.ZodObject<{
|
|
253
|
+
sequence: z.ZodNumber;
|
|
254
|
+
at: z.ZodISODateTime;
|
|
255
|
+
kind: z.ZodEnum<{
|
|
256
|
+
state: "state";
|
|
257
|
+
"turn-end": "turn-end";
|
|
258
|
+
"turn-start": "turn-start";
|
|
259
|
+
unavailable: "unavailable";
|
|
260
|
+
}>;
|
|
261
|
+
state: z.ZodEnum<{
|
|
262
|
+
idle: "idle";
|
|
263
|
+
unknown: "unknown";
|
|
264
|
+
"waiting-approval": "waiting-approval";
|
|
265
|
+
"waiting-input": "waiting-input";
|
|
266
|
+
working: "working";
|
|
267
|
+
}>;
|
|
268
|
+
turn: z.ZodNullable<z.ZodObject<{
|
|
269
|
+
id: z.ZodString;
|
|
270
|
+
status: z.ZodEnum<{
|
|
271
|
+
completed: "completed";
|
|
272
|
+
failed: "failed";
|
|
273
|
+
inProgress: "inProgress";
|
|
274
|
+
interrupted: "interrupted";
|
|
275
|
+
}>;
|
|
276
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
277
|
+
}, z.core.$strict>>;
|
|
278
|
+
}, z.core.$strict>>;
|
|
279
|
+
nativeSequence: z.ZodDefault<z.ZodNumber>;
|
|
280
|
+
nativeItems: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
281
|
+
sequence: z.ZodNumber;
|
|
282
|
+
at: z.ZodISODateTime;
|
|
283
|
+
kind: z.ZodEnum<{
|
|
284
|
+
approval: "approval";
|
|
285
|
+
assistant: "assistant";
|
|
286
|
+
input: "input";
|
|
287
|
+
reasoning: "reasoning";
|
|
288
|
+
terminal: "terminal";
|
|
289
|
+
tool: "tool";
|
|
290
|
+
usage: "usage";
|
|
291
|
+
user: "user";
|
|
292
|
+
}>;
|
|
293
|
+
stage: z.ZodEnum<{
|
|
294
|
+
completed: "completed";
|
|
295
|
+
requested: "requested";
|
|
296
|
+
resolved: "resolved";
|
|
297
|
+
started: "started";
|
|
298
|
+
submitted: "submitted";
|
|
299
|
+
updated: "updated";
|
|
300
|
+
}>;
|
|
301
|
+
nativeId: z.ZodString;
|
|
302
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
303
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
304
|
+
status: z.ZodNullable<z.ZodString>;
|
|
305
|
+
text: z.ZodNullable<z.ZodString>;
|
|
306
|
+
tool: z.ZodNullable<z.ZodString>;
|
|
307
|
+
usage: z.ZodNullable<z.ZodObject<{
|
|
308
|
+
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
309
|
+
inputTokens: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
cachedInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
311
|
+
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
312
|
+
reasoningOutputTokens: z.ZodNullable<z.ZodNumber>;
|
|
313
|
+
}, z.core.$strict>>;
|
|
314
|
+
}, z.core.$strict>>>;
|
|
315
|
+
pendingRequests: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
316
|
+
requestId: z.ZodString;
|
|
317
|
+
rpcId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
318
|
+
kind: z.ZodEnum<{
|
|
319
|
+
approval: "approval";
|
|
320
|
+
input: "input";
|
|
321
|
+
}>;
|
|
322
|
+
approvalKind: z.ZodNullable<z.ZodEnum<{
|
|
323
|
+
command: "command";
|
|
324
|
+
file: "file";
|
|
325
|
+
tool: "tool";
|
|
326
|
+
}>>;
|
|
327
|
+
turnId: z.ZodString;
|
|
328
|
+
itemId: z.ZodString;
|
|
329
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
330
|
+
scope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
331
|
+
operation: z.ZodString;
|
|
332
|
+
kind: z.ZodLiteral<"filesystem-patterns">;
|
|
333
|
+
requested: z.ZodObject<{
|
|
334
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
335
|
+
omitted: z.ZodNumber;
|
|
336
|
+
complete: z.ZodBoolean;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
session: z.ZodObject<{
|
|
339
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
340
|
+
omitted: z.ZodNumber;
|
|
341
|
+
complete: z.ZodBoolean;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
}, z.core.$strict>>>;
|
|
344
|
+
decisions: z.ZodArray<z.ZodEnum<{
|
|
345
|
+
accept: "accept";
|
|
346
|
+
acceptForSession: "acceptForSession";
|
|
347
|
+
cancel: "cancel";
|
|
348
|
+
decline: "decline";
|
|
349
|
+
}>>;
|
|
350
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
header: z.ZodString;
|
|
353
|
+
question: z.ZodString;
|
|
354
|
+
isOther: z.ZodBoolean;
|
|
355
|
+
isSecret: z.ZodBoolean;
|
|
356
|
+
options: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
357
|
+
label: z.ZodString;
|
|
358
|
+
description: z.ZodString;
|
|
359
|
+
}, z.core.$strict>>>;
|
|
360
|
+
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
requestedAt: z.ZodISODateTime;
|
|
363
|
+
}, z.core.$strict>>>;
|
|
364
|
+
applicationPolicy: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
policy: z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
revision: z.ZodString;
|
|
368
|
+
digest: z.ZodString;
|
|
369
|
+
runtime: z.ZodEnum<{
|
|
370
|
+
codex: "codex";
|
|
371
|
+
opencode: "opencode";
|
|
372
|
+
}>;
|
|
373
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
374
|
+
id: z.ZodString;
|
|
375
|
+
digest: z.ZodString;
|
|
376
|
+
kind: z.ZodEnum<{
|
|
377
|
+
agent: "agent";
|
|
378
|
+
instructions: "instructions";
|
|
379
|
+
skill: "skill";
|
|
380
|
+
}>;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
383
|
+
"developer-instructions": "developer-instructions";
|
|
384
|
+
"native-agent": "native-agent";
|
|
385
|
+
"native-skills": "native-skills";
|
|
386
|
+
"tool-denials": "tool-denials";
|
|
387
|
+
}>>;
|
|
388
|
+
}, z.core.$strict>;
|
|
389
|
+
state: z.ZodEnum<{
|
|
390
|
+
applied: "applied";
|
|
391
|
+
desired: "desired";
|
|
392
|
+
unavailable: "unavailable";
|
|
393
|
+
}>;
|
|
394
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
395
|
+
}, z.core.$strict>>;
|
|
396
|
+
nativeProfile: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
runtime: z.ZodLiteral<"custom">;
|
|
398
|
+
turnId: z.ZodString;
|
|
399
|
+
observedAt: z.ZodISODateTime;
|
|
400
|
+
recipeDigest: z.ZodString;
|
|
401
|
+
model: z.ZodObject<{
|
|
402
|
+
provider: z.ZodString;
|
|
403
|
+
model: z.ZodString;
|
|
404
|
+
}, z.core.$strict>;
|
|
405
|
+
providerLabel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
tools: z.ZodArray<z.ZodString>;
|
|
407
|
+
resources: z.ZodArray<z.ZodObject<{
|
|
408
|
+
id: z.ZodString;
|
|
409
|
+
digest: z.ZodString;
|
|
410
|
+
kind: z.ZodEnum<{
|
|
411
|
+
instruction: "instruction";
|
|
412
|
+
resource: "resource";
|
|
413
|
+
skill: "skill";
|
|
414
|
+
}>;
|
|
415
|
+
}, z.core.$strict>>;
|
|
416
|
+
}, z.core.$strict>>;
|
|
417
|
+
nativeSelection: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
418
|
+
model: z.ZodObject<{
|
|
419
|
+
provider: z.ZodString;
|
|
420
|
+
model: z.ZodString;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
options: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
423
|
+
runtime: z.ZodLiteral<"custom">;
|
|
424
|
+
model: z.ZodObject<{
|
|
425
|
+
provider: z.ZodString;
|
|
426
|
+
model: z.ZodString;
|
|
427
|
+
}, z.core.$strict>;
|
|
428
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
429
|
+
runtime: z.ZodLiteral<"claude">;
|
|
430
|
+
model: z.ZodObject<{
|
|
431
|
+
provider: z.ZodString;
|
|
432
|
+
model: z.ZodString;
|
|
433
|
+
}, z.core.$strict>;
|
|
434
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
435
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
436
|
+
runtime: z.ZodLiteral<"codex">;
|
|
437
|
+
model: z.ZodObject<{
|
|
438
|
+
provider: z.ZodString;
|
|
439
|
+
model: z.ZodString;
|
|
440
|
+
}, z.core.$strict>;
|
|
441
|
+
mode: z.ZodEnum<{
|
|
442
|
+
default: "default";
|
|
443
|
+
plan: "plan";
|
|
444
|
+
}>;
|
|
445
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
447
|
+
runtime: z.ZodLiteral<"opencode">;
|
|
448
|
+
model: z.ZodObject<{
|
|
449
|
+
provider: z.ZodString;
|
|
450
|
+
model: z.ZodString;
|
|
451
|
+
}, z.core.$strict>;
|
|
452
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
453
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
455
|
+
runtime: z.ZodLiteral<"antigravity">;
|
|
456
|
+
model: z.ZodObject<{
|
|
457
|
+
provider: z.ZodString;
|
|
458
|
+
model: z.ZodString;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
461
|
+
}, z.core.$strict>], "runtime">>;
|
|
462
|
+
source: z.ZodEnum<{
|
|
463
|
+
admission: "admission";
|
|
464
|
+
assistant: "assistant";
|
|
465
|
+
reroute: "reroute";
|
|
466
|
+
settings: "settings";
|
|
467
|
+
}>;
|
|
468
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
469
|
+
}, z.core.$strict>>>;
|
|
470
|
+
permissionMode: z.ZodOptional<z.ZodEnum<{
|
|
471
|
+
acceptEdits: "acceptEdits";
|
|
472
|
+
bypassPermissions: "bypassPermissions";
|
|
473
|
+
default: "default";
|
|
474
|
+
plan: "plan";
|
|
475
|
+
}>>;
|
|
476
|
+
contextUsage: z.ZodOptional<z.ZodObject<{
|
|
477
|
+
usedTokens: z.ZodNumber;
|
|
478
|
+
limitTokens: z.ZodNumber;
|
|
479
|
+
rawLimitTokens: z.ZodNumber;
|
|
480
|
+
percent: z.ZodNumber;
|
|
481
|
+
window: z.ZodEnum<{
|
|
482
|
+
"compaction-window": "compaction-window";
|
|
483
|
+
"model-limit": "model-limit";
|
|
484
|
+
}>;
|
|
485
|
+
observedAt: z.ZodISODateTime;
|
|
486
|
+
}, z.core.$strict>>;
|
|
487
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
488
|
+
label: z.ZodNullable<z.ZodString>;
|
|
489
|
+
organization: z.ZodNullable<z.ZodString>;
|
|
490
|
+
subscription: z.ZodNullable<z.ZodString>;
|
|
491
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
492
|
+
}, z.core.$strict>>;
|
|
493
|
+
planLimits: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
answer: z.ZodEnum<{
|
|
495
|
+
known: "known";
|
|
496
|
+
"no-plan-limit": "no-plan-limit";
|
|
497
|
+
unpublished: "unpublished";
|
|
498
|
+
}>;
|
|
499
|
+
plan: z.ZodNullable<z.ZodString>;
|
|
500
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
501
|
+
key: z.ZodString;
|
|
502
|
+
label: z.ZodNullable<z.ZodString>;
|
|
503
|
+
percent: z.ZodNumber;
|
|
504
|
+
windowMinutes: z.ZodNullable<z.ZodNumber>;
|
|
505
|
+
resetsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
506
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
507
|
+
}, z.core.$strict>>;
|
|
508
|
+
observedAt: z.ZodISODateTime;
|
|
509
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
510
|
+
native: "native";
|
|
511
|
+
probe: "probe";
|
|
512
|
+
statusline: "statusline";
|
|
513
|
+
}>>;
|
|
514
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
515
|
+
}, z.core.$strict>>;
|
|
516
|
+
spend: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
totalCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
518
|
+
observedAt: z.ZodISODateTime;
|
|
519
|
+
}, z.core.$strict>>;
|
|
520
|
+
fileCheckpoints: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
522
|
+
name: z.ZodString;
|
|
523
|
+
status: z.ZodEnum<{
|
|
524
|
+
connected: "connected";
|
|
525
|
+
disabled: "disabled";
|
|
526
|
+
failed: "failed";
|
|
527
|
+
"needs-auth": "needs-auth";
|
|
528
|
+
pending: "pending";
|
|
529
|
+
unknown: "unknown";
|
|
530
|
+
}>;
|
|
531
|
+
scope: z.ZodNullable<z.ZodString>;
|
|
532
|
+
tools: z.ZodNullable<z.ZodNumber>;
|
|
533
|
+
error: z.ZodNullable<z.ZodString>;
|
|
534
|
+
}, z.core.$strict>>>;
|
|
535
|
+
}, z.core.$strict>;
|
|
536
|
+
export type NativeSnapshot = z.infer<typeof NativeSnapshotSchema>;
|
|
537
|
+
export type NativeTurn = z.infer<typeof NativeTurnSchema>;
|
|
538
|
+
export type NativeItem = z.infer<typeof NativeItemSchema>;
|
|
539
|
+
export type NativePendingRequest = z.infer<typeof NativePendingRequestSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* What a rewind of a session's files did, or would do.
|
|
4
|
+
*
|
|
5
|
+
* Kept apart from the service that performs one because a control-plane schema travels into the
|
|
6
|
+
* packed client, and a client has no filesystem: a schema living beside `node:fs` drags it there.
|
|
7
|
+
*/
|
|
8
|
+
export declare const RewindResultSchema: z.ZodObject<{
|
|
9
|
+
canRewind: z.ZodBoolean;
|
|
10
|
+
error: z.ZodNullable<z.ZodString>;
|
|
11
|
+
filesChanged: z.ZodArray<z.ZodString>;
|
|
12
|
+
insertions: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
deletions: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
skippedLinks: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type RewindResult = z.infer<typeof RewindResultSchema>;
|