@osndot/sdk
v0.2.0
Published
Plugin development SDK for the OSN CLI platform
Readme
Installation
pnpm add -D @osndot/sdkUsage
Use the definePlugin factory function to create fully typed plugins for osn.:
import { definePlugin } from "@osndot/sdk";
export default definePlugin({
name: "my-custom-plugin",
version: "1.0.0",
description: "A custom plugin for osn",
setup(ctx) {
return {
commands: [
{
name: "custom:hello",
description: "Say hello",
handler: () => {
ctx.logger.info("Hello World!");
}
}
]
};
}
});Documentation
For complete documentation on building plugins, lifecycle hooks, and context management, see the Plugin Development Guide.
License
MIT
