@yaklabs-ai/plugin-protocol 0.55.11 → 0.55.13

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.13"
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.13",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
package/dist/index.d.ts CHANGED
@@ -3381,12 +3381,14 @@ declare const canonicalContributionSchemas: {
3381
3381
  "report-evidence.read": "report-evidence.read";
3382
3382
  "navigation.open-page": "navigation.open-page";
3383
3383
  "sessions.create": "sessions.create";
3384
+ "composer.append-draft": "composer.append-draft";
3384
3385
  "models.complete": "models.complete";
3385
3386
  "artifacts.read": "artifacts.read";
3386
3387
  "artifacts.preview": "artifacts.preview";
3387
3388
  "markdown.document-view": "markdown.document-view";
3388
3389
  "references.open": "references.open";
3389
3390
  "files.choose-folder": "files.choose-folder";
3391
+ "auth.connect": "auth.connect";
3390
3392
  "billing.read": "billing.read";
3391
3393
  "account.read": "account.read";
3392
3394
  "plugins.read": "plugins.read";
@@ -3420,12 +3422,14 @@ declare const canonicalContributionSchemas: {
3420
3422
  "report-evidence.read": "report-evidence.read";
3421
3423
  "navigation.open-page": "navigation.open-page";
3422
3424
  "sessions.create": "sessions.create";
3425
+ "composer.append-draft": "composer.append-draft";
3423
3426
  "models.complete": "models.complete";
3424
3427
  "artifacts.read": "artifacts.read";
3425
3428
  "artifacts.preview": "artifacts.preview";
3426
3429
  "markdown.document-view": "markdown.document-view";
3427
3430
  "references.open": "references.open";
3428
3431
  "files.choose-folder": "files.choose-folder";
3432
+ "auth.connect": "auth.connect";
3429
3433
  "billing.read": "billing.read";
3430
3434
  "account.read": "account.read";
3431
3435
  "plugins.read": "plugins.read";
@@ -3534,12 +3538,14 @@ declare const canonicalContributionSchemas: {
3534
3538
  "report-evidence.read": "report-evidence.read";
3535
3539
  "navigation.open-page": "navigation.open-page";
3536
3540
  "sessions.create": "sessions.create";
3541
+ "composer.append-draft": "composer.append-draft";
3537
3542
  "models.complete": "models.complete";
3538
3543
  "artifacts.read": "artifacts.read";
3539
3544
  "artifacts.preview": "artifacts.preview";
3540
3545
  "markdown.document-view": "markdown.document-view";
3541
3546
  "references.open": "references.open";
3542
3547
  "files.choose-folder": "files.choose-folder";
3548
+ "auth.connect": "auth.connect";
3543
3549
  "billing.read": "billing.read";
3544
3550
  "account.read": "account.read";
3545
3551
  "plugins.read": "plugins.read";
@@ -3590,12 +3596,14 @@ declare const canonicalContributionSchemas: {
3590
3596
  "report-evidence.read": "report-evidence.read";
3591
3597
  "navigation.open-page": "navigation.open-page";
3592
3598
  "sessions.create": "sessions.create";
3599
+ "composer.append-draft": "composer.append-draft";
3593
3600
  "models.complete": "models.complete";
3594
3601
  "artifacts.read": "artifacts.read";
3595
3602
  "artifacts.preview": "artifacts.preview";
3596
3603
  "markdown.document-view": "markdown.document-view";
3597
3604
  "references.open": "references.open";
3598
3605
  "files.choose-folder": "files.choose-folder";
3606
+ "auth.connect": "auth.connect";
3599
3607
  "billing.read": "billing.read";
3600
3608
  "account.read": "account.read";
3601
3609
  "plugins.read": "plugins.read";
@@ -5128,8 +5136,21 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
5128
5136
  * modified time, and the new optional `chatsWithOutputs()` lists every chat with an outputs folder
5129
5137
  * from one scan. The `{ uris }` and `{ sessionId }` shapes stay valid. Additive; a plugin reading
5130
5138
  * the new fields declares ^0.55.11.
5139
+ *
5140
+ * 0.55.12 raises the reset text's cap (compaction plan, 11 Nov): `RESET_TEXT_MAX_CHARS` goes from
5141
+ * 18,000 to 31,500 characters, and the new `RESET_TEXT_MAX_TOKENS` (10,500) states the same cap in
5142
+ * herd's estimated tokens, which herd's own check now allows. Compatible: every entry valid before
5143
+ * is still valid. An entry over 18,000 characters, read by a host before 0.55.12 (an older app
5144
+ * opening the same transcript), fails that host's parse and its reset writes the summary, as for
5145
+ * any entry it cannot use. A plugin writing such a text, or reading the token cap, declares
5146
+ * ^0.55.12; no other plugin's range changes.
5147
+ *
5148
+ * 0.55.13 adds the `composer.append-draft` host capability for a `kay.ui` app (compaction plan, 11
5149
+ * Nov): a page adds text at the end of the composer of the chat its pane is bound to, and nothing is
5150
+ * sent. Additive; a plugin declaring it declares ^0.55.13, since an older
5151
+ * host refuses a manifest naming a capability it does not know.
5131
5152
  */
5132
- export declare const KAY_PLUGIN_SDK_VERSION: "0.55.11";
5153
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.55.13";
5133
5154
 
5134
5155
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
5135
5156
 
@@ -7157,12 +7178,14 @@ export declare const KayPluginManifestV1: z.ZodObject<{
7157
7178
  "report-evidence.read": "report-evidence.read";
7158
7179
  "navigation.open-page": "navigation.open-page";
7159
7180
  "sessions.create": "sessions.create";
7181
+ "composer.append-draft": "composer.append-draft";
7160
7182
  "models.complete": "models.complete";
7161
7183
  "artifacts.read": "artifacts.read";
7162
7184
  "artifacts.preview": "artifacts.preview";
7163
7185
  "markdown.document-view": "markdown.document-view";
7164
7186
  "references.open": "references.open";
7165
7187
  "files.choose-folder": "files.choose-folder";
7188
+ "auth.connect": "auth.connect";
7166
7189
  "billing.read": "billing.read";
7167
7190
  "account.read": "account.read";
7168
7191
  "plugins.read": "plugins.read";
@@ -7213,12 +7236,14 @@ export declare const KayPluginManifestV1: z.ZodObject<{
7213
7236
  "report-evidence.read": "report-evidence.read";
7214
7237
  "navigation.open-page": "navigation.open-page";
7215
7238
  "sessions.create": "sessions.create";
7239
+ "composer.append-draft": "composer.append-draft";
7216
7240
  "models.complete": "models.complete";
7217
7241
  "artifacts.read": "artifacts.read";
7218
7242
  "artifacts.preview": "artifacts.preview";
7219
7243
  "markdown.document-view": "markdown.document-view";
7220
7244
  "references.open": "references.open";
7221
7245
  "files.choose-folder": "files.choose-folder";
7246
+ "auth.connect": "auth.connect";
7222
7247
  "billing.read": "billing.read";
7223
7248
  "account.read": "account.read";
7224
7249
  "plugins.read": "plugins.read";
@@ -8247,12 +8272,14 @@ export declare const KayUiAppHostCapability: z.ZodEnum<{
8247
8272
  "report-evidence.read": "report-evidence.read";
8248
8273
  "navigation.open-page": "navigation.open-page";
8249
8274
  "sessions.create": "sessions.create";
8275
+ "composer.append-draft": "composer.append-draft";
8250
8276
  "models.complete": "models.complete";
8251
8277
  "artifacts.read": "artifacts.read";
8252
8278
  "artifacts.preview": "artifacts.preview";
8253
8279
  "markdown.document-view": "markdown.document-view";
8254
8280
  "references.open": "references.open";
8255
8281
  "files.choose-folder": "files.choose-folder";
8282
+ "auth.connect": "auth.connect";
8256
8283
  "billing.read": "billing.read";
8257
8284
  "account.read": "account.read";
8258
8285
  "plugins.read": "plugins.read";
@@ -8542,12 +8569,14 @@ export declare const KayUiTargetManifest: z.ZodObject<{
8542
8569
  "report-evidence.read": "report-evidence.read";
8543
8570
  "navigation.open-page": "navigation.open-page";
8544
8571
  "sessions.create": "sessions.create";
8572
+ "composer.append-draft": "composer.append-draft";
8545
8573
  "models.complete": "models.complete";
8546
8574
  "artifacts.read": "artifacts.read";
8547
8575
  "artifacts.preview": "artifacts.preview";
8548
8576
  "markdown.document-view": "markdown.document-view";
8549
8577
  "references.open": "references.open";
8550
8578
  "files.choose-folder": "files.choose-folder";
8579
+ "auth.connect": "auth.connect";
8551
8580
  "billing.read": "billing.read";
8552
8581
  "account.read": "account.read";
8553
8582
  "plugins.read": "plugins.read";
@@ -8598,12 +8627,14 @@ export declare const KayUiTargetManifest: z.ZodObject<{
8598
8627
  "report-evidence.read": "report-evidence.read";
8599
8628
  "navigation.open-page": "navigation.open-page";
8600
8629
  "sessions.create": "sessions.create";
8630
+ "composer.append-draft": "composer.append-draft";
8601
8631
  "models.complete": "models.complete";
8602
8632
  "artifacts.read": "artifacts.read";
8603
8633
  "artifacts.preview": "artifacts.preview";
8604
8634
  "markdown.document-view": "markdown.document-view";
8605
8635
  "references.open": "references.open";
8606
8636
  "files.choose-folder": "files.choose-folder";
8637
+ "auth.connect": "auth.connect";
8607
8638
  "billing.read": "billing.read";
8608
8639
  "account.read": "account.read";
8609
8640
  "plugins.read": "plugins.read";
@@ -13440,10 +13471,20 @@ export declare const RENAMED_PLUGIN_CAPABILITY_SLUGS: {
13440
13471
  export declare const RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES: readonly ["herd.", "kay."];
13441
13472
 
13442
13473
  /**
13443
- * The longest text an entry may hold, in characters: herd's 6,000 estimated tokens at its three
13474
+ * The longest text an entry may hold, in characters: {@link RESET_TEXT_MAX_TOKENS} at herd's three
13444
13475
  * characters per token for ASCII. Herd also counts the tokens, so denser text is refused sooner.
13445
13476
  */
13446
- export declare const RESET_TEXT_MAX_CHARS = 18000;
13477
+ export declare const RESET_TEXT_MAX_CHARS: number;
13478
+
13479
+ /**
13480
+ * The most a reset text may hold, in herd's estimated tokens: about 3 characters a token for ASCII,
13481
+ * one token for any other character (`estimateTokens` in herd's compaction executor, which a
13482
+ * plugin's count must repeat). Herd refuses a larger text and writes today's summary
13483
+ * (`PREPARED_STATE_MAX_TOKENS`, kept equal to this by a test in `@bonsai/agent-runtime`). 10,500
13484
+ * fits the median record render the compaction plan chose, about 30,000 characters; a larger render
13485
+ * is trimmed to fit (`docs/plans/compaction.md`, decision log, 11 Nov).
13486
+ */
13487
+ export declare const RESET_TEXT_MAX_TOKENS = 10500;
13447
13488
 
13448
13489
  /** The `contributes.resetText` declaration: which of the plugin's state entries holds it. */
13449
13490
  export declare const ResetTextContribution: z.ZodObject<{
@@ -14160,12 +14201,14 @@ export declare const ResolvedKayUiApp: z.ZodObject<{
14160
14201
  "report-evidence.read": "report-evidence.read";
14161
14202
  "navigation.open-page": "navigation.open-page";
14162
14203
  "sessions.create": "sessions.create";
14204
+ "composer.append-draft": "composer.append-draft";
14163
14205
  "models.complete": "models.complete";
14164
14206
  "artifacts.read": "artifacts.read";
14165
14207
  "artifacts.preview": "artifacts.preview";
14166
14208
  "markdown.document-view": "markdown.document-view";
14167
14209
  "references.open": "references.open";
14168
14210
  "files.choose-folder": "files.choose-folder";
14211
+ "auth.connect": "auth.connect";
14169
14212
  "billing.read": "billing.read";
14170
14213
  "account.read": "account.read";
14171
14214
  "plugins.read": "plugins.read";
@@ -16085,12 +16128,14 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
16085
16128
  "report-evidence.read": "report-evidence.read";
16086
16129
  "navigation.open-page": "navigation.open-page";
16087
16130
  "sessions.create": "sessions.create";
16131
+ "composer.append-draft": "composer.append-draft";
16088
16132
  "models.complete": "models.complete";
16089
16133
  "artifacts.read": "artifacts.read";
16090
16134
  "artifacts.preview": "artifacts.preview";
16091
16135
  "markdown.document-view": "markdown.document-view";
16092
16136
  "references.open": "references.open";
16093
16137
  "files.choose-folder": "files.choose-folder";
16138
+ "auth.connect": "auth.connect";
16094
16139
  "billing.read": "billing.read";
16095
16140
  "account.read": "account.read";
16096
16141
  "plugins.read": "plugins.read";
@@ -17992,12 +18037,14 @@ export declare const UiAppCapabilities: z.ZodObject<{
17992
18037
  "report-evidence.read": "report-evidence.read";
17993
18038
  "navigation.open-page": "navigation.open-page";
17994
18039
  "sessions.create": "sessions.create";
18040
+ "composer.append-draft": "composer.append-draft";
17995
18041
  "models.complete": "models.complete";
17996
18042
  "artifacts.read": "artifacts.read";
17997
18043
  "artifacts.preview": "artifacts.preview";
17998
18044
  "markdown.document-view": "markdown.document-view";
17999
18045
  "references.open": "references.open";
18000
18046
  "files.choose-folder": "files.choose-folder";
18047
+ "auth.connect": "auth.connect";
18001
18048
  "billing.read": "billing.read";
18002
18049
  "account.read": "account.read";
18003
18050
  "plugins.read": "plugins.read";
@@ -18058,12 +18105,14 @@ export declare const UiAppContribution: z.ZodObject<{
18058
18105
  "report-evidence.read": "report-evidence.read";
18059
18106
  "navigation.open-page": "navigation.open-page";
18060
18107
  "sessions.create": "sessions.create";
18108
+ "composer.append-draft": "composer.append-draft";
18061
18109
  "models.complete": "models.complete";
18062
18110
  "artifacts.read": "artifacts.read";
18063
18111
  "artifacts.preview": "artifacts.preview";
18064
18112
  "markdown.document-view": "markdown.document-view";
18065
18113
  "references.open": "references.open";
18066
18114
  "files.choose-folder": "files.choose-folder";
18115
+ "auth.connect": "auth.connect";
18067
18116
  "billing.read": "billing.read";
18068
18117
  "account.read": "account.read";
18069
18118
  "plugins.read": "plugins.read";
@@ -18114,12 +18163,14 @@ export declare const UiAppContribution: z.ZodObject<{
18114
18163
  "report-evidence.read": "report-evidence.read";
18115
18164
  "navigation.open-page": "navigation.open-page";
18116
18165
  "sessions.create": "sessions.create";
18166
+ "composer.append-draft": "composer.append-draft";
18117
18167
  "models.complete": "models.complete";
18118
18168
  "artifacts.read": "artifacts.read";
18119
18169
  "artifacts.preview": "artifacts.preview";
18120
18170
  "markdown.document-view": "markdown.document-view";
18121
18171
  "references.open": "references.open";
18122
18172
  "files.choose-folder": "files.choose-folder";
18173
+ "auth.connect": "auth.connect";
18123
18174
  "billing.read": "billing.read";
18124
18175
  "account.read": "account.read";
18125
18176
  "plugins.read": "plugins.read";
package/dist/index.js CHANGED
@@ -260,8 +260,10 @@ 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.13";
264
264
  var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
265
+ "0.55.12",
266
+ "0.55.11",
265
267
  "0.55.10",
266
268
  "0.55.9",
267
269
  "0.55.8",
@@ -4587,6 +4589,11 @@ function createContributionsSchemas(canonical) {
4587
4589
  // Lets `navigation.openChat` create a blank chat (no message, no model
4588
4590
  // turn) when no session id is given. It never sends anything.
4589
4591
  "sessions.create",
4592
+ // Adds text at the end of the composer of the chat the page's pane is bound to
4593
+ // (`useBonsaiComposerDraft`); a page should call it only on the person's own action. The host
4594
+ // picks the chat, keeps what the person typed and never sends: the person edits and sends it,
4595
+ // or not.
4596
+ "composer.append-draft",
4590
4597
  "models.complete",
4591
4598
  "artifacts.read",
4592
4599
  "artifacts.preview",
@@ -4599,6 +4606,9 @@ function createContributionsSchemas(canonical) {
4599
4606
  // Opens the system folder picker when the person acts (`useBonsaiFolderPicker`) and answers
4600
4607
  // the one folder they chose, or nothing when they cancel. It lists and reads nothing.
4601
4608
  "files.choose-folder",
4609
+ // Starts one service's sign-in through the host's connect flow when the person acts
4610
+ // (`useBonsaiConnectService`) and answers how it ended. It reads no account or credential.
4611
+ "auth.connect",
4602
4612
  // Server-rated organization billing, distinct from local/provider cost.
4603
4613
  "billing.read",
4604
4614
  "account.read",
@@ -5026,7 +5036,8 @@ function isPluginStateEntryCustomType(customType) {
5026
5036
  }
5027
5037
 
5028
5038
  // packages/plugin-protocol/dist/reset-text.js
5029
- var RESET_TEXT_MAX_CHARS = 18e3;
5039
+ var RESET_TEXT_MAX_TOKENS = 10500;
5040
+ var RESET_TEXT_MAX_CHARS = RESET_TEXT_MAX_TOKENS * 3;
5030
5041
  var EntryAddress = z18.strictObject({
5031
5042
  sessionId: z18.string().min(1),
5032
5043
  entryId: z18.string().min(1)
@@ -8857,6 +8868,7 @@ export {
8857
8868
  RENAMED_PLUGIN_CAPABILITY_SLUGS,
8858
8869
  RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES,
8859
8870
  RESET_TEXT_MAX_CHARS,
8871
+ RESET_TEXT_MAX_TOKENS,
8860
8872
  RETIRED_COMPATIBILITY_KEYS,
8861
8873
  RETIRED_PERMISSION_ASK_KEYS,
8862
8874
  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.13",
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",