@yaklabs-ai/plugin-sdk 0.36.0 → 0.37.0

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/README.md CHANGED
@@ -13,7 +13,7 @@ it under the name your plugin code actually imports:
13
13
  ```json
14
14
  {
15
15
  "dependencies": {
16
- "@bonsai/plugin-sdk": "npm:@yaklabs-ai/plugin-sdk@^0.36.0"
16
+ "@bonsai/plugin-sdk": "npm:@yaklabs-ai/plugin-sdk@^0.37.0"
17
17
  }
18
18
  }
19
19
  ```
@@ -62,7 +62,7 @@ Every tool the entrypoint registers is declared in the manifest too:
62
62
  "description": "Greets people by name.",
63
63
  "version": "0.1.0",
64
64
  "namespace": "widgets",
65
- "compatibility": { "sdk": "^0.36.0" },
65
+ "compatibility": { "sdk": "^0.37.0" },
66
66
  "targets": {
67
67
  "kay": {
68
68
  "agent": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "@yaklabs-ai/plugin-sdk",
4
- "version": "0.36.0",
4
+ "version": "0.37.0",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
@@ -2390,8 +2390,13 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2390
2390
  * under `kay.ui` `contributes` names each page's title, icon file, companion status and opened
2391
2391
  * event. A reference presentation that opens a page gains `scheme` and `addresses`, and may leave
2392
2392
  * out `uriModule` when another layer serves the address. A plugin using these declares ^0.36.0.
2393
+ *
2394
+ * 0.37.0 lets a notification rule's toast declare a preview (#15904). `toastPreviews` under `kay.ui`
2395
+ * `contributes` names the `rule`, the `body` that fills the preview, either a `contextOnly` app in
2396
+ * the plugin or a body the host ships, and the `address` it is about. Additive. A plugin that
2397
+ * declares a preview declares ^0.37.0.
2393
2398
  */
2394
- declare const KAY_PLUGIN_SDK_VERSION: "0.36.0";
2399
+ declare const KAY_PLUGIN_SDK_VERSION: "0.37.0";
2395
2400
 
2396
2401
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2397
2402
 
@@ -2444,8 +2444,13 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2444
2444
  * under `kay.ui` `contributes` names each page's title, icon file, companion status and opened
2445
2445
  * event. A reference presentation that opens a page gains `scheme` and `addresses`, and may leave
2446
2446
  * out `uriModule` when another layer serves the address. A plugin using these declares ^0.36.0.
2447
+ *
2448
+ * 0.37.0 lets a notification rule's toast declare a preview (#15904). `toastPreviews` under `kay.ui`
2449
+ * `contributes` names the `rule`, the `body` that fills the preview, either a `contextOnly` app in
2450
+ * the plugin or a body the host ships, and the `address` it is about. Additive. A plugin that
2451
+ * declares a preview declares ^0.37.0.
2447
2452
  */
2448
- declare const KAY_PLUGIN_SDK_VERSION: "0.36.0";
2453
+ declare const KAY_PLUGIN_SDK_VERSION: "0.37.0";
2449
2454
 
2450
2455
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2451
2456
 
@@ -2719,8 +2719,13 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2719
2719
  * under `kay.ui` `contributes` names each page's title, icon file, companion status and opened
2720
2720
  * event. A reference presentation that opens a page gains `scheme` and `addresses`, and may leave
2721
2721
  * out `uriModule` when another layer serves the address. A plugin using these declares ^0.36.0.
2722
+ *
2723
+ * 0.37.0 lets a notification rule's toast declare a preview (#15904). `toastPreviews` under `kay.ui`
2724
+ * `contributes` names the `rule`, the `body` that fills the preview, either a `contextOnly` app in
2725
+ * the plugin or a body the host ships, and the `address` it is about. Additive. A plugin that
2726
+ * declares a preview declares ^0.37.0.
2722
2727
  */
2723
- declare const KAY_PLUGIN_SDK_VERSION: "0.36.0";
2728
+ declare const KAY_PLUGIN_SDK_VERSION: "0.37.0";
2724
2729
 
2725
2730
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2726
2731
 
package/dist/kay-app.d.ts CHANGED
@@ -2681,8 +2681,13 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2681
2681
  * under `kay.ui` `contributes` names each page's title, icon file, companion status and opened
2682
2682
  * event. A reference presentation that opens a page gains `scheme` and `addresses`, and may leave
2683
2683
  * out `uriModule` when another layer serves the address. A plugin using these declares ^0.36.0.
2684
+ *
2685
+ * 0.37.0 lets a notification rule's toast declare a preview (#15904). `toastPreviews` under `kay.ui`
2686
+ * `contributes` names the `rule`, the `body` that fills the preview, either a `contextOnly` app in
2687
+ * the plugin or a body the host ships, and the `address` it is about. Additive. A plugin that
2688
+ * declares a preview declares ^0.37.0.
2684
2689
  */
2685
- declare const KAY_PLUGIN_SDK_VERSION: "0.36.0";
2690
+ declare const KAY_PLUGIN_SDK_VERSION: "0.37.0";
2686
2691
 
2687
2692
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2688
2693
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-sdk",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "The Kay plugin SDK — types and helpers for authoring a Kay directory plugin.",
5
5
  "author": "YakLabs",
6
6
  "type": "module",
@@ -131,7 +131,10 @@ activity-rail button when the manifest declares it: `railEntries` under `targets
131
131
  with `id`, `title` and `page`, and optionally `icon`, `shortcut`, `order` and `section`. That
132
132
  declaration works with no `ui.tsx` at all. To give the entry a sidebar, add `panel: { body }` naming
133
133
  an app in the same manifest with `contextOnly: true`. The sidebar is always there once declared, so
134
- the app shows its own empty state.
134
+ the app shows its own empty state. To give a notification rule's toast a "Show changes" preview, add
135
+ a `toastPreviews` entry under `targets.kay.ui.contributes` with `rule` (the rule's `localId`), `body`
136
+ (a `contextOnly` app) and `address` (for example `${navigateTarget}/@diff/${revision}`). The app reads
137
+ the address with `useKayAppReference()`, and the toast's "Open history" opens the same address.
135
138
 
136
139
  **Icons: declare one plugin icon, override only where you mean it.** Set the manifest `icon` (a
137
140
  package-relative SVG) and every surface the plugin contributes inherits it: reference pills, its