@cmdop/sdk 2.0.0 → 3.0.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 +21 -0
- package/README.md +13 -121
- package/dist/carriers/carrier.d.ts +40 -0
- package/dist/carriers/carrier.js +16 -0
- package/dist/carriers/http.d.ts +15 -0
- package/dist/carriers/http.js +114 -0
- package/dist/carriers/memory.d.ts +11 -0
- package/dist/carriers/memory.js +35 -0
- package/dist/carriers/ndjson.d.ts +16 -0
- package/dist/carriers/ndjson.js +31 -0
- package/dist/client.d.ts +113 -0
- package/dist/client.js +220 -0
- package/dist/generated/call.gen.d.ts +78 -0
- package/dist/generated/call.gen.js +5 -0
- package/dist/generated/tools.gen.d.ts +1046 -0
- package/dist/generated/tools.gen.js +34 -0
- package/dist/index.d.ts +8 -959
- package/dist/index.js +8 -626
- package/dist/screen.d.ts +19 -0
- package/dist/screen.js +16 -0
- package/dist/vendor.d.ts +52 -0
- package/dist/vendor.js +291 -0
- package/package.json +11 -43
- package/bin/cmdop-core-darwin-arm64 +0 -0
- package/bin/cmdop-core-darwin-x64 +0 -0
- package/bin/cmdop-core-linux-arm64 +0 -0
- package/bin/cmdop-core-linux-x64 +0 -0
- package/bin/cmdop-core-win32-x64.exe +0 -0
- package/dist/index.cjs +0 -647
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -959
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
DELETED
|
@@ -1,959 +0,0 @@
|
|
|
1
|
-
import { GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
-
import { Message, MessageInitShape } from '@bufbuild/protobuf';
|
|
3
|
-
import { Writable, Readable } from 'node:stream';
|
|
4
|
-
|
|
5
|
-
/** Immutable configuration for the local cmdop-core process. */
|
|
6
|
-
declare const DEFAULT_TIMEOUT_MS = 30000;
|
|
7
|
-
interface ClientConfig {
|
|
8
|
-
token?: string;
|
|
9
|
-
baseUrl?: string;
|
|
10
|
-
timeoutMs: number;
|
|
11
|
-
}
|
|
12
|
-
/** `new Client()` works locally; cmdop-core owns local config discovery. */
|
|
13
|
-
declare function resolveConfig(opts?: Partial<ClientConfig>): ClientConfig;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Envelope is the language-neutral stdio frame shared by every thin client.
|
|
17
|
-
*
|
|
18
|
-
* @generated from message cmdop.core.v2.Envelope
|
|
19
|
-
*/
|
|
20
|
-
type Envelope = Message<"cmdop.core.v2.Envelope"> & {
|
|
21
|
-
/**
|
|
22
|
-
* @generated from field: uint64 id = 1;
|
|
23
|
-
*/
|
|
24
|
-
id: bigint;
|
|
25
|
-
/**
|
|
26
|
-
* @generated from field: cmdop.core.v2.Envelope.Kind kind = 2;
|
|
27
|
-
*/
|
|
28
|
-
kind: Envelope_Kind;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from oneof cmdop.core.v2.Envelope.payload
|
|
31
|
-
*/
|
|
32
|
-
payload: {
|
|
33
|
-
/**
|
|
34
|
-
* system.bootstrap
|
|
35
|
-
*
|
|
36
|
-
* @generated from field: cmdop.core.v2.SystemBootstrapRequest system_bootstrap_req = 10;
|
|
37
|
-
*/
|
|
38
|
-
value: SystemBootstrapRequest;
|
|
39
|
-
case: "systemBootstrapReq";
|
|
40
|
-
} | {
|
|
41
|
-
/**
|
|
42
|
-
* @generated from field: cmdop.core.v2.SystemBootstrapResponse system_bootstrap_resp = 11;
|
|
43
|
-
*/
|
|
44
|
-
value: SystemBootstrapResponse;
|
|
45
|
-
case: "systemBootstrapResp";
|
|
46
|
-
} | {
|
|
47
|
-
/**
|
|
48
|
-
* machines.list
|
|
49
|
-
*
|
|
50
|
-
* @generated from field: cmdop.core.v2.ListMachinesRequest list_machines_req = 20;
|
|
51
|
-
*/
|
|
52
|
-
value: ListMachinesRequest;
|
|
53
|
-
case: "listMachinesReq";
|
|
54
|
-
} | {
|
|
55
|
-
/**
|
|
56
|
-
* @generated from field: cmdop.core.v2.MachineRosterSnapshot machine_roster_snapshot = 21;
|
|
57
|
-
*/
|
|
58
|
-
value: MachineRosterSnapshot;
|
|
59
|
-
case: "machineRosterSnapshot";
|
|
60
|
-
} | {
|
|
61
|
-
/**
|
|
62
|
-
* machines.ask
|
|
63
|
-
*
|
|
64
|
-
* @generated from field: cmdop.core.v2.AskMachineRequest ask_machine_req = 30;
|
|
65
|
-
*/
|
|
66
|
-
value: AskMachineRequest;
|
|
67
|
-
case: "askMachineReq";
|
|
68
|
-
} | {
|
|
69
|
-
/**
|
|
70
|
-
* @generated from field: cmdop.core.v2.AskEvent ask_event = 31;
|
|
71
|
-
*/
|
|
72
|
-
value: AskEvent;
|
|
73
|
-
case: "askEvent";
|
|
74
|
-
} | {
|
|
75
|
-
/**
|
|
76
|
-
* @generated from field: cmdop.core.v2.AskDone ask_done = 32;
|
|
77
|
-
*/
|
|
78
|
-
value: AskDone;
|
|
79
|
-
case: "askDone";
|
|
80
|
-
} | {
|
|
81
|
-
/**
|
|
82
|
-
* @generated from field: cmdop.core.v2.AskStreamError ask_stream_error = 33;
|
|
83
|
-
*/
|
|
84
|
-
value: AskStreamError;
|
|
85
|
-
case: "askStreamError";
|
|
86
|
-
} | {
|
|
87
|
-
/**
|
|
88
|
-
* machines.messages
|
|
89
|
-
*
|
|
90
|
-
* @generated from field: cmdop.core.v2.ListMachineMessagesRequest list_machine_messages_req = 40;
|
|
91
|
-
*/
|
|
92
|
-
value: ListMachineMessagesRequest;
|
|
93
|
-
case: "listMachineMessagesReq";
|
|
94
|
-
} | {
|
|
95
|
-
/**
|
|
96
|
-
* @generated from field: cmdop.core.v2.MachineMessageList machine_message_list = 41;
|
|
97
|
-
*/
|
|
98
|
-
value: MachineMessageList;
|
|
99
|
-
case: "machineMessageList";
|
|
100
|
-
} | {
|
|
101
|
-
/**
|
|
102
|
-
* Universal unary/protocol failure. Ask application failures remain stream
|
|
103
|
-
* events followed by AskDone{success:false}, matching the live Go SSE wire.
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: cmdop.core.v2.ErrorInfo error = 100;
|
|
106
|
-
*/
|
|
107
|
-
value: ErrorInfo;
|
|
108
|
-
case: "error";
|
|
109
|
-
} | {
|
|
110
|
-
case: undefined;
|
|
111
|
-
value?: undefined;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Describes the message cmdop.core.v2.Envelope.
|
|
116
|
-
* Use `create(EnvelopeSchema)` to create a new message.
|
|
117
|
-
*/
|
|
118
|
-
declare const EnvelopeSchema: GenMessage<Envelope>;
|
|
119
|
-
/**
|
|
120
|
-
* @generated from enum cmdop.core.v2.Envelope.Kind
|
|
121
|
-
*/
|
|
122
|
-
declare enum Envelope_Kind {
|
|
123
|
-
/**
|
|
124
|
-
* @generated from enum value: KIND_UNSPECIFIED = 0;
|
|
125
|
-
*/
|
|
126
|
-
UNSPECIFIED = 0,
|
|
127
|
-
/**
|
|
128
|
-
* @generated from enum value: KIND_REQUEST = 1;
|
|
129
|
-
*/
|
|
130
|
-
REQUEST = 1,
|
|
131
|
-
/**
|
|
132
|
-
* @generated from enum value: KIND_RESPONSE = 2;
|
|
133
|
-
*/
|
|
134
|
-
RESPONSE = 2,
|
|
135
|
-
/**
|
|
136
|
-
* @generated from enum value: KIND_EVENT = 3;
|
|
137
|
-
*/
|
|
138
|
-
EVENT = 3,
|
|
139
|
-
/**
|
|
140
|
-
* @generated from enum value: KIND_DONE = 4;
|
|
141
|
-
*/
|
|
142
|
-
DONE = 4,
|
|
143
|
-
/**
|
|
144
|
-
* @generated from enum value: KIND_ERROR = 5;
|
|
145
|
-
*/
|
|
146
|
-
ERROR = 5
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* @generated from message cmdop.core.v2.SystemBootstrapRequest
|
|
150
|
-
*/
|
|
151
|
-
type SystemBootstrapRequest = Message<"cmdop.core.v2.SystemBootstrapRequest"> & {};
|
|
152
|
-
/**
|
|
153
|
-
* @generated from message cmdop.core.v2.WebContractRange
|
|
154
|
-
*/
|
|
155
|
-
type WebContractRange = Message<"cmdop.core.v2.WebContractRange"> & {
|
|
156
|
-
/**
|
|
157
|
-
* @generated from field: int64 current = 1;
|
|
158
|
-
*/
|
|
159
|
-
current: bigint;
|
|
160
|
-
/**
|
|
161
|
-
* @generated from field: int64 min_client = 2;
|
|
162
|
-
*/
|
|
163
|
-
minClient: bigint;
|
|
164
|
-
/**
|
|
165
|
-
* @generated from field: int64 max_client = 3;
|
|
166
|
-
*/
|
|
167
|
-
maxClient: bigint;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* @generated from message cmdop.core.v2.BootstrapUpdate
|
|
171
|
-
*/
|
|
172
|
-
type BootstrapUpdate = Message<"cmdop.core.v2.BootstrapUpdate"> & {
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: optional string phase = 1;
|
|
175
|
-
*/
|
|
176
|
-
phase?: string | undefined;
|
|
177
|
-
/**
|
|
178
|
-
* @generated from field: optional string current_version = 2;
|
|
179
|
-
*/
|
|
180
|
-
currentVersion?: string | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* @generated from field: optional string new_version = 3;
|
|
183
|
-
*/
|
|
184
|
-
newVersion?: string | undefined;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Mirrors GET /api/bootstrap. version and update are omitted by the relay when
|
|
188
|
-
* unavailable; bootstrap itself is public and contains no credentials/user data.
|
|
189
|
-
*
|
|
190
|
-
* @generated from message cmdop.core.v2.SystemBootstrapResponse
|
|
191
|
-
*/
|
|
192
|
-
type SystemBootstrapResponse = Message<"cmdop.core.v2.SystemBootstrapResponse"> & {
|
|
193
|
-
/**
|
|
194
|
-
* @generated from field: optional string version = 1;
|
|
195
|
-
*/
|
|
196
|
-
version?: string | undefined;
|
|
197
|
-
/**
|
|
198
|
-
* @generated from field: string bundle_id = 2;
|
|
199
|
-
*/
|
|
200
|
-
bundleId: string;
|
|
201
|
-
/**
|
|
202
|
-
* @generated from field: cmdop.core.v2.WebContractRange web_contract = 3;
|
|
203
|
-
*/
|
|
204
|
-
webContract?: WebContractRange | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* @generated from field: repeated string capabilities = 4;
|
|
207
|
-
*/
|
|
208
|
-
capabilities: string[];
|
|
209
|
-
/**
|
|
210
|
-
* @generated from field: optional cmdop.core.v2.BootstrapUpdate update = 5;
|
|
211
|
-
*/
|
|
212
|
-
update?: BootstrapUpdate | undefined;
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* The current roster endpoint is an authoritative snapshot, not a pageable
|
|
216
|
-
* legacy list. epoch+sequence are the cursor for folding newer WS roster and
|
|
217
|
-
* presence pushes over the returned rows.
|
|
218
|
-
*
|
|
219
|
-
* @generated from message cmdop.core.v2.ListMachinesRequest
|
|
220
|
-
*/
|
|
221
|
-
type ListMachinesRequest = Message<"cmdop.core.v2.ListMachinesRequest"> & {};
|
|
222
|
-
/**
|
|
223
|
-
* @generated from message cmdop.core.v2.MachineRosterSnapshot
|
|
224
|
-
*/
|
|
225
|
-
type MachineRosterSnapshot = Message<"cmdop.core.v2.MachineRosterSnapshot"> & {
|
|
226
|
-
/**
|
|
227
|
-
* @generated from field: string epoch = 1;
|
|
228
|
-
*/
|
|
229
|
-
epoch: string;
|
|
230
|
-
/**
|
|
231
|
-
* @generated from field: int64 sequence = 2;
|
|
232
|
-
*/
|
|
233
|
-
sequence: bigint;
|
|
234
|
-
/**
|
|
235
|
-
* @generated from field: repeated cmdop.core.v2.MachineListItem machines = 3;
|
|
236
|
-
*/
|
|
237
|
-
machines: MachineListItem[];
|
|
238
|
-
};
|
|
239
|
-
/**
|
|
240
|
-
* @generated from message cmdop.core.v2.MachineListItem
|
|
241
|
-
*/
|
|
242
|
-
type MachineListItem = Message<"cmdop.core.v2.MachineListItem"> & {
|
|
243
|
-
/**
|
|
244
|
-
* @generated from field: string machine_id = 1;
|
|
245
|
-
*/
|
|
246
|
-
machineId: string;
|
|
247
|
-
/**
|
|
248
|
-
* @generated from field: string display_name = 2;
|
|
249
|
-
*/
|
|
250
|
-
displayName: string;
|
|
251
|
-
/**
|
|
252
|
-
* @generated from field: string portable_name = 3;
|
|
253
|
-
*/
|
|
254
|
-
portableName: string;
|
|
255
|
-
/**
|
|
256
|
-
* @generated from field: string fleet_id = 4;
|
|
257
|
-
*/
|
|
258
|
-
fleetId: string;
|
|
259
|
-
/**
|
|
260
|
-
* @generated from field: bool connected = 5;
|
|
261
|
-
*/
|
|
262
|
-
connected: boolean;
|
|
263
|
-
/**
|
|
264
|
-
* @generated from field: bool requires_pin = 6;
|
|
265
|
-
*/
|
|
266
|
-
requiresPin: boolean;
|
|
267
|
-
/**
|
|
268
|
-
* RFC3339
|
|
269
|
-
*
|
|
270
|
-
* @generated from field: string last_seen_at = 7;
|
|
271
|
-
*/
|
|
272
|
-
lastSeenAt: string;
|
|
273
|
-
/**
|
|
274
|
-
* @generated from field: int64 unread = 8;
|
|
275
|
-
*/
|
|
276
|
-
unread: bigint;
|
|
277
|
-
/**
|
|
278
|
-
* @generated from field: optional bool last_message_failed = 9;
|
|
279
|
-
*/
|
|
280
|
-
lastMessageFailed?: boolean | undefined;
|
|
281
|
-
/**
|
|
282
|
-
* @generated from field: optional string os = 10;
|
|
283
|
-
*/
|
|
284
|
-
os?: string | undefined;
|
|
285
|
-
/**
|
|
286
|
-
* @generated from field: optional string architecture = 11;
|
|
287
|
-
*/
|
|
288
|
-
architecture?: string | undefined;
|
|
289
|
-
/**
|
|
290
|
-
* @generated from field: optional string agent_version = 12;
|
|
291
|
-
*/
|
|
292
|
-
agentVersion?: string | undefined;
|
|
293
|
-
/**
|
|
294
|
-
* @generated from field: optional string public_key_fingerprint = 13;
|
|
295
|
-
*/
|
|
296
|
-
publicKeyFingerprint?: string | undefined;
|
|
297
|
-
/**
|
|
298
|
-
* @generated from field: optional string public_key_status = 14;
|
|
299
|
-
*/
|
|
300
|
-
publicKeyStatus?: string | undefined;
|
|
301
|
-
/**
|
|
302
|
-
* online | stale | offline
|
|
303
|
-
*
|
|
304
|
-
* @generated from field: optional string presence = 15;
|
|
305
|
-
*/
|
|
306
|
-
presence?: string | undefined;
|
|
307
|
-
/**
|
|
308
|
-
* @generated from field: optional string model_alias = 16;
|
|
309
|
-
*/
|
|
310
|
-
modelAlias?: string | undefined;
|
|
311
|
-
/**
|
|
312
|
-
* @generated from field: optional bool metrics_reported = 17;
|
|
313
|
-
*/
|
|
314
|
-
metricsReported?: boolean | undefined;
|
|
315
|
-
/**
|
|
316
|
-
* RFC3339
|
|
317
|
-
*
|
|
318
|
-
* @generated from field: optional string metrics_collected_at = 18;
|
|
319
|
-
*/
|
|
320
|
-
metricsCollectedAt?: string | undefined;
|
|
321
|
-
/**
|
|
322
|
-
* @generated from field: optional float cpu_percent = 19;
|
|
323
|
-
*/
|
|
324
|
-
cpuPercent?: number | undefined;
|
|
325
|
-
/**
|
|
326
|
-
* @generated from field: optional float memory_percent = 20;
|
|
327
|
-
*/
|
|
328
|
-
memoryPercent?: number | undefined;
|
|
329
|
-
/**
|
|
330
|
-
* @generated from field: optional int64 memory_total_bytes = 21;
|
|
331
|
-
*/
|
|
332
|
-
memoryTotalBytes?: bigint | undefined;
|
|
333
|
-
/**
|
|
334
|
-
* @generated from field: optional float disk_percent = 22;
|
|
335
|
-
*/
|
|
336
|
-
diskPercent?: number | undefined;
|
|
337
|
-
/**
|
|
338
|
-
* @generated from field: optional int64 disk_total_bytes = 23;
|
|
339
|
-
*/
|
|
340
|
-
diskTotalBytes?: bigint | undefined;
|
|
341
|
-
/**
|
|
342
|
-
* @generated from field: optional string os_version = 24;
|
|
343
|
-
*/
|
|
344
|
-
osVersion?: string | undefined;
|
|
345
|
-
/**
|
|
346
|
-
* @generated from field: optional string ip_address = 25;
|
|
347
|
-
*/
|
|
348
|
-
ipAddress?: string | undefined;
|
|
349
|
-
/**
|
|
350
|
-
* @generated from field: optional int64 uptime_seconds = 26;
|
|
351
|
-
*/
|
|
352
|
-
uptimeSeconds?: bigint | undefined;
|
|
353
|
-
/**
|
|
354
|
-
* @generated from field: optional bool virtual = 27;
|
|
355
|
-
*/
|
|
356
|
-
virtual?: boolean | undefined;
|
|
357
|
-
/**
|
|
358
|
-
* @generated from field: optional bool is_coordinator = 28;
|
|
359
|
-
*/
|
|
360
|
-
isCoordinator?: boolean | undefined;
|
|
361
|
-
/**
|
|
362
|
-
* @generated from field: optional bool is_this_device = 29;
|
|
363
|
-
*/
|
|
364
|
-
isThisDevice?: boolean | undefined;
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* Typed replacement for the v1 string options bag. The core maps these fields
|
|
368
|
-
* to the live Go AskRequest body; pin is sent as X-Machine-Pin so it takes the
|
|
369
|
-
* same precedence as the browser contract.
|
|
370
|
-
*
|
|
371
|
-
* @generated from message cmdop.core.v2.AskOptions
|
|
372
|
-
*/
|
|
373
|
-
type AskOptions$1 = Message<"cmdop.core.v2.AskOptions"> & {
|
|
374
|
-
/**
|
|
375
|
-
* @generated from field: optional string pin = 1;
|
|
376
|
-
*/
|
|
377
|
-
pin?: string | undefined;
|
|
378
|
-
/**
|
|
379
|
-
* empty/"1" = base; "2", "3", ... = that session
|
|
380
|
-
*
|
|
381
|
-
* @generated from field: optional string session = 2;
|
|
382
|
-
*/
|
|
383
|
-
session?: string | undefined;
|
|
384
|
-
/**
|
|
385
|
-
* @generated from field: repeated string attachment_ids = 3;
|
|
386
|
-
*/
|
|
387
|
-
attachmentIds: string[];
|
|
388
|
-
/**
|
|
389
|
-
* @generated from field: optional string engine = 4;
|
|
390
|
-
*/
|
|
391
|
-
engine?: string | undefined;
|
|
392
|
-
/**
|
|
393
|
-
* @generated from field: optional string working_dir = 5;
|
|
394
|
-
*/
|
|
395
|
-
workingDir?: string | undefined;
|
|
396
|
-
/**
|
|
397
|
-
* @generated from field: optional string project_root_id = 6;
|
|
398
|
-
*/
|
|
399
|
-
projectRootId?: string | undefined;
|
|
400
|
-
/**
|
|
401
|
-
* @generated from field: optional string model = 7;
|
|
402
|
-
*/
|
|
403
|
-
model?: string | undefined;
|
|
404
|
-
};
|
|
405
|
-
/**
|
|
406
|
-
* @generated from message cmdop.core.v2.AskMachineRequest
|
|
407
|
-
*/
|
|
408
|
-
type AskMachineRequest = Message<"cmdop.core.v2.AskMachineRequest"> & {
|
|
409
|
-
/**
|
|
410
|
-
* @generated from field: string machine_id = 1;
|
|
411
|
-
*/
|
|
412
|
-
machineId: string;
|
|
413
|
-
/**
|
|
414
|
-
* may be empty when attachment_ids is non-empty
|
|
415
|
-
*
|
|
416
|
-
* @generated from field: string prompt = 2;
|
|
417
|
-
*/
|
|
418
|
-
prompt: string;
|
|
419
|
-
/**
|
|
420
|
-
* @generated from field: cmdop.core.v2.AskOptions options = 3;
|
|
421
|
-
*/
|
|
422
|
-
options?: AskOptions$1 | undefined;
|
|
423
|
-
};
|
|
424
|
-
/**
|
|
425
|
-
* payload_json is the agent-native JSON passed through verbatim by the relay.
|
|
426
|
-
*
|
|
427
|
-
* @generated from message cmdop.core.v2.AskEvent
|
|
428
|
-
*/
|
|
429
|
-
type AskEvent = Message<"cmdop.core.v2.AskEvent"> & {
|
|
430
|
-
/**
|
|
431
|
-
* @generated from field: cmdop.core.v2.AgentEventType event_type = 1;
|
|
432
|
-
*/
|
|
433
|
-
eventType: AgentEventType;
|
|
434
|
-
/**
|
|
435
|
-
* @generated from field: string payload_json = 2;
|
|
436
|
-
*/
|
|
437
|
-
payloadJson: string;
|
|
438
|
-
/**
|
|
439
|
-
* absent on one-machine ask
|
|
440
|
-
*
|
|
441
|
-
* @generated from field: optional string machine_id = 3;
|
|
442
|
-
*/
|
|
443
|
-
machineId?: string | undefined;
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* @generated from message cmdop.core.v2.AskDone
|
|
447
|
-
*/
|
|
448
|
-
type AskDone = Message<"cmdop.core.v2.AskDone"> & {
|
|
449
|
-
/**
|
|
450
|
-
* @generated from field: bool success = 1;
|
|
451
|
-
*/
|
|
452
|
-
success: boolean;
|
|
453
|
-
/**
|
|
454
|
-
* @generated from field: string text = 2;
|
|
455
|
-
*/
|
|
456
|
-
text: string;
|
|
457
|
-
/**
|
|
458
|
-
* @generated from field: optional string error = 3;
|
|
459
|
-
*/
|
|
460
|
-
error?: string | undefined;
|
|
461
|
-
/**
|
|
462
|
-
* @generated from field: optional int32 upstream_status = 4;
|
|
463
|
-
*/
|
|
464
|
-
upstreamStatus?: number | undefined;
|
|
465
|
-
/**
|
|
466
|
-
* @generated from field: optional string provider = 5;
|
|
467
|
-
*/
|
|
468
|
-
provider?: string | undefined;
|
|
469
|
-
/**
|
|
470
|
-
* @generated from field: optional string detail = 6;
|
|
471
|
-
*/
|
|
472
|
-
detail?: string | undefined;
|
|
473
|
-
/**
|
|
474
|
-
* @generated from field: optional string machine_id = 7;
|
|
475
|
-
*/
|
|
476
|
-
machineId?: string | undefined;
|
|
477
|
-
/**
|
|
478
|
-
* @generated from field: optional int64 input_tokens = 8;
|
|
479
|
-
*/
|
|
480
|
-
inputTokens?: bigint | undefined;
|
|
481
|
-
/**
|
|
482
|
-
* @generated from field: optional int64 output_tokens = 9;
|
|
483
|
-
*/
|
|
484
|
-
outputTokens?: bigint | undefined;
|
|
485
|
-
/**
|
|
486
|
-
* @generated from field: optional int64 total_tokens = 10;
|
|
487
|
-
*/
|
|
488
|
-
totalTokens?: bigint | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* @generated from field: optional int64 cache_read_tokens = 11;
|
|
491
|
-
*/
|
|
492
|
-
cacheReadTokens?: bigint | undefined;
|
|
493
|
-
/**
|
|
494
|
-
* @generated from field: optional int64 cache_write_tokens = 12;
|
|
495
|
-
*/
|
|
496
|
-
cacheWriteTokens?: bigint | undefined;
|
|
497
|
-
/**
|
|
498
|
-
* @generated from field: optional double cost_usd = 13;
|
|
499
|
-
*/
|
|
500
|
-
costUsd?: number | undefined;
|
|
501
|
-
/**
|
|
502
|
-
* @generated from field: optional string cost_source = 14;
|
|
503
|
-
*/
|
|
504
|
-
costSource?: string | undefined;
|
|
505
|
-
/**
|
|
506
|
-
* @generated from field: optional string engine = 15;
|
|
507
|
-
*/
|
|
508
|
-
engine?: string | undefined;
|
|
509
|
-
/**
|
|
510
|
-
* @generated from field: optional string model = 16;
|
|
511
|
-
*/
|
|
512
|
-
model?: string | undefined;
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* An application-level SSE error is followed by AskDone{success:false}; it is
|
|
516
|
-
* not the protocol-terminal universal ErrorInfo below.
|
|
517
|
-
*
|
|
518
|
-
* @generated from message cmdop.core.v2.AskStreamError
|
|
519
|
-
*/
|
|
520
|
-
type AskStreamError = Message<"cmdop.core.v2.AskStreamError"> & {
|
|
521
|
-
/**
|
|
522
|
-
* @generated from field: cmdop.core.v2.AskStreamErrorCode code = 1;
|
|
523
|
-
*/
|
|
524
|
-
code: AskStreamErrorCode;
|
|
525
|
-
/**
|
|
526
|
-
* @generated from field: string message = 2;
|
|
527
|
-
*/
|
|
528
|
-
message: string;
|
|
529
|
-
};
|
|
530
|
-
/**
|
|
531
|
-
* @generated from message cmdop.core.v2.ListMachineMessagesRequest
|
|
532
|
-
*/
|
|
533
|
-
type ListMachineMessagesRequest = Message<"cmdop.core.v2.ListMachineMessagesRequest"> & {
|
|
534
|
-
/**
|
|
535
|
-
* @generated from field: string machine_id = 1;
|
|
536
|
-
*/
|
|
537
|
-
machineId: string;
|
|
538
|
-
/**
|
|
539
|
-
* @generated from field: optional string session = 2;
|
|
540
|
-
*/
|
|
541
|
-
session?: string | undefined;
|
|
542
|
-
/**
|
|
543
|
-
* @generated from field: optional int32 limit = 3;
|
|
544
|
-
*/
|
|
545
|
-
limit?: number | undefined;
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
* @generated from message cmdop.core.v2.MachineMessageList
|
|
549
|
-
*/
|
|
550
|
-
type MachineMessageList = Message<"cmdop.core.v2.MachineMessageList"> & {
|
|
551
|
-
/**
|
|
552
|
-
* @generated from field: repeated cmdop.core.v2.ChatMessage messages = 1;
|
|
553
|
-
*/
|
|
554
|
-
messages: ChatMessage[];
|
|
555
|
-
};
|
|
556
|
-
/**
|
|
557
|
-
* @generated from message cmdop.core.v2.ChatAttachment
|
|
558
|
-
*/
|
|
559
|
-
type ChatAttachment = Message<"cmdop.core.v2.ChatAttachment"> & {
|
|
560
|
-
/**
|
|
561
|
-
* @generated from field: string id = 1;
|
|
562
|
-
*/
|
|
563
|
-
id: string;
|
|
564
|
-
/**
|
|
565
|
-
* @generated from field: string url = 2;
|
|
566
|
-
*/
|
|
567
|
-
url: string;
|
|
568
|
-
/**
|
|
569
|
-
* @generated from field: string name = 3;
|
|
570
|
-
*/
|
|
571
|
-
name: string;
|
|
572
|
-
/**
|
|
573
|
-
* JSON owner field: mimeType
|
|
574
|
-
*
|
|
575
|
-
* @generated from field: string mime_type = 4;
|
|
576
|
-
*/
|
|
577
|
-
mimeType: string;
|
|
578
|
-
/**
|
|
579
|
-
* JSON owner field: sizeBytes
|
|
580
|
-
*
|
|
581
|
-
* @generated from field: int64 size_bytes = 5;
|
|
582
|
-
*/
|
|
583
|
-
sizeBytes: bigint;
|
|
584
|
-
/**
|
|
585
|
-
* @generated from field: string type = 6;
|
|
586
|
-
*/
|
|
587
|
-
type: string;
|
|
588
|
-
};
|
|
589
|
-
/**
|
|
590
|
-
* @generated from message cmdop.core.v2.ChatMessage
|
|
591
|
-
*/
|
|
592
|
-
type ChatMessage = Message<"cmdop.core.v2.ChatMessage"> & {
|
|
593
|
-
/**
|
|
594
|
-
* @generated from field: string id = 1;
|
|
595
|
-
*/
|
|
596
|
-
id: string;
|
|
597
|
-
/**
|
|
598
|
-
* @generated from field: int64 seq = 2;
|
|
599
|
-
*/
|
|
600
|
-
seq: bigint;
|
|
601
|
-
/**
|
|
602
|
-
* @generated from field: string author_kind = 3;
|
|
603
|
-
*/
|
|
604
|
-
authorKind: string;
|
|
605
|
-
/**
|
|
606
|
-
* @generated from field: string author_id = 4;
|
|
607
|
-
*/
|
|
608
|
-
authorId: string;
|
|
609
|
-
/**
|
|
610
|
-
* @generated from field: string role = 5;
|
|
611
|
-
*/
|
|
612
|
-
role: string;
|
|
613
|
-
/**
|
|
614
|
-
* @generated from field: string content = 6;
|
|
615
|
-
*/
|
|
616
|
-
content: string;
|
|
617
|
-
/**
|
|
618
|
-
* Unix epoch milliseconds
|
|
619
|
-
*
|
|
620
|
-
* @generated from field: int64 created_at = 7;
|
|
621
|
-
*/
|
|
622
|
-
createdAt: bigint;
|
|
623
|
-
/**
|
|
624
|
-
* @generated from field: optional string tool_call_id = 8;
|
|
625
|
-
*/
|
|
626
|
-
toolCallId?: string | undefined;
|
|
627
|
-
/**
|
|
628
|
-
* @generated from field: optional int64 event_type = 9;
|
|
629
|
-
*/
|
|
630
|
-
eventType?: bigint | undefined;
|
|
631
|
-
/**
|
|
632
|
-
* @generated from field: repeated cmdop.core.v2.ChatAttachment attachments = 10;
|
|
633
|
-
*/
|
|
634
|
-
attachments: ChatAttachment[];
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* ErrorInfo normalizes HTTP/problem, process, and protocol failures for every
|
|
638
|
-
* unary call. details_json is optional redacted diagnostic context, never a raw
|
|
639
|
-
* credential-bearing response body.
|
|
640
|
-
*
|
|
641
|
-
* @generated from message cmdop.core.v2.ErrorInfo
|
|
642
|
-
*/
|
|
643
|
-
type ErrorInfo = Message<"cmdop.core.v2.ErrorInfo"> & {
|
|
644
|
-
/**
|
|
645
|
-
* @generated from field: cmdop.core.v2.ErrorCode code = 1;
|
|
646
|
-
*/
|
|
647
|
-
code: ErrorCode;
|
|
648
|
-
/**
|
|
649
|
-
* @generated from field: string message = 2;
|
|
650
|
-
*/
|
|
651
|
-
message: string;
|
|
652
|
-
/**
|
|
653
|
-
* @generated from field: optional int32 http_status = 3;
|
|
654
|
-
*/
|
|
655
|
-
httpStatus?: number | undefined;
|
|
656
|
-
/**
|
|
657
|
-
* @generated from field: bool retryable = 4;
|
|
658
|
-
*/
|
|
659
|
-
retryable: boolean;
|
|
660
|
-
/**
|
|
661
|
-
* @generated from field: optional string details_json = 5;
|
|
662
|
-
*/
|
|
663
|
-
detailsJson?: string | undefined;
|
|
664
|
-
};
|
|
665
|
-
/**
|
|
666
|
-
* Numeric values match cmdop.agent.v1.AgentEventType and the live SSE schema.
|
|
667
|
-
*
|
|
668
|
-
* @generated from enum cmdop.core.v2.AgentEventType
|
|
669
|
-
*/
|
|
670
|
-
declare enum AgentEventType {
|
|
671
|
-
/**
|
|
672
|
-
* @generated from enum value: AGENT_EVENT_TYPE_UNSPECIFIED = 0;
|
|
673
|
-
*/
|
|
674
|
-
UNSPECIFIED = 0,
|
|
675
|
-
/**
|
|
676
|
-
* @generated from enum value: AGENT_EVENT_TYPE_TOKEN = 1;
|
|
677
|
-
*/
|
|
678
|
-
TOKEN = 1,
|
|
679
|
-
/**
|
|
680
|
-
* @generated from enum value: AGENT_EVENT_TYPE_TOOL_START = 2;
|
|
681
|
-
*/
|
|
682
|
-
TOOL_START = 2,
|
|
683
|
-
/**
|
|
684
|
-
* @generated from enum value: AGENT_EVENT_TYPE_TOOL_END = 3;
|
|
685
|
-
*/
|
|
686
|
-
TOOL_END = 3,
|
|
687
|
-
/**
|
|
688
|
-
* @generated from enum value: AGENT_EVENT_TYPE_THINKING = 4;
|
|
689
|
-
*/
|
|
690
|
-
THINKING = 4,
|
|
691
|
-
/**
|
|
692
|
-
* @generated from enum value: AGENT_EVENT_TYPE_ERROR = 5;
|
|
693
|
-
*/
|
|
694
|
-
ERROR = 5,
|
|
695
|
-
/**
|
|
696
|
-
* @generated from enum value: AGENT_EVENT_TYPE_CANCELLED = 7;
|
|
697
|
-
*/
|
|
698
|
-
CANCELLED = 7,
|
|
699
|
-
/**
|
|
700
|
-
* @generated from enum value: AGENT_EVENT_TYPE_MEDIA = 8;
|
|
701
|
-
*/
|
|
702
|
-
MEDIA = 8,
|
|
703
|
-
/**
|
|
704
|
-
* @generated from enum value: AGENT_EVENT_TYPE_PLAN_UPDATE = 9;
|
|
705
|
-
*/
|
|
706
|
-
PLAN_UPDATE = 9,
|
|
707
|
-
/**
|
|
708
|
-
* @generated from enum value: AGENT_EVENT_TYPE_VERIFY = 10;
|
|
709
|
-
*/
|
|
710
|
-
VERIFY = 10,
|
|
711
|
-
/**
|
|
712
|
-
* @generated from enum value: AGENT_EVENT_TYPE_SUB_AGENT = 11;
|
|
713
|
-
*/
|
|
714
|
-
SUB_AGENT = 11,
|
|
715
|
-
/**
|
|
716
|
-
* @generated from enum value: AGENT_EVENT_TYPE_DIFF = 12;
|
|
717
|
-
*/
|
|
718
|
-
DIFF = 12,
|
|
719
|
-
/**
|
|
720
|
-
* @generated from enum value: AGENT_EVENT_TYPE_NOTICE = 13;
|
|
721
|
-
*/
|
|
722
|
-
NOTICE = 13,
|
|
723
|
-
/**
|
|
724
|
-
* @generated from enum value: AGENT_EVENT_TYPE_ASK_USER = 14;
|
|
725
|
-
*/
|
|
726
|
-
ASK_USER = 14
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Exact structured codes emitted by the current Go SSE contract.
|
|
730
|
-
*
|
|
731
|
-
* @generated from enum cmdop.core.v2.AskStreamErrorCode
|
|
732
|
-
*/
|
|
733
|
-
declare enum AskStreamErrorCode {
|
|
734
|
-
/**
|
|
735
|
-
* @generated from enum value: ASK_STREAM_ERROR_CODE_UNSPECIFIED = 0;
|
|
736
|
-
*/
|
|
737
|
-
UNSPECIFIED = 0,
|
|
738
|
-
/**
|
|
739
|
-
* @generated from enum value: ASK_STREAM_ERROR_CODE_MACHINE_OFFLINE = 1;
|
|
740
|
-
*/
|
|
741
|
-
MACHINE_OFFLINE = 1,
|
|
742
|
-
/**
|
|
743
|
-
* @generated from enum value: ASK_STREAM_ERROR_CODE_NO_TARGETS = 2;
|
|
744
|
-
*/
|
|
745
|
-
NO_TARGETS = 2,
|
|
746
|
-
/**
|
|
747
|
-
* @generated from enum value: ASK_STREAM_ERROR_CODE_INTERNAL = 3;
|
|
748
|
-
*/
|
|
749
|
-
INTERNAL = 3,
|
|
750
|
-
/**
|
|
751
|
-
* @generated from enum value: ASK_STREAM_ERROR_CODE_PIN_DENIED = 4;
|
|
752
|
-
*/
|
|
753
|
-
PIN_DENIED = 4
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* @generated from enum cmdop.core.v2.ErrorCode
|
|
757
|
-
*/
|
|
758
|
-
declare enum ErrorCode {
|
|
759
|
-
/**
|
|
760
|
-
* @generated from enum value: ERROR_CODE_UNSPECIFIED = 0;
|
|
761
|
-
*/
|
|
762
|
-
UNSPECIFIED = 0,
|
|
763
|
-
/**
|
|
764
|
-
* @generated from enum value: ERROR_CODE_INVALID_ARGUMENT = 1;
|
|
765
|
-
*/
|
|
766
|
-
INVALID_ARGUMENT = 1,
|
|
767
|
-
/**
|
|
768
|
-
* @generated from enum value: ERROR_CODE_UNAUTHENTICATED = 2;
|
|
769
|
-
*/
|
|
770
|
-
UNAUTHENTICATED = 2,
|
|
771
|
-
/**
|
|
772
|
-
* @generated from enum value: ERROR_CODE_PERMISSION_DENIED = 3;
|
|
773
|
-
*/
|
|
774
|
-
PERMISSION_DENIED = 3,
|
|
775
|
-
/**
|
|
776
|
-
* @generated from enum value: ERROR_CODE_NOT_FOUND = 4;
|
|
777
|
-
*/
|
|
778
|
-
NOT_FOUND = 4,
|
|
779
|
-
/**
|
|
780
|
-
* @generated from enum value: ERROR_CODE_CONFLICT = 5;
|
|
781
|
-
*/
|
|
782
|
-
CONFLICT = 5,
|
|
783
|
-
/**
|
|
784
|
-
* @generated from enum value: ERROR_CODE_RATE_LIMITED = 6;
|
|
785
|
-
*/
|
|
786
|
-
RATE_LIMITED = 6,
|
|
787
|
-
/**
|
|
788
|
-
* @generated from enum value: ERROR_CODE_INTERNAL = 7;
|
|
789
|
-
*/
|
|
790
|
-
INTERNAL = 7,
|
|
791
|
-
/**
|
|
792
|
-
* @generated from enum value: ERROR_CODE_UNAVAILABLE = 8;
|
|
793
|
-
*/
|
|
794
|
-
UNAVAILABLE = 8,
|
|
795
|
-
/**
|
|
796
|
-
* @generated from enum value: ERROR_CODE_DEADLINE_EXCEEDED = 9;
|
|
797
|
-
*/
|
|
798
|
-
DEADLINE_EXCEEDED = 9,
|
|
799
|
-
/**
|
|
800
|
-
* @generated from enum value: ERROR_CODE_TRANSPORT = 10;
|
|
801
|
-
*/
|
|
802
|
-
TRANSPORT = 10,
|
|
803
|
-
/**
|
|
804
|
-
* @generated from enum value: ERROR_CODE_UNSUPPORTED = 11;
|
|
805
|
-
*/
|
|
806
|
-
UNSUPPORTED = 11,
|
|
807
|
-
/**
|
|
808
|
-
* @generated from enum value: ERROR_CODE_PROTOCOL = 12;
|
|
809
|
-
*/
|
|
810
|
-
PROTOCOL = 12
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
type AskFrame = {
|
|
814
|
-
type: "event";
|
|
815
|
-
eventType: number;
|
|
816
|
-
payload: unknown;
|
|
817
|
-
machineId?: string;
|
|
818
|
-
} | {
|
|
819
|
-
type: "error";
|
|
820
|
-
code: string;
|
|
821
|
-
message: string;
|
|
822
|
-
} | {
|
|
823
|
-
type: "done";
|
|
824
|
-
success: boolean;
|
|
825
|
-
text: string;
|
|
826
|
-
error?: string;
|
|
827
|
-
upstreamStatus?: number;
|
|
828
|
-
provider?: string;
|
|
829
|
-
detail?: string;
|
|
830
|
-
inputTokens?: bigint;
|
|
831
|
-
outputTokens?: bigint;
|
|
832
|
-
totalTokens?: bigint;
|
|
833
|
-
cacheReadTokens?: bigint;
|
|
834
|
-
cacheWriteTokens?: bigint;
|
|
835
|
-
costUsd?: number;
|
|
836
|
-
costSource?: string;
|
|
837
|
-
engine?: string;
|
|
838
|
-
model?: string;
|
|
839
|
-
};
|
|
840
|
-
interface StreamSource {
|
|
841
|
-
envelopes(): AsyncGenerator<Envelope>;
|
|
842
|
-
}
|
|
843
|
-
declare class AskStream implements AsyncIterable<AskFrame> {
|
|
844
|
-
#private;
|
|
845
|
-
private readonly source;
|
|
846
|
-
private readonly timeoutMs;
|
|
847
|
-
constructor(source: StreamSource, timeoutMs: number);
|
|
848
|
-
[Symbol.asyncIterator](): AsyncIterator<AskFrame>;
|
|
849
|
-
collect(): Promise<string>;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
declare class Transport {
|
|
853
|
-
#private;
|
|
854
|
-
private readonly config;
|
|
855
|
-
private readonly binaryPath;
|
|
856
|
-
constructor(config: ClientConfig, binaryPath: string);
|
|
857
|
-
/** @internal test seam */
|
|
858
|
-
attachStreamsForTest(stdin: Writable, stdout: Readable): void;
|
|
859
|
-
callUnary(request: Envelope): Promise<Envelope>;
|
|
860
|
-
callStream(request: Envelope): AskStream;
|
|
861
|
-
close(): Promise<void>;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
type Payload = MessageInitShape<typeof EnvelopeSchema>["payload"];
|
|
865
|
-
declare abstract class BaseResource {
|
|
866
|
-
protected readonly client: Client;
|
|
867
|
-
protected readonly t: Transport;
|
|
868
|
-
constructor(client: Client);
|
|
869
|
-
protected unary(request: Envelope): Promise<Envelope>;
|
|
870
|
-
protected request(payload: Payload): Envelope;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
interface AskOptions {
|
|
874
|
-
pin?: string;
|
|
875
|
-
session?: string;
|
|
876
|
-
attachmentIds?: readonly string[];
|
|
877
|
-
engine?: string;
|
|
878
|
-
workingDir?: string;
|
|
879
|
-
projectRootId?: string;
|
|
880
|
-
model?: string;
|
|
881
|
-
}
|
|
882
|
-
interface MessageOptions {
|
|
883
|
-
session?: string;
|
|
884
|
-
limit?: number;
|
|
885
|
-
}
|
|
886
|
-
declare class MachinesResource extends BaseResource {
|
|
887
|
-
list(): Promise<MachineRosterSnapshot>;
|
|
888
|
-
ask(machineId: string, prompt?: string, options?: AskOptions): AskStream;
|
|
889
|
-
messages(machineId: string, options?: MessageOptions): Promise<MachineMessageList>;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
declare class SystemResource extends BaseResource {
|
|
893
|
-
bootstrap(): Promise<SystemBootstrapResponse>;
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
interface ClientOptions extends Partial<ClientConfig> {
|
|
897
|
-
binaryPath?: string;
|
|
898
|
-
}
|
|
899
|
-
declare class Client {
|
|
900
|
-
#private;
|
|
901
|
-
readonly config: ClientConfig;
|
|
902
|
-
/** @internal */
|
|
903
|
-
readonly _t: Transport;
|
|
904
|
-
constructor(opts?: ClientOptions | string);
|
|
905
|
-
static fromEnv(): Client;
|
|
906
|
-
get baseUrl(): string | undefined;
|
|
907
|
-
get system(): SystemResource;
|
|
908
|
-
get machines(): MachinesResource;
|
|
909
|
-
close(): Promise<void>;
|
|
910
|
-
[Symbol.asyncDispose](): Promise<void>;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
declare class CmdopError extends Error {
|
|
914
|
-
readonly code: string;
|
|
915
|
-
readonly status?: number | undefined;
|
|
916
|
-
readonly details?: unknown | undefined;
|
|
917
|
-
readonly retryable: boolean;
|
|
918
|
-
constructor(message: string, code?: string, status?: number | undefined, retryable?: boolean, details?: unknown | undefined);
|
|
919
|
-
}
|
|
920
|
-
declare class AuthError extends CmdopError {
|
|
921
|
-
}
|
|
922
|
-
declare class PermissionError extends CmdopError {
|
|
923
|
-
}
|
|
924
|
-
declare class NotFoundError extends CmdopError {
|
|
925
|
-
}
|
|
926
|
-
declare class ConflictError extends CmdopError {
|
|
927
|
-
}
|
|
928
|
-
declare class ValidationError extends CmdopError {
|
|
929
|
-
}
|
|
930
|
-
declare class RateLimitError extends CmdopError {
|
|
931
|
-
}
|
|
932
|
-
declare class ServerError extends CmdopError {
|
|
933
|
-
}
|
|
934
|
-
declare class ConnectionError extends CmdopError {
|
|
935
|
-
}
|
|
936
|
-
declare class TimeoutError extends ConnectionError {
|
|
937
|
-
}
|
|
938
|
-
declare class UnavailableError extends CmdopError {
|
|
939
|
-
}
|
|
940
|
-
declare class UnsupportedError extends CmdopError {
|
|
941
|
-
}
|
|
942
|
-
declare class ProtocolError extends CmdopError {
|
|
943
|
-
}
|
|
944
|
-
declare class AgentStreamError extends CmdopError {
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
type types_BootstrapUpdate = BootstrapUpdate;
|
|
948
|
-
type types_ChatAttachment = ChatAttachment;
|
|
949
|
-
type types_ChatMessage = ChatMessage;
|
|
950
|
-
type types_MachineListItem = MachineListItem;
|
|
951
|
-
type types_MachineMessageList = MachineMessageList;
|
|
952
|
-
type types_MachineRosterSnapshot = MachineRosterSnapshot;
|
|
953
|
-
type types_SystemBootstrapResponse = SystemBootstrapResponse;
|
|
954
|
-
type types_WebContractRange = WebContractRange;
|
|
955
|
-
declare namespace types {
|
|
956
|
-
export type { types_BootstrapUpdate as BootstrapUpdate, types_ChatAttachment as ChatAttachment, types_ChatMessage as ChatMessage, types_MachineListItem as MachineListItem, types_MachineMessageList as MachineMessageList, types_MachineRosterSnapshot as MachineRosterSnapshot, types_SystemBootstrapResponse as SystemBootstrapResponse, types_WebContractRange as WebContractRange };
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
export { AgentStreamError, type AskFrame, type AskOptions, AskStream, AuthError, Client, type ClientConfig, type ClientOptions, CmdopError, ConflictError, ConnectionError, DEFAULT_TIMEOUT_MS, type MessageOptions, NotFoundError, PermissionError, ProtocolError, RateLimitError, ServerError, TimeoutError, UnavailableError, UnsupportedError, ValidationError, resolveConfig, types };
|