@iota-uz/sdk 0.4.25 → 0.4.26

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.
@@ -529,6 +529,7 @@ interface SessionDebugUsage {
529
529
  interface SendMessageOptions {
530
530
  debugMode?: boolean;
531
531
  replaceFromMessageID?: string;
532
+ reasoningEffort?: string;
532
533
  }
533
534
  interface SessionListResult$1 {
534
535
  sessions: Session$1[];
@@ -652,8 +653,10 @@ interface ChatSessionStateValue {
652
653
  debugMode: boolean;
653
654
  sessionDebugUsage: SessionDebugUsage;
654
655
  debugLimits: DebugLimits | null;
656
+ reasoningEffort: string | undefined;
655
657
  setError: (error: string | null) => void;
656
658
  retryFetchSession: () => void;
659
+ setReasoningEffort: (effort: string) => void;
657
660
  }
658
661
  interface ChatMessagingStateValue {
659
662
  turns: ConversationTurn$1[];
@@ -1068,10 +1071,8 @@ interface AssistantMessageProps {
1068
1071
  hideTimestamp?: boolean;
1069
1072
  /** Show debug panel */
1070
1073
  showDebug?: boolean;
1071
- /** Context/token limits for debug usage ratio */
1072
- debugLimits?: DebugLimits | null;
1073
1074
  }
1074
- declare function AssistantMessage({ turn, turnId, isLastTurn, isStreaming, pendingQuestion, slots, classNames: classNameOverrides, onCopy, onRegenerate, onSendMessage, sendDisabled, hideAvatar, hideActions, hideTimestamp, showDebug, debugLimits, }: AssistantMessageProps): react_jsx_runtime.JSX.Element;
1075
+ declare function AssistantMessage({ turn, turnId, isLastTurn, isStreaming, pendingQuestion, slots, classNames: classNameOverrides, onCopy, onRegenerate, onSendMessage, sendDisabled, hideAvatar, hideActions, hideTimestamp, showDebug, }: AssistantMessageProps): react_jsx_runtime.JSX.Element;
1075
1076
 
1076
1077
  interface AssistantTurnViewProps {
1077
1078
  /** The conversation turn containing the assistant response */
@@ -1210,6 +1211,9 @@ interface MessageInputProps {
1210
1211
  maxFileSize?: number;
1211
1212
  containerClassName?: string;
1212
1213
  formClassName?: string;
1214
+ reasoningEffortOptions?: string[];
1215
+ reasoningEffort?: string;
1216
+ onReasoningEffortChange?: (effort: string) => void;
1213
1217
  }
1214
1218
  declare const MessageInput: react.ForwardRefExoticComponent<MessageInputProps & react.RefAttributes<MessageInputRef>>;
1215
1219
 
@@ -1915,9 +1919,8 @@ declare function SystemMessage({ content, createdAt, onCopy, hideActions, hideTi
1915
1919
 
1916
1920
  interface DebugPanelProps {
1917
1921
  trace?: DebugTrace$1;
1918
- debugLimits?: DebugLimits | null;
1919
1922
  }
1920
- declare function DebugPanel({ trace, debugLimits }: DebugPanelProps): react_jsx_runtime.JSX.Element;
1923
+ declare function DebugPanel({ trace }: DebugPanelProps): react_jsx_runtime.JSX.Element;
1921
1924
 
1922
1925
  /**
1923
1926
  * Alert Component
@@ -3674,6 +3677,7 @@ interface Extensions {
3674
3677
  llm?: {
3675
3678
  provider?: string;
3676
3679
  apiKeyConfigured?: boolean;
3680
+ reasoningEffortOptions?: string[];
3677
3681
  };
3678
3682
  debug?: {
3679
3683
  limits?: {
@@ -3866,8 +3870,10 @@ interface SessionSnapshot {
3866
3870
  debugMode: boolean;
3867
3871
  sessionDebugUsage: SessionDebugUsage;
3868
3872
  debugLimits: DebugLimits | null;
3873
+ reasoningEffort: string | undefined;
3869
3874
  setError: (error: string | null) => void;
3870
3875
  retryFetchSession: () => void;
3876
+ setReasoningEffort: (effort: string) => void;
3871
3877
  }
3872
3878
  /** Superset of ChatMessagingStateValue used internally by the state machine; includes internal-only fields such as generationInProgress. */
3873
3879
  interface MessagingSnapshot {
@@ -3945,6 +3951,7 @@ declare class ChatMachine {
3945
3951
  private sendingSessionId;
3946
3952
  private fetchCancelled;
3947
3953
  private disposed;
3954
+ private reasoningEffortOptions;
3948
3955
  /** Memoized sessionDebugUsage — avoids unnecessary session re-renders during streaming. */
3949
3956
  private lastSessionDebugUsage;
3950
3957
  /** Interval handle for passive polling when another tab has an active stream. */
@@ -3985,7 +3992,10 @@ declare class ChatMachine {
3985
3992
  readonly enqueueMessage: (content: string, attachments: Attachment$1[]) => boolean;
3986
3993
  readonly removeQueueItem: (index: number) => void;
3987
3994
  readonly updateQueueItem: (index: number, content: string) => void;
3995
+ readonly setReasoningEffort: (effort: string) => void;
3988
3996
  constructor(config: ChatMachineConfig);
3997
+ private buildReasoningEffortOptions;
3998
+ private sanitizeReasoningEffort;
3989
3999
  /**
3990
4000
  * Set the active session ID. Triggers fetch when transitioning to a real
3991
4001
  * session, or resets state for 'new'/undefined.
@@ -4012,6 +4022,7 @@ declare class ChatMachine {
4012
4022
  private _persistQueue;
4013
4023
  private _setDebugModeForSession;
4014
4024
  private _hydrateDebugModeForSession;
4025
+ private _setReasoningEffort;
4015
4026
  private _fetchSessionIfNeeded;
4016
4027
  /**
4017
4028
  * Sets turns from fetch, preserving pending user-only turns if server hasn't caught up.
@@ -529,6 +529,7 @@ interface SessionDebugUsage {
529
529
  interface SendMessageOptions {
530
530
  debugMode?: boolean;
531
531
  replaceFromMessageID?: string;
532
+ reasoningEffort?: string;
532
533
  }
533
534
  interface SessionListResult$1 {
534
535
  sessions: Session$1[];
@@ -652,8 +653,10 @@ interface ChatSessionStateValue {
652
653
  debugMode: boolean;
653
654
  sessionDebugUsage: SessionDebugUsage;
654
655
  debugLimits: DebugLimits | null;
656
+ reasoningEffort: string | undefined;
655
657
  setError: (error: string | null) => void;
656
658
  retryFetchSession: () => void;
659
+ setReasoningEffort: (effort: string) => void;
657
660
  }
658
661
  interface ChatMessagingStateValue {
659
662
  turns: ConversationTurn$1[];
@@ -1068,10 +1071,8 @@ interface AssistantMessageProps {
1068
1071
  hideTimestamp?: boolean;
1069
1072
  /** Show debug panel */
1070
1073
  showDebug?: boolean;
1071
- /** Context/token limits for debug usage ratio */
1072
- debugLimits?: DebugLimits | null;
1073
1074
  }
1074
- declare function AssistantMessage({ turn, turnId, isLastTurn, isStreaming, pendingQuestion, slots, classNames: classNameOverrides, onCopy, onRegenerate, onSendMessage, sendDisabled, hideAvatar, hideActions, hideTimestamp, showDebug, debugLimits, }: AssistantMessageProps): react_jsx_runtime.JSX.Element;
1075
+ declare function AssistantMessage({ turn, turnId, isLastTurn, isStreaming, pendingQuestion, slots, classNames: classNameOverrides, onCopy, onRegenerate, onSendMessage, sendDisabled, hideAvatar, hideActions, hideTimestamp, showDebug, }: AssistantMessageProps): react_jsx_runtime.JSX.Element;
1075
1076
 
1076
1077
  interface AssistantTurnViewProps {
1077
1078
  /** The conversation turn containing the assistant response */
@@ -1210,6 +1211,9 @@ interface MessageInputProps {
1210
1211
  maxFileSize?: number;
1211
1212
  containerClassName?: string;
1212
1213
  formClassName?: string;
1214
+ reasoningEffortOptions?: string[];
1215
+ reasoningEffort?: string;
1216
+ onReasoningEffortChange?: (effort: string) => void;
1213
1217
  }
1214
1218
  declare const MessageInput: react.ForwardRefExoticComponent<MessageInputProps & react.RefAttributes<MessageInputRef>>;
1215
1219
 
@@ -1915,9 +1919,8 @@ declare function SystemMessage({ content, createdAt, onCopy, hideActions, hideTi
1915
1919
 
1916
1920
  interface DebugPanelProps {
1917
1921
  trace?: DebugTrace$1;
1918
- debugLimits?: DebugLimits | null;
1919
1922
  }
1920
- declare function DebugPanel({ trace, debugLimits }: DebugPanelProps): react_jsx_runtime.JSX.Element;
1923
+ declare function DebugPanel({ trace }: DebugPanelProps): react_jsx_runtime.JSX.Element;
1921
1924
 
1922
1925
  /**
1923
1926
  * Alert Component
@@ -3674,6 +3677,7 @@ interface Extensions {
3674
3677
  llm?: {
3675
3678
  provider?: string;
3676
3679
  apiKeyConfigured?: boolean;
3680
+ reasoningEffortOptions?: string[];
3677
3681
  };
3678
3682
  debug?: {
3679
3683
  limits?: {
@@ -3866,8 +3870,10 @@ interface SessionSnapshot {
3866
3870
  debugMode: boolean;
3867
3871
  sessionDebugUsage: SessionDebugUsage;
3868
3872
  debugLimits: DebugLimits | null;
3873
+ reasoningEffort: string | undefined;
3869
3874
  setError: (error: string | null) => void;
3870
3875
  retryFetchSession: () => void;
3876
+ setReasoningEffort: (effort: string) => void;
3871
3877
  }
3872
3878
  /** Superset of ChatMessagingStateValue used internally by the state machine; includes internal-only fields such as generationInProgress. */
3873
3879
  interface MessagingSnapshot {
@@ -3945,6 +3951,7 @@ declare class ChatMachine {
3945
3951
  private sendingSessionId;
3946
3952
  private fetchCancelled;
3947
3953
  private disposed;
3954
+ private reasoningEffortOptions;
3948
3955
  /** Memoized sessionDebugUsage — avoids unnecessary session re-renders during streaming. */
3949
3956
  private lastSessionDebugUsage;
3950
3957
  /** Interval handle for passive polling when another tab has an active stream. */
@@ -3985,7 +3992,10 @@ declare class ChatMachine {
3985
3992
  readonly enqueueMessage: (content: string, attachments: Attachment$1[]) => boolean;
3986
3993
  readonly removeQueueItem: (index: number) => void;
3987
3994
  readonly updateQueueItem: (index: number, content: string) => void;
3995
+ readonly setReasoningEffort: (effort: string) => void;
3988
3996
  constructor(config: ChatMachineConfig);
3997
+ private buildReasoningEffortOptions;
3998
+ private sanitizeReasoningEffort;
3989
3999
  /**
3990
4000
  * Set the active session ID. Triggers fetch when transitioning to a real
3991
4001
  * session, or resets state for 'new'/undefined.
@@ -4012,6 +4022,7 @@ declare class ChatMachine {
4012
4022
  private _persistQueue;
4013
4023
  private _setDebugModeForSession;
4014
4024
  private _hydrateDebugModeForSession;
4025
+ private _setReasoningEffort;
4015
4026
  private _fetchSessionIfNeeded;
4016
4027
  /**
4017
4028
  * Sets turns from fetch, preserving pending user-only turns if server hasn't caught up.