@streamoid/agent 0.7.2 → 0.8.0-preview.e27ebb10ac8f

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 (3) hide show
  1. package/dist/index.d.ts +17 -1
  2. package/dist/index.js +17347 -17256
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -312,7 +312,23 @@ export interface AgentScopeAdapter {
312
312
  onSuggestion?: (suggestion: AgentScopeSuggestion) => boolean | void;
313
313
  }
314
314
 
315
- export interface HostCanvasContextValue {
315
+ export interface AttachedHostCanvas {
316
+ /** Connect to the canvas already mounted by the host; no internal canvas pane. */
317
+ mode: 'attached';
318
+ workspaceId: string;
319
+ projectId: string;
320
+ documentId: string;
321
+ sessionId?: string;
322
+ ready: boolean;
323
+ /** Hide floating previews while the host hides its assistant. */
324
+ visible?: boolean;
325
+ onReveal?(): void;
326
+ }
327
+
328
+ export type HostCanvasContextValue = AttachedHostCanvas | RenderedHostCanvas;
329
+
330
+ export interface RenderedHostCanvas {
331
+ mode?: 'render';
316
332
  render(context: {
317
333
  workspaceId: string;
318
334
  projectId: string;