@get-bb/plugin-sdk 0.4.53 → 0.4.55
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/bundled-types/bb-plugin-sdk-app.d.ts +8 -0
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk-testing.d.ts +2 -2
- package/bundled-types/bb-plugin-sdk.d.ts +40 -5
- package/package.json +1 -1
|
@@ -2394,6 +2394,14 @@ interface MarkdownProps {
|
|
|
2394
2394
|
/** Markdown source, rendered exactly like a chat message body. */
|
|
2395
2395
|
content: string;
|
|
2396
2396
|
className?: string;
|
|
2397
|
+
/** Resolve local destinations from this document; omission keeps message routing. */
|
|
2398
|
+
experimental_document?: {
|
|
2399
|
+
threadId: string;
|
|
2400
|
+
rootPath: string;
|
|
2401
|
+
target: Exclude<ExperimentalLiveFileTarget, {
|
|
2402
|
+
kind: "host";
|
|
2403
|
+
}>;
|
|
2404
|
+
};
|
|
2397
2405
|
}
|
|
2398
2406
|
/**
|
|
2399
2407
|
* Props for BB's semantic URL link. The host owns ordinary activation while
|
|
@@ -55,6 +55,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
55
55
|
path: z.ZodNullable<z.ZodString>;
|
|
56
56
|
projectId: z.ZodString;
|
|
57
57
|
status: z.ZodEnum<{
|
|
58
|
+
creating: "creating";
|
|
58
59
|
destroyed: "destroyed";
|
|
59
60
|
error: "error";
|
|
60
61
|
provisioning: "provisioning";
|
|
@@ -221,7 +222,6 @@ type PluginEnvironmentProviderCreateResult = {
|
|
|
221
222
|
resource?: JsonValue$1;
|
|
222
223
|
} | {
|
|
223
224
|
status: "failed";
|
|
224
|
-
failure: "terminal" | "transient";
|
|
225
225
|
message: string;
|
|
226
226
|
};
|
|
227
227
|
interface PluginEnvironmentProviderRemoveContext {
|
|
@@ -256,7 +256,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
256
256
|
requires?: R;
|
|
257
257
|
inputs?: S;
|
|
258
258
|
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
259
|
-
/** Experimental
|
|
259
|
+
/** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
|
|
260
260
|
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
261
261
|
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
|
|
262
262
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
@@ -107,6 +107,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
107
107
|
path: z.ZodNullable<z.ZodString>;
|
|
108
108
|
projectId: z.ZodString;
|
|
109
109
|
status: z.ZodEnum<{
|
|
110
|
+
creating: "creating";
|
|
110
111
|
destroyed: "destroyed";
|
|
111
112
|
error: "error";
|
|
112
113
|
provisioning: "provisioning";
|
|
@@ -547,7 +548,6 @@ type PluginEnvironmentProviderCreateResult = {
|
|
|
547
548
|
resource?: JsonValue$2;
|
|
548
549
|
} | {
|
|
549
550
|
status: "failed";
|
|
550
|
-
failure: "terminal" | "transient";
|
|
551
551
|
message: string;
|
|
552
552
|
};
|
|
553
553
|
interface PluginEnvironmentProviderRemoveContext {
|
|
@@ -582,7 +582,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
582
582
|
requires?: R;
|
|
583
583
|
inputs?: S;
|
|
584
584
|
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
585
|
-
/** Experimental
|
|
585
|
+
/** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
|
|
586
586
|
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
587
587
|
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
|
|
588
588
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
@@ -107,6 +107,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
107
107
|
path: z.ZodNullable<z.ZodString>;
|
|
108
108
|
projectId: z.ZodString;
|
|
109
109
|
status: z.ZodEnum<{
|
|
110
|
+
creating: "creating";
|
|
110
111
|
destroyed: "destroyed";
|
|
111
112
|
error: "error";
|
|
112
113
|
provisioning: "provisioning";
|
|
@@ -276,7 +277,6 @@ type PluginEnvironmentProviderCreateResult = {
|
|
|
276
277
|
resource?: JsonValue$2;
|
|
277
278
|
} | {
|
|
278
279
|
status: "failed";
|
|
279
|
-
failure: "terminal" | "transient";
|
|
280
280
|
message: string;
|
|
281
281
|
};
|
|
282
282
|
interface PluginEnvironmentProviderRemoveContext {
|
|
@@ -311,7 +311,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
311
311
|
requires?: R;
|
|
312
312
|
inputs?: S;
|
|
313
313
|
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
314
|
-
/** Experimental
|
|
314
|
+
/** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
|
|
315
315
|
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
316
316
|
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision | Promise<PluginEnvironmentValidateDecision>;
|
|
317
317
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|
|
@@ -73,7 +73,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
73
73
|
}, z$1.core.$strict>]>;
|
|
74
74
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
75
75
|
|
|
76
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.chronologicalSort", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider"];
|
|
76
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.collapsedSections", "sidebar.collapsedProjects", "sidebar.collapsedThreads", "sidebar.collapsedEnvironments", "sidebar.collapsedThreadSections", "sidebar.collapsedMachines", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider"];
|
|
77
77
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
78
78
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
79
79
|
schema: Schema;
|
|
@@ -92,6 +92,11 @@ declare const uiPreferenceDefinitions: {
|
|
|
92
92
|
none: "none";
|
|
93
93
|
updated: "updated";
|
|
94
94
|
}>>;
|
|
95
|
+
readonly "sidebar.sortDirection": UiPreferenceDefinition<z$1.ZodEnum<{
|
|
96
|
+
ascending: "ascending";
|
|
97
|
+
default: "default";
|
|
98
|
+
descending: "descending";
|
|
99
|
+
}>>;
|
|
95
100
|
readonly "sidebar.sectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
96
101
|
readonly "sidebar.manualSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
97
102
|
readonly "sidebar.machineSectionOrder": UiPreferenceDefinition<z$1.ZodArray<z$1.ZodString>>;
|
|
@@ -334,6 +339,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
334
339
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
335
340
|
changes: z$1.ZodReadonly<z$1.ZodArray<z$1.ZodEnum<{
|
|
336
341
|
"config-changed": "config-changed";
|
|
342
|
+
"environment-availability-changed": "environment-availability-changed";
|
|
337
343
|
"plugins-changed": "plugins-changed";
|
|
338
344
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
339
345
|
"ui-preferences-changed": "ui-preferences-changed";
|
|
@@ -344,6 +350,7 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
344
350
|
type ChangedMessage = z$1.infer<typeof changedMessageSchema>;
|
|
345
351
|
|
|
346
352
|
declare const environmentStatusSchema: z$1.ZodEnum<{
|
|
353
|
+
creating: "creating";
|
|
347
354
|
destroyed: "destroyed";
|
|
348
355
|
error: "error";
|
|
349
356
|
provisioning: "provisioning";
|
|
@@ -404,6 +411,7 @@ declare const environmentSchema: z$1.ZodObject<{
|
|
|
404
411
|
path: z$1.ZodNullable<z$1.ZodString>;
|
|
405
412
|
projectId: z$1.ZodString;
|
|
406
413
|
status: z$1.ZodEnum<{
|
|
414
|
+
creating: "creating";
|
|
407
415
|
destroyed: "destroyed";
|
|
408
416
|
error: "error";
|
|
409
417
|
provisioning: "provisioning";
|
|
@@ -420,7 +428,6 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
420
428
|
|
|
421
429
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
422
430
|
changelogPreview: "changelogPreview";
|
|
423
|
-
editMessages: "editMessages";
|
|
424
431
|
mobileApp: "mobileApp";
|
|
425
432
|
sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
|
|
426
433
|
timelineWindowing: "timelineWindowing";
|
|
@@ -6943,6 +6950,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6943
6950
|
limit: z$1.ZodNumber;
|
|
6944
6951
|
path: z$1.ZodString;
|
|
6945
6952
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
6953
|
+
respectGitIgnore: z$1.ZodBoolean;
|
|
6946
6954
|
type: z$1.ZodLiteral<"host.list_files">;
|
|
6947
6955
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6948
6956
|
files: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -6959,6 +6967,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6959
6967
|
limit: z$1.ZodNumber;
|
|
6960
6968
|
path: z$1.ZodString;
|
|
6961
6969
|
query: z$1.ZodOptional<z$1.ZodString>;
|
|
6970
|
+
respectGitIgnore: z$1.ZodBoolean;
|
|
6962
6971
|
type: z$1.ZodLiteral<"host.list_paths">;
|
|
6963
6972
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
6964
6973
|
paths: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -9507,7 +9516,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
9507
9516
|
}, z$1.core.$strict>>;
|
|
9508
9517
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
9509
9518
|
changelogPreview: "changelogPreview";
|
|
9510
|
-
editMessages: "editMessages";
|
|
9511
9519
|
mobileApp: "mobileApp";
|
|
9512
9520
|
sidebarProgressiveDisclosure: "sidebarProgressiveDisclosure";
|
|
9513
9521
|
timelineWindowing: "timelineWindowing";
|
|
@@ -9822,6 +9830,15 @@ declare const systemEnvironmentProviderSchema: z$1.ZodObject<{
|
|
|
9822
9830
|
id: z$1.ZodString;
|
|
9823
9831
|
inputs: z$1.ZodNullable<z$1.ZodType<JsonValue$1, unknown, z$1.core.$ZodTypeInternals<JsonValue$1, unknown>>>;
|
|
9824
9832
|
logoUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
9833
|
+
machineAvailability: z$1.ZodRecord<z$1.ZodString, z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9834
|
+
status: z$1.ZodLiteral<"available">;
|
|
9835
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9836
|
+
message: z$1.ZodString;
|
|
9837
|
+
status: z$1.ZodLiteral<"setup-required">;
|
|
9838
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
9839
|
+
message: z$1.ZodString;
|
|
9840
|
+
status: z$1.ZodLiteral<"unavailable">;
|
|
9841
|
+
}, z$1.core.$strip>], "status">>>;
|
|
9825
9842
|
pluginId: z$1.ZodString;
|
|
9826
9843
|
requires: z$1.ZodObject<{
|
|
9827
9844
|
gitCheckout: z$1.ZodBoolean;
|
|
@@ -12681,6 +12698,7 @@ declare const threadWithIncludesResponseSchema: z$1.ZodObject<{
|
|
|
12681
12698
|
path: z$1.ZodNullable<z$1.ZodString>;
|
|
12682
12699
|
projectId: z$1.ZodString;
|
|
12683
12700
|
status: z$1.ZodEnum<{
|
|
12701
|
+
creating: "creating";
|
|
12684
12702
|
destroyed: "destroyed";
|
|
12685
12703
|
error: "error";
|
|
12686
12704
|
provisioning: "provisioning";
|
|
@@ -13311,6 +13329,7 @@ declare const threadTimelineQuerySchema: z$1.ZodObject<{
|
|
|
13311
13329
|
}, z$1.core.$strip>;
|
|
13312
13330
|
type ThreadTimelineQuery = z$1.infer<typeof threadTimelineQuerySchema>;
|
|
13313
13331
|
declare const timelineTurnSummaryDetailsQuerySchema: z$1.ZodObject<{
|
|
13332
|
+
beforeCursor: z$1.ZodOptional<z$1.ZodString>;
|
|
13314
13333
|
sourceSeqEnd: z$1.ZodString;
|
|
13315
13334
|
sourceSeqStart: z$1.ZodString;
|
|
13316
13335
|
turnId: z$1.ZodString;
|
|
@@ -13340,6 +13359,8 @@ declare const threadStorageLocationResponseSchema: z$1.ZodObject<{
|
|
|
13340
13359
|
}, z$1.core.$strict>;
|
|
13341
13360
|
type ThreadStorageLocationResponse = z$1.infer<typeof threadStorageLocationResponseSchema>;
|
|
13342
13361
|
declare const timelineTurnSummaryDetailsResponseSchema: z$1.ZodObject<{
|
|
13362
|
+
historySnapshot: z$1.ZodOptional<z$1.ZodString>;
|
|
13363
|
+
olderCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
13343
13364
|
rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
|
|
13344
13365
|
}, z$1.core.$strip>;
|
|
13345
13366
|
type TimelineTurnSummaryDetailsResponse = z$1.infer<typeof timelineTurnSummaryDetailsResponseSchema>;
|
|
@@ -13606,7 +13627,14 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
13606
13627
|
}, z$1.core.$strip>>;
|
|
13607
13628
|
rows: z$1.ZodArray<z$1.ZodType<TimelineRow, unknown, z$1.core.$ZodTypeInternals<TimelineRow, unknown>>>;
|
|
13608
13629
|
timelinePage: z$1.ZodObject<{
|
|
13630
|
+
contentPage: z$1.ZodOptional<z$1.ZodObject<{
|
|
13631
|
+
anchorSeq: z$1.ZodNumber;
|
|
13632
|
+
end: z$1.ZodNumber;
|
|
13633
|
+
start: z$1.ZodNumber;
|
|
13634
|
+
total: z$1.ZodNumber;
|
|
13635
|
+
}, z$1.core.$strip>>;
|
|
13609
13636
|
hasOlderRows: z$1.ZodBoolean;
|
|
13637
|
+
historySnapshot: z$1.ZodOptional<z$1.ZodString>;
|
|
13610
13638
|
kind: z$1.ZodEnum<{
|
|
13611
13639
|
latest: "latest";
|
|
13612
13640
|
older: "older";
|
|
@@ -16145,6 +16173,14 @@ interface MarkdownProps {
|
|
|
16145
16173
|
/** Markdown source, rendered exactly like a chat message body. */
|
|
16146
16174
|
content: string;
|
|
16147
16175
|
className?: string;
|
|
16176
|
+
/** Resolve local destinations from this document; omission keeps message routing. */
|
|
16177
|
+
experimental_document?: {
|
|
16178
|
+
threadId: string;
|
|
16179
|
+
rootPath: string;
|
|
16180
|
+
target: Exclude<ExperimentalLiveFileTarget, {
|
|
16181
|
+
kind: "host";
|
|
16182
|
+
}>;
|
|
16183
|
+
};
|
|
16148
16184
|
}
|
|
16149
16185
|
/**
|
|
16150
16186
|
* Props for BB's semantic URL link. The host owns ordinary activation while
|
|
@@ -16476,7 +16512,6 @@ type PluginEnvironmentProviderCreateResult = {
|
|
|
16476
16512
|
resource?: JsonValue$2;
|
|
16477
16513
|
} | {
|
|
16478
16514
|
status: "failed";
|
|
16479
|
-
failure: "terminal" | "transient";
|
|
16480
16515
|
message: string;
|
|
16481
16516
|
};
|
|
16482
16517
|
interface PluginEnvironmentProviderRemoveContext {
|
|
@@ -16511,7 +16546,7 @@ interface PluginEnvironmentProviderDefinition<R extends PluginEnvironmentProvide
|
|
|
16511
16546
|
requires?: R;
|
|
16512
16547
|
inputs?: S;
|
|
16513
16548
|
policy?: Partial<PluginEnvironmentProviderPolicy>;
|
|
16514
|
-
/** Experimental
|
|
16549
|
+
/** Experimental per-machine availability, probed in the background for pickers and again at thread creation: see docs/api_to_audit.md. */
|
|
16515
16550
|
availability?(context: PluginEnvironmentProviderAvailabilityContext): PluginEnvironmentProviderAvailability | Promise<PluginEnvironmentProviderAvailability>;
|
|
16516
16551
|
validate?(context: PluginEnvironmentProviderValidateContext<R, S>): PluginEnvironmentValidateDecision$1 | Promise<PluginEnvironmentValidateDecision$1>;
|
|
16517
16552
|
create(context: PluginEnvironmentProviderCreateContext<R, S>): Promise<PluginEnvironmentProviderCreateResult>;
|