@streamoid/agent 0.10.8 → 0.10.9

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/dist/index.d.ts CHANGED
@@ -338,7 +338,23 @@ export interface AgentScopeAdapter {
338
338
  onSuggestion?: (suggestion: AgentScopeSuggestion) => boolean | void;
339
339
  }
340
340
 
341
- export interface HostCanvasContextValue {
341
+ export interface AttachedHostCanvas {
342
+ /** Connect to the canvas already mounted by the host; no internal canvas pane. */
343
+ mode: 'attached';
344
+ workspaceId: string;
345
+ projectId: string;
346
+ documentId: string;
347
+ sessionId?: string;
348
+ ready: boolean;
349
+ /** Hide floating previews while the host hides its assistant. */
350
+ visible?: boolean;
351
+ onReveal?(): void;
352
+ }
353
+
354
+ export type HostCanvasContextValue = AttachedHostCanvas | RenderedHostCanvas;
355
+
356
+ export interface RenderedHostCanvas {
357
+ mode?: 'render';
342
358
  render(context: {
343
359
  workspaceId: string;
344
360
  projectId: string;
@@ -363,6 +379,9 @@ export type AgentPanelAdapters = AgentChatShellAdapters;
363
379
  export interface AgentPanelProps {
364
380
  adapters: AgentPanelAdapters;
365
381
  className?: string;
382
+ /** With textSize: 'small', override --sa-small-message-size, --sa-small-line-height,
383
+ * --sa-small-form-size, --sa-small-composer-size, --sa-small-heading-size,
384
+ * --sa-small-heading-line-height and --sa-small-caption-size as CSS lengths. */
366
385
  style?: CSSProperties;
367
386
  }
368
387