@yaklabs-ai/plugin-protocol 0.55.5 → 0.55.7

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.55.5"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.55.7"
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.55.5",
4
+ "version": "0.55.7",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
package/dist/index.d.ts CHANGED
@@ -4977,8 +4977,17 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
4977
4977
  * and each write names the newest entry it was computed from, so a write from a stale base is
4978
4978
  * answered with the newest one instead of landing (compaction plan, phase 2). Additive; plugins
4979
4979
  * calling them declare ^0.55.5.
4980
+ *
4981
+ * 0.55.6 adds the `contributes.resetText { entry }` manifest field under the new private
4982
+ * `compaction.reset-text` claim, and the `ResetTextEntry` shape the declared state entry holds: the
4983
+ * working state a reset may use in place of the summary (compaction plan, phase 2). Additive; a
4984
+ * plugin declaring it declares ^0.55.6.
4985
+ *
4986
+ * 0.55.7 adds `compositionMatched` to the outcome of a forked `app.agents.run`: whether the child
4987
+ * composed like its parent, so its first request could read the parent's cached prefix (compaction
4988
+ * plan, phase 2). Additive; a plugin reading it declares ^0.55.7.
4980
4989
  */
4981
- export declare const KAY_PLUGIN_SDK_VERSION: "0.55.5";
4990
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.55.7";
4982
4991
 
4983
4992
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
4984
4993
 
@@ -5825,6 +5834,9 @@ export declare const KayAppTargetManifest: z.ZodObject<{
5825
5834
  displayName: z.ZodOptional<z.ZodString>;
5826
5835
  description: z.ZodOptional<z.ZodString>;
5827
5836
  }, z.core.$strict>>>;
5837
+ resetText: z.ZodOptional<z.ZodObject<{
5838
+ entry: z.ZodString;
5839
+ }, z.core.$strict>>;
5828
5840
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5829
5841
  url: z.ZodString;
