@zaly/plugin
v0.3.1
Published
Plugin-facing API and loader helpers for zaly.
Readme
@zaly/plugin
Plugin-facing API and loader helpers for zaly.
@zaly/plugin provides the runtime API surface exposed to plugins and helpers to
load/dispose plugin modules.
[!WARNING] Alpha package. The plugin API is not frozen.
Install
bun add @zaly/pluginMost users should install @zaly/cli instead.
What it provides
- Plugin loader — load plugin modules and dispose registered cleanups.
- Plugin API — typed access to agent actions, model helpers, prompts, tools, UI helpers, events, and cleanup registration.
- Host boundary — a small interface between user plugins and the zaly app.
Minimal shape
import type { PluginApi } from "@zaly/plugin"
export default function plugin(zaly: PluginApi) {
zaly.events.on("agent:start", () => {
// plugin logic
})
}Exact plugin capabilities may change during alpha.
License
MIT © Folke Lemaitre
