Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/design/plugin-distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ A `tar.gz`:
```
<id>-<version>.osplugin
├── objectstack.plugin.json # compiled manifest (below)
├── dist/ # pre-built ESM bundle (tsup); @objectstack/* externalized
├── dist/ # pre-built ESM bundle (esbuild → dist/index.mjs); @objectstack/* externalized
├── assets/ README LICENSE icon
└── SIGNATURE # detached signature + publisher cert chain
```
Expand Down Expand Up @@ -161,7 +161,8 @@ client-scoped `permissions` (data read/write via SDK, network → CSP, navigatio
os plugin build → os plugin sign → os plugin publish
```

1. **build** — run `tsup` (externalize `@objectstack/*`); validate the manifest
1. **build** — esbuild-bundle the entry to `dist/index.mjs` (externalize `@objectstack/*`,
inline every other dependency); validate the manifest
(Zod + the new `permissions` schema); gate on protocol/engine compatibility;
compute per-file `integrity`; emit `<id>-<version>.osplugin`.
2. **sign** — sign with the publisher key (`PluginMetadata.signature`); may be
Expand Down
Loading