@get-bb/plugin-sdk 0.6.116 → 0.6.121

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.
@@ -2022,14 +2022,14 @@ var ENVIRONMENT_CHANGE_KINDS = [
2022
2022
  "status-changed",
2023
2023
  "work-status-changed",
2024
2024
  "git-refs-changed",
2025
- "thread-storage-changed",
2026
- "diff-viewed-changed"
2025
+ "thread-storage-changed"
2027
2026
  ];
2028
2027
  var HOST_CHANGE_KINDS = [
2029
2028
  "host-connected",
2030
2029
  "host-disconnected",
2031
2030
  "provider-model-catalog-changed",
2032
- "provider-commands-changed"
2031
+ "provider-commands-changed",
2032
+ "provider-cli-status-changed"
2033
2033
  ];
2034
2034
  var SYSTEM_CHANGE_KINDS = [
2035
2035
  "config-changed",
@@ -2423,6 +2423,7 @@ var threadEventItemSchema = z18.discriminatedUnion("type", [
2423
2423
  id: z18.string(),
2424
2424
  command: z18.string(),
2425
2425
  cwd: z18.string(),
2426
+ description: z18.string().optional(),
2426
2427
  status: threadEventItemStatusSchema,
2427
2428
  approvalStatus: threadEventItemApprovalStatusSchema,
2428
2429
  aggregatedOutput: z18.string().optional(),
@@ -3506,6 +3507,7 @@ var deltaItemShapeSchema = z31.discriminatedUnion("type", [
3506
3507
  type: z31.literal("command"),
3507
3508
  command: z31.string(),
3508
3509
  cwd: z31.string(),
3510
+ description: z31.string().optional(),
3509
3511
  aggregatedOutput: z31.string().optional(),
3510
3512
  exitCode: z31.number().optional(),
3511
3513
  durationMs: z31.number().optional()
@@ -2423,6 +2423,7 @@ var threadEventItemSchema = z18.discriminatedUnion("type", [
2423
2423
  id: z18.string(),
2424
2424
  command: z18.string(),
2425
2425
  cwd: z18.string(),
2426
+ description: z18.string().optional(),
2426
2427
  status: threadEventItemStatusSchema,
2427
2428
  approvalStatus: threadEventItemApprovalStatusSchema,
2428
2429
  aggregatedOutput: z18.string().optional(),
@@ -3506,6 +3507,7 @@ var deltaItemShapeSchema = z31.discriminatedUnion("type", [
3506
3507
  type: z31.literal("command"),
3507
3508
  command: z31.string(),
3508
3509
  cwd: z31.string(),
3510
+ description: z31.string().optional(),
3509
3511
  aggregatedOutput: z31.string().optional(),
3510
3512
  exitCode: z31.number().optional(),
3511
3513
  durationMs: z31.number().optional()
@@ -1513,6 +1513,7 @@ var threadEventItemSchema = z16.discriminatedUnion("type", [
1513
1513
  id: z16.string(),
1514
1514
  command: z16.string(),
1515
1515
  cwd: z16.string(),
1516
+ description: z16.string().optional(),
1516
1517
  status: threadEventItemStatusSchema,
1517
1518
  approvalStatus: threadEventItemApprovalStatusSchema,
1518
1519
  aggregatedOutput: z16.string().optional(),
@@ -2141,6 +2142,7 @@ var deltaItemShapeSchema = z20.discriminatedUnion("type", [
2141
2142
  type: z20.literal("command"),
2142
2143
  command: z20.string(),
2143
2144
  cwd: z20.string(),
2145
+ description: z20.string().optional(),
2144
2146
  aggregatedOutput: z20.string().optional(),
2145
2147
  exitCode: z20.number().optional(),
2146
2148
  durationMs: z20.number().optional()
@@ -3046,6 +3048,7 @@ function createDeltaAssembler(options) {
3046
3048
  id: bbItemId,
3047
3049
  command: shape.command,
3048
3050
  cwd: shape.cwd,
3051
+ ...shape.description === void 0 ? {} : { description: shape.description },
3049
3052
  ...shape.aggregatedOutput === void 0 ? {} : { aggregatedOutput: shape.aggregatedOutput },
3050
3053
  ...shape.exitCode === void 0 ? {} : { exitCode: shape.exitCode },
3051
3054
  ...shape.durationMs === void 0 ? {} : { durationMs: shape.durationMs },
@@ -3273,6 +3276,7 @@ function createDeltaAssembler(options) {
3273
3276
  id: bbItemId,
3274
3277
  command: shape.command,
3275
3278
  cwd: shape.cwd,
3279
+ ...shape.description === void 0 ? {} : { description: shape.description },
3276
3280
  ...aggregatedOutput === void 0 ? {} : { aggregatedOutput },
3277
3281
  ...exitCode === void 0 ? {} : { exitCode },
3278
3282
  ...shape.durationMs === void 0 ? {} : { durationMs: shape.durationMs },
@@ -2943,6 +2943,7 @@ var threadEventItemSchema = z20.discriminatedUnion("type", [
2943
2943
  id: z20.string(),
2944
2944
  command: z20.string(),
2945
2945
  cwd: z20.string(),
2946
+ description: z20.string().optional(),
2946
2947
  status: threadEventItemStatusSchema,
2947
2948
  approvalStatus: threadEventItemApprovalStatusSchema,
2948
2949
  aggregatedOutput: z20.string().optional(),
@@ -12425,6 +12426,7 @@ var deltaItemShapeSchema = z37.discriminatedUnion("type", [
12425
12426
  type: z37.literal("command"),
12426
12427
  command: z37.string(),
12427
12428
  cwd: z37.string(),
12429
+ description: z37.string().optional(),
12428
12430
  aggregatedOutput: z37.string().optional(),
12429
12431
  exitCode: z37.number().optional(),
12430
12432
  durationMs: z37.number().optional()
@@ -2025,14 +2025,14 @@ var ENVIRONMENT_CHANGE_KINDS = [
2025
2025
  "status-changed",
2026
2026
  "work-status-changed",
2027
2027
  "git-refs-changed",
2028
- "thread-storage-changed",
2029
- "diff-viewed-changed"
2028
+ "thread-storage-changed"
2030
2029
  ];
2031
2030
  var HOST_CHANGE_KINDS = [
2032
2031
  "host-connected",
2033
2032
  "host-disconnected",
2034
2033
  "provider-model-catalog-changed",
2035
- "provider-commands-changed"
2034
+ "provider-commands-changed",
2035
+ "provider-cli-status-changed"
2036
2036
  ];
2037
2037
  var SYSTEM_CHANGE_KINDS = [
2038
2038
  "config-changed",
@@ -3944,7 +3944,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
3944
3944
  homepageSections: [],
3945
3945
  settingsSections: [],
3946
3946
  appOverlays: [],
3947
- setupGuideSections: [],
3948
3947
  navPanels: [],
3949
3948
  tabs: [],
3950
3949
  get threadPanelActions() {
@@ -3989,7 +3988,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
3989
3988
  homepageSection: /* @__PURE__ */ new Set(),
3990
3989
  settingsSection: /* @__PURE__ */ new Set(),
3991
3990
  appOverlay: /* @__PURE__ */ new Set(),
3992
- setupGuideSection: /* @__PURE__ */ new Set(),
3993
3991
  navPanel: /* @__PURE__ */ new Set(),
3994
3992
  tab: /* @__PURE__ */ new Set(),
3995
3993
  newThreadPanelAction: /* @__PURE__ */ new Set(),
@@ -4192,15 +4190,6 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4192
4190
  component: requireComponent(kind, registration.component)
4193
4191
  });
4194
4192
  },
4195
- internal_DO_NOT_USE_setupGuideSection(registration) {
4196
- const kind = "slots.internal_DO_NOT_USE_setupGuideSection";
4197
- const id = requireSlotId(kind, registration?.id);
4198
- requireUniqueId(kind, seenIds.setupGuideSection, id);
4199
- collected.setupGuideSections.push({
4200
- id,
4201
- component: requireComponent(kind, registration.component)
4202
- });
4203
- },
4204
4193
  navPanel(registration) {
4205
4194
  const kind = "slots.navPanel";
4206
4195
  const id = requireSlotId(kind, registration?.id);
@@ -4489,9 +4478,9 @@ function collectPluginAppRegistrations(definition, onWarning = (message) => cons
4489
4478
  const id = requireSlotId(kind, registration?.id);
4490
4479
  requireUniqueId(kind, seenIds.fileOpener, id);
4491
4480
  const rawExtensions = registration?.extensions;
4492
- if (!Array.isArray(rawExtensions) || rawExtensions.length === 0) {
4481
+ if (!Array.isArray(rawExtensions)) {
4493
4482
  throw new Error(
4494
- `${kind}: "extensions" must be a non-empty array of lowercase extensions without the dot`
4483
+ `${kind}: "extensions" must be an array of lowercase extensions without the dot`
4495
4484
  );
4496
4485
  }
4497
4486
  const extensions = rawExtensions.map((extension) => {
@@ -5534,6 +5523,10 @@ function TestVoiceInputTextarea({
5534
5523
  }
5535
5524
  );
5536
5525
  }
5526
+ function TestFilePreview({ target, renderPreview }) {
5527
+ const file = useSlotEnv("experimental_FilePreview").filePreview(target);
5528
+ return /* @__PURE__ */ jsx("div", { "data-testid": "bb-file-preview", "data-path": target.path, children: file === null ? null : renderPreview(file) });
5529
+ }
5537
5530
  function TestSourceCode({
5538
5531
  content,
5539
5532
  path,
@@ -5829,6 +5822,7 @@ var testPluginSdkApp = {
5829
5822
  return useSlotEnv("experimental_useCheckoutState").checkoutState;
5830
5823
  },
5831
5824
  experimental_SourceCode: TestSourceCode,
5825
+ experimental_FilePreview: TestFilePreview,
5832
5826
  experimental_Diff: TestDiff,
5833
5827
  experimental_InfoSection: TestInfoSection,
5834
5828
  experimental_DetailRow: TestDetailRow,
@@ -6844,6 +6838,7 @@ ${block}
6844
6838
  providers,
6845
6839
  codeTheme,
6846
6840
  canOpenFileExternally: options.canOpenFileExternally ?? (() => false),
6841
+ filePreview: options.filePreview ?? (() => null),
6847
6842
  tabVisible: options.tabVisible ?? true,
6848
6843
  servers: options.servers ?? null,
6849
6844
  branchesState: {
@@ -3531,6 +3531,7 @@ function createFakePluginHostInternal(options, sharedState) {
3531
3531
  const threadEventHandlers = {
3532
3532
  "experimental_thread.events": [],
3533
3533
  "experimental_thread.parentChanged": [],
3534
+ "experimental_thread.read": [],
3534
3535
  "experimental_terminal.input": [],
3535
3536
  "experimental_host.deleted": [],
3536
3537
  "experimental_environment.removed": [],
@@ -4013,6 +4014,7 @@ function createFakePluginHostInternal(options, sharedState) {
4013
4014
  return {
4014
4015
  "experimental_thread.events": threadEventHandlers["experimental_thread.events"].length,
4015
4016
  "experimental_thread.parentChanged": threadEventHandlers["experimental_thread.parentChanged"].length,
4017
+ "experimental_thread.read": threadEventHandlers["experimental_thread.read"].length,
4016
4018
  "experimental_terminal.input": threadEventHandlers["experimental_terminal.input"].length,
4017
4019
  "experimental_environment.removed": threadEventHandlers["experimental_environment.removed"].length,
4018
4020
  "experimental_host.deleted": threadEventHandlers["experimental_host.deleted"].length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.6.116",
3
+ "version": "0.6.121",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"