@yaklabs-ai/plugin-protocol 0.15.1 → 0.15.2

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.2"
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.2",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -2442,8 +2442,13 @@ 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.
2445
2450
  */
2446
- export declare const KAY_PLUGIN_SDK_VERSION: "0.15.1";
2451
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.15.2";
2447
2452
 
2448
2453
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2449
2454
 
@@ -9360,7 +9365,6 @@ export declare function turnPacket(entries: readonly TurnPacketEntry[], settleEn
9360
9365
  export declare interface TurnPacketEntry {
9361
9366
  readonly id: string;
9362
9367
  readonly parentId?: string | null;
9363
- readonly targetId?: string | null;
9364
9368
  readonly type: string;
9365
9369
  readonly customType?: string;
9366
9370
  /** 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,11 @@ 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.2";
140
+ var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
141
+ "0.15.0",
142
+ "0.15.1"
143
+ ];
141
144
  var KAY_PLUGIN_TARGET_NAMES = [
142
145
  "kay.agent",
143
146
  "kay.app",
@@ -2781,7 +2784,9 @@ var KayUiAppHostCapability = z10.enum([
2781
2784
  "automations.read",
2782
2785
  "automations.run",
2783
2786
  // Grants exactly `panes.place` (see `WORKSPACE_VERB_TIERS`/`KayWorkspaceCommand` in
2784
- // `@bonsai/agent-runtime-protocol`) through the `kay.ui` capability broker's `workspace.place`.
2787
+ // `@bonsai/agent-runtime-protocol`) through the `kay.ui` capability broker's `workspace.place`,
2788
+ // and `workspace.openBeside`: one artifact in the shell's reference side pane beside the app's own
2789
+ // pane. `openBeside` is not a wire verb; it never adds a tab and never reaches another pane.
2785
2790
  "workspace.place-pane",
2786
2791
  // Grants presentation into the native header of the pane hosting this app instance.
2787
2792
  "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.2",
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",