@yaklabs-ai/plugin-protocol 0.43.0 → 0.44.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
- "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.43.0"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.44.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.43.0",
4
+ "version": "0.44.0",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -2741,6 +2741,15 @@ declare const canonicalContributionSchemas: {
2741
2741
  plugin: "plugin";
2742
2742
  }>>;
2743
2743
  kind: z.ZodOptional<z.ZodString>;
2744
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
2745
+ pattern: z.ZodObject<{
2746
+ protocol: z.ZodString;
2747
+ hostname: z.ZodString;
2748
+ pathname: z.ZodOptional<z.ZodString>;
2749
+ search: z.ZodOptional<z.ZodString>;
2750
+ }, z.core.$strict>;
2751
+ kind: z.ZodString;
2752
+ }, z.core.$strict>>>;
2744
2753
  noun: z.ZodOptional<z.ZodString>;
2745
2754
  target: z.ZodOptional<z.ZodString>;
2746
2755
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -2823,6 +2832,15 @@ declare const canonicalContributionSchemas: {
2823
2832
  plugin: "plugin";
2824
2833
  }>>;
2825
2834
  kind: z.ZodOptional<z.ZodString>;
2835
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
2836
+ pattern: z.ZodObject<{
2837
+ protocol: z.ZodString;
2838
+ hostname: z.ZodString;
2839
+ pathname: z.ZodOptional<z.ZodString>;
2840
+ search: z.ZodOptional<z.ZodString>;
2841
+ }, z.core.$strict>;
2842
+ kind: z.ZodString;
2843
+ }, z.core.$strict>>>;
2826
2844
  noun: z.ZodOptional<z.ZodString>;
2827
2845
  target: z.ZodOptional<z.ZodString>;
2828
2846
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -4294,8 +4312,11 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
4294
4312
  *
4295
4313
  * 0.43.0 adds product events (#15769). `productEvents` in a plugin's `kay.app` target declares them,
4296
4314
  * and `app.productEvents.send` sends them. Additive: a plugin that declares one declares ^0.43.0.
4315
+ *
4316
+ * 0.44.0 adds `words.kinds` to a reference presentation (#15905): an ordered list of address patterns
4317
+ * and the kind each one names. Additive: a plugin that lists them declares ^0.44.0.
4297
4318
  */
4298
- export declare const KAY_PLUGIN_SDK_VERSION: "0.43.0";
4319
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.44.0";
4299
4320
 
4300
4321
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
4301
4322
 
@@ -5903,6 +5924,15 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5903
5924
  plugin: "plugin";
5904
5925
  }>>;
5905
5926
  kind: z.ZodOptional<z.ZodString>;
5927
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
5928
+ pattern: z.ZodObject<{
5929
+ protocol: z.ZodString;
5930
+ hostname: z.ZodString;
5931
+ pathname: z.ZodOptional<z.ZodString>;
5932
+ search: z.ZodOptional<z.ZodString>;
5933
+ }, z.core.$strict>;
5934
+ kind: z.ZodString;
5935
+ }, z.core.$strict>>>;
5906
5936
  noun: z.ZodOptional<z.ZodString>;
5907
5937
  target: z.ZodOptional<z.ZodString>;
5908
5938
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -7060,6 +7090,15 @@ export declare const KayUiTargetManifest: z.ZodObject<{
7060
7090
  plugin: "plugin";
7061
7091
  }>>;
7062
7092
  kind: z.ZodOptional<z.ZodString>;
7093
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
7094
+ pattern: z.ZodObject<{
7095
+ protocol: z.ZodString;
7096
+ hostname: z.ZodString;
7097
+ pathname: z.ZodOptional<z.ZodString>;
7098
+ search: z.ZodOptional<z.ZodString>;
7099
+ }, z.core.$strict>;
7100
+ kind: z.ZodString;
7101
+ }, z.core.$strict>>>;
7063
7102
  noun: z.ZodOptional<z.ZodString>;
7064
7103
  target: z.ZodOptional<z.ZodString>;
7065
7104
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -10938,6 +10977,15 @@ export declare const ReferencePresentationContribution: z.ZodObject<{
10938
10977
  plugin: "plugin";
10939
10978
  }>>;
10940
10979
  kind: z.ZodOptional<z.ZodString>;
10980
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
10981
+ pattern: z.ZodObject<{
10982
+ protocol: z.ZodString;
10983
+ hostname: z.ZodString;
10984
+ pathname: z.ZodOptional<z.ZodString>;
10985
+ search: z.ZodOptional<z.ZodString>;
10986
+ }, z.core.$strict>;
10987
+ kind: z.ZodString;
10988
+ }, z.core.$strict>>>;
10941
10989
  noun: z.ZodOptional<z.ZodString>;
10942
10990
  target: z.ZodOptional<z.ZodString>;
10943
10991
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -11024,6 +11072,15 @@ export declare const ReferencePresentationWords: z.ZodObject<{
11024
11072
  plugin: "plugin";
11025
11073
  }>>;
11026
11074
  kind: z.ZodOptional<z.ZodString>;
