@vellumai/plugin-api 0.10.5-dev.202607031543.075941f → 0.10.5-dev.202607031636.61acd91

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 +30 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1827,6 +1827,22 @@ declare const HomeFeedUpdatedEventSchema: z.ZodObject<{
1827
1827
 
1828
1828
  declare type _HomeServerMessages = RelationshipStateUpdatedEvent | HomeFeedUpdatedEvent;
1829
1829
 
1830
+ declare type HookEvent = z.infer<typeof HookEventSchema>;
1831
+
1832
+ declare const HookEventSchema: z.ZodObject<{
1833
+ type: z.ZodLiteral<"hook_event">;
1834
+ conversationId: z.ZodOptional<z.ZodString>;
1835
+ hookName: z.ZodString;
1836
+ owner: z.ZodObject<{
1837
+ kind: z.ZodEnum<{
1838
+ plugin: "plugin";
1839
+ workspace: "workspace";
1840
+ }>;
1841
+ id: z.ZodString;
1842
+ }, z.core.$strip>;
1843
+ detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1844
+ }, z.core.$strip>;
1845
+
1830
1846
  /**
1831
1847
  * A plugin lifecycle hook. Receives a per-lifecycle context shape and may
1832
1848
  * either mutate `ctx` in place (returning `void`) or return a *partial*
@@ -3460,7 +3476,7 @@ declare interface SensitiveOutputBinding {
3460
3476
 
3461
3477
  declare type SensitiveOutputKind = "invite_code";
3462
3478
 
3463
- declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _WorkItemsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _GuardianActionsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _DiagnosticsServerMessages | _InboxServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BackgroundToolsServerMessages | _BookmarksServerMessages | _WorkflowsServerMessages | DiskPressureStatusChangedEvent | SubagentEvent;
3479
+ declare type ServerMessage = _ConversationsServerMessages | _MessagesServerMessages | _SurfacesServerMessages | _SkillsServerMessages | _AppsServerMessages | _IntegrationsServerMessages | _ComputerUseServerMessages | _ContactsServerMessages | _WorkItemsServerMessages | _SubagentsServerMessages | _DocumentsServerMessages | _DocumentCommentsServerMessages | _GuardianActionsServerMessages | _SyncInvalidationServerMessages | _HomeServerMessages | _HostAppControlServerMessages | _HostBashServerMessages | _HostBrowserServerMessages | _HostCuServerMessages | _HostFileServerMessages | _HostTransferServerMessages | _MemoryServerMessages | _WorkspaceServerMessages | _SchedulesServerMessages | _SettingsServerMessages | _DiagnosticsServerMessages | _InboxServerMessages | _NotificationsServerMessages | _UpgradesServerMessages | _AcpServerMessages | _BackgroundToolsServerMessages | _BookmarksServerMessages | _WorkflowsServerMessages | DiskPressureStatusChangedEvent | HookEvent | SubagentEvent;
3464
3480
 
3465
3481
  export declare interface ServerToolUseContent {
3466
3482
  type: "server_tool_use";
@@ -4938,6 +4954,19 @@ export declare interface UserPromptSubmitContext {
4938
4954
  * fields (e.g. `{ plugin: "<name>" }`) for attribution.
4939
4955
  */
4940
4956
  readonly logger: PluginLogger;
4957
+ /**
4958
+ * Emit a transient `hook_event` to any UI watching this conversation —
4959
+ * e.g. progress while the hook does work the user can feel (memory
4960
+ * selection). The daemon stamps the conversation, this hook's name, and
4961
+ * the owning plugin; the hook supplies only `detail`, an arbitrary
4962
+ * JSON-serializable record whose shape it and its client renderer agree on.
4963
+ *
4964
+ * Best-effort and fire-and-forget: it never blocks or fails the turn, is
4965
+ * not persisted (a client joining mid-turn will not replay it), and cannot
4966
+ * emit any other event type or target another conversation — the emit
4967
+ * surface is bound to this turn.
4968
+ */
4969
+ readonly broadcast: (detail: Record<string, unknown>) => void;
4941
4970
  }
4942
4971
 
4943
4972
  declare interface VellumSlimSkill extends SlimSkillBase {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.10.5-dev.202607031543.075941f",
3
+ "version": "0.10.5-dev.202607031636.61acd91",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",