mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
Keep sidebar layout and gestures inside the plugin while routing entity handles to their owning hosts. Examples cover empty projects, pinned workspaces, task sections, nested agents and device-local label folders.
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import type { PluginText } from "../text.js";
|
|
import { PluginAttachmentSearchPayloadSchema } from "../attachments.js";
|
|
export {
|
|
PluginClientStateProvider,
|
|
usePaseoSelector,
|
|
type PluginClientStateSource,
|
|
type PluginClientSnapshot,
|
|
} from "./client-state.js";
|
|
export {
|
|
usePluginRuntimeContextBridge,
|
|
type PluginRuntimeContextBridge,
|
|
} from "./runtime-context-bridge.js";
|
|
import type { PluginAttachmentSourceContribution } from "../contracts.js";
|
|
import { PluginRpcProvider } from "./rpc-context.js";
|
|
import { PaseoApiProvider } from "./paseo-context.js";
|
|
import { callPluginRpc, subscribePluginRpc, type PluginSubscriptionObserver } from "../rpc.js";
|
|
|
|
export async function searchPluginAttachments(
|
|
source: PluginAttachmentSourceContribution<PluginText>,
|
|
invoke: (method: string, input: unknown) => Promise<unknown>,
|
|
query: string,
|
|
) {
|
|
const output = await callPluginRpc(source.search, invoke, { query });
|
|
return PluginAttachmentSearchPayloadSchema.parseAsync(output);
|
|
}
|
|
|
|
export { callPluginRpc, subscribePluginRpc, PaseoApiProvider, PluginRpcProvider };
|
|
export type { PluginSubscriptionObserver };
|
|
export type { PluginSubscribe } from "./rpc-context.js";
|
|
|
|
export {
|
|
PluginTranslationRuntime,
|
|
PluginTranslationProvider,
|
|
usePluginTranslationRuntime,
|
|
requirePluginText,
|
|
isPluginMessage,
|
|
} from "./translations.js";
|
|
export type { PluginLocaleSource } from "./translations.js";
|
|
|
|
export { createEntityRefs } from "./refs.js";
|
|
|
|
export { createPluginReferenceApi } from "./reference-api.js";
|