@yaklabs-ai/plugin-protocol 0.42.0 → 0.42.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.42.0"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.42.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.42.0",
4
+ "version": "0.42.1",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [],
package/dist/index.d.ts CHANGED
@@ -48,6 +48,12 @@ export declare type AgentRuntimeSessionCreatorKind = (typeof AGENT_RUNTIME_SESSI
48
48
 
49
49
  export declare const AgentToolContribution: z.ZodObject<{
50
50
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
51
+ executionMode: z.ZodOptional<z.ZodEnum<{
52
+ sequential: "sequential";
53
+ parallel: "parallel";
54
+ }>>;
55
+ promptSnippet: z.ZodOptional<z.ZodString>;
56
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
57
  authService: z.ZodOptional<z.ZodString>;
52
58
  authScheme: z.ZodOptional<z.ZodString>;
53
59
  permission: z.ZodOptional<z.ZodObject<{
@@ -58,6 +64,8 @@ export declare const AgentToolContribution: z.ZodObject<{
58
64
  execute: "execute";
59
65
  }>;
60
66
  ruleKey: z.ZodOptional<z.ZodString>;
67
+ scheme: z.ZodOptional<z.ZodString>;
68
+ resourcePrefix: z.ZodOptional<z.ZodString>;
61
69
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
70
  }, z.core.$strict>>;
63
71
  localId: z.ZodString;
@@ -2041,10 +2049,18 @@ declare const canonicalContributionSchemas: {
2041
2049
  execute: "execute";
2042
2050
  }>;
2043
2051
  ruleKey: z.ZodOptional<z.ZodString>;
2052
+ scheme: z.ZodOptional<z.ZodString>;
2053
+ resourcePrefix: z.ZodOptional<z.ZodString>;
2044
2054
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2045
2055
  }, z.core.$strict>;
2046
2056
  AgentToolContribution: z.ZodObject<{
2047
2057
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
2058
+ executionMode: z.ZodOptional<z.ZodEnum<{
2059
+ sequential: "sequential";
2060
+ parallel: "parallel";
2061
+ }>>;
2062
+ promptSnippet: z.ZodOptional<z.ZodString>;
2063
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
2048
2064
  authService: z.ZodOptional<z.ZodString>;
2049
2065
  authScheme: z.ZodOptional<z.ZodString>;
2050
2066
  permission: z.ZodOptional<z.ZodObject<{
@@ -2055,6 +2071,8 @@ declare const canonicalContributionSchemas: {
2055
2071
  execute: "execute";
2056
2072
  }>;
2057
2073
  ruleKey: z.ZodOptional<z.ZodString>;
2074
+ scheme: z.ZodOptional<z.ZodString>;
2075
+ resourcePrefix: z.ZodOptional<z.ZodString>;
2058
2076
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2059
2077
  }, z.core.$strict>>;
2060
2078
  localId: z.ZodString;
@@ -4259,8 +4277,11 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
4259
4277
  * 0.42.0 hands background work the shared ResolvedCredential in auth.credential. Workflow
4260
4278
  * accounts carry auth resolution outcomes, and Poller callbacks receive only the credential.
4261
4279
  * Older SDK ranges are refused because their background success shape is no longer served.
4280
+ *
4281
+ * 0.42.1 adds current-session tool lifetimes and invocation-bound artifact reads/new outputs,
4282
+ * plus described-tool execution, guidance and permission resource metadata.
4262
4283
  */
4263
- export declare const KAY_PLUGIN_SDK_VERSION: "0.42.0";
4284
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.42.1";
4264
4285
 
4265
4286
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
4266
4287
 
@@ -4286,6 +4307,12 @@ export declare const KayAgentTargetManifest: z.ZodObject<{
4286
4307
  contributes: z.ZodOptional<z.ZodObject<{
4287
4308
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
4288
4309
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
4310
+ executionMode: z.ZodOptional<z.ZodEnum<{
4311
+ sequential: "sequential";
4312
+ parallel: "parallel";
4313
+ }>>;
4314
+ promptSnippet: z.ZodOptional<z.ZodString>;
4315
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
4289
4316
  authService: z.ZodOptional<z.ZodString>;
4290
4317
  authScheme: z.ZodOptional<z.ZodString>;
4291
4318
  permission: z.ZodOptional<z.ZodObject<{
@@ -4296,6 +4323,8 @@ export declare const KayAgentTargetManifest: z.ZodObject<{
4296
4323
  execute: "execute";
4297
4324
  }>;
4298
4325
  ruleKey: z.ZodOptional<z.ZodString>;
4326
+ scheme: z.ZodOptional<z.ZodString>;
4327
+ resourcePrefix: z.ZodOptional<z.ZodString>;
4299
4328
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
4300
4329
  }, z.core.$strict>>;
4301
4330
  localId: z.ZodString;
@@ -5067,6 +5096,12 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5067
5096
  contributes: z.ZodOptional<z.ZodObject<{
5068
5097
  tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
5069
5098
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
5099
+ executionMode: z.ZodOptional<z.ZodEnum<{
5100
+ sequential: "sequential";
5101
+ parallel: "parallel";
5102
+ }>>;
5103
+ promptSnippet: z.ZodOptional<z.ZodString>;
5104
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
5070
5105
  authService: z.ZodOptional<z.ZodString>;
5071
5106
  authScheme: z.ZodOptional<z.ZodString>;
5072
5107
  permission: z.ZodOptional<z.ZodObject<{
@@ -5077,6 +5112,8 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5077
5112
  execute: "execute";
5078
5113
  }>;
5079
5114
  ruleKey: z.ZodOptional<z.ZodString>;
5115
+ scheme: z.ZodOptional<z.ZodString>;
5116
+ resourcePrefix: z.ZodOptional<z.ZodString>;
5080
5117
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
5081
5118
  }, z.core.$strict>>;
5082
5119
  localId: z.ZodString;
@@ -7317,7 +7354,7 @@ export declare function parseSemver(value: string): ParsedSemver | undefined;
7317
7354
  export declare function parseWhere(source: string, keyTypes?: WhereKeyTypes): WhereParseResult;
7318
7355
 
7319
7356
  /** Every capability slug {@link PluginCapabilityClaimV1} can express, for exhaustive table checks. */
7320
- export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "memory.read", "memory.write", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "sessions.annotate", "sessions.compact", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "workflows.signals", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "knowledge-source.register", "artifacts.read", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
7357
+ export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "memory.read", "memory.write", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "sessions.annotate", "sessions.compact", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "workflows.signals", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "knowledge-source.register", "artifacts.read", "session-artifacts.read", "session-artifacts.create", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
7321
7358
 
7322
7359
  /** Diagnostic messages carry plugin-controlled text (parse errors, module errors); bound it so a
7323
7360
  * hostile or accidental multi-megabyte error can never blow up a log line or a render surface. */
@@ -7963,6 +8000,18 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
7963
8000
  envelope: {
7964
8001
  source: string;
7965
8002
  };
8003
+ } | {
8004
+ target: "kay.agent";
8005
+ slug: "session-artifacts.read";
8006
+ envelope: {
8007
+ kind: "output" | "upload";
8008
+ };
8009
+ } | {
8010
+ target: "kay.agent";
8011
+ slug: "session-artifacts.create";
8012
+ envelope: {
8013
+ kind: "output";
8014
+ };
7966
8015
  } | {
7967
8016
  target: "kay.app";
7968
8017
  slug: "artifacts.read";
@@ -8212,6 +8261,18 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
8212
8261
  envelope: {
8213
8262
  source: string;
8214
8263
  };
8264
+ } | {
8265
+ target: "kay.agent";
8266
+ slug: "session-artifacts.read";
8267
+ envelope: {
8268
+ kind: "output" | "upload";
8269
+ };
8270
+ } | {
8271
+ target: "kay.agent";
8272
+ slug: "session-artifacts.create";
8273
+ envelope: {
8274
+ kind: "output";
8275
+ };
8215
8276
  } | {
8216
8277
  target: "kay.app";
8217
8278
  slug: "artifacts.read";
@@ -8457,6 +8518,21 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
8457
8518
  envelope: z.ZodObject<{
8458
8519
  source: z.ZodString;
8459
8520
  }, z.core.$strict>;
8521
+ }, z.core.$strict>, z.ZodObject<{
8522
+ target: z.ZodLiteral<"kay.agent">;
8523
+ slug: z.ZodLiteral<"session-artifacts.read">;
8524
+ envelope: z.ZodObject<{
8525
+ kind: z.ZodEnum<{
8526
+ output: "output";
8527
+ upload: "upload";
8528
+ }>;
8529
+ }, z.core.$strict>;
8530
+ }, z.core.$strict>, z.ZodObject<{
8531
+ target: z.ZodLiteral<"kay.agent">;
8532
+ slug: z.ZodLiteral<"session-artifacts.create">;
8533
+ envelope: z.ZodObject<{
8534
+ kind: z.ZodLiteral<"output">;
8535
+ }, z.core.$strict>;
8460
8536
  }, z.core.$strict>, z.ZodObject<{
8461
8537
  target: z.ZodLiteral<"kay.app">;
8462
8538
  slug: z.ZodLiteral<"artifacts.read">;
@@ -8745,6 +8821,21 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
8745
8821
  envelope: z.ZodObject<{
8746
8822
  source: z.ZodString;
8747
8823
  }, z.core.$strict>;
8824
+ }, z.core.$strict>, z.ZodObject<{
8825
+ target: z.ZodLiteral<"kay.agent">;
8826
+ slug: z.ZodLiteral<"session-artifacts.read">;
8827
+ envelope: z.ZodObject<{
8828
+ kind: z.ZodEnum<{
8829
+ output: "output";
8830
+ upload: "upload";
8831
+ }>;
8832
+ }, z.core.$strict>;
8833
+ }, z.core.$strict>, z.ZodObject<{
8834
+ target: z.ZodLiteral<"kay.agent">;
8835
+ slug: z.ZodLiteral<"session-artifacts.create">;
8836
+ envelope: z.ZodObject<{
8837
+ kind: z.ZodLiteral<"output">;
8838
+ }, z.core.$strict>;
8748
8839
  }, z.core.$strict>, z.ZodObject<{
8749
8840
  target: z.ZodLiteral<"kay.app">;
8750
8841
  slug: z.ZodLiteral<"artifacts.read">;
@@ -9032,6 +9123,21 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
9032
9123
  envelope: z.ZodObject<{
9033
9124
  source: z.ZodString;
9034
9125
  }, z.core.$strict>;
9126
+ }, z.core.$strict>, z.ZodObject<{
9127
+ target: z.ZodLiteral<"kay.agent">;
9128
+ slug: z.ZodLiteral<"session-artifacts.read">;
9129
+ envelope: z.ZodObject<{
9130
+ kind: z.ZodEnum<{
9131
+ output: "output";
9132
+ upload: "upload";
9133
+ }>;
9134
+ }, z.core.$strict>;
9135
+ }, z.core.$strict>, z.ZodObject<{
9136
+ target: z.ZodLiteral<"kay.agent">;
9137
+ slug: z.ZodLiteral<"session-artifacts.create">;
9138
+ envelope: z.ZodObject<{
9139
+ kind: z.ZodLiteral<"output">;
9140
+ }, z.core.$strict>;
9035
9141
  }, z.core.$strict>, z.ZodObject<{
9036
9142
  target: z.ZodLiteral<"kay.app">;
9037
9143
  slug: z.ZodLiteral<"artifacts.read">;
@@ -9353,6 +9459,21 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
9353
9459
  envelope: z.ZodObject<{
9354
9460
  source: z.ZodString;
9355
9461
  }, z.core.$strict>;
9462
+ }, z.core.$strict>, z.ZodObject<{
9463
+ target: z.ZodLiteral<"kay.agent">;
9464
+ slug: z.ZodLiteral<"session-artifacts.read">;
9465
+ envelope: z.ZodObject<{
9466
+ kind: z.ZodEnum<{
9467
+ output: "output";
9468
+ upload: "upload";
9469
+ }>;
9470
+ }, z.core.$strict>;
9471
+ }, z.core.$strict>, z.ZodObject<{
9472
+ target: z.ZodLiteral<"kay.agent">;
9473
+ slug: z.ZodLiteral<"session-artifacts.create">;
9474
+ envelope: z.ZodObject<{
9475
+ kind: z.ZodLiteral<"output">;
9476
+ }, z.core.$strict>;
9356
9477
  }, z.core.$strict>, z.ZodObject<{
9357
9478
  target: z.ZodLiteral<"kay.app">;
9358
9479
  slug: z.ZodLiteral<"artifacts.read">;
@@ -10997,6 +11118,12 @@ export declare const ResolvedKayAgentTool: z.ZodObject<{
10997
11118
  displayName: z.ZodOptional<z.ZodString>;
10998
11119
  description: z.ZodOptional<z.ZodString>;
10999
11120
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
11121
+ executionMode: z.ZodOptional<z.ZodEnum<{
11122
+ sequential: "sequential";
11123
+ parallel: "parallel";
11124
+ }>>;
11125
+ promptSnippet: z.ZodOptional<z.ZodString>;
11126
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
11000
11127
  requiresAuth: z.ZodOptional<z.ZodObject<{
11001
11128
  serviceId: z.ZodString;
11002
11129
  schemeId: z.ZodOptional<z.ZodString>;
@@ -11009,6 +11136,8 @@ export declare const ResolvedKayAgentTool: z.ZodObject<{
11009
11136
  execute: "execute";
11010
11137
  }>;
11011
11138
  ruleKey: z.ZodOptional<z.ZodString>;
11139
+ scheme: z.ZodOptional<z.ZodString>;
11140
+ resourcePrefix: z.ZodOptional<z.ZodString>;
11012
11141
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
11013
11142
  }, z.core.$strict>>;
11014
11143
  localId: z.ZodString;
@@ -12434,6 +12563,12 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12434
12563
  displayName: z.ZodOptional<z.ZodString>;
12435
12564
  description: z.ZodOptional<z.ZodString>;
12436
12565
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
12566
+ executionMode: z.ZodOptional<z.ZodEnum<{
12567
+ sequential: "sequential";
12568
+ parallel: "parallel";
12569
+ }>>;
12570
+ promptSnippet: z.ZodOptional<z.ZodString>;
12571
+ promptGuidelines: z.ZodOptional<z.ZodArray<z.ZodString>>;
12437
12572
  requiresAuth: z.ZodOptional<z.ZodObject<{
12438
12573
  serviceId: z.ZodString;
12439
12574
  schemeId: z.ZodOptional<z.ZodString>;
@@ -12446,6 +12581,8 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12446
12581
  execute: "execute";
12447
12582
  }>;
12448
12583
  ruleKey: z.ZodOptional<z.ZodString>;
12584
+ scheme: z.ZodOptional<z.ZodString>;
12585
+ resourcePrefix: z.ZodOptional<z.ZodString>;
12449
12586
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
12450
12587
  }, z.core.$strict>>;
12451
12588
  localId: z.ZodString;
@@ -14282,6 +14419,8 @@ export declare const ToolPermission: z.ZodObject<{
14282
14419
  execute: "execute";
14283
14420
  }>;
14284
14421
  ruleKey: z.ZodOptional<z.ZodString>;
14422
+ scheme: z.ZodOptional<z.ZodString>;
14423
+ resourcePrefix: z.ZodOptional<z.ZodString>;
14285
14424
  resourceArgs: z.ZodOptional<z.ZodArray<z.ZodString>>;
14286
14425
  }, z.core.$strict>;
14287
14426
 
package/dist/index.js CHANGED
@@ -254,7 +254,7 @@ 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.42.0";
257
+ var KAY_PLUGIN_SDK_VERSION = "0.42.1";
258
258
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [];
259
259
  var KAY_PLUGIN_TARGET_NAMES = [
260
260
  "kay.agent",
@@ -1750,6 +1750,8 @@ var PLUGIN_CAPABILITY_SLUGS = [
1750
1750
  "app-data.register",
1751
1751
  "knowledge-source.register",
1752
1752
  "artifacts.read",
1753
+ "session-artifacts.read",
1754
+ "session-artifacts.create",
1753
1755
  "account.assert",
1754
1756
  "account.update",
1755
1757
  "agents.permissions",
@@ -2032,6 +2034,16 @@ function createAuthoritySchemas(canonical) {
2032
2034
  /** The declared `contributes.dataSources` localId. */
2033
2035
  envelope: z10.strictObject({ source: NonEmptyString3 })
2034
2036
  }),
2037
+ z10.strictObject({
2038
+ target: z10.literal("kay.agent"),
2039
+ slug: z10.literal("session-artifacts.read"),
2040
+ envelope: z10.strictObject({ kind: z10.enum(["upload", "output"]) })
2041
+ }),
2042
+ z10.strictObject({
2043
+ target: z10.literal("kay.agent"),
2044
+ slug: z10.literal("session-artifacts.create"),
2045
+ envelope: z10.strictObject({ kind: z10.literal("output") })
2046
+ }),
2035
2047
  z10.strictObject({
2036
2048
  target: z10.literal("kay.app"),
2037
2049
  slug: z10.literal("artifacts.read"),
@@ -2261,8 +2273,10 @@ function sameClaim(a, b) {
2261
2273
  return b.slug === "interaction.surface" && a.envelope.surface === b.envelope.surface;
2262
2274
  case "dynamic-context.register":
2263
2275
  return b.slug === "dynamic-context.register" && a.envelope.contributor === b.envelope.contributor;
2276
+ case "session-artifacts.read":
2277
+ case "session-artifacts.create":
2264
2278
  case "artifacts.read":
2265
- return b.slug === "artifacts.read" && a.envelope.kind === b.envelope.kind;
2279
+ return b.slug === a.slug && a.envelope.kind === b.envelope.kind;
2266
2280
  case "knowledge-source.register":
2267
2281
  return b.slug === "knowledge-source.register" && a.envelope.source === b.envelope.source;
2268
2282
  case "app-data.register":
@@ -2352,8 +2366,10 @@ function envelopePairs(a, b) {
2352
2366
  return b.slug === "interaction.surface" ? [[a.envelope.surface, b.envelope.surface]] : [];
2353
2367
  case "dynamic-context.register":
2354
2368
  return b.slug === "dynamic-context.register" ? [[a.envelope.contributor, b.envelope.contributor]] : [];
2369
+ case "session-artifacts.read":
2370
+ case "session-artifacts.create":
2355
2371
  case "artifacts.read":
2356
- return b.slug === "artifacts.read" ? [[a.envelope.kind, b.envelope.kind]] : [];
2372
+ return b.slug === a.slug ? [[a.envelope.kind, b.envelope.kind]] : [];
2357
2373
  case "knowledge-source.register":
2358
2374
  return b.slug === "knowledge-source.register" ? [[a.envelope.source, b.envelope.source]] : [];
2359
2375
  case "app-data.register":
@@ -3227,12 +3243,17 @@ function createContributionsSchemas(canonical) {
3227
3243
  const ToolPermission2 = z12.strictObject({
3228
3244
  kind: z12.enum(["read", "mutate", "destructive", "execute"]),
3229
3245
  ruleKey: NonEmptyString3.optional(),
3246
+ scheme: NonEmptyString3.optional(),
3247
+ resourcePrefix: z12.string().max(256).optional(),
3230
3248
  // Arguments whose string values name the resources a call touches.
3231
3249
  resourceArgs: z12.array(NonEmptyString3).min(1).optional()
3232
3250
  });
3233
3251
  const AgentToolContribution2 = z12.strictObject({
3234
3252
  ...ToolContribution2.shape,
3235
3253
  parameters: JsonSchema.optional(),
3254
+ executionMode: z12.enum(["sequential", "parallel"]).optional(),
3255
+ promptSnippet: NonEmptyString3.optional(),
3256
+ promptGuidelines: z12.array(NonEmptyString3).optional(),
3236
3257
  // A local ref names an auth service declared in this manifest; a dotted ref names another
3237
3258
  // plugin's service, as `UriModuleContribution.authService` does.
3238
3259
  authService: AuthServiceReference2.optional(),
@@ -5804,6 +5825,9 @@ function createResolvedContractSchemas(canonical) {
5804
5825
  displayName: NonEmptyString3.optional(),
5805
5826
  description: NonEmptyString3.optional(),
5806
5827
  parameters: JsonSchema.optional(),
5828
+ executionMode: z14.enum(["sequential", "parallel"]).optional(),
5829
+ promptSnippet: NonEmptyString3.optional(),
5830
+ promptGuidelines: z14.array(NonEmptyString3).optional(),
5807
5831
  requiresAuth: z14.strictObject({
5808
5832
  serviceId: GlobalContributionId2,
5809
5833
  schemeId: GlobalContributionId2.optional()
@@ -6456,6 +6480,9 @@ function resolveKayPluginContractV1(manifest) {
6456
6480
  ...tool.displayName === void 0 ? {} : { displayName: tool.displayName },
6457
6481
  ...tool.description === void 0 ? {} : { description: tool.description },
6458
6482
  ...tool.parameters === void 0 ? {} : { parameters: tool.parameters },
6483
+ ...tool.executionMode === void 0 ? {} : { executionMode: tool.executionMode },
6484
+ ...tool.promptSnippet === void 0 ? {} : { promptSnippet: tool.promptSnippet },
6485
+ ...tool.promptGuidelines === void 0 ? {} : { promptGuidelines: tool.promptGuidelines },
6459
6486
  ...tool.authService === void 0 ? {} : {
6460
6487
  requiresAuth: {
6461
6488
  serviceId: isQualifiedAuthServiceRef(tool.authService) ? tool.authService : resolveGlobalContributionId(namespace, tool.authService),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.42.0",
3
+ "version": "0.42.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",