@vellumai/plugin-api 0.10.11-dev.202607242023.78fd032 → 0.10.11-dev.202607242127.a6bf2b2
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/index.d.ts +7 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1127,15 +1127,11 @@ declare const AssistantConfigSchema: z.ZodObject<{
|
|
|
1127
1127
|
maxStepsPerSession: z.ZodDefault<z.ZodNumber>;
|
|
1128
1128
|
}, z.core.$strip>;
|
|
1129
1129
|
|
|
1130
|
-
|
|
1131
|
-
* Daemon-side event envelope: the canonical `AssistantEventEnvelope` wrapping
|
|
1132
|
-
* an `AssistantEvent` message payload.
|
|
1133
|
-
*/
|
|
1134
|
-
export declare type AssistantEvent = AssistantEventEnvelope;
|
|
1135
|
-
|
|
1136
|
-
export declare type AssistantEventCallback = (event: AssistantEvent) => void | Promise<void>;
|
|
1130
|
+
export declare type AssistantEventCallback = (event: AssistantEventEnvelope) => void | Promise<void>;
|
|
1137
1131
|
|
|
1138
1132
|
declare type AssistantEventEnvelope = z.infer<typeof AssistantEventEnvelopeSchema>;
|
|
1133
|
+
export { AssistantEventEnvelope as AssistantEvent }
|
|
1134
|
+
export { AssistantEventEnvelope }
|
|
1139
1135
|
|
|
1140
1136
|
/**
|
|
1141
1137
|
* SSE wire envelope wrapping every outbound event from the daemon.
|
|
@@ -2345,7 +2341,7 @@ export declare type AssistantEventFilter = {
|
|
|
2345
2341
|
};
|
|
2346
2342
|
|
|
2347
2343
|
/**
|
|
2348
|
-
* Lightweight pub/sub hub for `
|
|
2344
|
+
* Lightweight pub/sub hub for `AssistantEventEnvelope` messages.
|
|
2349
2345
|
*
|
|
2350
2346
|
* Filtering is applied at subscription level:
|
|
2351
2347
|
* - `conversationId`: scoped events match subscribers with same conversationId
|
|
@@ -2403,7 +2399,7 @@ export declare class AssistantEventHub {
|
|
|
2403
2399
|
* Fanout is isolated: a throwing or rejecting subscriber does not abort
|
|
2404
2400
|
* delivery to remaining subscribers.
|
|
2405
2401
|
*/
|
|
2406
|
-
publish(event:
|
|
2402
|
+
publish(event: AssistantEventEnvelope, options?: {
|
|
2407
2403
|
targetCapability?: HostProxyCapability;
|
|
2408
2404
|
targetClientId?: string;
|
|
2409
2405
|
targetInterfaceId?: InterfaceId;
|
|
@@ -2434,7 +2430,7 @@ export declare class AssistantEventHub {
|
|
|
2434
2430
|
* Returns true when at least one active subscriber would receive the given
|
|
2435
2431
|
* event based on the same conversation matching rules as publish().
|
|
2436
2432
|
*/
|
|
2437
|
-
hasSubscribersForEvent(event: Pick<
|
|
2433
|
+
hasSubscribersForEvent(event: Pick<AssistantEventEnvelope, "conversationId">): boolean;
|
|
2438
2434
|
private clientEntries;
|
|
2439
2435
|
/**
|
|
2440
2436
|
* Return all active client subscribers, sorted by `lastActiveAt` descending.
|
|
@@ -4111,7 +4107,7 @@ declare type ProxyToolResolver = (toolName: string, input: Record<string, unknow
|
|
|
4111
4107
|
* delivery to the rest). Rejects if the event is non-serializable or is a
|
|
4112
4108
|
* host-proxy control event, which plugins may not publish.
|
|
4113
4109
|
*/
|
|
4114
|
-
export declare function publishEvent(event:
|
|
4110
|
+
export declare function publishEvent(event: AssistantEventEnvelope, options?: PublishEventOptions): Promise<void>;
|
|
4115
4111
|
|
|
4116
4112
|
/** Publish options, mirroring the hub's `publish` options (targeting, self-echo suppression). */
|
|
4117
4113
|
export declare type PublishEventOptions = NonNullable<Parameters<PluginEventHub["publish"]>[1]>;
|
package/package.json
CHANGED