@yaklabs-ai/plugin-protocol 0.37.1 → 0.39.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/dist/index.d.ts CHANGED
@@ -1684,6 +1684,7 @@ declare namespace authoringContributionSchemas {
1684
1684
  ReferencePresentationUrlClaim,
1685
1685
  ReferencePresentationTooltip,
1686
1686
  ReferencePresentationAddress,
1687
+ ReferencePresentationWords,
1687
1688
  ReferencePresentationContribution,
1688
1689
  RichViewContribution,
1689
1690
  KayUiAppHostCapability,
@@ -2528,25 +2529,25 @@ declare const canonicalContributionSchemas: {
2528
2529
  }, z.core.$strict>;
2529
2530
  McpServerUrl: z.ZodString;
2530
2531
  McpServerAuthMode: z.ZodEnum<{
2532
+ none: "none";
2531
2533
  oauth: "oauth";
2532
2534
  "api-key": "api-key";
2533
- none: "none";
2534
2535
  }>;
2535
2536
  McpServerContribution: z.ZodObject<{
2536
2537
  url: z.ZodString;
2537
2538
  auth: z.ZodOptional<z.ZodEnum<{
2539
+ none: "none";
2538
2540
  oauth: "oauth";
2539
2541
  "api-key": "api-key";
2540
- none: "none";
2541
2542
  }>>;
2542
2543
  authService: z.ZodOptional<z.ZodString>;
2543
2544
  }, z.core.$strict>;
2544
2545
  McpServerContributions: z.ZodRecord<z.ZodString, z.ZodObject<{
2545
2546
  url: z.ZodString;
2546
2547
  auth: z.ZodOptional<z.ZodEnum<{
2548
+ none: "none";
2547
2549
  oauth: "oauth";
2548
2550
  "api-key": "api-key";
2549
- none: "none";
2550
2551
  }>>;
2551
2552
  authService: z.ZodOptional<z.ZodString>;
2552
2553
  }, z.core.$strict>>;
@@ -2567,6 +2568,7 @@ declare const canonicalContributionSchemas: {
2567
2568
  uriScheme: z.ZodString;
2568
2569
  relatedKeys: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
2569
2570
  payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
2571
+ signal: z.ZodOptional<z.ZodBoolean>;
2570
2572
  }, z.core.$strict>;
2571
2573
  PluginNotificationRuleContribution: z.ZodObject<{
2572
2574
  localId: z.ZodString;
@@ -2680,6 +2682,37 @@ declare const canonicalContributionSchemas: {
2680
2682
  kind: z.ZodLiteral<"none">;
2681
2683
  }, z.core.$strict>>;
2682
2684
  }, z.core.$strict>;
2685
+ ReferencePresentationWords: z.ZodObject<{
2686
+ glyph: z.ZodOptional<z.ZodEnum<{
2687
+ file: "file";
2688
+ terminal: "terminal";
2689
+ note: "note";
2690
+ search: "search";
2691
+ person: "person";
2692
+ session: "session";
2693
+ browser: "browser";
2694
+ folder: "folder";
2695
+ repo: "repo";
2696
+ clock: "clock";
2697
+ robot: "robot";
2698
+ globe: "globe";
2699
+ skill: "skill";
2700
+ memory: "memory";
2701
+ plan: "plan";
2702
+ download: "download";
2703
+ attachment: "attachment";
2704
+ settings: "settings";
2705
+ catalog: "catalog";
2706
+ model: "model";
2707
+ doc: "doc";
2708
+ feedback: "feedback";
2709
+ plugin: "plugin";
2710
+ }>>;
2711
+ kind: z.ZodOptional<z.ZodString>;
2712
+ noun: z.ZodOptional<z.ZodString>;
2713
+ target: z.ZodOptional<z.ZodString>;
2714
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
2715
+ }, z.core.$strict>;
2683
2716
  ReferencePresentationContribution: z.ZodObject<{
2684
2717
  localId: z.ZodString;
2685
2718
  uriModule: z.ZodOptional<z.ZodString>;
@@ -2696,15 +2729,15 @@ declare const canonicalContributionSchemas: {
2696
2729
  kind: z.ZodLiteral<"none">;
2697
2730
  }, z.core.$strict>>;
2698
2731
  }, z.core.$strict>>>;
2699
- resourceKind: z.ZodString;
2700
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
2732
+ resourceKind: z.ZodOptional<z.ZodString>;
2733
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2701
2734
  kind: z.ZodLiteral<"working-document">;
2702
2735
  }, z.core.$strict>, z.ZodObject<{
2703
2736
  kind: z.ZodLiteral<"browser-pane">;
2704
2737
  }, z.core.$strict>, z.ZodObject<{
2705
2738
  kind: z.ZodLiteral<"page">;
2706
2739
  pageId: z.ZodString;
2707
- }, z.core.$strict>], "kind">;
2740
+ }, z.core.$strict>], "kind">>;
2708
2741
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2709
2742
  resourceKind: z.ZodString;
2710
2743
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -2731,6 +2764,37 @@ declare const canonicalContributionSchemas: {
2731
2764
  search: z.ZodOptional<z.ZodString>;
2732
2765
  }, z.core.$strict>;
2733
2766
  }, z.core.$strict>>;
