import { type PluginHostConnectors } from "./connectors.js"; import { type PluginHostCron } from "./cron.js"; import { type PluginHostEmployees } from "./employees.js"; import { type PluginNoticeLevel } from "./gateway-link.js"; import { type PluginHostKnowledge } from "./knowledge.js"; import { type PluginHostNotes } from "./notes.js"; import { type PluginHostSessions } from "./sessions.js"; import { type PluginHostTodos } from "./todos.js"; import { type PluginHostWorkflows } from "./workflows.js"; /** * The typed verb tier as a plugin's *backend* sees it — the same sixteen verbs * the browser SDK offers, over the gateway's own in-process functions rather * than over HTTP. * * Inside this process the HTTP hop would be wrong twice: it would need a token * to call the gateway it is already running in, and it would turn one * transactional write into a request that can fail halfway. The delegation * transaction composes its writes in-process for the same reason. * * One module per domain, each one passing the permission gate before it acts. A * verb that skipped the gate would be a verb no policy could ever refuse. */ export type { PluginTodoDraft } from "./todos.js"; export type { PluginSpawnRequest } from "./sessions.js"; export type { PluginWorkflow, PluginWorkflowRun } from "./workflows.js"; export type { PluginNoteDraft } from "./notes.js"; export type { PluginConnectorMessage } from "./connectors.js"; export type { PluginCronJob } from "./cron.js"; export interface PluginHost { todos: PluginHostTodos; sessions: PluginHostSessions; employees: PluginHostEmployees; workflows: PluginHostWorkflows; notes: PluginHostNotes; connectors: PluginHostConnectors; cron: PluginHostCron; knowledge: PluginHostKnowledge; /** Say something on the dashboard. Never throws: a dropped notice is not * worth taking a plugin's watcher down over. */ notify(message: string, level?: PluginNoticeLevel): void; } export declare function createPluginHost(pluginId: string): PluginHost; //# sourceMappingURL=index.d.ts.map