@get-bb/plugin-sdk 0.4.11 → 0.4.12

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.
@@ -479,6 +479,18 @@ interface SourceCodeLineRange {
479
479
  start: number;
480
480
  end: number;
481
481
  }
482
+ /** One complete text side of a diff, resolved by the caller. */
483
+ interface ExperimentalDiffFileContent {
484
+ /** File path for this side. May differ between `old` and `new` for a rename. */
485
+ path: string;
486
+ /** Complete UTF-8 file contents, including unchanged lines outside the patch. */
487
+ content: string;
488
+ }
489
+ /** Complete text contents for both sides of a diff. */
490
+ interface ExperimentalDiffFullFileContents {
491
+ old: ExperimentalDiffFileContent;
492
+ new: ExperimentalDiffFileContent;
493
+ }
482
494
  /**
483
495
  * Props of the host-owned `experimental_SourceCode` component — BB's source
484
496
  * viewer. The host owns syntax highlighting, gutters, wrapping, line-selection
@@ -504,8 +516,9 @@ interface SourceCodeProps {
504
516
  * Props of the host-owned `experimental_Diff` component — BB's diff viewer.
505
517
  * The host owns patch normalization (a patch without a `diff --git` header is
506
518
  * completed from `path`), syntax highlighting, unified/split presentation,
507
- * gutters, line-selection presentation, and the live BB code theme. Content
508
- * that cannot be parsed as a patch degrades to plain monospace text.
519
+ * gutters, line-selection presentation, optional full-file context expansion,
520
+ * and the live BB code theme. Content that cannot be parsed as a patch
521
+ * degrades to plain monospace text.
509
522
  */