2767
+ words: z.ZodOptional<z.ZodObject<{
2768
+ glyph: z.ZodOptional<z.ZodEnum<{
2769
+ file: "file";
2770
+ terminal: "terminal";
2771
+ note: "note";
2772
+ search: "search";
2773
+ person: "person";
2774
+ session: "session";
2775
+ browser: "browser";
2776
+ folder: "folder";
2777
+ repo: "repo";
2778
+ clock: "clock";
2779
+ robot: "robot";
2780
+ globe: "globe";
2781
+ skill: "skill";
2782
+ memory: "memory";
2783
+ plan: "plan";
2784
+ download: "download";
2785
+ attachment: "attachment";
2786
+ settings: "settings";
2787
+ catalog: "catalog";
2788
+ model: "model";
2789
+ doc: "doc";
2790
+ feedback: "feedback";
2791
+ plugin: "plugin";
2792
+ }>>;
2793
+ kind: z.ZodOptional<z.ZodString>;
2794
+ noun: z.ZodOptional<z.ZodString>;
2795
+ target: z.ZodOptional<z.ZodString>;
2796
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
2797
+ }, z.core.$strict>>;
2734
2798
  }, z.core.$strict>;
2735
2799
  RichViewContribution: z.ZodObject<{
2736
2800
  localId: z.ZodString;
@@ -3188,8 +3252,8 @@ export declare const CorpusResourceInvocationQuery: z.ZodObject<{
3188
3252
  }, z.core.$strict>>;
3189
3253
  limit: z.ZodOptional<z.ZodNumber>;
3190
3254
  rootCreatedByKind: z.ZodOptional<z.ZodEnum<{
3191
- agent: "agent";
3192
3255
  plugin: "plugin";
3256
+ agent: "agent";
3193
3257
  human: "human";
3194
3258
  trigger: "trigger";
3195
3259
  daemon: "daemon";
@@ -3434,6 +3498,20 @@ export declare function isCanonicalArtifactOutputUri(uri: string): boolean;
3434
3498
  /** Whether the report permits the plugin to load. */
3435
3499
  export declare function isCompatible(report: KayPluginCompatibilityReport): boolean;
3436
3500
 
3501
+ /**
3502
+ * The recognized credential VALUE formats: one detector for the runtime wire's raw-credential
3503
+ * tripwire (`@bonsai/agent-runtime-protocol`'s `hasRawCredentialField`) and for a plugin that
3504
+ * must keep such text out of what it publishes, so the two cannot disagree on what a hit is.
3505
+ * Lives here, below both, because a plugin cannot import the runtime protocol.
3506
+ */
3507
+ /**
3508
+ * Whether `value` is a string in a recognized credential format (a whole `sk-...`, `ghp_...` or
3509
+ * `xoxb-...` token, a JWT, an Authorization header value, or anything holding a PEM private key
3510
+ * block). A publisher that copies outside text into an event drops or replaces such a string:
3511
+ * the daemon refuses an event that carries one.
3512
+ */
3513
+ export declare function isCredentialShapedText(value: unknown): boolean;
3514
+
3437
3515
  /**
3438
3516
  * Whether a refusal `code` came from the compatibility check: the plugin was written for another
3439
3517
  * SDK or protocol, as opposed to being malformed.
@@ -4156,8 +4234,17 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
4156
4234
  * 0.37.1 adds the required, ungated `featureFlags.value(key)` reader to both backend targets.
4157
4235
  * Unknown keys return false; the host supplies evaluated values before activation and updates them.
4158
4236
  * Additive: existing plugins keep loading. A consumer declares ^0.37.1.
4237
+ *
4238
+ * 0.38.0 adds signals (epic #15668). An event definition may declare `signal: true`, and its payload
4239
+ * is then the shared `PluginSignal` v1 with a `related.thread`; a workflow of a plugin the release
4240
+ * carries may start on every plugin's signals with `{ kind: "plugin-event", signals: true }` (the
4241
+ * private `workflows.signals` claim). Additive: a plugin that declares a signal declares ^0.38.0.
4242
+ *
4243
+ * 0.39.0 lets a plugin word its own addresses (#15750). A reference presentation gains `words`, and
4244
+ * `open` and `resourceKind` become an optional pair, so a module can name its rows, tallies and live
4245
+ * phrases without its addresses opening. Additive. A plugin that declares words declares ^0.39.0.
4159
4246
  */
4160
- export declare const KAY_PLUGIN_SDK_VERSION: "0.37.1";
4247
+ export declare const KAY_PLUGIN_SDK_VERSION: "0.39.0";
4161
4248
 
4162
4249
  export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
4163
4250
 
@@ -4774,6 +4861,7 @@ export declare const KayAppTargetManifest: z.ZodObject<{
4774
4861
  uriScheme: z.ZodString;
4775
4862
  relatedKeys: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
4776
4863
  payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
4864
+ signal: z.ZodOptional<z.ZodBoolean>;
4777
4865
  }, z.core.$strict>>>;
4778
4866
  notificationRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
4779
4867
  localId: z.ZodString;
@@ -4813,9 +4901,9 @@ export declare const KayAppTargetManifest: z.ZodObject<{
4813
4901
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4814
4902
  url: z.ZodString;
4815
4903
  auth: z.ZodOptional<z.ZodEnum<{
4904
+ none: "none";
4816
4905
  oauth: "oauth";
4817
4906
  "api-key": "api-key";
4818
- none: "none";
4819
4907
  }>>;
4820
4908
  authService: z.ZodOptional<z.ZodString>;
4821
4909
  }, z.core.$strict>>>;
@@ -5545,6 +5633,7 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5545
5633
  uriScheme: z.ZodString;
5546
5634
  relatedKeys: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5547
5635
  payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
5636
+ signal: z.ZodOptional<z.ZodBoolean>;
5548
5637
  }, z.core.$strict>>>;
5549
5638
  notificationRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
5550
5639
  localId: z.ZodString;
@@ -5584,9 +5673,9 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5584
5673
  mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5585
5674
  url: z.ZodString;
5586
5675
  auth: z.ZodOptional<z.ZodEnum<{
5676
+ none: "none";
5587
5677
  oauth: "oauth";
5588
5678
  "api-key": "api-key";
5589
- none: "none";
5590
5679
  }>>;
5591
5680
  authService: z.ZodOptional<z.ZodString>;
5592
5681
  }, z.core.$strict>>>;
