@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 +1 -1
- package/THIRD-PARTY-INVENTORY.json +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
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.
|
|
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.
|
|
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.
|
|
140
|
-
var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
|
|
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