510
523
  interface DiffProps {
511
524
  /** Unified patch text for exactly ONE file. */
@@ -522,6 +535,12 @@ interface DiffProps {
522
535
  overflow?: CodeOverflowMode;
523
536
  /** Whether the gutter shows line numbers. Defaults to `true`. */
524
537
  showLineNumbers?: boolean;
538
+ /**
539
+ * Complete text for both file sides. When present and consistent with the
540
+ * patch, BB enables expand-context controls between hunks. The caller owns
541
+ * loading these contents; omit the field to render from the patch alone.
542
+ */
543
+ experimental_fullFileContents?: ExperimentalDiffFullFileContents;
525
544
  /** Applied to the renderer's root element. */
526
545
  className?: string;
527
546
  }
@@ -544,7 +563,8 @@ interface PluginSourceCodeRendererProps {
544
563
  }
545
564
  /**
546
565
  * Props passed to an `experimental_diffRenderer` component. `patch` is always
547
- * a complete single-file unified patch, whatever shape the caller supplied.
566
+ * a complete single-file unified patch, whatever shape the caller supplied,
567
+ * and optional full-file context is resolved to an object or `null`.
548
568
  */
549
569
  interface PluginDiffRendererProps {
550
570
  patch: string;
@@ -552,6 +572,14 @@ interface PluginDiffRendererProps {
552
572
  view: DiffViewMode;
553
573
  overflow: CodeOverflowMode;
554
574
  showLineNumbers: boolean;
575
+ /**
576
+ * Caller-resolved text for both sides, or `null` when the caller supplied
577
+ * only the patch. A replacement can use this to implement context expansion,
578
+ * but must verify that the paths and hunk lines agree with `patch` before
579
+ * treating the contents as complete. BB's original renderer performs that
580
+ * verification when it mounts.
581
+ */
582
+ experimental_fullFileContents: ExperimentalDiffFullFileContents | null;
555
583
  /**
556
584
  * BB's diff renderer, bound to this request. Render it to delegate
557
585
  * conditionally without re-entering plugin replacement resolution.
@@ -1970,8 +1998,9 @@ interface PluginSdkApp {
1970
1998
  experimental_SourceCode: ComponentType<SourceCodeProps>;
1971
1999
  /**
1972
2000
  * The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
1973
- * content with BB's normalization, syntax highlighting, unified/split
1974
- * presentation, and live code theme, and honours an active
2001
+ * content with BB's normalization, optional full-file context expansion,
2002
+ * syntax highlighting, unified/split presentation, and live code theme, and
2003
+ * honours an active
1975
2004
  * `experimental_diffRenderer` replacement. Experimental: see
1976
2005
  * docs/api_to_audit.md.
1977
2006
  */
@@ -2004,4 +2033,4 @@ declare const experimental_useSidebarThreadSplit: (threadId: string) => PluginSi
2004
2033
  declare const experimental_useProviders: () => PluginProvidersState;
2005
2034
 
2006
2035
  export { Markdown, ThreadChat, definePluginApp, experimental_Diff, experimental_FileLink, experimental_NewThreadComposer, experimental_SourceCode, experimental_UrlLink, experimental_useAppPanel, experimental_useFixedTabTarget, experimental_useProviders, experimental_useSidebarThreadActions, experimental_useSidebarThreadPullRequest, experimental_useSidebarThreadSplit, experimental_useSidebarThreads, useBbContext, useBbNavigate, useComposer, useComposerView, useRealtime, useRealtimeConnectionState, useRpc, useSettings };
2007
- export type { BbContext, BbNavigate, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
2036
+ export type { BbContext, BbNavigate, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderIconRegistration, PluginProvidersState, PluginRealtimeConnectionState, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginTargetedPanelActionOpenOptions, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
@@ -12627,6 +12627,18 @@ interface SourceCodeLineRange {
12627
12627
  start: number;
12628
12628
  end: number;
12629
12629
  }
12630
+ /** One complete text side of a diff, resolved by the caller. */
12631
+ interface ExperimentalDiffFileContent {
12632
+ /** File path for this side. May differ between `old` and `new` for a rename. */
12633
+ path: string;
12634
+ /** Complete UTF-8 file contents, including unchanged lines outside the patch. */
12635
+ content: string;
12636
+ }
12637
+ /** Complete text contents for both sides of a diff. */
12638
+ interface ExperimentalDiffFullFileContents {
12639
+ old: ExperimentalDiffFileContent;
12640
+ new: ExperimentalDiffFileContent;
12641
+ }
12630
12642
  /**
12631
12643
  * Props of the host-owned `experimental_SourceCode` component — BB's source
12632
12644
  * viewer. The host owns syntax highlighting, gutters, wrapping, line-selection
@@ -12652,8 +12664,9 @@ interface SourceCodeProps {
12652
12664
  * Props of the host-owned `experimental_Diff` component — BB's diff viewer.
12653
12665
  * The host owns patch normalization (a patch without a `diff --git` header is
12654
12666
  * completed from `path`), syntax highlighting, unified/split presentation,
12655
- * gutters, line-selection presentation, and the live BB code theme. Content
12656
- * that cannot be parsed as a patch degrades to plain monospace text.
12667
+ * gutters, line-selection presentation, optional full-file context expansion,
12668
+ * and the live BB code theme. Content that cannot be parsed as a patch
12669
+ * degrades to plain monospace text.
12657
12670
  */
12658
12671
  interface DiffProps {
12659
12672
  /** Unified patch text for exactly ONE file. */
@@ -12670,6 +12683,12 @@ interface DiffProps {
12670
12683
  overflow?: CodeOverflowMode;
12671
12684
  /** Whether the gutter shows line numbers. Defaults to `true`. */
12672
12685
  showLineNumbers?: boolean;
12686
+ /**
12687
+ * Complete text for both file sides. When present and consistent with the
12688
+ * patch, BB enables expand-context controls between hunks. The caller owns
12689
+ * loading these contents; omit the field to render from the patch alone.
12690
+ */
12691
+ experimental_fullFileContents?: ExperimentalDiffFullFileContents;
12673
12692
  /** Applied to the renderer's root element. */
12674
12693
  className?: string;
12675
12694
  }
@@ -12692,7 +12711,8 @@ interface PluginSourceCodeRendererProps {
12692
12711
  }
12693
12712
  /**
12694
12713
  * Props passed to an `experimental_diffRenderer` component. `patch` is always
12695
- * a complete single-file unified patch, whatever shape the caller supplied.
12714
+ * a complete single-file unified patch, whatever shape the caller supplied,
12715
+ * and optional full-file context is resolved to an object or `null`.
12696
12716
  */
12697
12717
  interface PluginDiffRendererProps {
12698
12718
  patch: string;
@@ -12700,6 +12720,14 @@ interface PluginDiffRendererProps {
12700
12720
  view: DiffViewMode;
12701
12721
  overflow: CodeOverflowMode;
12702
12722
  showLineNumbers: boolean;
12723
+ /**
12724
+ * Caller-resolved text for both sides, or `null` when the caller supplied
12725
+ * only the patch. A replacement can use this to implement context expansion,
12726
+ * but must verify that the paths and hunk lines agree with `patch` before
12727
+ * treating the contents as complete. BB's original renderer performs that
12728
+ * verification when it mounts.
12729
+ */
12730
+ experimental_fullFileContents: ExperimentalDiffFullFileContents | null;
12703
12731
  /**
12704
12732
  * BB's diff renderer, bound to this request. Render it to delegate
12705
12733
  * conditionally without re-entering plugin replacement resolution.
@@ -14118,8 +14146,9 @@ interface PluginSdkApp {
14118
14146
  experimental_SourceCode: ComponentType<SourceCodeProps>;
14119
14147
  /**
14120
14148
  * The host-owned diff viewer (see {@link DiffProps}). Renders supplied patch
14121
- * content with BB's normalization, syntax highlighting, unified/split
14122
- * presentation, and live code theme, and honours an active
14149
+ * content with BB's normalization, optional full-file context expansion,
14150
+ * syntax highlighting, unified/split presentation, and live code theme, and
14151
+ * honours an active
14123
14152
  * `experimental_diffRenderer` replacement. Experimental: see
14124
14153
  * docs/api_to_audit.md.
14125
14154
  */
@@ -16509,4 +16538,4 @@ interface BbPluginApi {
16509
16538
  }
16510
16539
 
16511
16540
  export { PLUGIN_CLI_OUTPUT_MAX_BYTES, defineRpcContract, experimental_defineHostEntry };
16512
- export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
16541
+ export type { BbContext, BbNavigate, BbPluginApi, CodeOverflowMode, ComposerCustomization, ComposerPlusMenuItem, ComposerRichTextSpec, ComposerStructuredDraft, ComposerView, DiffProps, DiffViewMode, ExperimentalAppPanel, ExperimentalAppPanelSurface, ExperimentalDiffFileContent, ExperimentalDiffFullFileContents, ExperimentalFileLinkProps, ExperimentalFileLocation, ExperimentalFileOpenOptions, ExperimentalFixedTabTargetContract, ExperimentalFixedTabTargetState, ExperimentalHostCallOptions, ExperimentalHostClient, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignalEvent, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalLiveFileTarget, ExperimentalOpenFixedTabOptions, ExperimentalPluginFixedTabDeclaration, ExperimentalPluginFixedTabReference, ExperimentalPluginFixedTabRegistration, ExperimentalUrlLinkProps, JsonValue, MarkdownProps, NewThreadComposerProps, NewThreadRequest, PluginAgentConfiguration, PluginAgentConfigurationContext, PluginAgentToolContentPart, PluginAgentToolContext, PluginAgentToolExperimentalStatusLabels, PluginAgentToolPresentation, PluginAgentToolRegistrationBase, PluginAgentToolResult, PluginAgentToolSelection, PluginAgents, PluginAppBuilder, PluginAppComposer, PluginAppContentScripts, PluginAppDefinition, PluginAppSetup, PluginAppSlots, PluginBackground, PluginCli, PluginCliCommandInfo, PluginCliContext, PluginCliExecutionResult, PluginCliOutputLimitError, PluginCliRegistration, PluginCliResult, PluginComposerApi, PluginComposerMention, PluginComposerScope, PluginComposerTextEffect, PluginComposerThreadRowStatus, PluginContentScriptContext, PluginContentScriptDisposer, PluginContentScriptRegistration, PluginDiffRendererProps, PluginDiffRendererRegistration, PluginEvents, PluginFileOpenerProps, PluginFileOpenerRegistration, PluginFileOpenerSource, PluginHomepageSectionProps, PluginHomepageSectionRegistration, PluginHosts, PluginHttp, PluginHttpAuthMode, PluginHttpHandler, PluginInteractionCancelReason, PluginInteractionRequest, PluginInteractionResult, PluginKvStorage, PluginLogger, PluginMentionItem, PluginMentionProviderRegistration, PluginMentionSearchContext, PluginMentionTrigger, PluginMessageActionContext, PluginMessageActionRegistration, PluginMessageDirectiveMessage, PluginMessageDirectiveOpenWorkspaceFile, PluginMessageDirectiveProps, PluginMessageDirectiveRegistration, PluginNavPanelProps, PluginNavPanelRegistration, PluginNewThreadPanelActionContext, PluginNewThreadPanelActionRegistration, PluginNewThreadPanelProps, PluginPanelActionOpenOptions, PluginPendingInteractionProps, PluginPendingInteractionRegistration, PluginPendingInteractionView, PluginProviderCapabilities, PluginProviderComposerAction, PluginProviderDeclaration, PluginProviderExtensionKindDeclaration, PluginProviderFallbackModel, PluginProviderIconRegistration, PluginProviderOptionDescriptor, PluginProviderOptionsContext, PluginProviderPermissionMode, PluginProviderReasoningLevel, PluginProviderStrings, PluginProviders, PluginProvidersState, PluginRealtime, PluginRealtimeConnectionState, PluginRpc, PluginRpcCallArgs, PluginRpcClient, PluginRpcContract, PluginRpcError, PluginRpcErrorCode, PluginRpcHandlers, PluginRpcIssuePathSegment, PluginRpcMethodContract, PluginRpcResult, PluginRpcValidationIssue, PluginSdkApp, PluginServerApi, PluginSettingDescriptor, PluginSettingDescriptors, PluginSettingValue, PluginSettings, PluginSettingsHandle, PluginSettingsSectionProps, PluginSettingsSectionRegistration, PluginSettingsState, PluginSettingsValues, PluginSharedPortTunnelIdentity, PluginSidebarFooterActionContext, PluginSidebarFooterActionProps, PluginSidebarFooterActionRegistration, PluginSidebarProject, PluginSidebarPullRequest, PluginSidebarSplitPane, PluginSidebarThread, PluginSidebarThreadActions, PluginSidebarThreadActivity, PluginSidebarThreadIndicator, PluginSidebarThreadPullRequestState, PluginSidebarThreadSplit, PluginSidebarThreadsState, PluginSidebarWorkspaceKind, PluginSourceCodeRendererProps, PluginSourceCodeRendererRegistration, PluginStatusApi, PluginStorage, PluginTargetedPanelActionOpenOptions, PluginThreadEventHandler, PluginThreadEventName, PluginThreadEventPayloads, PluginThreadHeaderActionProps, PluginThreadHeaderActionRegistration, PluginThreadListProps, PluginThreadListRegistration, PluginThreadPanelActionContext, PluginThreadPanelActionRegistration, PluginThreadPanelProps, PluginUi, SourceCodeLineRange, SourceCodeProps, StandardSchemaV1, StandardSchemaV1InferInput, StandardSchemaV1InferOutput, StandardSchemaV1Issue, StandardSchemaV1Result, ThreadChatMessageAction, ThreadChatMessageReference, ThreadChatProps };
@@ -982,6 +982,7 @@ function TestDiff({
982
982
  view = "unified",
983
983
  overflow = "scroll",
984
984
  showLineNumbers = true,
985
+ experimental_fullFileContents,
985
986
  className
986
987
  }) {
987
988
  return /* @__PURE__ */ jsx(
@@ -992,6 +993,7 @@ function TestDiff({
992
993
  "data-view": view,
993
994
  "data-overflow": overflow,
994
995
  "data-show-line-numbers": showLineNumbers ? "true" : "false",
996
+ "data-has-full-file-contents": experimental_fullFileContents === void 0 ? "false" : "true",
995
997
  className,
996
998
  children: patch
997
999
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@get-bb/plugin-sdk",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "homepage": "https://github.com/get-bb/bb#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/get-bb/bb/issues"