@nocobase/plugin-ai 2.1.0-beta.46 → 2.1.0-beta.48

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 (82) hide show
  1. package/dist/ai/docs/nocobase/api/cli/app/restart.md +1 -3
  2. package/dist/ai/docs/nocobase/api/cli/app/start.md +1 -7
  3. package/dist/ai/docs/nocobase/api/cli/config/delete.md +7 -5
  4. package/dist/ai/docs/nocobase/api/cli/config/get.md +7 -5
  5. package/dist/ai/docs/nocobase/api/cli/config/index.md +38 -18
  6. package/dist/ai/docs/nocobase/api/cli/config/set.md +9 -7
  7. package/dist/ai/docs/nocobase/api/cli/env/index.md +19 -20
  8. package/dist/ai/docs/nocobase/api/cli/env/update.md +72 -72
  9. package/dist/ai/docs/nocobase/api/cli/index.md +0 -1
  10. package/dist/ai/docs/nocobase/api/cli/init.md +30 -0
  11. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/current.md +33 -0
  12. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/generate.md +54 -0
  13. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/index.md +60 -0
  14. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/info.md +42 -0
  15. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/reload.md +32 -0
  16. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/restart.md +32 -0
  17. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/start.md +32 -0
  18. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/status.md +36 -0
  19. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/stop.md +32 -0
  20. package/dist/ai/docs/nocobase/api/cli/proxy/caddy/use.md +38 -0
  21. package/dist/ai/docs/nocobase/api/cli/proxy/index.md +124 -0
  22. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/current.md +33 -0
  23. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/generate.md +62 -0
  24. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/index.md +60 -0
  25. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/info.md +43 -0
  26. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/reload.md +32 -0
  27. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/restart.md +32 -0
  28. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/start.md +32 -0
  29. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/status.md +36 -0
  30. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/stop.md +32 -0
  31. package/dist/ai/docs/nocobase/api/cli/proxy/nginx/use.md +38 -0
  32. package/dist/ai/docs/nocobase/data-sources/data-source-external-nocobase/index.md +157 -0
  33. package/dist/ai/docs/nocobase/data-sources/data-source-manager/index.md +5 -0
  34. package/dist/ai/docs/nocobase/ops-management/version-control/index.md +79 -0
  35. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-version-control/index.md +14 -0
  36. package/dist/ai/docs/nocobase/quickstart/production/index.md +75 -69
  37. package/dist/ai/docs/nocobase/quickstart/production/reverse-proxy/caddy.md +211 -80
  38. package/dist/ai/docs/nocobase/quickstart/production/reverse-proxy/index.md +72 -53
  39. package/dist/ai/docs/nocobase/quickstart/production/reverse-proxy/nginx.md +186 -89
  40. package/dist/client/{290.0888139e33c9b7cb.js → 290.0f7f441d8a94f03c.js} +1 -1
  41. package/dist/client/{428.431a00d29107058e.js → 428.fdd0cc3cfd1632ef.js} +1 -1
  42. package/dist/client/ai-employees/chatbox/hooks/useChat.d.ts +14 -14
  43. package/dist/client/ai-employees/chatbox/stores/chat-box.d.ts +1 -105
  44. package/dist/client/ai-employees/chatbox/stores/chat-conversations.d.ts +1 -37
  45. package/dist/client/ai-employees/chatbox/stores/chat-messages.d.ts +1 -109
  46. package/dist/client/index.js +3 -3
  47. package/dist/client-v2/ai-employees/chatbox/hooks/useChatBoxActions.d.ts +17 -0
  48. package/dist/client-v2/ai-employees/chatbox/stores/chat-box.d.ts +113 -0
  49. package/dist/client-v2/ai-employees/chatbox/stores/chat-conversations.d.ts +45 -0
  50. package/dist/client-v2/ai-employees/chatbox/stores/chat-messages.d.ts +118 -0
  51. package/dist/client-v2/ai-employees/chatbox/stores/create-selectors.d.ts +18 -0
  52. package/dist/client-v2/ai-employees/chatbox/stores/global-store.d.ts +9 -0
  53. package/dist/client-v2/ai-employees/types.d.ts +151 -0
  54. package/dist/client-v2/index.d.ts +8 -1
  55. package/dist/client-v2/index.js +1 -1
  56. package/dist/client-v2/repositories/AIConfigRepository.d.ts +81 -0
  57. package/dist/client-v2/repositories/hooks/useAIConfigRepository.d.ts +10 -0
  58. package/dist/collections/ai-context-datasource.js +1 -0
  59. package/dist/externalVersion.js +16 -16
  60. package/dist/node_modules/@langchain/xai/package.json +1 -1
  61. package/dist/node_modules/fs-extra/package.json +1 -1
  62. package/dist/node_modules/jsonrepair/package.json +1 -1
  63. package/dist/node_modules/just-bash/package.json +1 -1
  64. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  65. package/dist/node_modules/openai/package.json +1 -1
  66. package/dist/node_modules/zod/package.json +1 -1
  67. package/dist/server/collections/ai-conversations.js +1 -0
  68. package/dist/server/collections/ai-employees.js +1 -0
  69. package/dist/server/collections/ai-files.js +1 -0
  70. package/dist/server/collections/ai-messages.js +1 -0
  71. package/dist/server/collections/ai-settings.js +1 -0
  72. package/dist/server/collections/ai-tool-messages.js +1 -0
  73. package/dist/server/collections/lc-checkpoint-blobs.js +1 -0
  74. package/dist/server/collections/lc-checkpoint-writes.js +1 -0
  75. package/dist/server/collections/lc-checkpoints.js +1 -0
  76. package/dist/server/collections/llm-services.js +1 -0
  77. package/dist/server/collections/users-ai-employees.js +1 -0
  78. package/package.json +2 -2
  79. package/dist/ai/docs/nocobase/ai/install-upgrade-migration.mdx +0 -402
  80. package/dist/ai/docs/nocobase/api/cli/env/proxy/caddy.md +0 -108
  81. package/dist/ai/docs/nocobase/api/cli/env/proxy/index.md +0 -54
  82. package/dist/ai/docs/nocobase/api/cli/env/proxy/nginx.md +0 -104
