@makinbakin/sdk 0.0.1-rc.39 → 0.0.1-rc.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makinbakin/sdk",
3
- "version": "0.0.1-rc.39",
3
+ "version": "0.0.1-rc.40",
4
4
  "description": "SDK for building Bakin plugins — UI components, slot types, hooks, and the runtime registerPlugin helper.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -164,6 +164,36 @@ export interface PluginManifestSignature {
164
164
  signature: string;
165
165
  }
166
166
  /** The `bakin-plugin.json` manifest. Required for every plugin. */
167
+ /** Platform keys follow `process.platform-process.arch`. */
168
+ export type PluginBinPlatform = 'darwin-arm64' | 'darwin-x64' | 'linux-x64' | 'linux-arm64';
169
+ /** One pinned, sha256-verified download of a required binary. */
170
+ export interface PluginBinDownload {
171
+ /** https URL (loopback http allowed for local fixtures). */
172
+ url: string;
173
+ /** Hex sha256 of the download (the archive when `archive` is set). */
174
+ sha256: string;
175
+ /** Present when the download is a tarball; `member` is the file extracted as the binary. */
176
+ archive?: {
177
+ format: 'tar.gz';
178
+ member: string;
179
+ };
180
+ /** Download size in bytes, shown in consent/install UIs when present. */
181
+ sizeBytes?: number;
182
+ }
183
+ /**
184
+ * A binary Bakin installs into `~/.bakin/bin` with the plugin — disclosed at
185
+ * install consent, verified by the doctor, removed with the plugin unless
186
+ * another owner still pins it.
187
+ */
188
+ export interface PluginBinRequirement {
189
+ /** Name as invoked from PATH. */
190
+ name: string;
191
+ version: string;
192
+ /** Per-platform downloads; a platform without an entry fails install preflight on that platform. */
193
+ install: Partial<Record<PluginBinPlatform, PluginBinDownload>>;
194
+ /** Args for the verify-then-commit probe run (e.g. `["-V"]`). */
195
+ verifyArgs?: string[];
196
+ }
167
197
  export interface PluginManifest {
168
198
  /** Removal must run the loaded plugin's beforeUninstall hook successfully. */
169
199
  uninstallPreflightRequired?: boolean;
@@ -199,6 +229,10 @@ export interface PluginManifest {
199
229
  devWatch?: string[];
200
230
  /** Optional Ed25519 signature for authenticity. */
201
231
  signature?: PluginManifestSignature;
232
+ /** Binaries Bakin installs with the plugin (`requires.bins`). */
233
+ requires?: {
234
+ bins?: PluginBinRequirement[];
235
+ };
202
236
  }
203
237
  /** The `bakin.config.ts` shape — root configuration for a Bakin installation. */
204
238
  export interface BakinConfig {