11075
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
11076
+ pattern: z.ZodObject<{
11077
+ protocol: z.ZodString;
11078
+ hostname: z.ZodString;
11079
+ pathname: z.ZodOptional<z.ZodString>;
11080
+ search: z.ZodOptional<z.ZodString>;
11081
+ }, z.core.$strict>;
11082
+ kind: z.ZodString;
11083
+ }, z.core.$strict>>>;
11027
11084
  noun: z.ZodOptional<z.ZodString>;
11028
11085
  target: z.ZodOptional<z.ZodString>;
11029
11086
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -12927,6 +12984,15 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12927
12984
  plugin: "plugin";
12928
12985
  }>>;
12929
12986
  kind: z.ZodOptional<z.ZodString>;
12987
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
12988
+ pattern: z.ZodObject<{
12989
+ protocol: z.ZodString;
12990
+ hostname: z.ZodString;
12991
+ pathname: z.ZodOptional<z.ZodString>;
12992
+ search: z.ZodOptional<z.ZodString>;
12993
+ }, z.core.$strict>;
12994
+ kind: z.ZodString;
12995
+ }, z.core.$strict>>>;
12930
12996
  noun: z.ZodOptional<z.ZodString>;
12931
12997
  target: z.ZodOptional<z.ZodString>;
12932
12998
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
@@ -13437,6 +13503,15 @@ export declare const ResolvedReferencePresentation: z.ZodObject<{
13437
13503
  plugin: "plugin";
13438
13504
  }>>;
13439
13505
  kind: z.ZodOptional<z.ZodString>;
13506
+ kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
13507
+ pattern: z.ZodObject<{
13508
+ protocol: z.ZodString;
13509
+ hostname: z.ZodString;
13510
+ pathname: z.ZodOptional<z.ZodString>;
13511
+ search: z.ZodOptional<z.ZodString>;
13512
+ }, z.core.$strict>;
13513
+ kind: z.ZodString;
13514
+ }, z.core.$strict>>>;
13440
13515
  noun: z.ZodOptional<z.ZodString>;
13441
13516
  target: z.ZodOptional<z.ZodString>;
13442
13517
  kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
package/dist/index.js CHANGED
@@ -254,10 +254,11 @@ var JsonSchema = z4.record(z4.string(), JsonValue);
254
254
  var KAY_PLUGIN_MANIFEST_SIZE_CAP_BYTES = 1024 * 1024;
255
255
  var KAY_PLUGIN_PROTOCOL_VERSION = "kay.plugin.v1";
256
256
  var KAY_PLUGIN_PROTOCOL_PACKAGE_NAME = "@bonsai/plugin-protocol";
257
- var KAY_PLUGIN_SDK_VERSION = "0.43.0";
257
+ var KAY_PLUGIN_SDK_VERSION = "0.44.0";
258
258
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
259
259
  "0.42.0",
260
- "0.42.1"
260
+ "0.42.1",
261
+ "0.43.0"
261
262
  ];
262
263
  var KAY_PLUGIN_TARGET_NAMES = [
263
264
  "kay.agent",
@@ -3853,6 +3854,14 @@ function createContributionsSchemas(canonical) {
3853
3854
  glyph: z12.enum(TOOL_GLYPHS).optional(),
3854
3855
  /** The thing an address names ("channel" in "Read Slack channel"). Left out: the row reads the scheme's own name. */
3855
3856
  kind: NonEmptyString3.optional(),
3857
+ /**
3858
+ * A more specific kind by the address's shape. The first row that matches decides, and an
3859
+ * address no row matches reads `kind`.
3860
+ */
3861
+ kinds: z12.array(z12.strictObject({
3862
+ pattern: ReferencePresentationUriPattern2,
3863
+ kind: NonEmptyString3
3864
+ })).min(1).optional(),
3856
3865
  /** What a tally counts one address as ("Slack message"). Left out: `kind`, else "item". */
3857
3866
  noun: NonEmptyString3.optional(),
3858
3867
  /** What the live phrase names ("Slack" in "Reading Slack"). Left out: the bare verb ("Reading"). */
@@ -3860,11 +3869,11 @@ function createContributionsSchemas(canonical) {
3860
3869
  /** `kind` already says which source this is: "Edited plan", not "Edited Plan plan". */
3861
3870
  kindNamesSource: z12.literal(true).optional()
3862
3871
  }).superRefine((value, ctx) => {
3863
- if (value.kind === void 0 && (value.glyph !== void 0 || value.kindNamesSource !== void 0)) {
3872
+ if (value.kind === void 0 && (value.glyph !== void 0 || value.kindNamesSource !== void 0 || value.kinds !== void 0)) {
3864
3873
  ctx.addIssue({
3865
3874
  code: "custom",
3866
3875
  path: ["kind"],
3867
- message: "glyph and kindNamesSource describe a row, which needs a kind."
3876
+ message: "glyph, kinds and kindNamesSource describe a row, which needs a kind."
3868
3877
  });
3869
3878
  }
3870
3879
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.43.0",
3
+ "version": "0.44.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",