@yaklabs-ai/plugin-protocol 0.10.0 → 0.11.0

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
- "@kay/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.10.0"
14
+ "@kay/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.11.0"
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.10.0",
4
+ "version": "0.11.0",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -1935,7 +1935,7 @@ export declare const KAY_APP_DATA_SNAPSHOT_MAX_BYTES: number;
1935
1935
  export declare const KAY_EVENT_PUBLISHER_ID: "kay";
1936
1936
 
1937
1937
  /** Released SDK contracts still implemented by the host, alongside its current SDK. */
1938
- export declare const KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS: readonly ["0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1"];
1938
+ export declare const KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS: readonly ["0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.10.0"];
1939
1939
 
1940
1940
  export declare const KAY_PLUGIN_PROTOCOL_PACKAGE_NAME: "@kay/plugin-protocol";
1941
1941
 
@@ -2061,8 +2061,16 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2061
2061
  * `app.automations.create` with a `spawn-session` effect now throws
2062
2062
  * explicitly at the call site instead of being accepted, for any plugin
2063
2063
  * regardless of its declared SDK range.
2064
+ *
2065
+ * 0.11.0 adds `producedResources` to `KayAppAutomationRunDetail` (every URI a
2066
+ * run wrote, edited or declared, as one list deduplicated by URI) and the
2067
+ * `produced-resource-unnamed` member to `KayAppProvenanceGapCode`. An
2068
+ * authoring-type break only: code that builds a run detail must supply the
2069
+ * new list, and an exhaustive switch over gap codes must handle the new one.
2070
+ * 0.10.0 stays in the runtime-contract retention list below, because a plugin
2071
+ * compiled against it reads the same run detail and simply ignores the list.
2064
2072
  */
2065
- export declare const KAY_PLUGIN_SDK_VERSION: "0.10.0";
2073
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.11.0";
2066
2074
 
2067
2075
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2068
2076
 
@@ -3617,6 +3625,7 @@ export declare const PluginAgentDefinitionPermissionRule: z.ZodObject<{
3617
3625
  default: "default";
3618
3626
  allow: "allow";
3619
3627
  ask: "ask";
3628
+ auto: "auto";
3620
3629
  }>>;
3621
3630
  }, z.core.$strict>;
3622
3631
 
@@ -4096,6 +4105,7 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
4096
4105
  default: "default";
4097
4106
  allow: "allow";
4098
4107
  ask: "ask";
4108
+ auto: "auto";
4099
4109
  }>>;
4100
4110
  }, z.core.$strict>>;
4101
4111
  fallback: z.ZodArray<z.ZodObject<{
@@ -4112,6 +4122,7 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
4112
4122
  default: "default";
4113
4123
  allow: "allow";
4114
4124
  ask: "ask";
4125
+ auto: "auto";
4115
4126
  }>>;
4116
4127
  }, z.core.$strict>>;
4117
4128
  }, z.core.$strict>;
@@ -4301,6 +4312,7 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
4301
4312
  default: "default";
4302
4313
  allow: "allow";
4303
4314
  ask: "ask";
4315
+ auto: "auto";
4304
4316
  }>>;
4305
4317
  }, z.core.$strict>>;
4306
4318
  fallback: z.ZodArray<z.ZodObject<{
@@ -4317,6 +4329,7 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
4317
4329
  default: "default";
4318
4330
  allow: "allow";
4319
4331
  ask: "ask";
4332
+ auto: "auto";
4320
4333
  }>>;
4321
4334
  }, z.core.$strict>>;
4322
4335
  }, z.core.$strict>;
@@ -4501,6 +4514,7 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
4501
4514
  default: "default";
4502
4515
  allow: "allow";
4503
4516
  ask: "ask";
4517
+ auto: "auto";
4504
4518
  }>>;
4505
4519
  }, z.core.$strict>>;
4506
4520
  fallback: z.ZodArray<z.ZodObject<{
@@ -4517,6 +4531,7 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
4517
4531
  default: "default";
4518
4532
  allow: "allow";
4519
4533
  ask: "ask";
4534
+ auto: "auto";
4520
4535
  }>>;
4521
4536
  }, z.core.$strict>>;
4522
4537
  }, z.core.$strict>;
@@ -4764,6 +4779,7 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
4764
4779
  default: "default";
4765
4780
  allow: "allow";
4766
4781
  ask: "ask";
4782
+ auto: "auto";
4767
4783
  }>>;
4768
4784
  }, z.core.$strict>>;
4769
4785
  fallback: z.ZodArray<z.ZodObject<{
@@ -4780,6 +4796,7 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
4780
4796
  default: "default";
4781
4797
  allow: "allow";
4782
4798
  ask: "ask";
4799
+ auto: "auto";
4783
4800
  }>>;
4784
4801
  }, z.core.$strict>>;
4785
4802
  }, z.core.$strict>;
package/dist/index.js CHANGED
@@ -115,7 +115,7 @@ import { z as z2 } from "zod";
115
115
  import { z } from "zod";
116
116
  var KAY_PLUGIN_PROTOCOL_VERSION = "kay.plugin.v1";
117
117
  var KAY_PLUGIN_PROTOCOL_PACKAGE_NAME = "@kay/plugin-protocol";
118
- var KAY_PLUGIN_SDK_VERSION = "0.10.0";
118
+ var KAY_PLUGIN_SDK_VERSION = "0.11.0";
119
119
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
120
120
  "0.8.0",
121
121
  "0.8.1",
@@ -124,7 +124,8 @@ var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
124
124
  "0.8.4",
125
125
  "0.8.5",
126
126
  "0.9.0",
127
- "0.9.1"
127
+ "0.9.1",
128
+ "0.10.0"
128
129
  ];
129
130
  var KAY_PLUGIN_TARGET_NAMES = [
130
131
  "kay.agent",
@@ -1292,7 +1293,7 @@ var PluginAgentDefinitionPermissionRule = z5.strictObject({
1292
1293
  /** Restrict to matching resources (a path glob, or a URI-shaped policy address). */
1293
1294
  resource: NonEmptyString.optional(),
1294
1295
  /** Restrict the rule to one permission mode; omit to apply in all modes. */
1295
- mode: z5.enum(["default", "ask", "allow"]).optional()
1296
+ mode: z5.enum(["default", "ask", "allow", "auto"]).optional()
1296
1297
  });
1297
1298
  var RETIRED_PERMISSION_ASK_KEYS = [
1298
1299
  "network",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
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",