@yaklabs-ai/plugin-protocol 0.55.13 → 0.55.14

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.13"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.55.14"
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.13",
4
+ "version": "0.55.14",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
package/dist/index.d.ts CHANGED
@@ -5149,8 +5149,13 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
5149
5149
  * Nov): a page adds text at the end of the composer of the chat its pane is bound to, and nothing is
5150
5150
  * sent. Additive; a plugin declaring it declares ^0.55.13, since an older
5151
5151
  * host refuses a manifest naming a capability it does not know.
5152
+ *
5153
+ * 0.55.14 lets a reset entry name the pass that wrote it (`pass`: `asked`, `spacing` or `ahead`,
5154
+ * `ResetTextPass`), which the host counts per reset (#16714). An entry carrying `pass`, read by a
5155
+ * host before 0.55.14, fails that host's parse and its reset writes the summary, as for any entry
5156
+ * it cannot use. A plugin writing `pass` declares ^0.55.14; no other plugin's range changes.
5152
5157
  */
5153
- export declare const KAY_PLUGIN_SDK_VERSION: "0.55.13";
5158
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.55.14";
5154
5159
 
5155
5160
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
5156
5161
 
@@ -13500,10 +13505,29 @@ export declare const ResetTextEntry: z.ZodObject<{
13500
13505
  entryId: z.ZodString;
13501
13506
  }, z.core.$strict>;
13502
13507
  text: z.ZodString;
13508
+ pass: z.ZodOptional<z.ZodEnum<{
13509
+ asked: "asked";
13510
+ spacing: "spacing";
13511
+ ahead: "ahead";
13512
+ }>>;
13503
13513
  }, z.core.$strict>;
13504
13514
 
13505
13515
  export declare type ResetTextEntry = z.infer<typeof ResetTextEntry>;
13506
13516
 
13517
+ /**
13518
+ * Which pass wrote a reset text: one the agent asked for (`asked`), one on the regular spacing as the
13519
+ * conversation grows (`spacing`), or the one just ahead of the reset threshold (`ahead`). The host
13520
+ * counts which kind covered a reset, never reads it as a reason to use the text. Optional on the
13521
+ * entry (SDK 0.55.14): an entry written before names none.
13522
+ */
13523
+ export declare const ResetTextPass: z.ZodEnum<{
13524
+ asked: "asked";
13525
+ spacing: "spacing";
13526
+ ahead: "ahead";
13527
+ }>;
13528
+
13529
+ export declare type ResetTextPass = z.infer<typeof ResetTextPass>;
13530
+
13507
13531
  /**
13508
13532
  * Resolves the runtime selection key for a provider-shaped contribution - the
13509
13533
  * value an *adapter binding* names to make one implementation live.
package/dist/index.js CHANGED
@@ -260,8 +260,9 @@ var JsonSchema = z4.record(z4.string(), JsonValue);
260
260
  var KAY_PLUGIN_MANIFEST_SIZE_CAP_BYTES = 1024 * 1024;
261
261
  var KAY_PLUGIN_PROTOCOL_VERSION = "kay.plugin.v1";
262
262
  var KAY_PLUGIN_PROTOCOL_PACKAGE_NAME = "@bonsai/plugin-protocol";
263
- var KAY_PLUGIN_SDK_VERSION = "0.55.13";
263
+ var KAY_PLUGIN_SDK_VERSION = "0.55.14";
264
264
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
265
+ "0.55.13",
265
266
  "0.55.12",
266
267
  "0.55.11",
267
268
  "0.55.10",
@@ -5042,6 +5043,7 @@ var EntryAddress = z18.strictObject({
5042
5043
  sessionId: z18.string().min(1),
5043
5044
  entryId: z18.string().min(1)
5044
5045
  });
5046
+ var ResetTextPass = z18.enum(["asked", "spacing", "ahead"]);
5045
5047
  var ResetTextEntry = z18.strictObject({
5046
5048
  version: z18.literal(1),
5047
5049
  /**
@@ -5051,7 +5053,8 @@ var ResetTextEntry = z18.strictObject({
5051
5053
  */
5052
5054
  coveredThrough: EntryAddress,
5053
5055
  /** The working state as Markdown, without the harness ledger. */
5054
- text: z18.string().min(1).max(RESET_TEXT_MAX_CHARS)
5056
+ text: z18.string().min(1).max(RESET_TEXT_MAX_CHARS),
5057
+ pass: ResetTextPass.optional()
5055
5058
  });
5056
5059
  var ResetTextContribution = z18.strictObject({
5057
5060
  entry: z18.string().regex(PLUGIN_STATE_ENTRY_NAME_PATTERN)
@@ -8886,6 +8889,7 @@ export {
8886
8889
  RegistrableDomain,
8887
8890
  ResetTextContribution,
8888
8891
  ResetTextEntry,
8892
+ ResetTextPass,
8889
8893
  ResolvedAuthGrantRequest,
8890
8894
  ResolvedEndpointGrantRequest,
8891
8895
  ResolvedKayAgentArtifactUriModule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.55.13",
3
+ "version": "0.55.14",
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",