Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
export const VETTA_PLUGIN_DEV_PROTOCOL_VERSION = 1;
export type VettaPluginDevEvent =
| {
type: "ready";
protocolVersion: typeof VETTA_PLUGIN_DEV_PROTOCOL_VERSION;
pluginId: string;
entryUrl: string;
origin: string;
}
| {
type: "update";
pluginId: string;
reason: "entry" | "full-reload" | "resource";
path?: string;
triggeredBy?: string;
}
| {
type: "error";
pluginId?: string;
message: string;
};
type VettaPluginDevEventListener = (event: VettaPluginDevEvent) => void;
let listener: VettaPluginDevEventListener | undefined;
export function setVettaPluginDevEventListener(nextListener: VettaPluginDevEventListener | undefined): void {
listener = nextListener;
}
export function emitVettaPluginDevEvent(event: VettaPluginDevEvent): void {
listener?.(event);
}