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