@unisphere/genie-types 1.41.0 → 1.42.1
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.esm.js
CHANGED
package/package.json
CHANGED
|
@@ -183,6 +183,13 @@ export type AvatarRuntimeSettings = {
|
|
|
183
183
|
* "I'm done watching" to continue. Defaults to true, except for specific partners/environments.
|
|
184
184
|
*/
|
|
185
185
|
inlineClipPlayback?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Experimental. Stage content persists across agent turns instead of being replaced per turn:
|
|
188
|
+
* a turn without a tool block keeps the current content, the same tool re-emitted updates the
|
|
189
|
+
* mounted visual in place, and a ```stage action: clear``` block clears it. The current stage is
|
|
190
|
+
* pushed to the agent as the `avatar_stage` request variable. Defaults to false.
|
|
191
|
+
*/
|
|
192
|
+
persistentContent?: boolean;
|
|
186
193
|
};
|
|
187
194
|
/** Full URL to POST client-tool-call responses to (e.g. `https://genie.example.com/assistant/tool_response`). Required for client tool calls to receive a response. Applies to both `manual` and `studio` modes. */
|
|
188
195
|
clientToolResponseUrl?: string;
|
|
@@ -85,6 +85,20 @@ export type AgentScreenShareInfo = {
|
|
|
85
85
|
stream: MediaStream | null;
|
|
86
86
|
analysisReady: boolean;
|
|
87
87
|
};
|
|
88
|
+
/**
|
|
89
|
+
* Step progress indicator driven by the agent's ```ui-progress-bar``` fence.
|
|
90
|
+
* Rendered above the stage, independent of stage content and layout.
|
|
91
|
+
*/
|
|
92
|
+
export type AgentProgressBar = {
|
|
93
|
+
visible: boolean;
|
|
94
|
+
totalSteps: number;
|
|
95
|
+
/** 1-based index of the step in progress */
|
|
96
|
+
currentStep: number;
|
|
97
|
+
type: 'dots';
|
|
98
|
+
variant?: string;
|
|
99
|
+
/** Hover text per step, in step order; a missing or empty entry shows no tooltip */
|
|
100
|
+
tooltips?: string[];
|
|
101
|
+
};
|
|
88
102
|
/**
|
|
89
103
|
* Tap-to-talk mode state
|
|
90
104
|
*/
|
|
@@ -136,6 +150,8 @@ export type AvatarContentData<TSettings = any> = ({
|
|
|
136
150
|
settings: TSettings;
|
|
137
151
|
/** Optional thread ID */
|
|
138
152
|
threadId?: string;
|
|
153
|
+
/** Bumped on in-place settings updates of the same content (persistent stage) */
|
|
154
|
+
revision?: number;
|
|
139
155
|
} | {
|
|
140
156
|
/** Content status: error occurred */
|
|
141
157
|
status: 'error';
|
|
@@ -360,6 +376,8 @@ export interface AvatarClientManagerType {
|
|
|
360
376
|
readonly content: TinyDataStoreConsumer<AvatarContentData | null>;
|
|
361
377
|
/** Observable chat log entries */
|
|
362
378
|
readonly chatLog: TinyDataStoreConsumer<ChatEntry[]>;
|
|
379
|
+
/** Observable agent-driven progress bar state — null until the agent emits one */
|
|
380
|
+
readonly progressBar: TinyDataStoreConsumer<AgentProgressBar | null>;
|
|
363
381
|
/** Send text message to avatar */
|
|
364
382
|
askViaText(text: string): void;
|
|
365
383
|
/** Request the backend reprocess a turn that produced no avatar response */
|
|
@@ -421,6 +439,7 @@ export interface AvatarClientManagerType {
|
|
|
421
439
|
captions?: boolean | CaptionConfig;
|
|
422
440
|
kickOffPhrase?: string;
|
|
423
441
|
dynamicVariables?: Record<string, unknown>;
|
|
442
|
+
persistentContent?: boolean;
|
|
424
443
|
} | undefined>;
|
|
425
444
|
/** Observable preview loading video URL */
|
|
426
445
|
readonly agentPreviewUrl: TinyDataStoreConsumer<string | null>;
|
package/src/lib/data-models.d.ts
CHANGED