@get-bb/plugin-sdk 0.4.47 → 0.4.50
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/README.md +12 -0
- package/bundled-types/bb-plugin-sdk-app.d.ts +203 -28
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +266 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +33 -2
- package/bundled-types/bb-plugin-sdk-internal-composer-customization-validation.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +231 -8
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +2 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +7 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +195 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +202 -167
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +5 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +308 -3
- package/bundled-types/bb-plugin-sdk.d.ts +1639 -572
- package/dist/app.js +6 -0
- package/dist/environment-provider.js +0 -0
- package/dist/host.js +734 -30
- package/dist/internal/composer-customization-validation.js +9 -0
- package/dist/internal/host-policy.js +233 -64
- package/dist/internal/plugin-app-collector.js +26 -0
- package/dist/provider-bridge-acp.js +46 -2
- package/dist/provider-bridge-testing.js +62 -1
- package/dist/provider-bridge.js +23 -1
- package/dist/testing/app.js +86 -1
- package/dist/testing/index.js +254 -72
- package/package.json +7 -1
|
@@ -9,6 +9,7 @@ import * as react from 'react';
|
|
|
9
9
|
import { ComponentType, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
10
10
|
import * as z from 'zod';
|
|
11
11
|
import { z as z$1 } from 'zod';
|
|
12
|
+
import { StandardSchemaV1 as StandardSchemaV1$1, PluginEnvironmentProviderRequirements as PluginEnvironmentProviderRequirements$1, StandardSchemaV1InferOutput as StandardSchemaV1InferOutput$1, PluginEnvironmentValidateDecision as PluginEnvironmentValidateDecision$1, JsonValue as JsonValue$2 } from '@get-bb/plugin-sdk';
|
|
12
13
|
import Database from 'better-sqlite3';
|
|
13
14
|
import { Context } from 'hono';
|
|
14
15
|
|
|
@@ -46,12 +47,31 @@ declare const appSettingsSchema: z$1.ZodObject<{
|
|
|
46
47
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
47
48
|
managedBranchPrefix: z$1.ZodString;
|
|
48
49
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
50
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
49
51
|
showKeyboardHints: z$1.ZodBoolean;
|
|
50
|
-
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
51
52
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
52
53
|
streamerMode: z$1.ZodBoolean;
|
|
53
54
|
}, z$1.core.$strict>;
|
|
54
55
|
type AppSettings = z$1.infer<typeof appSettingsSchema>;
|
|
56
|
+
declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
57
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
58
|
+
managedBranchPrefix: z$1.ZodString;
|
|
59
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
60
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
61
|
+
showKeyboardHints: z$1.ZodBoolean;
|
|
62
|
+
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
63
|
+
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
64
|
+
streamerMode: z$1.ZodBoolean;
|
|
65
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
66
|
+
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
67
|
+
managedBranchPrefix: z$1.ZodString;
|
|
68
|
+
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
69
|
+
showKeyboardHints: z$1.ZodBoolean;
|
|
70
|
+
showUnhandledProviderEvents: z$1.ZodBoolean;
|
|
71
|
+
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
72
|
+
streamerMode: z$1.ZodBoolean;
|
|
73
|
+
}, z$1.core.$strict>]>;
|
|
74
|
+
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
55
75
|
|
|
56
76
|
declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
57
77
|
command: z$1.ZodEnum<{
|
|
@@ -277,15 +297,61 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
277
297
|
}, z$1.core.$strict>], "entity">;
|
|
278
298
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
279
299
|
|
|
300
|
+
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
301
|
+
destroyed: "destroyed";
|
|
302
|
+
error: "error";
|
|
303
|
+
provisioning: "provisioning";
|
|
304
|
+
ready: "ready";
|
|
305
|
+
}>;
|
|
306
|
+
type EnvironmentStatus = z$1.infer<typeof environmentStatusSchema>;
|
|
307
|
+
declare const workspaceProvisionTypeSchema: z$1.ZodEnum<{
|
|
308
|
+
"managed-worktree": "managed-worktree";
|
|
309
|
+
personal: "personal";
|
|
310
|
+
unmanaged: "unmanaged";
|
|
311
|
+
}>;
|
|
312
|
+
type WorkspaceProvisionType = z$1.infer<typeof workspaceProvisionTypeSchema>;
|
|
313
|
+
declare const environmentWorkspaceDisplayKindSchema: z$1.ZodEnum<{
|
|
314
|
+
"managed-worktree": "managed-worktree";
|
|
315
|
+
"unmanaged-worktree": "unmanaged-worktree";
|
|
316
|
+
other: "other";
|
|
317
|
+
}>;
|
|
318
|
+
type EnvironmentWorkspaceDisplayKind = z$1.infer<typeof environmentWorkspaceDisplayKindSchema>;
|
|
280
319
|
declare const environmentSchema: z$1.ZodObject<{
|
|
281
320
|
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
282
321
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
283
322
|
createdAt: z$1.ZodNumber;
|
|
284
323
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
324
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
325
|
+
environmentProviderInstanceKey: z$1.ZodNullable<z$1.ZodString>;
|
|
326
|
+
environmentProviderSelection: z$1.ZodNullable<z$1.ZodObject<{
|
|
327
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
328
|
+
machine: z$1.ZodObject<{
|
|
329
|
+
hostId: z$1.ZodString;
|
|
330
|
+
type: z$1.ZodLiteral<"existing">;
|
|
331
|
+
}, z$1.core.$strip>;
|
|
332
|
+
}, z$1.core.$strip>>;
|
|
285
333
|
hostId: z$1.ZodString;
|
|
286
334
|
id: z$1.ZodString;
|
|
287
335
|
isGitRepo: z$1.ZodBoolean;
|
|
288
336
|
isWorktree: z$1.ZodBoolean;
|
|
337
|
+
lifecycle: z$1.ZodObject<{
|
|
338
|
+
phase: z$1.ZodEnum<{
|
|
339
|
+
active: "active";
|
|
340
|
+
destroyed: "destroyed";
|
|
341
|
+
retiring: "retiring";
|
|
342
|
+
teardown: "teardown";
|
|
343
|
+
}>;
|
|
344
|
+
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
345
|
+
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
346
|
+
attempt: z$1.ZodNumber;
|
|
347
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
348
|
+
status: z$1.ZodEnum<{
|
|
349
|
+
failed: "failed";
|
|
350
|
+
removed: "removed";
|
|
351
|
+
running: "running";
|
|
352
|
+
}>;
|
|
353
|
+
}, z$1.core.$strip>>;
|
|
354
|
+
}, z$1.core.$strip>;
|
|
289
355
|
managed: z$1.ZodBoolean;
|
|
290
356
|
mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
291
357
|
name: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -293,18 +359,16 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
293
359
|
projectId: z$1.ZodString;
|
|
294
360
|
status: z$1.ZodEnum<{
|
|
295
361
|
destroyed: "destroyed";
|
|
296
|
-
destroying: "destroying";
|
|
297
362
|
error: "error";
|
|
298
363
|
provisioning: "provisioning";
|
|
299
364
|
ready: "ready";
|
|
300
|
-
retiring: "retiring";
|
|
301
365
|
}>;
|
|
302
366
|
updatedAt: z$1.ZodNumber;
|
|
303
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
367
|
+
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
304
368
|
"managed-worktree": "managed-worktree";
|
|
305
369
|
personal: "personal";
|
|
306
370
|
unmanaged: "unmanaged";
|
|
307
|
-
}
|
|
371
|
+
}>>;
|
|
308
372
|
}, z$1.core.$strip>;
|
|
309
373
|
type Environment = z$1.infer<typeof environmentSchema>;
|
|
310
374
|
|
|
@@ -317,6 +381,27 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
317
381
|
}>, z$1.ZodBoolean>;
|
|
318
382
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
319
383
|
|
|
384
|
+
declare const workspaceGitOperationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
385
|
+
kind: z$1.ZodLiteral<"none">;
|
|
386
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
387
|
+
hasConflicts: z$1.ZodBoolean;
|
|
388
|
+
kind: z$1.ZodLiteral<"merge">;
|
|
389
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
390
|
+
hasConflicts: z$1.ZodBoolean;
|
|
391
|
+
kind: z$1.ZodLiteral<"rebase">;
|
|
392
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
393
|
+
hasConflicts: z$1.ZodBoolean;
|
|
394
|
+
kind: z$1.ZodLiteral<"cherry-pick">;
|
|
395
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
396
|
+
hasConflicts: z$1.ZodBoolean;
|
|
397
|
+
kind: z$1.ZodLiteral<"revert">;
|
|
398
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
399
|
+
hasConflicts: z$1.ZodBoolean;
|
|
400
|
+
kind: z$1.ZodLiteral<"unknown">;
|
|
401
|
+
reason: z$1.ZodString;
|
|
402
|
+
}, z$1.core.$strip>], "kind">;
|
|
403
|
+
type WorkspaceGitOperation = z$1.infer<typeof workspaceGitOperationSchema>;
|
|
404
|
+
|
|
320
405
|
declare const hostSchema: z$1.ZodObject<{
|
|
321
406
|
createdAt: z$1.ZodNumber;
|
|
322
407
|
id: z$1.ZodString;
|
|
@@ -366,303 +451,6 @@ declare const threadEventItemPresentationSchema: z$1.ZodObject<{
|
|
|
366
451
|
}, z$1.core.$strip>;
|
|
367
452
|
type ThreadEventItemPresentation = z$1.infer<typeof threadEventItemPresentationSchema>;
|
|
368
453
|
|
|
369
|
-
declare const pendingInteractionResolutionSchema: z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
370
|
-
decision: z$1.ZodLiteral<"allow_once">;
|
|
371
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
372
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
373
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
374
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
375
|
-
}, z$1.core.$strip>>;
|
|
376
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
377
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
378
|
-
}, z$1.core.$strip>>;
|
|
379
|
-
}, z$1.core.$strict>>;
|
|
380
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
381
|
-
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
382
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
383
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
384
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
385
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
386
|
-
}, z$1.core.$strip>>;
|
|
387
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
388
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
389
|
-
}, z$1.core.$strip>>;
|
|
390
|
-
}, z$1.core.$strict>>;
|
|
391
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
392
|
-
decision: z$1.ZodLiteral<"deny">;
|
|
393
|
-
}, z$1.core.$strip>], "decision">, z$1.ZodObject<{
|
|
394
|
-
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
395
|
-
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
396
|
-
selected: z$1.ZodArray<z$1.ZodString>;
|
|
397
|
-
}, z$1.core.$strip>>;
|
|
398
|
-
kind: z$1.ZodLiteral<"user_answer">;
|
|
399
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
400
|
-
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
401
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
402
|
-
kind: z$1.ZodLiteral<"request_answer">;
|
|
403
|
-
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
404
|
-
}, z$1.core.$strip>]>;
|
|
405
|
-
type PendingInteractionResolution = z$1.infer<typeof pendingInteractionResolutionSchema>;
|
|
406
|
-
declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
407
|
-
createdAt: z$1.ZodNumber;
|
|
408
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
409
|
-
id: z$1.ZodString;
|
|
410
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
411
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
412
|
-
providerId: z$1.ZodString;
|
|
413
|
-
providerRequestId: z$1.ZodString;
|
|
414
|
-
providerThreadId: z$1.ZodString;
|
|
415
|
-
}, z$1.core.$strip>>;
|
|
416
|
-
payload: z$1.ZodObject<{
|
|
417
|
-
availableDecisions: z$1.ZodArray<z$1.ZodEnum<{
|
|
418
|
-
allow_for_session: "allow_for_session";
|
|
419
|
-
allow_once: "allow_once";
|
|
420
|
-
deny: "deny";
|
|
421
|
-
}>>;
|
|
422
|
-
kind: z$1.ZodLiteral<"approval">;
|
|
423
|
-
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
424
|
-
subject: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
425
|
-
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
426
|
-
command: z$1.ZodString;
|
|
427
|
-
name: z$1.ZodString;
|
|
428
|
-
path: z$1.ZodString;
|
|
429
|
-
type: z$1.ZodLiteral<"read">;
|
|
430
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
431
|
-
command: z$1.ZodString;
|
|
432
|
-
path: z$1.ZodNullable<z$1.ZodString>;
|
|
433
|
-
type: z$1.ZodLiteral<"listFiles">;
|
|
434
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
435
|
-
command: z$1.ZodString;
|
|
436
|
-
path: z$1.ZodNullable<z$1.ZodString>;
|
|
437
|
-
query: z$1.ZodNullable<z$1.ZodString>;
|
|
438
|
-
type: z$1.ZodLiteral<"search">;
|
|
439
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
440
|
-
command: z$1.ZodString;
|
|
441
|
-
type: z$1.ZodLiteral<"unknown">;
|
|
442
|
-
}, z$1.core.$strip>], "type">>;
|
|
443
|
-
command: z$1.ZodString;
|
|
444
|
-
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
445
|
-
itemId: z$1.ZodString;
|
|
446
|
-
kind: z$1.ZodLiteral<"command">;
|
|
447
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
448
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
449
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
450
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
451
|
-
}, z$1.core.$strip>>;
|
|
452
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
453
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
454
|
-
}, z$1.core.$strip>>;
|
|
455
|
-
}, z$1.core.$strict>>;
|
|
456
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
457
|
-
itemId: z$1.ZodString;
|
|
458
|
-
kind: z$1.ZodLiteral<"file_change">;
|
|
459
|
-
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
460
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
461
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
462
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
463
|
-
}, z$1.core.$strip>>;
|
|
464
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
465
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
466
|
-
}, z$1.core.$strip>>;
|
|
467
|
-
}, z$1.core.$strict>>;
|
|
468
|
-
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
469
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
470
|
-
itemId: z$1.ZodString;
|
|
471
|
-
kind: z$1.ZodLiteral<"permission_grant">;
|
|
472
|
-
permissions: z$1.ZodObject<{
|
|
473
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
474
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
475
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
476
|
-
}, z$1.core.$strip>>;
|
|
477
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
478
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
479
|
-
}, z$1.core.$strip>>;
|
|
480
|
-
}, z$1.core.$strict>;
|
|
481
|
-
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
482
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
483
|
-
itemId: z$1.ZodString;
|
|
484
|
-
kind: z$1.ZodLiteral<"plan">;
|
|
485
|
-
plan: z$1.ZodString;
|
|
486
|
-
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
487
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
488
|
-
itemId: z$1.ZodString;
|
|
489
|
-
kind: z$1.ZodLiteral<"tool_use">;
|
|
490
|
-
presentation: z$1.ZodObject<{
|
|
491
|
-
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
492
|
-
glyph: z$1.ZodString;
|
|
493
|
-
hint: z$1.ZodString;
|
|
494
|
-
label: z$1.ZodString;
|
|
495
|
-
tone: z$1.ZodEnum<{
|
|
496
|
-
destructive: "destructive";
|
|
497
|
-
neutral: "neutral";
|
|
498
|
-
}>;
|
|
499
|
-
}, z$1.core.$strip>>;
|
|
500
|
-
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
501
|
-
icon: z$1.ZodObject<{
|
|
502
|
-
glyph: z$1.ZodString;
|
|
503
|
-
}, z$1.core.$strip>;
|
|
504
|
-
label: z$1.ZodObject<{
|
|
505
|
-
completed: z$1.ZodString;
|
|
506
|
-
pending: z$1.ZodString;
|
|
507
|
-
}, z$1.core.$strip>;
|
|
508
|
-
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
509
|
-
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
510
|
-
dark: z$1.ZodString;
|
|
511
|
-
light: z$1.ZodString;
|
|
512
|
-
}, z$1.core.$strip>>;
|
|
513
|
-
title: z$1.ZodOptional<z$1.ZodString>;
|
|
514
|
-
}, z$1.core.$strip>;
|
|
515
|
-
tool: z$1.ZodString;
|
|
516
|
-
}, z$1.core.$strip>], "kind">;
|
|
517
|
-
}, z$1.core.$strip>;
|
|
518
|
-
providerId: z$1.ZodString;
|
|
519
|
-
providerRequestId: z$1.ZodString;
|
|
520
|
-
providerThreadId: z$1.ZodString;
|
|
521
|
-
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
522
|
-
decision: z$1.ZodLiteral<"allow_once">;
|
|
523
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
524
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
525
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
526
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
527
|
-
}, z$1.core.$strip>>;
|
|
528
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
529
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
530
|
-
}, z$1.core.$strip>>;
|
|
531
|
-
}, z$1.core.$strict>>;
|
|
532
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
533
|
-
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
534
|
-
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
535
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
536
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
537
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
538
|
-
}, z$1.core.$strip>>;
|
|
539
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
540
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
541
|
-
}, z$1.core.$strip>>;
|
|
542
|
-
}, z$1.core.$strict>>;
|
|
543
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
544
|
-
decision: z$1.ZodLiteral<"deny">;
|
|
545
|
-
}, z$1.core.$strip>], "decision">>;
|
|
546
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
547
|
-
status: z$1.ZodEnum<{
|
|
548
|
-
interrupted: "interrupted";
|
|
549
|
-
pending: "pending";
|
|
550
|
-
resolved: "resolved";
|
|
551
|
-
resolving: "resolving";
|
|
552
|
-
}>;
|
|
553
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
554
|
-
threadId: z$1.ZodString;
|
|
555
|
-
turnId: z$1.ZodString;
|
|
556
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
557
|
-
createdAt: z$1.ZodNumber;
|
|
558
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
559
|
-
id: z$1.ZodString;
|
|
560
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
561
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
562
|
-
providerId: z$1.ZodString;
|
|
563
|
-
providerRequestId: z$1.ZodString;
|
|
564
|
-
providerThreadId: z$1.ZodString;
|
|
565
|
-
}, z$1.core.$strip>>;
|
|
566
|
-
payload: z$1.ZodObject<{
|
|
567
|
-
kind: z$1.ZodLiteral<"user_question">;
|
|
568
|
-
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
569
|
-
allowFreeText: z$1.ZodBoolean;
|
|
570
|
-
id: z$1.ZodString;
|
|
571
|
-
multiSelect: z$1.ZodBoolean;
|
|
572
|
-
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
573
|
-
description: z$1.ZodOptional<z$1.ZodString>;
|
|
574
|
-
label: z$1.ZodString;
|
|
575
|
-
value: z$1.ZodString;
|
|
576
|
-
}, z$1.core.$strip>>>;
|
|
577
|
-
prompt: z$1.ZodString;
|
|
578
|
-
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
579
|
-
}, z$1.core.$strip>>;
|
|
580
|
-
}, z$1.core.$strip>;
|
|
581
|
-
providerId: z$1.ZodString;
|
|
582
|
-
providerRequestId: z$1.ZodString;
|
|
583
|
-
providerThreadId: z$1.ZodString;
|
|
584
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
585
|
-
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
586
|
-
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
587
|
-
selected: z$1.ZodArray<z$1.ZodString>;
|
|
588
|
-
}, z$1.core.$strip>>;
|
|
589
|
-
kind: z$1.ZodLiteral<"user_answer">;
|
|
590
|
-
}, z$1.core.$strip>>;
|
|
591
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
592
|
-
status: z$1.ZodEnum<{
|
|
593
|
-
interrupted: "interrupted";
|
|
594
|
-
pending: "pending";
|
|
595
|
-
resolved: "resolved";
|
|
596
|
-
resolving: "resolving";
|
|
597
|
-
}>;
|
|
598
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
599
|
-
threadId: z$1.ZodString;
|
|
600
|
-
turnId: z$1.ZodString;
|
|
601
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
602
|
-
createdAt: z$1.ZodNumber;
|
|
603
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
604
|
-
id: z$1.ZodString;
|
|
605
|
-
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
606
|
-
kind: z$1.ZodLiteral<"provider">;
|
|
607
|
-
providerId: z$1.ZodString;
|
|
608
|
-
providerRequestId: z$1.ZodString;
|
|
609
|
-
providerThreadId: z$1.ZodString;
|
|
610
|
-
}, z$1.core.$strip>>;
|
|
611
|
-
payload: z$1.ZodObject<{
|
|
612
|
-
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
613
|
-
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
614
|
-
title: z$1.ZodString;
|
|
615
|
-
}, z$1.core.$strip>;
|
|
616
|
-
providerId: z$1.ZodString;
|
|
617
|
-
providerRequestId: z$1.ZodString;
|
|
618
|
-
providerThreadId: z$1.ZodString;
|
|
619
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
620
|
-
kind: z$1.ZodLiteral<"request_answer">;
|
|
621
|
-
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
622
|
-
}, z$1.core.$strip>>;
|
|
623
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
624
|
-
status: z$1.ZodEnum<{
|
|
625
|
-
interrupted: "interrupted";
|
|
626
|
-
pending: "pending";
|
|
627
|
-
resolved: "resolved";
|
|
628
|
-
resolving: "resolving";
|
|
629
|
-
}>;
|
|
630
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
631
|
-
threadId: z$1.ZodString;
|
|
632
|
-
turnId: z$1.ZodString;
|
|
633
|
-
}, z$1.core.$strip>]>;
|
|
634
|
-
type ProviderPendingInteraction = z$1.infer<typeof providerPendingInteractionSchema>;
|
|
635
|
-
declare const pluginPendingInteractionSchema: z$1.ZodObject<{
|
|
636
|
-
createdAt: z$1.ZodNumber;
|
|
637
|
-
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
638
|
-
id: z$1.ZodString;
|
|
639
|
-
origin: z$1.ZodObject<{
|
|
640
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
641
|
-
pluginId: z$1.ZodString;
|
|
642
|
-
rendererId: z$1.ZodString;
|
|
643
|
-
}, z$1.core.$strip>;
|
|
644
|
-
payload: z$1.ZodObject<{
|
|
645
|
-
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
646
|
-
kind: z$1.ZodLiteral<"plugin">;
|
|
647
|
-
title: z$1.ZodString;
|
|
648
|
-
}, z$1.core.$strip>;
|
|
649
|
-
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
650
|
-
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
651
|
-
}, z$1.core.$strip>>;
|
|
652
|
-
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
653
|
-
status: z$1.ZodEnum<{
|
|
654
|
-
interrupted: "interrupted";
|
|
655
|
-
pending: "pending";
|
|
656
|
-
resolved: "resolved";
|
|
657
|
-
resolving: "resolving";
|
|
658
|
-
}>;
|
|
659
|
-
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
660
|
-
threadId: z$1.ZodString;
|
|
661
|
-
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
662
|
-
}, z$1.core.$strip>;
|
|
663
|
-
type PluginPendingInteraction = z$1.infer<typeof pluginPendingInteractionSchema>;
|
|
664
|
-
type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
665
|
-
|
|
666
454
|
declare const providerErrorInfoSchema: z$1.ZodObject<{
|
|
667
455
|
category: z$1.ZodEnum<{
|
|
668
456
|
"active-turn-not-steerable": "active-turn-not-steerable";
|
|
@@ -1047,6 +835,66 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1047
835
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1048
836
|
}, z$1.core.$strip>>;
|
|
1049
837
|
type: z$1.ZodLiteral<"imageView">;
|
|
838
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
839
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
840
|
+
id: z$1.ZodString;
|
|
841
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
842
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
843
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
844
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
845
|
+
glyph: z$1.ZodString;
|
|
846
|
+
hint: z$1.ZodString;
|
|
847
|
+
label: z$1.ZodString;
|
|
848
|
+
tone: z$1.ZodEnum<{
|
|
849
|
+
destructive: "destructive";
|
|
850
|
+
neutral: "neutral";
|
|
851
|
+
}>;
|
|
852
|
+
}, z$1.core.$strip>>;
|
|
853
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
854
|
+
icon: z$1.ZodObject<{
|
|
855
|
+
glyph: z$1.ZodString;
|
|
856
|
+
}, z$1.core.$strip>;
|
|
857
|
+
label: z$1.ZodObject<{
|
|
858
|
+
completed: z$1.ZodString;
|
|
859
|
+
pending: z$1.ZodString;
|
|
860
|
+
}, z$1.core.$strip>;
|
|
861
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
862
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
863
|
+
dark: z$1.ZodString;
|
|
864
|
+
light: z$1.ZodString;
|
|
865
|
+
}, z$1.core.$strip>>;
|
|
866
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
867
|
+
}, z$1.core.$strip>>;
|
|
868
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
869
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
870
|
+
status: z$1.ZodEnum<{
|
|
871
|
+
completed: "completed";
|
|
872
|
+
failed: "failed";
|
|
873
|
+
interrupted: "interrupted";
|
|
874
|
+
pending: "pending";
|
|
875
|
+
}>;
|
|
876
|
+
transparentBackground: z$1.ZodBoolean;
|
|
877
|
+
truncation: z$1.ZodOptional<z$1.ZodObject<{
|
|
878
|
+
aggregatedOutput: z$1.ZodOptional<z$1.ZodObject<{
|
|
879
|
+
originalLength: z$1.ZodNumber;
|
|
880
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
881
|
+
retainedTailLength: z$1.ZodNumber;
|
|
882
|
+
truncatedAt: z$1.ZodNumber;
|
|
883
|
+
}, z$1.core.$strip>>;
|
|
884
|
+
result: z$1.ZodOptional<z$1.ZodObject<{
|
|
885
|
+
originalLength: z$1.ZodNumber;
|
|
886
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
887
|
+
retainedTailLength: z$1.ZodNumber;
|
|
888
|
+
truncatedAt: z$1.ZodNumber;
|
|
889
|
+
}, z$1.core.$strip>>;
|
|
890
|
+
resultText: z$1.ZodOptional<z$1.ZodObject<{
|
|
891
|
+
originalLength: z$1.ZodNumber;
|
|
892
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
893
|
+
retainedTailLength: z$1.ZodNumber;
|
|
894
|
+
truncatedAt: z$1.ZodNumber;
|
|
895
|
+
}, z$1.core.$strip>>;
|
|
896
|
+
}, z$1.core.$strip>>;
|
|
897
|
+
type: z$1.ZodLiteral<"imageGeneration">;
|
|
1050
898
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1051
899
|
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1052
900
|
id: z$1.ZodString;
|
|
@@ -1692,7 +1540,40 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1692
1540
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1693
1541
|
id: z$1.ZodString;
|
|
1694
1542
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1695
|
-
pattern: z$1.ZodNullable<z$1.ZodString>;
|
|
1543
|
+
pattern: z$1.ZodNullable<z$1.ZodString>;
|
|
1544
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1545
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
1546
|
+
glyph: z$1.ZodString;
|
|
1547
|
+
hint: z$1.ZodString;
|
|
1548
|
+
label: z$1.ZodString;
|
|
1549
|
+
tone: z$1.ZodEnum<{
|
|
1550
|
+
destructive: "destructive";
|
|
1551
|
+
neutral: "neutral";
|
|
1552
|
+
}>;
|
|
1553
|
+
}, z$1.core.$strip>>;
|
|
1554
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
1555
|
+
icon: z$1.ZodObject<{
|
|
1556
|
+
glyph: z$1.ZodString;
|
|
1557
|
+
}, z$1.core.$strip>;
|
|
1558
|
+
label: z$1.ZodObject<{
|
|
1559
|
+
completed: z$1.ZodString;
|
|
1560
|
+
pending: z$1.ZodString;
|
|
1561
|
+
}, z$1.core.$strip>;
|
|
1562
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1563
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
1564
|
+
dark: z$1.ZodString;
|
|
1565
|
+
light: z$1.ZodString;
|
|
1566
|
+
}, z$1.core.$strip>>;
|
|
1567
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1568
|
+
}, z$1.core.$strip>>;
|
|
1569
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
1570
|
+
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
1571
|
+
type: z$1.ZodLiteral<"webFetch">;
|
|
1572
|
+
url: z$1.ZodString;
|
|
1573
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1574
|
+
id: z$1.ZodString;
|
|
1575
|
+
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1576
|
+
path: z$1.ZodString;
|
|
1696
1577
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1697
1578
|
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
1698
1579
|
glyph: z$1.ZodString;
|
|
@@ -1718,14 +1599,12 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1718
1599
|
}, z$1.core.$strip>>;
|
|
1719
1600
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1720
1601
|
}, z$1.core.$strip>>;
|
|
1721
|
-
|
|
1722
|
-
resultText: z$1.ZodNullable<z$1.ZodString>;
|
|
1723
|
-
type: z$1.ZodLiteral<"webFetch">;
|
|
1724
|
-
url: z$1.ZodString;
|
|
1602
|
+
type: z$1.ZodLiteral<"imageView">;
|
|
1725
1603
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1604
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
1726
1605
|
id: z$1.ZodString;
|
|
1727
1606
|
parentToolCallId: z$1.ZodOptional<z$1.ZodString>;
|
|
1728
|
-
path: z$1.ZodString
|
|
1607
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
1729
1608
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1730
1609
|
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
1731
1610
|
glyph: z$1.ZodString;
|
|
@@ -1751,7 +1630,36 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
1751
1630
|
}, z$1.core.$strip>>;
|
|
1752
1631
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
1753
1632
|
}, z$1.core.$strip>>;
|
|
1754
|
-
|
|
1633
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
1634
|
+
result: z$1.ZodOptional<z$1.ZodString>;
|
|
1635
|
+
status: z$1.ZodEnum<{
|
|
1636
|
+
completed: "completed";
|
|
1637
|
+
failed: "failed";
|
|
1638
|
+
interrupted: "interrupted";
|
|
1639
|
+
pending: "pending";
|
|
1640
|
+
}>;
|
|
1641
|
+
transparentBackground: z$1.ZodBoolean;
|
|
1642
|
+
truncation: z$1.ZodOptional<z$1.ZodObject<{
|
|
1643
|
+
aggregatedOutput: z$1.ZodOptional<z$1.ZodObject<{
|
|
1644
|
+
originalLength: z$1.ZodNumber;
|
|
1645
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1646
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1647
|
+
truncatedAt: z$1.ZodNumber;
|
|
1648
|
+
}, z$1.core.$strip>>;
|
|
1649
|
+
result: z$1.ZodOptional<z$1.ZodObject<{
|
|
1650
|
+
originalLength: z$1.ZodNumber;
|
|
1651
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1652
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1653
|
+
truncatedAt: z$1.ZodNumber;
|
|
1654
|
+
}, z$1.core.$strip>>;
|
|
1655
|
+
resultText: z$1.ZodOptional<z$1.ZodObject<{
|
|
1656
|
+
originalLength: z$1.ZodNumber;
|
|
1657
|
+
retainedHeadLength: z$1.ZodNumber;
|
|
1658
|
+
retainedTailLength: z$1.ZodNumber;
|
|
1659
|
+
truncatedAt: z$1.ZodNumber;
|
|
1660
|
+
}, z$1.core.$strip>>;
|
|
1661
|
+
}, z$1.core.$strip>>;
|
|
1662
|
+
type: z$1.ZodLiteral<"imageGeneration">;
|
|
1755
1663
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1756
1664
|
cmd: z$1.ZodOptional<z$1.ZodString>;
|
|
1757
1665
|
id: z$1.ZodString;
|
|
@@ -3268,7 +3176,293 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3268
3176
|
interactionId: z$1.ZodString;
|
|
3269
3177
|
providerId: z$1.ZodString;
|
|
3270
3178
|
providerRequestId: z$1.ZodString;
|
|
3271
|
-
resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3179
|
+
resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3180
|
+
decision: z$1.ZodLiteral<"allow_once">;
|
|
3181
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3182
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3183
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3184
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3185
|
+
}, z$1.core.$strip>>;
|
|
3186
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3187
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3188
|
+
}, z$1.core.$strip>>;
|
|
3189
|
+
}, z$1.core.$strict>>;
|
|
3190
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3191
|
+
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
3192
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3193
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3194
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3195
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3196
|
+
}, z$1.core.$strip>>;
|
|
3197
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3198
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3199
|
+
}, z$1.core.$strip>>;
|
|
3200
|
+
}, z$1.core.$strict>>;
|
|
3201
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3202
|
+
decision: z$1.ZodLiteral<"deny">;
|
|
3203
|
+
}, z$1.core.$strip>], "decision">>>;
|
|
3204
|
+
status: z$1.ZodEnum<{
|
|
3205
|
+
interrupted: "interrupted";
|
|
3206
|
+
pending: "pending";
|
|
3207
|
+
resolved: "resolved";
|
|
3208
|
+
resolving: "resolving";
|
|
3209
|
+
}>;
|
|
3210
|
+
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
3211
|
+
subject: z$1.ZodObject<{
|
|
3212
|
+
itemId: z$1.ZodString;
|
|
3213
|
+
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3214
|
+
permissions: z$1.ZodObject<{
|
|
3215
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3216
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3217
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3218
|
+
}, z$1.core.$strip>>;
|
|
3219
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3220
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3221
|
+
}, z$1.core.$strip>>;
|
|
3222
|
+
}, z$1.core.$strict>;
|
|
3223
|
+
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3224
|
+
}, z$1.core.$strip>;
|
|
3225
|
+
threadId: z$1.ZodString;
|
|
3226
|
+
type: z$1.ZodLiteral<"system/permissionGrant/lifecycle">;
|
|
3227
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3228
|
+
interactionId: z$1.ZodString;
|
|
3229
|
+
payload: z$1.ZodObject<{
|
|
3230
|
+
kind: z$1.ZodLiteral<"user_question">;
|
|
3231
|
+
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
3232
|
+
allowFreeText: z$1.ZodBoolean;
|
|
3233
|
+
id: z$1.ZodString;
|
|
3234
|
+
multiSelect: z$1.ZodBoolean;
|
|
3235
|
+
options: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3236
|
+
description: z$1.ZodOptional<z$1.ZodString>;
|
|
3237
|
+
label: z$1.ZodString;
|
|
3238
|
+
value: z$1.ZodString;
|
|
3239
|
+
}, z$1.core.$strip>>>;
|
|
3240
|
+
prompt: z$1.ZodString;
|
|
3241
|
+
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3242
|
+
}, z$1.core.$strip>>;
|
|
3243
|
+
}, z$1.core.$strip>;
|
|
3244
|
+
providerId: z$1.ZodString;
|
|
3245
|
+
providerRequestId: z$1.ZodString;
|
|
3246
|
+
resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
|
|
3247
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3248
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3249
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3250
|
+
}, z$1.core.$strip>>;
|
|
3251
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3252
|
+
}, z$1.core.$strip>>>;
|
|
3253
|
+
status: z$1.ZodEnum<{
|
|
3254
|
+
interrupted: "interrupted";
|
|
3255
|
+
pending: "pending";
|
|
3256
|
+
resolved: "resolved";
|
|
3257
|
+
resolving: "resolving";
|
|
3258
|
+
}>;
|
|
3259
|
+
statusReason: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
3260
|
+
threadId: z$1.ZodString;
|
|
3261
|
+
type: z$1.ZodLiteral<"system/userQuestion/lifecycle">;
|
|
3262
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3263
|
+
entries: z$1.ZodArray<z$1.ZodObject<{
|
|
3264
|
+
key: z$1.ZodString;
|
|
3265
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
3266
|
+
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3267
|
+
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3268
|
+
completed: "completed";
|
|
3269
|
+
failed: "failed";
|
|
3270
|
+
started: "started";
|
|
3271
|
+
}>>;
|
|
3272
|
+
text: z$1.ZodString;
|
|
3273
|
+
type: z$1.ZodEnum<{
|
|
3274
|
+
output: "output";
|
|
3275
|
+
step: "step";
|
|
3276
|
+
}>;
|
|
3277
|
+
}, z$1.core.$strip>>;
|
|
3278
|
+
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
3279
|
+
provisioningId: z$1.ZodString;
|
|
3280
|
+
status: z$1.ZodEnum<{
|
|
3281
|
+
active: "active";
|
|
3282
|
+
cancelled: "cancelled";
|
|
3283
|
+
completed: "completed";
|
|
3284
|
+
failed: "failed";
|
|
3285
|
+
}>;
|
|
3286
|
+
threadId: z$1.ZodString;
|
|
3287
|
+
type: z$1.ZodLiteral<"system/thread-provisioning">;
|
|
3288
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3289
|
+
activeTurnId: z$1.ZodString;
|
|
3290
|
+
activeTurnStartedAt: z$1.ZodNumber;
|
|
3291
|
+
elapsedMs: z$1.ZodNumber;
|
|
3292
|
+
firedAt: z$1.ZodNumber;
|
|
3293
|
+
lastActivityEventAt: z$1.ZodNumber;
|
|
3294
|
+
lastActivityEventSequence: z$1.ZodNumber;
|
|
3295
|
+
lastActivityEventType: z$1.ZodString;
|
|
3296
|
+
providerId: z$1.ZodString;
|
|
3297
|
+
providerThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
3298
|
+
reason: z$1.ZodLiteral<"provider-turn-idle">;
|
|
3299
|
+
threadId: z$1.ZodString;
|
|
3300
|
+
thresholdMs: z$1.ZodNumber;
|
|
3301
|
+
type: z$1.ZodLiteral<"system/provider-turn-watchdog">;
|
|
3302
|
+
}, z$1.core.$strip>], "type">, z$1.ZodObject<{
|
|
3303
|
+
scope: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3304
|
+
kind: z$1.ZodLiteral<"thread">;
|
|
3305
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3306
|
+
kind: z$1.ZodLiteral<"turn">;
|
|
3307
|
+
turnId: z$1.ZodString;
|
|
3308
|
+
}, z$1.core.$strip>], "kind">;
|
|
3309
|
+
}, z$1.core.$strip>>]>>;
|
|
3310
|
+
type ThreadEvent = z$1.infer<typeof threadEventSchema>;
|
|
3311
|
+
type ThreadEventType = ThreadEvent["type"];
|
|
3312
|
+
|
|
3313
|
+
declare const pendingInteractionResolutionSchema: z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3314
|
+
decision: z$1.ZodLiteral<"allow_once">;
|
|
3315
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3316
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3317
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3318
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3319
|
+
}, z$1.core.$strip>>;
|
|
3320
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3321
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3322
|
+
}, z$1.core.$strip>>;
|
|
3323
|
+
}, z$1.core.$strict>>;
|
|
3324
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3325
|
+
decision: z$1.ZodLiteral<"allow_for_session">;
|
|
3326
|
+
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3327
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3328
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3329
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3330
|
+
}, z$1.core.$strip>>;
|
|
3331
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3332
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3333
|
+
}, z$1.core.$strip>>;
|
|
3334
|
+
}, z$1.core.$strict>>;
|
|
3335
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3336
|
+
decision: z$1.ZodLiteral<"deny">;
|
|
3337
|
+
}, z$1.core.$strip>], "decision">, z$1.ZodObject<{
|
|
3338
|
+
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3339
|
+
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3340
|
+
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3341
|
+
}, z$1.core.$strip>>;
|
|
3342
|
+
kind: z$1.ZodLiteral<"user_answer">;
|
|
3343
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3344
|
+
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3345
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3346
|
+
kind: z$1.ZodLiteral<"request_answer">;
|
|
3347
|
+
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3348
|
+
}, z$1.core.$strip>]>;
|
|
3349
|
+
type PendingInteractionResolution = z$1.infer<typeof pendingInteractionResolutionSchema>;
|
|
3350
|
+
declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
3351
|
+
createdAt: z$1.ZodNumber;
|
|
3352
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3353
|
+
id: z$1.ZodString;
|
|
3354
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3355
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3356
|
+
providerId: z$1.ZodString;
|
|
3357
|
+
providerRequestId: z$1.ZodString;
|
|
3358
|
+
providerThreadId: z$1.ZodString;
|
|
3359
|
+
}, z$1.core.$strip>>;
|
|
3360
|
+
payload: z$1.ZodObject<{
|
|
3361
|
+
availableDecisions: z$1.ZodArray<z$1.ZodEnum<{
|
|
3362
|
+
allow_for_session: "allow_for_session";
|
|
3363
|
+
allow_once: "allow_once";
|
|
3364
|
+
deny: "deny";
|
|
3365
|
+
}>>;
|
|
3366
|
+
kind: z$1.ZodLiteral<"approval">;
|
|
3367
|
+
reason: z$1.ZodNullable<z$1.ZodString>;
|
|
3368
|
+
subject: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3369
|
+
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3370
|
+
command: z$1.ZodString;
|
|
3371
|
+
name: z$1.ZodString;
|
|
3372
|
+
path: z$1.ZodString;
|
|
3373
|
+
type: z$1.ZodLiteral<"read">;
|
|
3374
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3375
|
+
command: z$1.ZodString;
|
|
3376
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3377
|
+
type: z$1.ZodLiteral<"listFiles">;
|
|
3378
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3379
|
+
command: z$1.ZodString;
|
|
3380
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
3381
|
+
query: z$1.ZodNullable<z$1.ZodString>;
|
|
3382
|
+
type: z$1.ZodLiteral<"search">;
|
|
3383
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3384
|
+
command: z$1.ZodString;
|
|
3385
|
+
type: z$1.ZodLiteral<"unknown">;
|
|
3386
|
+
}, z$1.core.$strip>], "type">>;
|
|
3387
|
+
command: z$1.ZodString;
|
|
3388
|
+
cwd: z$1.ZodNullable<z$1.ZodString>;
|
|
3389
|
+
itemId: z$1.ZodString;
|
|
3390
|
+
kind: z$1.ZodLiteral<"command">;
|
|
3391
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3392
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3393
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3394
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3395
|
+
}, z$1.core.$strip>>;
|
|
3396
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3397
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3398
|
+
}, z$1.core.$strip>>;
|
|
3399
|
+
}, z$1.core.$strict>>;
|
|
3400
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3401
|
+
itemId: z$1.ZodString;
|
|
3402
|
+
kind: z$1.ZodLiteral<"file_change">;
|
|
3403
|
+
sessionGrant: z$1.ZodNullable<z$1.ZodObject<{
|
|
3404
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3405
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3406
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3407
|
+
}, z$1.core.$strip>>;
|
|
3408
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3409
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3410
|
+
}, z$1.core.$strip>>;
|
|
3411
|
+
}, z$1.core.$strict>>;
|
|
3412
|
+
writeScope: z$1.ZodNullable<z$1.ZodString>;
|
|
3413
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3414
|
+
itemId: z$1.ZodString;
|
|
3415
|
+
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3416
|
+
permissions: z$1.ZodObject<{
|
|
3417
|
+
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3418
|
+
read: z$1.ZodArray<z$1.ZodString>;
|
|
3419
|
+
write: z$1.ZodArray<z$1.ZodString>;
|
|
3420
|
+
}, z$1.core.$strip>>;
|
|
3421
|
+
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3422
|
+
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3423
|
+
}, z$1.core.$strip>>;
|
|
3424
|
+
}, z$1.core.$strict>;
|
|
3425
|
+
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3426
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3427
|
+
itemId: z$1.ZodString;
|
|
3428
|
+
kind: z$1.ZodLiteral<"plan">;
|
|
3429
|
+
plan: z$1.ZodString;
|
|
3430
|
+
planFilePath: z$1.ZodNullable<z$1.ZodString>;
|
|
3431
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3432
|
+
itemId: z$1.ZodString;
|
|
3433
|
+
kind: z$1.ZodLiteral<"tool_use">;
|
|
3434
|
+
presentation: z$1.ZodObject<{
|
|
3435
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
3436
|
+
glyph: z$1.ZodString;
|
|
3437
|
+
hint: z$1.ZodString;
|
|
3438
|
+
label: z$1.ZodString;
|
|
3439
|
+
tone: z$1.ZodEnum<{
|
|
3440
|
+
destructive: "destructive";
|
|
3441
|
+
neutral: "neutral";
|
|
3442
|
+
}>;
|
|
3443
|
+
}, z$1.core.$strip>>;
|
|
3444
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
3445
|
+
icon: z$1.ZodObject<{
|
|
3446
|
+
glyph: z$1.ZodString;
|
|
3447
|
+
}, z$1.core.$strip>;
|
|
3448
|
+
label: z$1.ZodObject<{
|
|
3449
|
+
completed: z$1.ZodString;
|
|
3450
|
+
pending: z$1.ZodString;
|
|
3451
|
+
}, z$1.core.$strip>;
|
|
3452
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3453
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
3454
|
+
dark: z$1.ZodString;
|
|
3455
|
+
light: z$1.ZodString;
|
|
3456
|
+
}, z$1.core.$strip>>;
|
|
3457
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
3458
|
+
}, z$1.core.$strip>;
|
|
3459
|
+
tool: z$1.ZodString;
|
|
3460
|
+
}, z$1.core.$strip>], "kind">;
|
|
3461
|
+
}, z$1.core.$strip>;
|
|
3462
|
+
providerId: z$1.ZodString;
|
|
3463
|
+
providerRequestId: z$1.ZodString;
|
|
3464
|
+
providerThreadId: z$1.ZodString;
|
|
3465
|
+
resolution: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3272
3466
|
decision: z$1.ZodLiteral<"allow_once">;
|
|
3273
3467
|
grantedPermissions: z$1.ZodNullable<z$1.ZodObject<{
|
|
3274
3468
|
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -3292,32 +3486,27 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3292
3486
|
}, z$1.core.$strict>>;
|
|
3293
3487
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3294
3488
|
decision: z$1.ZodLiteral<"deny">;
|
|
3295
|
-
}, z$1.core.$strip>], "decision"
|
|
3489
|
+
}, z$1.core.$strip>], "decision">>;
|
|
3490
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3296
3491
|
status: z$1.ZodEnum<{
|
|
3297
3492
|
interrupted: "interrupted";
|
|
3298
3493
|
pending: "pending";
|
|
3299
3494
|
resolved: "resolved";
|
|
3300
3495
|
resolving: "resolving";
|
|
3301
3496
|
}>;
|
|
3302
|
-
statusReason: z$1.
|
|
3303
|
-
subject: z$1.ZodObject<{
|
|
3304
|
-
itemId: z$1.ZodString;
|
|
3305
|
-
kind: z$1.ZodLiteral<"permission_grant">;
|
|
3306
|
-
permissions: z$1.ZodObject<{
|
|
3307
|
-
fileSystem: z$1.ZodNullable<z$1.ZodObject<{
|
|
3308
|
-
read: z$1.ZodArray<z$1.ZodString>;
|
|
3309
|
-
write: z$1.ZodArray<z$1.ZodString>;
|
|
3310
|
-
}, z$1.core.$strip>>;
|
|
3311
|
-
network: z$1.ZodNullable<z$1.ZodObject<{
|
|
3312
|
-
enabled: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
3313
|
-
}, z$1.core.$strip>>;
|
|
3314
|
-
}, z$1.core.$strict>;
|
|
3315
|
-
toolName: z$1.ZodNullable<z$1.ZodString>;
|
|
3316
|
-
}, z$1.core.$strip>;
|
|
3497
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3317
3498
|
threadId: z$1.ZodString;
|
|
3318
|
-
|
|
3499
|
+
turnId: z$1.ZodString;
|
|
3319
3500
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3320
|
-
|
|
3501
|
+
createdAt: z$1.ZodNumber;
|
|
3502
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3503
|
+
id: z$1.ZodString;
|
|
3504
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3505
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3506
|
+
providerId: z$1.ZodString;
|
|
3507
|
+
providerRequestId: z$1.ZodString;
|
|
3508
|
+
providerThreadId: z$1.ZodString;
|
|
3509
|
+
}, z$1.core.$strip>>;
|
|
3321
3510
|
payload: z$1.ZodObject<{
|
|
3322
3511
|
kind: z$1.ZodLiteral<"user_question">;
|
|
3323
3512
|
questions: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -3335,72 +3524,88 @@ declare const threadEventSchema: z$1.ZodPipe<z$1.ZodUnknown, z$1.ZodUnion<readon
|
|
|
3335
3524
|
}, z$1.core.$strip>;
|
|
3336
3525
|
providerId: z$1.ZodString;
|
|
3337
3526
|
providerRequestId: z$1.ZodString;
|
|
3338
|
-
|
|
3527
|
+
providerThreadId: z$1.ZodString;
|
|
3528
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3339
3529
|
answers: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
3340
3530
|
freeText: z$1.ZodOptional<z$1.ZodString>;
|
|
3341
3531
|
selected: z$1.ZodArray<z$1.ZodString>;
|
|
3342
3532
|
}, z$1.core.$strip>>;
|
|
3343
3533
|
kind: z$1.ZodLiteral<"user_answer">;
|
|
3344
|
-
}, z$1.core.$strip
|
|
3534
|
+
}, z$1.core.$strip>>;
|
|
3535
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3345
3536
|
status: z$1.ZodEnum<{
|
|
3346
3537
|
interrupted: "interrupted";
|
|
3347
3538
|
pending: "pending";
|
|
3348
3539
|
resolved: "resolved";
|
|
3349
3540
|
resolving: "resolving";
|
|
3350
3541
|
}>;
|
|
3351
|
-
statusReason: z$1.
|
|
3542
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3352
3543
|
threadId: z$1.ZodString;
|
|
3353
|
-
|
|
3544
|
+
turnId: z$1.ZodString;
|
|
3354
3545
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
}>>;
|
|
3364
|
-
text: z$1.ZodString;
|
|
3365
|
-
type: z$1.ZodEnum<{
|
|
3366
|
-
output: "output";
|
|
3367
|
-
step: "step";
|
|
3368
|
-
}>;
|
|
3546
|
+
createdAt: z$1.ZodNumber;
|
|
3547
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3548
|
+
id: z$1.ZodString;
|
|
3549
|
+
origin: z$1.ZodOptional<z$1.ZodObject<{
|
|
3550
|
+
kind: z$1.ZodLiteral<"provider">;
|
|
3551
|
+
providerId: z$1.ZodString;
|
|
3552
|
+
providerRequestId: z$1.ZodString;
|
|
3553
|
+
providerThreadId: z$1.ZodString;
|
|
3369
3554
|
}, z$1.core.$strip>>;
|
|
3370
|
-
|
|
3371
|
-
|
|
3555
|
+
payload: z$1.ZodObject<{
|
|
3556
|
+
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3557
|
+
kind: z$1.ZodString & z$1.ZodType<`${string}/${string}`, string, z$1.core.$ZodTypeInternals<`${string}/${string}`, string>>;
|
|
3558
|
+
title: z$1.ZodString;
|
|
3559
|
+
}, z$1.core.$strip>;
|
|
3560
|
+
providerId: z$1.ZodString;
|
|
3561
|
+
providerRequestId: z$1.ZodString;
|
|
3562
|
+
providerThreadId: z$1.ZodString;
|
|
3563
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3564
|
+
kind: z$1.ZodLiteral<"request_answer">;
|
|
3565
|
+
value: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3566
|
+
}, z$1.core.$strip>>;
|
|
3567
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3372
3568
|
status: z$1.ZodEnum<{
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3569
|
+
interrupted: "interrupted";
|
|
3570
|
+
pending: "pending";
|
|
3571
|
+
resolved: "resolved";
|
|
3572
|
+
resolving: "resolving";
|
|
3377
3573
|
}>;
|
|
3574
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3378
3575
|
threadId: z$1.ZodString;
|
|
3379
|
-
|
|
3380
|
-
}, z$1.core.$strip
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3576
|
+
turnId: z$1.ZodString;
|
|
3577
|
+
}, z$1.core.$strip>]>;
|
|
3578
|
+
type ProviderPendingInteraction = z$1.infer<typeof providerPendingInteractionSchema>;
|
|
3579
|
+
declare const pluginPendingInteractionSchema: z$1.ZodObject<{
|
|
3580
|
+
createdAt: z$1.ZodNumber;
|
|
3581
|
+
expiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
3582
|
+
id: z$1.ZodString;
|
|
3583
|
+
origin: z$1.ZodObject<{
|
|
3584
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3585
|
+
pluginId: z$1.ZodString;
|
|
3586
|
+
rendererId: z$1.ZodString;
|
|
3587
|
+
}, z$1.core.$strip>;
|
|
3588
|
+
payload: z$1.ZodObject<{
|
|
3589
|
+
data: z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>;
|
|
3590
|
+
kind: z$1.ZodLiteral<"plugin">;
|
|
3591
|
+
title: z$1.ZodString;
|
|
3592
|
+
}, z$1.core.$strip>;
|
|
3593
|
+
resolution: z$1.ZodNullable<z$1.ZodObject<{
|
|
3594
|
+
kind: z$1.ZodLiteral<"plugin_submitted">;
|
|
3595
|
+
}, z$1.core.$strip>>;
|
|
3596
|
+
resolvedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
3597
|
+
status: z$1.ZodEnum<{
|
|
3598
|
+
interrupted: "interrupted";
|
|
3599
|
+
pending: "pending";
|
|
3600
|
+
resolved: "resolved";
|
|
3601
|
+
resolving: "resolving";
|
|
3602
|
+
}>;
|
|
3603
|
+
statusReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3391
3604
|
threadId: z$1.ZodString;
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
kind: z$1.ZodLiteral<"thread">;
|
|
3397
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3398
|
-
kind: z$1.ZodLiteral<"turn">;
|
|
3399
|
-
turnId: z$1.ZodString;
|
|
3400
|
-
}, z$1.core.$strip>], "kind">;
|
|
3401
|
-
}, z$1.core.$strip>>]>>;
|
|
3402
|
-
type ThreadEvent = z$1.infer<typeof threadEventSchema>;
|
|
3403
|
-
type ThreadEventType = ThreadEvent["type"];
|
|
3605
|
+
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
3606
|
+
}, z$1.core.$strip>;
|
|
3607
|
+
type PluginPendingInteraction = z$1.infer<typeof pluginPendingInteractionSchema>;
|
|
3608
|
+
type PendingInteraction = ProviderPendingInteraction | PluginPendingInteraction;
|
|
3404
3609
|
|
|
3405
3610
|
declare const projectSchema: z$1.ZodObject<{
|
|
3406
3611
|
createdAt: z$1.ZodNumber;
|
|
@@ -3831,6 +4036,11 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
3831
4036
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
3832
4037
|
groupWithNext: z$1.ZodBoolean;
|
|
3833
4038
|
id: z$1.ZodString;
|
|
4039
|
+
initiator: z$1.ZodEnum<{
|
|
4040
|
+
agent: "agent";
|
|
4041
|
+
system: "system";
|
|
4042
|
+
user: "user";
|
|
4043
|
+
}>;
|
|
3834
4044
|
model: z$1.ZodString;
|
|
3835
4045
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
3836
4046
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -3856,6 +4066,7 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
|
|
|
3856
4066
|
xhigh: "xhigh";
|
|
3857
4067
|
}>;
|
|
3858
4068
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
4069
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
3859
4070
|
serviceTier: z$1.ZodEnum<{
|
|
3860
4071
|
default: "default";
|
|
3861
4072
|
fast: "fast";
|
|
@@ -3912,6 +4123,14 @@ declare const createThreadEnvironmentArgsSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
3912
4123
|
}, z$1.core.$strip>], "type">;
|
|
3913
4124
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3914
4125
|
type: z$1.ZodLiteral<"project-default">;
|
|
4126
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4127
|
+
environmentProviderId: z$1.ZodString;
|
|
4128
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
4129
|
+
machine: z$1.ZodObject<{
|
|
4130
|
+
hostId: z$1.ZodString;
|
|
4131
|
+
type: z$1.ZodLiteral<"existing">;
|
|
4132
|
+
}, z$1.core.$strip>;
|
|
4133
|
+
type: z$1.ZodLiteral<"provider">;
|
|
3915
4134
|
}, z$1.core.$strip>], "type">;
|
|
3916
4135
|
type CreateThreadEnvironmentArgs = z$1.infer<typeof createThreadEnvironmentArgsSchema>;
|
|
3917
4136
|
declare const workspaceFileListResponseSchema: z$1.ZodObject<{
|
|
@@ -4058,6 +4277,7 @@ declare const projectBranchesResponseSchema: z$1.ZodObject<{
|
|
|
4058
4277
|
}>>;
|
|
4059
4278
|
defaultWorktreeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
4060
4279
|
hasUncommittedChanges: z$1.ZodBoolean;
|
|
4280
|
+
isWorktree: z$1.ZodBoolean;
|
|
4061
4281
|
operation: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4062
4282
|
kind: z$1.ZodLiteral<"none">;
|
|
4063
4283
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -4325,7 +4545,10 @@ declare const projectWithThreadsResponseSchema: z$1.ZodObject<{
|
|
|
4325
4545
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4326
4546
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4327
4547
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4548
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4328
4549
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4550
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4551
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4329
4552
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4330
4553
|
"managed-worktree": "managed-worktree";
|
|
4331
4554
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4441,7 +4664,10 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
4441
4664
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4442
4665
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4443
4666
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4667
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4444
4668
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4669
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4670
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4445
4671
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4446
4672
|
"managed-worktree": "managed-worktree";
|
|
4447
4673
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4555,7 +4781,10 @@ declare const sidebarBootstrapResponseSchema: z$1.ZodObject<{
|
|
|
4555
4781
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
4556
4782
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
4557
4783
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
4784
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
4558
4785
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
4786
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
4787
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
4559
4788
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
4560
4789
|
"managed-worktree": "managed-worktree";
|
|
4561
4790
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -4946,7 +5175,6 @@ declare const environmentStatusResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
4946
5175
|
failure: z$1.ZodObject<{
|
|
4947
5176
|
code: z$1.ZodEnum<{
|
|
4948
5177
|
not_git_repo: "not_git_repo";
|
|
4949
|
-
not_worktree: "not_worktree";
|
|
4950
5178
|
path_not_found: "path_not_found";
|
|
4951
5179
|
permission_denied: "permission_denied";
|
|
4952
5180
|
unknown: "unknown";
|
|
@@ -5060,7 +5288,6 @@ declare const environmentDiffResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
5060
5288
|
failure: z$1.ZodObject<{
|
|
5061
5289
|
code: z$1.ZodEnum<{
|
|
5062
5290
|
not_git_repo: "not_git_repo";
|
|
5063
|
-
not_worktree: "not_worktree";
|
|
5064
5291
|
path_not_found: "path_not_found";
|
|
5065
5292
|
permission_denied: "permission_denied";
|
|
5066
5293
|
unknown: "unknown";
|
|
@@ -5117,7 +5344,6 @@ declare const environmentDiffFilesResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5117
5344
|
failure: z$1.ZodObject<{
|
|
5118
5345
|
code: z$1.ZodEnum<{
|
|
5119
5346
|
not_git_repo: "not_git_repo";
|
|
5120
|
-
not_worktree: "not_worktree";
|
|
5121
5347
|
path_not_found: "path_not_found";
|
|
5122
5348
|
permission_denied: "permission_denied";
|
|
5123
5349
|
unknown: "unknown";
|
|
@@ -5147,7 +5373,6 @@ declare const environmentDiffPatchResponseSchema: z$1.ZodDiscriminatedUnion<[z$1
|
|
|
5147
5373
|
failure: z$1.ZodObject<{
|
|
5148
5374
|
code: z$1.ZodEnum<{
|
|
5149
5375
|
not_git_repo: "not_git_repo";
|
|
5150
|
-
not_worktree: "not_worktree";
|
|
5151
5376
|
path_not_found: "path_not_found";
|
|
5152
5377
|
permission_denied: "permission_denied";
|
|
5153
5378
|
unknown: "unknown";
|
|
@@ -5217,6 +5442,149 @@ interface HostDaemonCommandDescriptor<Type extends string, Schema extends z$1.Zo
|
|
|
5217
5442
|
envLane: HostDaemonCommandEnvironmentLane | null;
|
|
5218
5443
|
}
|
|
5219
5444
|
declare const hostDaemonCommandRegistry: {
|
|
5445
|
+
"desktop.browser.list_instances": HostDaemonCommandDescriptor<"desktop.browser.list_instances", z$1.ZodObject<{
|
|
5446
|
+
type: z$1.ZodLiteral<"desktop.browser.list_instances">;
|
|
5447
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5448
|
+
instances: z$1.ZodArray<z$1.ZodObject<{
|
|
5449
|
+
generation: z$1.ZodString;
|
|
5450
|
+
instanceId: z$1.ZodString;
|
|
5451
|
+
label: z$1.ZodString;
|
|
5452
|
+
}, z$1.core.$strip>>;
|
|
5453
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5454
|
+
"desktop.browser.list_tabs": HostDaemonCommandDescriptor<"desktop.browser.list_tabs", z$1.ZodObject<{
|
|
5455
|
+
generation: z$1.ZodString;
|
|
5456
|
+
instanceId: z$1.ZodString;
|
|
5457
|
+
threadId: z$1.ZodString;
|
|
5458
|
+
type: z$1.ZodLiteral<"desktop.browser.list_tabs">;
|
|
5459
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5460
|
+
tabs: z$1.ZodArray<z$1.ZodObject<{
|
|
5461
|
+
control: z$1.ZodNullable<z$1.ZodObject<{
|
|
5462
|
+
controllerLabel: z$1.ZodString;
|
|
5463
|
+
expiresAt: z$1.ZodNumber;
|
|
5464
|
+
leaseId: z$1.ZodString;
|
|
5465
|
+
}, z$1.core.$strip>>;
|
|
5466
|
+
presentation: z$1.ZodEnum<{
|
|
5467
|
+
hidden: "hidden";
|
|
5468
|
+
reveal: "reveal";
|
|
5469
|
+
}>;
|
|
5470
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5471
|
+
id: z$1.ZodString;
|
|
5472
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
5473
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5474
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
5475
|
+
}, z$1.core.$strip>], "kind">;
|
|
5476
|
+
tabId: z$1.ZodString;
|
|
5477
|
+
threadId: z$1.ZodString;
|
|
5478
|
+
title: z$1.ZodString;
|
|
5479
|
+
url: z$1.ZodString;
|
|
5480
|
+
}, z$1.core.$strip>>;
|
|
5481
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5482
|
+
"desktop.browser.create_tab": HostDaemonCommandDescriptor<"desktop.browser.create_tab", z$1.ZodObject<{
|
|
5483
|
+
generation: z$1.ZodString;
|
|
5484
|
+
instanceId: z$1.ZodString;
|
|
5485
|
+
presentation: z$1.ZodEnum<{
|
|
5486
|
+
hidden: "hidden";
|
|
5487
|
+
reveal: "reveal";
|
|
5488
|
+
}>;
|
|
5489
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5490
|
+
id: z$1.ZodString;
|
|
5491
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
5492
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5493
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
5494
|
+
}, z$1.core.$strip>], "kind">;
|
|
5495
|
+
tabId: z$1.ZodString;
|
|
5496
|
+
threadId: z$1.ZodString;
|
|
5497
|
+
type: z$1.ZodLiteral<"desktop.browser.create_tab">;
|
|
5498
|
+
url: z$1.ZodString;
|
|
5499
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5500
|
+
tab: z$1.ZodObject<{
|
|
5501
|
+
control: z$1.ZodNullable<z$1.ZodObject<{
|
|
5502
|
+
controllerLabel: z$1.ZodString;
|
|
5503
|
+
expiresAt: z$1.ZodNumber;
|
|
5504
|
+
leaseId: z$1.ZodString;
|
|
5505
|
+
}, z$1.core.$strip>>;
|
|
5506
|
+
presentation: z$1.ZodEnum<{
|
|
5507
|
+
hidden: "hidden";
|
|
5508
|
+
reveal: "reveal";
|
|
5509
|
+
}>;
|
|
5510
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
5511
|
+
id: z$1.ZodString;
|
|
5512
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
5513
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
5514
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
5515
|
+
}, z$1.core.$strip>], "kind">;
|
|
5516
|
+
tabId: z$1.ZodString;
|
|
5517
|
+
threadId: z$1.ZodString;
|
|
5518
|
+
title: z$1.ZodString;
|
|
5519
|
+
url: z$1.ZodString;
|
|
5520
|
+
}, z$1.core.$strip>;
|
|
5521
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5522
|
+
"desktop.browser.reveal_tab": HostDaemonCommandDescriptor<"desktop.browser.reveal_tab", z$1.ZodObject<{
|
|
5523
|
+
generation: z$1.ZodString;
|
|
5524
|
+
instanceId: z$1.ZodString;
|
|
5525
|
+
tabId: z$1.ZodString;
|
|
5526
|
+
threadId: z$1.ZodString;
|
|
5527
|
+
type: z$1.ZodLiteral<"desktop.browser.reveal_tab">;
|
|
5528
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5529
|
+
ok: z$1.ZodLiteral<true>;
|
|
5530
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5531
|
+
"desktop.browser.close_tab": HostDaemonCommandDescriptor<"desktop.browser.close_tab", z$1.ZodObject<{
|
|
5532
|
+
generation: z$1.ZodString;
|
|
5533
|
+
instanceId: z$1.ZodString;
|
|
5534
|
+
tabId: z$1.ZodString;
|
|
5535
|
+
threadId: z$1.ZodString;
|
|
5536
|
+
type: z$1.ZodLiteral<"desktop.browser.close_tab">;
|
|
5537
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5538
|
+
ok: z$1.ZodLiteral<true>;
|
|
5539
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5540
|
+
"desktop.browser.capture_tab": HostDaemonCommandDescriptor<"desktop.browser.capture_tab", z$1.ZodObject<{
|
|
5541
|
+
generation: z$1.ZodString;
|
|
5542
|
+
instanceId: z$1.ZodString;
|
|
5543
|
+
tabId: z$1.ZodString;
|
|
5544
|
+
threadId: z$1.ZodString;
|
|
5545
|
+
type: z$1.ZodLiteral<"desktop.browser.capture_tab">;
|
|
5546
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5547
|
+
base64: z$1.ZodString;
|
|
5548
|
+
height: z$1.ZodNumber;
|
|
5549
|
+
mimeType: z$1.ZodLiteral<"image/jpeg">;
|
|
5550
|
+
width: z$1.ZodNumber;
|
|
5551
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5552
|
+
"desktop.browser.acquire_control": HostDaemonCommandDescriptor<"desktop.browser.acquire_control", z$1.ZodObject<{
|
|
5553
|
+
controllerLabel: z$1.ZodString;
|
|
5554
|
+
expiresAt: z$1.ZodNumber;
|
|
5555
|
+
generation: z$1.ZodString;
|
|
5556
|
+
instanceId: z$1.ZodString;
|
|
5557
|
+
leaseId: z$1.ZodString;
|
|
5558
|
+
tabIds: z$1.ZodArray<z$1.ZodString>;
|
|
5559
|
+
threadId: z$1.ZodString;
|
|
5560
|
+
type: z$1.ZodLiteral<"desktop.browser.acquire_control">;
|
|
5561
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5562
|
+
lease: z$1.ZodObject<{
|
|
5563
|
+
controllerLabel: z$1.ZodString;
|
|
5564
|
+
expiresAt: z$1.ZodNumber;
|
|
5565
|
+
leaseId: z$1.ZodString;
|
|
5566
|
+
}, z$1.core.$strip>;
|
|
5567
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5568
|
+
"desktop.browser.open_connection": HostDaemonCommandDescriptor<"desktop.browser.open_connection", z$1.ZodObject<{
|
|
5569
|
+
generation: z$1.ZodString;
|
|
5570
|
+
instanceId: z$1.ZodString;
|
|
5571
|
+
leaseId: z$1.ZodString;
|
|
5572
|
+
tabIds: z$1.ZodArray<z$1.ZodString>;
|
|
5573
|
+
threadId: z$1.ZodString;
|
|
5574
|
+
type: z$1.ZodLiteral<"desktop.browser.open_connection">;
|
|
5575
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5576
|
+
expiresAt: z$1.ZodNumber;
|
|
5577
|
+
wsEndpoint: z$1.ZodString;
|
|
5578
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5579
|
+
"desktop.browser.release_control": HostDaemonCommandDescriptor<"desktop.browser.release_control", z$1.ZodObject<{
|
|
5580
|
+
generation: z$1.ZodString;
|
|
5581
|
+
instanceId: z$1.ZodString;
|
|
5582
|
+
leaseId: z$1.ZodString;
|
|
5583
|
+
threadId: z$1.ZodString;
|
|
5584
|
+
type: z$1.ZodLiteral<"desktop.browser.release_control">;
|
|
5585
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5586
|
+
ok: z$1.ZodLiteral<true>;
|
|
5587
|
+
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
5220
5588
|
"thread.rewind.discard": HostDaemonCommandDescriptor<"thread.rewind.discard", z$1.ZodObject<{
|
|
5221
5589
|
environmentId: z$1.ZodString;
|
|
5222
5590
|
leaseId: z$1.ZodString;
|
|
@@ -5375,11 +5743,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5375
5743
|
type: z$1.ZodLiteral<"thread.rewind.prepare">;
|
|
5376
5744
|
workspaceContext: z$1.ZodObject<{
|
|
5377
5745
|
workspacePath: z$1.ZodString;
|
|
5378
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
5379
|
-
"managed-worktree": "managed-worktree";
|
|
5380
|
-
personal: "personal";
|
|
5381
|
-
unmanaged: "unmanaged";
|
|
5382
|
-
}>;
|
|
5383
5746
|
}, z$1.core.$strip>;
|
|
5384
5747
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5385
5748
|
providerThreadId: z$1.ZodString;
|
|
@@ -5701,11 +6064,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5701
6064
|
type: z$1.ZodLiteral<"thread.start">;
|
|
5702
6065
|
workspaceContext: z$1.ZodObject<{
|
|
5703
6066
|
workspacePath: z$1.ZodString;
|
|
5704
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
5705
|
-
"managed-worktree": "managed-worktree";
|
|
5706
|
-
personal: "personal";
|
|
5707
|
-
unmanaged: "unmanaged";
|
|
5708
|
-
}>;
|
|
5709
6067
|
}, z$1.core.$strip>;
|
|
5710
6068
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
5711
6069
|
providerThreadId: z$1.ZodString;
|
|
@@ -6048,11 +6406,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6048
6406
|
providerThreadId: z$1.ZodString;
|
|
6049
6407
|
workspaceContext: z$1.ZodObject<{
|
|
6050
6408
|
workspacePath: z$1.ZodString;
|
|
6051
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6052
|
-
"managed-worktree": "managed-worktree";
|
|
6053
|
-
personal: "personal";
|
|
6054
|
-
unmanaged: "unmanaged";
|
|
6055
|
-
}>;
|
|
6056
6409
|
}, z$1.core.$strip>;
|
|
6057
6410
|
}, z$1.core.$strict>;
|
|
6058
6411
|
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6258,11 +6611,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6258
6611
|
providerThreadId: z$1.ZodString;
|
|
6259
6612
|
workspaceContext: z$1.ZodObject<{
|
|
6260
6613
|
workspacePath: z$1.ZodString;
|
|
6261
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6262
|
-
"managed-worktree": "managed-worktree";
|
|
6263
|
-
personal: "personal";
|
|
6264
|
-
unmanaged: "unmanaged";
|
|
6265
|
-
}>;
|
|
6266
6614
|
}, z$1.core.$strip>;
|
|
6267
6615
|
}, z$1.core.$strict>;
|
|
6268
6616
|
threadId: z$1.ZodString;
|
|
@@ -6318,11 +6666,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6318
6666
|
type: z$1.ZodLiteral<"thread.archive">;
|
|
6319
6667
|
workspaceContext: z$1.ZodObject<{
|
|
6320
6668
|
workspacePath: z$1.ZodString;
|
|
6321
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6322
|
-
"managed-worktree": "managed-worktree";
|
|
6323
|
-
personal: "personal";
|
|
6324
|
-
unmanaged: "unmanaged";
|
|
6325
|
-
}>;
|
|
6326
6669
|
}, z$1.core.$strip>;
|
|
6327
6670
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
|
|
6328
6671
|
"thread.unarchive": HostDaemonCommandDescriptor<"thread.unarchive", z$1.ZodObject<{
|
|
@@ -6403,66 +6746,20 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6403
6746
|
threadId: z$1.ZodString;
|
|
6404
6747
|
type: z$1.ZodLiteral<"interactive.resolve">;
|
|
6405
6748
|
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "settled", false>;
|
|
6406
|
-
"environment.
|
|
6407
|
-
checkout: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6408
|
-
kind: z$1.ZodLiteral<"existing">;
|
|
6409
|
-
name: z$1.ZodString;
|
|
6410
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6411
|
-
baseBranch: z$1.ZodString;
|
|
6412
|
-
kind: z$1.ZodLiteral<"new">;
|
|
6413
|
-
name: z$1.ZodString;
|
|
6414
|
-
}, z$1.core.$strict>], "kind">>;
|
|
6749
|
+
"environment.attach": HostDaemonCommandDescriptor<"environment.attach", z$1.ZodObject<{
|
|
6415
6750
|
environmentId: z$1.ZodString;
|
|
6416
6751
|
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6417
6752
|
provisioningId: z$1.ZodString;
|
|
6418
6753
|
threadId: z$1.ZodString;
|
|
6419
6754
|
}, z$1.core.$strict>>;
|
|
6420
6755
|
path: z$1.ZodString;
|
|
6421
|
-
type: z$1.ZodLiteral<"environment.
|
|
6422
|
-
workspaceProvisionType: z$1.ZodLiteral<"unmanaged">;
|
|
6423
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6424
|
-
baseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
6425
|
-
branchName: z$1.ZodString;
|
|
6426
|
-
environmentId: z$1.ZodString;
|
|
6427
|
-
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6428
|
-
provisioningId: z$1.ZodString;
|
|
6429
|
-
threadId: z$1.ZodString;
|
|
6430
|
-
}, z$1.core.$strict>>;
|
|
6431
|
-
setupTimeoutMs: z$1.ZodNumber;
|
|
6432
|
-
sourcePath: z$1.ZodString;
|
|
6433
|
-
targetPath: z$1.ZodString;
|
|
6434
|
-
type: z$1.ZodLiteral<"environment.provision">;
|
|
6435
|
-
workspaceProvisionType: z$1.ZodLiteral<"managed-worktree">;
|
|
6756
|
+
type: z$1.ZodLiteral<"environment.attach">;
|
|
6436
6757
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6437
|
-
environmentId: z$1.ZodString;
|
|
6438
|
-
initiator: z$1.ZodNullable<z$1.ZodObject<{
|
|
6439
|
-
provisioningId: z$1.ZodString;
|
|
6440
|
-
threadId: z$1.ZodString;
|
|
6441
|
-
}, z$1.core.$strict>>;
|
|
6442
|
-
targetPath: z$1.ZodString;
|
|
6443
|
-
type: z$1.ZodLiteral<"environment.provision">;
|
|
6444
|
-
workspaceProvisionType: z$1.ZodLiteral<"personal">;
|
|
6445
|
-
}, z$1.core.$strict>], "workspaceProvisionType">, z$1.ZodObject<{
|
|
6446
6758
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
6447
6759
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
6448
6760
|
isGitRepo: z$1.ZodBoolean;
|
|
6449
6761
|
isWorktree: z$1.ZodBoolean;
|
|
6450
6762
|
path: z$1.ZodString;
|
|
6451
|
-
transcript: z$1.ZodArray<z$1.ZodObject<{
|
|
6452
|
-
key: z$1.ZodString;
|
|
6453
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6454
|
-
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6455
|
-
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
6456
|
-
completed: "completed";
|
|
6457
|
-
failed: "failed";
|
|
6458
|
-
started: "started";
|
|
6459
|
-
}>>;
|
|
6460
|
-
text: z$1.ZodString;
|
|
6461
|
-
type: z$1.ZodEnum<{
|
|
6462
|
-
output: "output";
|
|
6463
|
-
step: "step";
|
|
6464
|
-
}>;
|
|
6465
|
-
}, z$1.core.$strip>>;
|
|
6466
6763
|
}, z$1.core.$strip>, "settled", false>;
|
|
6467
6764
|
"project.clone": HostDaemonCommandDescriptor<"project.clone", z$1.ZodObject<{
|
|
6468
6765
|
projectSlug: z$1.ZodString;
|
|
@@ -6473,52 +6770,18 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6473
6770
|
gitRemoteUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
6474
6771
|
path: z$1.ZodString;
|
|
6475
6772
|
}, z$1.core.$strict>, "settled", false>;
|
|
6476
|
-
"environment.
|
|
6773
|
+
"environment.attach.cancel": HostDaemonCommandDescriptor<"environment.attach.cancel", z$1.ZodObject<{
|
|
6477
6774
|
environmentId: z$1.ZodString;
|
|
6478
|
-
type: z$1.ZodLiteral<"environment.
|
|
6775
|
+
type: z$1.ZodLiteral<"environment.attach.cancel">;
|
|
6479
6776
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6480
6777
|
aborted: z$1.ZodBoolean;
|
|
6481
6778
|
}, z$1.core.$strip>, "settled", false>;
|
|
6482
|
-
"environment.destroy": HostDaemonCommandDescriptor<"environment.destroy", z$1.ZodObject<{
|
|
6483
|
-
environmentId: z$1.ZodString;
|
|
6484
|
-
teardownTimeoutMs: z$1.ZodNumber;
|
|
6485
|
-
type: z$1.ZodLiteral<"environment.destroy">;
|
|
6486
|
-
workspaceContext: z$1.ZodObject<{
|
|
6487
|
-
workspacePath: z$1.ZodString;
|
|
6488
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6489
|
-
"managed-worktree": "managed-worktree";
|
|
6490
|
-
personal: "personal";
|
|
6491
|
-
unmanaged: "unmanaged";
|
|
6492
|
-
}>;
|
|
6493
|
-
}, z$1.core.$strip>;
|
|
6494
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6495
|
-
transcript: z$1.ZodArray<z$1.ZodObject<{
|
|
6496
|
-
key: z$1.ZodString;
|
|
6497
|
-
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
6498
|
-
startedAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
6499
|
-
status: z$1.ZodOptional<z$1.ZodEnum<{
|
|
6500
|
-
completed: "completed";
|
|
6501
|
-
failed: "failed";
|
|
6502
|
-
started: "started";
|
|
6503
|
-
}>>;
|
|
6504
|
-
text: z$1.ZodString;
|
|
6505
|
-
type: z$1.ZodEnum<{
|
|
6506
|
-
output: "output";
|
|
6507
|
-
step: "step";
|
|
6508
|
-
}>;
|
|
6509
|
-
}, z$1.core.$strip>>;
|
|
6510
|
-
}, z$1.core.$strict>, "settled", false>;
|
|
6511
6779
|
"workspace.commit": HostDaemonCommandDescriptor<"workspace.commit", z$1.ZodObject<{
|
|
6512
6780
|
environmentId: z$1.ZodString;
|
|
6513
6781
|
message: z$1.ZodString;
|
|
6514
6782
|
type: z$1.ZodLiteral<"workspace.commit">;
|
|
6515
6783
|
workspaceContext: z$1.ZodObject<{
|
|
6516
6784
|
workspacePath: z$1.ZodString;
|
|
6517
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6518
|
-
"managed-worktree": "managed-worktree";
|
|
6519
|
-
personal: "personal";
|
|
6520
|
-
unmanaged: "unmanaged";
|
|
6521
|
-
}>;
|
|
6522
6785
|
}, z$1.core.$strip>;
|
|
6523
6786
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6524
6787
|
commitSha: z$1.ZodString;
|
|
@@ -6530,11 +6793,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6530
6793
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6531
6794
|
workspaceContext: z$1.ZodObject<{
|
|
6532
6795
|
workspacePath: z$1.ZodString;
|
|
6533
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6534
|
-
"managed-worktree": "managed-worktree";
|
|
6535
|
-
personal: "personal";
|
|
6536
|
-
unmanaged: "unmanaged";
|
|
6537
|
-
}>;
|
|
6538
6796
|
}, z$1.core.$strip>;
|
|
6539
6797
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6540
6798
|
environmentId: z$1.ZodString;
|
|
@@ -6542,11 +6800,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6542
6800
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6543
6801
|
workspaceContext: z$1.ZodObject<{
|
|
6544
6802
|
workspacePath: z$1.ZodString;
|
|
6545
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6546
|
-
"managed-worktree": "managed-worktree";
|
|
6547
|
-
personal: "personal";
|
|
6548
|
-
unmanaged: "unmanaged";
|
|
6549
|
-
}>;
|
|
6550
6803
|
}, z$1.core.$strip>;
|
|
6551
6804
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6552
6805
|
environmentId: z$1.ZodString;
|
|
@@ -6559,11 +6812,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6559
6812
|
type: z$1.ZodLiteral<"workspace.pull_request_action">;
|
|
6560
6813
|
workspaceContext: z$1.ZodObject<{
|
|
6561
6814
|
workspacePath: z$1.ZodString;
|
|
6562
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
6563
|
-
"managed-worktree": "managed-worktree";
|
|
6564
|
-
personal: "personal";
|
|
6565
|
-
unmanaged: "unmanaged";
|
|
6566
|
-
}>;
|
|
6567
6815
|
}, z$1.core.$strip>;
|
|
6568
6816
|
}, z$1.core.$strict>], "operation">, z$1.ZodObject<{}, z$1.core.$strict>, "settled", false>;
|
|
6569
6817
|
"host.list_files": HostDaemonCommandDescriptor<"host.list_files", z$1.ZodObject<{
|
|
@@ -6661,6 +6909,26 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6661
6909
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6662
6910
|
path: z$1.ZodNullable<z$1.ZodString>;
|
|
6663
6911
|
}, z$1.core.$strip>, "onlineRpc", false>;
|
|
6912
|
+
"environment.hook.run": HostDaemonCommandDescriptor<"environment.hook.run", z$1.ZodObject<{
|
|
6913
|
+
kind: z$1.ZodEnum<{
|
|
6914
|
+
setup: "setup";
|
|
6915
|
+
teardown: "teardown";
|
|
6916
|
+
}>;
|
|
6917
|
+
operationId: z$1.ZodString;
|
|
6918
|
+
path: z$1.ZodString;
|
|
6919
|
+
resumeOnly: z$1.ZodBoolean;
|
|
6920
|
+
timeoutMs: z$1.ZodNumber;
|
|
6921
|
+
type: z$1.ZodLiteral<"environment.hook.run">;
|
|
6922
|
+
}, z$1.core.$strict>, z$1.ZodObject<{}, z$1.core.$strip>, "onlineRpc", false>;
|
|
6923
|
+
"environment.hook.cancel": HostDaemonCommandDescriptor<"environment.hook.cancel", z$1.ZodObject<{
|
|
6924
|
+
operationId: z$1.ZodString;
|
|
6925
|
+
type: z$1.ZodLiteral<"environment.hook.cancel">;
|
|
6926
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
6927
|
+
status: z$1.ZodEnum<{
|
|
6928
|
+
terminated: "terminated";
|
|
6929
|
+
unknown: "unknown";
|
|
6930
|
+
}>;
|
|
6931
|
+
}, z$1.core.$strict>, "onlineRpc", true>;
|
|
6664
6932
|
"plugin.host.call": HostDaemonCommandDescriptor<"plugin.host.call", z$1.ZodObject<{
|
|
6665
6933
|
artifact: z$1.ZodObject<{
|
|
6666
6934
|
byteLength: z$1.ZodNumber;
|
|
@@ -6973,6 +7241,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6973
7241
|
unknown: "unknown";
|
|
6974
7242
|
}>>;
|
|
6975
7243
|
hasUncommittedChanges: z$1.ZodBoolean;
|
|
7244
|
+
isWorktree: z$1.ZodBoolean;
|
|
6976
7245
|
operation: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
6977
7246
|
kind: z$1.ZodLiteral<"none">;
|
|
6978
7247
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
@@ -7028,11 +7297,17 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7028
7297
|
sizeBytes: z$1.ZodNumber;
|
|
7029
7298
|
}, z$1.core.$strip>, "onlineRpc", true>;
|
|
7030
7299
|
"host.read_file": HostDaemonCommandDescriptor<"host.read_file", z$1.ZodObject<{
|
|
7300
|
+
ifNoneMatch: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7301
|
+
kind: z$1.ZodLiteral<"any">;
|
|
7302
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
7303
|
+
kind: z$1.ZodLiteral<"sha256">;
|
|
7304
|
+
values: z$1.ZodArray<z$1.ZodString>;
|
|
7305
|
+
}, z$1.core.$strict>], "kind">>;
|
|
7031
7306
|
path: z$1.ZodString;
|
|
7032
7307
|
ref: z$1.ZodOptional<z$1.ZodString>;
|
|
7033
7308
|
rootPath: z$1.ZodOptional<z$1.ZodString>;
|
|
7034
7309
|
type: z$1.ZodLiteral<"host.read_file">;
|
|
7035
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7310
|
+
}, z$1.core.$strip>, z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
7036
7311
|
content: z$1.ZodString;
|
|
7037
7312
|
contentEncoding: z$1.ZodEnum<{
|
|
7038
7313
|
base64: "base64";
|
|
@@ -7043,7 +7318,18 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7043
7318
|
path: z$1.ZodString;
|
|
7044
7319
|
sha256: z$1.ZodString;
|
|
7045
7320
|
sizeBytes: z$1.ZodNumber;
|
|
7046
|
-
}, z$1.core.$strip>,
|
|
7321
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7322
|
+
contentEncoding: z$1.ZodEnum<{
|
|
7323
|
+
base64: "base64";
|
|
7324
|
+
utf8: "utf8";
|
|
7325
|
+
}>;
|
|
7326
|
+
mimeType: z$1.ZodOptional<z$1.ZodString>;
|
|
7327
|
+
modifiedAtMs: z$1.ZodOptional<z$1.ZodNumber>;
|
|
7328
|
+
notModified: z$1.ZodLiteral<true>;
|
|
7329
|
+
path: z$1.ZodString;
|
|
7330
|
+
sha256: z$1.ZodString;
|
|
7331
|
+
sizeBytes: z$1.ZodNumber;
|
|
7332
|
+
}, z$1.core.$strip>]>, "onlineRpc", true>;
|
|
7047
7333
|
"host.read_file_relative": HostDaemonCommandDescriptor<"host.read_file_relative", z$1.ZodObject<{
|
|
7048
7334
|
dotfiles: z$1.ZodEnum<{
|
|
7049
7335
|
allow: "allow";
|
|
@@ -7417,11 +7703,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7417
7703
|
type: z$1.ZodLiteral<"workspace.status">;
|
|
7418
7704
|
workspaceContext: z$1.ZodObject<{
|
|
7419
7705
|
workspacePath: z$1.ZodString;
|
|
7420
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7421
|
-
"managed-worktree": "managed-worktree";
|
|
7422
|
-
personal: "personal";
|
|
7423
|
-
unmanaged: "unmanaged";
|
|
7424
|
-
}>;
|
|
7425
7706
|
}, z$1.core.$strip>;
|
|
7426
7707
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7427
7708
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -7509,7 +7790,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7509
7790
|
failure: z$1.ZodObject<{
|
|
7510
7791
|
code: z$1.ZodEnum<{
|
|
7511
7792
|
not_git_repo: "not_git_repo";
|
|
7512
|
-
not_worktree: "not_worktree";
|
|
7513
7793
|
path_not_found: "path_not_found";
|
|
7514
7794
|
permission_denied: "permission_denied";
|
|
7515
7795
|
unknown: "unknown";
|
|
@@ -7541,11 +7821,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7541
7821
|
type: z$1.ZodLiteral<"workspace.diff">;
|
|
7542
7822
|
workspaceContext: z$1.ZodObject<{
|
|
7543
7823
|
workspacePath: z$1.ZodString;
|
|
7544
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7545
|
-
"managed-worktree": "managed-worktree";
|
|
7546
|
-
personal: "personal";
|
|
7547
|
-
unmanaged: "unmanaged";
|
|
7548
|
-
}>;
|
|
7549
7824
|
}, z$1.core.$strip>;
|
|
7550
7825
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7551
7826
|
diff: z$1.ZodObject<{
|
|
@@ -7560,7 +7835,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7560
7835
|
failure: z$1.ZodObject<{
|
|
7561
7836
|
code: z$1.ZodEnum<{
|
|
7562
7837
|
not_git_repo: "not_git_repo";
|
|
7563
|
-
not_worktree: "not_worktree";
|
|
7564
7838
|
path_not_found: "path_not_found";
|
|
7565
7839
|
permission_denied: "permission_denied";
|
|
7566
7840
|
unknown: "unknown";
|
|
@@ -7590,11 +7864,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7590
7864
|
type: z$1.ZodLiteral<"workspace.diffFiles">;
|
|
7591
7865
|
workspaceContext: z$1.ZodObject<{
|
|
7592
7866
|
workspacePath: z$1.ZodString;
|
|
7593
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7594
|
-
"managed-worktree": "managed-worktree";
|
|
7595
|
-
personal: "personal";
|
|
7596
|
-
unmanaged: "unmanaged";
|
|
7597
|
-
}>;
|
|
7598
7867
|
}, z$1.core.$strip>;
|
|
7599
7868
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7600
7869
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -7624,7 +7893,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7624
7893
|
failure: z$1.ZodObject<{
|
|
7625
7894
|
code: z$1.ZodEnum<{
|
|
7626
7895
|
not_git_repo: "not_git_repo";
|
|
7627
|
-
not_worktree: "not_worktree";
|
|
7628
7896
|
path_not_found: "path_not_found";
|
|
7629
7897
|
permission_denied: "permission_denied";
|
|
7630
7898
|
unknown: "unknown";
|
|
@@ -7655,11 +7923,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7655
7923
|
type: z$1.ZodLiteral<"workspace.diffPatch">;
|
|
7656
7924
|
workspaceContext: z$1.ZodObject<{
|
|
7657
7925
|
workspacePath: z$1.ZodString;
|
|
7658
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7659
|
-
"managed-worktree": "managed-worktree";
|
|
7660
|
-
personal: "personal";
|
|
7661
|
-
unmanaged: "unmanaged";
|
|
7662
|
-
}>;
|
|
7663
7926
|
}, z$1.core.$strip>;
|
|
7664
7927
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7665
7928
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -7672,7 +7935,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7672
7935
|
failure: z$1.ZodObject<{
|
|
7673
7936
|
code: z$1.ZodEnum<{
|
|
7674
7937
|
not_git_repo: "not_git_repo";
|
|
7675
|
-
not_worktree: "not_worktree";
|
|
7676
7938
|
path_not_found: "path_not_found";
|
|
7677
7939
|
permission_denied: "permission_denied";
|
|
7678
7940
|
unknown: "unknown";
|
|
@@ -7689,11 +7951,6 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7689
7951
|
type: z$1.ZodLiteral<"workspace.pull_request">;
|
|
7690
7952
|
workspaceContext: z$1.ZodObject<{
|
|
7691
7953
|
workspacePath: z$1.ZodString;
|
|
7692
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
7693
|
-
"managed-worktree": "managed-worktree";
|
|
7694
|
-
personal: "personal";
|
|
7695
|
-
unmanaged: "unmanaged";
|
|
7696
|
-
}>;
|
|
7697
7954
|
}, z$1.core.$strip>;
|
|
7698
7955
|
}, z$1.core.$strict>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7699
7956
|
outcome: z$1.ZodLiteral<"available">;
|
|
@@ -7850,11 +8107,169 @@ declare const providerCliInstallEventSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodO
|
|
|
7850
8107
|
}, z$1.core.$strip>], "type">;
|
|
7851
8108
|
type ProviderCliInstallEvent = z$1.infer<typeof providerCliInstallEventSchema>;
|
|
7852
8109
|
|
|
8110
|
+
declare const desktopBrowserInstanceSchema: z$1.ZodObject<{
|
|
8111
|
+
generation: z$1.ZodString;
|
|
8112
|
+
instanceId: z$1.ZodString;
|
|
8113
|
+
label: z$1.ZodString;
|
|
8114
|
+
}, z$1.core.$strip>;
|
|
8115
|
+
declare const desktopBrowserCommandSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8116
|
+
type: z$1.ZodLiteral<"desktop.browser.list_instances">;
|
|
8117
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8118
|
+
generation: z$1.ZodString;
|
|
8119
|
+
instanceId: z$1.ZodString;
|
|
8120
|
+
threadId: z$1.ZodString;
|
|
8121
|
+
type: z$1.ZodLiteral<"desktop.browser.list_tabs">;
|
|
8122
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8123
|
+
generation: z$1.ZodString;
|
|
8124
|
+
instanceId: z$1.ZodString;
|
|
8125
|
+
presentation: z$1.ZodEnum<{
|
|
8126
|
+
hidden: "hidden";
|
|
8127
|
+
reveal: "reveal";
|
|
8128
|
+
}>;
|
|
8129
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8130
|
+
id: z$1.ZodString;
|
|
8131
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
8132
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8133
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
8134
|
+
}, z$1.core.$strip>], "kind">;
|
|
8135
|
+
tabId: z$1.ZodString;
|
|
8136
|
+
threadId: z$1.ZodString;
|
|
8137
|
+
type: z$1.ZodLiteral<"desktop.browser.create_tab">;
|
|
8138
|
+
url: z$1.ZodString;
|
|
8139
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8140
|
+
generation: z$1.ZodString;
|
|
8141
|
+
instanceId: z$1.ZodString;
|
|
8142
|
+
tabId: z$1.ZodString;
|
|
8143
|
+
threadId: z$1.ZodString;
|
|
8144
|
+
type: z$1.ZodLiteral<"desktop.browser.reveal_tab">;
|
|
8145
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8146
|
+
generation: z$1.ZodString;
|
|
8147
|
+
instanceId: z$1.ZodString;
|
|
8148
|
+
tabId: z$1.ZodString;
|
|
8149
|
+
threadId: z$1.ZodString;
|
|
8150
|
+
type: z$1.ZodLiteral<"desktop.browser.close_tab">;
|
|
8151
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8152
|
+
generation: z$1.ZodString;
|
|
8153
|
+
instanceId: z$1.ZodString;
|
|
8154
|
+
tabId: z$1.ZodString;
|
|
8155
|
+
threadId: z$1.ZodString;
|
|
8156
|
+
type: z$1.ZodLiteral<"desktop.browser.capture_tab">;
|
|
8157
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8158
|
+
controllerLabel: z$1.ZodString;
|
|
8159
|
+
expiresAt: z$1.ZodNumber;
|
|
8160
|
+
generation: z$1.ZodString;
|
|
8161
|
+
instanceId: z$1.ZodString;
|
|
8162
|
+
leaseId: z$1.ZodString;
|
|
8163
|
+
tabIds: z$1.ZodArray<z$1.ZodString>;
|
|
8164
|
+
threadId: z$1.ZodString;
|
|
8165
|
+
type: z$1.ZodLiteral<"desktop.browser.acquire_control">;
|
|
8166
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8167
|
+
generation: z$1.ZodString;
|
|
8168
|
+
instanceId: z$1.ZodString;
|
|
8169
|
+
leaseId: z$1.ZodString;
|
|
8170
|
+
tabIds: z$1.ZodArray<z$1.ZodString>;
|
|
8171
|
+
threadId: z$1.ZodString;
|
|
8172
|
+
type: z$1.ZodLiteral<"desktop.browser.open_connection">;
|
|
8173
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
8174
|
+
generation: z$1.ZodString;
|
|
8175
|
+
instanceId: z$1.ZodString;
|
|
8176
|
+
leaseId: z$1.ZodString;
|
|
8177
|
+
threadId: z$1.ZodString;
|
|
8178
|
+
type: z$1.ZodLiteral<"desktop.browser.release_control">;
|
|
8179
|
+
}, z$1.core.$strict>], "type">;
|
|
8180
|
+
declare const desktopBrowserResultSchemas: {
|
|
8181
|
+
"desktop.browser.list_instances": z$1.ZodObject<{
|
|
8182
|
+
instances: z$1.ZodArray<z$1.ZodObject<{
|
|
8183
|
+
generation: z$1.ZodString;
|
|
8184
|
+
instanceId: z$1.ZodString;
|
|
8185
|
+
label: z$1.ZodString;
|
|
8186
|
+
}, z$1.core.$strip>>;
|
|
8187
|
+
}, z$1.core.$strip>;
|
|
8188
|
+
"desktop.browser.list_tabs": z$1.ZodObject<{
|
|
8189
|
+
tabs: z$1.ZodArray<z$1.ZodObject<{
|
|
8190
|
+
control: z$1.ZodNullable<z$1.ZodObject<{
|
|
8191
|
+
controllerLabel: z$1.ZodString;
|
|
8192
|
+
expiresAt: z$1.ZodNumber;
|
|
8193
|
+
leaseId: z$1.ZodString;
|
|
8194
|
+
}, z$1.core.$strip>>;
|
|
8195
|
+
presentation: z$1.ZodEnum<{
|
|
8196
|
+
hidden: "hidden";
|
|
8197
|
+
reveal: "reveal";
|
|
8198
|
+
}>;
|
|
8199
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8200
|
+
id: z$1.ZodString;
|
|
8201
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
8202
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8203
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
8204
|
+
}, z$1.core.$strip>], "kind">;
|
|
8205
|
+
tabId: z$1.ZodString;
|
|
8206
|
+
threadId: z$1.ZodString;
|
|
8207
|
+
title: z$1.ZodString;
|
|
8208
|
+
url: z$1.ZodString;
|
|
8209
|
+
}, z$1.core.$strip>>;
|
|
8210
|
+
}, z$1.core.$strip>;
|
|
8211
|
+
"desktop.browser.create_tab": z$1.ZodObject<{
|
|
8212
|
+
tab: z$1.ZodObject<{
|
|
8213
|
+
control: z$1.ZodNullable<z$1.ZodObject<{
|
|
8214
|
+
controllerLabel: z$1.ZodString;
|
|
8215
|
+
expiresAt: z$1.ZodNumber;
|
|
8216
|
+
leaseId: z$1.ZodString;
|
|
8217
|
+
}, z$1.core.$strip>>;
|
|
8218
|
+
presentation: z$1.ZodEnum<{
|
|
8219
|
+
hidden: "hidden";
|
|
8220
|
+
reveal: "reveal";
|
|
8221
|
+
}>;
|
|
8222
|
+
profile: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8223
|
+
id: z$1.ZodString;
|
|
8224
|
+
kind: z$1.ZodLiteral<"automation">;
|
|
8225
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
8226
|
+
kind: z$1.ZodLiteral<"personal">;
|
|
8227
|
+
}, z$1.core.$strip>], "kind">;
|
|
8228
|
+
tabId: z$1.ZodString;
|
|
8229
|
+
threadId: z$1.ZodString;
|
|
8230
|
+
title: z$1.ZodString;
|
|
8231
|
+
url: z$1.ZodString;
|
|
8232
|
+
}, z$1.core.$strip>;
|
|
8233
|
+
}, z$1.core.$strip>;
|
|
8234
|
+
"desktop.browser.reveal_tab": z$1.ZodObject<{
|
|
8235
|
+
ok: z$1.ZodLiteral<true>;
|
|
8236
|
+
}, z$1.core.$strip>;
|
|
8237
|
+
"desktop.browser.close_tab": z$1.ZodObject<{
|
|
8238
|
+
ok: z$1.ZodLiteral<true>;
|
|
8239
|
+
}, z$1.core.$strip>;
|
|
8240
|
+
"desktop.browser.capture_tab": z$1.ZodObject<{
|
|
8241
|
+
base64: z$1.ZodString;
|
|
8242
|
+
height: z$1.ZodNumber;
|
|
8243
|
+
mimeType: z$1.ZodLiteral<"image/jpeg">;
|
|
8244
|
+
width: z$1.ZodNumber;
|
|
8245
|
+
}, z$1.core.$strip>;
|
|
8246
|
+
"desktop.browser.acquire_control": z$1.ZodObject<{
|
|
8247
|
+
lease: z$1.ZodObject<{
|
|
8248
|
+
controllerLabel: z$1.ZodString;
|
|
8249
|
+
expiresAt: z$1.ZodNumber;
|
|
8250
|
+
leaseId: z$1.ZodString;
|
|
8251
|
+
}, z$1.core.$strip>;
|
|
8252
|
+
}, z$1.core.$strip>;
|
|
8253
|
+
"desktop.browser.open_connection": z$1.ZodObject<{
|
|
8254
|
+
expiresAt: z$1.ZodNumber;
|
|
8255
|
+
wsEndpoint: z$1.ZodString;
|
|
8256
|
+
}, z$1.core.$strip>;
|
|
8257
|
+
"desktop.browser.release_control": z$1.ZodObject<{
|
|
8258
|
+
ok: z$1.ZodLiteral<true>;
|
|
8259
|
+
}, z$1.core.$strip>;
|
|
8260
|
+
};
|
|
8261
|
+
type DesktopBrowserCommand = z$1.infer<typeof desktopBrowserCommandSchema>;
|
|
8262
|
+
type DesktopBrowserCommandType = DesktopBrowserCommand["type"];
|
|
8263
|
+
type DesktopBrowserResult<T extends DesktopBrowserCommandType = DesktopBrowserCommandType> = z$1.infer<(typeof desktopBrowserResultSchemas)[T]>;
|
|
8264
|
+
type DesktopBrowserInstance = z$1.infer<typeof desktopBrowserInstanceSchema>;
|
|
8265
|
+
|
|
7853
8266
|
interface CreateFilePreviewResponse {
|
|
7854
8267
|
baseUrl: string;
|
|
7855
8268
|
expiresAtMs: number;
|
|
7856
8269
|
}
|
|
7857
|
-
type HostFileReadResponse = HostDaemonOnlineRpcResultByType["host.read_file"]
|
|
8270
|
+
type HostFileReadResponse = Exclude<HostDaemonOnlineRpcResultByType["host.read_file"], {
|
|
8271
|
+
notModified: true;
|
|
8272
|
+
}>;
|
|
7858
8273
|
type HostFileWriteResponse = HostDaemonOnlineRpcResultByType["host.write_file"];
|
|
7859
8274
|
type HostFileListResponse = HostDaemonOnlineRpcResultByType["host.list_files"];
|
|
7860
8275
|
type HostPathListResponse = HostDaemonOnlineRpcResultByType["host.list_paths"];
|
|
@@ -8899,8 +9314,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
8899
9314
|
defaultProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
8900
9315
|
managedBranchPrefix: z$1.ZodString;
|
|
8901
9316
|
providerOrder: z$1.ZodArray<z$1.ZodString>;
|
|
9317
|
+
showDiagnosticEvents: z$1.ZodBoolean;
|
|
8902
9318
|
showKeyboardHints: z$1.ZodBoolean;
|
|
8903
|
-
showUnhandledProviderEvents: z$1.ZodBoolean
|
|
9319
|
+
showUnhandledProviderEvents: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
8904
9320
|
steerActiveThreadOnEnter: z$1.ZodBoolean;
|
|
8905
9321
|
streamerMode: z$1.ZodBoolean;
|
|
8906
9322
|
}, z$1.core.$strict>;
|
|
@@ -9184,6 +9600,31 @@ declare const systemInstallCliSkillsResponseSchema: z$1.ZodObject<{
|
|
|
9184
9600
|
}, z$1.core.$strip>;
|
|
9185
9601
|
type SystemInstallCliSkillsResponse = z$1.infer<typeof systemInstallCliSkillsResponseSchema>;
|
|
9186
9602
|
type SystemConfigReloadResponse = z$1.infer<typeof systemConfigReloadResponseSchema>;
|
|
9603
|
+
declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
|
|
9604
|
+
acceptsEmptyInputs: z$1.ZodBoolean;
|
|
9605
|
+
availability: z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9606
|
+
status: z$1.ZodLiteral<"available">;
|
|
9607
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9608
|
+
message: z$1.ZodString;
|
|
9609
|
+
status: z$1.ZodLiteral<"setup-required">;
|
|
9610
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9611
|
+
message: z$1.ZodString;
|
|
9612
|
+
status: z$1.ZodLiteral<"unavailable">;
|
|
9613
|
+
}, z$1.core.$strip>], "status">>;
|
|
9614
|
+
displayName: z$1.ZodString;
|
|
9615
|
+
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
9616
|
+
id: z$1.ZodString;
|
|
9617
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
9618
|
+
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9619
|
+
pluginId: z$1.ZodString;
|
|
9620
|
+
requires: z$1.ZodObject<{
|
|
9621
|
+
gitCheckout: z$1.ZodBoolean;
|
|
9622
|
+
gitRemote: z$1.ZodBoolean;
|
|
9623
|
+
projectCheckout: z$1.ZodBoolean;
|
|
9624
|
+
projectless: z$1.ZodBoolean;
|
|
9625
|
+
}, z$1.core.$strip>;
|
|
9626
|
+
}, z$1.core.$strip>;
|
|
9627
|
+
type SystemEnvironmentProvider = z$1.infer<typeof systemEnvironmentProviderSchema>;
|
|
9187
9628
|
|
|
9188
9629
|
declare const terminalSessionSchema: z$1.ZodObject<{
|
|
9189
9630
|
closeReason: z$1.ZodNullable<z$1.ZodEnum<{
|
|
@@ -9482,8 +9923,10 @@ declare const timelineSystemRowSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
9482
9923
|
compaction: "compaction";
|
|
9483
9924
|
deprecation: "deprecation";
|
|
9484
9925
|
generic: "generic";
|
|
9926
|
+
reasoning: "reasoning";
|
|
9485
9927
|
warning: "warning";
|
|
9486
9928
|
}>;
|
|
9929
|
+
reasoningId: z$1.ZodOptional<z$1.ZodString>;
|
|
9487
9930
|
sourceSeqEnd: z$1.ZodNumber;
|
|
9488
9931
|
sourceSeqStart: z$1.ZodNumber;
|
|
9489
9932
|
startedAt: z$1.ZodNumber;
|
|
@@ -9568,6 +10011,11 @@ declare const timelineCommandWorkRowSchema: z$1.ZodObject<{
|
|
|
9568
10011
|
kind: z$1.ZodLiteral<"work">;
|
|
9569
10012
|
output: z$1.ZodString;
|
|
9570
10013
|
outputPreview: z$1.ZodOptional<z$1.ZodObject<{
|
|
10014
|
+
experimental_fullOutputAvailability: z$1.ZodEnum<{
|
|
10015
|
+
"detail-limit": "detail-limit";
|
|
10016
|
+
"retention-expired": "retention-expired";
|
|
10017
|
+
available: "available";
|
|
10018
|
+
}>;
|
|
9571
10019
|
totalChars: z$1.ZodNumber;
|
|
9572
10020
|
}, z$1.core.$strip>>;
|
|
9573
10021
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -9622,6 +10070,11 @@ declare const timelineToolWorkRowSchema: z$1.ZodObject<{
|
|
|
9622
10070
|
kind: z$1.ZodLiteral<"work">;
|
|
9623
10071
|
output: z$1.ZodString;
|
|
9624
10072
|
outputPreview: z$1.ZodOptional<z$1.ZodObject<{
|
|
10073
|
+
experimental_fullOutputAvailability: z$1.ZodEnum<{
|
|
10074
|
+
"detail-limit": "detail-limit";
|
|
10075
|
+
"retention-expired": "retention-expired";
|
|
10076
|
+
available: "available";
|
|
10077
|
+
}>;
|
|
9625
10078
|
totalChars: z$1.ZodNumber;
|
|
9626
10079
|
}, z$1.core.$strip>>;
|
|
9627
10080
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
@@ -9718,19 +10171,66 @@ declare const timelineFileChangeWorkRowSchema: z$1.ZodObject<{
|
|
|
9718
10171
|
interrupted: "interrupted";
|
|
9719
10172
|
pending: "pending";
|
|
9720
10173
|
}>;
|
|
9721
|
-
stderr: z$1.ZodNullable<z$1.ZodString>;
|
|
9722
|
-
stdout: z$1.ZodNullable<z$1.ZodString>;
|
|
10174
|
+
stderr: z$1.ZodNullable<z$1.ZodString>;
|
|
10175
|
+
stdout: z$1.ZodNullable<z$1.ZodString>;
|
|
10176
|
+
threadId: z$1.ZodString;
|
|
10177
|
+
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
10178
|
+
workKind: z$1.ZodLiteral<"file-change">;
|
|
10179
|
+
}, z$1.core.$strip>;
|
|
10180
|
+
type TimelineFileChangeWorkRow = z$1.infer<typeof timelineFileChangeWorkRowSchema>;
|
|
10181
|
+
declare const timelineWebSearchWorkRowSchema: z$1.ZodObject<{
|
|
10182
|
+
callId: z$1.ZodString;
|
|
10183
|
+
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
10184
|
+
createdAt: z$1.ZodNumber;
|
|
10185
|
+
id: z$1.ZodString;
|
|
10186
|
+
kind: z$1.ZodLiteral<"work">;
|
|
10187
|
+
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
10188
|
+
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
10189
|
+
glyph: z$1.ZodString;
|
|
10190
|
+
hint: z$1.ZodString;
|
|
10191
|
+
label: z$1.ZodString;
|
|
10192
|
+
tone: z$1.ZodEnum<{
|
|
10193
|
+
destructive: "destructive";
|
|
10194
|
+
neutral: "neutral";
|
|
10195
|
+
}>;
|
|
10196
|
+
}, z$1.core.$strip>>;
|
|
10197
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
10198
|
+
icon: z$1.ZodObject<{
|
|
10199
|
+
glyph: z$1.ZodString;
|
|
10200
|
+
}, z$1.core.$strip>;
|
|
10201
|
+
label: z$1.ZodObject<{
|
|
10202
|
+
completed: z$1.ZodString;
|
|
10203
|
+
pending: z$1.ZodString;
|
|
10204
|
+
}, z$1.core.$strip>;
|
|
10205
|
+
suppress: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
10206
|
+
tint: z$1.ZodOptional<z$1.ZodObject<{
|
|
10207
|
+
dark: z$1.ZodString;
|
|
10208
|
+
light: z$1.ZodString;
|
|
10209
|
+
}, z$1.core.$strip>>;
|
|
10210
|
+
title: z$1.ZodOptional<z$1.ZodString>;
|
|
10211
|
+
}, z$1.core.$strip>>;
|
|
10212
|
+
queries: z$1.ZodArray<z$1.ZodString>;
|
|
10213
|
+
sourceSeqEnd: z$1.ZodNumber;
|
|
10214
|
+
sourceSeqStart: z$1.ZodNumber;
|
|
10215
|
+
startedAt: z$1.ZodNumber;
|
|
10216
|
+
status: z$1.ZodEnum<{
|
|
10217
|
+
completed: "completed";
|
|
10218
|
+
error: "error";
|
|
10219
|
+
interrupted: "interrupted";
|
|
10220
|
+
pending: "pending";
|
|
10221
|
+
}>;
|
|
9723
10222
|
threadId: z$1.ZodString;
|
|
9724
10223
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
9725
|
-
workKind: z$1.ZodLiteral<"
|
|
10224
|
+
workKind: z$1.ZodLiteral<"web-search">;
|
|
9726
10225
|
}, z$1.core.$strip>;
|
|
9727
|
-
type
|
|
9728
|
-
declare const
|
|
10226
|
+
type TimelineWebSearchWorkRow = z$1.infer<typeof timelineWebSearchWorkRowSchema>;
|
|
10227
|
+
declare const timelineWebFetchWorkRowSchema: z$1.ZodObject<{
|
|
9729
10228
|
callId: z$1.ZodString;
|
|
9730
10229
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9731
10230
|
createdAt: z$1.ZodNumber;
|
|
9732
10231
|
id: z$1.ZodString;
|
|
9733
10232
|
kind: z$1.ZodLiteral<"work">;
|
|
10233
|
+
pattern: z$1.ZodNullable<z$1.ZodString>;
|
|
9734
10234
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
9735
10235
|
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
9736
10236
|
glyph: z$1.ZodString;
|
|
@@ -9756,7 +10256,7 @@ declare const timelineWebSearchWorkRowSchema: z$1.ZodObject<{
|
|
|
9756
10256
|
}, z$1.core.$strip>>;
|
|
9757
10257
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
9758
10258
|
}, z$1.core.$strip>>;
|
|
9759
|
-
|
|
10259
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
9760
10260
|
sourceSeqEnd: z$1.ZodNumber;
|
|
9761
10261
|
sourceSeqStart: z$1.ZodNumber;
|
|
9762
10262
|
startedAt: z$1.ZodNumber;
|
|
@@ -9768,16 +10268,17 @@ declare const timelineWebSearchWorkRowSchema: z$1.ZodObject<{
|
|
|
9768
10268
|
}>;
|
|
9769
10269
|
threadId: z$1.ZodString;
|
|
9770
10270
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
9771
|
-
|
|
10271
|
+
url: z$1.ZodString;
|
|
10272
|
+
workKind: z$1.ZodLiteral<"web-fetch">;
|
|
9772
10273
|
}, z$1.core.$strip>;
|
|
9773
|
-
type
|
|
9774
|
-
declare const
|
|
10274
|
+
type TimelineWebFetchWorkRow = z$1.infer<typeof timelineWebFetchWorkRowSchema>;
|
|
10275
|
+
declare const timelineImageViewWorkRowSchema: z$1.ZodObject<{
|
|
9775
10276
|
callId: z$1.ZodString;
|
|
9776
10277
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9777
10278
|
createdAt: z$1.ZodNumber;
|
|
9778
10279
|
id: z$1.ZodString;
|
|
9779
10280
|
kind: z$1.ZodLiteral<"work">;
|
|
9780
|
-
|
|
10281
|
+
path: z$1.ZodString;
|
|
9781
10282
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
9782
10283
|
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
9783
10284
|
glyph: z$1.ZodString;
|
|
@@ -9803,7 +10304,6 @@ declare const timelineWebFetchWorkRowSchema: z$1.ZodObject<{
|
|
|
9803
10304
|
}, z$1.core.$strip>>;
|
|
9804
10305
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
9805
10306
|
}, z$1.core.$strip>>;
|
|
9806
|
-
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
9807
10307
|
sourceSeqEnd: z$1.ZodNumber;
|
|
9808
10308
|
sourceSeqStart: z$1.ZodNumber;
|
|
9809
10309
|
startedAt: z$1.ZodNumber;
|
|
@@ -9815,17 +10315,17 @@ declare const timelineWebFetchWorkRowSchema: z$1.ZodObject<{
|
|
|
9815
10315
|
}>;
|
|
9816
10316
|
threadId: z$1.ZodString;
|
|
9817
10317
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
9818
|
-
|
|
9819
|
-
workKind: z$1.ZodLiteral<"web-fetch">;
|
|
10318
|
+
workKind: z$1.ZodLiteral<"image-view">;
|
|
9820
10319
|
}, z$1.core.$strip>;
|
|
9821
|
-
type
|
|
9822
|
-
declare const
|
|
10320
|
+
type TimelineImageViewWorkRow = z$1.infer<typeof timelineImageViewWorkRowSchema>;
|
|
10321
|
+
declare const timelineImageGenerationWorkRowSchema: z$1.ZodObject<{
|
|
9823
10322
|
callId: z$1.ZodString;
|
|
9824
10323
|
completedAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9825
10324
|
createdAt: z$1.ZodNumber;
|
|
10325
|
+
error: z$1.ZodNullable<z$1.ZodString>;
|
|
9826
10326
|
id: z$1.ZodString;
|
|
9827
10327
|
kind: z$1.ZodLiteral<"work">;
|
|
9828
|
-
path: z$1.ZodString
|
|
10328
|
+
path: z$1.ZodNullable<z$1.ZodString>;
|
|
9829
10329
|
presentation: z$1.ZodOptional<z$1.ZodObject<{
|
|
9830
10330
|
badge: z$1.ZodOptional<z$1.ZodObject<{
|
|
9831
10331
|
glyph: z$1.ZodString;
|
|
@@ -9851,6 +10351,7 @@ declare const timelineImageViewWorkRowSchema: z$1.ZodObject<{
|
|
|
9851
10351
|
}, z$1.core.$strip>>;
|
|
9852
10352
|
title: z$1.ZodOptional<z$1.ZodString>;
|
|
9853
10353
|
}, z$1.core.$strip>>;
|
|
10354
|
+
prompt: z$1.ZodNullable<z$1.ZodString>;
|
|
9854
10355
|
sourceSeqEnd: z$1.ZodNumber;
|
|
9855
10356
|
sourceSeqStart: z$1.ZodNumber;
|
|
9856
10357
|
startedAt: z$1.ZodNumber;
|
|
@@ -9861,10 +10362,11 @@ declare const timelineImageViewWorkRowSchema: z$1.ZodObject<{
|
|
|
9861
10362
|
pending: "pending";
|
|
9862
10363
|
}>;
|
|
9863
10364
|
threadId: z$1.ZodString;
|
|
10365
|
+
transparentBackground: z$1.ZodBoolean;
|
|
9864
10366
|
turnId: z$1.ZodNullable<z$1.ZodString>;
|
|
9865
|
-
workKind: z$1.ZodLiteral<"image-
|
|
10367
|
+
workKind: z$1.ZodLiteral<"image-generation">;
|
|
9866
10368
|
}, z$1.core.$strip>;
|
|
9867
|
-
type
|
|
10369
|
+
type TimelineImageGenerationWorkRow = z$1.infer<typeof timelineImageGenerationWorkRowSchema>;
|
|
9868
10370
|
declare const timelineFileReadWorkRowSchema: z$1.ZodObject<{
|
|
9869
10371
|
callId: z$1.ZodString;
|
|
9870
10372
|
cmd: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -10285,7 +10787,7 @@ declare const timelineWorkflowWorkRowSchema: z$1.ZodObject<{
|
|
|
10285
10787
|
workflowName: z$1.ZodNullable<z$1.ZodString>;
|
|
10286
10788
|
}, z$1.core.$strip>;
|
|
10287
10789
|
type TimelineWorkflowWorkRow = z$1.infer<typeof timelineWorkflowWorkRowSchema>;
|
|
10288
|
-
type TimelineWorkRow = TimelineCommandWorkRow | TimelineToolWorkRow | TimelineFileChangeWorkRow | TimelineWebSearchWorkRow | TimelineWebFetchWorkRow | TimelineImageViewWorkRow | TimelineFileReadWorkRow | TimelineSearchWorkRow | TimelinePlanStepsWorkRow | TimelineExtensionWorkRow | TimelineApprovalWorkRow | TimelineQuestionWorkRow | TimelineDelegationWorkRow | TimelineWorkflowWorkRow;
|
|
10790
|
+
type TimelineWorkRow = TimelineCommandWorkRow | TimelineToolWorkRow | TimelineFileChangeWorkRow | TimelineWebSearchWorkRow | TimelineWebFetchWorkRow | TimelineImageGenerationWorkRow | TimelineImageViewWorkRow | TimelineFileReadWorkRow | TimelineSearchWorkRow | TimelinePlanStepsWorkRow | TimelineExtensionWorkRow | TimelineApprovalWorkRow | TimelineQuestionWorkRow | TimelineDelegationWorkRow | TimelineWorkflowWorkRow;
|
|
10289
10791
|
interface TimelineTurnRow extends TimelineRowBase {
|
|
10290
10792
|
kind: "turn";
|
|
10291
10793
|
turnId: string;
|
|
@@ -10366,6 +10868,14 @@ declare const createThreadRequestSchema: z$1.ZodObject<{
|
|
|
10366
10868
|
}, z$1.core.$strip>], "type">;
|
|
10367
10869
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10368
10870
|
type: z$1.ZodLiteral<"project-default">;
|
|
10871
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10872
|
+
environmentProviderId: z$1.ZodString;
|
|
10873
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
10874
|
+
machine: z$1.ZodObject<{
|
|
10875
|
+
hostId: z$1.ZodString;
|
|
10876
|
+
type: z$1.ZodLiteral<"existing">;
|
|
10877
|
+
}, z$1.core.$strip>;
|
|
10878
|
+
type: z$1.ZodLiteral<"provider">;
|
|
10369
10879
|
}, z$1.core.$strip>], "type">;
|
|
10370
10880
|
executionInputSources: z$1.ZodOptional<z$1.ZodObject<{
|
|
10371
10881
|
model: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -10634,6 +11144,14 @@ declare const forkThreadRequestSchema: z$1.ZodObject<{
|
|
|
10634
11144
|
}, z$1.core.$strip>], "type">;
|
|
10635
11145
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
10636
11146
|
type: z$1.ZodLiteral<"project-default">;
|
|
11147
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
11148
|
+
environmentProviderId: z$1.ZodString;
|
|
11149
|
+
inputs: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>>;
|
|
11150
|
+
machine: z$1.ZodObject<{
|
|
11151
|
+
hostId: z$1.ZodString;
|
|
11152
|
+
type: z$1.ZodLiteral<"existing">;
|
|
11153
|
+
}, z$1.core.$strip>;
|
|
11154
|
+
type: z$1.ZodLiteral<"provider">;
|
|
10637
11155
|
}, z$1.core.$strip>], "type">>;
|
|
10638
11156
|
input: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10639
11157
|
mentions: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -10966,6 +11484,11 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
10966
11484
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
10967
11485
|
groupWithNext: z$1.ZodBoolean;
|
|
10968
11486
|
id: z$1.ZodString;
|
|
11487
|
+
initiator: z$1.ZodEnum<{
|
|
11488
|
+
agent: "agent";
|
|
11489
|
+
system: "system";
|
|
11490
|
+
user: "user";
|
|
11491
|
+
}>;
|
|
10969
11492
|
model: z$1.ZodString;
|
|
10970
11493
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10971
11494
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -10991,6 +11514,7 @@ declare const sendMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObjec
|
|
|
10991
11514
|
xhigh: "xhigh";
|
|
10992
11515
|
}>;
|
|
10993
11516
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
11517
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
10994
11518
|
serviceTier: z$1.ZodEnum<{
|
|
10995
11519
|
default: "default";
|
|
10996
11520
|
fast: "fast";
|
|
@@ -11507,6 +12031,11 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
11507
12031
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
11508
12032
|
groupWithNext: z$1.ZodBoolean;
|
|
11509
12033
|
id: z$1.ZodString;
|
|
12034
|
+
initiator: z$1.ZodEnum<{
|
|
12035
|
+
agent: "agent";
|
|
12036
|
+
system: "system";
|
|
12037
|
+
user: "user";
|
|
12038
|
+
}>;
|
|
11510
12039
|
model: z$1.ZodString;
|
|
11511
12040
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
11512
12041
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -11532,6 +12061,7 @@ declare const sendQueuedMessageResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.Zo
|
|
|
11532
12061
|
xhigh: "xhigh";
|
|
11533
12062
|
}>;
|
|
11534
12063
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
12064
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
11535
12065
|
serviceTier: z$1.ZodEnum<{
|
|
11536
12066
|
default: "default";
|
|
11537
12067
|
fast: "fast";
|
|
@@ -11573,7 +12103,10 @@ declare const threadListResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
11573
12103
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11574
12104
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
11575
12105
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12106
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
11576
12107
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12108
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12109
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11577
12110
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
11578
12111
|
"managed-worktree": "managed-worktree";
|
|
11579
12112
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -11672,7 +12205,10 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
11672
12205
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11673
12206
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
11674
12207
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12208
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
11675
12209
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12210
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12211
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11676
12212
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
11677
12213
|
"managed-worktree": "managed-worktree";
|
|
11678
12214
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -11762,7 +12298,10 @@ declare const threadSearchResponseSchema: z$1.ZodObject<{
|
|
|
11762
12298
|
environmentBranchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11763
12299
|
environmentHostId: z$1.ZodNullable<z$1.ZodString>;
|
|
11764
12300
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12301
|
+
environmentIsWorktree: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
11765
12302
|
environmentName: z$1.ZodNullable<z$1.ZodString>;
|
|
12303
|
+
environmentPath: z$1.ZodNullable<z$1.ZodString>;
|
|
12304
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
11766
12305
|
environmentWorkspaceDisplayKind: z$1.ZodEnum<{
|
|
11767
12306
|
"managed-worktree": "managed-worktree";
|
|
11768
12307
|
"unmanaged-worktree": "unmanaged-worktree";
|
|
@@ -11890,10 +12429,37 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
11890
12429
|
branchName: z$1.ZodNullable<z$1.ZodString>;
|
|
11891
12430
|
createdAt: z$1.ZodNumber;
|
|
11892
12431
|
defaultBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
12432
|
+
environmentProviderId: z$1.ZodNullable<z$1.ZodString>;
|
|
12433
|
+
environmentProviderInstanceKey: z$1.ZodNullable<z$1.ZodString>;
|
|
12434
|
+
environmentProviderSelection: z$1.ZodNullable<z$1.ZodObject<{
|
|
12435
|
+
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
12436
|
+
machine: z$1.ZodObject<{
|
|
12437
|
+
hostId: z$1.ZodString;
|
|
12438
|
+
type: z$1.ZodLiteral<"existing">;
|
|
12439
|
+
}, z$1.core.$strip>;
|
|
12440
|
+
}, z$1.core.$strip>>;
|
|
11893
12441
|
hostId: z$1.ZodString;
|
|
11894
12442
|
id: z$1.ZodString;
|
|
11895
12443
|
isGitRepo: z$1.ZodBoolean;
|
|
11896
12444
|
isWorktree: z$1.ZodBoolean;
|
|
12445
|
+
lifecycle: z$1.ZodObject<{
|
|
12446
|
+
phase: z$1.ZodEnum<{
|
|
12447
|
+
active: "active";
|
|
12448
|
+
destroyed: "destroyed";
|
|
12449
|
+
retiring: "retiring";
|
|
12450
|
+
teardown: "teardown";
|
|
12451
|
+
}>;
|
|
12452
|
+
retireAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
12453
|
+
teardown: z$1.ZodNullable<z$1.ZodObject<{
|
|
12454
|
+
attempt: z$1.ZodNumber;
|
|
12455
|
+
message: z$1.ZodOptional<z$1.ZodString>;
|
|
12456
|
+
status: z$1.ZodEnum<{
|
|
12457
|
+
failed: "failed";
|
|
12458
|
+
removed: "removed";
|
|
12459
|
+
running: "running";
|
|
12460
|
+
}>;
|
|
12461
|
+
}, z$1.core.$strip>>;
|
|
12462
|
+
}, z$1.core.$strip>;
|
|
11897
12463
|
managed: z$1.ZodBoolean;
|
|
11898
12464
|
mergeBaseBranch: z$1.ZodNullable<z$1.ZodString>;
|
|
11899
12465
|
name: z$1.ZodNullable<z$1.ZodString>;
|
|
@@ -11901,18 +12467,16 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
11901
12467
|
projectId: z$1.ZodString;
|
|
11902
12468
|
status: z$1.ZodEnum<{
|
|
11903
12469
|
destroyed: "destroyed";
|
|
11904
|
-
destroying: "destroying";
|
|
11905
12470
|
error: "error";
|
|
11906
12471
|
provisioning: "provisioning";
|
|
11907
12472
|
ready: "ready";
|
|
11908
|
-
retiring: "retiring";
|
|
11909
12473
|
}>;
|
|
11910
12474
|
updatedAt: z$1.ZodNumber;
|
|
11911
|
-
workspaceProvisionType: z$1.ZodEnum<{
|
|
12475
|
+
workspaceProvisionType: z$1.ZodNullable<z$1.ZodEnum<{
|
|
11912
12476
|
"managed-worktree": "managed-worktree";
|
|
11913
12477
|
personal: "personal";
|
|
11914
12478
|
unmanaged: "unmanaged";
|
|
11915
|
-
}
|
|
12479
|
+
}>>;
|
|
11916
12480
|
}, z$1.core.$strip>>>;
|
|
11917
12481
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
11918
12482
|
host: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
|
|
@@ -12323,6 +12887,11 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
12323
12887
|
failureReason: z$1.ZodNullable<z$1.ZodString>;
|
|
12324
12888
|
groupWithNext: z$1.ZodBoolean;
|
|
12325
12889
|
id: z$1.ZodString;
|
|
12890
|
+
initiator: z$1.ZodEnum<{
|
|
12891
|
+
agent: "agent";
|
|
12892
|
+
system: "system";
|
|
12893
|
+
user: "user";
|
|
12894
|
+
}>;
|
|
12326
12895
|
model: z$1.ZodString;
|
|
12327
12896
|
payload: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
12328
12897
|
kind: z$1.ZodLiteral<"inline">;
|
|
@@ -12348,6 +12917,7 @@ declare const threadQueuedMessageListResponseSchema: z$1.ZodArray<z$1.ZodObject<
|
|
|
12348
12917
|
xhigh: "xhigh";
|
|
12349
12918
|
}>;
|
|
12350
12919
|
sendAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
12920
|
+
senderThreadId: z$1.ZodNullable<z$1.ZodString>;
|
|
12351
12921
|
serviceTier: z$1.ZodEnum<{
|
|
12352
12922
|
default: "default";
|
|
12353
12923
|
fast: "fast";
|
|
@@ -12451,6 +13021,7 @@ declare const threadListQuerySchema: z$1.ZodObject<{
|
|
|
12451
13021
|
false: "false";
|
|
12452
13022
|
true: "true";
|
|
12453
13023
|
}>>;
|
|
13024
|
+
environmentId: z$1.ZodOptional<z$1.ZodString>;
|
|
12454
13025
|
hasParent: z$1.ZodOptional<z$1.ZodEnum<{
|
|
12455
13026
|
false: "false";
|
|
12456
13027
|
true: "true";
|
|
@@ -12875,6 +13446,76 @@ declare const threadStoragePathListResponseSchema: z$1.ZodObject<{
|
|
|
12875
13446
|
}, z$1.core.$strip>;
|
|
12876
13447
|
type ThreadStoragePathListResponse = z$1.infer<typeof threadStoragePathListResponseSchema>;
|
|
12877
13448
|
|
|
13449
|
+
declare const desktopBrowserHostRequestSchema: z$1.ZodObject<{
|
|
13450
|
+
hostId: z$1.ZodString;
|
|
13451
|
+
}, z$1.core.$strict>;
|
|
13452
|
+
declare const desktopBrowserScopeSchema: z$1.ZodObject<{
|
|
13453
|
+
generation: z$1.ZodString;
|
|
13454
|
+
hostId: z$1.ZodString;
|
|
13455
|
+
instanceId: z$1.ZodString;
|
|
13456
|
+
threadId: z$1.ZodString;
|
|
13457
|
+
}, z$1.core.$strict>;
|
|
13458
|
+
declare const desktopBrowserTabRequestSchema: z$1.ZodObject<{
|
|
13459
|
+
generation: z$1.ZodString;
|
|
13460
|
+
hostId: z$1.ZodString;
|
|
13461
|
+
instanceId: z$1.ZodString;
|
|
13462
|
+
tabId: z$1.ZodString;
|
|
13463
|
+
threadId: z$1.ZodString;
|
|
13464
|
+
}, z$1.core.$strict>;
|
|
13465
|
+
declare const desktopBrowserCreateRequestSchema: z$1.ZodObject<{
|
|
13466
|
+
generation: z$1.ZodString;
|
|
13467
|
+
hostId: z$1.ZodString;
|
|
13468
|
+
instanceId: z$1.ZodString;
|
|
13469
|
+
presentation: z$1.ZodDefault<z$1.ZodEnum<{
|
|
13470
|
+
hidden: "hidden";
|
|
13471
|
+
reveal: "reveal";
|
|
13472
|
+
}>>;
|
|
13473
|
+
threadId: z$1.ZodString;
|
|
13474
|
+
url: z$1.ZodDefault<z$1.ZodPipe<z$1.ZodString, z$1.ZodString>>;
|
|
13475
|
+
}, z$1.core.$strict>;
|
|
13476
|
+
declare const desktopBrowserAcquireRequestSchema: z$1.ZodObject<{
|
|
13477
|
+
allowPersonal: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
13478
|
+
controllerLabel: z$1.ZodString;
|
|
13479
|
+
generation: z$1.ZodString;
|
|
13480
|
+
hostId: z$1.ZodString;
|
|
13481
|
+
instanceId: z$1.ZodString;
|
|
13482
|
+
tabIds: z$1.ZodArray<z$1.ZodString>;
|
|
13483
|
+
threadId: z$1.ZodString;
|
|
13484
|
+
ttlMs: z$1.ZodDefault<z$1.ZodNumber>;
|
|
13485
|
+
}, z$1.core.$strict>;
|
|
13486
|
+
declare const desktopBrowserLeaseRequestSchema: z$1.ZodObject<{
|
|
13487
|
+
generation: z$1.ZodString;
|
|
13488
|
+
hostId: z$1.ZodString;
|
|
13489
|
+
instanceId: z$1.ZodString;
|
|
13490
|
+
leaseId: z$1.ZodString;
|
|
13491
|
+
threadId: z$1.ZodString;
|
|
13492
|
+
}, z$1.core.$strict>;
|
|
13493
|
+
type ExperimentalDesktopBrowserHostRequest = z$1.infer<typeof desktopBrowserHostRequestSchema>;
|
|
13494
|
+
type ExperimentalDesktopBrowserScope = z$1.infer<typeof desktopBrowserScopeSchema>;
|
|
13495
|
+
type ExperimentalDesktopBrowserTabRequest = z$1.infer<typeof desktopBrowserTabRequestSchema>;
|
|
13496
|
+
type ExperimentalDesktopBrowserLeaseRequest = z$1.infer<typeof desktopBrowserLeaseRequestSchema>;
|
|
13497
|
+
type ExperimentalDesktopBrowserCreateInput = z$1.input<typeof desktopBrowserCreateRequestSchema>;
|
|
13498
|
+
type ExperimentalDesktopBrowserAcquireInput = z$1.input<typeof desktopBrowserAcquireRequestSchema>;
|
|
13499
|
+
type ExperimentalDesktopBrowserLease = ExperimentalDesktopBrowserScope & {
|
|
13500
|
+
leaseId: string;
|
|
13501
|
+
tabIds: string[];
|
|
13502
|
+
controllerLabel: string;
|
|
13503
|
+
expiresAt: number;
|
|
13504
|
+
};
|
|
13505
|
+
type ExperimentalDesktopBrowserInstances = {
|
|
13506
|
+
instances: (DesktopBrowserInstance & {
|
|
13507
|
+
hostId: string;
|
|
13508
|
+
})[];
|
|
13509
|
+
};
|
|
13510
|
+
type ExperimentalDesktopBrowserTabs = DesktopBrowserResult<"desktop.browser.list_tabs">;
|
|
13511
|
+
type ExperimentalDesktopBrowserCreated = DesktopBrowserResult<"desktop.browser.create_tab">;
|
|
13512
|
+
type ExperimentalDesktopBrowserCapture = DesktopBrowserResult<"desktop.browser.capture_tab">;
|
|
13513
|
+
type ExperimentalDesktopBrowserConnection = {
|
|
13514
|
+
hostId: string;
|
|
13515
|
+
wsEndpoint: string;
|
|
13516
|
+
expiresAt: number;
|
|
13517
|
+
};
|
|
13518
|
+
|
|
12878
13519
|
declare const threadTabsResponseSchema: z$1.ZodObject<{
|
|
12879
13520
|
revision: z$1.ZodNumber;
|
|
12880
13521
|
tabs: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -12977,6 +13618,11 @@ declare const threadTabsResponseSchema: z$1.ZodObject<{
|
|
|
12977
13618
|
path: z$1.ZodString;
|
|
12978
13619
|
threadId: z$1.ZodNullable<z$1.ZodString>;
|
|
12979
13620
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13621
|
+
desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
|
|
13622
|
+
generation: z$1.ZodString;
|
|
13623
|
+
hostId: z$1.ZodString;
|
|
13624
|
+
instanceId: z$1.ZodString;
|
|
13625
|
+
}, z$1.core.$strict>>;
|
|
12980
13626
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
12981
13627
|
id: z$1.ZodString;
|
|
12982
13628
|
kind: z$1.ZodLiteral<"browser">;
|
|
@@ -13112,6 +13758,11 @@ declare const updateThreadTabsRequestSchema: z$1.ZodObject<{
|
|
|
13112
13758
|
path: z$1.ZodString;
|
|
13113
13759
|
threadId: z$1.ZodNullable<z$1.ZodString>;
|
|
13114
13760
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
13761
|
+
desktopTarget: z$1.ZodOptional<z$1.ZodObject<{
|
|
13762
|
+
generation: z$1.ZodString;
|
|
13763
|
+
hostId: z$1.ZodString;
|
|
13764
|
+
instanceId: z$1.ZodString;
|
|
13765
|
+
}, z$1.core.$strict>>;
|
|
13115
13766
|
environmentId: z$1.ZodNullable<z$1.ZodString>;
|
|
13116
13767
|
id: z$1.ZodString;
|
|
13117
13768
|
kind: z$1.ZodLiteral<"browser">;
|
|
@@ -13895,11 +14546,6 @@ interface ExperimentalSidebarFooter {
|
|
|
13895
14546
|
* one.
|
|
13896
14547
|
*/
|
|
13897
14548
|
type PluginSidebarThreadIndicator = "background-agent" | "background-command" | "draft" | "goal" | "none" | "plan-mode" | "runtime" | "unread-error" | "unread-success" | "waiting-for-input" | "workflow" | "working-draft";
|
|
13898
|
-
/**
|
|
13899
|
-
* How a thread's environment presents its workspace: a worktree bb manages,
|
|
13900
|
-
* a worktree the user manages, or anything else (a plain checkout).
|
|
13901
|
-
*/
|
|
13902
|
-
type PluginSidebarWorkspaceKind = "managed-worktree" | "other" | "unmanaged-worktree";
|
|
13903
14549
|
/** Live work counts on a thread. All zero means nothing is running. */
|
|
13904
14550
|
interface PluginSidebarThreadActivity {
|
|
13905
14551
|
workflows: number;
|
|
@@ -13948,7 +14594,14 @@ interface PluginSidebarThread {
|
|
|
13948
14594
|
id: string | null;
|
|
13949
14595
|
name: string | null;
|
|
13950
14596
|
branchName: string | null;
|
|
13951
|
-
|
|
14597
|
+
/**
|
|
14598
|
+
* The id of the environment provider that produced this environment, or
|
|
14599
|
+
* null for a project's own checkout. Resolve it against
|
|
14600
|
+
* `GET /system/environment-providers` for a display name and icon.
|
|
14601
|
+
*/
|
|
14602
|
+
providerId: string | null;
|
|
14603
|
+
/** @deprecated Use providerId and the environment provider catalog instead. */
|
|
14604
|
+
workspaceDisplayKind: EnvironmentWorkspaceDisplayKind | null;
|
|
13952
14605
|
} | null;
|
|
13953
14606
|
/**
|
|
13954
14607
|
* The machine this thread's work runs on, with the name resolved for you.
|
|
@@ -14481,6 +15134,52 @@ interface PluginTimelineRendererRegistration {
|
|
|
14481
15134
|
kind: string;
|
|
14482
15135
|
component: ComponentType<PluginTimelineRendererProps>;
|
|
14483
15136
|
}
|
|
15137
|
+
/**
|
|
15138
|
+
* Props passed to an `experimental_environmentProviderInputs` component — the
|
|
15139
|
+
* control the New Thread environment picker renders beside this plugin's
|
|
15140
|
+
* selected environment provider, for the provider's declared `inputs`.
|
|
15141
|
+
*/
|
|
15142
|
+
interface PluginEnvironmentProviderInputsProps {
|
|
15143
|
+
/** Project selected in the composer; null in projectless compose. */
|
|
15144
|
+
projectId: string | null;
|
|
15145
|
+
/**
|
|
15146
|
+
* The enrolled machine the selection names; null before one is picked.
|
|
15147
|
+
*/
|
|
15148
|
+
hostId: string | null;
|
|
15149
|
+
/**
|
|
15150
|
+
* The `inputs` value the selection will carry: null until `onChange`
|
|
15151
|
+
* supplies one.
|
|
15152
|
+
* The server parses it with the provider's `inputs` schema at create time,
|
|
15153
|
+
* so the component only has to produce a value that schema accepts.
|
|
15154
|
+
*/
|
|
15155
|
+
value: JsonValue | null;
|
|
15156
|
+
/**
|
|
15157
|
+
* Replace the inputs that will be submitted or block submission with the
|
|
15158
|
+
* reason the control should show.
|
|
15159
|
+
*/
|
|
15160
|
+
onChange(next: PluginEnvironmentProviderInputsChange): void;
|
|
15161
|
+
}
|
|
15162
|
+
type PluginEnvironmentProviderInputsChange = {
|
|
15163
|
+
status: "ready";
|
|
15164
|
+
value: JsonValue;
|
|
15165
|
+
} | {
|
|
15166
|
+
status: "blocked";
|
|
15167
|
+
reason: string;
|
|
15168
|
+
};
|
|
15169
|
+
/**
|
|
15170
|
+
* Supply the control for one of this plugin's environment providers that
|
|
15171
|
+
* declared `inputs` (registered server-side via
|
|
15172
|
+
* `bb.experimental_environments.register`). The New Thread environment picker
|
|
15173
|
+
* renders the component beside the picker while that provider is selected and
|
|
15174
|
+
* submits the component's latest `onChange` value as the selection's `inputs`.
|
|
15175
|
+
* A provider whose schema rejects empty inputs cannot be submitted without a
|
|
15176
|
+
* registration that reports ready inputs.
|
|
15177
|
+
*/
|
|
15178
|
+
interface PluginEnvironmentProviderInputsRegistration {
|
|
15179
|
+
/** The environment provider id this control supplies inputs for. */
|
|
15180
|
+
environmentProviderId: string;
|
|
15181
|
+
component: ComponentType<PluginEnvironmentProviderInputsProps>;
|
|
15182
|
+
}
|
|
14484
15183
|
interface PluginAppSlots {
|
|
14485
15184
|
homepageSection(registration: PluginHomepageSectionRegistration): void;
|
|
14486
15185
|
settingsSection(registration: PluginSettingsSectionRegistration): void;
|
|
@@ -14539,8 +15238,8 @@ interface PluginAppSlots {
|
|
|
14539
15238
|
*/
|
|
14540
15239
|
commandPaletteAction(registration: PluginCommandPaletteActionRegistration): void;
|
|
14541
15240
|
/**
|
|
14542
|
-
* Draw one agent provider's icon with an inline
|
|
14543
|
-
* its `<img>`-rendered logo file (see
|
|
15241
|
+
* Draw one agent or environment provider's icon with an inline
|
|
15242
|
+
* React component instead of its `<img>`-rendered logo file (see
|
|
14544
15243
|
* {@link PluginProviderIconRegistration}). Experimental: see
|
|
14545
15244
|
* docs/api_to_audit.md.
|
|
14546
15245
|
*/
|
|
@@ -14552,6 +15251,13 @@ interface PluginAppSlots {
|
|
|
14552
15251
|
* docs/api_to_audit.md.
|
|
14553
15252
|
*/
|
|
14554
15253
|
experimental_timelineRenderer(registration: PluginTimelineRendererRegistration): void;
|
|
15254
|
+
/**
|
|
15255
|
+
* Supply the inputs control the New Thread environment picker renders
|
|
15256
|
+
* beside one of this plugin's selected environment providers (see
|
|
15257
|
+
* {@link PluginEnvironmentProviderInputsRegistration}). Experimental:
|
|
15258
|
+
* see docs/api_to_audit.md.
|
|
15259
|
+
*/
|
|
15260
|
+
experimental_environmentProviderInputs(registration: PluginEnvironmentProviderInputsRegistration): void;
|
|
14555
15261
|
}
|
|
14556
15262
|
interface PluginAppComposer {
|
|
14557
15263
|
customize(registration: ComposerCustomization): void;
|
|
@@ -14959,6 +15665,65 @@ interface ExperimentalProviderModelPickerProps {
|
|
|
14959
15665
|
disabled?: boolean;
|
|
14960
15666
|
className?: string;
|
|
14961
15667
|
}
|
|
15668
|
+
/**
|
|
15669
|
+
* Props of the host-owned `experimental_BranchPicker` component — bb's branch
|
|
15670
|
+
* picker bundled with its branch-options loading for the given host and
|
|
15671
|
+
* project, the control bb's own New Thread composer renders as "Branch from".
|
|
15672
|
+
* The host owns fetching, searching, and refreshing the branch list; the
|
|
15673
|
+
* caller owns only the selection.
|
|
15674
|
+
*/
|
|
15675
|
+
interface BranchPickerProps {
|
|
15676
|
+
/**
|
|
15677
|
+
* The enrolled machine whose project checkout supplies the branch list.
|
|
15678
|
+
* Null renders the picker disabled with no options.
|
|
15679
|
+
*/
|
|
15680
|
+
hostId: string | null;
|
|
15681
|
+
/** The project whose source on `hostId` is listed; null disables loading. */
|
|
15682
|
+
projectId: string | null;
|
|
15683
|
+
/**
|
|
15684
|
+
* The selected branch name, or null when no branch is chosen (the host
|
|
15685
|
+
* shows its placeholder and the consumer falls back to its own default).
|
|
15686
|
+
*/
|
|
15687
|
+
value: string | null;
|
|
15688
|
+
/** Called with the picked branch name, or null when the pick is cleared. */
|
|
15689
|
+
onChange(next: string | null): void;
|
|
15690
|
+
/**
|
|
15691
|
+
* Text placed before the branch on the trigger, e.g. "Base:". Omitted, the
|
|
15692
|
+
* trigger is the branch alone.
|
|
15693
|
+
*/
|
|
15694
|
+
label?: string;
|
|
15695
|
+
/**
|
|
15696
|
+
* The trigger while nothing is picked. Omitted, the host shows the resolved
|
|
15697
|
+
* default worktree base branch muted, or a neutral `default` placeholder
|
|
15698
|
+
* when the base cannot be resolved.
|
|
15699
|
+
*/
|
|
15700
|
+
placeholder?: string;
|
|
15701
|
+
/** Render the current selection without allowing changes. */
|
|
15702
|
+
disabled?: boolean;
|
|
15703
|
+
}
|
|
15704
|
+
interface UseBranchesArgs {
|
|
15705
|
+
hostId: string | null;
|
|
15706
|
+
projectId: string | null;
|
|
15707
|
+
query?: string;
|
|
15708
|
+
}
|
|
15709
|
+
interface BranchesState {
|
|
15710
|
+
branches: readonly string[];
|
|
15711
|
+
remoteBranches: readonly string[];
|
|
15712
|
+
isLoading: boolean;
|
|
15713
|
+
refresh(): Promise<void>;
|
|
15714
|
+
}
|
|
15715
|
+
interface UseCheckoutStateArgs {
|
|
15716
|
+
hostId: string | null;
|
|
15717
|
+
projectId: string | null;
|
|
15718
|
+
}
|
|
15719
|
+
interface CheckoutState {
|
|
15720
|
+
isGit: boolean | null;
|
|
15721
|
+
unborn: boolean;
|
|
15722
|
+
detached: boolean;
|
|
15723
|
+
dirty: boolean;
|
|
15724
|
+
currentBranch: string | null;
|
|
15725
|
+
operation: WorkspaceGitOperation;
|
|
15726
|
+
}
|
|
14962
15727
|
/** Props of BB's controlled, host-resolved permission-mode picker. */
|
|
14963
15728
|
interface ExperimentalPermissionModePickerProps {
|
|
14964
15729
|
/** Provider whose supported modes determine the available choices. */
|
|
@@ -15364,6 +16129,23 @@ interface PluginSdkApp {
|
|
|
15364
16129
|
* see docs/api_to_audit.md.
|
|
15365
16130
|
*/
|
|
15366
16131
|
experimental_PermissionModePicker: ComponentType<ExperimentalPermissionModePickerProps>;
|
|
16132
|
+
/**
|
|
16133
|
+
* BB's branch picker with its branch-options loading for one host and
|
|
16134
|
+
* project (see {@link BranchPickerProps}) — the same control
|
|
16135
|
+
* the New Thread composer renders as "Branch from". Experimental: see
|
|
16136
|
+
* docs/api_to_audit.md.
|
|
16137
|
+
*/
|
|
16138
|
+
experimental_BranchPicker: ComponentType<BranchPickerProps>;
|
|
16139
|
+
/**
|
|
16140
|
+
* Search and refresh the branch list for one project source. Experimental:
|
|
16141
|
+
* see docs/api_to_audit.md.
|
|
16142
|
+
*/
|
|
16143
|
+
experimental_useBranches(args: UseBranchesArgs): BranchesState;
|
|
16144
|
+
/**
|
|
16145
|
+
* Inspect the checkout state for one project source. Experimental: see
|
|
16146
|
+
* docs/api_to_audit.md.
|
|
16147
|
+
*/
|
|
16148
|
+
experimental_useCheckoutState(args: UseCheckoutStateArgs): CheckoutState;
|
|
15367
16149
|
/**
|
|
15368
16150
|
* The host-owned source viewer (see {@link SourceCodeProps}). Renders
|
|
15369
16151
|
* supplied source text with BB's syntax highlighting, gutters, and live code
|
|
@@ -15383,6 +16165,136 @@ interface PluginSdkApp {
|
|
|
15383
16165
|
useComposerView(): ComposerView;
|
|
15384
16166
|
}
|
|
15385
16167
|
|
|
16168
|
+
type PluginEnvironmentProviderInputsSchema = StandardSchemaV1$1 | undefined;
|
|
16169
|
+
type Fact<R, K extends PropertyKey, T> = R extends Record<K, true> ? T : T | null;
|
|
16170
|
+
type Checkout<R> = R extends {
|
|
16171
|
+
projectCheckout: true;
|
|
16172
|
+
} | {
|
|
16173
|
+
gitCheckout: true;
|
|
16174
|
+
} ? {
|
|
16175
|
+
path: string;
|
|
16176
|
+
} : {
|
|
16177
|
+
path: string;
|
|
16178
|
+
} | null;
|
|
16179
|
+
type InputsValue<S> = S extends StandardSchemaV1$1 ? StandardSchemaV1InferOutput$1<S> : null;
|
|
16180
|
+
/** Attempt-scoped updates; core persists each update before this call returns. */
|
|
16181
|
+
interface PluginEnvironmentProviderProgress {
|
|
16182
|
+
step(text: string): void;
|
|
16183
|
+
log(text: string): void;
|
|
16184
|
+
}
|
|
16185
|
+
interface PluginEnvironmentProviderValidateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
16186
|
+
project: Project;
|
|
16187
|
+
host: Host;
|
|
16188
|
+
projectCheckout: Checkout<R>;
|
|
16189
|
+
gitRemote: Fact<R, "gitRemote", string>;
|
|
16190
|
+
inputs: InputsValue<S>;
|
|
16191
|
+
}
|
|
16192
|
+
interface PluginEnvironmentProviderAvailabilityContext {
|
|
16193
|
+
project: Project;
|
|
16194
|
+
host: Host | null;
|
|
16195
|
+
projectCheckout: {
|
|
16196
|
+
path: string;
|
|
16197
|
+
} | null;
|
|
16198
|
+
gitRemote: string | null;
|
|
16199
|
+
}
|
|
16200
|
+
type PluginEnvironmentProviderAvailability = {
|
|
16201
|
+
status: "available";
|
|
16202
|
+
} | {
|
|
16203
|
+
status: "setup-required";
|
|
16204
|
+
message: string;
|
|
16205
|
+
} | {
|
|
16206
|
+
status: "unavailable";
|
|
16207
|
+
message: string;
|
|
16208
|
+
};
|
|
16209
|
+
interface PluginEnvironmentProviderCreateContext<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> extends PluginEnvironmentProviderValidateContext<R, S> {
|
|
16210
|
+
thread: ThreadResponse;
|
|
16211
|
+
suggestedBranchName: string;
|
|
16212
|
+
attempt: number;
|
|
16213
|
+
pathKey: string;
|
|
16214
|
+
rebuild: boolean;
|
|
16215
|
+
experimental_claimPath(path: string): Promise<boolean>;
|
|
16216
|
+
/** Resource is private to this provider; null after completed removal. */
|
|
16217
|
+
previous: {
|
|
16218
|
+
environment: Environment;
|
|
16219
|
+
resource: JsonValue$2 | null;
|
|
16220
|
+
} | null;
|
|
16221
|
+
report: PluginEnvironmentProviderProgress;
|
|
16222
|
+
signal: AbortSignal;
|
|
16223
|
+
}
|
|
16224
|
+
type PluginEnvironmentProviderCreateResult = {
|
|
16225
|
+
status: "created";
|
|
16226
|
+
path: string;
|
|
16227
|
+
ownsPath: boolean;
|
|
16228
|
+
mergeBaseBranch?: string;
|
|
16229
|
+
resource?: JsonValue$2;
|
|
16230
|
+
} | {
|
|
16231
|
+
status: "failed";
|
|
16232
|
+
failure: "terminal" | "transient";
|
|
16233
|
+
message: string;
|
|
16234
|
+
};
|
|
16235
|
+
interface PluginEnvironmentProviderRemoveContext {
|
|
16236
|
+
environment: Environment | null;
|
|
16237
|
+
hostId: string | null;
|
|
16238
|
+
path: string | null;
|
|
16239
|
+
pathKey: string;
|
|
16240
|
+
resource: JsonValue$2 | null;
|
|
16241
|
+
attempt: number;
|
|
16242
|
+
report: PluginEnvironmentProviderProgress;
|
|
16243
|
+
signal: AbortSignal;
|
|
16244
|
+
}
|
|
16245
|
+
type PluginEnvironmentProviderRemoveResult = {
|
|
16246
|
+
status: "removed";
|
|
16247
|
+
} | {
|
|
16248
|
+
status: "failed";
|
|
16249
|
+
message: string;
|
|
16250
|
+
};
|
|
16251
|
+
/** Core normalizes omitted policy members once at registration. */
|
|
16252
|
+
interface PluginEnvironmentProviderPolicy {
|
|
16253
|
+
/** Default five minutes; null keeps the environment indefinitely. */
|
|
16254
|
+
retireGraceMs: number | null;
|
|
16255
|
+
/** Default per-thread; rebuilds use a fresh key to avoid dead paths. */
|
|
16256
|
+
pathKeys: "per-attempt" | "per-thread";
|
|
16257
|
+
}
|
|
16258
|
+
/** Resource operations only. Core owns durable launches, retries and retirement. */
|
|
16259
|
+
interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProviderRequirements$1 = PluginEnvironmentProviderRequirements$1, S extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> {
|
|
16260
|
+
id: string;
|
|
16261
|
+
displayName: string;
|
|
16262
|
+
/** Host glyph, plugin-relative icon path, or this plugin’s declared namespaced icon. */
|
|
16263
|
+
icon?: string;
|
|
16264
|
+
requires?: R;
|
|
16265
|
+
inputs?: S;
|
|
16266
|
+
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
16267
|
+
/** Experimental: see docs/api_to_audit.md. */
|
|
16268
|
+
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
16269
|
+
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision$1 | Promise<PluginEnvironmentValidateDecision$1>;
|
|
16270
|
+
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
16271
|
+
remove(context: PluginEnvironmentProviderRemoveContext): Promise<PluginEnvironmentProviderRemoveResult>;
|
|
16272
|
+
}
|
|
16273
|
+
|
|
16274
|
+
interface ExperimentalDesktopBrowsersArea {
|
|
16275
|
+
listInstances(input: ExperimentalDesktopBrowserHostRequest): Promise<ExperimentalDesktopBrowserInstances>;
|
|
16276
|
+
listTabs(input: ExperimentalDesktopBrowserScope): Promise<ExperimentalDesktopBrowserTabs>;
|
|
16277
|
+
createTab(input: ExperimentalDesktopBrowserCreateInput): Promise<ExperimentalDesktopBrowserCreated>;
|
|
16278
|
+
acquireControl(input: ExperimentalDesktopBrowserAcquireInput): Promise<ExperimentalDesktopBrowserLease>;
|
|
16279
|
+
openConnection(input: ExperimentalDesktopBrowserLeaseRequest): Promise<ExperimentalDesktopBrowserConnection>;
|
|
16280
|
+
releaseControl(input: ExperimentalDesktopBrowserLeaseRequest): Promise<{
|
|
16281
|
+
ok: true;
|
|
16282
|
+
}>;
|
|
16283
|
+
revealTab(input: ExperimentalDesktopBrowserTabRequest): Promise<{
|
|
16284
|
+
ok: true;
|
|
16285
|
+
}>;
|
|
16286
|
+
closeTab(input: ExperimentalDesktopBrowserTabRequest): Promise<{
|
|
16287
|
+
ok: true;
|
|
16288
|
+
}>;
|
|
16289
|
+
captureTab(input: ExperimentalDesktopBrowserTabRequest): Promise<ExperimentalDesktopBrowserCapture>;
|
|
16290
|
+
subscribe(input: ExperimentalDesktopBrowserScope & {
|
|
16291
|
+
onChange: (result: ExperimentalDesktopBrowserTabs) => void;
|
|
16292
|
+
onError: (error: Error) => void;
|
|
16293
|
+
}): {
|
|
16294
|
+
dispose(): void;
|
|
16295
|
+
};
|
|
16296
|
+
}
|
|
16297
|
+
|
|
15386
16298
|
interface EnvironmentActionArgs {
|
|
15387
16299
|
environmentId: string;
|
|
15388
16300
|
}
|
|
@@ -15449,6 +16361,30 @@ type EnvironmentPathsResult = WorkspacePathListResponse;
|
|
|
15449
16361
|
type EnvironmentPullRequestResult = EnvironmentPullRequestResponse;
|
|
15450
16362
|
type EnvironmentStatusResult = EnvironmentStatusResponse;
|
|
15451
16363
|
type EnvironmentUpdateResult = Environment;
|
|
16364
|
+
interface EnvironmentListArgs {
|
|
16365
|
+
environmentProviderId?: string;
|
|
16366
|
+
hostId?: string;
|
|
16367
|
+
instanceKey?: string;
|
|
16368
|
+
limit?: number;
|
|
16369
|
+
offset?: number;
|
|
16370
|
+
path?: string;
|
|
16371
|
+
projectId?: string;
|
|
16372
|
+
signal?: AbortSignal;
|
|
16373
|
+
status?: EnvironmentStatus;
|
|
16374
|
+
}
|
|
16375
|
+
type EnvironmentListResult = Environment[];
|
|
16376
|
+
interface EnvironmentDeleteArgs {
|
|
16377
|
+
environmentId: string;
|
|
16378
|
+
}
|
|
16379
|
+
type EnvironmentDeleteResult = {
|
|
16380
|
+
ok: true;
|
|
16381
|
+
};
|
|
16382
|
+
interface EnvironmentListProvidersArgs {
|
|
16383
|
+
projectId?: string;
|
|
16384
|
+
hostId?: string;
|
|
16385
|
+
signal?: AbortSignal;
|
|
16386
|
+
}
|
|
16387
|
+
type EnvironmentListProvidersResult = SystemEnvironmentProvider[];
|
|
15452
16388
|
interface EnvironmentsArea {
|
|
15453
16389
|
archiveThreads(args: EnvironmentActionArgs): Promise<EnvironmentArchiveThreadsResult>;
|
|
15454
16390
|
commit(args: EnvironmentCommitArgs): Promise<EnvironmentCommitResult>;
|
|
@@ -15458,6 +16394,9 @@ interface EnvironmentsArea {
|
|
|
15458
16394
|
diffFiles(args: EnvironmentDiffArgs): Promise<EnvironmentDiffFilesResult>;
|
|
15459
16395
|
diffPatch(args: EnvironmentDiffPatchArgs): Promise<EnvironmentDiffPatchResult>;
|
|
15460
16396
|
get(args: EnvironmentGetArgs): Promise<EnvironmentGetResult>;
|
|
16397
|
+
list(args?: EnvironmentListArgs): Promise<EnvironmentListResult>;
|
|
16398
|
+
listProviders(args?: EnvironmentListProvidersArgs): Promise<EnvironmentListProvidersResult>;
|
|
16399
|
+
delete(args: EnvironmentDeleteArgs): Promise<EnvironmentDeleteResult>;
|
|
15461
16400
|
pullRequest(args: EnvironmentGetArgs): Promise<EnvironmentPullRequestResult>;
|
|
15462
16401
|
markPullRequestDraft(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestDraftResult>;
|
|
15463
16402
|
markPullRequestReady(args: EnvironmentActionArgs): Promise<EnvironmentMarkPullRequestReadyResult>;
|
|
@@ -16084,15 +17023,21 @@ type ThemeGetResult = AppTheme;
|
|
|
16084
17023
|
type ThemeCatalogResult = ThemeCatalogResponse;
|
|
16085
17024
|
type ThemeSetInput = AppThemeSelection;
|
|
16086
17025
|
type ThemeSetResult = AppTheme;
|
|
17026
|
+
type ThemeResolveResult = AppTheme;
|
|
16087
17027
|
interface ThemeCatalogArgs {
|
|
16088
17028
|
signal?: AbortSignal;
|
|
16089
17029
|
}
|
|
16090
17030
|
interface ThemeGetArgs {
|
|
16091
17031
|
signal?: AbortSignal;
|
|
16092
17032
|
}
|
|
17033
|
+
interface ThemeResolveArgs {
|
|
17034
|
+
themeId: string;
|
|
17035
|
+
signal?: AbortSignal;
|
|
17036
|
+
}
|
|
16093
17037
|
interface ThemeArea {
|
|
16094
17038
|
get(args?: ThemeGetArgs): Promise<ThemeGetResult>;
|
|
16095
17039
|
catalog(args?: ThemeCatalogArgs): Promise<ThemeCatalogResult>;
|
|
17040
|
+
resolve(args: ThemeResolveArgs): Promise<ThemeResolveResult>;
|
|
16096
17041
|
set(selection: ThemeSetInput): Promise<ThemeSetResult>;
|
|
16097
17042
|
set(themeId: string): Promise<ThemeSetResult>;
|
|
16098
17043
|
}
|
|
@@ -16131,7 +17076,9 @@ type SystemCliSkillsStatusResult = SystemCliSkillsStatusResponse;
|
|
|
16131
17076
|
type SystemInstallCliSkillsResult = SystemInstallCliSkillsResponse;
|
|
16132
17077
|
type SystemVoiceTranscriptionResult = SystemVoiceTranscriptionResponse;
|
|
16133
17078
|
type SystemUpdateExperimentsResult = Experiments;
|
|
16134
|
-
type SystemUpdateGeneralSettingsResult = AppSettings
|
|
17079
|
+
type SystemUpdateGeneralSettingsResult = AppSettings & {
|
|
17080
|
+
showUnhandledProviderEvents?: boolean;
|
|
17081
|
+
};
|
|
16135
17082
|
type SystemUpdateKeyboardSettingsResult = AppKeybindingOverrides;
|
|
16136
17083
|
type SystemUsageLimitsResult = ProviderUsageResponse;
|
|
16137
17084
|
interface SystemProviderStatesArgs extends SystemProvidersQuery {
|
|
@@ -16148,7 +17095,7 @@ interface SystemArea {
|
|
|
16148
17095
|
reloadConfig(): Promise<SystemReloadConfigResult>;
|
|
16149
17096
|
transcribeVoice(args: SystemVoiceTranscriptionArgs): Promise<SystemVoiceTranscriptionResult>;
|
|
16150
17097
|
updateExperiments(args: Experiments): Promise<SystemUpdateExperimentsResult>;
|
|
16151
|
-
updateGeneralSettings(args:
|
|
17098
|
+
updateGeneralSettings(args: AppSettingsUpdate): Promise<SystemUpdateGeneralSettingsResult>;
|
|
16152
17099
|
updateKeyboardSettings(args: AppKeybindingOverrides): Promise<SystemUpdateKeyboardSettingsResult>;
|
|
16153
17100
|
providerStates(args?: SystemProviderStatesArgs): Promise<SystemProviderStatesResult>;
|
|
16154
17101
|
usageLimits(args?: SystemUsageLimitsArgs): Promise<SystemUsageLimitsResult>;
|
|
@@ -16245,6 +17192,7 @@ interface TerminalsArea {
|
|
|
16245
17192
|
|
|
16246
17193
|
interface ThreadListArgs {
|
|
16247
17194
|
archived?: boolean;
|
|
17195
|
+
environmentId?: string;
|
|
16248
17196
|
sectionId?: string;
|
|
16249
17197
|
hasParent?: boolean;
|
|
16250
17198
|
includeHidden?: boolean;
|
|
@@ -16663,6 +17611,7 @@ interface ThreadSectionsArea {
|
|
|
16663
17611
|
}
|
|
16664
17612
|
|
|
16665
17613
|
interface BbSdkAreas extends BbRealtime {
|
|
17614
|
+
experimental_desktopBrowsers: ExperimentalDesktopBrowsersArea;
|
|
16666
17615
|
environments: EnvironmentsArea;
|
|
16667
17616
|
files: FilesArea;
|
|
16668
17617
|
hosts: HostsArea;
|
|
@@ -16688,6 +17637,13 @@ type ExperimentalHostSignals = Readonly<Record<string, ExperimentalHostSignalCon
|
|
|
16688
17637
|
interface ExperimentalHostCallOptions {
|
|
16689
17638
|
readonly hostId: string;
|
|
16690
17639
|
readonly signal?: AbortSignal;
|
|
17640
|
+
/**
|
|
17641
|
+
* How long the call may run before it fails, in milliseconds. Defaults to
|
|
17642
|
+
* 30 seconds; capped at 30 minutes. Work that legitimately runs longer —
|
|
17643
|
+
* a setup script, a clone — should either set this or be split into a
|
|
17644
|
+
* job the host entry runs in the background and reports on.
|
|
17645
|
+
*/
|
|
17646
|
+
readonly timeoutMs?: number;
|
|
16691
17647
|
}
|
|
16692
17648
|
interface ExperimentalHostClient<Contract extends PluginRpcContract, Signals extends ExperimentalHostSignals = {}> {
|
|
16693
17649
|
call<MethodName extends keyof Contract & string>(method: MethodName, input: StandardSchemaV1InferInput<Contract[MethodName]["input"]>, options: ExperimentalHostCallOptions): Promise<PluginRpcResult<Contract[MethodName]>>;
|
|
@@ -16983,6 +17939,16 @@ interface PluginThreadEventPayloads {
|
|
|
16983
17939
|
"thread.archived": {
|
|
16984
17940
|
thread: ThreadResponse;
|
|
16985
17941
|
};
|
|
17942
|
+
/**
|
|
17943
|
+
* Fired after a thread comes back from the archive. Nothing is provisioned
|
|
17944
|
+
* here: a provider that tore its environment down on archive is asked to
|
|
17945
|
+
* provide one again when the thread next needs to run, with that
|
|
17946
|
+
* environment in the ask's context. This is the moment to start warming
|
|
17947
|
+
* one up ahead of that ask.
|
|
17948
|
+
*/
|
|
17949
|
+
"thread.unarchived": {
|
|
17950
|
+
thread: ThreadResponse;
|
|
17951
|
+
};
|
|
16986
17952
|
/** Fired after a thread is soft-deleted. */
|
|
16987
17953
|
"thread.deleted": {
|
|
16988
17954
|
thread: ThreadResponse;
|
|
@@ -17026,9 +17992,96 @@ interface PluginThreadEventPayloads {
|
|
|
17026
17992
|
* that is at capacity instead of jumping the queue.
|
|
17027
17993
|
*/
|
|
17028
17994
|
"turn.failed": PluginTurnFailedEvent;
|
|
17995
|
+
/**
|
|
17996
|
+
* Fired after a queued row is removed before it ever dispatched — the user
|
|
17997
|
+
* deleted it from the queued card or `bb thread queue`. This is the only
|
|
17998
|
+
* signal for that removal: a plugin holding external resources for a
|
|
17999
|
+
* waiting message (a sandbox mid-provision, a reserved slot) releases them
|
|
18000
|
+
* here. Rows that dispatch fire `message.dispatched` instead, and rows that
|
|
18001
|
+
* vanish because their thread was archived or deleted fire the thread
|
|
18002
|
+
* event, not this one.
|
|
18003
|
+
*/
|
|
18004
|
+
"message.cancelled": {
|
|
18005
|
+
entry: ThreadQueuedMessage;
|
|
18006
|
+
};
|
|
17029
18007
|
}
|
|
17030
18008
|
type PluginThreadEventName = keyof PluginThreadEventPayloads;
|
|
17031
18009
|
type PluginThreadEventHandler<E extends PluginThreadEventName> = (payload: PluginThreadEventPayloads[E]) => void | Promise<void>;
|
|
18010
|
+
/**
|
|
18011
|
+
* The facts this provider consumes, in one declaration. Every member is
|
|
18012
|
+
* something core can evaluate before the thread exists and supply to
|
|
18013
|
+
* `create`, so it is also the whole of what decides where the provider is
|
|
18014
|
+
* offered, and the picker needs to know no provider by name. Every member
|
|
18015
|
+
* defaults to false.
|
|
18016
|
+
*
|
|
18017
|
+
* - `projectCheckout` — the provider works from this project's directory on
|
|
18018
|
+
* that machine, git or not, so core refuses a machine with no checkout of
|
|
18019
|
+
* the project at create time and `context.projectCheckout` is non-null.
|
|
18020
|
+
* - `gitCheckout` — that directory must also be a git repository with at
|
|
18021
|
+
* least one commit. The picker greys the row out where it is not, and core
|
|
18022
|
+
* rejects an explicit selection using the same machine inspection before
|
|
18023
|
+
* creating the thread. Implies `projectCheckout`.
|
|
18024
|
+
* - `gitRemote` — the provider clones the project itself, so it is greyed out
|
|
18025
|
+
* in a project with no git remote and an explicit selection is rejected.
|
|
18026
|
+
* - `projectless` — this provider serves only threads that have no project,
|
|
18027
|
+
* so it is offered for those and nowhere else. It cannot be combined with
|
|
18028
|
+
* `projectCheckout`, `gitCheckout` or `gitRemote`, which need a project.
|
|
18029
|
+
*/
|
|
18030
|
+
interface PluginEnvironmentProviderRequirements {
|
|
18031
|
+
projectCheckout?: boolean;
|
|
18032
|
+
gitCheckout?: boolean;
|
|
18033
|
+
gitRemote?: boolean;
|
|
18034
|
+
projectless?: boolean;
|
|
18035
|
+
}
|
|
18036
|
+
/**
|
|
18037
|
+
* What `validate` answers. `refuse` fails the create request with `message`
|
|
18038
|
+
* as the caller's error, before a thread or an environment row exists.
|
|
18039
|
+
*/
|
|
18040
|
+
type PluginEnvironmentValidateDecision = {
|
|
18041
|
+
action: "accept";
|
|
18042
|
+
} | {
|
|
18043
|
+
action: "refuse";
|
|
18044
|
+
message: string;
|
|
18045
|
+
};
|
|
18046
|
+
/**
|
|
18047
|
+
* Resource operations for one place a thread can run. Core persists progress,
|
|
18048
|
+
* retries, cancellation and retirement. Operations must be idempotent for the
|
|
18049
|
+
* supplied pathKey. Provider ids are unique across running plugins.
|
|
18050
|
+
*/
|
|
18051
|
+
type PluginEnvironmentProviderDeclaration<Requires extends PluginEnvironmentProviderRequirements = PluginEnvironmentProviderRequirements, Inputs extends PluginEnvironmentProviderInputsSchema = PluginEnvironmentProviderInputsSchema> = PluginEnvironmentProviderDefinition<Requires, Inputs>;
|
|
18052
|
+
interface PluginEnvironments {
|
|
18053
|
+
/**
|
|
18054
|
+
* Offer a place threads can run. Registering an id this plugin already
|
|
18055
|
+
* registered replaces it. Experimental: see docs/api_to_audit.md.
|
|
18056
|
+
*/
|
|
18057
|
+
register<const Requires extends PluginEnvironmentProviderRequirements, const Inputs extends PluginEnvironmentProviderInputsSchema = undefined>(declaration: PluginEnvironmentProviderDeclaration<Requires, Inputs>): void;
|
|
18058
|
+
/**
|
|
18059
|
+
* Ask core to re-ask this plugin's waiting providers now instead of at their
|
|
18060
|
+
* `sendAt` — call it whenever a launch advances (progress text changed, the
|
|
18061
|
+
* environment became ready, a failure was recorded). Resolves on
|
|
18062
|
+
* scheduling, exactly like `experimental_hooks.recheck`.
|
|
18063
|
+
*/
|
|
18064
|
+
recheck(): Promise<void>;
|
|
18065
|
+
}
|
|
18066
|
+
/**
|
|
18067
|
+
* Where a thread is going to run, as far as core knows at the checkpoint.
|
|
18068
|
+
* Before provisioning attaches an environment this is the start intent the
|
|
18069
|
+
* thread was created with; afterwards it is the environment itself.
|
|
18070
|
+
*/
|
|
18071
|
+
type PluginDispatchEnvironmentIntent = {
|
|
18072
|
+
kind: "environment";
|
|
18073
|
+
environmentId: string;
|
|
18074
|
+
}
|
|
18075
|
+
/** Ask a registered environment provider for the environment. */
|
|
18076
|
+
| {
|
|
18077
|
+
kind: "provider";
|
|
18078
|
+
environmentProviderId: string;
|
|
18079
|
+
machine: {
|
|
18080
|
+
type: "existing";
|
|
18081
|
+
hostId: string;
|
|
18082
|
+
};
|
|
18083
|
+
inputs: JsonValue | null;
|
|
18084
|
+
};
|
|
17032
18085
|
/**
|
|
17033
18086
|
* What a `message.dispatch` hook answers.
|
|
17034
18087
|
*
|
|
@@ -17130,6 +18183,13 @@ interface MessageDispatchHookContext {
|
|
|
17130
18183
|
* about to occupy. Null only when neither names a machine.
|
|
17131
18184
|
*/
|
|
17132
18185
|
host: Host | null;
|
|
18186
|
+
/**
|
|
18187
|
+
* What kind of environment the thread will run in, so a policy can tell a
|
|
18188
|
+
* worktree on this machine from a cloud sandbox from an attached directory
|
|
18189
|
+
* before any of them exists. Null only for a thread with neither an
|
|
18190
|
+
* environment nor a start intent.
|
|
18191
|
+
*/
|
|
18192
|
+
environmentIntent: PluginDispatchEnvironmentIntent | null;
|
|
17133
18193
|
input: PluginDispatchInput;
|
|
17134
18194
|
requestedExecution: PluginDispatchExecution;
|
|
17135
18195
|
/** Where each execution value came from. */
|
|
@@ -17497,8 +18557,9 @@ interface PluginAgentConfigurationContext {
|
|
|
17497
18557
|
id: string;
|
|
17498
18558
|
name: string | null;
|
|
17499
18559
|
path: string | null;
|
|
17500
|
-
workspaceProvisionType: "managed-worktree" | "personal" | "unmanaged";
|
|
17501
18560
|
branchName: string | null;
|
|
18561
|
+
/** @deprecated Use environment provider identity and capabilities instead. */
|
|
18562
|
+
workspaceProvisionType: WorkspaceProvisionType | null;
|
|
17502
18563
|
};
|
|
17503
18564
|
host: {
|
|
17504
18565
|
id: string;
|
|
@@ -18208,6 +19269,12 @@ interface BbPluginApi {
|
|
|
18208
19269
|
* reason, or refuse.
|
|
18209
19270
|
*/
|
|
18210
19271
|
readonly experimental_hooks: PluginHooks;
|
|
19272
|
+
/**
|
|
19273
|
+
* Environment targets: places a thread can run that this plugin
|
|
19274
|
+
* provisions (plans/plugin-environment-providers.md). Experimental: see
|
|
19275
|
+
* docs/api_to_audit.md.
|
|
19276
|
+
*/
|
|
19277
|
+
readonly experimental_environments: PluginEnvironments;
|
|
18211
19278
|
/** Plugin-reported status (needs-configuration). */
|
|
18212
19279
|
readonly status: PluginStatusApi;
|
|
18213
19280
|
/** Read-only facts about the running server (loopback base URL). */
|
|
@@ -18237,4 +19304,4 @@ interface BbPluginApi {
|
|
|
18237
19304
|
}
|
|
18238
19305
|
|
|
18239
19306
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
|
|
18240
|
-
export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginFixedTabReference, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState,
|
|
19307
|
+
export type { BbContext, BbNavigate, BbPluginApi, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalComposerSubmitOptions, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPermissionModePickerProps, ExperimentalPluginFixedTabReference, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, JsonValue, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiServiceDeclaration, PluginAiServiceKind, PluginAiServices, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandPaletteActionContext, PluginCommandPaletteActionRegistration, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginFixedTabDeclaration, PluginFixedTabRegistration, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|