@@ -5659,15 +5748,15 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5659
5748
  kind: z.ZodLiteral<"none">;
5660
5749
  }, z.core.$strict>>;
5661
5750
  }, z.core.$strict>>>;
5662
- resourceKind: z.ZodString;
5663
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
5751
+ resourceKind: z.ZodOptional<z.ZodString>;
5752
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5664
5753
  kind: z.ZodLiteral<"working-document">;
5665
5754
  }, z.core.$strict>, z.ZodObject<{
5666
5755
  kind: z.ZodLiteral<"browser-pane">;
5667
5756
  }, z.core.$strict>, z.ZodObject<{
5668
5757
  kind: z.ZodLiteral<"page">;
5669
5758
  pageId: z.ZodString;
5670
- }, z.core.$strict>], "kind">;
5759
+ }, z.core.$strict>], "kind">>;
5671
5760
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5672
5761
  resourceKind: z.ZodString;
5673
5762
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -5694,6 +5783,37 @@ export declare const KayPluginManifestV1: z.ZodObject<{
5694
5783
  search: z.ZodOptional<z.ZodString>;
5695
5784
  }, z.core.$strict>;
5696
5785
  }, z.core.$strict>>;
5786
+ words: z.ZodOptional<z.ZodObject<{
5787
+ glyph: z.ZodOptional<z.ZodEnum<{
5788
+ file: "file";
5789
+ terminal: "terminal";
5790
+ note: "note";
5791
+ search: "search";
5792
+ person: "person";
5793
+ session: "session";
5794
+ browser: "browser";
5795
+ folder: "folder";
5796
+ repo: "repo";
5797
+ clock: "clock";
5798
+ robot: "robot";
5799
+ globe: "globe";
5800
+ skill: "skill";
5801
+ memory: "memory";
5802
+ plan: "plan";
5803
+ download: "download";
5804
+ attachment: "attachment";
5805
+ settings: "settings";
5806
+ catalog: "catalog";
5807
+ model: "model";
5808
+ doc: "doc";
5809
+ feedback: "feedback";
5810
+ plugin: "plugin";
5811
+ }>>;
5812
+ kind: z.ZodOptional<z.ZodString>;
5813
+ noun: z.ZodOptional<z.ZodString>;
5814
+ target: z.ZodOptional<z.ZodString>;
5815
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
5816
+ }, z.core.$strict>>;
5697
5817
  }, z.core.$strict>>>;
5698
5818
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
5699
5819
  localId: z.ZodString;
@@ -6792,15 +6912,15 @@ export declare const KayUiTargetManifest: z.ZodObject<{
6792
6912
  kind: z.ZodLiteral<"none">;
6793
6913
  }, z.core.$strict>>;
6794
6914
  }, z.core.$strict>>>;
6795
- resourceKind: z.ZodString;
6796
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
6915
+ resourceKind: z.ZodOptional<z.ZodString>;
6916
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
6797
6917
  kind: z.ZodLiteral<"working-document">;
6798
6918
  }, z.core.$strict>, z.ZodObject<{
6799
6919
  kind: z.ZodLiteral<"browser-pane">;
6800
6920
  }, z.core.$strict>, z.ZodObject<{
6801
6921
  kind: z.ZodLiteral<"page">;
6802
6922
  pageId: z.ZodString;
6803
- }, z.core.$strict>], "kind">;
6923
+ }, z.core.$strict>], "kind">>;
6804
6924
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6805
6925
  resourceKind: z.ZodString;
6806
6926
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -6827,6 +6947,37 @@ export declare const KayUiTargetManifest: z.ZodObject<{
6827
6947
  search: z.ZodOptional<z.ZodString>;
6828
6948
  }, z.core.$strict>;
6829
6949
  }, z.core.$strict>>;
6950
+ words: z.ZodOptional<z.ZodObject<{
6951
+ glyph: z.ZodOptional<z.ZodEnum<{
6952
+ file: "file";
6953
+ terminal: "terminal";
6954
+ note: "note";
6955
+ search: "search";
6956
+ person: "person";
6957
+ session: "session";
6958
+ browser: "browser";
6959
+ folder: "folder";
6960
+ repo: "repo";
6961
+ clock: "clock";
6962
+ robot: "robot";
6963
+ globe: "globe";
6964
+ skill: "skill";
6965
+ memory: "memory";
6966
+ plan: "plan";
6967
+ download: "download";
6968
+ attachment: "attachment";
6969
+ settings: "settings";
6970
+ catalog: "catalog";
6971
+ model: "model";
6972
+ doc: "doc";
6973
+ feedback: "feedback";
6974
+ plugin: "plugin";
6975
+ }>>;
6976
+ kind: z.ZodOptional<z.ZodString>;
6977
+ noun: z.ZodOptional<z.ZodString>;
6978
+ target: z.ZodOptional<z.ZodString>;
6979
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
6980
+ }, z.core.$strict>>;
6830
6981
  }, z.core.$strict>>>;
