Packages
@osndot/sdk
The Plugin SDK for building osn. plugins.

Installation
pnpm add -D @osndot/sdk
Usage
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.