@vellumai/plugin-api 0.11.4-dev.202608201142.dc27263 → 0.11.4-dev.202608201321.78202a0

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.
Files changed (2) hide show
  1. package/index.d.ts +29 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2624,6 +2624,12 @@ export declare class AssistantEventHub {
2624
2624
  * matched.
2625
2625
  */
2626
2626
  setClientPresence(clientId: string, state: DesktopPresenceState): boolean;
2627
+ /**
2628
+ * Record the web tab visibility/focused-conversation reported by a client.
2629
+ * `reportedAt` always advances. Returns true when at least one active
2630
+ * client entry matched.
2631
+ */
2632
+ setClientWebPresence(clientId: string, report: WebPresenceReport): boolean;
2627
2633
  /**
2628
2634
  * Force-disconnect a client by disposing all subscribers for the given
2629
2635
  * `clientId`. Returns the number of disposed entries.
@@ -4146,6 +4152,11 @@ declare interface ClientEntry extends BaseSubscriberEntry {
4146
4152
  * In-memory only, so consumers must fail open when it is absent.
4147
4153
  */
4148
4154
  presence?: ClientPresence;
4155
+ /**
4156
+ * Last web tab visibility/focus reported by this client, for clients that
4157
+ * report it. In-memory only, so consumers must fail open when it is absent.
4158
+ */
4159
+ webPresence?: ClientWebPresence;
4149
4160
  }
4150
4161
 
4151
4162
  declare interface ClientPresence {
@@ -4154,6 +4165,11 @@ declare interface ClientPresence {
4154
4165
  reportedAt: Date;
4155
4166
  }
4156
4167
 
4168
+ declare interface ClientWebPresence extends WebPresenceReport {
4169
+ /** When the daemon last heard from the client. Drives staleness. */
4170
+ reportedAt: Date;
4171
+ }
4172
+
4157
4173
  declare interface CliOptionHelp {
4158
4174
  /** Commander flag spec, e.g. `"--path <file>"` or `"-l, --limit <n>"`. */
4159
4175
  flags: string;
@@ -7722,6 +7738,19 @@ export declare interface WebhookUrlOptions {
7722
7738
  sourceIdentifier?: string;
7723
7739
  }
7724
7740
 
7741
+ /**
7742
+ * Web tab visibility and conversation focus, as reported by a `web`-interface
7743
+ * client (a browser tab or the Electron renderer). Distinct from
7744
+ * {@link ClientPresence}: scoped to a single conversation rather than app-wide
7745
+ * attendance, and reported by the shared web renderer rather than the macOS
7746
+ * host-proxy bridge. See `runtime/web-presence.ts` for the read-side policy.
7747
+ */
7748
+ declare interface WebPresenceReport {
7749
+ visible: boolean;
7750
+ /** The conversation currently focused (chat composer on screen), or `null`. */
7751
+ focusedConversationId: string | null;
7752
+ }
7753
+
7725
7754
  declare interface WebSearchMetadata {
7726
7755
  query: string;
7727
7756
  provider: WebSearchProviderId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.4-dev.202608201142.dc27263",
3
+ "version": "0.11.4-dev.202608201321.78202a0",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",