@yaklabs-ai/plugin-protocol 0.15.1 → 0.15.3

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
@@ -11,7 +11,7 @@ flow.
11
11
  ```json
12
12
  {
13
13
  "dependencies": {
14
- "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.15.1"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.15.3"
15
15
  }
16
16
  }
17
17
  ```
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "@yaklabs-ai/plugin-protocol",
4
- "version": "0.15.1",
4
+ "version": "0.15.3",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -2442,8 +2442,18 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2442
2442
  *
2443
2443
  * 0.15.1 adds plugin-event automation conditions and public event-identity run matches.
2444
2444
  * The host retains 0.15.0; plugins using the new condition declare ^0.15.1.
2445
+ *
2446
+ * 0.15.2 lets a plugin workflow start on the plugin's own events (a `plugin-event` trigger, with
2447
+ * the event handed to the run as `ctx.match`) and declare `concurrency`. The host retains 0.15.0
2448
+ * and 0.15.1; a plugin using either declares ^0.15.2, so an older host refuses it at load instead
2449
+ * of `define` throwing inside activation.
2450
+ *
2451
+ * 0.15.3 adds `owner: "user"` to `app.automations.create`, with the `spawn-session` effect it
2452
+ * allows: an automation the user owns, which outlives the calling session. Additive; plugins
2453
+ * using it declare ^0.15.3 so an older host, which would ignore the field and make the calling
2454
+ * session the owner, refuses them at load.
2445
2455
  */
2446
- export declare const KAY_PLUGIN_SDK_VERSION: "0.15.1";
2456
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.15.3";
2447
2457
 
2448
2458
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2449
2459
 
@@ -9360,7 +9370,6 @@ export declare function turnPacket(entries: readonly TurnPacketEntry[], settleEn
9360
9370
  export declare interface TurnPacketEntry {
9361
9371
  readonly id: string;
9362
9372
  readonly parentId?: string | null;
9363
- readonly targetId?: string | null;
9364
9373
  readonly type: string;
9365
9374
  readonly customType?: string;
9366
9375
  /** Epoch milliseconds (pi's `EntryBase.timestamp`). */
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ function branchEntryIds(entries) {
17
17
  return EMPTY_BRANCH_IDS;
18
18
  const byId = new Map(entries.map((entry) => [entry.id, entry]));
19
19
  const onBranch = /* @__PURE__ */ new Set();
20
- let cursor = last.type === "leaf" ? last.targetId ?? null : last.id;
20
+ let cursor = last.id;
21
21
  while (cursor !== null && !onBranch.has(cursor)) {
22
22
  onBranch.add(cursor);
23
23
  cursor = byId.get(cursor)?.parentId ?? null;
@@ -136,8 +136,12 @@ var JsonSchema = z2.record(z2.string(), JsonValue);
136
136
  // packages/plugin-protocol/dist/common.js
137
137
  var KAY_PLUGIN_PROTOCOL_VERSION = "kay.plugin.v1";
138
138
  var KAY_PLUGIN_PROTOCOL_PACKAGE_NAME = "@bonsai/plugin-protocol";
139
- var KAY_PLUGIN_SDK_VERSION = "0.15.1";
140
- var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = ["0.15.0"];
139
+ var KAY_PLUGIN_SDK_VERSION = "0.15.3";
140
+ var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
141
+ "0.15.0",
142
+ "0.15.1",
143
+ "0.15.2"
144
+ ];
141
145
  var KAY_PLUGIN_TARGET_NAMES = [
142
146
  "kay.agent",
143
147
  "kay.app",
@@ -2781,7 +2785,9 @@ var KayUiAppHostCapability = z10.enum([
2781
2785
  "automations.read",
2782
2786
  "automations.run",
2783
2787
  // Grants exactly `panes.place` (see `WORKSPACE_VERB_TIERS`/`KayWorkspaceCommand` in
2784
- // `@bonsai/agent-runtime-protocol`) through the `kay.ui` capability broker's `workspace.place`.
2788
+ // `@bonsai/agent-runtime-protocol`) through the `kay.ui` capability broker's `workspace.place`,
2789
+ // and `workspace.openBeside`: one artifact in the shell's reference side pane beside the app's own
2790
+ // pane. `openBeside` is not a wire verb; it never adds a tab and never reaches another pane.
2785
2791
  "workspace.place-pane",
2786
2792
  // Grants presentation into the native header of the pane hosting this app instance.
2787
2793
  "workspace.pane-header",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "The Kay plugin manifest schema (`kay.plugin.v1`) — parse and validate a kay-plugin.json.",
5
5
  "author": "YakLabs",
6
6
  "type": "module",