@yaklabs-ai/plugin-protocol 0.15.0 → 0.15.1

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.0"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.15.1"
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.0",
4
+ "version": "0.15.1",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -327,6 +327,7 @@ export declare const ArtifactProvenanceCaptureContextSchema: z.ZodObject<{
327
327
  cron: "cron";
328
328
  occurrence: "occurrence";
329
329
  "uri-change": "uri-change";
330
+ "plugin-event": "plugin-event";
330
331
  manual: "manual";
331
332
  }>;
332
333
  }, z.core.$strict>, z.ZodObject<{
@@ -715,6 +716,7 @@ export declare const ArtifactProvenanceEnvelopeV1: z.ZodPipe<z.ZodUnknown, z.Zod
715
716
  cron: "cron";
716
717
  occurrence: "occurrence";
717
718
  "uri-change": "uri-change";
719
+ "plugin-event": "plugin-event";
718
720
  manual: "manual";
719
721
  }>;
720
722
  }, z.core.$strict>, z.ZodObject<{
@@ -1127,6 +1129,7 @@ export declare const ArtifactProvenanceSession: z.ZodObject<{
1127
1129
  cron: "cron";
1128
1130
  occurrence: "occurrence";
1129
1131
  "uri-change": "uri-change";
1132
+ "plugin-event": "plugin-event";
1130
1133
  manual: "manual";
1131
1134
  }>;
1132
1135
  }, z.core.$strict>, z.ZodObject<{
@@ -2435,9 +2438,12 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2435
2438
  * resolving credentials. Plugins using list declare `^0.14.1` so older hosts refuse at load.
2436
2439
  *
2437
2440
  * 0.15.0 replaces plugin-event publish arguments and requires resource URI declarations.
2438
- * Older SDK contracts are no longer retained: their publishers cannot satisfy this contract.
2441
+ * Pre-0.15 SDK contracts are no longer retained: their publishers cannot satisfy this contract.
2442
+ *
2443
+ * 0.15.1 adds plugin-event automation conditions and public event-identity run matches.
2444
+ * The host retains 0.15.0; plugins using the new condition declare ^0.15.1.
2439
2445
  */
2440
- export declare const KAY_PLUGIN_SDK_VERSION: "0.15.0";
2446
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.15.1";
2441
2447
 
2442
2448
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2443
2449
 
@@ -8733,6 +8739,7 @@ export declare const SessionCreator: z.ZodDiscriminatedUnion<[z.ZodObject<{
8733
8739
  cron: "cron";
8734
8740
  occurrence: "occurrence";
8735
8741
  "uri-change": "uri-change";
8742
+ "plugin-event": "plugin-event";
8736
8743
  manual: "manual";
8737
8744
  }>;
8738
8745
  }, z.core.$strict>, z.ZodObject<{
@@ -8877,6 +8884,7 @@ export declare const SessionProvenanceRecord: z.ZodObject<{
8877
8884
  cron: "cron";
8878
8885
  occurrence: "occurrence";
8879
8886
  "uri-change": "uri-change";
8887
+ "plugin-event": "plugin-event";
8880
8888
  manual: "manual";
8881
8889
  }>;
8882
8890
  }, z.core.$strict>, z.ZodObject<{
package/dist/index.js CHANGED
@@ -136,8 +136,8 @@ 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.0";
140
- var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [];
139
+ var KAY_PLUGIN_SDK_VERSION = "0.15.1";
140
+ var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = ["0.15.0"];
141
141
  var KAY_PLUGIN_TARGET_NAMES = [
142
142
  "kay.agent",
143
143
  "kay.app",
@@ -294,15 +294,7 @@ var SessionCreator = z5.discriminatedUnion("kind", [
294
294
  door: SdkSessionDoor,
295
295
  callerSessionId: SessionId.optional()
296
296
  }),
297
- /**
298
- * An automation binding that fired.
299
- *
300
- * `triggerKind` names what the binding matched on, and `uri-change` is in the list because a
301
- * durable watcher is a real condition kind (`@bonsai/automations`'s `AutomationMatch`) with no
302
- * spelling among the other four: it watches the world OUTSIDE the session, so it is neither a
303
- * schedule nor a session-fact occurrence. Added 2026-08-19, when the automation producers
304
- * landed and a watcher's report session had nothing honest to stamp.
305
- */
297
+ /** An automation binding that fired; the run id links its durable execution. */
306
298
  z5.strictObject({
307
299
  kind: z5.literal("trigger"),
308
300
  automationId: NonEmptyString2,
@@ -314,7 +306,14 @@ var SessionCreator = z5.discriminatedUnion("kind", [
314
306
  */
315
307
  runId: NonEmptyString2.optional(),
316
308
  bindingName: NonEmptyString2,
317
- triggerKind: z5.enum(["cron", "time", "occurrence", "uri-change", "manual"])
309
+ triggerKind: z5.enum([
310
+ "cron",
311
+ "time",
312
+ "occurrence",
313
+ "uri-change",
314
+ "plugin-event",
315
+ "manual"
316
+ ])
318
317
  }),
319
318
  /** The daemon itself, for one of its own capabilities. */
320
319
  z5.strictObject({ kind: z5.literal("daemon"), capability: NonEmptyString2 })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
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",