@get-bb/plugin-sdk 0.6.104 → 0.6.109
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 +76 -3
- package/bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts +1 -0
- package/bundled-types/bb-plugin-sdk.d.ts +86 -3
- package/dist/internal/rpc-query-host.js +4 -0
- package/dist/provider-bridge-acp-next.js +2712 -2707
- package/dist/provider-bridge-acp.js +2712 -2707
- package/dist/provider-bridge-testing.js +1294 -1289
- package/dist/provider-bridge.js +1366 -1361
- package/dist/testing/app.js +4 -0
- package/dist/testing/index.js +4 -0
- package/package.json +1 -1
|
@@ -608,7 +608,6 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
608
608
|
|
|
609
609
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
610
610
|
applicationLinks: "applicationLinks";
|
|
611
|
-
changelogPreview: "changelogPreview";
|
|
612
611
|
compactExpiredCache: "compactExpiredCache";
|
|
613
612
|
performanceDiagnostics: "performanceDiagnostics";
|
|
614
613
|
pluginUpdates: "pluginUpdates";
|
|
@@ -624,7 +623,6 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
624
623
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
625
624
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
626
625
|
applicationLinks: "applicationLinks";
|
|
627
|
-
changelogPreview: "changelogPreview";
|
|
628
626
|
compactExpiredCache: "compactExpiredCache";
|
|
629
627
|
performanceDiagnostics: "performanceDiagnostics";
|
|
630
628
|
pluginUpdates: "pluginUpdates";
|
|
@@ -3141,6 +3139,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3141
3139
|
"agent-only": "agent-only";
|
|
3142
3140
|
}>>;
|
|
3143
3141
|
}, z$1.core.$strip>], "type">>>>;
|
|
3142
|
+
originPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
3144
3143
|
request: z$1.ZodObject<{
|
|
3145
3144
|
method: z$1.ZodEnum<{
|
|
3146
3145
|
"thread/start": "thread/start";
|
|
@@ -10041,6 +10040,56 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
10041
10040
|
}, z$1.core.$strip>], "ok">;
|
|
10042
10041
|
type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
|
|
10043
10042
|
declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10043
|
+
name: z$1.ZodLiteral<"recommendation">;
|
|
10044
|
+
properties: z$1.ZodObject<{
|
|
10045
|
+
action: z$1.ZodEnum<{
|
|
10046
|
+
selected: "selected";
|
|
10047
|
+
shown: "shown";
|
|
10048
|
+
}>;
|
|
10049
|
+
entry: z$1.ZodEnum<{
|
|
10050
|
+
first_run: "first_run";
|
|
10051
|
+
replay: "replay";
|
|
10052
|
+
}>;
|
|
10053
|
+
recommendation_id: z$1.ZodString;
|
|
10054
|
+
resource_id: z$1.ZodString;
|
|
10055
|
+
resource_type: z$1.ZodEnum<{
|
|
10056
|
+
plugin: "plugin";
|
|
10057
|
+
}>;
|
|
10058
|
+
surface: z$1.ZodEnum<{
|
|
10059
|
+
onboarding: "onboarding";
|
|
10060
|
+
}>;
|
|
10061
|
+
}, z$1.core.$strict>;
|
|
10062
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10063
|
+
name: z$1.ZodLiteral<"onboarding_operation">;
|
|
10064
|
+
properties: z$1.ZodObject<{
|
|
10065
|
+
entry: z$1.ZodEnum<{
|
|
10066
|
+
first_run: "first_run";
|
|
10067
|
+
replay: "replay";
|
|
10068
|
+
}>;
|
|
10069
|
+
item_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10070
|
+
operation: z$1.ZodEnum<{
|
|
10071
|
+
add_machine: "add_machine";
|
|
10072
|
+
import: "import";
|
|
10073
|
+
install: "install";
|
|
10074
|
+
remote_access: "remote_access";
|
|
10075
|
+
scan: "scan";
|
|
10076
|
+
update: "update";
|
|
10077
|
+
}>;
|
|
10078
|
+
outcome: z$1.ZodEnum<{
|
|
10079
|
+
failed: "failed";
|
|
10080
|
+
started: "started";
|
|
10081
|
+
succeeded: "succeeded";
|
|
10082
|
+
}>;
|
|
10083
|
+
resource_id: z$1.ZodOptional<z$1.ZodString>;
|
|
10084
|
+
step: z$1.ZodEnum<{
|
|
10085
|
+
agent: "agent";
|
|
10086
|
+
devices: "devices";
|
|
10087
|
+
plugins: "plugins";
|
|
10088
|
+
projects: "projects";
|
|
10089
|
+
}>;
|
|
10090
|
+
succeeded_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10091
|
+
}, z$1.core.$strict>;
|
|
10092
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10044
10093
|
name: z$1.ZodLiteral<"onboarding_agent_state">;
|
|
10045
10094
|
properties: z$1.ZodObject<{
|
|
10046
10095
|
agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
@@ -10065,6 +10114,19 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10065
10114
|
started: "started";
|
|
10066
10115
|
}>;
|
|
10067
10116
|
}, z$1.core.$strict>;
|
|
10117
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10118
|
+
name: z$1.ZodLiteral<"new_thread_blocker">;
|
|
10119
|
+
properties: z$1.ZodObject<{
|
|
10120
|
+
reason: z$1.ZodEnum<{
|
|
10121
|
+
agent_missing: "agent_missing";
|
|
10122
|
+
agent_update: "agent_update";
|
|
10123
|
+
model_selection: "model_selection";
|
|
10124
|
+
model_unavailable: "model_unavailable";
|
|
10125
|
+
project_setup: "project_setup";
|
|
10126
|
+
provider_selection: "provider_selection";
|
|
10127
|
+
sign_in: "sign_in";
|
|
10128
|
+
}>;
|
|
10129
|
+
}, z$1.core.$strict>;
|
|
10068
10130
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10069
10131
|
name: z$1.ZodLiteral<"new_thread_submit">;
|
|
10070
10132
|
properties: z$1.ZodObject<{
|
|
@@ -10140,6 +10202,18 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10140
10202
|
skipped: "skipped";
|
|
10141
10203
|
}>;
|
|
10142
10204
|
}, z$1.core.$strict>;
|
|
10205
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10206
|
+
name: z$1.ZodLiteral<"release_notes_opened">;
|
|
10207
|
+
properties: z$1.ZodObject<{
|
|
10208
|
+
release_version: z$1.ZodString;
|
|
10209
|
+
view: z$1.ZodEnum<{
|
|
10210
|
+
inline: "inline";
|
|
10211
|
+
web: "web";
|
|
10212
|
+
}>;
|
|
10213
|
+
}, z$1.core.$strict>;
|
|
10214
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10215
|
+
name: z$1.ZodLiteral<"plugin_creation_started">;
|
|
10216
|
+
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10143
10217
|
}, z$1.core.$strict>], "name">;
|
|
10144
10218
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10145
10219
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
@@ -10300,7 +10374,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10300
10374
|
}, z$1.core.$strict>>;
|
|
10301
10375
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10302
10376
|
applicationLinks: "applicationLinks";
|
|
10303
|
-
changelogPreview: "changelogPreview";
|
|
10304
10377
|
compactExpiredCache: "compactExpiredCache";
|
|
10305
10378
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10306
10379
|
pluginUpdates: "pluginUpdates";
|
|
@@ -3595,6 +3595,7 @@ declare const threadEventSchema: z.ZodUnion<readonly [z.ZodIntersection<z.ZodDis
|
|
|
3595
3595
|
"agent-only": "agent-only";
|
|
3596
3596
|
}>>;
|
|
3597
3597
|
}, z.core.$strip>], "type">>>>;
|
|
3598
|
+
originPluginId: z.ZodOptional<z.ZodString>;
|
|
3598
3599
|
request: z.ZodObject<{
|
|
3599
3600
|
method: z.ZodEnum<{
|
|
3600
3601
|
"thread/start": "thread/start";
|
|
@@ -699,7 +699,6 @@ type Environment = z$1.infer<typeof environmentSchema>;
|
|
|
699
699
|
|
|
700
700
|
declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
701
701
|
applicationLinks: "applicationLinks";
|
|
702
|
-
changelogPreview: "changelogPreview";
|
|
703
702
|
compactExpiredCache: "compactExpiredCache";
|
|
704
703
|
performanceDiagnostics: "performanceDiagnostics";
|
|
705
704
|
pluginUpdates: "pluginUpdates";
|
|
@@ -715,7 +714,6 @@ declare const experimentsSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
|
715
714
|
type Experiments = z$1.infer<typeof experimentsSchema>;
|
|
716
715
|
declare const experimentUpdatesSchema: z$1.ZodRecord<z$1.ZodEnum<{
|
|
717
716
|
applicationLinks: "applicationLinks";
|
|
718
|
-
changelogPreview: "changelogPreview";
|
|
719
717
|
compactExpiredCache: "compactExpiredCache";
|
|
720
718
|
performanceDiagnostics: "performanceDiagnostics";
|
|
721
719
|
pluginUpdates: "pluginUpdates";
|
|
@@ -3293,6 +3291,7 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
|
|
|
3293
3291
|
"agent-only": "agent-only";
|
|
3294
3292
|
}>>;
|
|
3295
3293
|
}, z$1.core.$strip>], "type">>>>;
|
|
3294
|
+
originPluginId: z$1.ZodOptional<z$1.ZodString>;
|
|
3296
3295
|
request: z$1.ZodObject<{
|
|
3297
3296
|
method: z$1.ZodEnum<{
|
|
3298
3297
|
"thread/start": "thread/start";
|
|
@@ -10236,6 +10235,56 @@ declare const testAiServiceResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObj
|
|
|
10236
10235
|
}, z$1.core.$strip>], "ok">;
|
|
10237
10236
|
type TestAiServiceResponse = z$1.infer<typeof testAiServiceResponseSchema>;
|
|
10238
10237
|
declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
10238
|
+
name: z$1.ZodLiteral<"recommendation">;
|
|
10239
|
+
properties: z$1.ZodObject<{
|
|
10240
|
+
action: z$1.ZodEnum<{
|
|
10241
|
+
selected: "selected";
|
|
10242
|
+
shown: "shown";
|
|
10243
|
+
}>;
|
|
10244
|
+
entry: z$1.ZodEnum<{
|
|
10245
|
+
first_run: "first_run";
|
|
10246
|
+
replay: "replay";
|
|
10247
|
+
}>;
|
|
10248
|
+
recommendation_id: z$1.ZodString;
|
|
10249
|
+
resource_id: z$1.ZodString;
|
|
10250
|
+
resource_type: z$1.ZodEnum<{
|
|
10251
|
+
plugin: "plugin";
|
|
10252
|
+
}>;
|
|
10253
|
+
surface: z$1.ZodEnum<{
|
|
10254
|
+
onboarding: "onboarding";
|
|
10255
|
+
}>;
|
|
10256
|
+
}, z$1.core.$strict>;
|
|
10257
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10258
|
+
name: z$1.ZodLiteral<"onboarding_operation">;
|
|
10259
|
+
properties: z$1.ZodObject<{
|
|
10260
|
+
entry: z$1.ZodEnum<{
|
|
10261
|
+
first_run: "first_run";
|
|
10262
|
+
replay: "replay";
|
|
10263
|
+
}>;
|
|
10264
|
+
item_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10265
|
+
operation: z$1.ZodEnum<{
|
|
10266
|
+
add_machine: "add_machine";
|
|
10267
|
+
import: "import";
|
|
10268
|
+
install: "install";
|
|
10269
|
+
remote_access: "remote_access";
|
|
10270
|
+
scan: "scan";
|
|
10271
|
+
update: "update";
|
|
10272
|
+
}>;
|
|
10273
|
+
outcome: z$1.ZodEnum<{
|
|
10274
|
+
failed: "failed";
|
|
10275
|
+
started: "started";
|
|
10276
|
+
succeeded: "succeeded";
|
|
10277
|
+
}>;
|
|
10278
|
+
resource_id: z$1.ZodOptional<z$1.ZodString>;
|
|
10279
|
+
step: z$1.ZodEnum<{
|
|
10280
|
+
agent: "agent";
|
|
10281
|
+
devices: "devices";
|
|
10282
|
+
plugins: "plugins";
|
|
10283
|
+
projects: "projects";
|
|
10284
|
+
}>;
|
|
10285
|
+
succeeded_count: z$1.ZodOptional<z$1.ZodNumber>;
|
|
10286
|
+
}, z$1.core.$strict>;
|
|
10287
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10239
10288
|
name: z$1.ZodLiteral<"onboarding_agent_state">;
|
|
10240
10289
|
properties: z$1.ZodObject<{
|
|
10241
10290
|
agent_installed: z$1.ZodNullable<z$1.ZodBoolean>;
|
|
@@ -10260,6 +10309,19 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10260
10309
|
started: "started";
|
|
10261
10310
|
}>;
|
|
10262
10311
|
}, z$1.core.$strict>;
|
|
10312
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10313
|
+
name: z$1.ZodLiteral<"new_thread_blocker">;
|
|
10314
|
+
properties: z$1.ZodObject<{
|
|
10315
|
+
reason: z$1.ZodEnum<{
|
|
10316
|
+
agent_missing: "agent_missing";
|
|
10317
|
+
agent_update: "agent_update";
|
|
10318
|
+
model_selection: "model_selection";
|
|
10319
|
+
model_unavailable: "model_unavailable";
|
|
10320
|
+
project_setup: "project_setup";
|
|
10321
|
+
provider_selection: "provider_selection";
|
|
10322
|
+
sign_in: "sign_in";
|
|
10323
|
+
}>;
|
|
10324
|
+
}, z$1.core.$strict>;
|
|
10263
10325
|
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10264
10326
|
name: z$1.ZodLiteral<"new_thread_submit">;
|
|
10265
10327
|
properties: z$1.ZodObject<{
|
|
@@ -10335,6 +10397,18 @@ declare const recordTelemetryEventRequestSchema: z$1.ZodDiscriminatedUnion<[z$1.
|
|
|
10335
10397
|
skipped: "skipped";
|
|
10336
10398
|
}>;
|
|
10337
10399
|
}, z$1.core.$strict>;
|
|
10400
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10401
|
+
name: z$1.ZodLiteral<"release_notes_opened">;
|
|
10402
|
+
properties: z$1.ZodObject<{
|
|
10403
|
+
release_version: z$1.ZodString;
|
|
10404
|
+
view: z$1.ZodEnum<{
|
|
10405
|
+
inline: "inline";
|
|
10406
|
+
web: "web";
|
|
10407
|
+
}>;
|
|
10408
|
+
}, z$1.core.$strict>;
|
|
10409
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
10410
|
+
name: z$1.ZodLiteral<"plugin_creation_started">;
|
|
10411
|
+
properties: z$1.ZodObject<{}, z$1.core.$strict>;
|
|
10338
10412
|
}, z$1.core.$strict>], "name">;
|
|
10339
10413
|
type RecordTelemetryEventRequest = z$1.infer<typeof recordTelemetryEventRequestSchema>;
|
|
10340
10414
|
declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
@@ -10495,7 +10569,6 @@ declare const systemConfigResponseSchema: z$1.ZodObject<{
|
|
|
10495
10569
|
}, z$1.core.$strict>>;
|
|
10496
10570
|
experiments: z$1.ZodRecord<z$1.ZodEnum<{
|
|
10497
10571
|
applicationLinks: "applicationLinks";
|
|
10498
|
-
changelogPreview: "changelogPreview";
|
|
10499
10572
|
compactExpiredCache: "compactExpiredCache";
|
|
10500
10573
|
performanceDiagnostics: "performanceDiagnostics";
|
|
10501
10574
|
pluginUpdates: "pluginUpdates";
|
|
@@ -19484,6 +19557,14 @@ interface PluginTurnFailedEvent {
|
|
|
19484
19557
|
* A policy caps its own retries by comparing against this.
|
|
19485
19558
|
*/
|
|
19486
19559
|
attemptNumber: number;
|
|
19560
|
+
/**
|
|
19561
|
+
* The plugin that sent the failed turn's message through
|
|
19562
|
+
* `bb.sdk.threads.send` or `bb.sdk.threads.spawn`, or null when a user, an
|
|
19563
|
+
* agent, or core sent it. A retry is sent by core, so a retry's failure
|
|
19564
|
+
* reports null. A retry policy uses this to ask the sender whether it
|
|
19565
|
+
* wants the turn re-run.
|
|
19566
|
+
*/
|
|
19567
|
+
originPluginId: string | null;
|
|
19487
19568
|
}
|
|
19488
19569
|
/**
|
|
19489
19570
|
* Lifecycle events a plugin can observe with `bb.events.on` (design §4.5).
|
|
@@ -21230,6 +21311,8 @@ type PluginBbSdk = Omit<BbSdk, "threads"> & {
|
|
|
21230
21311
|
* against.
|
|
21231
21312
|
*/
|
|
21232
21313
|
interface BbPluginApi {
|
|
21314
|
+
/** Internal: counts one meaningful use of a first-party plugin's UI. */
|
|
21315
|
+
internal_DO_NOT_USE_recordPluginUse(): void;
|
|
21233
21316
|
/** The plugin's own id (namespaces storage, routes, commands). */
|
|
21234
21317
|
readonly pluginId: string;
|
|
21235
21318
|
/** Leveled, plugin-scoped logger. */
|
|
@@ -1828,6 +1828,10 @@ var queuedMessageStateValues = [
|
|
|
1828
1828
|
"claimed"
|
|
1829
1829
|
];
|
|
1830
1830
|
var queuedMessageStateSchema = z10.enum(queuedMessageStateValues);
|
|
1831
|
+
var queuedMessageDeliveryModeValues = ["steer", "queue"];
|
|
1832
|
+
var queuedMessageDeliveryModeSchema = z10.enum(
|
|
1833
|
+
queuedMessageDeliveryModeValues
|
|
1834
|
+
);
|
|
1831
1835
|
|
|
1832
1836
|
// ../domain/src/thread-status.ts
|
|
1833
1837
|
import { z as z11 } from "zod";
|