@yaklabs-ai/plugin-protocol 0.55.2 → 0.55.3
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 +14 -1
- package/dist/index.js +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4958,8 +4958,13 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
|
|
|
4958
4958
|
* artifact usage declarations. A plugin using these declares ^0.55.1.
|
|
4959
4959
|
*
|
|
4960
4960
|
* 0.55.2 adds opt-in query and connection-selector preservation during URI claim normalization.
|
|
4961
|
+
*
|
|
4962
|
+
* 0.55.3 lets a signal carry the item's own text. `PluginSignal` gains an optional `body`: plain
|
|
4963
|
+
* text, at most `PLUGIN_SIGNAL_BODY_MAX` (20,000) characters. Gmail puts a mail's text there, so
|
|
4964
|
+
* Flows can keep the messages a task came from. Additive: a plugin that publishes a body declares
|
|
4965
|
+
* ^0.55.3.
|
|
4961
4966
|
*/
|
|
4962
|
-
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.
|
|
4967
|
+
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.3";
|
|
4963
4968
|
|
|
4964
4969
|
export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
|
|
4965
4970
|
|
|
@@ -8816,6 +8821,12 @@ export declare const PLUGIN_SIGNAL_ATTACHMENT_TYPE_MAX = 127;
|
|
|
8816
8821
|
/** At most this many entries in a signal's `attachments`; a source lists the first ones. */
|
|
8817
8822
|
export declare const PLUGIN_SIGNAL_ATTACHMENTS_MAX = 10;
|
|
8818
8823
|
|
|
8824
|
+
/**
|
|
8825
|
+
* A signal's `body`, the item's own text, at most this many characters: a source cuts longer text
|
|
8826
|
+
* and marks the cut. Enough for a long email with its quoted history.
|
|
8827
|
+
*/
|
|
8828
|
+
export declare const PLUGIN_SIGNAL_BODY_MAX = 20000;
|
|
8829
|
+
|
|
8819
8830
|
/** The `kind` values of `PluginSignal` v1. `status` is system state that clears itself. */
|
|
8820
8831
|
export declare const PLUGIN_SIGNAL_KINDS: readonly ["message", "request", "mention", "invite", "status"];
|
|
8821
8832
|
|
|
@@ -12542,6 +12553,7 @@ export declare const PluginSignal: z.ZodObject<{
|
|
|
12542
12553
|
}>>;
|
|
12543
12554
|
title: z.ZodOptional<z.ZodString>;
|
|
12544
12555
|
snippet: z.ZodOptional<z.ZodString>;
|
|
12556
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12545
12557
|
actor: z.ZodOptional<z.ZodObject<{
|
|
12546
12558
|
name: z.ZodOptional<z.ZodString>;
|
|
12547
12559
|
uri: z.ZodString;
|
|
@@ -12592,6 +12604,7 @@ export declare const PluginSignalPublish: z.ZodObject<{
|
|
|
12592
12604
|
}>>;
|
|
12593
12605
|
title: z.ZodOptional<z.ZodString>;
|
|
12594
12606
|
snippet: z.ZodOptional<z.ZodString>;
|
|
12607
|
+
body: z.ZodOptional<z.ZodString>;
|
|
12595
12608
|
actor: z.ZodOptional<z.ZodObject<{
|
|
12596
12609
|
name: z.ZodOptional<z.ZodString>;
|
|
12597
12610
|
uri: z.ZodString;
|
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.
|
|
263
|
+
var KAY_PLUGIN_SDK_VERSION = "0.55.3";
|
|
264
264
|
var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
|
|
265
|
+
"0.55.2",
|
|
265
266
|
"0.55.1",
|
|
266
267
|
"0.55.0",
|
|
267
268
|
"0.54.2",
|
|
@@ -2953,6 +2954,7 @@ __export(plugin_events_exports, {
|
|
|
2953
2954
|
PLUGIN_SIGNAL_ATTACHMENTS_MAX: () => PLUGIN_SIGNAL_ATTACHMENTS_MAX,
|
|
2954
2955
|
PLUGIN_SIGNAL_ATTACHMENT_NAME_MAX: () => PLUGIN_SIGNAL_ATTACHMENT_NAME_MAX,
|
|
2955
2956
|
PLUGIN_SIGNAL_ATTACHMENT_TYPE_MAX: () => PLUGIN_SIGNAL_ATTACHMENT_TYPE_MAX,
|
|
2957
|
+
PLUGIN_SIGNAL_BODY_MAX: () => PLUGIN_SIGNAL_BODY_MAX,
|
|
2956
2958
|
PLUGIN_SIGNAL_KINDS: () => PLUGIN_SIGNAL_KINDS,
|
|
2957
2959
|
PLUGIN_SIGNAL_LABELS_MAX: () => PLUGIN_SIGNAL_LABELS_MAX,
|
|
2958
2960
|
PLUGIN_SIGNAL_LABEL_MAX: () => PLUGIN_SIGNAL_LABEL_MAX,
|
|
@@ -2986,6 +2988,7 @@ var PLUGIN_SIGNAL_KINDS = [
|
|
|
2986
2988
|
];
|
|
2987
2989
|
var PLUGIN_SIGNAL_TITLE_MAX = 300;
|
|
2988
2990
|
var PLUGIN_SIGNAL_SNIPPET_MAX = 500;
|
|
2991
|
+
var PLUGIN_SIGNAL_BODY_MAX = 2e4;
|
|
2989
2992
|
var PLUGIN_SIGNAL_LABELS_MAX = 20;
|
|
2990
2993
|
var PLUGIN_SIGNAL_LABEL_MAX = 64;
|
|
2991
2994
|
var PLUGIN_SIGNAL_ATTACHMENTS_MAX = 10;
|
|
@@ -3055,6 +3058,13 @@ function createPluginEventsSchemas(canonical) {
|
|
|
3055
3058
|
direction: z12.enum(["in", "out"]).optional(),
|
|
3056
3059
|
title: z12.string().max(PLUGIN_SIGNAL_TITLE_MAX).optional(),
|
|
3057
3060
|
snippet: z12.string().max(PLUGIN_SIGNAL_SNIPPET_MAX).optional(),
|
|
3061
|
+
/**
|
|
3062
|
+
* The item's own text as plain text (a mail's body with its quoted history, a chat
|
|
3063
|
+
* message, an invite's description), at most `PLUGIN_SIGNAL_BODY_MAX` characters. A
|
|
3064
|
+
* consumer may keep it as the record of what was said; a source that cannot read it leaves
|
|
3065
|
+
* it out.
|
|
3066
|
+
*/
|
|
3067
|
+
body: z12.string().max(PLUGIN_SIGNAL_BODY_MAX).optional(),
|
|
3058
3068
|
actor: z12.strictObject({
|
|
3059
3069
|
name: z12.string().max(PLUGIN_SIGNAL_TITLE_MAX).optional(),
|
|
3060
3070
|
uri: PluginEventUri2
|
|
@@ -8610,6 +8620,7 @@ export {
|
|
|
8610
8620
|
PLUGIN_SIGNAL_ATTACHMENTS_MAX,
|
|
8611
8621
|
PLUGIN_SIGNAL_ATTACHMENT_NAME_MAX,
|
|
8612
8622
|
PLUGIN_SIGNAL_ATTACHMENT_TYPE_MAX,
|
|
8623
|
+
PLUGIN_SIGNAL_BODY_MAX,
|
|
8613
8624
|
PLUGIN_SIGNAL_KINDS,
|
|
8614
8625
|
PLUGIN_SIGNAL_LABELS_MAX,
|
|
8615
8626
|
PLUGIN_SIGNAL_LABEL_MAX,
|
package/package.json
CHANGED