orquesta-embed 0.1.15 → 0.1.17

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.
@@ -1,21 +1,27 @@
1
1
  import type { ElementContext, Prompt } from '../core/config';
2
2
  import type { OutputLine } from '../core/state';
3
+ interface ReplyContext {
4
+ prompt: Prompt;
5
+ output?: OutputLine[];
6
+ }
3
7
  interface PromptInputProps {
4
8
  onSubmit: (content: string, elementContext?: ElementContext | null) => void;
5
9
  isSubmitting: boolean;
6
10
  selectedElement: ElementContext | null;
7
11
  includeConsole: boolean;
8
12
  includeNetwork: boolean;
9
- includeHistory: boolean;
13
+ includeContext: boolean;
10
14
  promptHistory: Prompt[];
11
15
  promptOutputs: Record<string, OutputLine[]>;
12
16
  queueLength?: number;
13
17
  onToggleConsole: () => void;
14
18
  onToggleNetwork: () => void;
15
- onToggleHistory: () => void;
19
+ onToggleContext: () => void;
16
20
  onSelectElement: () => void;
17
21
  onClearElement: () => void;
18
22
  agentOnline: boolean;
23
+ replyContext?: ReplyContext | null;
24
+ onClearReply?: () => void;
19
25
  }
20
- export declare function PromptInput({ onSubmit, isSubmitting, selectedElement, includeConsole, includeNetwork, includeHistory, promptHistory, promptOutputs, queueLength, onToggleConsole, onToggleNetwork, onToggleHistory, onSelectElement, onClearElement, agentOnline }: PromptInputProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function PromptInput({ onSubmit, isSubmitting, selectedElement, includeConsole, includeNetwork, includeContext, promptHistory, promptOutputs, queueLength, onToggleConsole, onToggleNetwork, onToggleContext, onSelectElement, onClearElement, agentOnline, replyContext, onClearReply }: PromptInputProps): import("react/jsx-runtime").JSX.Element;
21
27
  export {};
@@ -12,6 +12,7 @@ interface TimelineProps {
12
12
  onHighlightElement?: (prompt: Prompt) => void;
13
13
  onLoadComments?: (promptId: string) => Promise<void>;
14
14
  onAddComment?: (promptId: string, content: string) => Promise<void>;
15
+ onReply?: (prompt: Prompt, output?: OutputLine[]) => void;
15
16
  }
16
- export declare function Timeline({ prompts, currentPromptId, expandedPromptId, comments, isLoadingComments, promptOutputs, onSelectPrompt, onExpandPrompt, onHighlightElement, onLoadComments, onAddComment }: TimelineProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function Timeline({ prompts, currentPromptId, expandedPromptId, comments, isLoadingComments, promptOutputs, onSelectPrompt, onExpandPrompt, onHighlightElement, onLoadComments, onAddComment, onReply }: TimelineProps): import("react/jsx-runtime").JSX.Element;
17
18
  export {};
@@ -8,6 +8,7 @@ export declare class ConsoleCapture {
8
8
  private listeners;
9
9
  start(): void;
10
10
  stop(): void;
11
+ private formatArg;
11
12
  private createEntry;
12
13
  private addEntry;
13
14
  getAll(): ConsoleEntry[];
@@ -31,7 +31,9 @@ export declare class ElementSelector {
31
31
  private promptHighlightScrollHandler;
32
32
  highlightElement(selector: string): HTMLElement | null;
33
33
  removeHighlight(): void;
34
+ private safeQuerySelector;
34
35
  findElement(selector: string, fallbackId?: string): HTMLElement | null;
35
36
  getElementContext(el: HTMLElement): ElementContext;
37
+ private isValidCssClass;
36
38
  private generateSelector;
37
39
  }
@@ -37,9 +37,11 @@ export interface EmbedState {
37
37
  export interface OutputLine {
38
38
  id: string;
39
39
  timestamp: number;
40
- type: 'stdout' | 'stderr' | 'tool' | 'thinking' | 'system';
40
+ type: 'stdout' | 'stderr' | 'tool' | 'tool_call' | 'tool_result' | 'thinking' | 'system' | 'output' | 'error' | 'progress';
41
41
  content: string;
42
42
  details?: Record<string, unknown>;
43
+ toolName?: string;
44
+ toolSuccess?: boolean;
43
45
  }
44
46
  export interface QueuedPrompt {
45
47
  id: string;