6831
6982
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
6832
6983
  localId: z.ZodString;
@@ -6996,9 +7147,9 @@ export declare const MCP_SIGN_IN_SCHEME_KIND: {
6996
7147
  };
6997
7148
 
6998
7149
  export declare const McpServerAuthMode: z.ZodEnum<{
7150
+ none: "none";
6999
7151
  oauth: "oauth";
7000
7152
  "api-key": "api-key";
7001
- none: "none";
7002
7153
  }>;
7003
7154
 
7004
7155
  export declare type McpServerAuthMode = z.infer<typeof McpServerAuthMode>;
@@ -7006,9 +7157,9 @@ export declare type McpServerAuthMode = z.infer<typeof McpServerAuthMode>;
7006
7157
  export declare const McpServerContribution: z.ZodObject<{
7007
7158
  url: z.ZodString;
7008
7159
  auth: z.ZodOptional<z.ZodEnum<{
7160
+ none: "none";
7009
7161
  oauth: "oauth";
7010
7162
  "api-key": "api-key";
7011
- none: "none";
7012
7163
  }>>;
7013
7164
  authService: z.ZodOptional<z.ZodString>;
7014
7165
  }, z.core.$strict>;
@@ -7018,9 +7169,9 @@ export declare type McpServerContribution = z.infer<typeof McpServerContribution
7018
7169
  export declare const McpServerContributions: z.ZodRecord<z.ZodString, z.ZodObject<{
7019
7170
  url: z.ZodString;
7020
7171
  auth: z.ZodOptional<z.ZodEnum<{
7172
+ none: "none";
7021
7173
  oauth: "oauth";
7022
7174
  "api-key": "api-key";
7023
- none: "none";
7024
7175
  }>>;
7025
7176
  authService: z.ZodOptional<z.ZodString>;
7026
7177
  }, z.core.$strict>>;
@@ -7149,7 +7300,7 @@ export declare function parseSemver(value: string): ParsedSemver | undefined;
7149
7300
  export declare function parseWhere(source: string, keyTypes?: WhereKeyTypes): WhereParseResult;
7150
7301
 
7151
7302
  /** Every capability slug {@link PluginCapabilityClaimV1} can express, for exhaustive table checks. */
7152
- export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "memory.read", "memory.write", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "sessions.annotate", "sessions.compact", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "knowledge-source.register", "artifacts.read", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
7303
+ export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "memory.read", "memory.write", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "sessions.annotate", "sessions.compact", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "workflows.signals", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "knowledge-source.register", "artifacts.read", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
7153
7304
 
7154
7305
  /** Diagnostic messages carry plugin-controlled text (parse errors, module errors); bound it so a
7155
7306
  * hostile or accidental multi-megabyte error can never blow up a log line or a render surface. */
@@ -7157,12 +7308,32 @@ export declare const PLUGIN_DIAGNOSTIC_MESSAGE_CAP = 300;
7157
7308
 
7158
7309
  export declare const PLUGIN_EVENT_ID_MAX_BYTES = 1024;
7159
7310
 
7311
+ /**
7312
+ * The `name` of the error a host throws when it refuses a publish because the event is invalid.
7313
+ * A publisher skips such an event; any other publish failure may be transient.
7314
+ */
7315
+ export declare const PLUGIN_EVENT_REFUSED_ERROR_NAME = "PluginEventRefusedError";
7316
+
7160
7317
  /** The root `<svg>` attribute a tile icon declares itself with. */
7161
7318
  export declare const PLUGIN_ICON_SHAPE_ATTRIBUTE = "data-icon-shape";
7162
7319
 
7163
7320
  /** Rule-body keys the host stamps, so a manifest's `rule` may not carry them. */
7164
7321
  export declare const PLUGIN_NOTIFICATION_RULE_HOST_KEYS: readonly ["id", "match", "sender"];
7165
7322
 