@@ -12,25 +12,25 @@ import { ChatSessionState } from '../stores/chat-messages';
12
12
  type MessagesMeta = ChatSessionState['messagesMeta'];
13
13
  export declare const useChat: (sessionId?: string) => {
14
14
  use: {
15
- messages: () => Message[];
15
+ messages: () => import("../../../../client-v2").Message[];
16
16
  messagesLoading: () => boolean;
17
- messagesError: () => any;
17
+ messagesError: () => unknown;
18
18
  messagesMeta: () => {
19
19
  cursor?: string;
20
20
  hasMore?: boolean;
21
21
  };
22
22
  attachments: () => any[];
23
- contextItems: () => ContextItem[];
23
+ contextItems: () => import("../../../../client-v2").ContextItem[];
24
24
  systemMessage: () => string;
25
25
  responseLoading: () => boolean;
26
26
  backgroundWorking: () => boolean;
27
27
  resumeStreamFailed: () => boolean;
28
28
  abortController: () => AbortController;
29
- skillSettings: () => SkillSettings;
30
- webSearching: () => WebSearching;
31
- editorRef: () => Record<string, EditorRef>;
29
+ skillSettings: () => import("../../../../client-v2").SkillSettings;
30
+ webSearching: () => import("../../../../client-v2").WebSearching;
31
+ editorRef: () => Record<string, import("../../../../client-v2").ChatEditorRef>;
32
32
  currentEditorRefUid: () => string;
33
- flowContext: () => any;
33
+ flowContext: () => unknown;
34
34
  };
35
35
  getState: () => {
36
36
  setMessages: (messages: Message[] | ((prev: Message[]) => Message[])) => void;
@@ -66,23 +66,23 @@ export declare const useChat: (sessionId?: string) => {
66
66
  setFlowContext: (flowContext: any) => void;
67
67
  migrateSessionState: (toSessionId: string) => void;
68
68
  resetSessionState: (patch?: Partial<ChatSessionState>) => void;
69
- editorRef: Record<string, EditorRef>;
69
+ editorRef: Record<string, import("../../../../client-v2").ChatEditorRef>;
70
70
  currentEditorRefUid: string;
71
- flowContext: any;
72
- messages: Message[];
71
+ flowContext: unknown;
72
+ messages: import("../../../../client-v2").Message[];
73
73
  messagesLoading: boolean;
74
- messagesError?: any;
74
+ messagesError?: unknown;
75
75
  messagesMeta: {
76
76
  cursor?: string;
77
77
  hasMore?: boolean;
78
78
  };
79
79
  attachments: any[];
80
- contextItems: ContextItem[];
80
+ contextItems: import("../../../../client-v2").ContextItem[];
81
81
  systemMessage: string;
82
82
  responseLoading: boolean;
83
83
  abortController?: AbortController;
84
- skillSettings?: SkillSettings;
85
- webSearching?: WebSearching;
84
+ skillSettings?: import("../../../../client-v2").SkillSettings;
85
+ webSearching?: import("../../../../client-v2").WebSearching;
86
86
  backgroundWorking: boolean;
87
87
  resumeStreamFailed: boolean;
88
88
  };
@@ -6,108 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- /// <reference types="react" />
10
- import { Bubble, Sender } from '@ant-design/x';
11
- import { GetProp, GetRef } from 'antd';
12
- import { AIEmployee } from '../../types';
13
- type RolesType = GetProp<typeof Bubble.List, 'roles'>;
14
- export interface ModelRef {
15
- llmService: string;
16
- model: string;
17
- }
18
- interface ChatBoxState {
19
- open: boolean;
20
- expanded: boolean;
21
- collapsed: boolean;
22
- showConversations: boolean;
23
- minimize: boolean;
24
- currentEmployee?: AIEmployee;
25
- senderValue: string;
26
- senderPlaceholder: string;
27
- roles: GetProp<typeof Bubble.List, 'roles'>;
28
- taskVariables: {
29
- variables?: Record<string, any>;
30
- localVariables?: Record<string, any>;
31
- };
32
- isEditingMessage: boolean;
33
- editingMessageId?: string;
34
- chatBoxRef: React.MutableRefObject<HTMLDivElement> | null;
35
- senderRef: React.MutableRefObject<GetRef<typeof Sender>> | null;
36
- showCodeHistory: boolean;
37
- model?: ModelRef | null;
38
- showDebugPanel: boolean;
39
- readonly: boolean;
40
- isShowSenderHint: boolean;
41
- }
42
- interface ChatBoxActions {
43
- setOpen: (open: boolean) => void;
44
- setExpanded: (expanded: boolean) => void;
45
- setCollapsed: (collapsed: boolean) => void;
46
- setShowConversations: (show: boolean) => void;
47
- setMinimize: (minus: boolean) => void;
48
- setCurrentEmployee: (aiEmployee?: AIEmployee | ((prev: AIEmployee) => AIEmployee)) => void;
49
- setSenderValue: (value: string) => void;
50
- setSenderPlaceholder: (placeholder: string) => void;
51
- setTaskVariables: (variables: ChatBoxState['taskVariables']) => void;
52
- setRoles: (roles: RolesType | ((prev: RolesType) => RolesType)) => void;
53
- addRole: (name: string, role: any) => void;
54
- setIsEditingMessage: (isEditing: boolean) => void;
55
- setEditingMessageId: (id?: string) => void;
56
- setChatBoxRef: (ref: React.MutableRefObject<HTMLDivElement> | null) => void;
57
- setSenderRef: (ref: React.MutableRefObject<GetRef<typeof Sender>> | null) => void;
58
- setShowCodeHistory: (show: boolean) => void;
59
- setModel: (model: ModelRef | null) => void;
60
- setShowDebugPanel: (show: boolean) => void;
61
- setReadonly: (readonly: boolean) => void;
62
- setShowSenderHint: (show: boolean) => void;
63
- }
64
- export declare const useChatBoxStore: {
65
- (): ChatBoxState & ChatBoxActions;
66
- <U>(selector: (state: ChatBoxState & ChatBoxActions) => U): U;
67
- } & import("zustand").StoreApi<ChatBoxState & ChatBoxActions> & {
68
- use: {
69
- open: () => boolean;
70
- expanded: () => boolean;
71
- collapsed: () => boolean;
72
- showConversations: () => boolean;
73
- minimize: () => boolean;
74
- currentEmployee?: () => AIEmployee;
75
- senderValue: () => string;
76
- senderPlaceholder: () => string;
77
- roles: () => GetProp<import("react").ForwardRefExoticComponent<import("@ant-design/x/es/bubble/BubbleList").BubbleListProps & import("react").RefAttributes<import("@ant-design/x/es/bubble/BubbleList").BubbleListRef>>, "roles">;
78
- taskVariables: () => {
79
- variables?: Record<string, any>;
80
- localVariables?: Record<string, any>;
81
- };
82
- isEditingMessage: () => boolean;
83
- editingMessageId?: () => string;
84
- chatBoxRef: () => import("react").MutableRefObject<HTMLDivElement>;
85
- senderRef: () => import("react").MutableRefObject<import("@ant-design/x/es/sender").SenderRef>;
86
- showCodeHistory: () => boolean;
87
- model?: () => ModelRef;
88
- showDebugPanel: () => boolean;
89
- readonly: () => boolean;
90
- isShowSenderHint: () => boolean;
91
- setOpen: () => (open: boolean) => void;
92
- setExpanded: () => (expanded: boolean) => void;
93
- setCollapsed: () => (collapsed: boolean) => void;
94
- setShowConversations: () => (show: boolean) => void;
95
- setMinimize: () => (minus: boolean) => void;
96
- setCurrentEmployee: () => (aiEmployee?: AIEmployee | ((prev: AIEmployee) => AIEmployee)) => void;
97
- setSenderValue: () => (value: string) => void;
98
- setSenderPlaceholder: () => (placeholder: string) => void;
99
- setTaskVariables: () => (variables: ChatBoxState['taskVariables']) => void;
100
- setRoles: () => (roles: RolesType | ((prev: RolesType) => RolesType)) => void;
101
- addRole: () => (name: string, role: any) => void;
102
- setIsEditingMessage: () => (isEditing: boolean) => void;
103
- setEditingMessageId: () => (id?: string) => void;
104
- setChatBoxRef: () => (ref: React.MutableRefObject<HTMLDivElement> | null) => void;
105
- setSenderRef: () => (ref: React.MutableRefObject<GetRef<typeof Sender>> | null) => void;
106
- setShowCodeHistory: () => (show: boolean) => void;
107
- setModel: () => (model: ModelRef | null) => void;
108
- setShowDebugPanel: () => (show: boolean) => void;
109
- setReadonly: () => (readonly: boolean) => void;
110
- setShowSenderHint: () => (show: boolean) => void;
111
- };
112
- };
113
- export {};
9
+ export * from '../../../../client-v2/ai-employees/chatbox/stores/chat-box';
@@ -6,40 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { Conversation } from '../../types';
10
- interface ChatConversationsState {
11
- currentConversation?: string;
12
- conversations: Conversation[];
13
- keyword: string;
14
- webSearch: boolean;
15
- conversationSegmented: string;
16
- unreadCount: number;
17
- }
18
- interface ChatConversationsActions {
19
- setCurrentConversation: (id: string | undefined) => void;
20
- setKeyword: (keyword: string) => void;
21
- setConversations: (conversations: Conversation[] | ((prev: Conversation[]) => Conversation[])) => void;
22
- setWebSearch: (webSearch: boolean) => void;
23
- setConversationSegmented: (conversationSegmented: string) => void;
24
- setUnreadCount: (unreadCount: number | ((prev: number) => number)) => void;
25
- }
26
- export declare const useChatConversationsStore: {
27
- (): ChatConversationsState & ChatConversationsActions;
28
- <U>(selector: (state: ChatConversationsState & ChatConversationsActions) => U): U;
29
- } & import("zustand").StoreApi<ChatConversationsState & ChatConversationsActions> & {
30
- use: {
31
- currentConversation?: () => string;
32
- conversations: () => Conversation[];
33
- keyword: () => string;
34
- webSearch: () => boolean;
35
- conversationSegmented: () => string;
36
- unreadCount: () => number;
37
- setCurrentConversation: () => (id: string | undefined) => void;
38
- setKeyword: () => (keyword: string) => void;
39
- setConversations: () => (conversations: Conversation[] | ((prev: Conversation[]) => Conversation[])) => void;
40
- setWebSearch: () => (webSearch: boolean) => void;
41
- setConversationSegmented: () => (conversationSegmented: string) => void;
42
- setUnreadCount: () => (unreadCount: number | ((prev: number) => number)) => void;
43
- };
44
- };
45
- export {};
9
+ export * from '../../../../client-v2/ai-employees/chatbox/stores/chat-conversations';
@@ -6,112 +6,4 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- import { Message, Attachment, ContextItem, SkillSettings, WebSearching } from '../../types';
10
- import { EditorRef } from '@nocobase/client';
11
- export declare const CHAT_DEFAULT_SESSION_KEY = "__draft__";
12
- export declare const getChatSessionKey: (sessionId?: string) => string;
13
- export type ChatSessionState = {
14
- messages: Message[];
15
- messagesLoading: boolean;
16
- messagesError?: any;
17
- messagesMeta: {
18
- cursor?: string;
19
- hasMore?: boolean;
20
- };
21
- attachments: Attachment[];
22
- contextItems: ContextItem[];
23
- systemMessage: string;
24
- responseLoading: boolean;
25
- abortController?: AbortController;
26
- skillSettings?: SkillSettings;
27
- webSearching?: WebSearching;
28
- backgroundWorking: boolean;
29
- resumeStreamFailed: boolean;
30
- };
31
- export declare const CHAT_EMPTY_SESSION_STATE: ChatSessionState;
32
- type ChatMessagesState = {
33
- sessions: Record<string, ChatSessionState>;
34
- editorRef?: Record<string, EditorRef>;
35
- currentEditorRefUid?: string;
36
- flowContext?: any;
37
- };
38
- type SessionStateUpdater<T> = T | ((prev: T) => T);
39
- export interface ChatMessagesActions {
40
- setEditorRef: (uid: string, editorRef: EditorRef) => void;
41
- setCurrentEditorRefUid: (uid: string) => void;
42
- setFlowContext: (ctx: any) => void;
43
- getSessionState: (sessionId?: string) => ChatSessionState;
44
- resetSessionState: (sessionId?: string, patch?: Partial<ChatSessionState>) => void;
45
- migrateSessionState: (fromSessionId: string | undefined, toSessionId: string) => void;
46
- setSessionMessages: (sessionId: string | undefined, messages: SessionStateUpdater<Message[]>) => void;
47
- setSessionMessagesLoading: (sessionId: string | undefined, loading: boolean) => void;
48
- setSessionMessagesError: (sessionId: string | undefined, error: any) => void;
49
- setSessionMessagesMeta: (sessionId: string | undefined, meta: ChatSessionState['messagesMeta'] | ((prev: ChatSessionState['messagesMeta']) => ChatSessionState['messagesMeta'])) => void;
50
- setSessionAttachments: (sessionId: string | undefined, attachments: SessionStateUpdater<Attachment[]>) => void;
51
- setSessionContextItems: (sessionId: string | undefined, items: SessionStateUpdater<ContextItem[]>) => void;
52
- setSessionSystemMessage: (sessionId: string | undefined, msg: string | ((prev: string) => string)) => void;
53
- setSessionResponseLoading: (sessionId: string | undefined, loading: boolean) => void;
54
- setSessionBackgroundWorking: (sessionId: string | undefined, backgroundWorking: boolean) => void;
55
- setSessionResumeStreamFailed: (sessionId: string | undefined, resumeStreamFailed: boolean) => void;
56
- addSessionMessage: (sessionId: string | undefined, msg: Message) => void;
57
- addSessionMessages: (sessionId: string | undefined, msgs: Message[]) => void;
58
- updateSessionLastMessage: (sessionId: string | undefined, updater: (msg: Message) => Message) => void;
59
- removeSessionMessage: (sessionId: string | undefined, key: string) => void;
60
- addSessionAttachments: (sessionId: string | undefined, attachments: Attachment | Attachment[]) => void;
61
- removeSessionAttachment: (sessionId: string | undefined, filename: string) => void;
62
- addSessionContextItems: (sessionId: string | undefined, items: ContextItem | ContextItem[]) => void;
63
- removeSessionContextItem: (sessionId: string | undefined, type: string, uid: string) => void;
64
- setSessionAbortController: (sessionId: string | undefined, controller: AbortController | undefined) => void;
65
- setSessionSkillSettings: (sessionId: string | undefined, settings: SkillSettings | undefined) => void;
66
- setSessionWebSearching: (sessionId: string | undefined, webSearching: WebSearching) => void;
67
- addSessionSubAgentMessage: (sessionId: string | undefined, subSessionId: string, msg: Message) => void;
68
- addSessionSubAgentMessages: (sessionId: string | undefined, subSessionId: string, msgs: Message[]) => void;
69
- updateSessionLastSubAgentMessage: (sessionId: string | undefined, subSessionId: string, username: string, updater: (msg: Message) => Message) => void;
70
- updateSessionSubAgentConversationStatus: (sessionId: string | undefined, subSessionId: string, status: 'pending' | 'completed') => void;
71
- }
72
- export declare const useChatMessagesStore: {
73
- (): ChatMessagesState & ChatMessagesActions;
74
- <U>(selector: (state: ChatMessagesState & ChatMessagesActions) => U): U;
75
- } & import("zustand").StoreApi<ChatMessagesState & ChatMessagesActions> & {
76
- use: {
77
- sessions: () => Record<string, ChatSessionState>;
78
- editorRef?: () => Record<string, EditorRef>;
79
- currentEditorRefUid?: () => string;
80
- flowContext?: () => any;
81
- setEditorRef: () => (uid: string, editorRef: EditorRef) => void;
82
- setCurrentEditorRefUid: () => (uid: string) => void;
83
- setFlowContext: () => (ctx: any) => void;
84
- getSessionState: () => (sessionId?: string) => ChatSessionState;
85
- resetSessionState: () => (sessionId?: string, patch?: Partial<ChatSessionState>) => void;
86
- migrateSessionState: () => (fromSessionId: string | undefined, toSessionId: string) => void;
87
- setSessionMessages: () => (sessionId: string | undefined, messages: SessionStateUpdater<Message[]>) => void;
88
- setSessionMessagesLoading: () => (sessionId: string | undefined, loading: boolean) => void;
89
- setSessionMessagesError: () => (sessionId: string | undefined, error: any) => void;
90
- setSessionMessagesMeta: () => (sessionId: string | undefined, meta: {
91
- cursor?: string;
92
- hasMore?: boolean;
93
- } | ((prev: ChatSessionState['messagesMeta']) => ChatSessionState['messagesMeta'])) => void;
94
- setSessionAttachments: () => (sessionId: string | undefined, attachments: SessionStateUpdater<Attachment[]>) => void;
95
- setSessionContextItems: () => (sessionId: string | undefined, items: SessionStateUpdater<ContextItem[]>) => void;
96
- setSessionSystemMessage: () => (sessionId: string | undefined, msg: string | ((prev: string) => string)) => void;
97
- setSessionResponseLoading: () => (sessionId: string | undefined, loading: boolean) => void;
98
- setSessionBackgroundWorking: () => (sessionId: string | undefined, backgroundWorking: boolean) => void;
99
- setSessionResumeStreamFailed: () => (sessionId: string | undefined, resumeStreamFailed: boolean) => void;
100
- addSessionMessage: () => (sessionId: string | undefined, msg: Message) => void;
101
- addSessionMessages: () => (sessionId: string | undefined, msgs: Message[]) => void;
102
- updateSessionLastMessage: () => (sessionId: string | undefined, updater: (msg: Message) => Message) => void;
103
- removeSessionMessage: () => (sessionId: string | undefined, key: string) => void;
104
- addSessionAttachments: () => (sessionId: string | undefined, attachments: Attachment | Attachment[]) => void;
105
- removeSessionAttachment: () => (sessionId: string | undefined, filename: string) => void;
106
- addSessionContextItems: () => (sessionId: string | undefined, items: ContextItem | ContextItem[]) => void;
107
- removeSessionContextItem: () => (sessionId: string | undefined, type: string, uid: string) => void;
108
- setSessionAbortController: () => (sessionId: string | undefined, controller: AbortController | undefined) => void;
109
- setSessionSkillSettings: () => (sessionId: string | undefined, settings: SkillSettings | undefined) => void;
110
- setSessionWebSearching: () => (sessionId: string | undefined, webSearching: WebSearching) => void;
111
- addSessionSubAgentMessage: () => (sessionId: string | undefined, subSessionId: string, msg: Message) => void;
112
- addSessionSubAgentMessages: () => (sessionId: string | undefined, subSessionId: string, msgs: Message[]) => void;
113
- updateSessionLastSubAgentMessage: () => (sessionId: string | undefined, subSessionId: string, username: string, updater: (msg: Message) => Message) => void;
114
- updateSessionSubAgentConversationStatus: () => (sessionId: string | undefined, subSessionId: string, status: 'pending' | 'completed') => void;
115
- };
116
- };
117
- export {};
9
+ export * from '../../../../client-v2/ai-employees/chatbox/stores/chat-messages';