npm installnpm run clean
npm run buildsrc/core/: shared internal abstraction utilitiessrc/index.ts: top-level thin exportsopencode/src/: OpenCode adapteropencode/examples/: OpenCode examplespi/src/: PI adapterpi/examples/: PI examples
From a consumer project package.json:
{
"dependencies": {
"@amaan/plugin-sdk": "file:../plugin-sdk"
}
}Then run:
npm install- Add adapter source under
<platform>/src/. - Add minimal examples under
<platform>/examples/. - Reuse
src/coreprimitives where possible. - Add package export subpath in
package.json. - Update
tsconfig.jsoninclude paths. - Build and smoke-test imports.
- Do not add helpers that imply runtime capabilities not present in the target platform.
- Keep adapter behavior aligned to official platform docs.
- Prefer explicit helper names over overloaded behavior.