@kcode/plugin-sdk, and the kernel, @kcode/kernel. This section replaces an endpoint reference with the contracts you code against.
4.1.1 Reference map
4.1.2 Packages
4.1.3 Add a plugin
1
Create the package
Create
plugins/my-new-plugin with a package.json and a src/index.ts that exports a KcodePlugin.2
Describe the plugin
Add metadata, routes, permissions, settings, and an entry component through
@kcode/plugin-sdk.3
Register it once
Add the plugin to
config/plugins.ts and list its package in transpilePackages in apps/web/next.config.ts.4
Verify
Run
pnpm build.