7323
+ /** The `kind` values of `PluginSignal` v1. `status` is system state that clears itself. */
7324
+ export declare const PLUGIN_SIGNAL_KINDS: readonly ["message", "request", "mention", "invite", "status"];
7325
+
7326
+ export declare const PLUGIN_SIGNAL_LABEL_MAX = 64;
7327
+
7328
+ export declare const PLUGIN_SIGNAL_LABELS_MAX = 20;
7329
+
7330
+ /** The `related` keys a signal may use; `thread` is required on every signal publish. */
7331
+ export declare const PLUGIN_SIGNAL_RELATED_KEYS: readonly ["thread", "from", "to", "cc"];
7332
+
7333
+ export declare const PLUGIN_SIGNAL_SNIPPET_MAX = 500;
7334
+
7335
+ export declare const PLUGIN_SIGNAL_TITLE_MAX = 300;
7336
+
7166
7337
  export declare const PluginAgentDefinitionPermissionRule: z.ZodObject<{
7167
7338
  effect: z.ZodEnum<{
7168
7339
  allow: "allow";
@@ -7751,6 +7922,10 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
7751
7922
  target: "kay.app";
7752
7923
  slug: "workflows.define";
7753
7924
  envelope: Record<string, never>;
7925
+ } | {
7926
+ target: "kay.app";
7927
+ slug: "workflows.signals";
7928
+ envelope: Record<string, never>;
7754
7929
  } | {
7755
7930
  target: "kay.app";
7756
7931
  slug: "session-events.subscribe";
@@ -7996,6 +8171,10 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
7996
8171
  target: "kay.app";
7997
8172
  slug: "workflows.define";
7998
8173
  envelope: Record<string, never>;
8174
+ } | {
8175
+ target: "kay.app";
8176
+ slug: "workflows.signals";
8177
+ envelope: Record<string, never>;
7999
8178
  } | {
8000
8179
  target: "kay.app";
8001
8180
  slug: "session-events.subscribe";
@@ -8237,6 +8416,10 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
8237
8416
  target: z.ZodLiteral<"kay.app">;
8238
8417
  slug: z.ZodLiteral<"workflows.define">;
8239
8418
  envelope: z.ZodObject<{}, z.core.$strict>;
8419
+ }, z.core.$strict>, z.ZodObject<{
8420
+ target: z.ZodLiteral<"kay.app">;
8421
+ slug: z.ZodLiteral<"workflows.signals">;
8422
+ envelope: z.ZodObject<{}, z.core.$strict>;
8240
8423
  }, z.core.$strict>, z.ZodObject<{
8241
8424
  target: z.ZodLiteral<"kay.app">;
8242
8425
  slug: z.ZodLiteral<"session-events.subscribe">;
@@ -8521,6 +8704,10 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
8521
8704
  target: z.ZodLiteral<"kay.app">;
8522
8705
  slug: z.ZodLiteral<"workflows.define">;
8523
8706
  envelope: z.ZodObject<{}, z.core.$strict>;
8707
+ }, z.core.$strict>, z.ZodObject<{
8708
+ target: z.ZodLiteral<"kay.app">;
8709
+ slug: z.ZodLiteral<"workflows.signals">;
8710
+ envelope: z.ZodObject<{}, z.core.$strict>;
8524
8711
  }, z.core.$strict>, z.ZodObject<{
8525
8712
  target: z.ZodLiteral<"kay.app">;
8526
8713
  slug: z.ZodLiteral<"session-events.subscribe">;
@@ -8804,6 +8991,10 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
8804
8991
  target: z.ZodLiteral<"kay.app">;
8805
8992
  slug: z.ZodLiteral<"workflows.define">;
8806
8993
  envelope: z.ZodObject<{}, z.core.$strict>;
8994
+ }, z.core.$strict>, z.ZodObject<{
8995
+ target: z.ZodLiteral<"kay.app">;
8996
+ slug: z.ZodLiteral<"workflows.signals">;
8997
+ envelope: z.ZodObject<{}, z.core.$strict>;
8807
8998
  }, z.core.$strict>, z.ZodObject<{
8808
8999
  target: z.ZodLiteral<"kay.app">;
8809
9000
  slug: z.ZodLiteral<"session-events.subscribe">;
@@ -9121,6 +9312,10 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
9121
9312
  target: z.ZodLiteral<"kay.app">;
9122
9313
  slug: z.ZodLiteral<"workflows.define">;
9123
9314
  envelope: z.ZodObject<{}, z.core.$strict>;
9315
+ }, z.core.$strict>, z.ZodObject<{
9316
+ target: z.ZodLiteral<"kay.app">;
9317
+ slug: z.ZodLiteral<"workflows.signals">;
9318
+ envelope: z.ZodObject<{}, z.core.$strict>;
9124
9319
  }, z.core.$strict>, z.ZodObject<{
9125
9320
  target: z.ZodLiteral<"kay.app">;
9126
9321
  slug: z.ZodLiteral<"session-events.subscribe">;
@@ -9403,6 +9598,7 @@ export declare const PluginEventDefinitionContribution: z.ZodObject<{
9403
9598
  uriScheme: z.ZodString;
9404
9599
  relatedKeys: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
9405
9600
  payloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<authoringCommonSchemas.JsonValue, unknown, z.core.$ZodTypeInternals<authoringCommonSchemas.JsonValue, unknown>>>>;
9601
+ signal: z.ZodOptional<z.ZodBoolean>;
9406
9602
  }, z.core.$strict>;
9407
9603
 
9408
9604
  export declare type PluginEventDefinitionContribution = z.infer<typeof PluginEventDefinitionContribution>;
@@ -10211,6 +10407,92 @@ export declare const PluginProvisioningRequirement: z.ZodObject<{
10211
10407
 
10212
10408
  export declare type PluginProvisioningRequirement = z.infer<typeof PluginProvisioningRequirement>;
10213
10409
 
10410
+ export declare const PluginSignal: z.ZodObject<{
10411
+ kind: z.ZodEnum<{
10412
+ message: "message";
10413
+ status: "status";
10414
+ request: "request";
10415
+ mention: "mention";
10416
+ invite: "invite";
10417
+ }>;
10418
+ direction: z.ZodOptional<z.ZodEnum<{
10419
+ out: "out";
10420
+ in: "in";
10421
+ }>>;
10422
+ title: z.ZodOptional<z.ZodString>;
10423
+ snippet: z.ZodOptional<z.ZodString>;
10424
+ actor: z.ZodOptional<z.ZodObject<{
10425
+ name: z.ZodOptional<z.ZodString>;
10426
+ uri: z.ZodString;
10427
+ }, z.core.$strict>>;
10428
+ addressed: z.ZodOptional<z.ZodEnum<{
10429
+ mention: "mention";
10430
+ cc: "cc";
10431
+ direct: "direct";
10432
+ group: "group";
10433
+ none: "none";
10434
+ }>>;
10435
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10436
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
10437
+ state: z.ZodOptional<z.ZodEnum<{
10438
+ open: "open";
10439
+ resolved: "resolved";
10440
+ }>>;
10441
+ }, z.core.$strict>;
10442
+
10443
+ export declare type PluginSignal = z.infer<typeof PluginSignal>;
10444
+
10445
+ export declare type PluginSignalKind = (typeof PLUGIN_SIGNAL_KINDS)[number];
10446
+
10447
+ /**
10448
+ * `PluginSignal` v1 as JSON Schema, for the hosts that check a `payload.*` filter path against a
10449
+ * declaration. A signal definition declares no `payloadSchema`; this stands in for it.
10450
+ */
10451
+ export declare function pluginSignalPayloadJsonSchema(): Record<string, unknown>;
10452
+
10453
+ export declare const PluginSignalPublish: z.ZodObject<{
10454
+ payload: z.ZodObject<{
10455
+ kind: z.ZodEnum<{
10456
+ message: "message";
10457
+ status: "status";
10458
+ request: "request";
10459
+ mention: "mention";
10460
+ invite: "invite";
10461
+ }>;
10462
+ direction: z.ZodOptional<z.ZodEnum<{
10463
+ out: "out";
10464
+ in: "in";
10465
+ }>>;
10466
+ title: z.ZodOptional<z.ZodString>;
10467
+ snippet: z.ZodOptional<z.ZodString>;
10468
+ actor: z.ZodOptional<z.ZodObject<{
10469
+ name: z.ZodOptional<z.ZodString>;
10470
+ uri: z.ZodString;
10471
+ }, z.core.$strict>>;
10472
+ addressed: z.ZodOptional<z.ZodEnum<{
10473
+ mention: "mention";
10474
+ cc: "cc";
10475
+ direct: "direct";
10476
+ group: "group";
10477
+ none: "none";
10478
+ }>>;
10479
+ labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10480
+ dueAt: z.ZodOptional<z.ZodISODateTime>;
10481
+ state: z.ZodOptional<z.ZodEnum<{
10482
+ open: "open";
10483
+ resolved: "resolved";
10484
+ }>>;
10485
+ }, z.core.$strict>;
10486
+ related: z.ZodObject<{
10487
+ thread: z.ZodString;
10488
+ from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
10489
+ to: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
10490
+ cc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
10491
+ }, z.core.$strict>;
10492
+ }, z.core.$strip>;
10493
+
10494
+ export declare type PluginSignalPublish = z.infer<typeof PluginSignalPublish>;
10495
+
10214
10496
  export declare const PluginSkillSourceDeclaration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10215
10497
  channel: z.ZodLiteral<"installer">;
10216
10498
  localId: z.ZodString;
@@ -10368,15 +10650,15 @@ export declare const ReferencePresentationContribution: z.ZodObject<{
10368
10650
  kind: z.ZodLiteral<"none">;
10369
10651
  }, z.core.$strict>>;
10370
10652
  }, z.core.$strict>>>;
10371
- resourceKind: z.ZodString;
10372
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
10653
+ resourceKind: z.ZodOptional<z.ZodString>;
10654
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10373
10655
  kind: z.ZodLiteral<"working-document">;
10374
10656
  }, z.core.$strict>, z.ZodObject<{
10375
10657
  kind: z.ZodLiteral<"browser-pane">;
10376
10658
  }, z.core.$strict>, z.ZodObject<{
10377
10659
  kind: z.ZodLiteral<"page">;
10378
10660
  pageId: z.ZodString;
10379
- }, z.core.$strict>], "kind">;
10661
+ }, z.core.$strict>], "kind">>;
10380
10662
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
10381
10663
  resourceKind: z.ZodString;
