@yaklabs-ai/plugin-protocol 0.55.12 → 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 +1 -1
- package/THIRD-PARTY-INVENTORY.json +1 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +15 -2
- package/package.json +1 -1
package/README.md
CHANGED
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";
|
|
@@ -5136,8 +5144,18 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
|
|
|
5136
5144
|
* opening the same transcript), fails that host's parse and its reset writes the summary, as for
|
|
5137
5145
|
* any entry it cannot use. A plugin writing such a text, or reading the token cap, declares
|
|
5138
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.
|
|
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.
|
|
5139
5157
|
*/
|
|
5140
|
-
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.
|
|
5158
|
+
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.14";
|
|
5141
5159
|
|
|
5142
5160
|
export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
|
|
5143
5161
|
|
|
@@ -7165,12 +7183,14 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
7165
7183
|
"report-evidence.read": "report-evidence.read";
|
|
7166
7184
|
"navigation.open-page": "navigation.open-page";
|
|
7167
7185
|
"sessions.create": "sessions.create";
|
|
7186
|
+
"composer.append-draft": "composer.append-draft";
|
|
7168
7187
|
"models.complete": "models.complete";
|
|
7169
7188
|
"artifacts.read": "artifacts.read";
|
|
7170
7189
|
"artifacts.preview": "artifacts.preview";
|
|
7171
7190
|
"markdown.document-view": "markdown.document-view";
|
|
7172
7191
|
"references.open": "references.open";
|
|
7173
7192
|
"files.choose-folder": "files.choose-folder";
|
|
7193
|
+
"auth.connect": "auth.connect";
|
|
7174
7194
|
"billing.read": "billing.read";
|
|
7175
7195
|
"account.read": "account.read";
|
|
7176
7196
|
"plugins.read": "plugins.read";
|
|
@@ -7221,12 +7241,14 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
7221
7241
|
"report-evidence.read": "report-evidence.read";
|
|
7222
7242
|
"navigation.open-page": "navigation.open-page";
|
|
7223
7243
|
"sessions.create": "sessions.create";
|
|
7244
|
+
"composer.append-draft": "composer.append-draft";
|
|
7224
7245
|
"models.complete": "models.complete";
|
|
7225
7246
|
"artifacts.read": "artifacts.read";
|
|
7226
7247
|
"artifacts.preview": "artifacts.preview";
|
|
7227
7248
|
"markdown.document-view": "markdown.document-view";
|
|
7228
7249
|
"references.open": "references.open";
|
|
7229
7250
|
"files.choose-folder": "files.choose-folder";
|
|
7251
|
+
"auth.connect": "auth.connect";
|
|
7230
7252
|
"billing.read": "billing.read";
|
|
7231
7253
|
"account.read": "account.read";
|
|
7232
7254
|
"plugins.read": "plugins.read";
|
|
@@ -8255,12 +8277,14 @@ export declare const KayUiAppHostCapability: z.ZodEnum<{
|
|
|
8255
8277
|
"report-evidence.read": "report-evidence.read";
|
|
8256
8278
|
"navigation.open-page": "navigation.open-page";
|
|
8257
8279
|
"sessions.create": "sessions.create";
|
|
8280
|
+
"composer.append-draft": "composer.append-draft";
|
|
8258
8281
|
"models.complete": "models.complete";
|
|
8259
8282
|
"artifacts.read": "artifacts.read";
|
|
8260
8283
|
"artifacts.preview": "artifacts.preview";
|
|
8261
8284
|
"markdown.document-view": "markdown.document-view";
|
|
8262
8285
|
"references.open": "references.open";
|
|
8263
8286
|
"files.choose-folder": "files.choose-folder";
|
|
8287
|
+
"auth.connect": "auth.connect";
|
|
8264
8288
|
"billing.read": "billing.read";
|
|
8265
8289
|
"account.read": "account.read";
|
|
8266
8290
|
"plugins.read": "plugins.read";
|
|
@@ -8550,12 +8574,14 @@ export declare const KayUiTargetManifest: z.ZodObject<{
|
|
|
8550
8574
|
"report-evidence.read": "report-evidence.read";
|
|
8551
8575
|
"navigation.open-page": "navigation.open-page";
|
|
8552
8576
|
"sessions.create": "sessions.create";
|
|
8577
|
+
"composer.append-draft": "composer.append-draft";
|
|
8553
8578
|
"models.complete": "models.complete";
|
|
8554
8579
|
"artifacts.read": "artifacts.read";
|
|
8555
8580
|
"artifacts.preview": "artifacts.preview";
|
|
8556
8581
|
"markdown.document-view": "markdown.document-view";
|
|
8557
8582
|
"references.open": "references.open";
|
|
8558
8583
|
"files.choose-folder": "files.choose-folder";
|
|
8584
|
+
"auth.connect": "auth.connect";
|
|
8559
8585
|
"billing.read": "billing.read";
|
|
8560
8586
|
"account.read": "account.read";
|
|
8561
8587
|
"plugins.read": "plugins.read";
|
|
@@ -8606,12 +8632,14 @@ export declare const KayUiTargetManifest: z.ZodObject<{
|
|
|
8606
8632
|
"report-evidence.read": "report-evidence.read";
|
|
8607
8633
|
"navigation.open-page": "navigation.open-page";
|
|
8608
8634
|
"sessions.create": "sessions.create";
|
|
8635
|
+
"composer.append-draft": "composer.append-draft";
|
|
8609
8636
|
"models.complete": "models.complete";
|
|
8610
8637
|
"artifacts.read": "artifacts.read";
|
|
8611
8638
|
"artifacts.preview": "artifacts.preview";
|
|
8612
8639
|
"markdown.document-view": "markdown.document-view";
|
|
8613
8640
|
"references.open": "references.open";
|
|
8614
8641
|
"files.choose-folder": "files.choose-folder";
|
|
8642
|
+
"auth.connect": "auth.connect";
|
|
8615
8643
|
"billing.read": "billing.read";
|
|
8616
8644
|
"account.read": "account.read";
|
|
8617
8645
|
"plugins.read": "plugins.read";
|
|
@@ -13477,10 +13505,29 @@ export declare const ResetTextEntry: z.ZodObject<{
|
|
|
13477
13505
|
entryId: z.ZodString;
|
|
13478
13506
|
}, z.core.$strict>;
|
|
13479
13507
|
text: z.ZodString;
|
|
13508
|
+
pass: z.ZodOptional<z.ZodEnum<{
|
|
13509
|
+
asked: "asked";
|
|
13510
|
+
spacing: "spacing";
|
|
13511
|
+
ahead: "ahead";
|
|
13512
|
+
}>>;
|
|
13480
13513
|
}, z.core.$strict>;
|
|
13481
13514
|
|
|
13482
13515
|
export declare type ResetTextEntry = z.infer<typeof ResetTextEntry>;
|
|
13483
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
|
+
|
|
13484
13531
|
/**
|
|
13485
13532
|
* Resolves the runtime selection key for a provider-shaped contribution - the
|
|
13486
13533
|
* value an *adapter binding* names to make one implementation live.
|
|
@@ -14178,12 +14225,14 @@ export declare const ResolvedKayUiApp: z.ZodObject<{
|
|
|
14178
14225
|
"report-evidence.read": "report-evidence.read";
|
|
14179
14226
|
"navigation.open-page": "navigation.open-page";
|
|
14180
14227
|
"sessions.create": "sessions.create";
|
|
14228
|
+
"composer.append-draft": "composer.append-draft";
|
|
14181
14229
|
"models.complete": "models.complete";
|
|
14182
14230
|
"artifacts.read": "artifacts.read";
|
|
14183
14231
|
"artifacts.preview": "artifacts.preview";
|
|
14184
14232
|
"markdown.document-view": "markdown.document-view";
|
|
14185
14233
|
"references.open": "references.open";
|
|
14186
14234
|
"files.choose-folder": "files.choose-folder";
|
|
14235
|
+
"auth.connect": "auth.connect";
|
|
14187
14236
|
"billing.read": "billing.read";
|
|
14188
14237
|
"account.read": "account.read";
|
|
14189
14238
|
"plugins.read": "plugins.read";
|
|
@@ -16103,12 +16152,14 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
|
|
|
16103
16152
|
"report-evidence.read": "report-evidence.read";
|
|
16104
16153
|
"navigation.open-page": "navigation.open-page";
|
|
16105
16154
|
"sessions.create": "sessions.create";
|
|
16155
|
+
"composer.append-draft": "composer.append-draft";
|
|
16106
16156
|
"models.complete": "models.complete";
|
|
16107
16157
|
"artifacts.read": "artifacts.read";
|
|
16108
16158
|
"artifacts.preview": "artifacts.preview";
|
|
16109
16159
|
"markdown.document-view": "markdown.document-view";
|
|
16110
16160
|
"references.open": "references.open";
|
|
16111
16161
|
"files.choose-folder": "files.choose-folder";
|
|
16162
|
+
"auth.connect": "auth.connect";
|
|
16112
16163
|
"billing.read": "billing.read";
|
|
16113
16164
|
"account.read": "account.read";
|
|
16114
16165
|
"plugins.read": "plugins.read";
|
|
@@ -18010,12 +18061,14 @@ export declare const UiAppCapabilities: z.ZodObject<{
|
|
|
18010
18061
|
"report-evidence.read": "report-evidence.read";
|
|
18011
18062
|
"navigation.open-page": "navigation.open-page";
|
|
18012
18063
|
"sessions.create": "sessions.create";
|
|
18064
|
+
"composer.append-draft": "composer.append-draft";
|
|
18013
18065
|
"models.complete": "models.complete";
|
|
18014
18066
|
"artifacts.read": "artifacts.read";
|
|
18015
18067
|
"artifacts.preview": "artifacts.preview";
|
|
18016
18068
|
"markdown.document-view": "markdown.document-view";
|
|
18017
18069
|
"references.open": "references.open";
|
|
18018
18070
|
"files.choose-folder": "files.choose-folder";
|
|
18071
|
+
"auth.connect": "auth.connect";
|
|
18019
18072
|
"billing.read": "billing.read";
|
|
18020
18073
|
"account.read": "account.read";
|
|
18021
18074
|
"plugins.read": "plugins.read";
|
|
@@ -18076,12 +18129,14 @@ export declare const UiAppContribution: z.ZodObject<{
|
|
|
18076
18129
|
"report-evidence.read": "report-evidence.read";
|
|
18077
18130
|
"navigation.open-page": "navigation.open-page";
|
|
18078
18131
|
"sessions.create": "sessions.create";
|
|
18132
|
+
"composer.append-draft": "composer.append-draft";
|
|
18079
18133
|
"models.complete": "models.complete";
|
|
18080
18134
|
"artifacts.read": "artifacts.read";
|
|
18081
18135
|
"artifacts.preview": "artifacts.preview";
|
|
18082
18136
|
"markdown.document-view": "markdown.document-view";
|
|
18083
18137
|
"references.open": "references.open";
|
|
18084
18138
|
"files.choose-folder": "files.choose-folder";
|
|
18139
|
+
"auth.connect": "auth.connect";
|
|
18085
18140
|
"billing.read": "billing.read";
|
|
18086
18141
|
"account.read": "account.read";
|
|
18087
18142
|
"plugins.read": "plugins.read";
|
|
@@ -18132,12 +18187,14 @@ export declare const UiAppContribution: z.ZodObject<{
|
|
|
18132
18187
|
"report-evidence.read": "report-evidence.read";
|
|
18133
18188
|
"navigation.open-page": "navigation.open-page";
|
|
18134
18189
|
"sessions.create": "sessions.create";
|
|
18190
|
+
"composer.append-draft": "composer.append-draft";
|
|
18135
18191
|
"models.complete": "models.complete";
|
|
18136
18192
|
"artifacts.read": "artifacts.read";
|
|
18137
18193
|
"artifacts.preview": "artifacts.preview";
|
|
18138
18194
|
"markdown.document-view": "markdown.document-view";
|
|
18139
18195
|
"references.open": "references.open";
|
|
18140
18196
|
"files.choose-folder": "files.choose-folder";
|
|
18197
|
+
"auth.connect": "auth.connect";
|
|
18141
18198
|
"billing.read": "billing.read";
|
|
18142
18199
|
"account.read": "account.read";
|
|
18143
18200
|
"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.
|
|
263
|
+
var KAY_PLUGIN_SDK_VERSION = "0.55.14";
|
|
264
264
|
var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
|
|
265
|
+
"0.55.13",
|
|
266
|
+
"0.55.12",
|
|
265
267
|
"0.55.11",
|
|
266
268
|
"0.55.10",
|
|
267
269
|
"0.55.9",
|
|
@@ -4588,6 +4590,11 @@ function createContributionsSchemas(canonical) {
|
|
|
4588
4590
|
// Lets `navigation.openChat` create a blank chat (no message, no model
|
|
4589
4591
|
// turn) when no session id is given. It never sends anything.
|
|
4590
4592
|
"sessions.create",
|
|
4593
|
+
// Adds text at the end of the composer of the chat the page's pane is bound to
|
|
4594
|
+
// (`useBonsaiComposerDraft`); a page should call it only on the person's own action. The host
|
|
4595
|
+
// picks the chat, keeps what the person typed and never sends: the person edits and sends it,
|
|
4596
|
+
// or not.
|
|
4597
|
+
"composer.append-draft",
|
|
4591
4598
|
"models.complete",
|
|
4592
4599
|
"artifacts.read",
|
|
4593
4600
|
"artifacts.preview",
|
|
@@ -4600,6 +4607,9 @@ function createContributionsSchemas(canonical) {
|
|
|
4600
4607
|
// Opens the system folder picker when the person acts (`useBonsaiFolderPicker`) and answers
|
|
4601
4608
|
// the one folder they chose, or nothing when they cancel. It lists and reads nothing.
|
|
4602
4609
|
"files.choose-folder",
|
|
4610
|
+
// Starts one service's sign-in through the host's connect flow when the person acts
|
|
4611
|
+
// (`useBonsaiConnectService`) and answers how it ended. It reads no account or credential.
|
|
4612
|
+
"auth.connect",
|
|
4603
4613
|
// Server-rated organization billing, distinct from local/provider cost.
|
|
4604
4614
|
"billing.read",
|
|
4605
4615
|
"account.read",
|
|
@@ -5033,6 +5043,7 @@ var EntryAddress = z18.strictObject({
|
|
|
5033
5043
|
sessionId: z18.string().min(1),
|
|
5034
5044
|
entryId: z18.string().min(1)
|
|
5035
5045
|
});
|
|
5046
|
+
var ResetTextPass = z18.enum(["asked", "spacing", "ahead"]);
|
|
5036
5047
|
var ResetTextEntry = z18.strictObject({
|
|
5037
5048
|
version: z18.literal(1),
|
|
5038
5049
|
/**
|
|
@@ -5042,7 +5053,8 @@ var ResetTextEntry = z18.strictObject({
|
|
|
5042
5053
|
*/
|
|
5043
5054
|
coveredThrough: EntryAddress,
|
|
5044
5055
|
/** The working state as Markdown, without the harness ledger. */
|
|
5045
|
-
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()
|
|
5046
5058
|
});
|
|
5047
5059
|
var ResetTextContribution = z18.strictObject({
|
|
5048
5060
|
entry: z18.string().regex(PLUGIN_STATE_ENTRY_NAME_PATTERN)
|
|
@@ -8877,6 +8889,7 @@ export {
|
|
|
8877
8889
|
RegistrableDomain,
|
|
8878
8890
|
ResetTextContribution,
|
|
8879
8891
|
ResetTextEntry,
|
|
8892
|
+
ResetTextPass,
|
|
8880
8893
|
ResolvedAuthGrantRequest,
|
|
8881
8894
|
ResolvedEndpointGrantRequest,
|
|
8882
8895
|
ResolvedKayAgentArtifactUriModule,
|
package/package.json
CHANGED