@get-bb/plugin-sdk 0.6.157 → 0.6.164
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 +698 -72
- package/bundled-types/bb-plugin-sdk-environment-provider.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-host.d.ts +4 -1
- package/bundled-types/bb-plugin-sdk-internal-host-policy.d.ts +3 -0
- package/bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts +6 -3
- package/bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts +1001 -0
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts +56 -6
- package/bundled-types/bb-plugin-sdk-provider-bridge.d.ts +45 -8
- package/bundled-types/bb-plugin-sdk-testing.d.ts +14 -19
- package/bundled-types/bb-plugin-sdk.d.ts +860 -286
- package/dist/app.js +8 -0
- package/dist/host.js +27 -3
- package/dist/index.js +19 -1
- package/dist/internal/host-policy.js +24 -2
- package/dist/internal/plugin-app-collector.js +20 -0
- package/dist/internal/rpc-query-host.js +1 -0
- package/dist/internal/thread-event-gate.js +95 -0
- package/dist/process.js +7 -1
- package/dist/provider-bridge-acp-next.js +503 -144
- package/dist/provider-bridge-acp.js +503 -144
- package/dist/provider-bridge-testing.js +12 -4
- package/dist/provider-bridge.js +115 -34
- package/dist/replay-provider-child.mjs +158 -31
- package/dist/testing/app.js +627 -347
- package/dist/testing/index.js +174 -66
- package/package.json +8 -1
|
@@ -52,6 +52,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
52
52
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
53
53
|
attempt: z.ZodNumber;
|
|
54
54
|
message: z.ZodOptional<z.ZodString>;
|
|
55
|
+
needsRecovery: z.ZodBoolean;
|
|
55
56
|
status: z.ZodEnum<{
|
|
56
57
|
failed: "failed";
|
|
57
58
|
removed: "removed";
|
|
@@ -100,6 +101,8 @@ declare const hostSchema: z.ZodObject<{
|
|
|
100
101
|
suspendedAt: z.ZodNullable<z.ZodNumber>;
|
|
101
102
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
102
103
|
attempt: z.ZodNumber;
|
|
104
|
+
blockedByEnvironmentId: z.ZodNullable<z.ZodString>;
|
|
105
|
+
needsRecovery: z.ZodBoolean;
|
|
103
106
|
status: z.ZodEnum<{
|
|
104
107
|
failed: "failed";
|
|
105
108
|
removed: "removed";
|
|
@@ -645,6 +645,9 @@ declare function sanitizeInheritedChildProcessEnv(args: SanitizeInheritedChildPr
|
|
|
645
645
|
*/
|
|
646
646
|
declare function experimental_killProcessesWithCwdUnder(args: Parameters<typeof killProcessesWithCwdUnder>[0]): ReturnType<typeof killProcessesWithCwdUnder>;
|
|
647
647
|
|
|
648
|
+
declare function sliceUtf16Head(value: string, maxChars: number): string;
|
|
649
|
+
declare function sliceUtf16Tail(value: string, maxChars: number): string;
|
|
650
|
+
|
|
648
651
|
/**
|
|
649
652
|
* What the operating system reports about a running process. `command` is its
|
|
650
653
|
* full command line, or null when the OS does not expose it. `startedAt` is its
|
|
@@ -664,5 +667,5 @@ interface ExperimentalProcessIdentity {
|
|
|
664
667
|
*/
|
|
665
668
|
declare function experimental_readProcessIdentity(pid: number): Promise<ExperimentalProcessIdentity | null>;
|
|
666
669
|
|
|
667
|
-
export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, runVcsProcess as experimental_runVcsProcess, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
|
|
670
|
+
export { experimental_defineHostEntry, experimental_filterResolvedNativeRoots, experimental_killProcessesWithCwdUnder, experimental_nativeRootsHostContract, experimental_nativeRootsResolveInputSchema, experimental_nativeRootsResolveOutputSchema, experimental_readProcessIdentity, experimental_resolveClaudePluginRoots, experimental_resolveVendorPluginRoots, runVcsProcess as experimental_runVcsProcess, sanitizeInheritedChildProcessEnv as experimental_sanitizeInheritedChildProcessEnv, sliceUtf16Head as experimental_sliceUtf16Head, sliceUtf16Tail as experimental_sliceUtf16Tail, spawnPortableOutputProcess as experimental_spawnPortableOutputProcess };
|
|
668
671
|
export type { ExperimentalClaudePluginRoots, ExperimentalClaudePluginRootsArgs, ExperimentalDroppedNativeRoot, ExperimentalFilteredNativeRoots, ExperimentalHostEntry, ExperimentalHostPaths, ExperimentalHostRpcContext, ExperimentalHostRpcHandlers, ExperimentalHostSignalContract, ExperimentalHostSignals, ExperimentalHostWatchChange, ExperimentalHostWatchChangeType, ExperimentalHostWatchEvent, ExperimentalHostWatchListener, ExperimentalHostWatchOptions, ExperimentalHostWatchSubscription, ExperimentalHostWorkerLease, ExperimentalNativeRootsHostContract, ExperimentalNativeRootsResolveAnswer, ExperimentalNativeRootsResolveInput, ExperimentalNativeRootsResolveOutput, ExperimentalProcessIdentity, SanitizeInheritedChildProcessEnvArgs as ExperimentalSanitizeInheritedChildProcessEnvArgs, VcsProcessOptions as ExperimentalVcsProcessOptions, VcsProcessPriority as ExperimentalVcsProcessPriority, ExperimentalVendorPlugin, ExperimentalVendorPluginRoots, ExperimentalVendorPluginRootsArgs };
|
|
@@ -105,6 +105,7 @@ declare const environmentSchema: z.ZodObject<{
|
|
|
105
105
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
106
106
|
attempt: z.ZodNumber;
|
|
107
107
|
message: z.ZodOptional<z.ZodString>;
|
|
108
|
+
needsRecovery: z.ZodBoolean;
|
|
108
109
|
status: z.ZodEnum<{
|
|
109
110
|
failed: "failed";
|
|
110
111
|
removed: "removed";
|
|
@@ -153,6 +154,8 @@ declare const hostSchema: z.ZodObject<{
|
|
|
153
154
|
suspendedAt: z.ZodNullable<z.ZodNumber>;
|
|
154
155
|
teardown: z.ZodNullable<z.ZodObject<{
|
|
155
156
|
attempt: z.ZodNumber;
|
|
157
|
+
blockedByEnvironmentId: z.ZodNullable<z.ZodString>;
|
|
158
|
+
needsRecovery: z.ZodBoolean;
|
|
156
159
|
status: z.ZodEnum<{
|
|
157
160
|
failed: "failed";
|
|
158
161
|
removed: "removed";
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// and read the real source: https://github.com/get-bb/bb
|
|
7
7
|
|
|
8
8
|
import * as _get_bb_plugin_sdk from '@get-bb/plugin-sdk';
|
|
9
|
-
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
9
|
+
import { ExperimentalSidebarFooterActionContext, ExperimentalSidebarFooterItemRegistration, PluginSidebarFooterActionRegistration, PluginHomepageSectionRegistration, PluginSettingsSectionRegistration, ExperimentalAppOverlayRegistration, InternalDoNotUseSetupGuideSectionRegistration, PluginNavPanelRegistration, ExperimentalTabRegistration, PluginNewThreadPanelActionRegistration, ComposerCustomization, PluginPendingInteractionRegistration, PluginThreadListRegistration, ExperimentalSidebarNavigationRegistration, ExperimentalSidebarNavigationPlacement, ExperimentalThreadContextSegmentRegistration, ExperimentalThreadInfoRowRegistration, ExperimentalThreadRowMetadataRegistration, ExperimentalThreadInfoSectionRegistration, ExperimentalThreadHeaderRowRegistration, ExperimentalThreadHeaderTitleRegistration, ExperimentalThreadContextCardRowRegistration, ExperimentalThreadContextCardSectionRegistration, PluginThreadActionRegistration, ExperimentalPluginBrowserToolbarActionRegistration, PluginFileOpenerRegistration, PluginSourceCodeRendererRegistration, PluginDiffRendererRegistration, ExperimentalComposerRegistration, PluginMessageDirectiveRegistration, ExperimentalCodeFenceRendererRegistration, PluginMessageActionRegistration, ExperimentalMessageActionSurface, ExperimentalMessageMetadataRegistration, PluginCommandRegistration, ExperimentalComposerCommandRegistration, PluginProviderIconRegistration, ExperimentalIconRegistration, PluginTimelineRendererRegistration, PluginEnvironmentProviderInputsRegistration, PluginMachineProviderInputsRegistration, PluginContentScriptRegistration, PluginAppDefinition } from '@get-bb/plugin-sdk';
|
|
10
10
|
import { ComponentType } from 'react';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -90,6 +90,9 @@ type CollectedPluginCommandRegistration = (Omit<PluginCommandRegistration, "defa
|
|
|
90
90
|
target: "composer";
|
|
91
91
|
defaultShortcut: CollectedCommandShortcut;
|
|
92
92
|
});
|
|
93
|
+
type CollectedPluginMessageActionRegistration = Omit<PluginMessageActionRegistration, "experimental_surfaces"> & {
|
|
94
|
+
experimental_surfaces: readonly ExperimentalMessageActionSurface[];
|
|
95
|
+
};
|
|
93
96
|
interface CollectedPluginAppRegistrations {
|
|
94
97
|
homepageSections: PluginHomepageSectionRegistration[];
|
|
95
98
|
settingsSections: PluginSettingsSectionRegistration[];
|
|
@@ -122,7 +125,7 @@ interface CollectedPluginAppRegistrations {
|
|
|
122
125
|
composers: ExperimentalComposerRegistration[];
|
|
123
126
|
messageDirectives: PluginMessageDirectiveRegistration[];
|
|
124
127
|
codeFenceRenderers: ExperimentalCodeFenceRendererRegistration[];
|
|
125
|
-
messageActions:
|
|
128
|
+
messageActions: CollectedPluginMessageActionRegistration[];
|
|
126
129
|
messageMetadata: ExperimentalMessageMetadataRegistration[];
|
|
127
130
|
commandPaletteActions: CollectedPluginCommandRegistration[];
|
|
128
131
|
providerIcons: CollectedPluginProviderIconRegistration[];
|
|
@@ -138,4 +141,4 @@ interface CollectedSidebarNavigationRegistration extends ExperimentalSidebarNavi
|
|
|
138
141
|
declare function collectPluginAppRegistrations(definition: PluginAppDefinition, onWarning?: (message: string) => void): CollectedPluginAppRegistrations;
|
|
139
142
|
|
|
140
143
|
export { adaptSidebarFooterAction, collectPluginAppRegistrations, getCollectedSidebarFooterItems };
|
|
141
|
-
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadHeaderActionRegistration, LegacyThreadPanelActionRegistration };
|
|
144
|
+
export type { CollectedCompatibilitySidebarFooterItem, CollectedExperimentalSidebarFooterItem, CollectedManagedSidebarFooterItem, CollectedPluginAppRegistrations, CollectedPluginCommandRegistration, CollectedPluginMessageActionRegistration, CollectedPluginProviderIconRegistration, CollectedSidebarFooterItem, CollectedSidebarNavigationRegistration, ExperimentalSidebarFooterCommandKind, ExperimentalSidebarFooterItemRuntime, ExperimentalSidebarFooterRuntimeSnapshot, LegacyNavPanelRegistration, LegacyThreadHeaderActionRegistration, LegacyThreadPanelActionRegistration };
|