10382
10664
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -10403,6 +10685,37 @@ export declare const ReferencePresentationContribution: z.ZodObject<{
10403
10685
  search: z.ZodOptional<z.ZodString>;
10404
10686
  }, z.core.$strict>;
10405
10687
  }, z.core.$strict>>;
10688
+ words: z.ZodOptional<z.ZodObject<{
10689
+ glyph: z.ZodOptional<z.ZodEnum<{
10690
+ file: "file";
10691
+ terminal: "terminal";
10692
+ note: "note";
10693
+ search: "search";
10694
+ person: "person";
10695
+ session: "session";
10696
+ browser: "browser";
10697
+ folder: "folder";
10698
+ repo: "repo";
10699
+ clock: "clock";
10700
+ robot: "robot";
10701
+ globe: "globe";
10702
+ skill: "skill";
10703
+ memory: "memory";
10704
+ plan: "plan";
10705
+ download: "download";
10706
+ attachment: "attachment";
10707
+ settings: "settings";
10708
+ catalog: "catalog";
10709
+ model: "model";
10710
+ doc: "doc";
10711
+ feedback: "feedback";
10712
+ plugin: "plugin";
10713
+ }>>;
10714
+ kind: z.ZodOptional<z.ZodString>;
10715
+ noun: z.ZodOptional<z.ZodString>;
10716
+ target: z.ZodOptional<z.ZodString>;
10717
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
10718
+ }, z.core.$strict>>;
10406
10719
  }, z.core.$strict>;
