@vellumai/plugin-api 0.10.3-dev.202606302138.0f63073 → 0.10.3-dev.202606302233.9b08253

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 +9 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -431,12 +431,8 @@ export declare class AssistantEventHub {
431
431
  hasCapacity(): boolean;
432
432
  }
433
433
 
434
- /**
435
- * Singleton hub shared across the entire runtime process.
436
- *
437
- * Import and use this in daemon send paths and the SSE route.
438
- */
439
- export declare const assistantEventHub: AssistantEventHub;
434
+ /** The plugin-facing event hub. See module docs. */
435
+ export declare const assistantEventHub: PluginEventHub;
440
436
 
441
437
  /** Opaque handle returned by `subscribe`. Call `dispose()` to remove the subscription. */
442
438
  export declare interface AssistantEventSubscription {
@@ -2720,6 +2716,13 @@ declare interface PlatformDisconnected {
2720
2716
  type: "platform_disconnected";
2721
2717
  }
2722
2718
 
2719
+ /**
2720
+ * The subset of {@link AssistantEventHub} workspace plugins may use. Picking
2721
+ * method signatures off the class keeps the facade in sync with the hub while
2722
+ * statically withholding everything else.
2723
+ */
2724
+ export declare type PluginEventHub = Pick<AssistantEventHub, "subscribe" | "publish" | "hasSubscribersForEvent">;
2725
+
2723
2726
  /**
2724
2727
  * Minimal pino-compatible logger surface handed to plugin hooks. The host
2725
2728
  * supplies a pino child logger bound to `{ plugin: <name> }`; this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.3-dev.202606302138.0f63073",
3
+ "version": "0.10.3-dev.202606302233.9b08253",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",