Files
paseo/packages/plugin/src/index.ts
T
Mohamed Boudra fe803f6e70 Let plugins contribute contextual composer pills (#3956)
* feat(plugin): allow composer pill contributions

Keep pill presentation host-owned while plugin components render contextual content. Pill callbacks reuse the selected host's API, RPC, surface, and registered-panel navigation capabilities without exposing router or workspace layout internals.

* fix(plugin): place composer pills in track bar

* fix(plugin): make composer pills client-owned
2026-08-28 16:02:00 +08:00

56 lines
1.5 KiB
TypeScript

import type { ComponentType } from "react";
import type { PluginIconProps } from "./contracts.js";
export {
PluginAttachmentItemSchema,
PluginAttachmentSearchPayloadSchema,
defineAttachmentSource,
defineRpc,
type PluginAttachmentItem,
type PluginAttachmentSearchPayload,
type PluginRpcContract,
} from "./server.js";
export declare const Icon: ComponentType<PluginIconProps>;
export type {
PluginAttachmentSourceContribution,
PluginAgentCommandContext,
PluginAgentPanelProps,
PluginAgentSnapshot,
PluginCleanup,
PluginCommandCapabilities,
PluginCommandCenterItemContribution,
PluginClientContext,
PluginClientContribution,
PluginClientOpenPanelOptions,
PluginComposerPillContribution,
PluginComposerPillProps,
PluginContribution,
PluginContext,
PluginGlobalCommandContext,
PluginHandlerContext,
PluginHostProps,
PluginOpenPanelOptions,
PluginIconProps,
PluginPanelLocation,
PluginTheme,
PluginSidebarContribution,
PluginSurfaceContribution,
PluginSurfaceProps,
PluginThemeColors,
PluginThemeContribution,
PluginTimelineData,
PluginTimelineItem,
PluginTimelineItemProps,
PluginTimelineRendererContribution,
PluginTimelineTransformerContribution,
PluginTimelineTransformResult,
PluginWorkspaceCommandContext,
PluginWorkspacePanelContribution,
PluginWorkspacePanelProps,
PluginWorkspaceSnapshot,
} from "./contracts.js";
export { usePaseo } from "./paseo-context.js";
export { useAgent, useWorkspace } from "./client-state.js";
export { useRpc } from "./rpc-context.js";