@yaklabs-ai/plugin-protocol 0.55.11 → 0.55.12

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.11"
14
+ "@bonsai/plugin-protocol": "npm:@yaklabs-ai/plugin-protocol@^0.55.12"
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.11",
4
+ "version": "0.55.12",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
package/dist/index.d.ts CHANGED
@@ -5128,8 +5128,16 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
5128
5128
  * modified time, and the new optional `chatsWithOutputs()` lists every chat with an outputs folder
5129
5129
  * from one scan. The `{ uris }` and `{ sessionId }` shapes stay valid. Additive; a plugin reading
5130
5130
  * the new fields declares ^0.55.11.
5131
+ *
5132
+ * 0.55.12 raises the reset text's cap (compaction plan, 11 Nov): `RESET_TEXT_MAX_CHARS` goes from
5133
+ * 18,000 to 31,500 characters, and the new `RESET_TEXT_MAX_TOKENS` (10,500) states the same cap in
5134
+ * herd's estimated tokens, which herd's own check now allows. Compatible: every entry valid before
5135
+ * is still valid. An entry over 18,000 characters, read by a host before 0.55.12 (an older app
5136
+ * opening the same transcript), fails that host's parse and its reset writes the summary, as for
5137
+ * any entry it cannot use. A plugin writing such a text, or reading the token cap, declares
5138
+ * ^0.55.12; no other plugin's range changes.
5131
5139
  */
5132
- export declare const KAY_PLUGIN_SDK_VERSION: "0.55.11";
5140
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.55.12";
5133
5141
 
5134
5142
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
5135
5143
 
@@ -13440,10 +13448,20 @@ export declare const RENAMED_PLUGIN_CAPABILITY_SLUGS: {
13440
13448
  export declare const RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES: readonly ["herd.", "kay."];
13441
13449
 
13442
13450
  /**
13443
- * The longest text an entry may hold, in characters: herd's 6,000 estimated tokens at its three
13451
+ * The longest text an entry may hold, in characters: {@link RESET_TEXT_MAX_TOKENS} at herd's three
13444
13452
  * characters per token for ASCII. Herd also counts the tokens, so denser text is refused sooner.
13445
13453
  */
13446
- export declare const RESET_TEXT_MAX_CHARS = 18000;
13454
+ export declare const RESET_TEXT_MAX_CHARS: number;
13455
+
13456
+ /**
13457
+ * The most a reset text may hold, in herd's estimated tokens: about 3 characters a token for ASCII,
13458
+ * one token for any other character (`estimateTokens` in herd's compaction executor, which a
13459
+ * plugin's count must repeat). Herd refuses a larger text and writes today's summary
13460
+ * (`PREPARED_STATE_MAX_TOKENS`, kept equal to this by a test in `@bonsai/agent-runtime`). 10,500
13461
+ * fits the median record render the compaction plan chose, about 30,000 characters; a larger render
13462
+ * is trimmed to fit (`docs/plans/compaction.md`, decision log, 11 Nov).
13463
+ */
13464
+ export declare const RESET_TEXT_MAX_TOKENS = 10500;
13447
13465
 
13448
13466
  /** The `contributes.resetText` declaration: which of the plugin's state entries holds it. */
13449
13467
  export declare const ResetTextContribution: z.ZodObject<{
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.11";
263
+ var KAY_PLUGIN_SDK_VERSION = "0.55.12";
264
264
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
265
+ "0.55.11",
265
266
  "0.55.10",
266
267
  "0.55.9",
267
268
  "0.55.8",
@@ -5026,7 +5027,8 @@ function isPluginStateEntryCustomType(customType) {
5026
5027
  }
5027
5028
 
5028
5029
  // packages/plugin-protocol/dist/reset-text.js
5029
- var RESET_TEXT_MAX_CHARS = 18e3;
5030
+ var RESET_TEXT_MAX_TOKENS = 10500;
5031
+ var RESET_TEXT_MAX_CHARS = RESET_TEXT_MAX_TOKENS * 3;
5030
5032
  var EntryAddress = z18.strictObject({
5031
5033
  sessionId: z18.string().min(1),
5032
5034
  entryId: z18.string().min(1)
@@ -8857,6 +8859,7 @@ export {
8857
8859
  RENAMED_PLUGIN_CAPABILITY_SLUGS,
8858
8860
  RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES,
8859
8861
  RESET_TEXT_MAX_CHARS,
8862
+ RESET_TEXT_MAX_TOKENS,
8860
8863
  RETIRED_COMPATIBILITY_KEYS,
8861
8864
  RETIRED_PERMISSION_ASK_KEYS,
8862
8865
  RETIRED_PLUGIN_CAPABILITY_SLUGS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-protocol",
3
- "version": "0.55.11",
3
+ "version": "0.55.12",
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",