* feat(plugins): expose agent and workspace lifecycle hooks * test(plugins): verify lifecycle examples with version requirements * fix(plugins): publish archive hooks for closed agents * test(plugins): remove diagnostic catch from lifecycle test * refactor(plugins): define hook handlers in lifecycle module
80 lines
2.4 KiB
TypeScript
80 lines
2.4 KiB
TypeScript
import type { SettingsDefinition, SettingsState } from "./settings.js";
|
|
import type { ZodType } from "zod";
|
|
export { defineSettings, type SettingsDefinition, type SettingsState } from "./settings.js";
|
|
export declare function useSettings<Schema extends ZodType>(
|
|
definition: SettingsDefinition<Schema>,
|
|
): SettingsState<Schema>;
|
|
|
|
import type { ComponentType } from "react";
|
|
import type { PluginAttachmentSourceContribution, PluginIconProps } from "./contracts.js";
|
|
|
|
export {
|
|
PluginAttachmentItemSchema,
|
|
PluginAttachmentSearchPayloadSchema,
|
|
type PluginAttachmentItem,
|
|
type PluginAttachmentSearchPayload,
|
|
} from "./attachments.js";
|
|
export { defineRpc, type PluginRpcContract, type RpcInput, type RpcOutput } from "./rpc.js";
|
|
|
|
export function defineAttachmentSource<Definition extends PluginAttachmentSourceContribution>(
|
|
definition: Definition,
|
|
): Definition {
|
|
return definition;
|
|
}
|
|
|
|
export declare const Icon: ComponentType<PluginIconProps>;
|
|
export type {
|
|
PluginAttachmentSourceContribution,
|
|
PluginAgentCommandContext,
|
|
PluginAgentPanelProps,
|
|
PluginAgentSnapshot,
|
|
PluginCleanup,
|
|
PluginCommandCapabilities,
|
|
PluginCommandCenterItemContribution,
|
|
PluginClientContext,
|
|
PluginClientContribution,
|
|
PluginClientSlashCommandContribution,
|
|
PluginClientOpenPanelOptions,
|
|
PluginComposerPillContribution,
|
|
PluginComposerPillProps,
|
|
PluginServerContribution,
|
|
PluginServerContext,
|
|
PluginGlobalCommandContext,
|
|
PluginHandlerContext,
|
|
PluginHostProps,
|
|
PluginOpenPanelOptions,
|
|
PluginIconProps,
|
|
PluginPanelLocation,
|
|
PluginTheme,
|
|
PluginSidebarContribution,
|
|
PluginSurfaceContribution,
|
|
PluginSettingsScreenContribution,
|
|
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";
|
|
|
|
export type {
|
|
PluginBeforeRequests,
|
|
PluginHookAgent,
|
|
PluginHookContext,
|
|
PluginHookWorkspace,
|
|
PluginLifecycleEvents,
|
|
PluginLifecycleRegistration,
|
|
PluginSessionOpenRequest,
|
|
PluginTurnOutcome,
|
|
} from "./lifecycle.js";
|