@hsafa/ui-sdk 5.5.8 → 5.6.0
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.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -299,7 +299,7 @@ interface HsafaAgentAPI {
|
|
|
299
299
|
/** Set messages directly (for loading history) */
|
|
300
300
|
setMessages: (messages: any[]) => void;
|
|
301
301
|
/** Notify that messages have changed (for edit operations) */
|
|
302
|
-
notifyMessagesChange: () => void;
|
|
302
|
+
notifyMessagesChange: (messagesOverride?: unknown[], chatIdOverride?: string) => void;
|
|
303
303
|
/** Direct access to the underlying chat API */
|
|
304
304
|
chatApi: any;
|
|
305
305
|
/** Current chat ID */
|
|
@@ -596,6 +596,15 @@ interface ChatArtifactVersioningAPI {
|
|
|
596
596
|
}
|
|
597
597
|
declare function useChatArtifactVersioning<T>(options: UseChatArtifactVersioningOptions<T>): ChatArtifactVersioningAPI;
|
|
598
598
|
|
|
599
|
+
declare function useHsafaTools<TState, TTools extends Record<string, unknown>>(config: {
|
|
600
|
+
state: TState;
|
|
601
|
+
setState: React$1.Dispatch<React$1.SetStateAction<TState>>;
|
|
602
|
+
tools: (api: {
|
|
603
|
+
get: () => TState;
|
|
604
|
+
set: React$1.Dispatch<React$1.SetStateAction<TState>>;
|
|
605
|
+
}) => TTools;
|
|
606
|
+
}): TTools;
|
|
607
|
+
|
|
599
608
|
/**
|
|
600
609
|
* Handler function for custom actions that can be triggered by the AI agent
|
|
601
610
|
*/
|
|
@@ -1020,4 +1029,4 @@ type FillResult = {
|
|
|
1020
1029
|
};
|
|
1021
1030
|
declare function FillActiveInput(value: any, options?: FillInputOptions): Promise<FillResult>;
|
|
1022
1031
|
|
|
1023
|
-
export { type Anchor, type Attachment, Button, type ButtonProps, type ChatArtifactResult, type ChatArtifactStatus, type ChatArtifactVersioningAPI, type ChatMessage, type ChatMetadata, type ChatStorageAPI, ContentContainer, type ContentContainerProps, CursorController, type CustomToolUIRenderProps, type DomComponent, type EditProcessContent, FillActiveInput, type FillInputOptions, type FillResult, FloatingChatButton, type GetDomComponentsOptions, type GetDomComponentsResult, type GuideAction, type GuideCursorOptions, type GuideOptions, type GuideRunResult, type GuideStep, type GuideStepResult, type GuideTarget, type HsafaActiveChatIdResult, type HsafaActiveChatIdSource, type HsafaAgentAPI, type HsafaArtifactStore, type HsafaArtifactStoreBackend, type HsafaArtifactStoreConfig, HsafaChat, type HsafaChatProps, HsafaProvider, type HsafaTool, type MessageEditorAPI, type SavedChat, type UIComponentProps, type UseChatArtifactOptions, type UseChatArtifactVersioningOptions, type UseChatStorageConfig, type UseHsafaActiveChatIdOptions, type UseHsafaAgentConfig, type UseMessageEditorConfig, registry as componentRegistry, guideCursor as controlCursor, createHsafaArtifactStore, getDomComponents, guideCursor, useAutoScroll, useChatArtifact, useChatArtifactVersioning, useChatStorage, useFileUpload, useHsafa, useHsafaActiveChatId, useHsafaAgent, useMessageEditor };
|
|
1032
|
+
export { type Anchor, type Attachment, Button, type ButtonProps, type ChatArtifactResult, type ChatArtifactStatus, type ChatArtifactVersioningAPI, type ChatMessage, type ChatMetadata, type ChatStorageAPI, ContentContainer, type ContentContainerProps, CursorController, type CustomToolUIRenderProps, type DomComponent, type EditProcessContent, FillActiveInput, type FillInputOptions, type FillResult, FloatingChatButton, type GetDomComponentsOptions, type GetDomComponentsResult, type GuideAction, type GuideCursorOptions, type GuideOptions, type GuideRunResult, type GuideStep, type GuideStepResult, type GuideTarget, type HsafaActiveChatIdResult, type HsafaActiveChatIdSource, type HsafaAgentAPI, type HsafaArtifactStore, type HsafaArtifactStoreBackend, type HsafaArtifactStoreConfig, HsafaChat, type HsafaChatProps, HsafaProvider, type HsafaTool, type MessageEditorAPI, type SavedChat, type UIComponentProps, type UseChatArtifactOptions, type UseChatArtifactVersioningOptions, type UseChatStorageConfig, type UseHsafaActiveChatIdOptions, type UseHsafaAgentConfig, type UseMessageEditorConfig, registry as componentRegistry, guideCursor as controlCursor, createHsafaArtifactStore, getDomComponents, guideCursor, useAutoScroll, useChatArtifact, useChatArtifactVersioning, useChatStorage, useFileUpload, useHsafa, useHsafaActiveChatId, useHsafaAgent, useHsafaTools, useMessageEditor };
|
package/dist/index.d.ts
CHANGED
|
@@ -299,7 +299,7 @@ interface HsafaAgentAPI {
|
|
|
299
299
|
/** Set messages directly (for loading history) */
|
|
300
300
|
setMessages: (messages: any[]) => void;
|
|
301
301
|
/** Notify that messages have changed (for edit operations) */
|
|
302
|
-
notifyMessagesChange: () => void;
|
|
302
|
+
notifyMessagesChange: (messagesOverride?: unknown[], chatIdOverride?: string) => void;
|
|
303
303
|
/** Direct access to the underlying chat API */
|
|
304
304
|
chatApi: any;
|
|
305
305
|
/** Current chat ID */
|
|
@@ -596,6 +596,15 @@ interface ChatArtifactVersioningAPI {
|
|
|
596
596
|
}
|
|
597
597
|
declare function useChatArtifactVersioning<T>(options: UseChatArtifactVersioningOptions<T>): ChatArtifactVersioningAPI;
|
|
598
598
|
|
|
599
|
+
declare function useHsafaTools<TState, TTools extends Record<string, unknown>>(config: {
|
|
600
|
+
state: TState;
|
|
601
|
+
setState: React$1.Dispatch<React$1.SetStateAction<TState>>;
|
|
602
|
+
tools: (api: {
|
|
603
|
+
get: () => TState;
|
|
604
|
+
set: React$1.Dispatch<React$1.SetStateAction<TState>>;
|
|
605
|
+
}) => TTools;
|
|
606
|
+
}): TTools;
|
|
607
|
+
|
|
599
608
|
/**
|
|
600
609
|
* Handler function for custom actions that can be triggered by the AI agent
|
|
601
610
|
*/
|
|
@@ -1020,4 +1029,4 @@ type FillResult = {
|
|
|
1020
1029
|
};
|
|
1021
1030
|
declare function FillActiveInput(value: any, options?: FillInputOptions): Promise<FillResult>;
|
|
1022
1031
|
|
|
1023
|
-
export { type Anchor, type Attachment, Button, type ButtonProps, type ChatArtifactResult, type ChatArtifactStatus, type ChatArtifactVersioningAPI, type ChatMessage, type ChatMetadata, type ChatStorageAPI, ContentContainer, type ContentContainerProps, CursorController, type CustomToolUIRenderProps, type DomComponent, type EditProcessContent, FillActiveInput, type FillInputOptions, type FillResult, FloatingChatButton, type GetDomComponentsOptions, type GetDomComponentsResult, type GuideAction, type GuideCursorOptions, type GuideOptions, type GuideRunResult, type GuideStep, type GuideStepResult, type GuideTarget, type HsafaActiveChatIdResult, type HsafaActiveChatIdSource, type HsafaAgentAPI, type HsafaArtifactStore, type HsafaArtifactStoreBackend, type HsafaArtifactStoreConfig, HsafaChat, type HsafaChatProps, HsafaProvider, type HsafaTool, type MessageEditorAPI, type SavedChat, type UIComponentProps, type UseChatArtifactOptions, type UseChatArtifactVersioningOptions, type UseChatStorageConfig, type UseHsafaActiveChatIdOptions, type UseHsafaAgentConfig, type UseMessageEditorConfig, registry as componentRegistry, guideCursor as controlCursor, createHsafaArtifactStore, getDomComponents, guideCursor, useAutoScroll, useChatArtifact, useChatArtifactVersioning, useChatStorage, useFileUpload, useHsafa, useHsafaActiveChatId, useHsafaAgent, useMessageEditor };
|
|
1032
|
+
export { type Anchor, type Attachment, Button, type ButtonProps, type ChatArtifactResult, type ChatArtifactStatus, type ChatArtifactVersioningAPI, type ChatMessage, type ChatMetadata, type ChatStorageAPI, ContentContainer, type ContentContainerProps, CursorController, type CustomToolUIRenderProps, type DomComponent, type EditProcessContent, FillActiveInput, type FillInputOptions, type FillResult, FloatingChatButton, type GetDomComponentsOptions, type GetDomComponentsResult, type GuideAction, type GuideCursorOptions, type GuideOptions, type GuideRunResult, type GuideStep, type GuideStepResult, type GuideTarget, type HsafaActiveChatIdResult, type HsafaActiveChatIdSource, type HsafaAgentAPI, type HsafaArtifactStore, type HsafaArtifactStoreBackend, type HsafaArtifactStoreConfig, HsafaChat, type HsafaChatProps, HsafaProvider, type HsafaTool, type MessageEditorAPI, type SavedChat, type UIComponentProps, type UseChatArtifactOptions, type UseChatArtifactVersioningOptions, type UseChatStorageConfig, type UseHsafaActiveChatIdOptions, type UseHsafaAgentConfig, type UseMessageEditorConfig, registry as componentRegistry, guideCursor as controlCursor, createHsafaArtifactStore, getDomComponents, guideCursor, useAutoScroll, useChatArtifact, useChatArtifactVersioning, useChatStorage, useFileUpload, useHsafa, useHsafaActiveChatId, useHsafaAgent, useHsafaTools, useMessageEditor };
|