5830
5842
  auth: z.ZodOptional<z.ZodEnum<{
@@ -6794,6 +6806,9 @@ export declare const KayPluginManifestV1: z.ZodObject<{
6794
6806
  displayName: z.ZodOptional<z.ZodString>;
6795
6807
  description: z.ZodOptional<z.ZodString>;
6796
6808
  }, z.core.$strict>>>;
6809
+ resetText: z.ZodOptional<z.ZodObject<{
6810
+ entry: z.ZodString;
6811
+ }, z.core.$strict>>;
6797
6812
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6798
6813
  url: z.ZodString;
6799
6814
  auth: z.ZodOptional<z.ZodEnum<{
@@ -8800,7 +8815,7 @@ export declare function parseSemver(value: string): ParsedSemver | undefined;
8800
8815
  export declare function parseWhere(source: string, keyTypes?: WhereKeyTypes): WhereParseResult;
8801
8816
 
8802
8817
  /** Every capability slug {@link PluginCapabilityClaimV1} can express, for exhaustive table checks. */
8803
- export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "uri.call", "endpoints.invoke", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "plugins.read", "sessions.assign-project", "artifacts.resolve-file", "process.run", "sessions.annotate", "sessions.compact", "sessions.state", "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", "app-data.read", "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", "family-folder.root", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
8818
+ export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "uri.call", "endpoints.invoke", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "plugins.read", "sessions.assign-project", "artifacts.resolve-file", "process.run", "sessions.annotate", "sessions.compact", "sessions.state", "compaction.reset-text", "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", "app-data.read", "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", "family-folder.root", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
8804
8819
 
8805
8820
  /** Diagnostic messages carry plugin-controlled text (parse errors, module errors); bound it so a
8806
8821
  * hostile or accidental multi-megabyte error can never blow up a log line or a render surface. */
@@ -9561,6 +9576,10 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
9561
9576
  target: "kay.app";
9562
9577
  slug: "sessions.state";
9563
9578
  envelope: Record<string, never>;
9579
+ } | {
9580
+ target: "kay.app";
9581
+ slug: "compaction.reset-text";
9582
+ envelope: Record<string, never>;
9564
9583
  } | {
9565
9584
  target: "kay.app";
9566
9585
  slug: "soul.write";
@@ -9859,6 +9878,10 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
9859
9878
  target: "kay.app";
9860
9879
  slug: "sessions.state";
9861
9880
  envelope: Record<string, never>;
9881
+ } | {
9882
+ target: "kay.app";
9883
+ slug: "compaction.reset-text";
9884
+ envelope: Record<string, never>;
9862
9885
  } | {
9863
9886
  target: "kay.app";
9864
9887
  slug: "soul.write";
@@ -10167,6 +10190,10 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
10167
10190
  target: z.ZodLiteral<"kay.app">;
10168
10191
  slug: z.ZodLiteral<"sessions.state">;
10169
10192
  envelope: z.ZodObject<{}, z.core.$strict>;
10193
+ }, z.core.$strict>, z.ZodObject<{
10194
+ target: z.ZodLiteral<"kay.app">;
10195
+ slug: z.ZodLiteral<"compaction.reset-text">;
10196
+ envelope: z.ZodObject<{}, z.core.$strict>;
10170
10197
  }, z.core.$strict>, z.ZodObject<{
10171
10198
  target: z.ZodLiteral<"kay.app">;
10172
10199
  slug: z.ZodLiteral<"soul.write">;
@@ -10521,6 +10548,10 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
10521
10548
  target: z.ZodLiteral<"kay.app">;
10522
10549
  slug: z.ZodLiteral<"sessions.state">;
10523
10550
  envelope: z.ZodObject<{}, z.core.$strict>;
10551
+ }, z.core.$strict>, z.ZodObject<{
10552
+ target: z.ZodLiteral<"kay.app">;
10553
+ slug: z.ZodLiteral<"compaction.reset-text">;
10554
+ envelope: z.ZodObject<{}, z.core.$strict>;
10524
10555
  }, z.core.$strict>, z.ZodObject<{
10525
10556
  target: z.ZodLiteral<"kay.app">;
10526
10557
  slug: z.ZodLiteral<"soul.write">;
@@ -10874,6 +10905,10 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
10874
10905
  target: z.ZodLiteral<"kay.app">;
10875
10906
  slug: z.ZodLiteral<"sessions.state">;
10876
10907
  envelope: z.ZodObject<{}, z.core.$strict>;
10908
+ }, z.core.$strict>, z.ZodObject<{
10909
+ target: z.ZodLiteral<"kay.app">;
10910
+ slug: z.ZodLiteral<"compaction.reset-text">;
10911
+ envelope: z.ZodObject<{}, z.core.$strict>;
10877
10912
  }, z.core.$strict>, z.ZodObject<{
10878
10913
  target: z.ZodLiteral<"kay.app">;
10879
10914
  slug: z.ZodLiteral<"soul.write">;
@@ -11261,6 +11296,10 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
11261
11296
  target: z.ZodLiteral<"kay.app">;
11262
11297
  slug: z.ZodLiteral<"sessions.state">;
11263
11298
  envelope: z.ZodObject<{}, z.core.$strict>;
11299
+ }, z.core.$strict>, z.ZodObject<{
11300
+ target: z.ZodLiteral<"kay.app">;
11301
+ slug: z.ZodLiteral<"compaction.reset-text">;
11302
+ envelope: z.ZodObject<{}, z.core.$strict>;
11264
11303
  }, z.core.$strict>, z.ZodObject<{
11265
11304
  target: z.ZodLiteral<"kay.app">;
11266
11305
  slug: z.ZodLiteral<"soul.write">;
@@ -13197,6 +13236,30 @@ export declare const RENAMED_PLUGIN_CAPABILITY_SLUGS: {
13197
13236
  */
13198
13237
  export declare const RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES: readonly ["herd.", "kay."];
13199
13238
 
13239
+ /**
13240
+ * The longest text an entry may hold, in characters: herd's 6,000 estimated tokens at its three
13241
+ * characters per token for ASCII. Herd also counts the tokens, so denser text is refused sooner.
13242
+ */
13243
+ export declare const RESET_TEXT_MAX_CHARS = 18000;
13244
+
13245
+ /** The `contributes.resetText` declaration: which of the plugin's state entries holds it. */
13246
+ export declare const ResetTextContribution: z.ZodObject<{
13247
+ entry: z.ZodString;
13248
+ }, z.core.$strict>;
13249
+
13250
+ export declare type ResetTextContribution = z.infer<typeof ResetTextContribution>;
13251
+
13252
+ export declare const ResetTextEntry: z.ZodObject<{
13253
+ version: z.ZodLiteral<1>;
13254
+ coveredThrough: z.ZodObject<{
13255
+ sessionId: z.ZodString;
13256
+ entryId: z.ZodString;
13257
+ }, z.core.$strict>;
13258
+ text: z.ZodString;
13259
+ }, z.core.$strict>;
13260
+
13261
+ export declare type ResetTextEntry = z.infer<typeof ResetTextEntry>;
13262
+
13200
13263
  /**
13201
13264
  * Resolves the runtime selection key for a provider-shaped contribution - the
13202
13265
  * value an *adapter binding* names to make one implementation live.