@get-bb/plugin-sdk 0.6.23 → 0.6.26
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.
|
@@ -263,6 +263,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
263
263
|
"panel.toggle": "panel.toggle";
|
|
264
264
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
265
265
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
266
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
266
267
|
"question.select.1": "question.select.1";
|
|
267
268
|
"question.select.2": "question.select.2";
|
|
268
269
|
"question.select.3": "question.select.3";
|
|
@@ -410,6 +411,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
410
411
|
}>;
|
|
411
412
|
updatedAt: z$1.ZodNumber;
|
|
412
413
|
}, z$1.core.$strict>>;
|
|
414
|
+
timelineSequence: z$1.ZodOptional<z$1.ZodNumber>;
|
|
413
415
|
}, z$1.core.$strict>>;
|
|
414
416
|
type: z$1.ZodLiteral<"changed">;
|
|
415
417
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
@@ -451,6 +453,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
451
453
|
"app-update-changed": "app-update-changed";
|
|
452
454
|
"config-changed": "config-changed";
|
|
453
455
|
"environment-availability-changed": "environment-availability-changed";
|
|
456
|
+
"plugin-install-jobs-changed": "plugin-install-jobs-changed";
|
|
457
|
+
"plugin-update-jobs-changed": "plugin-update-jobs-changed";
|
|
454
458
|
"plugins-changed": "plugins-changed";
|
|
455
459
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
456
460
|
"server-move-changed": "server-move-changed";
|
|
@@ -9164,6 +9168,52 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
9164
9168
|
}, z$1.core.$strip>>;
|
|
9165
9169
|
}, z$1.core.$strip>;
|
|
9166
9170
|
type PluginApplyUpdateResult$1 = z$1.infer<typeof pluginApplyUpdateResultSchema>;
|
|
9171
|
+
declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9172
|
+
displayName: z$1.ZodString;
|
|
9173
|
+
id: z$1.ZodString;
|
|
9174
|
+
pluginId: z$1.ZodString;
|
|
9175
|
+
state: z$1.ZodLiteral<"queued">;
|
|
9176
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9177
|
+
displayName: z$1.ZodString;
|
|
9178
|
+
id: z$1.ZodString;
|
|
9179
|
+
phase: z$1.ZodEnum<{
|
|
9180
|
+
"rolling-back": "rolling-back";
|
|
9181
|
+
activating: "activating";
|
|
9182
|
+
checking: "checking";
|
|
9183
|
+
preparing: "preparing";
|
|
9184
|
+
}>;
|
|
9185
|
+
pluginId: z$1.ZodString;
|
|
9186
|
+
state: z$1.ZodLiteral<"running">;
|
|
9187
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9188
|
+
displayName: z$1.ZodString;
|
|
9189
|
+
id: z$1.ZodString;
|
|
9190
|
+
pluginId: z$1.ZodString;
|
|
9191
|
+
result: z$1.ZodObject<{
|
|
9192
|
+
applied: z$1.ZodBoolean;
|
|
9193
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
9194
|
+
from: z$1.ZodObject<{
|
|
9195
|
+
display: z$1.ZodString;
|
|
9196
|
+
version: z$1.ZodString;
|
|
9197
|
+
}, z$1.core.$strip>;
|
|
9198
|
+
outcome: z$1.ZodEnum<{
|
|
9199
|
+
"rolled-back": "rolled-back";
|
|
9200
|
+
current: "current";
|
|
9201
|
+
updated: "updated";
|
|
9202
|
+
}>;
|
|
9203
|
+
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
9204
|
+
display: z$1.ZodString;
|
|
9205
|
+
version: z$1.ZodString;
|
|
9206
|
+
}, z$1.core.$strip>>;
|
|
9207
|
+
}, z$1.core.$strip>;
|
|
9208
|
+
state: z$1.ZodLiteral<"completed">;
|
|
9209
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9210
|
+
displayName: z$1.ZodString;
|
|
9211
|
+
error: z$1.ZodString;
|
|
9212
|
+
id: z$1.ZodString;
|
|
9213
|
+
pluginId: z$1.ZodString;
|
|
9214
|
+
state: z$1.ZodLiteral<"failed">;
|
|
9215
|
+
}, z$1.core.$strip>], "state">;
|
|
9216
|
+
type PluginUpdateJob = z$1.infer<typeof pluginUpdateJobSchema>;
|
|
9167
9217
|
declare const pluginSourceDetailSchema: z$1.ZodObject<{
|
|
9168
9218
|
engines: z$1.ZodObject<{
|
|
9169
9219
|
bb: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9424,6 +9474,253 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
9424
9474
|
}, z$1.core.$strip>>;
|
|
9425
9475
|
}, z$1.core.$strip>;
|
|
9426
9476
|
type PluginListResponse = z$1.infer<typeof pluginListResponseSchema>;
|
|
9477
|
+
declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9478
|
+
displayName: z$1.ZodString;
|
|
9479
|
+
id: z$1.ZodString;
|
|
9480
|
+
state: z$1.ZodLiteral<"queued">;
|
|
9481
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9482
|
+
entryId: z$1.ZodString;
|
|
9483
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9484
|
+
marketplace: z$1.ZodString;
|
|
9485
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9486
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9487
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9488
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9489
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9490
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9491
|
+
path: z$1.ZodString;
|
|
9492
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9493
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9494
|
+
name: z$1.ZodString;
|
|
9495
|
+
}, z$1.core.$strict>], "kind">;
|
|
9496
|
+
source: z$1.ZodString;
|
|
9497
|
+
}, z$1.core.$strict>], "kind">;
|
|
9498
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9499
|
+
displayName: z$1.ZodString;
|
|
9500
|
+
id: z$1.ZodString;
|
|
9501
|
+
state: z$1.ZodLiteral<"running">;
|
|
9502
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9503
|
+
entryId: z$1.ZodString;
|
|
9504
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9505
|
+
marketplace: z$1.ZodString;
|
|
9506
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9507
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9508
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9509
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9510
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9511
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9512
|
+
path: z$1.ZodString;
|
|
9513
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9514
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9515
|
+
name: z$1.ZodString;
|
|
9516
|
+
}, z$1.core.$strict>], "kind">;
|
|
9517
|
+
source: z$1.ZodString;
|
|
9518
|
+
}, z$1.core.$strict>], "kind">;
|
|
9519
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9520
|
+
displayName: z$1.ZodString;
|
|
9521
|
+
id: z$1.ZodString;
|
|
9522
|
+
state: z$1.ZodLiteral<"cancelling">;
|
|
9523
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9524
|
+
entryId: z$1.ZodString;
|
|
9525
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9526
|
+
marketplace: z$1.ZodString;
|
|
9527
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9528
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9529
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9530
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9531
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9532
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9533
|
+
path: z$1.ZodString;
|
|
9534
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9535
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9536
|
+
name: z$1.ZodString;
|
|
9537
|
+
}, z$1.core.$strict>], "kind">;
|
|
9538
|
+
source: z$1.ZodString;
|
|
9539
|
+
}, z$1.core.$strict>], "kind">;
|
|
9540
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9541
|
+
displayName: z$1.ZodString;
|
|
9542
|
+
id: z$1.ZodString;
|
|
9543
|
+
plugin: z$1.ZodObject<{
|
|
9544
|
+
app: z$1.ZodObject<{
|
|
9545
|
+
bundle: z$1.ZodNullable<z$1.ZodObject<{
|
|
9546
|
+
compatible: z$1.ZodBoolean;
|
|
9547
|
+
cssUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9548
|
+
hash: z$1.ZodString;
|
|
9549
|
+
jsBytes: z$1.ZodNumber;
|
|
9550
|
+
jsUrl: z$1.ZodString;
|
|
9551
|
+
sdkMajor: z$1.ZodNumber;
|
|
9552
|
+
sdkVersion: z$1.ZodString;
|
|
9553
|
+
}, z$1.core.$strip>>;
|
|
9554
|
+
hasApp: z$1.ZodBoolean;
|
|
9555
|
+
}, z$1.core.$strip>;
|
|
9556
|
+
capabilities: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
9557
|
+
detail: z$1.ZodNullable<z$1.ZodString>;
|
|
9558
|
+
id: z$1.ZodString;
|
|
9559
|
+
kind: z$1.ZodEnum<{
|
|
9560
|
+
"agent-tool": "agent-tool";
|
|
9561
|
+
"thread-integration": "thread-integration";
|
|
9562
|
+
skill: "skill";
|
|
9563
|
+
theme: "theme";
|
|
9564
|
+
}>;
|
|
9565
|
+
label: z$1.ZodString;
|
|
9566
|
+
}, z$1.core.$strip>>>;
|
|
9567
|
+
catalogEntryId: z$1.ZodOptional<z$1.ZodString>;
|
|
9568
|
+
catalogMarketplaceName: z$1.ZodOptional<z$1.ZodString>;
|
|
9569
|
+
category: z$1.ZodOptional<z$1.ZodString>;
|
|
9570
|
+
categoryId: z$1.ZodOptional<z$1.ZodString>;
|
|
9571
|
+
cliCommand: z$1.ZodNullable<z$1.ZodObject<{
|
|
9572
|
+
name: z$1.ZodString;
|
|
9573
|
+
summary: z$1.ZodString;
|
|
9574
|
+
}, z$1.core.$strip>>;
|
|
9575
|
+
collections: z$1.ZodArray<z$1.ZodObject<{
|
|
9576
|
+
id: z$1.ZodString;
|
|
9577
|
+
rank: z$1.ZodNumber;
|
|
9578
|
+
}, z$1.core.$strip>>;
|
|
9579
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9580
|
+
enabled: z$1.ZodBoolean;
|
|
9581
|
+
handlerStats: z$1.ZodObject<{
|
|
9582
|
+
count: z$1.ZodNumber;
|
|
9583
|
+
errorCount: z$1.ZodNumber;
|
|
9584
|
+
maxMs: z$1.ZodNumber;
|
|
9585
|
+
totalMs: z$1.ZodNumber;
|
|
9586
|
+
}, z$1.core.$strip>;
|
|
9587
|
+
hasSettings: z$1.ZodBoolean;
|
|
9588
|
+
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
9589
|
+
iconUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9590
|
+
icons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
9591
|
+
id: z$1.ZodString;
|
|
9592
|
+
isOrphanedBuiltin: z$1.ZodBoolean;
|
|
9593
|
+
logoDarkUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9594
|
+
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9595
|
+
name: z$1.ZodNullable<z$1.ZodString>;
|
|
9596
|
+
provenance: z$1.ZodEnum<{
|
|
9597
|
+
builtin: "builtin";
|
|
9598
|
+
catalog: "catalog";
|
|
9599
|
+
direct: "direct";
|
|
9600
|
+
}>;
|
|
9601
|
+
providerIds: z$1.ZodArray<z$1.ZodString>;
|
|
9602
|
+
publishedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
9603
|
+
publisherLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
9604
|
+
rootDir: z$1.ZodString;
|
|
9605
|
+
schedules: z$1.ZodArray<z$1.ZodObject<{
|
|
9606
|
+
cron: z$1.ZodString;
|
|
9607
|
+
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
9608
|
+
lastRunAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9609
|
+
lastStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
9610
|
+
error: "error";
|
|
9611
|
+
ok: "ok";
|
|
9612
|
+
running: "running";
|
|
9613
|
+
}>>;
|
|
9614
|
+
name: z$1.ZodString;
|
|
9615
|
+
nextRunAt: z$1.ZodNumber;
|
|
9616
|
+
}, z$1.core.$strip>>;
|
|
9617
|
+
screenshots: z$1.ZodArray<z$1.ZodString>;
|
|
9618
|
+
services: z$1.ZodArray<z$1.ZodObject<{
|
|
9619
|
+
name: z$1.ZodString;
|
|
9620
|
+
state: z$1.ZodEnum<{
|
|
9621
|
+
backoff: "backoff";
|
|
9622
|
+
running: "running";
|
|
9623
|
+
stopped: "stopped";
|
|
9624
|
+
}>;
|
|
9625
|
+
}, z$1.core.$strip>>;
|
|
9626
|
+
source: z$1.ZodString;
|
|
9627
|
+
sourceDisplay: z$1.ZodString;
|
|
9628
|
+
status: z$1.ZodEnum<{
|
|
9629
|
+
"needs-configuration": "needs-configuration";
|
|
9630
|
+
degraded: "degraded";
|
|
9631
|
+
disabled: "disabled";
|
|
9632
|
+
error: "error";
|
|
9633
|
+
incompatible: "incompatible";
|
|
9634
|
+
missing: "missing";
|
|
9635
|
+
running: "running";
|
|
9636
|
+
starting: "starting";
|
|
9637
|
+
}>;
|
|
9638
|
+
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9639
|
+
updateState: z$1.ZodObject<{
|
|
9640
|
+
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9641
|
+
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9642
|
+
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9643
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
9644
|
+
lastCheckAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
9645
|
+
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9646
|
+
at: z$1.ZodNumber;
|
|
9647
|
+
detail: z$1.ZodString;
|
|
9648
|
+
version: z$1.ZodString;
|
|
9649
|
+
}, z$1.core.$strip>>;
|
|
9650
|
+
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
9651
|
+
"update-available": "update-available";
|
|
9652
|
+
current: "current";
|
|
9653
|
+
incompatible: "incompatible";
|
|
9654
|
+
pinned: "pinned";
|
|
9655
|
+
unavailable: "unavailable";
|
|
9656
|
+
}>>;
|
|
9657
|
+
}, z$1.core.$strip>;
|
|
9658
|
+
updatedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
9659
|
+
version: z$1.ZodString;
|
|
9660
|
+
}, z$1.core.$strip>;
|
|
9661
|
+
state: z$1.ZodLiteral<"succeeded">;
|
|
9662
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9663
|
+
entryId: z$1.ZodString;
|
|
9664
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9665
|
+
marketplace: z$1.ZodString;
|
|
9666
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9667
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9668
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9669
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9670
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9671
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9672
|
+
path: z$1.ZodString;
|
|
9673
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9674
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9675
|
+
name: z$1.ZodString;
|
|
9676
|
+
}, z$1.core.$strict>], "kind">;
|
|
9677
|
+
source: z$1.ZodString;
|
|
9678
|
+
}, z$1.core.$strict>], "kind">;
|
|
9679
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9680
|
+
displayName: z$1.ZodString;
|
|
9681
|
+
error: z$1.ZodString;
|
|
9682
|
+
id: z$1.ZodString;
|
|
9683
|
+
state: z$1.ZodLiteral<"failed">;
|
|
9684
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9685
|
+
entryId: z$1.ZodString;
|
|
9686
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9687
|
+
marketplace: z$1.ZodString;
|
|
9688
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9689
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9690
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9691
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9692
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9693
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9694
|
+
path: z$1.ZodString;
|
|
9695
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9696
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9697
|
+
name: z$1.ZodString;
|
|
9698
|
+
}, z$1.core.$strict>], "kind">;
|
|
9699
|
+
source: z$1.ZodString;
|
|
9700
|
+
}, z$1.core.$strict>], "kind">;
|
|
9701
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9702
|
+
displayName: z$1.ZodString;
|
|
9703
|
+
id: z$1.ZodString;
|
|
9704
|
+
state: z$1.ZodLiteral<"cancelled">;
|
|
9705
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9706
|
+
entryId: z$1.ZodString;
|
|
9707
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9708
|
+
marketplace: z$1.ZodString;
|
|
9709
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9710
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9711
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9712
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9713
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9714
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9715
|
+
path: z$1.ZodString;
|
|
9716
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9717
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9718
|
+
name: z$1.ZodString;
|
|
9719
|
+
}, z$1.core.$strict>], "kind">;
|
|
9720
|
+
source: z$1.ZodString;
|
|
9721
|
+
}, z$1.core.$strict>], "kind">;
|
|
9722
|
+
}, z$1.core.$strip>], "state">;
|
|
9723
|
+
type PluginInstallJob$1 = z$1.infer<typeof pluginInstallJobSchema>;
|
|
9427
9724
|
declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
9428
9725
|
ok: z$1.ZodLiteral<true>;
|
|
9429
9726
|
plugins: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -9593,6 +9890,17 @@ declare const pluginSafeModeUpdateResponseSchema: z$1.ZodObject<{
|
|
|
9593
9890
|
problems: z$1.ZodArray<z$1.ZodString>;
|
|
9594
9891
|
}, z$1.core.$strip>;
|
|
9595
9892
|
type PluginSafeModeUpdateResponse = z$1.infer<typeof pluginSafeModeUpdateResponseSchema>;
|
|
9893
|
+
declare const pluginCachePruneResponseSchema: z$1.ZodObject<{
|
|
9894
|
+
bytes: z$1.ZodNumber;
|
|
9895
|
+
dryRun: z$1.ZodBoolean;
|
|
9896
|
+
removed: z$1.ZodArray<z$1.ZodObject<{
|
|
9897
|
+
bytes: z$1.ZodNumber;
|
|
9898
|
+
path: z$1.ZodString;
|
|
9899
|
+
pluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
9900
|
+
version: z$1.ZodString;
|
|
9901
|
+
}, z$1.core.$strip>>;
|
|
9902
|
+
}, z$1.core.$strip>;
|
|
9903
|
+
type PluginCachePruneResponse = z$1.infer<typeof pluginCachePruneResponseSchema>;
|
|
9596
9904
|
declare const pluginTokenResponseSchema: z$1.ZodObject<{
|
|
9597
9905
|
ok: z$1.ZodLiteral<true>;
|
|
9598
9906
|
token: z$1.ZodString;
|
|
@@ -10170,6 +10478,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10170
10478
|
"panel.toggle": "panel.toggle";
|
|
10171
10479
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10172
10480
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10481
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10173
10482
|
"question.select.1": "question.select.1";
|
|
10174
10483
|
"question.select.2": "question.select.2";
|
|
10175
10484
|
"question.select.3": "question.select.3";
|
|
@@ -10325,6 +10634,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10325
10634
|
"panel.toggle": "panel.toggle";
|
|
10326
10635
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10327
10636
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10637
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10328
10638
|
"question.select.1": "question.select.1";
|
|
10329
10639
|
"question.select.2": "question.select.2";
|
|
10330
10640
|
"question.select.3": "question.select.3";
|
|
@@ -10420,6 +10730,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10420
10730
|
"panel.toggle": "panel.toggle";
|
|
10421
10731
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10422
10732
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10733
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10423
10734
|
"question.select.1": "question.select.1";
|
|
10424
10735
|
"question.select.2": "question.select.2";
|
|
10425
10736
|
"question.select.3": "question.select.3";
|
|
@@ -16646,6 +16957,12 @@ interface PluginCatalogInstallArgs {
|
|
|
16646
16957
|
marketplace?: string;
|
|
16647
16958
|
confirmedSource?: PluginCatalogResolvedSource;
|
|
16648
16959
|
}
|
|
16960
|
+
interface PluginInstallJobArgs {
|
|
16961
|
+
jobId: string;
|
|
16962
|
+
}
|
|
16963
|
+
interface PluginInstallJobListArgs {
|
|
16964
|
+
signal?: AbortSignal;
|
|
16965
|
+
}
|
|
16649
16966
|
interface PluginCatalogInstallPlanArgs {
|
|
16650
16967
|
entryId: string;
|
|
16651
16968
|
marketplace?: string;
|
|
@@ -16708,15 +17025,21 @@ interface PluginGetSafeModeArgs {
|
|
|
16708
17025
|
interface PluginSetSafeModeArgs {
|
|
16709
17026
|
enabled: boolean;
|
|
16710
17027
|
}
|
|
17028
|
+
interface PluginPruneCacheArgs {
|
|
17029
|
+
dryRun?: boolean;
|
|
17030
|
+
signal?: AbortSignal;
|
|
17031
|
+
}
|
|
16711
17032
|
type PluginDisableResult = InstalledPlugin;
|
|
16712
17033
|
type PluginEnableResult = InstalledPlugin;
|
|
16713
17034
|
type PluginGetSettingsResult = PluginSettingsResponse;
|
|
16714
17035
|
type PluginInstallResult = InstalledPlugin;
|
|
17036
|
+
type PluginInstallJob = PluginInstallJob$1;
|
|
16715
17037
|
type PluginListResult = PluginListResponse;
|
|
16716
17038
|
type PluginReloadResult = PluginReloadResponse;
|
|
16717
17039
|
type PluginRemoveResult = PluginRemoveResponse;
|
|
16718
17040
|
type PluginSafeModeResult = PluginSafeModeResponse;
|
|
16719
17041
|
type PluginSetSafeModeResult = PluginSafeModeUpdateResponse;
|
|
17042
|
+
type PluginPruneCacheResult = PluginCachePruneResponse;
|
|
16720
17043
|
type PluginTokenResult = PluginTokenResponse;
|
|
16721
17044
|
type PluginUpdateSettingsResult = PluginSettingsResponse;
|
|
16722
17045
|
type PluginGetSourceResult = PluginSourceDetail;
|
|
@@ -16733,6 +17056,7 @@ interface PluginMarketplaceRemoveResult {
|
|
|
16733
17056
|
}
|
|
16734
17057
|
interface PluginCatalogArea {
|
|
16735
17058
|
install(args: PluginCatalogInstallArgs): Promise<PluginInstallResult>;
|
|
17059
|
+
startInstall(args: PluginCatalogInstallArgs): Promise<PluginInstallJob>;
|
|
16736
17060
|
installPlan(args: PluginCatalogInstallPlanArgs): Promise<PluginCatalogInstallPlanResult>;
|
|
16737
17061
|
search(args: PluginCatalogSearchArgs): Promise<PluginCatalogSearchResult>;
|
|
16738
17062
|
status(args?: PluginCatalogStatusArgs): Promise<PluginCatalogStatusResult>;
|
|
@@ -16743,11 +17067,27 @@ interface PluginMarketplacesArea {
|
|
|
16743
17067
|
refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
|
|
16744
17068
|
remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
|
|
16745
17069
|
}
|
|
17070
|
+
interface PluginInstallJobsArea {
|
|
17071
|
+
cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
17072
|
+
get(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
17073
|
+
list(args?: PluginInstallJobListArgs): Promise<PluginInstallJob[]>;
|
|
17074
|
+
}
|
|
17075
|
+
interface PluginUpdateJobsArea {
|
|
17076
|
+
get(args: {
|
|
17077
|
+
jobId: string;
|
|
17078
|
+
}): Promise<PluginUpdateJob>;
|
|
17079
|
+
list(args?: {
|
|
17080
|
+
signal?: AbortSignal;
|
|
17081
|
+
}): Promise<PluginUpdateJob[]>;
|
|
17082
|
+
}
|
|
16746
17083
|
interface PluginsArea {
|
|
16747
17084
|
experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
|
|
16748
17085
|
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
16749
17086
|
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
17087
|
+
experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
|
|
16750
17088
|
applyUpdate(args: PluginIdArgs): Promise<PluginApplyUpdateResult>;
|
|
17089
|
+
experimental_startUpdate(args: PluginIdArgs): Promise<PluginUpdateJob>;
|
|
17090
|
+
experimental_updateJobs: PluginUpdateJobsArea;
|
|
16751
17091
|
callRpc<TOutput>(args: PluginRpcArgs<TOutput>): Promise<TOutput>;
|
|
16752
17092
|
checkUpdates(args?: PluginCheckUpdatesArgs): Promise<PluginCheckUpdatesResult>;
|
|
16753
17093
|
catalog: PluginCatalogArea;
|
|
@@ -16757,6 +17097,8 @@ interface PluginsArea {
|
|
|
16757
17097
|
getSettings(args: PluginGetSettingsArgs): Promise<PluginGetSettingsResult>;
|
|
16758
17098
|
getSource(args: PluginGetSourceArgs): Promise<PluginGetSourceResult>;
|
|
16759
17099
|
install(args: PluginInstallArgs): Promise<PluginInstallResult>;
|
|
17100
|
+
startInstall(args: PluginInstallArgs): Promise<PluginInstallJob>;
|
|
17101
|
+
installJobs: PluginInstallJobsArea;
|
|
16760
17102
|
list(args?: PluginListArgs): Promise<PluginListResult>;
|
|
16761
17103
|
listUpdateResults(args?: PluginListUpdateResultsArgs): Promise<PluginCheckUpdatesResult>;
|
|
16762
17104
|
reload(args?: PluginReloadArgs): Promise<PluginReloadResult>;
|
|
@@ -18962,6 +19304,8 @@ interface PluginSidebarThreadActions {
|
|
|
18962
19304
|
rename(threadId: string, title: string): Promise<void>;
|
|
18963
19305
|
/** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
|
|
18964
19306
|
archive(threadId: string): void;
|
|
19307
|
+
/** Archives an environment's active thread trees with bb's optimistic updates, pane cleanup, and one Undo toast. Rejects after bb shows an error toast on failure. */
|
|
19308
|
+
experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
|
|
18965
19309
|
/**
|
|
18966
19310
|
* Opens bb's delete confirmation, which counts child threads first. Deletion
|
|
18967
19311
|
* is destructive and recursive, so the host owns the confirmation: there is
|
|
@@ -20871,10 +21215,14 @@ interface PluginSdkApp {
|
|
|
20871
21215
|
* surfaces without further work. Reserve `useRpc` for work that needs your
|
|
20872
21216
|
* server: secrets, host files, or your plugin's own storage.
|
|
20873
21217
|
*
|
|
20874
|
-
* Thread title, section, and
|
|
20875
|
-
*
|
|
20876
|
-
*
|
|
20877
|
-
*
|
|
21218
|
+
* Thread title, section, parent, pin, and unpin writes are optimistic in
|
|
21219
|
+
* bb's surfaces. Synchronous calls share one cache transaction; writes to
|
|
21220
|
+
* the same thread execute in order, so unpin and move can be submitted
|
|
21221
|
+
* together. Unarchive, environment-group archive, project/machine/environment
|
|
21222
|
+
* renames, and project/section removal are also optimistic and roll back on
|
|
21223
|
+
* failure. Created sections enter the cache when the server assigns their id.
|
|
21224
|
+
* `experimental_useSidebarThreadActions()` owns navigation, read state,
|
|
21225
|
+
* archive confirmation, and delete confirmation.
|
|
20878
21226
|
*
|
|
20879
21227
|
* The client is stable for the plugin's lifetime, so it is safe in effect
|
|
20880
21228
|
* and callback dependency lists.
|
|
@@ -212,6 +212,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
212
212
|
"panel.toggle": "panel.toggle";
|
|
213
213
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
214
214
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
215
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
215
216
|
"question.select.1": "question.select.1";
|
|
216
217
|
"question.select.2": "question.select.2";
|
|
217
218
|
"question.select.3": "question.select.3";
|
|
@@ -359,6 +360,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
359
360
|
}>;
|
|
360
361
|
updatedAt: z$1.ZodNumber;
|
|
361
362
|
}, z$1.core.$strict>>;
|
|
363
|
+
timelineSequence: z$1.ZodOptional<z$1.ZodNumber>;
|
|
362
364
|
}, z$1.core.$strict>>;
|
|
363
365
|
type: z$1.ZodLiteral<"changed">;
|
|
364
366
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
@@ -400,6 +402,8 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
400
402
|
"app-update-changed": "app-update-changed";
|
|
401
403
|
"config-changed": "config-changed";
|
|
402
404
|
"environment-availability-changed": "environment-availability-changed";
|
|
405
|
+
"plugin-install-jobs-changed": "plugin-install-jobs-changed";
|
|
406
|
+
"plugin-update-jobs-changed": "plugin-update-jobs-changed";
|
|
403
407
|
"plugins-changed": "plugins-changed";
|
|
404
408
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
405
409
|
"server-move-changed": "server-move-changed";
|
|
@@ -9215,6 +9219,52 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
9215
9219
|
}, z$1.core.$strip>>;
|
|
9216
9220
|
}, z$1.core.$strip>;
|
|
9217
9221
|
type PluginApplyUpdateResult$1 = z$1.infer<typeof pluginApplyUpdateResultSchema>;
|
|
9222
|
+
declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9223
|
+
displayName: z$1.ZodString;
|
|
9224
|
+
id: z$1.ZodString;
|
|
9225
|
+
pluginId: z$1.ZodString;
|
|
9226
|
+
state: z$1.ZodLiteral<"queued">;
|
|
9227
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9228
|
+
displayName: z$1.ZodString;
|
|
9229
|
+
id: z$1.ZodString;
|
|
9230
|
+
phase: z$1.ZodEnum<{
|
|
9231
|
+
"rolling-back": "rolling-back";
|
|
9232
|
+
activating: "activating";
|
|
9233
|
+
checking: "checking";
|
|
9234
|
+
preparing: "preparing";
|
|
9235
|
+
}>;
|
|
9236
|
+
pluginId: z$1.ZodString;
|
|
9237
|
+
state: z$1.ZodLiteral<"running">;
|
|
9238
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9239
|
+
displayName: z$1.ZodString;
|
|
9240
|
+
id: z$1.ZodString;
|
|
9241
|
+
pluginId: z$1.ZodString;
|
|
9242
|
+
result: z$1.ZodObject<{
|
|
9243
|
+
applied: z$1.ZodBoolean;
|
|
9244
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
9245
|
+
from: z$1.ZodObject<{
|
|
9246
|
+
display: z$1.ZodString;
|
|
9247
|
+
version: z$1.ZodString;
|
|
9248
|
+
}, z$1.core.$strip>;
|
|
9249
|
+
outcome: z$1.ZodEnum<{
|
|
9250
|
+
"rolled-back": "rolled-back";
|
|
9251
|
+
current: "current";
|
|
9252
|
+
updated: "updated";
|
|
9253
|
+
}>;
|
|
9254
|
+
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
9255
|
+
display: z$1.ZodString;
|
|
9256
|
+
version: z$1.ZodString;
|
|
9257
|
+
}, z$1.core.$strip>>;
|
|
9258
|
+
}, z$1.core.$strip>;
|
|
9259
|
+
state: z$1.ZodLiteral<"completed">;
|
|
9260
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9261
|
+
displayName: z$1.ZodString;
|
|
9262
|
+
error: z$1.ZodString;
|
|
9263
|
+
id: z$1.ZodString;
|
|
9264
|
+
pluginId: z$1.ZodString;
|
|
9265
|
+
state: z$1.ZodLiteral<"failed">;
|
|
9266
|
+
}, z$1.core.$strip>], "state">;
|
|
9267
|
+
type PluginUpdateJob = z$1.infer<typeof pluginUpdateJobSchema>;
|
|
9218
9268
|
declare const pluginSourceDetailSchema: z$1.ZodObject<{
|
|
9219
9269
|
engines: z$1.ZodObject<{
|
|
9220
9270
|
bb: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9475,6 +9525,253 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
9475
9525
|
}, z$1.core.$strip>>;
|
|
9476
9526
|
}, z$1.core.$strip>;
|
|
9477
9527
|
type PluginListResponse = z$1.infer<typeof pluginListResponseSchema>;
|
|
9528
|
+
declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9529
|
+
displayName: z$1.ZodString;
|
|
9530
|
+
id: z$1.ZodString;
|
|
9531
|
+
state: z$1.ZodLiteral<"queued">;
|
|
9532
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9533
|
+
entryId: z$1.ZodString;
|
|
9534
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9535
|
+
marketplace: z$1.ZodString;
|
|
9536
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9537
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9538
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9539
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9540
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9541
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9542
|
+
path: z$1.ZodString;
|
|
9543
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9544
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9545
|
+
name: z$1.ZodString;
|
|
9546
|
+
}, z$1.core.$strict>], "kind">;
|
|
9547
|
+
source: z$1.ZodString;
|
|
9548
|
+
}, z$1.core.$strict>], "kind">;
|
|
9549
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9550
|
+
displayName: z$1.ZodString;
|
|
9551
|
+
id: z$1.ZodString;
|
|
9552
|
+
state: z$1.ZodLiteral<"running">;
|
|
9553
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9554
|
+
entryId: z$1.ZodString;
|
|
9555
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9556
|
+
marketplace: z$1.ZodString;
|
|
9557
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9558
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9559
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9560
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9561
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9562
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9563
|
+
path: z$1.ZodString;
|
|
9564
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9565
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9566
|
+
name: z$1.ZodString;
|
|
9567
|
+
}, z$1.core.$strict>], "kind">;
|
|
9568
|
+
source: z$1.ZodString;
|
|
9569
|
+
}, z$1.core.$strict>], "kind">;
|
|
9570
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9571
|
+
displayName: z$1.ZodString;
|
|
9572
|
+
id: z$1.ZodString;
|
|
9573
|
+
state: z$1.ZodLiteral<"cancelling">;
|
|
9574
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9575
|
+
entryId: z$1.ZodString;
|
|
9576
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9577
|
+
marketplace: z$1.ZodString;
|
|
9578
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9579
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9580
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9581
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9582
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9583
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9584
|
+
path: z$1.ZodString;
|
|
9585
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9586
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9587
|
+
name: z$1.ZodString;
|
|
9588
|
+
}, z$1.core.$strict>], "kind">;
|
|
9589
|
+
source: z$1.ZodString;
|
|
9590
|
+
}, z$1.core.$strict>], "kind">;
|
|
9591
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9592
|
+
displayName: z$1.ZodString;
|
|
9593
|
+
id: z$1.ZodString;
|
|
9594
|
+
plugin: z$1.ZodObject<{
|
|
9595
|
+
app: z$1.ZodObject<{
|
|
9596
|
+
bundle: z$1.ZodNullable<z$1.ZodObject<{
|
|
9597
|
+
compatible: z$1.ZodBoolean;
|
|
9598
|
+
cssUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9599
|
+
hash: z$1.ZodString;
|
|
9600
|
+
jsBytes: z$1.ZodNumber;
|
|
9601
|
+
jsUrl: z$1.ZodString;
|
|
9602
|
+
sdkMajor: z$1.ZodNumber;
|
|
9603
|
+
sdkVersion: z$1.ZodString;
|
|
9604
|
+
}, z$1.core.$strip>>;
|
|
9605
|
+
hasApp: z$1.ZodBoolean;
|
|
9606
|
+
}, z$1.core.$strip>;
|
|
9607
|
+
capabilities: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
9608
|
+
detail: z$1.ZodNullable<z$1.ZodString>;
|
|
9609
|
+
id: z$1.ZodString;
|
|
9610
|
+
kind: z$1.ZodEnum<{
|
|
9611
|
+
"agent-tool": "agent-tool";
|
|
9612
|
+
"thread-integration": "thread-integration";
|
|
9613
|
+
skill: "skill";
|
|
9614
|
+
theme: "theme";
|
|
9615
|
+
}>;
|
|
9616
|
+
label: z$1.ZodString;
|
|
9617
|
+
}, z$1.core.$strip>>>;
|
|
9618
|
+
catalogEntryId: z$1.ZodOptional<z$1.ZodString>;
|
|
9619
|
+
catalogMarketplaceName: z$1.ZodOptional<z$1.ZodString>;
|
|
9620
|
+
category: z$1.ZodOptional<z$1.ZodString>;
|
|
9621
|
+
categoryId: z$1.ZodOptional<z$1.ZodString>;
|
|
9622
|
+
cliCommand: z$1.ZodNullable<z$1.ZodObject<{
|
|
9623
|
+
name: z$1.ZodString;
|
|
9624
|
+
summary: z$1.ZodString;
|
|
9625
|
+
}, z$1.core.$strip>>;
|
|
9626
|
+
collections: z$1.ZodArray<z$1.ZodObject<{
|
|
9627
|
+
id: z$1.ZodString;
|
|
9628
|
+
rank: z$1.ZodNumber;
|
|
9629
|
+
}, z$1.core.$strip>>;
|
|
9630
|
+
description: z$1.ZodNullable<z$1.ZodString>;
|
|
9631
|
+
enabled: z$1.ZodBoolean;
|
|
9632
|
+
handlerStats: z$1.ZodObject<{
|
|
9633
|
+
count: z$1.ZodNumber;
|
|
9634
|
+
errorCount: z$1.ZodNumber;
|
|
9635
|
+
maxMs: z$1.ZodNumber;
|
|
9636
|
+
totalMs: z$1.ZodNumber;
|
|
9637
|
+
}, z$1.core.$strip>;
|
|
9638
|
+
hasSettings: z$1.ZodBoolean;
|
|
9639
|
+
icon: z$1.ZodNullable<z$1.ZodString>;
|
|
9640
|
+
iconUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9641
|
+
icons: z$1.ZodRecord<z$1.ZodString, z$1.ZodString>;
|
|
9642
|
+
id: z$1.ZodString;
|
|
9643
|
+
isOrphanedBuiltin: z$1.ZodBoolean;
|
|
9644
|
+
logoDarkUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9645
|
+
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9646
|
+
name: z$1.ZodNullable<z$1.ZodString>;
|
|
9647
|
+
provenance: z$1.ZodEnum<{
|
|
9648
|
+
builtin: "builtin";
|
|
9649
|
+
catalog: "catalog";
|
|
9650
|
+
direct: "direct";
|
|
9651
|
+
}>;
|
|
9652
|
+
providerIds: z$1.ZodArray<z$1.ZodString>;
|
|
9653
|
+
publishedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
9654
|
+
publisherLabel: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodString>>;
|
|
9655
|
+
rootDir: z$1.ZodString;
|
|
9656
|
+
schedules: z$1.ZodArray<z$1.ZodObject<{
|
|
9657
|
+
cron: z$1.ZodString;
|
|
9658
|
+
lastError: z$1.ZodNullable<z$1.ZodString>;
|
|
9659
|
+
lastRunAt: z$1.ZodNullable<z$1.ZodNumber>;
|
|
9660
|
+
lastStatus: z$1.ZodNullable<z$1.ZodEnum<{
|
|
9661
|
+
error: "error";
|
|
9662
|
+
ok: "ok";
|
|
9663
|
+
running: "running";
|
|
9664
|
+
}>>;
|
|
9665
|
+
name: z$1.ZodString;
|
|
9666
|
+
nextRunAt: z$1.ZodNumber;
|
|
9667
|
+
}, z$1.core.$strip>>;
|
|
9668
|
+
screenshots: z$1.ZodArray<z$1.ZodString>;
|
|
9669
|
+
services: z$1.ZodArray<z$1.ZodObject<{
|
|
9670
|
+
name: z$1.ZodString;
|
|
9671
|
+
state: z$1.ZodEnum<{
|
|
9672
|
+
backoff: "backoff";
|
|
9673
|
+
running: "running";
|
|
9674
|
+
stopped: "stopped";
|
|
9675
|
+
}>;
|
|
9676
|
+
}, z$1.core.$strip>>;
|
|
9677
|
+
source: z$1.ZodString;
|
|
9678
|
+
sourceDisplay: z$1.ZodString;
|
|
9679
|
+
status: z$1.ZodEnum<{
|
|
9680
|
+
"needs-configuration": "needs-configuration";
|
|
9681
|
+
degraded: "degraded";
|
|
9682
|
+
disabled: "disabled";
|
|
9683
|
+
error: "error";
|
|
9684
|
+
incompatible: "incompatible";
|
|
9685
|
+
missing: "missing";
|
|
9686
|
+
running: "running";
|
|
9687
|
+
starting: "starting";
|
|
9688
|
+
}>;
|
|
9689
|
+
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9690
|
+
updateState: z$1.ZodObject<{
|
|
9691
|
+
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9692
|
+
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9693
|
+
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9694
|
+
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
9695
|
+
lastCheckAt: z$1.ZodOptional<z$1.ZodNumber>;
|
|
9696
|
+
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9697
|
+
at: z$1.ZodNumber;
|
|
9698
|
+
detail: z$1.ZodString;
|
|
9699
|
+
version: z$1.ZodString;
|
|
9700
|
+
}, z$1.core.$strip>>;
|
|
9701
|
+
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
9702
|
+
"update-available": "update-available";
|
|
9703
|
+
current: "current";
|
|
9704
|
+
incompatible: "incompatible";
|
|
9705
|
+
pinned: "pinned";
|
|
9706
|
+
unavailable: "unavailable";
|
|
9707
|
+
}>>;
|
|
9708
|
+
}, z$1.core.$strip>;
|
|
9709
|
+
updatedAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
9710
|
+
version: z$1.ZodString;
|
|
9711
|
+
}, z$1.core.$strip>;
|
|
9712
|
+
state: z$1.ZodLiteral<"succeeded">;
|
|
9713
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9714
|
+
entryId: z$1.ZodString;
|
|
9715
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9716
|
+
marketplace: z$1.ZodString;
|
|
9717
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9718
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9719
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9720
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9721
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9722
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9723
|
+
path: z$1.ZodString;
|
|
9724
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9725
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9726
|
+
name: z$1.ZodString;
|
|
9727
|
+
}, z$1.core.$strict>], "kind">;
|
|
9728
|
+
source: z$1.ZodString;
|
|
9729
|
+
}, z$1.core.$strict>], "kind">;
|
|
9730
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9731
|
+
displayName: z$1.ZodString;
|
|
9732
|
+
error: z$1.ZodString;
|
|
9733
|
+
id: z$1.ZodString;
|
|
9734
|
+
state: z$1.ZodLiteral<"failed">;
|
|
9735
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9736
|
+
entryId: z$1.ZodString;
|
|
9737
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9738
|
+
marketplace: z$1.ZodString;
|
|
9739
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9740
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9741
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9742
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9743
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9744
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9745
|
+
path: z$1.ZodString;
|
|
9746
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9747
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9748
|
+
name: z$1.ZodString;
|
|
9749
|
+
}, z$1.core.$strict>], "kind">;
|
|
9750
|
+
source: z$1.ZodString;
|
|
9751
|
+
}, z$1.core.$strict>], "kind">;
|
|
9752
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9753
|
+
displayName: z$1.ZodString;
|
|
9754
|
+
id: z$1.ZodString;
|
|
9755
|
+
state: z$1.ZodLiteral<"cancelled">;
|
|
9756
|
+
target: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9757
|
+
entryId: z$1.ZodString;
|
|
9758
|
+
kind: z$1.ZodLiteral<"catalog">;
|
|
9759
|
+
marketplace: z$1.ZodString;
|
|
9760
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9761
|
+
kind: z$1.ZodLiteral<"source">;
|
|
9762
|
+
selection: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9763
|
+
kind: z$1.ZodLiteral<"root">;
|
|
9764
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9765
|
+
kind: z$1.ZodLiteral<"subdirectory">;
|
|
9766
|
+
path: z$1.ZodString;
|
|
9767
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
9768
|
+
kind: z$1.ZodLiteral<"entry">;
|
|
9769
|
+
name: z$1.ZodString;
|
|
9770
|
+
}, z$1.core.$strict>], "kind">;
|
|
9771
|
+
source: z$1.ZodString;
|
|
9772
|
+
}, z$1.core.$strict>], "kind">;
|
|
9773
|
+
}, z$1.core.$strip>], "state">;
|
|
9774
|
+
type PluginInstallJob$1 = z$1.infer<typeof pluginInstallJobSchema>;
|
|
9478
9775
|
declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
9479
9776
|
ok: z$1.ZodLiteral<true>;
|
|
9480
9777
|
plugins: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -9644,6 +9941,17 @@ declare const pluginSafeModeUpdateResponseSchema: z$1.ZodObject<{
|
|
|
9644
9941
|
problems: z$1.ZodArray<z$1.ZodString>;
|
|
9645
9942
|
}, z$1.core.$strip>;
|
|
9646
9943
|
type PluginSafeModeUpdateResponse = z$1.infer<typeof pluginSafeModeUpdateResponseSchema>;
|
|
9944
|
+
declare const pluginCachePruneResponseSchema: z$1.ZodObject<{
|
|
9945
|
+
bytes: z$1.ZodNumber;
|
|
9946
|
+
dryRun: z$1.ZodBoolean;
|
|
9947
|
+
removed: z$1.ZodArray<z$1.ZodObject<{
|
|
9948
|
+
bytes: z$1.ZodNumber;
|
|
9949
|
+
path: z$1.ZodString;
|
|
9950
|
+
pluginId: z$1.ZodNullable<z$1.ZodString>;
|
|
9951
|
+
version: z$1.ZodString;
|
|
9952
|
+
}, z$1.core.$strip>>;
|
|
9953
|
+
}, z$1.core.$strip>;
|
|
9954
|
+
type PluginCachePruneResponse = z$1.infer<typeof pluginCachePruneResponseSchema>;
|
|
9647
9955
|
declare const pluginTokenResponseSchema: z$1.ZodObject<{
|
|
9648
9956
|
ok: z$1.ZodLiteral<true>;
|
|
9649
9957
|
token: z$1.ZodString;
|
|
@@ -10221,6 +10529,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10221
10529
|
"panel.toggle": "panel.toggle";
|
|
10222
10530
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10223
10531
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10532
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10224
10533
|
"question.select.1": "question.select.1";
|
|
10225
10534
|
"question.select.2": "question.select.2";
|
|
10226
10535
|
"question.select.3": "question.select.3";
|
|
@@ -10376,6 +10685,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10376
10685
|
"panel.toggle": "panel.toggle";
|
|
10377
10686
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10378
10687
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10688
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10379
10689
|
"question.select.1": "question.select.1";
|
|
10380
10690
|
"question.select.2": "question.select.2";
|
|
10381
10691
|
"question.select.3": "question.select.3";
|
|
@@ -10471,6 +10781,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10471
10781
|
"panel.toggle": "panel.toggle";
|
|
10472
10782
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10473
10783
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10784
|
+
"plugins.pruneCache": "plugins.pruneCache";
|
|
10474
10785
|
"question.select.1": "question.select.1";
|
|
10475
10786
|
"question.select.2": "question.select.2";
|
|
10476
10787
|
"question.select.3": "question.select.3";
|
|
@@ -16709,6 +17020,12 @@ interface PluginCatalogInstallArgs {
|
|
|
16709
17020
|
marketplace?: string;
|
|
16710
17021
|
confirmedSource?: PluginCatalogResolvedSource;
|
|
16711
17022
|
}
|
|
17023
|
+
interface PluginInstallJobArgs {
|
|
17024
|
+
jobId: string;
|
|
17025
|
+
}
|
|
17026
|
+
interface PluginInstallJobListArgs {
|
|
17027
|
+
signal?: AbortSignal;
|
|
17028
|
+
}
|
|
16712
17029
|
interface PluginCatalogInstallPlanArgs {
|
|
16713
17030
|
entryId: string;
|
|
16714
17031
|
marketplace?: string;
|
|
@@ -16771,15 +17088,21 @@ interface PluginGetSafeModeArgs {
|
|
|
16771
17088
|
interface PluginSetSafeModeArgs {
|
|
16772
17089
|
enabled: boolean;
|
|
16773
17090
|
}
|
|
17091
|
+
interface PluginPruneCacheArgs {
|
|
17092
|
+
dryRun?: boolean;
|
|
17093
|
+
signal?: AbortSignal;
|
|
17094
|
+
}
|
|
16774
17095
|
type PluginDisableResult = InstalledPlugin;
|
|
16775
17096
|
type PluginEnableResult = InstalledPlugin;
|
|
16776
17097
|
type PluginGetSettingsResult = PluginSettingsResponse;
|
|
16777
17098
|
type PluginInstallResult = InstalledPlugin;
|
|
17099
|
+
type PluginInstallJob = PluginInstallJob$1;
|
|
16778
17100
|
type PluginListResult = PluginListResponse;
|
|
16779
17101
|
type PluginReloadResult = PluginReloadResponse;
|
|
16780
17102
|
type PluginRemoveResult = PluginRemoveResponse;
|
|
16781
17103
|
type PluginSafeModeResult = PluginSafeModeResponse;
|
|
16782
17104
|
type PluginSetSafeModeResult = PluginSafeModeUpdateResponse;
|
|
17105
|
+
type PluginPruneCacheResult = PluginCachePruneResponse;
|
|
16783
17106
|
type PluginTokenResult = PluginTokenResponse;
|
|
16784
17107
|
type PluginUpdateSettingsResult = PluginSettingsResponse;
|
|
16785
17108
|
type PluginGetSourceResult = PluginSourceDetail;
|
|
@@ -16796,6 +17119,7 @@ interface PluginMarketplaceRemoveResult {
|
|
|
16796
17119
|
}
|
|
16797
17120
|
interface PluginCatalogArea {
|
|
16798
17121
|
install(args: PluginCatalogInstallArgs): Promise<PluginInstallResult>;
|
|
17122
|
+
startInstall(args: PluginCatalogInstallArgs): Promise<PluginInstallJob>;
|
|
16799
17123
|
installPlan(args: PluginCatalogInstallPlanArgs): Promise<PluginCatalogInstallPlanResult>;
|
|
16800
17124
|
search(args: PluginCatalogSearchArgs): Promise<PluginCatalogSearchResult>;
|
|
16801
17125
|
status(args?: PluginCatalogStatusArgs): Promise<PluginCatalogStatusResult>;
|
|
@@ -16806,11 +17130,27 @@ interface PluginMarketplacesArea {
|
|
|
16806
17130
|
refresh(args?: PluginMarketplaceRefreshArgs): Promise<PluginMarketplaceRefreshResult>;
|
|
16807
17131
|
remove(args: PluginMarketplaceRemoveArgs): Promise<PluginMarketplaceRemoveResult>;
|
|
16808
17132
|
}
|
|
17133
|
+
interface PluginInstallJobsArea {
|
|
17134
|
+
cancel(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
17135
|
+
get(args: PluginInstallJobArgs): Promise<PluginInstallJob>;
|
|
17136
|
+
list(args?: PluginInstallJobListArgs): Promise<PluginInstallJob[]>;
|
|
17137
|
+
}
|
|
17138
|
+
interface PluginUpdateJobsArea {
|
|
17139
|
+
get(args: {
|
|
17140
|
+
jobId: string;
|
|
17141
|
+
}): Promise<PluginUpdateJob>;
|
|
17142
|
+
list(args?: {
|
|
17143
|
+
signal?: AbortSignal;
|
|
17144
|
+
}): Promise<PluginUpdateJob[]>;
|
|
17145
|
+
}
|
|
16809
17146
|
interface PluginsArea {
|
|
16810
17147
|
experimental_discoverRpc(args?: PluginRpcDiscoveryQuery): Promise<PublishedPluginRpcMethod[]>;
|
|
16811
17148
|
experimental_getSafeMode(args?: PluginGetSafeModeArgs): Promise<PluginSafeModeResult>;
|
|
16812
17149
|
experimental_setSafeMode(args: PluginSetSafeModeArgs): Promise<PluginSetSafeModeResult>;
|
|
17150
|
+
experimental_pruneCache(args?: PluginPruneCacheArgs): Promise<PluginPruneCacheResult>;
|
|
16813
17151
|
applyUpdate(args: PluginIdArgs): Promise<PluginApplyUpdateResult>;
|
|
17152
|
+
experimental_startUpdate(args: PluginIdArgs): Promise<PluginUpdateJob>;
|
|
17153
|
+
experimental_updateJobs: PluginUpdateJobsArea;
|
|
16814
17154
|
callRpc<TOutput>(args: PluginRpcArgs<TOutput>): Promise<TOutput>;
|
|
16815
17155
|
checkUpdates(args?: PluginCheckUpdatesArgs): Promise<PluginCheckUpdatesResult>;
|
|
16816
17156
|
catalog: PluginCatalogArea;
|
|
@@ -16820,6 +17160,8 @@ interface PluginsArea {
|
|
|
16820
17160
|
getSettings(args: PluginGetSettingsArgs): Promise<PluginGetSettingsResult>;
|
|
16821
17161
|
getSource(args: PluginGetSourceArgs): Promise<PluginGetSourceResult>;
|
|
16822
17162
|
install(args: PluginInstallArgs): Promise<PluginInstallResult>;
|
|
17163
|
+
startInstall(args: PluginInstallArgs): Promise<PluginInstallJob>;
|
|
17164
|
+
installJobs: PluginInstallJobsArea;
|
|
16823
17165
|
list(args?: PluginListArgs): Promise<PluginListResult>;
|
|
16824
17166
|
listUpdateResults(args?: PluginListUpdateResultsArgs): Promise<PluginCheckUpdatesResult>;
|
|
16825
17167
|
reload(args?: PluginReloadArgs): Promise<PluginReloadResult>;
|
|
@@ -19138,6 +19480,8 @@ interface PluginSidebarThreadActions {
|
|
|
19138
19480
|
rename(threadId: string, title: string): Promise<void>;
|
|
19139
19481
|
/** Confirms before including child threads unless archive confirmation is disabled in Settings → General. */
|
|
19140
19482
|
archive(threadId: string): void;
|
|
19483
|
+
/** Archives an environment's active thread trees with bb's optimistic updates, pane cleanup, and one Undo toast. Rejects after bb shows an error toast on failure. */
|
|
19484
|
+
experimental_archiveEnvironmentThreads(environmentId: string): Promise<void>;
|
|
19141
19485
|
/**
|
|
19142
19486
|
* Opens bb's delete confirmation, which counts child threads first. Deletion
|
|
19143
19487
|
* is destructive and recursive, so the host owns the confirmation: there is
|
|
@@ -21047,10 +21391,14 @@ interface PluginSdkApp {
|
|
|
21047
21391
|
* surfaces without further work. Reserve `useRpc` for work that needs your
|
|
21048
21392
|
* server: secrets, host files, or your plugin's own storage.
|
|
21049
21393
|
*
|
|
21050
|
-
* Thread title, section, and
|
|
21051
|
-
*
|
|
21052
|
-
*
|
|
21053
|
-
*
|
|
21394
|
+
* Thread title, section, parent, pin, and unpin writes are optimistic in
|
|
21395
|
+
* bb's surfaces. Synchronous calls share one cache transaction; writes to
|
|
21396
|
+
* the same thread execute in order, so unpin and move can be submitted
|
|
21397
|
+
* together. Unarchive, environment-group archive, project/machine/environment
|
|
21398
|
+
* renames, and project/section removal are also optimistic and roll back on
|
|
21399
|
+
* failure. Created sections enter the cache when the server assigns their id.
|
|
21400
|
+
* `experimental_useSidebarThreadActions()` owns navigation, read state,
|
|
21401
|
+
* archive confirmation, and delete confirmation.
|
|
21054
21402
|
*
|
|
21055
21403
|
* The client is stable for the plugin's lifetime, so it is safe in effect
|
|
21056
21404
|
* and callback dependency lists.
|
package/dist/testing/app.js
CHANGED
|
@@ -2748,6 +2748,12 @@ function renderSlot(registration, props, options = {}) {
|
|
|
2748
2748
|
archive(threadId2) {
|
|
2749
2749
|
sidebarActionCalls.push({ method: "archive", threadId: threadId2 });
|
|
2750
2750
|
},
|
|
2751
|
+
async experimental_archiveEnvironmentThreads(environmentId) {
|
|
2752
|
+
sidebarActionCalls.push({
|
|
2753
|
+
method: "experimental_archiveEnvironmentThreads",
|
|
2754
|
+
environmentId
|
|
2755
|
+
});
|
|
2756
|
+
},
|
|
2751
2757
|
requestDelete(threadId2) {
|
|
2752
2758
|
sidebarActionCalls.push({ method: "requestDelete", threadId: threadId2 });
|
|
2753
2759
|
}
|