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