10407
10720
 
10408
10721
  export declare type ReferencePresentationContribution = z.infer<typeof ReferencePresentationContribution>;
@@ -10458,6 +10771,40 @@ export declare const ReferencePresentationVariants: z.ZodRecord<z.ZodString, z.Z
10458
10771
 
10459
10772
  export declare type ReferencePresentationVariants = z.infer<typeof ReferencePresentationVariants>;
10460
10773
 
10774
+ export declare const ReferencePresentationWords: z.ZodObject<{
10775
+ glyph: z.ZodOptional<z.ZodEnum<{
10776
+ file: "file";
10777
+ terminal: "terminal";
10778
+ note: "note";
10779
+ search: "search";
10780
+ person: "person";
10781
+ session: "session";
10782
+ browser: "browser";
10783
+ folder: "folder";
10784
+ repo: "repo";
10785
+ clock: "clock";
10786
+ robot: "robot";
10787
+ globe: "globe";
10788
+ skill: "skill";
10789
+ memory: "memory";
10790
+ plan: "plan";
10791
+ download: "download";
10792
+ attachment: "attachment";
10793
+ settings: "settings";
10794
+ catalog: "catalog";
10795
+ model: "model";
10796
+ doc: "doc";
10797
+ feedback: "feedback";
10798
+ plugin: "plugin";
10799
+ }>>;
10800
+ kind: z.ZodOptional<z.ZodString>;
10801
+ noun: z.ZodOptional<z.ZodString>;
10802
+ target: z.ZodOptional<z.ZodString>;
10803
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
10804
+ }, z.core.$strict>;
10805
+
10806
+ export declare type ReferencePresentationWords = z.infer<typeof ReferencePresentationWords>;
10807
+
10461
10808
  /**
10462
10809
  * The web-session scope-confinement refinement, coined ONCE and shared by both
10463
10810
  * web-session boundaries: `loginUrl` and `probe.url` must each fall within a
@@ -10954,9 +11301,9 @@ export declare const ResolvedKayAppMcpServer: z.ZodObject<{
10954
11301
  pluginId: z.ZodString;
10955
11302
  url: z.ZodString;
10956
11303
  auth: z.ZodEnum<{
11304
+ none: "none";
10957
11305
  oauth: "oauth";
10958
11306
  "api-key": "api-key";
10959
- none: "none";
10960
11307
  }>;
10961
11308
  authServiceId: z.ZodOptional<z.ZodString>;
10962
11309
  }, z.core.$strict>;
@@ -12247,9 +12594,9 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12247
12594
  pluginId: z.ZodString;
12248
12595
  url: z.ZodString;
12249
12596
  auth: z.ZodEnum<{
12597
+ none: "none";
12250
12598
  oauth: "oauth";
12251
12599
  "api-key": "api-key";
12252
- none: "none";
12253
12600
  }>;
12254
12601
  authServiceId: z.ZodOptional<z.ZodString>;
12255
12602
  }, z.core.$strict>>>;
@@ -12265,6 +12612,7 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12265
12612
  globalId: z.ZodString;
12266
12613
  uriModule: z.ZodOptional<z.ZodString>;
12267
12614
  schemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
12615
+ displayName: z.ZodOptional<z.ZodString>;
12268
12616
  addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
12269
12617
  pattern: z.ZodObject<{
12270
12618
  protocol: z.ZodString;
@@ -12277,15 +12625,15 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12277
12625
  kind: z.ZodLiteral<"none">;
12278
12626
  }, z.core.$strict>>;
12279
12627
  }, z.core.$strict>>>;
12280
- resourceKind: z.ZodString;
12281
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
12628
+ resourceKind: z.ZodOptional<z.ZodString>;
12629
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
12282
12630
  kind: z.ZodLiteral<"working-document">;
12283
12631
  }, z.core.$strict>, z.ZodObject<{
12284
12632
  kind: z.ZodLiteral<"browser-pane">;
12285
12633
  }, z.core.$strict>, z.ZodObject<{
12286
12634
  kind: z.ZodLiteral<"page">;
12287
12635
  pageId: z.ZodString;
12288
- }, z.core.$strict>], "kind">;
12636
+ }, z.core.$strict>], "kind">>;
12289
12637
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
12290
12638
  resourceKind: z.ZodString;
12291
12639
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -12312,6 +12660,37 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
12312
12660
  search: z.ZodOptional<z.ZodString>;
12313
12661
  }, z.core.$strict>;
12314
12662
  }, z.core.$strict>>;
12663
+ words: z.ZodOptional<z.ZodObject<{
12664
+ glyph: z.ZodOptional<z.ZodEnum<{
12665
+ file: "file";
12666
+ terminal: "terminal";
12667
+ note: "note";
12668
+ search: "search";
12669
+ person: "person";
12670
+ session: "session";
12671
+ browser: "browser";
12672
+ folder: "folder";
12673
+ repo: "repo";
12674
+ clock: "clock";
12675
+ robot: "robot";
12676
+ globe: "globe";
12677
+ skill: "skill";
12678
+ memory: "memory";
12679
+ plan: "plan";
12680
+ download: "download";
12681
+ attachment: "attachment";
12682
+ settings: "settings";
12683
+ catalog: "catalog";
12684
+ model: "model";
12685
+ doc: "doc";
12686
+ feedback: "feedback";
12687
+ plugin: "plugin";
12688
+ }>>;
12689
+ kind: z.ZodOptional<z.ZodString>;
12690
+ noun: z.ZodOptional<z.ZodString>;
12691
+ target: z.ZodOptional<z.ZodString>;
12692
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
12693
+ }, z.core.$strict>>;
12315
12694
  }, z.core.$strict>>>;
12316
12695
  kayUiApps: z.ZodOptional<z.ZodArray<z.ZodObject<{
12317
12696
  localId: z.ZodString;
@@ -12745,6 +13124,7 @@ export declare const ResolvedReferencePresentation: z.ZodObject<{
12745
13124
  globalId: z.ZodString;
12746
13125
  uriModule: z.ZodOptional<z.ZodString>;
12747
13126
  schemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
13127
+ displayName: z.ZodOptional<z.ZodString>;
12748
13128
  addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
12749
13129
  pattern: z.ZodObject<{
12750
13130
  protocol: z.ZodString;
@@ -12757,15 +13137,15 @@ export declare const ResolvedReferencePresentation: z.ZodObject<{
12757
13137
  kind: z.ZodLiteral<"none">;
12758
13138
  }, z.core.$strict>>;
12759
13139
  }, z.core.$strict>>>;
12760
- resourceKind: z.ZodString;
12761
- open: z.ZodDiscriminatedUnion<[z.ZodObject<{
13140
+ resourceKind: z.ZodOptional<z.ZodString>;
13141
+ open: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
12762
13142
  kind: z.ZodLiteral<"working-document">;
12763
13143
  }, z.core.$strict>, z.ZodObject<{
12764
13144
  kind: z.ZodLiteral<"browser-pane">;
12765
13145
  }, z.core.$strict>, z.ZodObject<{
12766
13146
  kind: z.ZodLiteral<"page">;
12767
13147
  pageId: z.ZodString;
12768
- }, z.core.$strict>], "kind">;
13148
+ }, z.core.$strict>], "kind">>;
12769
13149
  variants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
12770
13150
  resourceKind: z.ZodString;
12771
13151
  presentationPluginId: z.ZodOptional<z.ZodString>;
@@ -12792,6 +13172,37 @@ export declare const ResolvedReferencePresentation: z.ZodObject<{
12792
13172
  search: z.ZodOptional<z.ZodString>;
12793
13173
  }, z.core.$strict>;
12794
13174
  }, z.core.$strict>>;
13175
+ words: z.ZodOptional<z.ZodObject<{
13176
+ glyph: z.ZodOptional<z.ZodEnum<{
13177
+ file: "file";
13178
+ terminal: "terminal";
13179
+ note: "note";
13180
+ search: "search";
13181
+ person: "person";
13182
+ session: "session";
13183
+ browser: "browser";
13184
+ folder: "folder";
13185
+ repo: "repo";
13186
+ clock: "clock";
13187
+ robot: "robot";
13188
+ globe: "globe";
13189
+ skill: "skill";
13190
+ memory: "memory";
13191
+ plan: "plan";
13192
+ download: "download";
13193
+ attachment: "attachment";
13194
+ settings: "settings";
13195
+ catalog: "catalog";
13196
+ model: "model";
13197
+ doc: "doc";
13198
+ feedback: "feedback";
13199
+ plugin: "plugin";
13200
+ }>>;
13201
+ kind: z.ZodOptional<z.ZodString>;
13202
+ noun: z.ZodOptional<z.ZodString>;
13203
+ target: z.ZodOptional<z.ZodString>;
13204
+ kindNamesSource: z.ZodOptional<z.ZodLiteral<true>>;
13205
+ }, z.core.$strict>>;
12795
13206
  }, z.core.$strict>;
12796
13207
 
12797
13208
  export declare type ResolvedReferencePresentation = z.infer<typeof ResolvedReferencePresentation>;
@@ -13835,6 +14246,9 @@ export declare const ThemeContribution: z.ZodObject<{
13835
14246
 
13836
14247
  export declare type ThemeContribution = z.infer<typeof ThemeContribution>;
13837
14248
 
14249
+ /** The marks Bonsai draws for local work and for sources with no icon of their own. */
14250
+ export declare const TOOL_GLYPHS: readonly ["terminal", "file", "search", "folder", "person", "repo", "clock", "robot", "globe", "browser", "skill", "memory", "session", "plan", "download", "attachment", "settings", "catalog", "model", "doc", "feedback", "plugin", "note"];
14251
+
13838
14252
  export declare const ToolContribution: z.ZodObject<{
13839
14253
  localId: z.ZodString;
13840
14254
  toolName: z.ZodString;
@@ -13844,6 +14258,9 @@ export declare const ToolContribution: z.ZodObject<{
13844
14258
 
13845
14259
  export declare type ToolContribution = z.infer<typeof ToolContribution>;
13846
14260
 
14261
+ /** A mark for local work and for Bonsai's own surfaces, drawn at the start of a tool row. */
14262
+ export declare type ToolGlyph = (typeof TOOL_GLYPHS)[number];
14263
+
13847
14264
  export declare const ToolPermission: z.ZodObject<{
13848
14265
  kind: z.ZodEnum<{
13849
14266
  read: "read";