@get-bb/plugin-sdk 0.6.94 → 0.6.104
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 +504 -121
- package/bundled-types/bb-plugin-sdk-host.d.ts +64 -64
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +18 -8
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts +6 -6
- package/bundled-types/bb-plugin-sdk-internal-rpc-tags.d.ts +1 -1
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +4 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +12 -1
- package/bundled-types/bb-plugin-sdk-testing-app.d.ts +20 -1
- package/bundled-types/bb-plugin-sdk-testing.d.ts +19 -10
- package/bundled-types/bb-plugin-sdk.d.ts +575 -183
- package/dist/app.js +20 -0
- package/dist/host.js +12 -7
- package/dist/internal/host-policy.js +9 -5
- package/dist/internal/plugin-app-collector.js +45 -0
- package/dist/internal/rpc-query-host.js +4 -10
- package/dist/process.js +12 -7
- package/dist/provider-bridge-acp-next.js +2172 -2023
- package/dist/provider-bridge-acp.js +2172 -2023
- package/dist/provider-bridge-testing.js +126 -134
- package/dist/provider-bridge.js +622 -599
- package/dist/testing/app.js +120 -11
- package/dist/testing/index.js +26 -6
- package/package.json +1 -1
|
@@ -29,6 +29,111 @@ type ReadonlyJsonValue = string | number | boolean | null | readonly ReadonlyJso
|
|
|
29
29
|
readonly [key: string]: ReadonlyJsonValue;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
interface ContractTagDeclarations<Input, Output> {
|
|
33
|
+
tags?(input: Input, output: Output): readonly string[];
|
|
34
|
+
keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
|
|
35
|
+
invalidates?(input: Input, output: Output): readonly string[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
39
|
+
type PluginRpcIssuePathSegment = string | number;
|
|
40
|
+
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
41
|
+
interface PluginRpcValidationIssue {
|
|
42
|
+
message: string;
|
|
43
|
+
path?: PluginRpcIssuePathSegment[];
|
|
44
|
+
}
|
|
45
|
+
declare const rpcErrorCodes: readonly ["forbidden", "not_found", "conflict", "invalid", "invalid_json", "invalid_input", "handler_error", "invalid_output", "non_json_result", "unknown_method", "transport_error", "invalid_response", "unknown_error"];
|
|
46
|
+
/** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
|
|
47
|
+
type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
|
|
48
|
+
/** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
|
|
49
|
+
declare class experimental_PluginRpcCallError extends Error {
|
|
50
|
+
/** Recognizes errors across the packed SDK's separately bundled entries. */
|
|
51
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
52
|
+
readonly code: PluginRpcErrorCode;
|
|
53
|
+
readonly issues?: PluginRpcValidationIssue[];
|
|
54
|
+
readonly status?: number;
|
|
55
|
+
readonly serverCode?: string;
|
|
56
|
+
constructor(args: PluginRpcError & {
|
|
57
|
+
status?: number;
|
|
58
|
+
serverCode?: string;
|
|
59
|
+
});
|
|
60
|
+
/** Normalize failures at the RPC boundary; preserves an existing client error. */
|
|
61
|
+
static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
|
|
62
|
+
}
|
|
63
|
+
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
64
|
+
interface PluginRpcError {
|
|
65
|
+
code: PluginRpcErrorCode;
|
|
66
|
+
message: string;
|
|
67
|
+
issues?: PluginRpcValidationIssue[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
71
|
+
* Zod 4 schemas implement this interface directly; other validators can do
|
|
72
|
+
* the same without becoming part of BB's public protocol.
|
|
73
|
+
*/
|
|
74
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
75
|
+
readonly "~standard": {
|
|
76
|
+
readonly version: 1;
|
|
77
|
+
readonly vendor: string;
|
|
78
|
+
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
79
|
+
readonly jsonSchema?: {
|
|
80
|
+
readonly input: (options: {
|
|
81
|
+
target: string;
|
|
82
|
+
}) => Record<string, unknown>;
|
|
83
|
+
readonly output: (options: {
|
|
84
|
+
target: string;
|
|
85
|
+
}) => Record<string, unknown>;
|
|
86
|
+
};
|
|
87
|
+
readonly types?: {
|
|
88
|
+
readonly input: Input;
|
|
89
|
+
readonly output: Output;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
type StandardSchemaV1Result<Output> = {
|
|
94
|
+
readonly value: Output;
|
|
95
|
+
readonly issues?: undefined;
|
|
96
|
+
} | {
|
|
97
|
+
readonly issues: readonly StandardSchemaV1Issue[];
|
|
98
|
+
};
|
|
99
|
+
interface StandardSchemaV1Issue {
|
|
100
|
+
readonly message: string;
|
|
101
|
+
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
102
|
+
readonly key: PropertyKey;
|
|
103
|
+
})[];
|
|
104
|
+
}
|
|
105
|
+
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
106
|
+
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
107
|
+
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends Omit<ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>>, "invalidates"> {
|
|
108
|
+
readonly experimental_description?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Host contracts only. When true and the daemon's response has not arrived
|
|
111
|
+
* within half of the call's transport timeout, bb cancels the call and sends
|
|
112
|
+
* it once more, the retry core uses for its own read-only daemon commands.
|
|
113
|
+
* Declare it only for reads that are safe to run twice.
|
|
114
|
+
*/
|
|
115
|
+
readonly experimental_retryable?: boolean;
|
|
116
|
+
readonly input: InputSchema;
|
|
117
|
+
readonly output: OutputSchema;
|
|
118
|
+
}
|
|
119
|
+
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
120
|
+
/** Methods callable with only keys and returning one value per string key. */
|
|
121
|
+
type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
|
|
122
|
+
[Method in keyof Contract & string]: {
|
|
123
|
+
keys: string[];
|
|
124
|
+
} extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
|
|
125
|
+
keys: string[];
|
|
126
|
+
} ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
|
|
127
|
+
}[keyof Contract & string];
|
|
128
|
+
/** One keyed method's inferred row value. */
|
|
129
|
+
type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
|
|
130
|
+
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
131
|
+
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
132
|
+
};
|
|
133
|
+
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
134
|
+
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
135
|
+
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
136
|
+
|
|
32
137
|
declare const appSettingsSchema: z$1.ZodObject<{
|
|
33
138
|
allowFastServiceTier: z$1.ZodBoolean;
|
|
34
139
|
confirmThreadArchive: z$1.ZodBoolean;
|
|
@@ -107,7 +212,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
107
212
|
}, z$1.core.$strict>]>;
|
|
108
213
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
109
214
|
|
|
110
|
-
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "composer.provider", "infoPanel.collapsedSections"];
|
|
215
|
+
declare const UI_PREFERENCE_KEYS: readonly ["sidebar.organizationMode", "sidebar.threadGrouping.environment", "sidebar.chronologicalSort", "sidebar.sortDirection", "sidebar.sectionOrder", "sidebar.manualSectionOrder", "sidebar.machineSectionOrder", "sidebar.hiddenGroups", "sidebar.footerOrder", "sidebar.hiddenFooterItems", "sidebar.pluginPanelOrder", "sidebar.visiblePluginPanels", "sidebar.navigationProvider", "sidebar.threadListProvider", "composer.provider", "infoPanel.collapsedSections", "threadContextCard.pinned"];
|
|
111
216
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
112
217
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
113
218
|
schema: Schema;
|
|
@@ -143,6 +248,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
143
248
|
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
144
249
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
145
250
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
251
|
+
readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
|
|
146
252
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
147
253
|
};
|
|
148
254
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
@@ -203,6 +309,9 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
203
309
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
204
310
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
205
311
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
312
|
+
"question.cancel": "question.cancel";
|
|
313
|
+
"question.next": "question.next";
|
|
314
|
+
"question.previous": "question.previous";
|
|
206
315
|
"question.select.1": "question.select.1";
|
|
207
316
|
"question.select.2": "question.select.2";
|
|
208
317
|
"question.select.3": "question.select.3";
|
|
@@ -212,6 +321,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
212
321
|
"question.select.7": "question.select.7";
|
|
213
322
|
"question.select.8": "question.select.8";
|
|
214
323
|
"question.select.9": "question.select.9";
|
|
324
|
+
"question.submit": "question.submit";
|
|
215
325
|
"settings.open": "settings.open";
|
|
216
326
|
"settings.openServers": "settings.openServers";
|
|
217
327
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -403,13 +513,10 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
403
513
|
"plugins-changed": "plugins-changed";
|
|
404
514
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
405
515
|
"server-move-changed": "server-move-changed";
|
|
516
|
+
"ui-preferences-changed": "ui-preferences-changed";
|
|
406
517
|
}>>>;
|
|
407
518
|
entity: z$1.ZodLiteral<"system">;
|
|
408
519
|
type: z$1.ZodLiteral<"changed">;
|
|
409
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
410
|
-
entity: z$1.ZodLiteral<"tags">;
|
|
411
|
-
tags: z$1.ZodArray<z$1.ZodString>;
|
|
412
|
-
type: z$1.ZodLiteral<"changed">;
|
|
413
520
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
414
521
|
entity: z$1.ZodLiteral<"plugin">;
|
|
415
522
|
pluginId: z$1.ZodString;
|
|
@@ -504,8 +611,11 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
504
611
|
changelogPreview: "changelogPreview";
|
|
505
612
|
compactExpiredCache: "compactExpiredCache";
|
|
506
613
|
performanceDiagnostics: "performanceDiagnostics";
|
|
614
|
+
pluginUpdates: "pluginUpdates";
|
|
507
615
|
serverMove: "serverMove";
|
|
508
616
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
617
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
618
|
+
threadContextCard: "threadContextCard";
|
|
509
619
|
threadRowMetadata: "threadRowMetadata";
|
|
510
620
|
timelinePush: "timelinePush";
|
|
511
621
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -517,8 +627,11 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
517
627
|
changelogPreview: "changelogPreview";
|
|
518
628
|
compactExpiredCache: "compactExpiredCache";
|
|
519
629
|
performanceDiagnostics: "performanceDiagnostics";
|
|
630
|
+
pluginUpdates: "pluginUpdates";
|
|
520
631
|
serverMove: "serverMove";
|
|
521
632
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
633
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
634
|
+
threadContextCard: "threadContextCard";
|
|
522
635
|
threadRowMetadata: "threadRowMetadata";
|
|
523
636
|
timelinePush: "timelinePush";
|
|
524
637
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -680,9 +793,11 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
680
793
|
providerThreadId: z$1.ZodString;
|
|
681
794
|
status: z$1.ZodEnum<{
|
|
682
795
|
active: "active";
|
|
796
|
+
blocked: "blocked";
|
|
683
797
|
budgetLimited: "budgetLimited";
|
|
684
798
|
complete: "complete";
|
|
685
799
|
paused: "paused";
|
|
800
|
+
usageLimited: "usageLimited";
|
|
686
801
|
}>;
|
|
687
802
|
threadId: z$1.ZodString;
|
|
688
803
|
timeUsedSeconds: z$1.ZodNumber;
|
|
@@ -3327,6 +3442,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3327
3442
|
value: z$1.ZodString;
|
|
3328
3443
|
}, z$1.core.$strip>>>;
|
|
3329
3444
|
prompt: z$1.ZodString;
|
|
3445
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3330
3446
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3331
3447
|
}, z$1.core.$strip>>;
|
|
3332
3448
|
}, z$1.core.$strip>;
|
|
@@ -3485,6 +3601,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3485
3601
|
value: z$1.ZodString;
|
|
3486
3602
|
}, z$1.core.$strip>>>;
|
|
3487
3603
|
prompt: z$1.ZodString;
|
|
3604
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3488
3605
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3489
3606
|
}, z$1.core.$strip>>;
|
|
3490
3607
|
}, z$1.core.$strip>;
|
|
@@ -3771,6 +3888,7 @@ declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
3771
3888
|
value: z$1.ZodString;
|
|
3772
3889
|
}, z$1.core.$strip>>>;
|
|
3773
3890
|
prompt: z$1.ZodString;
|
|
3891
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3774
3892
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3775
3893
|
}, z$1.core.$strip>>;
|
|
3776
3894
|
}, z$1.core.$strip>;
|
|
@@ -4396,111 +4514,6 @@ declare const mobileAppDownloads: {
|
|
|
4396
4514
|
android: string;
|
|
4397
4515
|
};
|
|
4398
4516
|
|
|
4399
|
-
interface ContractTagDeclarations<Input, Output> {
|
|
4400
|
-
tags?(input: Input, output: Output): readonly string[];
|
|
4401
|
-
keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
|
|
4402
|
-
invalidates?(input: Input, output: Output): readonly string[];
|
|
4403
|
-
}
|
|
4404
|
-
|
|
4405
|
-
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
4406
|
-
type PluginRpcIssuePathSegment = string | number;
|
|
4407
|
-
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
4408
|
-
interface PluginRpcValidationIssue {
|
|
4409
|
-
message: string;
|
|
4410
|
-
path?: PluginRpcIssuePathSegment[];
|
|
4411
|
-
}
|
|
4412
|
-
declare const rpcErrorCodes: readonly ["forbidden", "not_found", "conflict", "invalid", "invalid_json", "invalid_input", "handler_error", "invalid_output", "non_json_result", "unknown_method", "transport_error", "invalid_response", "unknown_error"];
|
|
4413
|
-
/** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
|
|
4414
|
-
type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
|
|
4415
|
-
/** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
|
|
4416
|
-
declare class experimental_PluginRpcCallError extends Error {
|
|
4417
|
-
/** Recognizes errors across the packed SDK's separately bundled entries. */
|
|
4418
|
-
static [Symbol.hasInstance](value: unknown): boolean;
|
|
4419
|
-
readonly code: PluginRpcErrorCode;
|
|
4420
|
-
readonly issues?: PluginRpcValidationIssue[];
|
|
4421
|
-
readonly status?: number;
|
|
4422
|
-
readonly serverCode?: string;
|
|
4423
|
-
constructor(args: PluginRpcError & {
|
|
4424
|
-
status?: number;
|
|
4425
|
-
serverCode?: string;
|
|
4426
|
-
});
|
|
4427
|
-
/** Normalize failures at the RPC boundary; preserves an existing client error. */
|
|
4428
|
-
static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
|
|
4429
|
-
}
|
|
4430
|
-
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
4431
|
-
interface PluginRpcError {
|
|
4432
|
-
code: PluginRpcErrorCode;
|
|
4433
|
-
message: string;
|
|
4434
|
-
issues?: PluginRpcValidationIssue[];
|
|
4435
|
-
}
|
|
4436
|
-
/**
|
|
4437
|
-
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
4438
|
-
* Zod 4 schemas implement this interface directly; other validators can do
|
|
4439
|
-
* the same without becoming part of BB's public protocol.
|
|
4440
|
-
*/
|
|
4441
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
4442
|
-
readonly "~standard": {
|
|
4443
|
-
readonly version: 1;
|
|
4444
|
-
readonly vendor: string;
|
|
4445
|
-
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
4446
|
-
readonly jsonSchema?: {
|
|
4447
|
-
readonly input: (options: {
|
|
4448
|
-
target: string;
|
|
4449
|
-
}) => Record<string, unknown>;
|
|
4450
|
-
readonly output: (options: {
|
|
4451
|
-
target: string;
|
|
4452
|
-
}) => Record<string, unknown>;
|
|
4453
|
-
};
|
|
4454
|
-
readonly types?: {
|
|
4455
|
-
readonly input: Input;
|
|
4456
|
-
readonly output: Output;
|
|
4457
|
-
};
|
|
4458
|
-
};
|
|
4459
|
-
}
|
|
4460
|
-
type StandardSchemaV1Result<Output> = {
|
|
4461
|
-
readonly value: Output;
|
|
4462
|
-
readonly issues?: undefined;
|
|
4463
|
-
} | {
|
|
4464
|
-
readonly issues: readonly StandardSchemaV1Issue[];
|
|
4465
|
-
};
|
|
4466
|
-
interface StandardSchemaV1Issue {
|
|
4467
|
-
readonly message: string;
|
|
4468
|
-
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
4469
|
-
readonly key: PropertyKey;
|
|
4470
|
-
})[];
|
|
4471
|
-
}
|
|
4472
|
-
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
4473
|
-
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
4474
|
-
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
|
|
4475
|
-
readonly experimental_description?: string;
|
|
4476
|
-
/**
|
|
4477
|
-
* Host contracts only. When true and the daemon's response has not arrived
|
|
4478
|
-
* within half of the call's transport timeout, bb cancels the call and sends
|
|
4479
|
-
* it once more, the retry core uses for its own read-only daemon commands.
|
|
4480
|
-
* Declare it only for reads that are safe to run twice.
|
|
4481
|
-
*/
|
|
4482
|
-
readonly experimental_retryable?: boolean;
|
|
4483
|
-
readonly input: InputSchema;
|
|
4484
|
-
readonly output: OutputSchema;
|
|
4485
|
-
}
|
|
4486
|
-
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
4487
|
-
/** Methods callable with only keys and returning one value per string key. */
|
|
4488
|
-
type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
|
|
4489
|
-
[Method in keyof Contract & string]: {
|
|
4490
|
-
keys: string[];
|
|
4491
|
-
} extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
|
|
4492
|
-
keys: string[];
|
|
4493
|
-
} ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
|
|
4494
|
-
}[keyof Contract & string];
|
|
4495
|
-
/** One keyed method's inferred row value. */
|
|
4496
|
-
type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
|
|
4497
|
-
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
4498
|
-
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
4499
|
-
};
|
|
4500
|
-
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
4501
|
-
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
4502
|
-
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
4503
|
-
|
|
4504
4517
|
declare const threadContextResponseSchema: z$1.ZodObject<{
|
|
4505
4518
|
usage: z$1.ZodNullable<z$1.ZodObject<{
|
|
4506
4519
|
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
@@ -5931,7 +5944,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
5931
5944
|
model: z$1.ZodString;
|
|
5932
5945
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
5933
5946
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
5934
|
-
reasoningLevel: z$1.ZodString
|
|
5947
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
5935
5948
|
serviceTier: z$1.ZodString;
|
|
5936
5949
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
5937
5950
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6263,7 +6276,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6263
6276
|
model: z$1.ZodString;
|
|
6264
6277
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6265
6278
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6266
|
-
reasoningLevel: z$1.ZodString
|
|
6279
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6267
6280
|
serviceTier: z$1.ZodString;
|
|
6268
6281
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6269
6282
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6512,7 +6525,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6512
6525
|
model: z$1.ZodString;
|
|
6513
6526
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6514
6527
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6515
|
-
reasoningLevel: z$1.ZodString
|
|
6528
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6516
6529
|
serviceTier: z$1.ZodString;
|
|
6517
6530
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6518
6531
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6729,7 +6742,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6729
6742
|
model: z$1.ZodString;
|
|
6730
6743
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6731
6744
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6732
|
-
reasoningLevel: z$1.ZodString
|
|
6745
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6733
6746
|
serviceTier: z$1.ZodString;
|
|
6734
6747
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6735
6748
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -7782,6 +7795,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7782
7795
|
}, z$1.core.$strict>>;
|
|
7783
7796
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
7784
7797
|
providerId: z$1.ZodString;
|
|
7798
|
+
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
7785
7799
|
type: z$1.ZodLiteral<"provider.list_models">;
|
|
7786
7800
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7787
7801
|
models: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -7791,6 +7805,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7791
7805
|
id: z$1.ZodString;
|
|
7792
7806
|
isDefault: z$1.ZodBoolean;
|
|
7793
7807
|
model: z$1.ZodString;
|
|
7808
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
7809
|
+
known: "known";
|
|
7810
|
+
unknown: "unknown";
|
|
7811
|
+
}>>;
|
|
7794
7812
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
7795
7813
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7796
7814
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -7832,6 +7850,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7832
7850
|
id: z$1.ZodString;
|
|
7833
7851
|
isDefault: z$1.ZodBoolean;
|
|
7834
7852
|
model: z$1.ZodString;
|
|
7853
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
7854
|
+
known: "known";
|
|
7855
|
+
unknown: "unknown";
|
|
7856
|
+
}>>;
|
|
7835
7857
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
7836
7858
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7837
7859
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8645,11 +8667,13 @@ type HostProviderCliInstallEvent = ProviderCliInstallEvent;
|
|
|
8645
8667
|
|
|
8646
8668
|
declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
8647
8669
|
blocked: z$1.ZodOptional<z$1.ZodObject<{
|
|
8670
|
+
label: z$1.ZodString;
|
|
8648
8671
|
reasons: z$1.ZodArray<z$1.ZodString>;
|
|
8649
8672
|
version: z$1.ZodString;
|
|
8650
8673
|
}, z$1.core.$strip>>;
|
|
8651
8674
|
candidate: z$1.ZodOptional<z$1.ZodObject<{
|
|
8652
8675
|
display: z$1.ZodString;
|
|
8676
|
+
label: z$1.ZodString;
|
|
8653
8677
|
version: z$1.ZodString;
|
|
8654
8678
|
}, z$1.core.$strip>>;
|
|
8655
8679
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8657,6 +8681,7 @@ declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
|
8657
8681
|
id: z$1.ZodString;
|
|
8658
8682
|
installed: z$1.ZodObject<{
|
|
8659
8683
|
display: z$1.ZodString;
|
|
8684
|
+
label: z$1.ZodString;
|
|
8660
8685
|
version: z$1.ZodString;
|
|
8661
8686
|
}, z$1.core.$strip>;
|
|
8662
8687
|
outcome: z$1.ZodEnum<{
|
|
@@ -8673,6 +8698,7 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
8673
8698
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
8674
8699
|
from: z$1.ZodObject<{
|
|
8675
8700
|
display: z$1.ZodString;
|
|
8701
|
+
label: z$1.ZodString;
|
|
8676
8702
|
version: z$1.ZodString;
|
|
8677
8703
|
}, z$1.core.$strip>;
|
|
8678
8704
|
outcome: z$1.ZodEnum<{
|
|
@@ -8682,6 +8708,7 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
8682
8708
|
}>;
|
|
8683
8709
|
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
8684
8710
|
display: z$1.ZodString;
|
|
8711
|
+
label: z$1.ZodString;
|
|
8685
8712
|
version: z$1.ZodString;
|
|
8686
8713
|
}, z$1.core.$strip>>;
|
|
8687
8714
|
}, z$1.core.$strip>;
|
|
@@ -8711,6 +8738,7 @@ declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
8711
8738
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
8712
8739
|
from: z$1.ZodObject<{
|
|
8713
8740
|
display: z$1.ZodString;
|
|
8741
|
+
label: z$1.ZodString;
|
|
8714
8742
|
version: z$1.ZodString;
|
|
8715
8743
|
}, z$1.core.$strip>;
|
|
8716
8744
|
outcome: z$1.ZodEnum<{
|
|
@@ -8720,6 +8748,7 @@ declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
8720
8748
|
}>;
|
|
8721
8749
|
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
8722
8750
|
display: z$1.ZodString;
|
|
8751
|
+
label: z$1.ZodString;
|
|
8723
8752
|
version: z$1.ZodString;
|
|
8724
8753
|
}, z$1.core.$strip>>;
|
|
8725
8754
|
}, z$1.core.$strip>;
|
|
@@ -8850,7 +8879,9 @@ declare const installedPluginSchema: z$1.ZodObject<{
|
|
|
8850
8879
|
}>;
|
|
8851
8880
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
8852
8881
|
updateState: z$1.ZodObject<{
|
|
8882
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
8853
8883
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
8884
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
8854
8885
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
8855
8886
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
8856
8887
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8858,6 +8889,7 @@ declare const installedPluginSchema: z$1.ZodObject<{
|
|
|
8858
8889
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
8859
8890
|
at: z$1.ZodNumber;
|
|
8860
8891
|
detail: z$1.ZodString;
|
|
8892
|
+
label: z$1.ZodString;
|
|
8861
8893
|
version: z$1.ZodString;
|
|
8862
8894
|
}, z$1.core.$strip>>;
|
|
8863
8895
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -8971,7 +9003,9 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
8971
9003
|
}>;
|
|
8972
9004
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
8973
9005
|
updateState: z$1.ZodObject<{
|
|
9006
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
8974
9007
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9008
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
8975
9009
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
8976
9010
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
8977
9011
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8979,6 +9013,7 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
8979
9013
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
8980
9014
|
at: z$1.ZodNumber;
|
|
8981
9015
|
detail: z$1.ZodString;
|
|
9016
|
+
label: z$1.ZodString;
|
|
8982
9017
|
version: z$1.ZodString;
|
|
8983
9018
|
}, z$1.core.$strip>>;
|
|
8984
9019
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9158,7 +9193,9 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
9158
9193
|
}>;
|
|
9159
9194
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9160
9195
|
updateState: z$1.ZodObject<{
|
|
9196
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9161
9197
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9198
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9162
9199
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9163
9200
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9164
9201
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9166,6 +9203,7 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
9166
9203
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9167
9204
|
at: z$1.ZodNumber;
|
|
9168
9205
|
detail: z$1.ZodString;
|
|
9206
|
+
label: z$1.ZodString;
|
|
9169
9207
|
version: z$1.ZodString;
|
|
9170
9208
|
}, z$1.core.$strip>>;
|
|
9171
9209
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9342,7 +9380,9 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
|
9342
9380
|
}>;
|
|
9343
9381
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9344
9382
|
updateState: z$1.ZodObject<{
|
|
9383
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9345
9384
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9385
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9346
9386
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9347
9387
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9348
9388
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9350,6 +9390,7 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
|
9350
9390
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9351
9391
|
at: z$1.ZodNumber;
|
|
9352
9392
|
detail: z$1.ZodString;
|
|
9393
|
+
label: z$1.ZodString;
|
|
9353
9394
|
version: z$1.ZodString;
|
|
9354
9395
|
}, z$1.core.$strip>>;
|
|
9355
9396
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9682,6 +9723,10 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
|
|
|
9682
9723
|
id: z$1.ZodString;
|
|
9683
9724
|
isDefault: z$1.ZodBoolean;
|
|
9684
9725
|
model: z$1.ZodString;
|
|
9726
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
9727
|
+
known: "known";
|
|
9728
|
+
unknown: "unknown";
|
|
9729
|
+
}>>;
|
|
9685
9730
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
9686
9731
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9687
9732
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9819,6 +9864,10 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
|
|
|
9819
9864
|
id: z$1.ZodString;
|
|
9820
9865
|
isDefault: z$1.ZodBoolean;
|
|
9821
9866
|
model: z$1.ZodString;
|
|
9867
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
9868
|
+
known: "known";
|
|
9869
|
+
unknown: "unknown";
|
|
9870
|
+
}>>;
|
|
9822
9871
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
9823
9872
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9824
9873
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9868,6 +9917,7 @@ declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
|
|
|
9868
9917
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
9869
9918
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
9870
9919
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
9920
|
+
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
9871
9921
|
}, z$1.core.$strip>;
|
|
9872
9922
|
type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQuerySchema>;
|
|
9873
9923
|
declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
|
|
@@ -10164,6 +10214,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10164
10214
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10165
10215
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10166
10216
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10217
|
+
"question.cancel": "question.cancel";
|
|
10218
|
+
"question.next": "question.next";
|
|
10219
|
+
"question.previous": "question.previous";
|
|
10167
10220
|
"question.select.1": "question.select.1";
|
|
10168
10221
|
"question.select.2": "question.select.2";
|
|
10169
10222
|
"question.select.3": "question.select.3";
|
|
@@ -10173,6 +10226,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10173
10226
|
"question.select.7": "question.select.7";
|
|
10174
10227
|
"question.select.8": "question.select.8";
|
|
10175
10228
|
"question.select.9": "question.select.9";
|
|
10229
|
+
"question.submit": "question.submit";
|
|
10176
10230
|
"settings.open": "settings.open";
|
|
10177
10231
|
"settings.openServers": "settings.openServers";
|
|
10178
10232
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10219,6 +10273,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10219
10273
|
modalOpen: "modalOpen";
|
|
10220
10274
|
modelPickerOpen: "modelPickerOpen";
|
|
10221
10275
|
promptAvailable: "promptAvailable";
|
|
10276
|
+
questionFocus: "questionFocus";
|
|
10222
10277
|
questionOpen: "questionOpen";
|
|
10223
10278
|
splitActive: "splitActive";
|
|
10224
10279
|
terminalFocus: "terminalFocus";
|
|
@@ -10234,6 +10289,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10234
10289
|
modalOpen: "modalOpen";
|
|
10235
10290
|
modelPickerOpen: "modelPickerOpen";
|
|
10236
10291
|
promptAvailable: "promptAvailable";
|
|
10292
|
+
questionFocus: "questionFocus";
|
|
10237
10293
|
questionOpen: "questionOpen";
|
|
10238
10294
|
splitActive: "splitActive";
|
|
10239
10295
|
terminalFocus: "terminalFocus";
|
|
@@ -10247,8 +10303,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10247
10303
|
changelogPreview: "changelogPreview";
|
|
10248
10304
|
compactExpiredCache: "compactExpiredCache";
|
|
10249
10305
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10306
|
+
pluginUpdates: "pluginUpdates";
|
|
10250
10307
|
serverMove: "serverMove";
|
|
10251
10308
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10309
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10310
|
+
threadContextCard: "threadContextCard";
|
|
10252
10311
|
threadRowMetadata: "threadRowMetadata";
|
|
10253
10312
|
timelinePush: "timelinePush";
|
|
10254
10313
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -10335,6 +10394,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10335
10394
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10336
10395
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10337
10396
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10397
|
+
"question.cancel": "question.cancel";
|
|
10398
|
+
"question.next": "question.next";
|
|
10399
|
+
"question.previous": "question.previous";
|
|
10338
10400
|
"question.select.1": "question.select.1";
|
|
10339
10401
|
"question.select.2": "question.select.2";
|
|
10340
10402
|
"question.select.3": "question.select.3";
|
|
@@ -10344,6 +10406,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10344
10406
|
"question.select.7": "question.select.7";
|
|
10345
10407
|
"question.select.8": "question.select.8";
|
|
10346
10408
|
"question.select.9": "question.select.9";
|
|
10409
|
+
"question.submit": "question.submit";
|
|
10347
10410
|
"settings.open": "settings.open";
|
|
10348
10411
|
"settings.openServers": "settings.openServers";
|
|
10349
10412
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10434,6 +10497,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10434
10497
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10435
10498
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10436
10499
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10500
|
+
"question.cancel": "question.cancel";
|
|
10501
|
+
"question.next": "question.next";
|
|
10502
|
+
"question.previous": "question.previous";
|
|
10437
10503
|
"question.select.1": "question.select.1";
|
|
10438
10504
|
"question.select.2": "question.select.2";
|
|
10439
10505
|
"question.select.3": "question.select.3";
|
|
@@ -10443,6 +10509,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10443
10509
|
"question.select.7": "question.select.7";
|
|
10444
10510
|
"question.select.8": "question.select.8";
|
|
10445
10511
|
"question.select.9": "question.select.9";
|
|
10512
|
+
"question.submit": "question.submit";
|
|
10446
10513
|
"settings.open": "settings.open";
|
|
10447
10514
|
"settings.openServers": "settings.openServers";
|
|
10448
10515
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10489,6 +10556,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10489
10556
|
modalOpen: "modalOpen";
|
|
10490
10557
|
modelPickerOpen: "modelPickerOpen";
|
|
10491
10558
|
promptAvailable: "promptAvailable";
|
|
10559
|
+
questionFocus: "questionFocus";
|
|
10492
10560
|
questionOpen: "questionOpen";
|
|
10493
10561
|
splitActive: "splitActive";
|
|
10494
10562
|
terminalFocus: "terminalFocus";
|
|
@@ -10504,6 +10572,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10504
10572
|
modalOpen: "modalOpen";
|
|
10505
10573
|
modelPickerOpen: "modelPickerOpen";
|
|
10506
10574
|
promptAvailable: "promptAvailable";
|
|
10575
|
+
questionFocus: "questionFocus";
|
|
10507
10576
|
questionOpen: "questionOpen";
|
|
10508
10577
|
splitActive: "splitActive";
|
|
10509
10578
|
terminalFocus: "terminalFocus";
|
|
@@ -12053,6 +12122,7 @@ declare const timelineQuestionWorkRowSchema: z$1.ZodObject<{
|
|
|
12053
12122
|
value: z$1.ZodString;
|
|
12054
12123
|
}, z$1.core.$strip>>>;
|
|
12055
12124
|
prompt: z$1.ZodString;
|
|
12125
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
12056
12126
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
12057
12127
|
}, z$1.core.$strip>>;
|
|
12058
12128
|
sourceSeqEnd: z$1.ZodNumber;
|
|
@@ -14286,6 +14356,7 @@ declare const threadPendingInteractionsResponseSchema: z$1.ZodArray<z$1.ZodUnion
|
|
|
14286
14356
|
value: z$1.ZodString;
|
|
14287
14357
|
}, z$1.core.$strip>>>;
|
|
14288
14358
|
prompt: z$1.ZodString;
|
|
14359
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
14289
14360
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
14290
14361
|
}, z$1.core.$strip>>;
|
|
14291
14362
|
}, z$1.core.$strip>;
|
|
@@ -15572,9 +15643,11 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
15572
15643
|
sourceSeq: z$1.ZodNumber;
|
|
15573
15644
|
status: z$1.ZodEnum<{
|
|
15574
15645
|
active: "active";
|
|
15646
|
+
blocked: "blocked";
|
|
15575
15647
|
budgetLimited: "budgetLimited";
|
|
15576
15648
|
complete: "complete";
|
|
15577
15649
|
paused: "paused";
|
|
15650
|
+
usageLimited: "usageLimited";
|
|
15578
15651
|
}>;
|
|
15579
15652
|
timeUsedSeconds: z$1.ZodNumber;
|
|
15580
15653
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -15918,9 +15991,11 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
15918
15991
|
sourceSeq: z$1.ZodNumber;
|
|
15919
15992
|
status: z$1.ZodEnum<{
|
|
15920
15993
|
active: "active";
|
|
15994
|
+
blocked: "blocked";
|
|
15921
15995
|
budgetLimited: "budgetLimited";
|
|
15922
15996
|
complete: "complete";
|
|
15923
15997
|
paused: "paused";
|
|
15998
|
+
usageLimited: "usageLimited";
|
|
15924
15999
|
}>;
|
|
15925
16000
|
timeUsedSeconds: z$1.ZodNumber;
|
|
15926
16001
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -16262,9 +16337,11 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
16262
16337
|
sourceSeq: z$1.ZodNumber;
|
|
16263
16338
|
status: z$1.ZodEnum<{
|
|
16264
16339
|
active: "active";
|
|
16340
|
+
blocked: "blocked";
|
|
16265
16341
|
budgetLimited: "budgetLimited";
|
|
16266
16342
|
complete: "complete";
|
|
16267
16343
|
paused: "paused";
|
|
16344
|
+
usageLimited: "usageLimited";
|
|
16268
16345
|
}>;
|
|
16269
16346
|
timeUsedSeconds: z$1.ZodNumber;
|
|
16270
16347
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -18584,6 +18661,14 @@ interface ThreadsArea {
|
|
|
18584
18661
|
* Experimental: see docs/api_to_audit.md.
|
|
18585
18662
|
*/
|
|
18586
18663
|
experimental_listCascade(args: ThreadCascadeListArgs): Promise<ThreadCascadeListResult>;
|
|
18664
|
+
/**
|
|
18665
|
+
* Generate a new title from the thread's first task message, its latest user
|
|
18666
|
+
* messages, and the agent's latest replies, in the task's language. The
|
|
18667
|
+
* current title is kept when it still fits, when no title service is
|
|
18668
|
+
* available, or when generation fails, and the call rejects with the reason
|
|
18669
|
+
* on failure. Experimental: see docs/api_to_audit.md.
|
|
18670
|
+
*/
|
|
18671
|
+
experimental_regenerateTitle(args: ThreadActionArgs): Promise<ThreadMutationResult>;
|
|
18587
18672
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
18588
18673
|
queue: ThreadQueueArea;
|
|
18589
18674
|
interactions: ThreadInteractionsArea;
|
|
@@ -18790,10 +18875,17 @@ interface ExperimentalQuestionShortcut {
|
|
|
18790
18875
|
label: string;
|
|
18791
18876
|
ariaKeyshortcuts: string;
|
|
18792
18877
|
}
|
|
18878
|
+
/**
|
|
18879
|
+
* A form-level action bb binds while a pending interaction is open: `submit`
|
|
18880
|
+
* presses the form's primary button (Next, or Submit on the last question),
|
|
18881
|
+
* `previous` and `next` show another question without submitting, and
|
|
18882
|
+
* `cancel` presses the form's Cancel button.
|
|
18883
|
+
*/
|
|
18884
|
+
type ExperimentalQuestionFormAction = "cancel" | "next" | "previous" | "submit";
|
|
18793
18885
|
/**
|
|
18794
18886
|
* The keyboard shortcuts bb binds while a pending interaction is open. The
|
|
18795
18887
|
* host owns the bindings (users can remap them); a form shows them and decides
|
|
18796
|
-
* what choosing an option means.
|
|
18888
|
+
* what choosing an option or an action means.
|
|
18797
18889
|
*/
|
|
18798
18890
|
interface ExperimentalQuestionFormHost {
|
|
18799
18891
|
/**
|
|
@@ -18801,6 +18893,8 @@ interface ExperimentalQuestionFormHost {
|
|
|
18801
18893
|
* option). Missing entries have no binding.
|
|
18802
18894
|
*/
|
|
18803
18895
|
shortcuts: ReadonlyMap<string, ExperimentalQuestionShortcut>;
|
|
18896
|
+
/** Shortcut per form action. Missing entries have no binding. */
|
|
18897
|
+
actionShortcuts: ReadonlyMap<ExperimentalQuestionFormAction, ExperimentalQuestionShortcut>;
|
|
18804
18898
|
/**
|
|
18805
18899
|
* Receive the index of the option the person chose with a shortcut while
|
|
18806
18900
|
* the thread's pane is focused. Return true when the index names an option
|
|
@@ -18808,6 +18902,14 @@ interface ExperimentalQuestionFormHost {
|
|
|
18808
18902
|
* function to unregister.
|
|
18809
18903
|
*/
|
|
18810
18904
|
registerChoiceHandler(handler: (index: number) => boolean): () => void;
|
|
18905
|
+
/**
|
|
18906
|
+
* Receive the action the person chose with a shortcut while the thread's
|
|
18907
|
+
* pane is focused, or while focus is inside an element marked
|
|
18908
|
+
* `data-question-form`, including its text fields. Return true when the form
|
|
18909
|
+
* performed the action. The last registered handler wins; call the returned
|
|
18910
|
+
* function to unregister.
|
|
18911
|
+
*/
|
|
18912
|
+
registerActionHandler(handler: (action: ExperimentalQuestionFormAction) => boolean): () => void;
|
|
18811
18913
|
}
|
|
18812
18914
|
/**
|
|
18813
18915
|
* Props of the host-owned `experimental_VoiceInputTextarea`: a controlled
|
|
@@ -19788,6 +19890,11 @@ interface PluginSidebarThread {
|
|
|
19788
19890
|
* when its owner stops); null when the thread owns its own lifecycle.
|
|
19789
19891
|
*/
|
|
19790
19892
|
lifecycleOwnerThreadId: string | null;
|
|
19893
|
+
/**
|
|
19894
|
+
* Which of this child's outcomes wake its parent: "auto" (every outcome),
|
|
19895
|
+
* "stuck" (failures, interruptions, and blockers), or "off".
|
|
19896
|
+
*/
|
|
19897
|
+
parentNotifications: ThreadParentNotifications;
|
|
19791
19898
|
/** The thread this one was forked from; null unless `originKind` is "fork". */
|
|
19792
19899
|
sourceThreadId: string | null;
|
|
19793
19900
|
sectionId: string | null;
|
|
@@ -20297,6 +20404,100 @@ interface ExperimentalThreadInfoSectionRegistration {
|
|
|
20297
20404
|
order?: number;
|
|
20298
20405
|
component: ComponentType<ExperimentalThreadInfoProps>;
|
|
20299
20406
|
}
|
|
20407
|
+
/**
|
|
20408
|
+
* Props passed to an `experimental_threadContextCardRow` or
|
|
20409
|
+
* `experimental_threadContextCardSection` component.
|
|
20410
|
+
*/
|
|
20411
|
+
interface ExperimentalThreadContextCardProps {
|
|
20412
|
+
/**
|
|
20413
|
+
* The thread shown in the pane. Every thread pane of a split layout has its
|
|
20414
|
+
* own thread context card, so the component mounts once per visible thread;
|
|
20415
|
+
* keep per-thread state in the component, never in a module-level singleton.
|
|
20416
|
+
*/
|
|
20417
|
+
threadId: string;
|
|
20418
|
+
projectId: string;
|
|
20419
|
+
/**
|
|
20420
|
+
* The thread's environment, taken from the thread; null only when the
|
|
20421
|
+
* thread has no environment. Read its state (host, checkout, git) yourself.
|
|
20422
|
+
*/
|
|
20423
|
+
environment: ExperimentalThreadEnvironment | null;
|
|
20424
|
+
}
|
|
20425
|
+
/**
|
|
20426
|
+
* How a thread pane shows its thread context: `banner` in the context row
|
|
20427
|
+
* above the composer, `card` in the thread context card at the pane's
|
|
20428
|
+
* upper-right. bb picks one per pane.
|
|
20429
|
+
*/
|
|
20430
|
+
type ExperimentalThreadContextKind = "banner" | "card";
|
|
20431
|
+
/**
|
|
20432
|
+
* A row in the thread context card at a thread pane's upper-right, below the
|
|
20433
|
+
* header, beside bb's own rows; the card's counterpart of
|
|
20434
|
+
* `experimental_threadInfoRow`. Render one or more
|
|
20435
|
+
* `experimental_ThreadContextCardRow` elements, or null to show nothing for
|
|
20436
|
+
* this thread. bb draws the card and places it, and mounts rows only in panes
|
|
20437
|
+
* whose thread context kind is `card`. A crash removes only this row for that
|
|
20438
|
+
* thread.
|
|
20439
|
+
*/
|
|
20440
|
+
interface ExperimentalThreadContextCardRowRegistration {
|
|
20441
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20442
|
+
id: string;
|
|
20443
|
+
/**
|
|
20444
|
+
* Rows sort by `group` (string compare), then by `order` within a group
|
|
20445
|
+
* (unset sorts last), then by registration order, with bb's own rows first
|
|
20446
|
+
* on a tie. Rows use the Info tab's groups,
|
|
20447
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_ROW_GROUPS}; any other
|
|
20448
|
+
* string is a group of its own, placed where it sorts.
|
|
20449
|
+
*/
|
|
20450
|
+
group: string;
|
|
20451
|
+
order?: number;
|
|
20452
|
+
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
20453
|
+
}
|
|
20454
|
+
/**
|
|
20455
|
+
* A titled section of the thread context card, below its rows; the card's
|
|
20456
|
+
* counterpart of `experimental_threadInfoSection`. bb draws the title and a
|
|
20457
|
+
* divider above it, and hides the section while its component renders
|
|
20458
|
+
* nothing. A crash removes only this section for that thread.
|
|
20459
|
+
*/
|
|
20460
|
+
interface ExperimentalThreadContextCardSectionRegistration {
|
|
20461
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
20462
|
+
id: string;
|
|
20463
|
+
/** Heading bb draws above the section's rows. */
|
|
20464
|
+
title: string;
|
|
20465
|
+
/**
|
|
20466
|
+
* Sections sort by `group` (string compare), then by `order` within a group
|
|
20467
|
+
* (unset sorts last), then by registration order, with bb's own sections
|
|
20468
|
+
* first on a tie. Sections use the Info tab's groups,
|
|
20469
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_SECTION_GROUPS}; any other
|
|
20470
|
+
* string is a group of its own, placed where it sorts.
|
|
20471
|
+
*/
|
|
20472
|
+
group: string;
|
|
20473
|
+
order?: number;
|
|
20474
|
+
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
20475
|
+
}
|
|
20476
|
+
/**
|
|
20477
|
+
* Props of the host-owned `experimental_ThreadContextCardRow` component, the row
|
|
20478
|
+
* bb's own card rows use: an icon, a label, an optional trailing value, and an
|
|
20479
|
+
* optional second control. With `onClick` the label is a button.
|
|
20480
|
+
*/
|
|
20481
|
+
interface ExperimentalThreadContextCardRowProps {
|
|
20482
|
+
/** Icon drawn before the label, any name `experimental_Icon` accepts. */
|
|
20483
|
+
icon?: BbIconName;
|
|
20484
|
+
/** Drawn in the icon's place, such as an app or site icon; wins over `icon`. */
|
|
20485
|
+
leading?: ReactNode;
|
|
20486
|
+
label: ReactNode;
|
|
20487
|
+
/** Drawn at the row's end, such as a count or `+4 −1`. */
|
|
20488
|
+
trailing?: ReactNode;
|
|
20489
|
+
/** Tooltip, and the accessible description when the label is truncated. */
|
|
20490
|
+
title?: string;
|
|
20491
|
+
disabled?: boolean;
|
|
20492
|
+
/**
|
|
20493
|
+
* A second control, such as a button that opens a menu. It takes the
|
|
20494
|
+
* place of `trailing` while the row is hovered or focused or the control's
|
|
20495
|
+
* menu is open, and always shows on touch screens.
|
|
20496
|
+
*/
|
|
20497
|
+
action?: ReactNode;
|
|
20498
|
+
/** Makes the label a button. */
|
|
20499
|
+
onClick?(): void;
|
|
20500
|
+
}
|
|
20300
20501
|
/**
|
|
20301
20502
|
* Props of the host-owned `experimental_InfoSection` component — the heading,
|
|
20302
20503
|
* count, and collapse control every Info tab section uses.
|
|
@@ -20370,6 +20571,8 @@ interface PluginThreadActionTarget {
|
|
|
20370
20571
|
id: string;
|
|
20371
20572
|
projectId: string;
|
|
20372
20573
|
parentThreadId: string | null;
|
|
20574
|
+
/** Which of this child's outcomes wake its parent; see `PluginSidebarThread`. */
|
|
20575
|
+
parentNotifications: ThreadParentNotifications;
|
|
20373
20576
|
archivedAt: number | null;
|
|
20374
20577
|
pinnedAt: number | null;
|
|
20375
20578
|
sectionId: string | null;
|
|
@@ -21504,6 +21707,37 @@ interface ThreadChatMessageReference {
|
|
|
21504
21707
|
*/
|
|
21505
21708
|
experimental_messageSeq: number;
|
|
21506
21709
|
}
|
|
21710
|
+
/** Stable identity and creation time of one rendered conversation message. */
|
|
21711
|
+
type ExperimentalMessageMetadataContext = Pick<ThreadChatMessageReference, "id" | "threadId"> & {
|
|
21712
|
+
/** Unix time in milliseconds, supplied by BB's timeline. */
|
|
21713
|
+
createdAt: number;
|
|
21714
|
+
/** The containing turn, or null for a message outside a turn. */
|
|
21715
|
+
turnId: string | null;
|
|
21716
|
+
} & ({
|
|
21717
|
+
role: "user";
|
|
21718
|
+
initiator: "agent" | "system" | "user";
|
|
21719
|
+
} | {
|
|
21720
|
+
role: "assistant";
|
|
21721
|
+
});
|
|
21722
|
+
/** Props for a metadata component mounted only beside realized messages. */
|
|
21723
|
+
interface ExperimentalMessageMetadataProps {
|
|
21724
|
+
message: ExperimentalMessageMetadataContext;
|
|
21725
|
+
}
|
|
21726
|
+
/**
|
|
21727
|
+
* Where message metadata renders. `"above"` sits over the message, aligned to
|
|
21728
|
+
* its side. `"actionRow"` sits in the message's action row and shows and hides
|
|
21729
|
+
* with the actions, before them on user messages and after the overflow menu
|
|
21730
|
+
* on assistant messages. It extends into the space beside the message rather
|
|
21731
|
+
* than narrowing the actions.
|
|
21732
|
+
*/
|
|
21733
|
+
type ExperimentalMessageMetadataPlacement = "above" | "actionRow";
|
|
21734
|
+
/** A React contribution beside a conversation message. */
|
|
21735
|
+
interface ExperimentalMessageMetadataRegistration {
|
|
21736
|
+
id: string;
|
|
21737
|
+
/** Omitted means above. */
|
|
21738
|
+
placement?: ExperimentalMessageMetadataPlacement;
|
|
21739
|
+
component: ComponentType<ExperimentalMessageMetadataProps>;
|
|
21740
|
+
}
|
|
21507
21741
|
/** Context handed to a `messageAction`'s `run`. */
|
|
21508
21742
|
interface PluginMessageActionContext {
|
|
21509
21743
|
/** The thread whose timeline surfaced the action. */
|
|
@@ -21867,6 +22101,18 @@ interface PluginAppSlots {
|
|
|
21867
22101
|
* docs/api_to_audit.md.
|
|
21868
22102
|
*/
|
|
21869
22103
|
experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
|
|
22104
|
+
/**
|
|
22105
|
+
* Add a row to the thread context card of every thread pane (see
|
|
22106
|
+
* {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
|
|
22107
|
+
* docs/api_to_audit.md.
|
|
22108
|
+
*/
|
|
22109
|
+
experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
|
|
22110
|
+
/**
|
|
22111
|
+
* Add a titled section to the thread context card of every thread pane (see
|
|
22112
|
+
* {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
|
|
22113
|
+
* see docs/api_to_audit.md.
|
|
22114
|
+
*/
|
|
22115
|
+
experimental_threadContextCardSection(registration: ExperimentalThreadContextCardSectionRegistration): void;
|
|
21870
22116
|
/**
|
|
21871
22117
|
* Add an action to every thread actions menu (see
|
|
21872
22118
|
* {@link PluginThreadActionRegistration}). Experimental: see
|
|
@@ -21902,6 +22148,8 @@ interface PluginAppSlots {
|
|
|
21902
22148
|
*/
|
|
21903
22149
|
experimental_codeFenceRenderer(registration: ExperimentalCodeFenceRendererRegistration): void;
|
|
21904
22150
|
messageAction(registration: PluginMessageActionRegistration): void;
|
|
22151
|
+
/** Register React message metadata. Experimental: see docs/api_to_audit.md. */
|
|
22152
|
+
experimental_messageMetadata(registration: ExperimentalMessageMetadataRegistration): void;
|
|
21905
22153
|
/**
|
|
21906
22154
|
* @deprecated Use `app.commands.register` with the same registration.
|
|
21907
22155
|
* Both entry points share the same command registry and ID namespace.
|
|
@@ -22988,6 +23236,24 @@ type ExperimentalOpenTabOptions = {
|
|
|
22988
23236
|
interface ExperimentalPanelController {
|
|
22989
23237
|
/** Select the tab and reveal the side panel. */
|
|
22990
23238
|
openTab(options: ExperimentalOpenTabOptions): boolean;
|
|
23239
|
+
/**
|
|
23240
|
+
* The tabs open in this controller's side panel right now, the list
|
|
23241
|
+
* `experimental_usePanelTabs()` follows: for commands and other code that is
|
|
23242
|
+
* not a component. Closed and empty without a side panel.
|
|
23243
|
+
*/
|
|
23244
|
+
getTabs(): ExperimentalPanelTabs;
|
|
23245
|
+
/**
|
|
23246
|
+
* Select any open tab, bb's or a plugin's, by its
|
|
23247
|
+
* {@link ExperimentalPanelTab.key} and reveal the side panel; false for a
|
|
23248
|
+
* key that is not open.
|
|
23249
|
+
*/
|
|
23250
|
+
selectTab(key: string): boolean;
|
|
23251
|
+
/**
|
|
23252
|
+
* Close any open tab by its key, as its close button does; false for a key
|
|
23253
|
+
* that is not open or a tab that cannot be closed. Closing a terminal's tab
|
|
23254
|
+
* ends the terminal.
|
|
23255
|
+
*/
|
|
23256
|
+
closeTab(key: string): boolean;
|
|
22991
23257
|
/**
|
|
22992
23258
|
* Close the side panel if this tab is showing — a fixed tab selected with
|
|
22993
23259
|
* the panel open (`target` is ignored), or the action tab instance with the
|
|
@@ -22997,6 +23263,59 @@ interface ExperimentalPanelController {
|
|
|
22997
23263
|
/** Close the side panel. */
|
|
22998
23264
|
close(): boolean;
|
|
22999
23265
|
}
|
|
23266
|
+
/** What an open side panel tab shows. */
|
|
23267
|
+
type ExperimentalPanelTabDetail = {
|
|
23268
|
+
kind: "info";
|
|
23269
|
+
} | {
|
|
23270
|
+
kind: "file";
|
|
23271
|
+
path: string;
|
|
23272
|
+
} | {
|
|
23273
|
+
kind: "browser";
|
|
23274
|
+
url: string;
|
|
23275
|
+
} | {
|
|
23276
|
+
kind: "terminal";
|
|
23277
|
+
terminalId: string;
|
|
23278
|
+
} | {
|
|
23279
|
+
kind: "new-tab";
|
|
23280
|
+
} | {
|
|
23281
|
+
kind: "plugin";
|
|
23282
|
+
pluginId: string;
|
|
23283
|
+
tab: ExperimentalTabReference;
|
|
23284
|
+
/** The action tab's params; null for fixed tabs and action tabs without. */
|
|
23285
|
+
params: JsonValue$1 | null;
|
|
23286
|
+
} | {
|
|
23287
|
+
kind: "plugin-details";
|
|
23288
|
+
pluginId: string;
|
|
23289
|
+
};
|
|
23290
|
+
/** One tab open in a surface's side panel. */
|
|
23291
|
+
interface ExperimentalPanelTab {
|
|
23292
|
+
/**
|
|
23293
|
+
* Identifies the tab while it stays open; pass it to `selectTab`,
|
|
23294
|
+
* `closeTab`, or `experimental_PanelTabIcon`. Do not store it: a reopened
|
|
23295
|
+
* tab may get another key.
|
|
23296
|
+
*/
|
|
23297
|
+
key: string;
|
|
23298
|
+
/** The label bb's tab strip shows. */
|
|
23299
|
+
title: string;
|
|
23300
|
+
/** The strip's secondary label, such as a terminal's exit status. */
|
|
23301
|
+
status: string | null;
|
|
23302
|
+
/** False for tabs without a close button, such as Info and fixed tabs. */
|
|
23303
|
+
closable: boolean;
|
|
23304
|
+
detail: ExperimentalPanelTabDetail;
|
|
23305
|
+
}
|
|
23306
|
+
/** The tabs of one surface's side panel, in the order bb's tab strip shows them. */
|
|
23307
|
+
interface ExperimentalPanelTabs {
|
|
23308
|
+
/** Whether the side panel is showing. */
|
|
23309
|
+
open: boolean;
|
|
23310
|
+
/** The selected tab's key, or null when none is selected. */
|
|
23311
|
+
selectedKey: string | null;
|
|
23312
|
+
tabs: readonly ExperimentalPanelTab[];
|
|
23313
|
+
}
|
|
23314
|
+
/** Props of `experimental_PanelTabIcon`. */
|
|
23315
|
+
interface ExperimentalPanelTabIconProps {
|
|
23316
|
+
/** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
|
|
23317
|
+
tabKey: string;
|
|
23318
|
+
}
|
|
23000
23319
|
/** Current app selection, derived from the route. */
|
|
23001
23320
|
interface BbContext {
|
|
23002
23321
|
projectId: string | null;
|
|
@@ -23131,10 +23450,10 @@ interface ExperimentalRpcMutationOptions<Contract extends PluginRpcContract, Met
|
|
|
23131
23450
|
optimistic?(input: StandardSchemaV1InferInput<Contract[Method]["input"]>, cache: ExperimentalRpcOptimisticCache<Contract>): void;
|
|
23132
23451
|
}
|
|
23133
23452
|
/**
|
|
23134
|
-
* One mutation hook's state. `mutate` calls the RPC
|
|
23135
|
-
*
|
|
23136
|
-
*
|
|
23137
|
-
* until the next `mutate` or `reset`.
|
|
23453
|
+
* One mutation hook's state. `mutate` calls the RPC and resolves when the
|
|
23454
|
+
* server acknowledges the write. Reads refresh in the background when the
|
|
23455
|
+
* server marks their tags stale with `bb.rpc.experimental_invalidate`.
|
|
23456
|
+
* `error` holds the last failure until the next `mutate` or `reset`.
|
|
23138
23457
|
*/
|
|
23139
23458
|
interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
23140
23459
|
/** Resolves at write acknowledgement; rejects with experimental_PluginRpcCallError. Refreshes continue in the background without releasing predictions before confirmed reads. */
|
|
@@ -23145,6 +23464,30 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
|
23145
23464
|
error: experimental_PluginRpcCallError | null;
|
|
23146
23465
|
reset(): void;
|
|
23147
23466
|
}
|
|
23467
|
+
/**
|
|
23468
|
+
* A bb server this client can switch to (see
|
|
23469
|
+
* {@link PluginSdkApp.experimental_useServers}).
|
|
23470
|
+
*/
|
|
23471
|
+
interface ExperimentalServer {
|
|
23472
|
+
/** Stable while the user keeps the server. Editing a custom server's URL gives it a new id. */
|
|
23473
|
+
id: string;
|
|
23474
|
+
name: string;
|
|
23475
|
+
/** Scheme, host and port only, never login details or a path. */
|
|
23476
|
+
origin: string;
|
|
23477
|
+
/** `local` is bb Desktop's built-in server, `account` comes from the user's bb account, and `custom` is an address the user added. */
|
|
23478
|
+
kind: "account" | "custom" | "local";
|
|
23479
|
+
/** True for the server this page is loaded from. */
|
|
23480
|
+
active: boolean;
|
|
23481
|
+
}
|
|
23482
|
+
/** The viewing client's servers (see {@link PluginSdkApp.experimental_useServers}). */
|
|
23483
|
+
interface ExperimentalServers {
|
|
23484
|
+
/** `loading` until bb Desktop answers, briefly after the page loads. The mobile app's list is ready at once. */
|
|
23485
|
+
status: "loading" | "ready";
|
|
23486
|
+
/** In the client's own order; empty while loading. Changes as the user adds, renames or removes servers. */
|
|
23487
|
+
servers: readonly ExperimentalServer[];
|
|
23488
|
+
/** Switch this client to the server and reload the page on it, unloading every plugin. Ignores the active server and unknown ids. */
|
|
23489
|
+
switchTo(id: string): void;
|
|
23490
|
+
}
|
|
23148
23491
|
/**
|
|
23149
23492
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
23150
23493
|
* the real implementation and `satisfies` this interface; `bb plugin build`
|
|
@@ -23201,6 +23544,15 @@ interface PluginSdkApp {
|
|
|
23201
23544
|
* docs/api_to_audit.md.
|
|
23202
23545
|
*/
|
|
23203
23546
|
experimental_useExperiment(key: string): boolean;
|
|
23547
|
+
/**
|
|
23548
|
+
* How the thread pane the calling component renders in shows its thread
|
|
23549
|
+
* context (see {@link ExperimentalThreadContextKind}); `banner` outside a
|
|
23550
|
+
* thread pane. A context segment whose content is also a thread context card
|
|
23551
|
+
* row or section hides itself in `useVisible` while this is `card`; other
|
|
23552
|
+
* segments keep showing above the composer.
|
|
23553
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23554
|
+
*/
|
|
23555
|
+
experimental_useThreadContextKind(): ExperimentalThreadContextKind;
|
|
23204
23556
|
useBbContext(): BbContext;
|
|
23205
23557
|
/**
|
|
23206
23558
|
* The id of the plugin that owns the calling component: the same id
|
|
@@ -23236,11 +23588,24 @@ interface PluginSdkApp {
|
|
|
23236
23588
|
* tabs. Experimental: see docs/api_to_audit.md.
|
|
23237
23589
|
*/
|
|
23238
23590
|
experimental_useTabVisible(): boolean;
|
|
23591
|
+
/**
|
|
23592
|
+
* The servers this client can switch between, the list bb's command palette
|
|
23593
|
+
* offers. Null when the client keeps no server list: any web browser.
|
|
23594
|
+
*/
|
|
23595
|
+
experimental_useServers(): ExperimentalServers | null;
|
|
23239
23596
|
/**
|
|
23240
23597
|
* The side panel of the surface the calling component renders in: the
|
|
23241
23598
|
* thread view, the plugin page, or the New thread screen.
|
|
23242
23599
|
*/
|
|
23243
23600
|
experimental_useAppPanel(): ExperimentalPanelController;
|
|
23601
|
+
/**
|
|
23602
|
+
* The tabs open in the side panel of the surface the calling component
|
|
23603
|
+
* renders in, following live changes: the same list bb's tab strip shows.
|
|
23604
|
+
* Closed and empty on a surface without a side panel. Act on a tab with
|
|
23605
|
+
* `experimental_useAppPanel().selectTab` or `closeTab`. Experimental: see
|
|
23606
|
+
* docs/api_to_audit.md.
|
|
23607
|
+
*/
|
|
23608
|
+
experimental_usePanelTabs(): ExperimentalPanelTabs;
|
|
23244
23609
|
/** Read or clear the owning tab's validated, session-scoped target. */
|
|
23245
23610
|
experimental_useFixedTabTarget<Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
|
|
23246
23611
|
useComposer(): PluginComposerApi;
|
|
@@ -23609,6 +23974,19 @@ interface PluginSdkApp {
|
|
|
23609
23974
|
* Experimental: see docs/api_to_audit.md.
|
|
23610
23975
|
*/
|
|
23611
23976
|
experimental_DetailRow: ComponentType<ExperimentalDetailRowProps>;
|
|
23977
|
+
/**
|
|
23978
|
+
* The thread context card's row (see
|
|
23979
|
+
* {@link ExperimentalThreadContextCardRowProps}), the one bb's own entries
|
|
23980
|
+
* use.
|
|
23981
|
+
* Experimental: see docs/api_to_audit.md.
|
|
23982
|
+
*/
|
|
23983
|
+
experimental_ThreadContextCardRow: ComponentType<ExperimentalThreadContextCardRowProps>;
|
|
23984
|
+
/**
|
|
23985
|
+
* The icon bb's tab strip draws for an open side panel tab (see
|
|
23986
|
+
* {@link ExperimentalPanelTabIconProps}). Experimental: see
|
|
23987
|
+
* docs/api_to_audit.md.
|
|
23988
|
+
*/
|
|
23989
|
+
experimental_PanelTabIcon: ComponentType<ExperimentalPanelTabIconProps>;
|
|
23612
23990
|
/**
|
|
23613
23991
|
* The thread Info tab's list (see {@link ExperimentalInfoListProps}), the
|
|
23614
23992
|
* one bb's own sections use. Experimental: see docs/api_to_audit.md.
|
|
@@ -23734,6 +24112,8 @@ declare const experimental_Diff: react.ComponentType<DiffProps>;
|
|
|
23734
24112
|
declare const experimental_InfoSection: react.ComponentType<ExperimentalInfoSectionProps>;
|
|
23735
24113
|
declare const experimental_DetailRow: react.ComponentType<ExperimentalDetailRowProps>;
|
|
23736
24114
|
declare const experimental_InfoList: <Item>(props: ExperimentalInfoListProps<Item>) => react.ReactNode;
|
|
24115
|
+
declare const experimental_ThreadContextCardRow: react.ComponentType<ExperimentalThreadContextCardRowProps>;
|
|
24116
|
+
declare const experimental_PanelTabIcon: react.ComponentType<ExperimentalPanelTabIconProps>;
|
|
23737
24117
|
declare const experimental_InfoListRow: react.ComponentType<ExperimentalInfoListRowProps>;
|
|
23738
24118
|
declare const experimental_useRpcQuery: <Contract extends PluginRpcContract, Method extends keyof Contract & string>(options: ExperimentalRpcQueryOptions<Contract, Method>) => ExperimentalRpcQueryState<PluginRpcResult<Contract[Method]>>;
|
|
23739
24119
|
declare const experimental_useRpcKeyedQuery: <Contract extends PluginRpcContract, Method extends ExperimentalRpcKeyedMethod<Contract>, Selection = Record<string, ExperimentalRpcKeyedValue<Contract[Method]>>>(options: {
|
|
@@ -23759,6 +24139,7 @@ declare const experimental_useQuestionFormHost: () => ExperimentalQuestionFormHo
|
|
|
23759
24139
|
declare const useBbNavigate: () => BbNavigate;
|
|
23760
24140
|
declare const experimental_useCanOpenFileExternally: (target: ExperimentalLiveFileTarget) => boolean;
|
|
23761
24141
|
declare const experimental_useTabVisible: () => boolean;
|
|
24142
|
+
declare const experimental_useServers: () => ExperimentalServers | null;
|
|
23762
24143
|
declare const experimental_useAppPanel: () => ExperimentalPanelController;
|
|
23763
24144
|
declare const experimental_useFixedTabTarget: <Target extends JsonValue$1>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>) => ExperimentalFixedTabTargetState<Target> | null;
|
|
23764
24145
|
declare const useComposer: () => PluginComposerApi;
|
|
@@ -23790,6 +24171,8 @@ declare const experimental_ThreadActionsMenu: react.ComponentType<PluginThreadAc
|
|
|
23790
24171
|
declare const experimental_ThreadActionsContextMenu: react.ComponentType<PluginThreadActionsContextMenuProps>;
|
|
23791
24172
|
|
|
23792
24173
|
declare const experimental_useExperiment: (key: string) => boolean;
|
|
24174
|
+
declare const experimental_useThreadContextKind: () => ExperimentalThreadContextKind;
|
|
24175
|
+
declare const experimental_usePanelTabs: () => ExperimentalPanelTabs;
|
|
23793
24176
|
declare const experimental_useSidebarThreadSplit: (threadId: string, options?: PluginSidebarThreadSplitOptions) => PluginSidebarThreadSplit;
|
|
23794
24177
|
declare const experimental_useSidebarNavigation: () => ExperimentalSidebarNavigationState;
|
|
23795
24178
|
declare const experimental_useSidebarNavigationSplit: (itemId: string, options?: ExperimentalSidebarNavigationSplitOptions) => ExperimentalSidebarNavigationSplit;
|
|
@@ -23812,5 +24195,5 @@ declare const experimental_saveFile: (request: ExperimentalSaveFileRequest) => P
|
|
|
23812
24195
|
declare const experimental_getApplicationLinkApprovals: () => Promise<string[]>;
|
|
23813
24196
|
declare const experimental_revokeApplicationLinkApproval: (scheme: string | null) => Promise<string[]>;
|
|
23814
24197
|
|
|
23815
|
-
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
23816
|
-
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
24198
|
+
export { Markdown, ThreadChat, ThreadTitle, UrlLink, definePluginApp, experimental_BranchPicker, experimental_ComposerRoot, experimental_DetailRow, experimental_Diff, experimental_FailedVoiceRecordings, experimental_FileLink, experimental_Icon, experimental_ImageLightbox, experimental_InfoList, experimental_InfoListRow, experimental_InfoSection, experimental_NewThreadComposer, experimental_PanelTabIcon, experimental_PermissionModePicker, experimental_PluginIcon, experimental_PluginRpcCallError, experimental_PromptMentionIcon, experimental_ProviderIcon, experimental_ProviderModelPicker, experimental_ShortcutHint, experimental_SidebarNavigationIcon, experimental_SourceCode, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_ThreadActionsContextMenu, experimental_ThreadActionsMenu, experimental_ThreadContextCardRow, experimental_ThreadRowMetadata, experimental_ThreadStatusGlyph, experimental_ThreadTitleText, experimental_VoiceInputButton, experimental_VoiceInputTextarea, experimental_VoiceRecordingBar, experimental_copyToClipboard, experimental_describePromptMention, experimental_getApplicationLinkApprovals, experimental_promptMentionClipboardAttributes, experimental_readPromptMentionClipboard, experimental_revokeApplicationLinkApproval, experimental_saveFile, experimental_useAppPanel, experimental_useArchiveEnvironmentThreads, experimental_useBranches, experimental_useCanOpenFileExternally, experimental_useCheckoutState, experimental_useCodeTheme, experimental_useComposerCommandSearch, experimental_useComposerContributions, experimental_useComposerMentionSearch, experimental_useComposerRenderer, experimental_useExperiment, experimental_useFixedTabTarget, experimental_usePanelTabs, experimental_usePluginId, experimental_useProviders, experimental_useQuestionFormHost, experimental_useRpcKeyedQuery, experimental_useRpcMutation, experimental_useRpcQuery, experimental_useRpcRefresh, experimental_useServers, experimental_useSidebarNavigation, experimental_useSidebarNavigationSplit, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, experimental_useTabVisible, experimental_useThreadActionRegistrations, experimental_useThreadActions, experimental_useThreadContextKind, experimental_useThreadTitleDisplayText, useBbContext, useBbNavigate, useComposer, useComposers, useEnvironmentProviders, useRealtime, useRealtimeConnectionState, useRpc, useSdk, useSettings, useSidebarSplitLayout, useSidebarThreadDraft, useSidebarThreadDraftIds, useSidebarThreadRowStatus, useSidebarThreadRowStatuses, useSidebarThreadShortcut };
|
|
24199
|
+
export type { BbContext, BbNavigate, BranchPickerProps, BranchesState, CheckoutState, CodeOverflowMode, ComposerAttachment, ComposerCustomization, ComposerDraft, ComposerDraftReplacement, ComposerDraftSnapshot, ComposerInsertOptions, ComposerInsertPart, ComposerMention, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerSelection, ComposerSendMenuItem, ComposerSubmitOptions, DiffProps, DiffViewMode, ExperimentalAppIcons, ExperimentalAppOverlayProps, ExperimentalAppOverlayRegistration, ExperimentalBadge, ExperimentalBadgeTone, ExperimentalClipboardContent, ExperimentalCodeFenceRendererProps, ExperimentalCodeFenceRendererRegistration, ExperimentalCodeFenceStatus, ExperimentalComposerAction, ExperimentalComposerAttachments, ExperimentalComposerClipboard, ExperimentalComposerCommandRegistration, ExperimentalComposerCommandSearch, ExperimentalComposerCommandSuggestion, ExperimentalComposerCommandSuggestionGroup, ExperimentalComposerCommandTrigger, ExperimentalComposerContribution, ExperimentalComposerContributions, ExperimentalComposerDecorationSource, ExperimentalComposerEditor, ExperimentalComposerEditorState, ExperimentalComposerEditorVoice, ExperimentalComposerHistory, ExperimentalComposerInput, ExperimentalComposerMentionSearch, ExperimentalComposerMentionSuggestion, ExperimentalComposerMentionSuggestionGroup, ExperimentalComposerMentionTarget, ExperimentalComposerMenuEntryProps, ExperimentalComposerMenuSelection, ExperimentalComposerPendingUpload, ExperimentalComposerPlusMenuContribution, ExperimentalComposerPopupContribution, ExperimentalComposerPopupProps, ExperimentalComposerPopupRegistration, ExperimentalComposerPromptAction, ExperimentalComposerProps, ExperimentalComposerRegistration, ExperimentalComposerRendererApi, ExperimentalComposerRootProps, ExperimentalComposerSearchQuery, ExperimentalComposerSendMenuContribution, ExperimentalComposerSubmission, ExperimentalComposerThreadLink, ExperimentalComposerThreadLinkTarget, ExperimentalComposerThreadLinks, ExperimentalComposerThreadRelation, ExperimentalComposerView, ExperimentalComposerVoice, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalMessageMetadataContext, ExperimentalMessageMetadataPlacement, ExperimentalMessageMetadataProps, ExperimentalMessageMetadataRegistration, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPanelTab, ExperimentalPanelTabDetail, ExperimentalPanelTabIconProps, ExperimentalPanelTabs, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPromptMentionClipboardPill, ExperimentalPromptMentionIconProps, ExperimentalPromptMentionPresentation, ExperimentalProviderIconProps, ExperimentalProviderModelPickerProps, ExperimentalProviderModelPickerRouting, ExperimentalProviderModelPickerValue, ExperimentalQuestionFormAction, ExperimentalQuestionFormHost, ExperimentalQuestionShortcut, ExperimentalRpcKeyedMethod, ExperimentalRpcKeyedQueryState, ExperimentalRpcKeyedValue, ExperimentalRpcMutationOptions, ExperimentalRpcMutationState, ExperimentalRpcOptimisticCache, ExperimentalRpcQueryOptions, ExperimentalRpcQueryState, ExperimentalSaveFileOutcome, ExperimentalSaveFileRequest, ExperimentalServer, ExperimentalServers, ExperimentalShortcutHintProps, ExperimentalShortcutPresentation, ExperimentalSidebarFooter, ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterActionRegistration, ExperimentalSidebarFooterDisclosureController, ExperimentalSidebarFooterDisclosureProps, ExperimentalSidebarFooterDisclosureRegistration, ExperimentalSidebarFooterItemBase, ExperimentalSidebarFooterItemRegistration, ExperimentalSidebarHeaderProps, ExperimentalSidebarNavigationAction, ExperimentalSidebarNavigationActions, ExperimentalSidebarNavigationActivationOptions, ExperimentalSidebarNavigationIcon, ExperimentalSidebarNavigationIconProps, ExperimentalSidebarNavigationItem, ExperimentalSidebarNavigationPlacement, ExperimentalSidebarNavigationProps, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationShortcut, ExperimentalSidebarNavigationSplit, ExperimentalSidebarNavigationSplitOptions, ExperimentalSidebarNavigationState, ExperimentalSidebarNavigationTarget, ExperimentalTabContext, ExperimentalTabReference, ExperimentalTabRegistration, ExperimentalTabTargetReference, ExperimentalThreadActionTabProps, ExperimentalThreadContextCardProps, ExperimentalThreadContextCardRowProps, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, ExperimentalThreadContextKind, ExperimentalThreadContextSegmentInput, ExperimentalThreadContextSegmentProps, ExperimentalThreadContextSegmentReference, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadEnvironment, ExperimentalThreadInfoProps, ExperimentalThreadInfoRowRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadRowMetadataDataInput, ExperimentalThreadRowMetadataLineProps, ExperimentalThreadRowMetadataProps, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadTabActionContext, ExperimentalThreadTabProps, ExperimentalThreadTitleTextProps, ExperimentalVoiceDelivery, ExperimentalVoiceInputButtonProps, ExperimentalVoiceInputTextareaProps, ExperimentalVoiceRecordingBarProps, JsonValue$1 as JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEnvironmentProvider, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProvidersState, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, ReadonlyJsonValue, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|