@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
|
@@ -14,6 +14,181 @@ import { StandardSchemaV1 as StandardSchemaV1$1, StandardSchemaV1InferOutput as
|
|
|
14
14
|
import Database from 'better-sqlite3';
|
|
15
15
|
import { Context } from 'hono';
|
|
16
16
|
|
|
17
|
+
interface ContractTagDeclarations<Input, Output> {
|
|
18
|
+
tags?(input: Input, output: Output): readonly string[];
|
|
19
|
+
keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
|
|
20
|
+
invalidates?(input: Input, output: Output): readonly string[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
24
|
+
type PluginRpcIssuePathSegment = string | number;
|
|
25
|
+
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
26
|
+
interface PluginRpcValidationIssue {
|
|
27
|
+
message: string;
|
|
28
|
+
path?: PluginRpcIssuePathSegment[];
|
|
29
|
+
}
|
|
30
|
+
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"];
|
|
31
|
+
/** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
|
|
32
|
+
type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
|
|
33
|
+
/** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
|
|
34
|
+
declare class experimental_PluginRpcCallError extends Error {
|
|
35
|
+
/** Recognizes errors across the packed SDK's separately bundled entries. */
|
|
36
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
37
|
+
readonly code: PluginRpcErrorCode;
|
|
38
|
+
readonly issues?: PluginRpcValidationIssue[];
|
|
39
|
+
readonly status?: number;
|
|
40
|
+
readonly serverCode?: string;
|
|
41
|
+
constructor(args: PluginRpcError & {
|
|
42
|
+
status?: number;
|
|
43
|
+
serverCode?: string;
|
|
44
|
+
});
|
|
45
|
+
/** Normalize failures at the RPC boundary; preserves an existing client error. */
|
|
46
|
+
static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
|
|
47
|
+
}
|
|
48
|
+
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
49
|
+
interface PluginRpcError {
|
|
50
|
+
code: PluginRpcErrorCode;
|
|
51
|
+
message: string;
|
|
52
|
+
issues?: PluginRpcValidationIssue[];
|
|
53
|
+
}
|
|
54
|
+
declare const refusalBrand: unique symbol;
|
|
55
|
+
/** Expected handler refusal; reaches callers without recording a plugin crash. */
|
|
56
|
+
declare class experimental_PluginRpcRefusal extends Error {
|
|
57
|
+
readonly [refusalBrand] = true;
|
|
58
|
+
readonly code: "conflict" | "forbidden" | "invalid" | "not_found";
|
|
59
|
+
readonly issues?: PluginRpcValidationIssue[];
|
|
60
|
+
constructor(args: {
|
|
61
|
+
code: experimental_PluginRpcRefusal["code"];
|
|
62
|
+
message: string;
|
|
63
|
+
issues?: PluginRpcValidationIssue[];
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
68
|
+
* Zod 4 schemas implement this interface directly; other validators can do
|
|
69
|
+
* the same without becoming part of BB's public protocol.
|
|
70
|
+
*/
|
|
71
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
72
|
+
readonly "~standard": {
|
|
73
|
+
readonly version: 1;
|
|
74
|
+
readonly vendor: string;
|
|
75
|
+
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
76
|
+
readonly jsonSchema?: {
|
|
77
|
+
readonly input: (options: {
|
|
78
|
+
target: string;
|
|
79
|
+
}) => Record<string, unknown>;
|
|
80
|
+
readonly output: (options: {
|
|
81
|
+
target: string;
|
|
82
|
+
}) => Record<string, unknown>;
|
|
83
|
+
};
|
|
84
|
+
readonly types?: {
|
|
85
|
+
readonly input: Input;
|
|
86
|
+
readonly output: Output;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
type StandardSchemaV1Result<Output> = {
|
|
91
|
+
readonly value: Output;
|
|
92
|
+
readonly issues?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
readonly issues: readonly StandardSchemaV1Issue[];
|
|
95
|
+
};
|
|
96
|
+
interface StandardSchemaV1Issue {
|
|
97
|
+
readonly message: string;
|
|
98
|
+
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
99
|
+
readonly key: PropertyKey;
|
|
100
|
+
})[];
|
|
101
|
+
}
|
|
102
|
+
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
103
|
+
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
104
|
+
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends Omit<ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>>, "invalidates"> {
|
|
105
|
+
readonly experimental_description?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Host contracts only. When true and the daemon's response has not arrived
|
|
108
|
+
* within half of the call's transport timeout, bb cancels the call and sends
|
|
109
|
+
* it once more, the retry core uses for its own read-only daemon commands.
|
|
110
|
+
* Declare it only for reads that are safe to run twice.
|
|
111
|
+
*/
|
|
112
|
+
readonly experimental_retryable?: boolean;
|
|
113
|
+
readonly input: InputSchema;
|
|
114
|
+
readonly output: OutputSchema;
|
|
115
|
+
}
|
|
116
|
+
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
117
|
+
/** Methods callable with only keys and returning one value per string key. */
|
|
118
|
+
type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
|
|
119
|
+
[Method in keyof Contract & string]: {
|
|
120
|
+
keys: string[];
|
|
121
|
+
} extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
|
|
122
|
+
keys: string[];
|
|
123
|
+
} ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
|
|
124
|
+
}[keyof Contract & string];
|
|
125
|
+
/** One keyed method's inferred row value. */
|
|
126
|
+
type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
|
|
127
|
+
type KeyedContractShape<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
128
|
+
readonly [Method in keyof Inputs]: StandardSchemaV1InferOutput<Inputs[Method]> extends {
|
|
129
|
+
keys: string[];
|
|
130
|
+
} ? string extends keyof StandardSchemaV1InferOutput<Outputs[Method & keyof Outputs]> ? unknown : {
|
|
131
|
+
keyTags?: never;
|
|
132
|
+
} : {
|
|
133
|
+
keyTags?: never;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
type PluginRpcContractDefinition<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
137
|
+
readonly [Method in keyof Outputs]: {
|
|
138
|
+
readonly output: Outputs[Method];
|
|
139
|
+
};
|
|
140
|
+
} & {
|
|
141
|
+
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
142
|
+
} & NoInfer<KeyedContractShape<Inputs, Outputs>>;
|
|
143
|
+
/**
|
|
144
|
+
* Define a shared RPC contract while preserving exact method/schema types.
|
|
145
|
+
* `tags` and `keyTags` receive each method's parsed input and output types.
|
|
146
|
+
* A method declaring keyTags must accept parsed keys: string[] and return a
|
|
147
|
+
* string-indexed record. Writes do not declare what they change: the server
|
|
148
|
+
* calls `bb.rpc.experimental_invalidate` where the data changes, so RPC, CLI,
|
|
149
|
+
* agent-tool and background writes each refresh matching reads once.
|
|
150
|
+
*/
|
|
151
|
+
declare function defineRpcContract<const Inputs extends Record<string, StandardSchemaV1>, const Outputs extends Record<string, StandardSchemaV1>>(contract: PluginRpcContractDefinition<Inputs, Outputs>): {
|
|
152
|
+
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
153
|
+
} & KeyedContractShape<Inputs, Outputs>;
|
|
154
|
+
/**
|
|
155
|
+
* Who invoked an rpc method. `plugin` means another loaded plugin (or this
|
|
156
|
+
* one) called through its own `bb.sdk.plugins.callRpc`; the host verifies
|
|
157
|
+
* that with a per-load token only the server knows. Every other caller — the
|
|
158
|
+
* app, the `bb` CLI, agents, and bb itself — is `client`.
|
|
159
|
+
*/
|
|
160
|
+
type ExperimentalPluginRpcCaller = {
|
|
161
|
+
readonly kind: "plugin";
|
|
162
|
+
readonly pluginId: string;
|
|
163
|
+
} | {
|
|
164
|
+
readonly kind: "client";
|
|
165
|
+
};
|
|
166
|
+
/** Second argument of every rpc handler. */
|
|
167
|
+
interface ExperimentalPluginRpcHandlerContext {
|
|
168
|
+
readonly experimental_caller: ExperimentalPluginRpcCaller;
|
|
169
|
+
/**
|
|
170
|
+
* Aborts when the caller stops waiting (its HTTP request disconnects) or
|
|
171
|
+
* when this plugin instance is reloaded, disabled or removed. A disposing
|
|
172
|
+
* instance's callers still waiting when the dispose drain ends are
|
|
173
|
+
* released with an error, so work finished after that reaches nobody.
|
|
174
|
+
*/
|
|
175
|
+
readonly experimental_signal: AbortSignal;
|
|
176
|
+
}
|
|
177
|
+
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
178
|
+
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Handlers as `bb.rpc.register` calls them: the validated input, then the
|
|
182
|
+
* call's context. A `PluginRpcHandlers` map is assignable to this type, so
|
|
183
|
+
* handlers that ignore the context keep their one-argument signature.
|
|
184
|
+
*/
|
|
185
|
+
type ExperimentalPluginRpcHandlersWithContext<Contract extends PluginRpcContract> = {
|
|
186
|
+
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>, context: ExperimentalPluginRpcHandlerContext) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
187
|
+
};
|
|
188
|
+
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
189
|
+
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
190
|
+
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
191
|
+
|
|
17
192
|
/** Input-form entry: a path, or a path with options. */
|
|
18
193
|
declare const providerNativeRootInputSchema: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
|
|
19
194
|
ancestors: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
@@ -122,7 +297,7 @@ declare const appSettingsUpdateSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
|
122
297
|
}, z$1.core.$strict>]>;
|
|
123
298
|
type AppSettingsUpdate = z$1.infer<typeof appSettingsUpdateSchema>;
|
|
124
299
|
|
|
125
|
-
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"];
|
|
300
|
+
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"];
|
|
126
301
|
type UiPreferenceKey = (typeof UI_PREFERENCE_KEYS)[number];
|
|
127
302
|
interface UiPreferenceDefinition<Schema extends z$1.ZodTypeAny = z$1.ZodTypeAny> {
|
|
128
303
|
schema: Schema;
|
|
@@ -158,6 +333,7 @@ declare const uiPreferenceDefinitions: {
|
|
|
158
333
|
readonly "sidebar.navigationProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
159
334
|
readonly "sidebar.threadListProvider": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
|
|
160
335
|
readonly "composer.provider": UiPreferenceDefinition<z$1.ZodString>;
|
|
336
|
+
readonly "threadContextCard.pinned": UiPreferenceDefinition<z$1.ZodBoolean>;
|
|
161
337
|
readonly "infoPanel.collapsedSections": UiPreferenceDefinition<z$1.ZodPipe<z$1.ZodArray<z$1.ZodString>, z$1.ZodTransform<string[], string[]>>>;
|
|
162
338
|
};
|
|
163
339
|
type UiPreferenceValue<Key extends UiPreferenceKey> = z$1.infer<(typeof uiPreferenceDefinitions)[Key]["schema"]>;
|
|
@@ -218,6 +394,9 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
218
394
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
219
395
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
220
396
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
397
|
+
"question.cancel": "question.cancel";
|
|
398
|
+
"question.next": "question.next";
|
|
399
|
+
"question.previous": "question.previous";
|
|
221
400
|
"question.select.1": "question.select.1";
|
|
222
401
|
"question.select.2": "question.select.2";
|
|
223
402
|
"question.select.3": "question.select.3";
|
|
@@ -227,6 +406,7 @@ declare const appKeybindingOverridesSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
|
227
406
|
"question.select.7": "question.select.7";
|
|
228
407
|
"question.select.8": "question.select.8";
|
|
229
408
|
"question.select.9": "question.select.9";
|
|
409
|
+
"question.submit": "question.submit";
|
|
230
410
|
"settings.open": "settings.open";
|
|
231
411
|
"settings.openServers": "settings.openServers";
|
|
232
412
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -418,13 +598,10 @@ declare const changedMessageSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
418
598
|
"plugins-changed": "plugins-changed";
|
|
419
599
|
"provider-registrations-changed": "provider-registrations-changed";
|
|
420
600
|
"server-move-changed": "server-move-changed";
|
|
601
|
+
"ui-preferences-changed": "ui-preferences-changed";
|
|
421
602
|
}>>>;
|
|
422
603
|
entity: z$1.ZodLiteral<"system">;
|
|
423
604
|
type: z$1.ZodLiteral<"changed">;
|
|
424
|
-
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
425
|
-
entity: z$1.ZodLiteral<"tags">;
|
|
426
|
-
tags: z$1.ZodArray<z$1.ZodString>;
|
|
427
|
-
type: z$1.ZodLiteral<"changed">;
|
|
428
605
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
429
606
|
entity: z$1.ZodLiteral<"plugin">;
|
|
430
607
|
pluginId: z$1.ZodString;
|
|
@@ -525,8 +702,11 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
525
702
|
changelogPreview: "changelogPreview";
|
|
526
703
|
compactExpiredCache: "compactExpiredCache";
|
|
527
704
|
performanceDiagnostics: "performanceDiagnostics";
|
|
705
|
+
pluginUpdates: "pluginUpdates";
|
|
528
706
|
serverMove: "serverMove";
|
|
529
707
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
708
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
709
|
+
threadContextCard: "threadContextCard";
|
|
530
710
|
threadRowMetadata: "threadRowMetadata";
|
|
531
711
|
timelinePush: "timelinePush";
|
|
532
712
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -538,8 +718,11 @@ declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
538
718
|
changelogPreview: "changelogPreview";
|
|
539
719
|
compactExpiredCache: "compactExpiredCache";
|
|
540
720
|
performanceDiagnostics: "performanceDiagnostics";
|
|
721
|
+
pluginUpdates: "pluginUpdates";
|
|
541
722
|
serverMove: "serverMove";
|
|
542
723
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
724
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
725
|
+
threadContextCard: "threadContextCard";
|
|
543
726
|
threadRowMetadata: "threadRowMetadata";
|
|
544
727
|
timelinePush: "timelinePush";
|
|
545
728
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -762,9 +945,11 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
762
945
|
providerThreadId: z$1.ZodString;
|
|
763
946
|
status: z$1.ZodEnum<{
|
|
764
947
|
active: "active";
|
|
948
|
+
blocked: "blocked";
|
|
765
949
|
budgetLimited: "budgetLimited";
|
|
766
950
|
complete: "complete";
|
|
767
951
|
paused: "paused";
|
|
952
|
+
usageLimited: "usageLimited";
|
|
768
953
|
}>;
|
|
769
954
|
threadId: z$1.ZodString;
|
|
770
955
|
timeUsedSeconds: z$1.ZodNumber;
|
|
@@ -3409,6 +3594,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3409
3594
|
value: z$1.ZodString;
|
|
3410
3595
|
}, z$1.core.$strip>>>;
|
|
3411
3596
|
prompt: z$1.ZodString;
|
|
3597
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3412
3598
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3413
3599
|
}, z$1.core.$strip>>;
|
|
3414
3600
|
}, z$1.core.$strip>;
|
|
@@ -3567,6 +3753,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3567
3753
|
value: z$1.ZodString;
|
|
3568
3754
|
}, z$1.core.$strip>>>;
|
|
3569
3755
|
prompt: z$1.ZodString;
|
|
3756
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3570
3757
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3571
3758
|
}, z$1.core.$strip>>;
|
|
3572
3759
|
}, z$1.core.$strip>;
|
|
@@ -3853,6 +4040,7 @@ declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
3853
4040
|
value: z$1.ZodString;
|
|
3854
4041
|
}, z$1.core.$strip>>>;
|
|
3855
4042
|
prompt: z$1.ZodString;
|
|
4043
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
3856
4044
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
3857
4045
|
}, z$1.core.$strip>>;
|
|
3858
4046
|
}, z$1.core.$strip>;
|
|
@@ -4521,172 +4709,6 @@ interface EnvironmentRemoval {
|
|
|
4521
4709
|
providerOwnedPath: boolean;
|
|
4522
4710
|
}
|
|
4523
4711
|
|
|
4524
|
-
interface ContractTagDeclarations<Input, Output> {
|
|
4525
|
-
tags?(input: Input, output: Output): readonly string[];
|
|
4526
|
-
keyTags?(key: string, value: Output extends Readonly<Record<string, infer Value>> ? Value : unknown): readonly string[];
|
|
4527
|
-
invalidates?(input: Input, output: Output): readonly string[];
|
|
4528
|
-
}
|
|
4529
|
-
|
|
4530
|
-
/** A JSON-safe path segment reported by a Standard Schema validation issue. */
|
|
4531
|
-
type PluginRpcIssuePathSegment = string | number;
|
|
4532
|
-
/** Validator-neutral validation detail carried by an RPC error envelope. */
|
|
4533
|
-
interface PluginRpcValidationIssue {
|
|
4534
|
-
message: string;
|
|
4535
|
-
path?: PluginRpcIssuePathSegment[];
|
|
4536
|
-
}
|
|
4537
|
-
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"];
|
|
4538
|
-
/** RPC categories may grow. Handle unknown_error as a fallback for newer server codes. */
|
|
4539
|
-
type PluginRpcErrorCode = (typeof rpcErrorCodes)[number];
|
|
4540
|
-
/** A client RPC failure. Unknown server codes become unknown_error and remain in serverCode. */
|
|
4541
|
-
declare class experimental_PluginRpcCallError extends Error {
|
|
4542
|
-
/** Recognizes errors across the packed SDK's separately bundled entries. */
|
|
4543
|
-
static [Symbol.hasInstance](value: unknown): boolean;
|
|
4544
|
-
readonly code: PluginRpcErrorCode;
|
|
4545
|
-
readonly issues?: PluginRpcValidationIssue[];
|
|
4546
|
-
readonly status?: number;
|
|
4547
|
-
readonly serverCode?: string;
|
|
4548
|
-
constructor(args: PluginRpcError & {
|
|
4549
|
-
status?: number;
|
|
4550
|
-
serverCode?: string;
|
|
4551
|
-
});
|
|
4552
|
-
/** Normalize failures at the RPC boundary; preserves an existing client error. */
|
|
4553
|
-
static from(error: unknown, fallback?: PluginRpcErrorCode): experimental_PluginRpcCallError;
|
|
4554
|
-
}
|
|
4555
|
-
/** Structured RPC failure returned as `{ ok: false, error }`. */
|
|
4556
|
-
interface PluginRpcError {
|
|
4557
|
-
code: PluginRpcErrorCode;
|
|
4558
|
-
message: string;
|
|
4559
|
-
issues?: PluginRpcValidationIssue[];
|
|
4560
|
-
}
|
|
4561
|
-
declare const refusalBrand: unique symbol;
|
|
4562
|
-
/** Expected handler refusal; reaches callers without recording a plugin crash. */
|
|
4563
|
-
declare class experimental_PluginRpcRefusal extends Error {
|
|
4564
|
-
readonly [refusalBrand] = true;
|
|
4565
|
-
readonly code: "conflict" | "forbidden" | "invalid" | "not_found";
|
|
4566
|
-
readonly issues?: PluginRpcValidationIssue[];
|
|
4567
|
-
constructor(args: {
|
|
4568
|
-
code: experimental_PluginRpcRefusal["code"];
|
|
4569
|
-
message: string;
|
|
4570
|
-
issues?: PluginRpcValidationIssue[];
|
|
4571
|
-
});
|
|
4572
|
-
}
|
|
4573
|
-
/**
|
|
4574
|
-
* The validator-neutral subset of Standard Schema v1 used by plugin contracts.
|
|
4575
|
-
* Zod 4 schemas implement this interface directly; other validators can do
|
|
4576
|
-
* the same without becoming part of BB's public protocol.
|
|
4577
|
-
*/
|
|
4578
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
4579
|
-
readonly "~standard": {
|
|
4580
|
-
readonly version: 1;
|
|
4581
|
-
readonly vendor: string;
|
|
4582
|
-
readonly validate: (value: unknown) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
|
|
4583
|
-
readonly jsonSchema?: {
|
|
4584
|
-
readonly input: (options: {
|
|
4585
|
-
target: string;
|
|
4586
|
-
}) => Record<string, unknown>;
|
|
4587
|
-
readonly output: (options: {
|
|
4588
|
-
target: string;
|
|
4589
|
-
}) => Record<string, unknown>;
|
|
4590
|
-
};
|
|
4591
|
-
readonly types?: {
|
|
4592
|
-
readonly input: Input;
|
|
4593
|
-
readonly output: Output;
|
|
4594
|
-
};
|
|
4595
|
-
};
|
|
4596
|
-
}
|
|
4597
|
-
type StandardSchemaV1Result<Output> = {
|
|
4598
|
-
readonly value: Output;
|
|
4599
|
-
readonly issues?: undefined;
|
|
4600
|
-
} | {
|
|
4601
|
-
readonly issues: readonly StandardSchemaV1Issue[];
|
|
4602
|
-
};
|
|
4603
|
-
interface StandardSchemaV1Issue {
|
|
4604
|
-
readonly message: string;
|
|
4605
|
-
readonly path?: PropertyKey | readonly (PropertyKey | {
|
|
4606
|
-
readonly key: PropertyKey;
|
|
4607
|
-
})[];
|
|
4608
|
-
}
|
|
4609
|
-
type StandardSchemaV1InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
4610
|
-
type StandardSchemaV1InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
4611
|
-
interface PluginRpcMethodContract<InputSchema extends StandardSchemaV1 = StandardSchemaV1, OutputSchema extends StandardSchemaV1 = StandardSchemaV1> extends ContractTagDeclarations<StandardSchemaV1InferOutput<InputSchema>, StandardSchemaV1InferOutput<OutputSchema>> {
|
|
4612
|
-
readonly experimental_description?: string;
|
|
4613
|
-
/**
|
|
4614
|
-
* Host contracts only. When true and the daemon's response has not arrived
|
|
4615
|
-
* within half of the call's transport timeout, bb cancels the call and sends
|
|
4616
|
-
* it once more, the retry core uses for its own read-only daemon commands.
|
|
4617
|
-
* Declare it only for reads that are safe to run twice.
|
|
4618
|
-
*/
|
|
4619
|
-
readonly experimental_retryable?: boolean;
|
|
4620
|
-
readonly input: InputSchema;
|
|
4621
|
-
readonly output: OutputSchema;
|
|
4622
|
-
}
|
|
4623
|
-
type PluginRpcContract = Readonly<Record<string, PluginRpcMethodContract>>;
|
|
4624
|
-
/** Methods callable with only keys and returning one value per string key. */
|
|
4625
|
-
type ExperimentalRpcKeyedMethod<Contract extends PluginRpcContract> = {
|
|
4626
|
-
[Method in keyof Contract & string]: {
|
|
4627
|
-
keys: string[];
|
|
4628
|
-
} extends StandardSchemaV1InferInput<Contract[Method]["input"]> ? StandardSchemaV1InferOutput<Contract[Method]["input"]> extends {
|
|
4629
|
-
keys: string[];
|
|
4630
|
-
} ? string extends keyof PluginRpcResult<Contract[Method]> ? Method : never : never : never;
|
|
4631
|
-
}[keyof Contract & string];
|
|
4632
|
-
/** One keyed method's inferred row value. */
|
|
4633
|
-
type ExperimentalRpcKeyedValue<Method extends PluginRpcMethodContract> = PluginRpcResult<Method> extends Record<string, infer Value> ? Value : never;
|
|
4634
|
-
type KeyedContractShape<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
4635
|
-
readonly [Method in keyof Inputs]: StandardSchemaV1InferOutput<Inputs[Method]> extends {
|
|
4636
|
-
keys: string[];
|
|
4637
|
-
} ? string extends keyof StandardSchemaV1InferOutput<Outputs[Method & keyof Outputs]> ? unknown : {
|
|
4638
|
-
keyTags?: never;
|
|
4639
|
-
} : {
|
|
4640
|
-
keyTags?: never;
|
|
4641
|
-
};
|
|
4642
|
-
};
|
|
4643
|
-
type PluginRpcContractDefinition<Inputs extends Record<string, StandardSchemaV1>, Outputs extends Record<string, StandardSchemaV1>> = {
|
|
4644
|
-
readonly [Method in keyof Outputs]: {
|
|
4645
|
-
readonly output: Outputs[Method];
|
|
4646
|
-
};
|
|
4647
|
-
} & {
|
|
4648
|
-
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
4649
|
-
} & NoInfer<KeyedContractShape<Inputs, Outputs>>;
|
|
4650
|
-
/**
|
|
4651
|
-
* Define a shared RPC contract while preserving exact method/schema types.
|
|
4652
|
-
* `tags`, `keyTags` and `invalidates` receive each method's parsed input and
|
|
4653
|
-
* output types. A method declaring keyTags must accept parsed keys: string[]
|
|
4654
|
-
* and return a string-indexed record.
|
|
4655
|
-
*/
|
|
4656
|
-
declare function defineRpcContract<const Inputs extends Record<string, StandardSchemaV1>, const Outputs extends Record<string, StandardSchemaV1>>(contract: PluginRpcContractDefinition<Inputs, Outputs>): {
|
|
4657
|
-
readonly [Method in keyof Inputs]: PluginRpcMethodContract<Inputs[Method], Outputs[Method & keyof Outputs]>;
|
|
4658
|
-
} & KeyedContractShape<Inputs, Outputs>;
|
|
4659
|
-
/**
|
|
4660
|
-
* Who invoked an rpc method. `plugin` means another loaded plugin (or this
|
|
4661
|
-
* one) called through its own `bb.sdk.plugins.callRpc`; the host verifies
|
|
4662
|
-
* that with a per-load token only the server knows. Every other caller — the
|
|
4663
|
-
* app, the `bb` CLI, agents, and bb itself — is `client`.
|
|
4664
|
-
*/
|
|
4665
|
-
type ExperimentalPluginRpcCaller = {
|
|
4666
|
-
readonly kind: "plugin";
|
|
4667
|
-
readonly pluginId: string;
|
|
4668
|
-
} | {
|
|
4669
|
-
readonly kind: "client";
|
|
4670
|
-
};
|
|
4671
|
-
/** Second argument of every rpc handler. */
|
|
4672
|
-
interface ExperimentalPluginRpcHandlerContext {
|
|
4673
|
-
readonly experimental_caller: ExperimentalPluginRpcCaller;
|
|
4674
|
-
}
|
|
4675
|
-
type PluginRpcHandlers<Contract extends PluginRpcContract> = {
|
|
4676
|
-
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
4677
|
-
};
|
|
4678
|
-
/**
|
|
4679
|
-
* Handlers as `bb.rpc.register` calls them: the validated input, then the
|
|
4680
|
-
* call's context. A `PluginRpcHandlers` map is assignable to this type, so
|
|
4681
|
-
* handlers that ignore the context keep their one-argument signature.
|
|
4682
|
-
*/
|
|
4683
|
-
type ExperimentalPluginRpcHandlersWithContext<Contract extends PluginRpcContract> = {
|
|
4684
|
-
[Method in keyof Contract]: (input: StandardSchemaV1InferOutput<Contract[Method]["input"]>, context: ExperimentalPluginRpcHandlerContext) => StandardSchemaV1InferInput<Contract[Method]["output"]> | Promise<StandardSchemaV1InferInput<Contract[Method]["output"]>>;
|
|
4685
|
-
};
|
|
4686
|
-
type PluginRpcCallInput<Method extends PluginRpcMethodContract> = StandardSchemaV1InferInput<Method["input"]>;
|
|
4687
|
-
type PluginRpcCallArgs<Method extends PluginRpcMethodContract> = null extends PluginRpcCallInput<Method> ? [input?: PluginRpcCallInput<Method>] : [input: PluginRpcCallInput<Method>];
|
|
4688
|
-
type PluginRpcResult<Method extends PluginRpcMethodContract> = StandardSchemaV1InferOutput<Method["output"]>;
|
|
4689
|
-
|
|
4690
4712
|
declare const threadContextResponseSchema: z$1.ZodObject<{
|
|
4691
4713
|
usage: z$1.ZodNullable<z$1.ZodObject<{
|
|
4692
4714
|
compactionOfferAt: z$1.ZodOptional<z$1.ZodISODateTime>;
|
|
@@ -6117,7 +6139,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6117
6139
|
model: z$1.ZodString;
|
|
6118
6140
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6119
6141
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6120
|
-
reasoningLevel: z$1.ZodString
|
|
6142
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6121
6143
|
serviceTier: z$1.ZodString;
|
|
6122
6144
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6123
6145
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6449,7 +6471,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6449
6471
|
model: z$1.ZodString;
|
|
6450
6472
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6451
6473
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6452
|
-
reasoningLevel: z$1.ZodString
|
|
6474
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6453
6475
|
serviceTier: z$1.ZodString;
|
|
6454
6476
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6455
6477
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6698,7 +6720,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6698
6720
|
model: z$1.ZodString;
|
|
6699
6721
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6700
6722
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6701
|
-
reasoningLevel: z$1.ZodString
|
|
6723
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6702
6724
|
serviceTier: z$1.ZodString;
|
|
6703
6725
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6704
6726
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -6915,7 +6937,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
6915
6937
|
model: z$1.ZodString;
|
|
6916
6938
|
promptMode: z$1.ZodOptional<z$1.ZodLiteral<"plan">>;
|
|
6917
6939
|
providerOptions: z$1.ZodType<JsonObject, unknown, z$1.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
6918
|
-
reasoningLevel: z$1.ZodString
|
|
6940
|
+
reasoningLevel: z$1.ZodOptional<z$1.ZodString>;
|
|
6919
6941
|
serviceTier: z$1.ZodString;
|
|
6920
6942
|
sessionOptions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodBoolean]>>>;
|
|
6921
6943
|
}, z$1.core.$strip>, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
@@ -7968,6 +7990,7 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7968
7990
|
}, z$1.core.$strict>>;
|
|
7969
7991
|
cwd: z$1.ZodOptional<z$1.ZodString>;
|
|
7970
7992
|
providerId: z$1.ZodString;
|
|
7993
|
+
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
7971
7994
|
type: z$1.ZodLiteral<"provider.list_models">;
|
|
7972
7995
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
7973
7996
|
models: z$1.ZodArray<z$1.ZodObject<{
|
|
@@ -7977,6 +8000,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
7977
8000
|
id: z$1.ZodString;
|
|
7978
8001
|
isDefault: z$1.ZodBoolean;
|
|
7979
8002
|
model: z$1.ZodString;
|
|
8003
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
8004
|
+
known: "known";
|
|
8005
|
+
unknown: "unknown";
|
|
8006
|
+
}>>;
|
|
7980
8007
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
7981
8008
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
7982
8009
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8018,6 +8045,10 @@ declare const hostDaemonCommandRegistry: {
|
|
|
8018
8045
|
id: z$1.ZodString;
|
|
8019
8046
|
isDefault: z$1.ZodBoolean;
|
|
8020
8047
|
model: z$1.ZodString;
|
|
8048
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
8049
|
+
known: "known";
|
|
8050
|
+
unknown: "unknown";
|
|
8051
|
+
}>>;
|
|
8021
8052
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
8022
8053
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
8023
8054
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8831,11 +8862,13 @@ type HostProviderCliInstallEvent = ProviderCliInstallEvent;
|
|
|
8831
8862
|
|
|
8832
8863
|
declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
8833
8864
|
blocked: z$1.ZodOptional<z$1.ZodObject<{
|
|
8865
|
+
label: z$1.ZodString;
|
|
8834
8866
|
reasons: z$1.ZodArray<z$1.ZodString>;
|
|
8835
8867
|
version: z$1.ZodString;
|
|
8836
8868
|
}, z$1.core.$strip>>;
|
|
8837
8869
|
candidate: z$1.ZodOptional<z$1.ZodObject<{
|
|
8838
8870
|
display: z$1.ZodString;
|
|
8871
|
+
label: z$1.ZodString;
|
|
8839
8872
|
version: z$1.ZodString;
|
|
8840
8873
|
}, z$1.core.$strip>>;
|
|
8841
8874
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -8843,6 +8876,7 @@ declare const pluginUpdateCheckEntrySchema: z$1.ZodObject<{
|
|
|
8843
8876
|
id: z$1.ZodString;
|
|
8844
8877
|
installed: z$1.ZodObject<{
|
|
8845
8878
|
display: z$1.ZodString;
|
|
8879
|
+
label: z$1.ZodString;
|
|
8846
8880
|
version: z$1.ZodString;
|
|
8847
8881
|
}, z$1.core.$strip>;
|
|
8848
8882
|
outcome: z$1.ZodEnum<{
|
|
@@ -8859,6 +8893,7 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
8859
8893
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
8860
8894
|
from: z$1.ZodObject<{
|
|
8861
8895
|
display: z$1.ZodString;
|
|
8896
|
+
label: z$1.ZodString;
|
|
8862
8897
|
version: z$1.ZodString;
|
|
8863
8898
|
}, z$1.core.$strip>;
|
|
8864
8899
|
outcome: z$1.ZodEnum<{
|
|
@@ -8868,6 +8903,7 @@ declare const pluginApplyUpdateResultSchema: z$1.ZodObject<{
|
|
|
8868
8903
|
}>;
|
|
8869
8904
|
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
8870
8905
|
display: z$1.ZodString;
|
|
8906
|
+
label: z$1.ZodString;
|
|
8871
8907
|
version: z$1.ZodString;
|
|
8872
8908
|
}, z$1.core.$strip>>;
|
|
8873
8909
|
}, z$1.core.$strip>;
|
|
@@ -8897,6 +8933,7 @@ declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
8897
8933
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
8898
8934
|
from: z$1.ZodObject<{
|
|
8899
8935
|
display: z$1.ZodString;
|
|
8936
|
+
label: z$1.ZodString;
|
|
8900
8937
|
version: z$1.ZodString;
|
|
8901
8938
|
}, z$1.core.$strip>;
|
|
8902
8939
|
outcome: z$1.ZodEnum<{
|
|
@@ -8906,6 +8943,7 @@ declare const pluginUpdateJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
8906
8943
|
}>;
|
|
8907
8944
|
to: z$1.ZodOptional<z$1.ZodObject<{
|
|
8908
8945
|
display: z$1.ZodString;
|
|
8946
|
+
label: z$1.ZodString;
|
|
8909
8947
|
version: z$1.ZodString;
|
|
8910
8948
|
}, z$1.core.$strip>>;
|
|
8911
8949
|
}, z$1.core.$strip>;
|
|
@@ -9036,7 +9074,9 @@ declare const installedPluginSchema: z$1.ZodObject<{
|
|
|
9036
9074
|
}>;
|
|
9037
9075
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9038
9076
|
updateState: z$1.ZodObject<{
|
|
9077
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9039
9078
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9079
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9040
9080
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9041
9081
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9042
9082
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9044,6 +9084,7 @@ declare const installedPluginSchema: z$1.ZodObject<{
|
|
|
9044
9084
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9045
9085
|
at: z$1.ZodNumber;
|
|
9046
9086
|
detail: z$1.ZodString;
|
|
9087
|
+
label: z$1.ZodString;
|
|
9047
9088
|
version: z$1.ZodString;
|
|
9048
9089
|
}, z$1.core.$strip>>;
|
|
9049
9090
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9157,7 +9198,9 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
9157
9198
|
}>;
|
|
9158
9199
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9159
9200
|
updateState: z$1.ZodObject<{
|
|
9201
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9160
9202
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9203
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9161
9204
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9162
9205
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9163
9206
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9165,6 +9208,7 @@ declare const pluginListResponseSchema: z$1.ZodObject<{
|
|
|
9165
9208
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9166
9209
|
at: z$1.ZodNumber;
|
|
9167
9210
|
detail: z$1.ZodString;
|
|
9211
|
+
label: z$1.ZodString;
|
|
9168
9212
|
version: z$1.ZodString;
|
|
9169
9213
|
}, z$1.core.$strip>>;
|
|
9170
9214
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9344,7 +9388,9 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
9344
9388
|
}>;
|
|
9345
9389
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9346
9390
|
updateState: z$1.ZodObject<{
|
|
9391
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9347
9392
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9393
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9348
9394
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9349
9395
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9350
9396
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9352,6 +9398,7 @@ declare const pluginInstallJobSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
|
9352
9398
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9353
9399
|
at: z$1.ZodNumber;
|
|
9354
9400
|
detail: z$1.ZodString;
|
|
9401
|
+
label: z$1.ZodString;
|
|
9355
9402
|
version: z$1.ZodString;
|
|
9356
9403
|
}, z$1.core.$strip>>;
|
|
9357
9404
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9528,7 +9575,9 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
|
9528
9575
|
}>;
|
|
9529
9576
|
statusDetail: z$1.ZodNullable<z$1.ZodString>;
|
|
9530
9577
|
updateState: z$1.ZodObject<{
|
|
9578
|
+
availableLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9531
9579
|
availableVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9580
|
+
blockedLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
9532
9581
|
blockedReasons: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
9533
9582
|
blockedVersion: z$1.ZodOptional<z$1.ZodString>;
|
|
9534
9583
|
detail: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -9536,6 +9585,7 @@ declare const pluginReloadResponseSchema: z$1.ZodObject<{
|
|
|
9536
9585
|
lastFailure: z$1.ZodOptional<z$1.ZodObject<{
|
|
9537
9586
|
at: z$1.ZodNumber;
|
|
9538
9587
|
detail: z$1.ZodString;
|
|
9588
|
+
label: z$1.ZodString;
|
|
9539
9589
|
version: z$1.ZodString;
|
|
9540
9590
|
}, z$1.core.$strip>>;
|
|
9541
9591
|
outcome: z$1.ZodOptional<z$1.ZodEnum<{
|
|
@@ -9868,6 +9918,10 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
|
|
|
9868
9918
|
id: z$1.ZodString;
|
|
9869
9919
|
isDefault: z$1.ZodBoolean;
|
|
9870
9920
|
model: z$1.ZodString;
|
|
9921
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
9922
|
+
known: "known";
|
|
9923
|
+
unknown: "unknown";
|
|
9924
|
+
}>>;
|
|
9871
9925
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
9872
9926
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
9873
9927
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -10005,6 +10059,10 @@ declare const systemExecutionOptionsResponseSchema: z$1.ZodObject<{
|
|
|
10005
10059
|
id: z$1.ZodString;
|
|
10006
10060
|
isDefault: z$1.ZodBoolean;
|
|
10007
10061
|
model: z$1.ZodString;
|
|
10062
|
+
reasoningDiscovery: z$1.ZodDefault<z$1.ZodEnum<{
|
|
10063
|
+
known: "known";
|
|
10064
|
+
unknown: "unknown";
|
|
10065
|
+
}>>;
|
|
10008
10066
|
routeProviderId: z$1.ZodOptional<z$1.ZodString>;
|
|
10009
10067
|
sessionOptions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10010
10068
|
category: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -10054,6 +10112,7 @@ declare const systemExecutionOptionsQuerySchema: z$1.ZodObject<{
|
|
|
10054
10112
|
hostId: z$1.ZodOptional<z$1.ZodString>;
|
|
10055
10113
|
projectId: z$1.ZodOptional<z$1.ZodString>;
|
|
10056
10114
|
providerId: z$1.ZodOptional<z$1.ZodString>;
|
|
10115
|
+
selectedModel: z$1.ZodOptional<z$1.ZodString>;
|
|
10057
10116
|
}, z$1.core.$strip>;
|
|
10058
10117
|
type SystemExecutionOptionsQuery = z$1.infer<typeof systemExecutionOptionsQuerySchema>;
|
|
10059
10118
|
declare const systemUsageLimitsQuerySchema: z$1.ZodObject<{
|
|
@@ -10350,6 +10409,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10350
10409
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10351
10410
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10352
10411
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10412
|
+
"question.cancel": "question.cancel";
|
|
10413
|
+
"question.next": "question.next";
|
|
10414
|
+
"question.previous": "question.previous";
|
|
10353
10415
|
"question.select.1": "question.select.1";
|
|
10354
10416
|
"question.select.2": "question.select.2";
|
|
10355
10417
|
"question.select.3": "question.select.3";
|
|
@@ -10359,6 +10421,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10359
10421
|
"question.select.7": "question.select.7";
|
|
10360
10422
|
"question.select.8": "question.select.8";
|
|
10361
10423
|
"question.select.9": "question.select.9";
|
|
10424
|
+
"question.submit": "question.submit";
|
|
10362
10425
|
"settings.open": "settings.open";
|
|
10363
10426
|
"settings.openServers": "settings.openServers";
|
|
10364
10427
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10405,6 +10468,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10405
10468
|
modalOpen: "modalOpen";
|
|
10406
10469
|
modelPickerOpen: "modelPickerOpen";
|
|
10407
10470
|
promptAvailable: "promptAvailable";
|
|
10471
|
+
questionFocus: "questionFocus";
|
|
10408
10472
|
questionOpen: "questionOpen";
|
|
10409
10473
|
splitActive: "splitActive";
|
|
10410
10474
|
terminalFocus: "terminalFocus";
|
|
@@ -10420,6 +10484,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10420
10484
|
modalOpen: "modalOpen";
|
|
10421
10485
|
modelPickerOpen: "modelPickerOpen";
|
|
10422
10486
|
promptAvailable: "promptAvailable";
|
|
10487
|
+
questionFocus: "questionFocus";
|
|
10423
10488
|
questionOpen: "questionOpen";
|
|
10424
10489
|
splitActive: "splitActive";
|
|
10425
10490
|
terminalFocus: "terminalFocus";
|
|
@@ -10433,8 +10498,11 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10433
10498
|
changelogPreview: "changelogPreview";
|
|
10434
10499
|
compactExpiredCache: "compactExpiredCache";
|
|
10435
10500
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10501
|
+
pluginUpdates: "pluginUpdates";
|
|
10436
10502
|
serverMove: "serverMove";
|
|
10437
10503
|
sidebarMultiSelect: "sidebarMultiSelect";
|
|
10504
|
+
skipFocusedThreadNotifications: "skipFocusedThreadNotifications";
|
|
10505
|
+
threadContextCard: "threadContextCard";
|
|
10438
10506
|
threadRowMetadata: "threadRowMetadata";
|
|
10439
10507
|
timelinePush: "timelinePush";
|
|
10440
10508
|
unreadDividerAtAnswer: "unreadDividerAtAnswer";
|
|
@@ -10521,6 +10589,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10521
10589
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10522
10590
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10523
10591
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10592
|
+
"question.cancel": "question.cancel";
|
|
10593
|
+
"question.next": "question.next";
|
|
10594
|
+
"question.previous": "question.previous";
|
|
10524
10595
|
"question.select.1": "question.select.1";
|
|
10525
10596
|
"question.select.2": "question.select.2";
|
|
10526
10597
|
"question.select.3": "question.select.3";
|
|
@@ -10530,6 +10601,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10530
10601
|
"question.select.7": "question.select.7";
|
|
10531
10602
|
"question.select.8": "question.select.8";
|
|
10532
10603
|
"question.select.9": "question.select.9";
|
|
10604
|
+
"question.submit": "question.submit";
|
|
10533
10605
|
"settings.open": "settings.open";
|
|
10534
10606
|
"settings.openServers": "settings.openServers";
|
|
10535
10607
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10620,6 +10692,9 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10620
10692
|
"plugins.enterSafeMode": "plugins.enterSafeMode";
|
|
10621
10693
|
"plugins.exitSafeMode": "plugins.exitSafeMode";
|
|
10622
10694
|
"plugins.pruneCache": "plugins.pruneCache";
|
|
10695
|
+
"question.cancel": "question.cancel";
|
|
10696
|
+
"question.next": "question.next";
|
|
10697
|
+
"question.previous": "question.previous";
|
|
10623
10698
|
"question.select.1": "question.select.1";
|
|
10624
10699
|
"question.select.2": "question.select.2";
|
|
10625
10700
|
"question.select.3": "question.select.3";
|
|
@@ -10629,6 +10704,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10629
10704
|
"question.select.7": "question.select.7";
|
|
10630
10705
|
"question.select.8": "question.select.8";
|
|
10631
10706
|
"question.select.9": "question.select.9";
|
|
10707
|
+
"question.submit": "question.submit";
|
|
10632
10708
|
"settings.open": "settings.open";
|
|
10633
10709
|
"settings.openServers": "settings.openServers";
|
|
10634
10710
|
"sidebar.toggle": "sidebar.toggle";
|
|
@@ -10675,6 +10751,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10675
10751
|
modalOpen: "modalOpen";
|
|
10676
10752
|
modelPickerOpen: "modelPickerOpen";
|
|
10677
10753
|
promptAvailable: "promptAvailable";
|
|
10754
|
+
questionFocus: "questionFocus";
|
|
10678
10755
|
questionOpen: "questionOpen";
|
|
10679
10756
|
splitActive: "splitActive";
|
|
10680
10757
|
terminalFocus: "terminalFocus";
|
|
@@ -10690,6 +10767,7 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10690
10767
|
modalOpen: "modalOpen";
|
|
10691
10768
|
modelPickerOpen: "modelPickerOpen";
|
|
10692
10769
|
promptAvailable: "promptAvailable";
|
|
10770
|
+
questionFocus: "questionFocus";
|
|
10693
10771
|
questionOpen: "questionOpen";
|
|
10694
10772
|
splitActive: "splitActive";
|
|
10695
10773
|
terminalFocus: "terminalFocus";
|
|
@@ -12239,6 +12317,7 @@ declare const timelineQuestionWorkRowSchema: z$1.ZodObject<{
|
|
|
12239
12317
|
value: z$1.ZodString;
|
|
12240
12318
|
}, z$1.core.$strip>>>;
|
|
12241
12319
|
prompt: z$1.ZodString;
|
|
12320
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
12242
12321
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
12243
12322
|
}, z$1.core.$strip>>;
|
|
12244
12323
|
sourceSeqEnd: z$1.ZodNumber;
|
|
@@ -14473,6 +14552,7 @@ declare const threadPendingInteractionsResponseSchema: z$1.ZodArray<z$1.ZodUnion
|
|
|
14473
14552
|
value: z$1.ZodString;
|
|
14474
14553
|
}, z$1.core.$strip>>>;
|
|
14475
14554
|
prompt: z$1.ZodString;
|
|
14555
|
+
required: z$1.ZodDefault<z$1.ZodBoolean>;
|
|
14476
14556
|
shortLabel: z$1.ZodOptional<z$1.ZodString>;
|
|
14477
14557
|
}, z$1.core.$strip>>;
|
|
14478
14558
|
}, z$1.core.$strip>;
|
|
@@ -15759,9 +15839,11 @@ declare const threadTimelineResponseSchema: z$1.ZodObject<{
|
|
|
15759
15839
|
sourceSeq: z$1.ZodNumber;
|
|
15760
15840
|
status: z$1.ZodEnum<{
|
|
15761
15841
|
active: "active";
|
|
15842
|
+
blocked: "blocked";
|
|
15762
15843
|
budgetLimited: "budgetLimited";
|
|
15763
15844
|
complete: "complete";
|
|
15764
15845
|
paused: "paused";
|
|
15846
|
+
usageLimited: "usageLimited";
|
|
15765
15847
|
}>;
|
|
15766
15848
|
timeUsedSeconds: z$1.ZodNumber;
|
|
15767
15849
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -16105,9 +16187,11 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
16105
16187
|
sourceSeq: z$1.ZodNumber;
|
|
16106
16188
|
status: z$1.ZodEnum<{
|
|
16107
16189
|
active: "active";
|
|
16190
|
+
blocked: "blocked";
|
|
16108
16191
|
budgetLimited: "budgetLimited";
|
|
16109
16192
|
complete: "complete";
|
|
16110
16193
|
paused: "paused";
|
|
16194
|
+
usageLimited: "usageLimited";
|
|
16111
16195
|
}>;
|
|
16112
16196
|
timeUsedSeconds: z$1.ZodNumber;
|
|
16113
16197
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -16449,9 +16533,11 @@ declare const threadTimelineReadResponseSchema: z$1.ZodUnion<readonly [z$1.ZodOb
|
|
|
16449
16533
|
sourceSeq: z$1.ZodNumber;
|
|
16450
16534
|
status: z$1.ZodEnum<{
|
|
16451
16535
|
active: "active";
|
|
16536
|
+
blocked: "blocked";
|
|
16452
16537
|
budgetLimited: "budgetLimited";
|
|
16453
16538
|
complete: "complete";
|
|
16454
16539
|
paused: "paused";
|
|
16540
|
+
usageLimited: "usageLimited";
|
|
16455
16541
|
}>;
|
|
16456
16542
|
timeUsedSeconds: z$1.ZodNumber;
|
|
16457
16543
|
tokenBudget: z$1.ZodNullable<z$1.ZodNumber>;
|
|
@@ -18782,6 +18868,14 @@ interface ThreadsArea {
|
|
|
18782
18868
|
* Experimental: see docs/api_to_audit.md.
|
|
18783
18869
|
*/
|
|
18784
18870
|
experimental_listCascade(args: ThreadCascadeListArgs): Promise<ThreadCascadeListResult>;
|
|
18871
|
+
/**
|
|
18872
|
+
* Generate a new title from the thread's first task message, its latest user
|
|
18873
|
+
* messages, and the agent's latest replies, in the task's language. The
|
|
18874
|
+
* current title is kept when it still fits, when no title service is
|
|
18875
|
+
* available, or when generation fails, and the call rejects with the reason
|
|
18876
|
+
* on failure. Experimental: see docs/api_to_audit.md.
|
|
18877
|
+
*/
|
|
18878
|
+
experimental_regenerateTitle(args: ThreadActionArgs): Promise<ThreadMutationResult>;
|
|
18785
18879
|
updatePluginMetadata(args: ThreadPluginMetadataUpdateArgs): Promise<ThreadPluginMetadataResult>;
|
|
18786
18880
|
queue: ThreadQueueArea;
|
|
18787
18881
|
interactions: ThreadInteractionsArea;
|
|
@@ -19977,7 +20071,9 @@ interface PluginRpc {
|
|
|
19977
20071
|
* serialization. The response is `{ ok: true, result }` or
|
|
19978
20072
|
* `{ ok: false, error: { code, message, issues? } }`. Each handler gets
|
|
19979
20073
|
* the call's context as its second argument; `experimental_caller` names
|
|
19980
|
-
* the plugin that called through `bb.sdk.plugins.callRpc`, or `client
|
|
20074
|
+
* the plugin that called through `bb.sdk.plugins.callRpc`, or `client`,
|
|
20075
|
+
* and `experimental_signal` aborts when the caller stops waiting or this
|
|
20076
|
+
* plugin instance is reloaded, disabled or removed.
|
|
19981
20077
|
*/
|
|
19982
20078
|
register<Contract extends PluginRpcContract>(contract: Contract, handlers: ExperimentalPluginRpcHandlersWithContext<Contract>, options?: {
|
|
19983
20079
|
experimental_discoverable?: boolean;
|
|
@@ -20026,7 +20122,10 @@ interface PluginCliContext {
|
|
|
20026
20122
|
cwd?: string;
|
|
20027
20123
|
threadId?: string;
|
|
20028
20124
|
projectId?: string;
|
|
20029
|
-
/**
|
|
20125
|
+
/**
|
|
20126
|
+
* Aborted when the invoking CLI HTTP request disconnects or this plugin
|
|
20127
|
+
* instance is reloaded, disabled or removed.
|
|
20128
|
+
*/
|
|
20030
20129
|
signal?: AbortSignal;
|
|
20031
20130
|
}
|
|
20032
20131
|
type PluginInteractionCancelReason = "plugin-disposed" | "request-aborted" | "server-restarted" | "thread-deleted" | "thread-stopped" | "timeout" | "user";
|
|
@@ -21327,10 +21426,17 @@ interface ExperimentalQuestionShortcut {
|
|
|
21327
21426
|
label: string;
|
|
21328
21427
|
ariaKeyshortcuts: string;
|
|
21329
21428
|
}
|
|
21429
|
+
/**
|
|
21430
|
+
* A form-level action bb binds while a pending interaction is open: `submit`
|
|
21431
|
+
* presses the form's primary button (Next, or Submit on the last question),
|
|
21432
|
+
* `previous` and `next` show another question without submitting, and
|
|
21433
|
+
* `cancel` presses the form's Cancel button.
|
|
21434
|
+
*/
|
|
21435
|
+
type ExperimentalQuestionFormAction = "cancel" | "next" | "previous" | "submit";
|
|
21330
21436
|
/**
|
|
21331
21437
|
* The keyboard shortcuts bb binds while a pending interaction is open. The
|
|
21332
21438
|
* host owns the bindings (users can remap them); a form shows them and decides
|
|
21333
|
-
* what choosing an option means.
|
|
21439
|
+
* what choosing an option or an action means.
|
|
21334
21440
|
*/
|
|
21335
21441
|
interface ExperimentalQuestionFormHost {
|
|
21336
21442
|
/**
|
|
@@ -21338,6 +21444,8 @@ interface ExperimentalQuestionFormHost {
|
|
|
21338
21444
|
* option). Missing entries have no binding.
|
|
21339
21445
|
*/
|
|
21340
21446
|
shortcuts: ReadonlyMap<string, ExperimentalQuestionShortcut>;
|
|
21447
|
+
/** Shortcut per form action. Missing entries have no binding. */
|
|
21448
|
+
actionShortcuts: ReadonlyMap<ExperimentalQuestionFormAction, ExperimentalQuestionShortcut>;
|
|
21341
21449
|
/**
|
|
21342
21450
|
* Receive the index of the option the person chose with a shortcut while
|
|
21343
21451
|
* the thread's pane is focused. Return true when the index names an option
|
|
@@ -21345,6 +21453,14 @@ interface ExperimentalQuestionFormHost {
|
|
|
21345
21453
|
* function to unregister.
|
|
21346
21454
|
*/
|
|
21347
21455
|
registerChoiceHandler(handler: (index: number) => boolean): () => void;
|
|
21456
|
+
/**
|
|
21457
|
+
* Receive the action the person chose with a shortcut while the thread's
|
|
21458
|
+
* pane is focused, or while focus is inside an element marked
|
|
21459
|
+
* `data-question-form`, including its text fields. Return true when the form
|
|
21460
|
+
* performed the action. The last registered handler wins; call the returned
|
|
21461
|
+
* function to unregister.
|
|
21462
|
+
*/
|
|
21463
|
+
registerActionHandler(handler: (action: ExperimentalQuestionFormAction) => boolean): () => void;
|
|
21348
21464
|
}
|
|
21349
21465
|
/**
|
|
21350
21466
|
* Props of the host-owned `experimental_VoiceInputTextarea`: a controlled
|
|
@@ -22325,6 +22441,11 @@ interface PluginSidebarThread {
|
|
|
22325
22441
|
* when its owner stops); null when the thread owns its own lifecycle.
|
|
22326
22442
|
*/
|
|
22327
22443
|
lifecycleOwnerThreadId: string | null;
|
|
22444
|
+
/**
|
|
22445
|
+
* Which of this child's outcomes wake its parent: "auto" (every outcome),
|
|
22446
|
+
* "stuck" (failures, interruptions, and blockers), or "off".
|
|
22447
|
+
*/
|
|
22448
|
+
parentNotifications: ThreadParentNotifications;
|
|
22328
22449
|
/** The thread this one was forked from; null unless `originKind` is "fork". */
|
|
22329
22450
|
sourceThreadId: string | null;
|
|
22330
22451
|
sectionId: string | null;
|
|
@@ -22834,6 +22955,100 @@ interface ExperimentalThreadInfoSectionRegistration {
|
|
|
22834
22955
|
order?: number;
|
|
22835
22956
|
component: ComponentType<ExperimentalThreadInfoProps>;
|
|
22836
22957
|
}
|
|
22958
|
+
/**
|
|
22959
|
+
* Props passed to an `experimental_threadContextCardRow` or
|
|
22960
|
+
* `experimental_threadContextCardSection` component.
|
|
22961
|
+
*/
|
|
22962
|
+
interface ExperimentalThreadContextCardProps {
|
|
22963
|
+
/**
|
|
22964
|
+
* The thread shown in the pane. Every thread pane of a split layout has its
|
|
22965
|
+
* own thread context card, so the component mounts once per visible thread;
|
|
22966
|
+
* keep per-thread state in the component, never in a module-level singleton.
|
|
22967
|
+
*/
|
|
22968
|
+
threadId: string;
|
|
22969
|
+
projectId: string;
|
|
22970
|
+
/**
|
|
22971
|
+
* The thread's environment, taken from the thread; null only when the
|
|
22972
|
+
* thread has no environment. Read its state (host, checkout, git) yourself.
|
|
22973
|
+
*/
|
|
22974
|
+
environment: ExperimentalThreadEnvironment | null;
|
|
22975
|
+
}
|
|
22976
|
+
/**
|
|
22977
|
+
* How a thread pane shows its thread context: `banner` in the context row
|
|
22978
|
+
* above the composer, `card` in the thread context card at the pane's
|
|
22979
|
+
* upper-right. bb picks one per pane.
|
|
22980
|
+
*/
|
|
22981
|
+
type ExperimentalThreadContextKind = "banner" | "card";
|
|
22982
|
+
/**
|
|
22983
|
+
* A row in the thread context card at a thread pane's upper-right, below the
|
|
22984
|
+
* header, beside bb's own rows; the card's counterpart of
|
|
22985
|
+
* `experimental_threadInfoRow`. Render one or more
|
|
22986
|
+
* `experimental_ThreadContextCardRow` elements, or null to show nothing for
|
|
22987
|
+
* this thread. bb draws the card and places it, and mounts rows only in panes
|
|
22988
|
+
* whose thread context kind is `card`. A crash removes only this row for that
|
|
22989
|
+
* thread.
|
|
22990
|
+
*/
|
|
22991
|
+
interface ExperimentalThreadContextCardRowRegistration {
|
|
22992
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
22993
|
+
id: string;
|
|
22994
|
+
/**
|
|
22995
|
+
* Rows sort by `group` (string compare), then by `order` within a group
|
|
22996
|
+
* (unset sorts last), then by registration order, with bb's own rows first
|
|
22997
|
+
* on a tie. Rows use the Info tab's groups,
|
|
22998
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_ROW_GROUPS}; any other
|
|
22999
|
+
* string is a group of its own, placed where it sorts.
|
|
23000
|
+
*/
|
|
23001
|
+
group: string;
|
|
23002
|
+
order?: number;
|
|
23003
|
+
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
23004
|
+
}
|
|
23005
|
+
/**
|
|
23006
|
+
* A titled section of the thread context card, below its rows; the card's
|
|
23007
|
+
* counterpart of `experimental_threadInfoSection`. bb draws the title and a
|
|
23008
|
+
* divider above it, and hides the section while its component renders
|
|
23009
|
+
* nothing. A crash removes only this section for that thread.
|
|
23010
|
+
*/
|
|
23011
|
+
interface ExperimentalThreadContextCardSectionRegistration {
|
|
23012
|
+
/** Unique within the plugin; letters, digits, `-`, `_`. */
|
|
23013
|
+
id: string;
|
|
23014
|
+
/** Heading bb draws above the section's rows. */
|
|
23015
|
+
title: string;
|
|
23016
|
+
/**
|
|
23017
|
+
* Sections sort by `group` (string compare), then by `order` within a group
|
|
23018
|
+
* (unset sorts last), then by registration order, with bb's own sections
|
|
23019
|
+
* first on a tie. Sections use the Info tab's groups,
|
|
23020
|
+
* {@link PluginSdkApp.experimental_THREAD_INFO_SECTION_GROUPS}; any other
|
|
23021
|
+
* string is a group of its own, placed where it sorts.
|
|
23022
|
+
*/
|
|
23023
|
+
group: string;
|
|
23024
|
+
order?: number;
|
|
23025
|
+
component: ComponentType<ExperimentalThreadContextCardProps>;
|
|
23026
|
+
}
|
|
23027
|
+
/**
|
|
23028
|
+
* Props of the host-owned `experimental_ThreadContextCardRow` component, the row
|
|
23029
|
+
* bb's own card rows use: an icon, a label, an optional trailing value, and an
|
|
23030
|
+
* optional second control. With `onClick` the label is a button.
|
|
23031
|
+
*/
|
|
23032
|
+
interface ExperimentalThreadContextCardRowProps {
|
|
23033
|
+
/** Icon drawn before the label, any name `experimental_Icon` accepts. */
|
|
23034
|
+
icon?: BbIconName;
|
|
23035
|
+
/** Drawn in the icon's place, such as an app or site icon; wins over `icon`. */
|
|
23036
|
+
leading?: ReactNode;
|
|
23037
|
+
label: ReactNode;
|
|
23038
|
+
/** Drawn at the row's end, such as a count or `+4 −1`. */
|
|
23039
|
+
trailing?: ReactNode;
|
|
23040
|
+
/** Tooltip, and the accessible description when the label is truncated. */
|
|
23041
|
+
title?: string;
|
|
23042
|
+
disabled?: boolean;
|
|
23043
|
+
/**
|
|
23044
|
+
* A second control, such as a button that opens a menu. It takes the
|
|
23045
|
+
* place of `trailing` while the row is hovered or focused or the control's
|
|
23046
|
+
* menu is open, and always shows on touch screens.
|
|
23047
|
+
*/
|
|
23048
|
+
action?: ReactNode;
|
|
23049
|
+
/** Makes the label a button. */
|
|
23050
|
+
onClick?(): void;
|
|
23051
|
+
}
|
|
22837
23052
|
/**
|
|
22838
23053
|
* Props of the host-owned `experimental_InfoSection` component — the heading,
|
|
22839
23054
|
* count, and collapse control every Info tab section uses.
|
|
@@ -22907,6 +23122,8 @@ interface PluginThreadActionTarget {
|
|
|
22907
23122
|
id: string;
|
|
22908
23123
|
projectId: string;
|
|
22909
23124
|
parentThreadId: string | null;
|
|
23125
|
+
/** Which of this child's outcomes wake its parent; see `PluginSidebarThread`. */
|
|
23126
|
+
parentNotifications: ThreadParentNotifications;
|
|
22910
23127
|
archivedAt: number | null;
|
|
22911
23128
|
pinnedAt: number | null;
|
|
22912
23129
|
sectionId: string | null;
|
|
@@ -24041,6 +24258,37 @@ interface ThreadChatMessageReference {
|
|
|
24041
24258
|
*/
|
|
24042
24259
|
experimental_messageSeq: number;
|
|
24043
24260
|
}
|
|
24261
|
+
/** Stable identity and creation time of one rendered conversation message. */
|
|
24262
|
+
type ExperimentalMessageMetadataContext = Pick<ThreadChatMessageReference, "id" | "threadId"> & {
|
|
24263
|
+
/** Unix time in milliseconds, supplied by BB's timeline. */
|
|
24264
|
+
createdAt: number;
|
|
24265
|
+
/** The containing turn, or null for a message outside a turn. */
|
|
24266
|
+
turnId: string | null;
|
|
24267
|
+
} & ({
|
|
24268
|
+
role: "user";
|
|
24269
|
+
initiator: "agent" | "system" | "user";
|
|
24270
|
+
} | {
|
|
24271
|
+
role: "assistant";
|
|
24272
|
+
});
|
|
24273
|
+
/** Props for a metadata component mounted only beside realized messages. */
|
|
24274
|
+
interface ExperimentalMessageMetadataProps {
|
|
24275
|
+
message: ExperimentalMessageMetadataContext;
|
|
24276
|
+
}
|
|
24277
|
+
/**
|
|
24278
|
+
* Where message metadata renders. `"above"` sits over the message, aligned to
|
|
24279
|
+
* its side. `"actionRow"` sits in the message's action row and shows and hides
|
|
24280
|
+
* with the actions, before them on user messages and after the overflow menu
|
|
24281
|
+
* on assistant messages. It extends into the space beside the message rather
|
|
24282
|
+
* than narrowing the actions.
|
|
24283
|
+
*/
|
|
24284
|
+
type ExperimentalMessageMetadataPlacement = "above" | "actionRow";
|
|
24285
|
+
/** A React contribution beside a conversation message. */
|
|
24286
|
+
interface ExperimentalMessageMetadataRegistration {
|
|
24287
|
+
id: string;
|
|
24288
|
+
/** Omitted means above. */
|
|
24289
|
+
placement?: ExperimentalMessageMetadataPlacement;
|
|
24290
|
+
component: ComponentType<ExperimentalMessageMetadataProps>;
|
|
24291
|
+
}
|
|
24044
24292
|
/** Context handed to a `messageAction`'s `run`. */
|
|
24045
24293
|
interface PluginMessageActionContext {
|
|
24046
24294
|
/** The thread whose timeline surfaced the action. */
|
|
@@ -24404,6 +24652,18 @@ interface PluginAppSlots {
|
|
|
24404
24652
|
* docs/api_to_audit.md.
|
|
24405
24653
|
*/
|
|
24406
24654
|
experimental_threadInfoSection(registration: ExperimentalThreadInfoSectionRegistration): void;
|
|
24655
|
+
/**
|
|
24656
|
+
* Add a row to the thread context card of every thread pane (see
|
|
24657
|
+
* {@link ExperimentalThreadContextCardRowRegistration}). Experimental: see
|
|
24658
|
+
* docs/api_to_audit.md.
|
|
24659
|
+
*/
|
|
24660
|
+
experimental_threadContextCardRow(registration: ExperimentalThreadContextCardRowRegistration): void;
|
|
24661
|
+
/**
|
|
24662
|
+
* Add a titled section to the thread context card of every thread pane (see
|
|
24663
|
+
* {@link ExperimentalThreadContextCardSectionRegistration}). Experimental:
|
|
24664
|
+
* see docs/api_to_audit.md.
|
|
24665
|
+
*/
|
|
24666
|
+
experimental_threadContextCardSection(registration: ExperimentalThreadContextCardSectionRegistration): void;
|
|
24407
24667
|
/**
|
|
24408
24668
|
* Add an action to every thread actions menu (see
|
|
24409
24669
|
* {@link PluginThreadActionRegistration}). Experimental: see
|
|
@@ -24439,6 +24699,8 @@ interface PluginAppSlots {
|
|
|
24439
24699
|
*/
|
|
24440
24700
|
experimental_codeFenceRenderer(registration: ExperimentalCodeFenceRendererRegistration): void;
|
|
24441
24701
|
messageAction(registration: PluginMessageActionRegistration): void;
|
|
24702
|
+
/** Register React message metadata. Experimental: see docs/api_to_audit.md. */
|
|
24703
|
+
experimental_messageMetadata(registration: ExperimentalMessageMetadataRegistration): void;
|
|
24442
24704
|
/**
|
|
24443
24705
|
* @deprecated Use `app.commands.register` with the same registration.
|
|
24444
24706
|
* Both entry points share the same command registry and ID namespace.
|
|
@@ -25525,6 +25787,24 @@ type ExperimentalOpenTabOptions = {
|
|
|
25525
25787
|
interface ExperimentalPanelController {
|
|
25526
25788
|
/** Select the tab and reveal the side panel. */
|
|
25527
25789
|
openTab(options: ExperimentalOpenTabOptions): boolean;
|
|
25790
|
+
/**
|
|
25791
|
+
* The tabs open in this controller's side panel right now, the list
|
|
25792
|
+
* `experimental_usePanelTabs()` follows: for commands and other code that is
|
|
25793
|
+
* not a component. Closed and empty without a side panel.
|
|
25794
|
+
*/
|
|
25795
|
+
getTabs(): ExperimentalPanelTabs;
|
|
25796
|
+
/**
|
|
25797
|
+
* Select any open tab, bb's or a plugin's, by its
|
|
25798
|
+
* {@link ExperimentalPanelTab.key} and reveal the side panel; false for a
|
|
25799
|
+
* key that is not open.
|
|
25800
|
+
*/
|
|
25801
|
+
selectTab(key: string): boolean;
|
|
25802
|
+
/**
|
|
25803
|
+
* Close any open tab by its key, as its close button does; false for a key
|
|
25804
|
+
* that is not open or a tab that cannot be closed. Closing a terminal's tab
|
|
25805
|
+
* ends the terminal.
|
|
25806
|
+
*/
|
|
25807
|
+
closeTab(key: string): boolean;
|
|
25528
25808
|
/**
|
|
25529
25809
|
* Close the side panel if this tab is showing — a fixed tab selected with
|
|
25530
25810
|
* the panel open (`target` is ignored), or the action tab instance with the
|
|
@@ -25534,6 +25814,59 @@ interface ExperimentalPanelController {
|
|
|
25534
25814
|
/** Close the side panel. */
|
|
25535
25815
|
close(): boolean;
|
|
25536
25816
|
}
|
|
25817
|
+
/** What an open side panel tab shows. */
|
|
25818
|
+
type ExperimentalPanelTabDetail = {
|
|
25819
|
+
kind: "info";
|
|
25820
|
+
} | {
|
|
25821
|
+
kind: "file";
|
|
25822
|
+
path: string;
|
|
25823
|
+
} | {
|
|
25824
|
+
kind: "browser";
|
|
25825
|
+
url: string;
|
|
25826
|
+
} | {
|
|
25827
|
+
kind: "terminal";
|
|
25828
|
+
terminalId: string;
|
|
25829
|
+
} | {
|
|
25830
|
+
kind: "new-tab";
|
|
25831
|
+
} | {
|
|
25832
|
+
kind: "plugin";
|
|
25833
|
+
pluginId: string;
|
|
25834
|
+
tab: ExperimentalTabReference;
|
|
25835
|
+
/** The action tab's params; null for fixed tabs and action tabs without. */
|
|
25836
|
+
params: JsonValue | null;
|
|
25837
|
+
} | {
|
|
25838
|
+
kind: "plugin-details";
|
|
25839
|
+
pluginId: string;
|
|
25840
|
+
};
|
|
25841
|
+
/** One tab open in a surface's side panel. */
|
|
25842
|
+
interface ExperimentalPanelTab {
|
|
25843
|
+
/**
|
|
25844
|
+
* Identifies the tab while it stays open; pass it to `selectTab`,
|
|
25845
|
+
* `closeTab`, or `experimental_PanelTabIcon`. Do not store it: a reopened
|
|
25846
|
+
* tab may get another key.
|
|
25847
|
+
*/
|
|
25848
|
+
key: string;
|
|
25849
|
+
/** The label bb's tab strip shows. */
|
|
25850
|
+
title: string;
|
|
25851
|
+
/** The strip's secondary label, such as a terminal's exit status. */
|
|
25852
|
+
status: string | null;
|
|
25853
|
+
/** False for tabs without a close button, such as Info and fixed tabs. */
|
|
25854
|
+
closable: boolean;
|
|
25855
|
+
detail: ExperimentalPanelTabDetail;
|
|
25856
|
+
}
|
|
25857
|
+
/** The tabs of one surface's side panel, in the order bb's tab strip shows them. */
|
|
25858
|
+
interface ExperimentalPanelTabs {
|
|
25859
|
+
/** Whether the side panel is showing. */
|
|
25860
|
+
open: boolean;
|
|
25861
|
+
/** The selected tab's key, or null when none is selected. */
|
|
25862
|
+
selectedKey: string | null;
|
|
25863
|
+
tabs: readonly ExperimentalPanelTab[];
|
|
25864
|
+
}
|
|
25865
|
+
/** Props of `experimental_PanelTabIcon`. */
|
|
25866
|
+
interface ExperimentalPanelTabIconProps {
|
|
25867
|
+
/** An {@link ExperimentalPanelTab.key}; renders nothing for a closed tab. */
|
|
25868
|
+
tabKey: string;
|
|
25869
|
+
}
|
|
25537
25870
|
/** Current app selection, derived from the route. */
|
|
25538
25871
|
interface BbContext {
|
|
25539
25872
|
projectId: string | null;
|
|
@@ -25668,10 +26001,10 @@ interface ExperimentalRpcMutationOptions<Contract extends PluginRpcContract, Met
|
|
|
25668
26001
|
optimistic?(input: StandardSchemaV1InferInput<Contract[Method]["input"]>, cache: ExperimentalRpcOptimisticCache<Contract>): void;
|
|
25669
26002
|
}
|
|
25670
26003
|
/**
|
|
25671
|
-
* One mutation hook's state. `mutate` calls the RPC
|
|
25672
|
-
*
|
|
25673
|
-
*
|
|
25674
|
-
* until the next `mutate` or `reset`.
|
|
26004
|
+
* One mutation hook's state. `mutate` calls the RPC and resolves when the
|
|
26005
|
+
* server acknowledges the write. Reads refresh in the background when the
|
|
26006
|
+
* server marks their tags stale with `bb.rpc.experimental_invalidate`.
|
|
26007
|
+
* `error` holds the last failure until the next `mutate` or `reset`.
|
|
25675
26008
|
*/
|
|
25676
26009
|
interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
25677
26010
|
/** Resolves at write acknowledgement; rejects with experimental_PluginRpcCallError. Refreshes continue in the background without releasing predictions before confirmed reads. */
|
|
@@ -25682,6 +26015,30 @@ interface ExperimentalRpcMutationState<Method extends PluginRpcMethodContract> {
|
|
|
25682
26015
|
error: experimental_PluginRpcCallError | null;
|
|
25683
26016
|
reset(): void;
|
|
25684
26017
|
}
|
|
26018
|
+
/**
|
|
26019
|
+
* A bb server this client can switch to (see
|
|
26020
|
+
* {@link PluginSdkApp.experimental_useServers}).
|
|
26021
|
+
*/
|
|
26022
|
+
interface ExperimentalServer {
|
|
26023
|
+
/** Stable while the user keeps the server. Editing a custom server's URL gives it a new id. */
|
|
26024
|
+
id: string;
|
|
26025
|
+
name: string;
|
|
26026
|
+
/** Scheme, host and port only, never login details or a path. */
|
|
26027
|
+
origin: string;
|
|
26028
|
+
/** `local` is bb Desktop's built-in server, `account` comes from the user's bb account, and `custom` is an address the user added. */
|
|
26029
|
+
kind: "account" | "custom" | "local";
|
|
26030
|
+
/** True for the server this page is loaded from. */
|
|
26031
|
+
active: boolean;
|
|
26032
|
+
}
|
|
26033
|
+
/** The viewing client's servers (see {@link PluginSdkApp.experimental_useServers}). */
|
|
26034
|
+
interface ExperimentalServers {
|
|
26035
|
+
/** `loading` until bb Desktop answers, briefly after the page loads. The mobile app's list is ready at once. */
|
|
26036
|
+
status: "loading" | "ready";
|
|
26037
|
+
/** In the client's own order; empty while loading. Changes as the user adds, renames or removes servers. */
|
|
26038
|
+
servers: readonly ExperimentalServer[];
|
|
26039
|
+
/** Switch this client to the server and reload the page on it, unloading every plugin. Ignores the active server and unknown ids. */
|
|
26040
|
+
switchTo(id: string): void;
|
|
26041
|
+
}
|
|
25685
26042
|
/**
|
|
25686
26043
|
* Everything `@get-bb/plugin-sdk/app` resolves to at runtime. The BB app builds
|
|
25687
26044
|
* the real implementation and `satisfies` this interface; `bb plugin build`
|
|
@@ -25738,6 +26095,15 @@ interface PluginSdkApp {
|
|
|
25738
26095
|
* docs/api_to_audit.md.
|
|
25739
26096
|
*/
|
|
25740
26097
|
experimental_useExperiment(key: string): boolean;
|
|
26098
|
+
/**
|
|
26099
|
+
* How the thread pane the calling component renders in shows its thread
|
|
26100
|
+
* context (see {@link ExperimentalThreadContextKind}); `banner` outside a
|
|
26101
|
+
* thread pane. A context segment whose content is also a thread context card
|
|
26102
|
+
* row or section hides itself in `useVisible` while this is `card`; other
|
|
26103
|
+
* segments keep showing above the composer.
|
|
26104
|
+
* Experimental: see docs/api_to_audit.md.
|
|
26105
|
+
*/
|
|
26106
|
+
experimental_useThreadContextKind(): ExperimentalThreadContextKind;
|
|
25741
26107
|
useBbContext(): BbContext;
|
|
25742
26108
|
/**
|
|
25743
26109
|
* The id of the plugin that owns the calling component: the same id
|
|
@@ -25773,11 +26139,24 @@ interface PluginSdkApp {
|
|
|
25773
26139
|
* tabs. Experimental: see docs/api_to_audit.md.
|
|
25774
26140
|
*/
|
|
25775
26141
|
experimental_useTabVisible(): boolean;
|
|
26142
|
+
/**
|
|
26143
|
+
* The servers this client can switch between, the list bb's command palette
|
|
26144
|
+
* offers. Null when the client keeps no server list: any web browser.
|
|
26145
|
+
*/
|
|
26146
|
+
experimental_useServers(): ExperimentalServers | null;
|
|
25776
26147
|
/**
|
|
25777
26148
|
* The side panel of the surface the calling component renders in: the
|
|
25778
26149
|
* thread view, the plugin page, or the New thread screen.
|
|
25779
26150
|
*/
|
|
25780
26151
|
experimental_useAppPanel(): ExperimentalPanelController;
|
|
26152
|
+
/**
|
|
26153
|
+
* The tabs open in the side panel of the surface the calling component
|
|
26154
|
+
* renders in, following live changes: the same list bb's tab strip shows.
|
|
26155
|
+
* Closed and empty on a surface without a side panel. Act on a tab with
|
|
26156
|
+
* `experimental_useAppPanel().selectTab` or `closeTab`. Experimental: see
|
|
26157
|
+
* docs/api_to_audit.md.
|
|
26158
|
+
*/
|
|
26159
|
+
experimental_usePanelTabs(): ExperimentalPanelTabs;
|
|
25781
26160
|
/** Read or clear the owning tab's validated, session-scoped target. */
|
|
25782
26161
|
experimental_useFixedTabTarget<Target extends JsonValue>(tab: ExperimentalTabTargetReference<Target> | ExperimentalPluginFixedTabReference<Target>): ExperimentalFixedTabTargetState<Target> | null;
|
|
25783
26162
|
useComposer(): PluginComposerApi;
|
|
@@ -26146,6 +26525,19 @@ interface PluginSdkApp {
|
|
|
26146
26525
|
* Experimental: see docs/api_to_audit.md.
|
|
26147
26526
|
*/
|
|
26148
26527
|
experimental_DetailRow: ComponentType<ExperimentalDetailRowProps>;
|
|
26528
|
+
/**
|
|
26529
|
+
* The thread context card's row (see
|
|
26530
|
+
* {@link ExperimentalThreadContextCardRowProps}), the one bb's own entries
|
|
26531
|
+
* use.
|
|
26532
|
+
* Experimental: see docs/api_to_audit.md.
|
|
26533
|
+
*/
|
|
26534
|
+
experimental_ThreadContextCardRow: ComponentType<ExperimentalThreadContextCardRowProps>;
|
|
26535
|
+
/**
|
|
26536
|
+
* The icon bb's tab strip draws for an open side panel tab (see
|
|
26537
|
+
* {@link ExperimentalPanelTabIconProps}). Experimental: see
|
|
26538
|
+
* docs/api_to_audit.md.
|
|
26539
|
+
*/
|
|
26540
|
+
experimental_PanelTabIcon: ComponentType<ExperimentalPanelTabIconProps>;
|
|
26149
26541
|
/**
|
|
26150
26542
|
* The thread Info tab's list (see {@link ExperimentalInfoListProps}), the
|
|
26151
26543
|
* one bb's own sections use. Experimental: see docs/api_to_audit.md.
|
|
@@ -26485,4 +26877,4 @@ declare const experimental_THREAD_INFO_SECTION_GROUPS: {
|
|
|
26485
26877
|
};
|
|
26486
26878
|
|
|
26487
26879
|
export { PLUGIN_CLI_OUTPUT_MAX_BYTES, PluginCliError, cliCommand, defineCli, defineRpcContract, experimental_PluginRpcCallError, experimental_PluginRpcRefusal, experimental_THREAD_ACTION_GROUPS, experimental_THREAD_CONTEXT_SEGMENT_GROUPS, experimental_THREAD_INFO_ROW_GROUPS, experimental_THREAD_INFO_SECTION_GROUPS, experimental_defineHostEntry };
|
|
26488
|
-
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalIconProps, ExperimentalIconRegistration, ExperimentalImageLightboxProps, ExperimentalInfoListProps, ExperimentalInfoListRowProps, ExperimentalInfoSectionProps, ExperimentalLiveFileTarget, ExperimentalMessageClipboardPayload, ExperimentalOpenTabOptions, ExperimentalPageBreadcrumb, ExperimentalPageTitle, ExperimentalPanelController, ExperimentalPermissionModePickerProps, ExperimentalPluginBrowserPage, ExperimentalPluginBrowserPageEvaluateOptions, ExperimentalPluginBrowserPageWorld, ExperimentalPluginBrowserToolbarActionProps, ExperimentalPluginBrowserToolbarActionRegistration, ExperimentalPluginFixedTabReference, ExperimentalPluginIconProps, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|
|
26880
|
+
export type { BbContext, BbNavigate, BbPluginApi, 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, ExperimentalDesktopBrowserAcquireInput, ExperimentalDesktopBrowserCreateInput, ExperimentalDesktopBrowserLease, ExperimentalDesktopBrowserScope, ExperimentalDesktopBrowsersArea, ExperimentalDetailRowProps, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalDroppedThreadMention, ExperimentalFailedVoiceRecording, ExperimentalFailedVoiceRecordingsProps, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, 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, ExperimentalPluginMentionImage, ExperimentalPluginProviderEnvContext, ExperimentalPluginProviderEnvEntry, ExperimentalPluginProviderEnvHealth, ExperimentalPluginProviderEnvHealthContext, ExperimentalPluginRpcCaller, ExperimentalPluginRpcHandlerContext, ExperimentalPluginRpcHandlersWithContext, ExperimentalPluginWebSocket, ExperimentalPluginWebSocketContext, ExperimentalPluginWebSocketHandler, ExperimentalPluginWebSocketHandlers, 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, InternalDoNotUsePluginHostNextTunnelStatus, InternalDoNotUsePluginNextTunnelConfig, InternalDoNotUsePluginNextTunnelServer, InternalDoNotUsePluginTunnelIngress, InternalDoNotUsePluginTunnelIngressOptions, JsonValue, MachineBootstrapApi, MachineBootstrapRequest, MachineExecutor, MachineExecutorRequest, MarkdownProps, MessageDispatchHookContext, MessageDispatchHookDecision, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAiCompleteOptions, PluginAiServiceDeclaration, PluginAiServiceStatus, PluginAiServices, PluginAiTranscribeOptions, PluginAppBuilder, PluginAppCommands, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginBbSdk, PluginBoundThreadAction, PluginBoundThreadsArea, PluginBrowserBbSdk, PluginCli, PluginCliBooleanOption, PluginCliCommand, PluginCliCommandInfo, PluginCliConstraint, PluginCliContext, PluginCliDurationOption, PluginCliDurationUnit, PluginCliEnumOption, PluginCliErrorCode, PluginCliExecutionResult, PluginCliIntegerOption, PluginCliOption, PluginCliOptionValues, PluginCliOutputLimitError, PluginCliPositional, PluginCliPositionalValues, PluginCliRegistration, PluginCliResult, PluginCliRunInput, PluginCliSpec, PluginCliStringOption, PluginCodeThemeData, PluginCodeThemeState, PluginCodeThemeTokenRule, PluginCommandContext, PluginCommandRegistration, PluginCommandShortcut, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginDispatchAttemptKind, PluginDispatchEnvironmentIntent, PluginDispatchExecution, PluginDispatchExecutionSources, PluginDispatchInput, PluginEnvironmentProvider, PluginEnvironmentProviderDeclaration, PluginEnvironmentProviderInputsChange, PluginEnvironmentProviderInputsProps, PluginEnvironmentProviderInputsRegistration, PluginEnvironmentProviderRequirements, PluginEnvironmentProvidersState, PluginEnvironmentValidateDecision, PluginEnvironments, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHookHandler, PluginHookName, PluginHookSignatures, PluginHooks, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionDescription, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMachineProviderDeclaration, PluginMachineProviderInputsChange, PluginMachineProviderInputsProps, PluginMachineProviderInputsRegistration, PluginMachineValidateDecision, PluginMachines, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderCompletedTurnDisplay, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderMaintenance, PluginProviderModelCatalogScope, PluginProviderNativeRootEntry, PluginProviderNativeRoots, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRowLabels, PluginRowPresentation, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerAccess, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarSection, PluginSidebarSplitLayout, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActivity, PluginSidebarThreadDraftState, PluginSidebarThreadIndicator, PluginSidebarThreadRowStatus, PluginSidebarThreadShortcut, PluginSidebarThreadSplit, PluginSidebarThreadSplitOptions, PluginSidebarThreadsState, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginThreadAction, PluginThreadActionBulkItemInput, PluginThreadActionChoice, PluginThreadActionChoices, PluginThreadActionDataInput, PluginThreadActionEntry, PluginThreadActionItemInput, PluginThreadActionPlacement, PluginThreadActionRegistration, PluginThreadActionRegistrationInfo, PluginThreadActionRunInput, PluginThreadActionTarget, PluginThreadActionsContextMenuProps, PluginThreadActionsInlineItem, PluginThreadActionsMenuProps, PluginThreadActionsOptions, PluginThreadActionsTriggerProps, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadListProps, PluginThreadListRegistration, PluginThreadStatusGlyphProps, PluginThreadTitleProps, PluginTimelineRendererProps, PluginTimelineRendererRegistration, PluginTimelineRendererRow, PluginTimelineRowPresentation, PluginTimelineRowStatus, PluginTurnFailedEvent, PluginUi, ReadonlyJsonValue, ServerAccessGrant, ServerAccessProviderDeclaration, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps, UrlLinkProps, UseBranchesArgs, UseCheckoutStateArgs };
|