@yaklabs-ai/plugin-sdk 0.47.0 → 0.48.0

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
@@ -13,7 +13,7 @@ it under the name your plugin code actually imports:
13
13
  ```json
14
14
  {
15
15
  "dependencies": {
16
- "@bonsai/plugin-sdk": "npm:@yaklabs-ai/plugin-sdk@^0.47.0"
16
+ "@bonsai/plugin-sdk": "npm:@yaklabs-ai/plugin-sdk@^0.48.0"
17
17
  }
18
18
  }
19
19
  ```
@@ -62,7 +62,7 @@ Every tool the entrypoint registers is declared in the manifest too:
62
62
  "description": "Greets people by name.",
63
63
  "version": "0.1.0",
64
64
  "namespace": "widgets",
65
- "compatibility": { "sdk": "^0.47.0" },
65
+ "compatibility": { "sdk": "^0.48.0" },
66
66
  "targets": {
67
67
  "kay": {
68
68
  "agent": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "package": "@yaklabs-ai/plugin-sdk",
4
- "version": "0.47.0",
4
+ "version": "0.48.0",
5
5
  "target": "npm",
6
6
  "firstPartyLicense": "MIT",
7
7
  "bundled": [
@@ -2152,6 +2152,8 @@ declare interface InteractiveQueuedMessage {
2152
2152
  readonly attachments?: AttachmentsDetails["refs"] | undefined;
2153
2153
  readonly context?: readonly ManagedHumanQueueContextPart[] | undefined;
2154
2154
  readonly resendError?: string | undefined;
2155
+ /** Why this message is waiting, when something is stopping its delivery. */
2156
+ readonly deliveryError?: string | undefined;
2155
2157
  /**
2156
2158
  * Managed-queue lifecycle, present only for items projected from a
2157
2159
  * `managed_human_queue_update` snapshot: `queued` (live in a delivery queue) or `editing`
@@ -2656,6 +2658,7 @@ declare interface ManagedHumanQueueItemSnapshot {
2656
2658
  readonly attachments?: AttachmentsDetails["refs"] | undefined;
2657
2659
  readonly context?: readonly ManagedHumanQueueContextPart[] | undefined;
2658
2660
  readonly resendError?: string | undefined;
2661
+ readonly deliveryError?: string | undefined;
2659
2662
  }
2660
2663
 
2661
2664
  /**
@@ -445,6 +445,7 @@ var HerdSessionProjection = z4.discriminatedUnion("type", [
445
445
  attachments: z4.array(ManagedQueueAttachmentRef).optional(),
446
446
  context: z4.array(ManagedQueueContextPart).optional(),
447
447
  resendError: z4.string().optional(),
448
+ deliveryError: z4.string().optional(),
448
449
  text: z4.string(),
449
450
  channel: z4.enum(["follow_up", "steer"]),
450
451
  status: z4.enum(["queued", "editing"])
@@ -1966,6 +1967,7 @@ function reduceManagedHumanQueueUpdate(state, event) {
1966
1967
  });
1967
1968
  const context = extractQueuedMessageContext(record);
1968
1969
  const resendError = getString(record, "resendError");
1970
+ const deliveryError = getString(record, "deliveryError");
1969
1971
  return [
1970
1972
  {
1971
1973
  id,
@@ -1976,6 +1978,7 @@ function reduceManagedHumanQueueUpdate(state, event) {
1976
1978
  ...attachments === void 0 || attachments.length === 0 ? {} : { attachments },
1977
1979
  ...context === void 0 ? {} : { context },
1978
1980
  ...resendError === void 0 ? {} : { resendError },
1981
+ ...deliveryError === void 0 ? {} : { deliveryError },
1979
1982
  ...status === "queued" || status === "editing" ? { status } : {}
1980
1983
  }
1981
1984
  ];
@@ -2444,8 +2444,10 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2444
2444
  * and read the provenance the host captured. Additive: a plugin that imports it declares ^0.46.0.
2445
2445
  *
2446
2446
  * 0.47.0 adds card layouts and builders; successful card submits now require a summary.
2447
+ *
2448
+ * 0.48.0 adds the models.complete UI capability.
2447
2449
  */
2448
- declare const KAY_PLUGIN_SDK_VERSION: "0.47.0";
2450
+ declare const KAY_PLUGIN_SDK_VERSION: "0.48.0";
2449
2451
 
2450
2452
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2451
2453
 
@@ -2498,8 +2498,10 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2498
2498
  * and read the provenance the host captured. Additive: a plugin that imports it declares ^0.46.0.
2499
2499
  *
2500
2500
  * 0.47.0 adds card layouts and builders; successful card submits now require a summary.
2501
+ *
2502
+ * 0.48.0 adds the models.complete UI capability.
2501
2503
  */
2502
- declare const KAY_PLUGIN_SDK_VERSION: "0.47.0";
2504
+ declare const KAY_PLUGIN_SDK_VERSION: "0.48.0";
2503
2505
 
2504
2506
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2505
2507
 
@@ -5917,6 +5919,7 @@ declare const ResolvedPluginContractV1: z.ZodObject<{
5917
5919
  host: z.ZodOptional<z.ZodArray<z.ZodEnum<{
5918
5920
  "navigation.open-session": "navigation.open-session";
5919
5921
  "sessions.create": "sessions.create";
5922
+ "models.complete": "models.complete";
5920
5923
  "artifacts.read": "artifacts.read";
5921
5924
  "artifacts.preview": "artifacts.preview";
5922
5925
  "markdown.document-view": "markdown.document-view";
@@ -2773,8 +2773,10 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2773
2773
  * and read the provenance the host captured. Additive: a plugin that imports it declares ^0.46.0.
2774
2774
  *
2775
2775
  * 0.47.0 adds card layouts and builders; successful card submits now require a summary.
2776
+ *
2777
+ * 0.48.0 adds the models.complete UI capability.
2776
2778
  */
2777
- declare const KAY_PLUGIN_SDK_VERSION: "0.47.0";
2779
+ declare const KAY_PLUGIN_SDK_VERSION: "0.48.0";
2778
2780
 
2779
2781
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2780
2782
 
package/dist/kay-app.d.ts CHANGED
@@ -2880,8 +2880,10 @@ declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
2880
2880
  * and read the provenance the host captured. Additive: a plugin that imports it declares ^0.46.0.
2881
2881
  *
2882
2882
  * 0.47.0 adds card layouts and builders; successful card submits now require a summary.
2883
+ *
2884
+ * 0.48.0 adds the models.complete UI capability.
2883
2885
  */
2884
- declare const KAY_PLUGIN_SDK_VERSION: "0.47.0";
2886
+ declare const KAY_PLUGIN_SDK_VERSION: "0.48.0";
2885
2887
 
2886
2888
  declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
2887
2889
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaklabs-ai/plugin-sdk",
3
- "version": "0.47.0",
3
+ "version": "0.48.0",
4
4
  "description": "The Kay plugin SDK — types and helpers for authoring a Kay directory plugin.",
5
5
  "author": "YakLabs",
6
6
  "type": "module",