vzcode 2.3.0 → 2.4.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/package.json +3 -2
- package/src/cli.ts +208 -0
- package/src/client/AIAssist/AIAssistCodeMirrorKeyMap.ts +42 -0
- package/src/client/AIAssist/AIAssistWidget/index.tsx +135 -0
- package/src/client/AIAssist/AIAssistWidget/style.scss +47 -0
- package/src/client/AIAssist/Spinner.jsx +76 -0
- package/src/client/AIAssist/formatFile.ts +27 -0
- package/src/client/AIAssist/generateFilesContext.ts +25 -0
- package/src/client/AIAssist/index.ts +2 -0
- package/src/client/AIAssist/startAIAssist.ts +95 -0
- package/src/client/App/index.tsx +152 -0
- package/src/client/App/style.scss +82 -0
- package/src/client/App/usePending.ts +51 -0
- package/src/client/App/useShareDB.ts +161 -0
- package/src/client/CodeEditor/Copilot/index.ts +74 -0
- package/src/client/CodeEditor/InteractiveWidgets/boolToggler.ts +12 -0
- package/src/client/CodeEditor/InteractiveWidgets/colorPicker.ts +68 -0
- package/src/client/CodeEditor/InteractiveWidgets/colorsInTextPlugin.ts +174 -0
- package/src/client/CodeEditor/InteractiveWidgets/highlightWidgets.ts +79 -0
- package/src/client/CodeEditor/InteractiveWidgets/index.ts +44 -0
- package/src/client/CodeEditor/InteractiveWidgets/markdownCheckboxToggler.ts +12 -0
- package/src/client/CodeEditor/InteractiveWidgets/numberDragger.ts +20 -0
- package/src/client/CodeEditor/InteractiveWidgets/rotateWidget.ts +143 -0
- package/src/client/CodeEditor/InteractiveWidgets/urlClicker.test.ts +48 -0
- package/src/client/CodeEditor/InteractiveWidgets/urlClicker.ts +12 -0
- package/src/client/CodeEditor/InteractiveWidgets/vec2Slider.ts +25 -0
- package/src/client/CodeEditor/basicSetup.ts +73 -0
- package/src/client/CodeEditor/getOrCreateEditor.tsx +615 -0
- package/src/client/CodeEditor/index.tsx +202 -0
- package/src/client/CodeEditor/json1PresenceBroadcast.ts +41 -0
- package/src/client/CodeEditor/json1PresenceDisplay.ts +350 -0
- package/src/client/CodeEditor/rainbowBrackets.ts +122 -0
- package/src/client/CodeEditor/style.scss +156 -0
- package/src/client/CodeEditor/typescriptExtension/worker.ts +32 -0
- package/src/client/CodeErrorOverlay/index.tsx +77 -0
- package/src/client/CodeErrorOverlay/style.scss +33 -0
- package/src/client/Fonts/fonts.ts +8 -0
- package/src/client/Icons/AdjustmentSVG.tsx +19 -0
- package/src/client/Icons/BugSVG.tsx +20 -0
- package/src/client/Icons/CloseSVG.tsx +19 -0
- package/src/client/Icons/CssSVG.tsx +16 -0
- package/src/client/Icons/DirectoryArrowSVG.tsx +19 -0
- package/src/client/Icons/EditSVG.tsx +19 -0
- package/src/client/Icons/FileSVG.tsx +19 -0
- package/src/client/Icons/FolderSVG.tsx +20 -0
- package/src/client/Icons/GearSVG.tsx +16 -0
- package/src/client/Icons/HtmlSVG.tsx +16 -0
- package/src/client/Icons/JavaScriptSVG.tsx +16 -0
- package/src/client/Icons/JsonSVG.tsx +16 -0
- package/src/client/Icons/MarkdownSVG.tsx +16 -0
- package/src/client/Icons/MicOffSVG.tsx +35 -0
- package/src/client/Icons/MicSVG.tsx +25 -0
- package/src/client/Icons/NewSVG.tsx +19 -0
- package/src/client/Icons/PinSVG.tsx +14 -0
- package/src/client/Icons/PlaySVG.tsx +16 -0
- package/src/client/Icons/QuestionMarkSVG.tsx +18 -0
- package/src/client/Icons/ReactSVG.tsx +16 -0
- package/src/client/Icons/SearchSVG.tsx +20 -0
- package/src/client/Icons/SparklesSVG.tsx +23 -0
- package/src/client/Icons/SplitEditorSVG.tsx +34 -0
- package/src/client/Icons/StopSVG.tsx +15 -0
- package/src/client/Icons/SvelteSVG.tsx +16 -0
- package/src/client/Icons/TrashSVG.tsx +19 -0
- package/src/client/Icons/TypeScriptSVG.tsx +16 -0
- package/src/client/Icons/index.tsx +26 -0
- package/src/client/ImageViewer/index.tsx +91 -0
- package/src/client/ImageViewer/style.scss +41 -0
- package/src/client/PresenceNotifications/PresenceNotifications.test.ts +134 -0
- package/src/client/PresenceNotifications/index.tsx +158 -0
- package/src/client/PresenceNotifications/style.scss +17 -0
- package/src/client/RunCodeWidget/index.tsx +117 -0
- package/src/client/RunCodeWidget/style.scss +24 -0
- package/src/client/SplitPaneResizeContext.tsx +159 -0
- package/src/client/TabList/Tab.tsx +73 -0
- package/src/client/TabList/index.tsx +35 -0
- package/src/client/TabList/style.scss +51 -0
- package/src/client/VZCodeContext/index.tsx +29 -0
- package/src/client/VZCodeContext/types.ts +248 -0
- package/src/client/VZCodeContext/useVZCodeState.ts +602 -0
- package/src/client/VZKeyboardShortcutsDoc.tsx +148 -0
- package/src/client/VZLeft.tsx +28 -0
- package/src/client/VZMiddle.tsx +172 -0
- package/src/client/VZResizer/index.tsx +128 -0
- package/src/client/VZResizer/styles.scss +33 -0
- package/src/client/VZRight.tsx +113 -0
- package/src/client/VZSettings.tsx +275 -0
- package/src/client/VZSidebar/AIChat/ChatInput.tsx +243 -0
- package/src/client/VZSidebar/AIChat/DiffView.scss +136 -0
- package/src/client/VZSidebar/AIChat/DiffView.tsx +176 -0
- package/src/client/VZSidebar/AIChat/Message.tsx +79 -0
- package/src/client/VZSidebar/AIChat/MessageList.tsx +190 -0
- package/src/client/VZSidebar/AIChat/StreamingMessage.tsx +35 -0
- package/src/client/VZSidebar/AIChat/ThinkingScratchpad.tsx +156 -0
- package/src/client/VZSidebar/AIChat/TypingIndicator.tsx +19 -0
- package/src/client/VZSidebar/AIChat/index.tsx +357 -0
- package/src/client/VZSidebar/AIChat/styles.scss +646 -0
- package/src/client/VZSidebar/AIChat/useSpeechRecognition.ts +117 -0
- package/src/client/VZSidebar/CreateDirModal.tsx +111 -0
- package/src/client/VZSidebar/CreateFileModal.tsx +111 -0
- package/src/client/VZSidebar/DeleteConfirmationModal.tsx +76 -0
- package/src/client/VZSidebar/DirectoryListing.tsx +89 -0
- package/src/client/VZSidebar/EmptyState.tsx +11 -0
- package/src/client/VZSidebar/FileListing.tsx +91 -0
- package/src/client/VZSidebar/FileTypeIcon.tsx +49 -0
- package/src/client/VZSidebar/Item.tsx +237 -0
- package/src/client/VZSidebar/Listing.tsx +47 -0
- package/src/client/VZSidebar/Search.tsx +527 -0
- package/src/client/VZSidebar/VisualEditor.tsx +282 -0
- package/src/client/VZSidebar/VoiceChatModal.tsx +121 -0
- package/src/client/VZSidebar/aiCopyPaste.ts +199 -0
- package/src/client/VZSidebar/index.tsx +728 -0
- package/src/client/VZSidebar/styles.scss +612 -0
- package/src/client/VZSidebar/useDragAndDrop.tsx +408 -0
- package/src/client/bootstrap.ts +26 -0
- package/src/client/buildWorker.ts +3 -0
- package/src/client/featureFlags.ts +8 -0
- package/src/client/generateRequestId.ts +6 -0
- package/src/client/getFileTree.ts +53 -0
- package/src/client/index.ts +19 -0
- package/src/client/main.jsx +10 -0
- package/src/client/presenceColor.ts +8 -0
- package/src/client/shouldTriggerRun.ts +31 -0
- package/src/client/sortFileTree.ts +21 -0
- package/src/client/tabsSearchParameters.test.ts +79 -0
- package/src/client/tabsSearchParameters.ts +137 -0
- package/src/client/themes/index.ts +7 -0
- package/src/client/themes/themes.ts +77 -0
- package/src/client/themes/uiwImports.ts +32 -0
- package/src/client/themes/useDynamicTheme.ts +29 -0
- package/src/client/themes/vizhubTheme/colors.ts +80 -0
- package/src/client/themes/vizhubTheme/index.ts +193 -0
- package/src/client/useActions.ts +288 -0
- package/src/client/useESLint/index.ts +72 -0
- package/src/client/useESLint/worker.ts +113 -0
- package/src/client/useEditorCache.ts +35 -0
- package/src/client/useFileCRUD.ts +228 -0
- package/src/client/useKeyboardShortcuts.ts +451 -0
- package/src/client/useOpenDirectories.ts +99 -0
- package/src/client/usePresenceAutoFollow.ts +85 -0
- package/src/client/usePrettier/index.ts +178 -0
- package/src/client/usePrettier/worker.ts +109 -0
- package/src/client/useRunCode.tsx +15 -0
- package/src/client/useRuntimeError.ts +32 -0
- package/src/client/useSubmitOperation.ts +15 -0
- package/src/client/useURLSync.ts +137 -0
- package/src/client/usernameLocalStorage.ts +43 -0
- package/src/client/utils/fileExtension.ts +10 -0
- package/src/client/utils/isImageFile.ts +12 -0
- package/src/client/vzReducer/aiChatReducer.ts +44 -0
- package/src/client/vzReducer/closeTabReducer.test.ts +205 -0
- package/src/client/vzReducer/closeTabsReducer.ts +96 -0
- package/src/client/vzReducer/createInitialState.ts +38 -0
- package/src/client/vzReducer/editorNoLongerWantsFocusReducer.ts +9 -0
- package/src/client/vzReducer/findPane.ts +19 -0
- package/src/client/vzReducer/index.ts +250 -0
- package/src/client/vzReducer/openTabReducer.test.ts +127 -0
- package/src/client/vzReducer/openTabReducer.ts +74 -0
- package/src/client/vzReducer/searchReducer.test.ts +292 -0
- package/src/client/vzReducer/searchReducer.ts +181 -0
- package/src/client/vzReducer/setActiveFileIdReducer.ts +28 -0
- package/src/client/vzReducer/setActiveFileLeftRightReducer.ts +76 -0
- package/src/client/vzReducer/setIsDocOpenReducer.ts +9 -0
- package/src/client/vzReducer/setIsSettingsOpenReducer.ts +9 -0
- package/src/client/vzReducer/setThemeReducer.ts +9 -0
- package/src/client/vzReducer/setUsernameReducer.ts +9 -0
- package/src/client/vzReducer/splitCurrentPaneReducer.ts +66 -0
- package/src/client/vzReducer/toggleAutoFollowReducer.ts +12 -0
- package/src/client/vzReducer/updatePane.ts +40 -0
- package/src/client/vzReducer/updatePresenceIndicatorReducer.ts +30 -0
- package/src/client/vzReducer/visualEditorReducer.ts +9 -0
- package/src/ot.ts +24 -0
- package/src/randomId.ts +15 -0
- package/src/reactRouterExports.ts +15 -0
- package/src/runCode.ts +27 -0
- package/src/server/aiChatHandler/aiEditing.ts +151 -0
- package/src/server/aiChatHandler/chatOperations.ts +476 -0
- package/src/server/aiChatHandler/errorHandling.ts +66 -0
- package/src/server/aiChatHandler/index.ts +199 -0
- package/src/server/aiChatHandler/llmStreaming.ts +419 -0
- package/src/server/aiChatHandler/validation.ts +24 -0
- package/src/server/computeInitialDocument.ts +220 -0
- package/src/server/config.ts +24 -0
- package/src/server/featureFlags.ts +8 -0
- package/src/server/generateAIResponse.ts +188 -0
- package/src/server/handleAIAssist.ts +53 -0
- package/src/server/handleAIChatMessage.ts +2 -0
- package/src/server/handleAICopilot.ts +97 -0
- package/src/server/index.ts +379 -0
- package/src/server/isDirectory.ts +1 -0
- package/src/server/livekit.ts +24 -0
- package/src/server/prettier.ts +115 -0
- package/src/server/setupEnv.ts +8 -0
- package/src/submitOperation.ts +25 -0
- package/src/types.ts +205 -0
- package/src/utils/fileDiff.ts +117 -0
- package/src/vite-env.d.ts +10 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ItemId,
|
|
3
|
+
LeafPane,
|
|
4
|
+
Pane,
|
|
5
|
+
PaneId,
|
|
6
|
+
PresenceIndicator,
|
|
7
|
+
SearchFileVisibility,
|
|
8
|
+
SearchResults,
|
|
9
|
+
ShareDBDoc,
|
|
10
|
+
SubmitOperation,
|
|
11
|
+
TabState,
|
|
12
|
+
Username,
|
|
13
|
+
} from '../../types';
|
|
14
|
+
import { VizFiles, VizContent } from '@vizhub/viz-types';
|
|
15
|
+
import { ThemeLabel } from '../themes';
|
|
16
|
+
import { EditorCache } from '../useEditorCache';
|
|
17
|
+
|
|
18
|
+
// The type of the object provided by this context.
|
|
19
|
+
export type VZCodeContextValue = {
|
|
20
|
+
content: VizContent | null;
|
|
21
|
+
shareDBDoc: ShareDBDoc<VizContent> | null;
|
|
22
|
+
submitOperation: (
|
|
23
|
+
next: (content: VizContent) => VizContent,
|
|
24
|
+
) => void;
|
|
25
|
+
// TODO pull in this type from ShareDB if possible
|
|
26
|
+
localPresence: any;
|
|
27
|
+
// TODO pull in this type from ShareDB if possible
|
|
28
|
+
docPresence: any;
|
|
29
|
+
|
|
30
|
+
files: VizFiles | null;
|
|
31
|
+
createFile: (fileName: string, text?: string) => void;
|
|
32
|
+
renameFile: (fileId: string, fileName: string) => void;
|
|
33
|
+
deleteFile: (fileId: string) => void;
|
|
34
|
+
createDirectory: (
|
|
35
|
+
fileName: string,
|
|
36
|
+
text?: string,
|
|
37
|
+
) => void;
|
|
38
|
+
renameDirectory: (
|
|
39
|
+
directoryId: string,
|
|
40
|
+
directoryOldName: string,
|
|
41
|
+
directoryName: string,
|
|
42
|
+
) => void;
|
|
43
|
+
deleteDirectory: (directoryId: string) => void;
|
|
44
|
+
deleteAllFiles: () => void;
|
|
45
|
+
|
|
46
|
+
setActiveFileId: (fileId: string | null) => void;
|
|
47
|
+
setActiveFileLeft: () => void;
|
|
48
|
+
setActiveFileRight: () => void;
|
|
49
|
+
|
|
50
|
+
activePaneId: PaneId;
|
|
51
|
+
pane: Pane;
|
|
52
|
+
activePane: LeafPane;
|
|
53
|
+
|
|
54
|
+
openTab: (tabState: TabState) => void;
|
|
55
|
+
closeTabs: (fileIds: string[]) => void;
|
|
56
|
+
|
|
57
|
+
isSettingsOpen: boolean;
|
|
58
|
+
setIsSettingsOpen: (isSettingsOpen: boolean) => void;
|
|
59
|
+
closeSettings: () => void;
|
|
60
|
+
|
|
61
|
+
isDocOpen: boolean;
|
|
62
|
+
setIsDocOpen: (isDocOpen: boolean) => void;
|
|
63
|
+
closeDoc: () => void;
|
|
64
|
+
|
|
65
|
+
theme: ThemeLabel;
|
|
66
|
+
setTheme: (theme: ThemeLabel) => void;
|
|
67
|
+
|
|
68
|
+
username: Username;
|
|
69
|
+
setUsername: (username: Username) => void;
|
|
70
|
+
|
|
71
|
+
isDirectoryOpen: (path: string) => boolean;
|
|
72
|
+
toggleDirectory: (path: string) => void;
|
|
73
|
+
|
|
74
|
+
editorCache: EditorCache;
|
|
75
|
+
|
|
76
|
+
// Whether the editor should be focused.
|
|
77
|
+
editorWantsFocus: boolean;
|
|
78
|
+
// Signals that the editor no longer wants focus.
|
|
79
|
+
editorNoLongerWantsFocus: () => void;
|
|
80
|
+
|
|
81
|
+
errorMessage: string | null;
|
|
82
|
+
|
|
83
|
+
// Runtime error handling
|
|
84
|
+
handleRuntimeError: (
|
|
85
|
+
formattedErrorMessage: string,
|
|
86
|
+
) => void;
|
|
87
|
+
clearRuntimeError: () => void;
|
|
88
|
+
|
|
89
|
+
search: SearchResults;
|
|
90
|
+
isSearchOpen: boolean;
|
|
91
|
+
setIsSearchOpen: (isSearchOpen: boolean) => void;
|
|
92
|
+
setSearch: (pattern: string) => void;
|
|
93
|
+
|
|
94
|
+
isVisualEditorOpen: boolean;
|
|
95
|
+
setIsVisualEditorOpen: (
|
|
96
|
+
isVisualEditorOpen: boolean,
|
|
97
|
+
) => void;
|
|
98
|
+
|
|
99
|
+
isAIChatOpen: boolean;
|
|
100
|
+
setIsAIChatOpen: (isAIChatOpen: boolean) => void;
|
|
101
|
+
aiChatFocused: boolean;
|
|
102
|
+
toggleAIChatFocused: () => void;
|
|
103
|
+
aiChatMode: 'ask' | 'edit';
|
|
104
|
+
setAIChatMode: (mode: 'ask' | 'edit') => void;
|
|
105
|
+
aiChatEndpoint?: string;
|
|
106
|
+
aiChatOptions?: { [key: string]: any };
|
|
107
|
+
setSearchResults: (files: ShareDBDoc<VizContent>) => void;
|
|
108
|
+
setSearchFileVisibility: (
|
|
109
|
+
files: ShareDBDoc<VizContent>,
|
|
110
|
+
id: string,
|
|
111
|
+
visibility: SearchFileVisibility,
|
|
112
|
+
) => void;
|
|
113
|
+
setSearchLineVisibility: (
|
|
114
|
+
files: ShareDBDoc<VizContent>,
|
|
115
|
+
id: string,
|
|
116
|
+
line: number,
|
|
117
|
+
) => void;
|
|
118
|
+
setSearchFocusedIndex: (
|
|
119
|
+
focusedIndex: number,
|
|
120
|
+
childIndex: number,
|
|
121
|
+
) => void;
|
|
122
|
+
toggleSearchFocused: () => void;
|
|
123
|
+
|
|
124
|
+
isCreateFileModalOpen: boolean;
|
|
125
|
+
handleOpenCreateFileModal: () => void;
|
|
126
|
+
handleCloseCreateFileModal: () => void;
|
|
127
|
+
handleCreateFileClick: (newFileName: string) => void;
|
|
128
|
+
|
|
129
|
+
isCreateDirModalOpen: boolean;
|
|
130
|
+
handleOpenCreateDirModal: () => void;
|
|
131
|
+
handleCloseCreateDirModal: () => void;
|
|
132
|
+
handleCreateDirClick: (newFileName: string) => void;
|
|
133
|
+
|
|
134
|
+
runPrettierRef: React.MutableRefObject<
|
|
135
|
+
null | (() => void)
|
|
136
|
+
>;
|
|
137
|
+
runCodeRef: React.MutableRefObject<
|
|
138
|
+
null | ((hardRerun?: boolean) => void)
|
|
139
|
+
>;
|
|
140
|
+
|
|
141
|
+
sidebarRef: React.RefObject<HTMLDivElement>;
|
|
142
|
+
|
|
143
|
+
codeEditorRef: React.RefObject<HTMLDivElement>;
|
|
144
|
+
|
|
145
|
+
iframeRef: React.MutableRefObject<HTMLIFrameElement>;
|
|
146
|
+
|
|
147
|
+
connected: boolean;
|
|
148
|
+
pending: boolean;
|
|
149
|
+
|
|
150
|
+
hoveredItemId: ItemId | null;
|
|
151
|
+
setHoveredItemId: (itemId: ItemId | null) => void;
|
|
152
|
+
|
|
153
|
+
enableAutoFollow: boolean;
|
|
154
|
+
toggleAutoFollow: () => void;
|
|
155
|
+
|
|
156
|
+
updatePresenceIndicator: (
|
|
157
|
+
presenceIndicator: PresenceIndicator,
|
|
158
|
+
) => void;
|
|
159
|
+
|
|
160
|
+
sidebarPresenceIndicators: Array<PresenceIndicator>;
|
|
161
|
+
splitCurrentPane: () => void;
|
|
162
|
+
|
|
163
|
+
liveKitToken: string;
|
|
164
|
+
setLiveKitToken: (state: string) => void;
|
|
165
|
+
liveKitRoomName: string;
|
|
166
|
+
setLiveKitRoom: (state: string) => void;
|
|
167
|
+
liveKitConnection: boolean;
|
|
168
|
+
setLiveKitConnection: (state: boolean) => void;
|
|
169
|
+
voiceChatModalOpen: boolean;
|
|
170
|
+
setVoiceChatModalOpen: (state: boolean) => void;
|
|
171
|
+
aiChatMessage: string;
|
|
172
|
+
setAIChatMessage: (message: string) => void;
|
|
173
|
+
isLoading: boolean;
|
|
174
|
+
currentChatId: string;
|
|
175
|
+
selectedChatId: string | null;
|
|
176
|
+
setSelectedChatId: (chatId: string | null) => void;
|
|
177
|
+
aiErrorMessage: string | null;
|
|
178
|
+
setAIErrorMessage: (state: string | null) => void;
|
|
179
|
+
handleSendMessage: (
|
|
180
|
+
messageToSend?: string,
|
|
181
|
+
options?: Record<string, string>,
|
|
182
|
+
) => void;
|
|
183
|
+
|
|
184
|
+
// Message history navigation
|
|
185
|
+
navigateMessageHistoryUp: () => void;
|
|
186
|
+
navigateMessageHistoryDown: () => void;
|
|
187
|
+
resetMessageHistoryNavigation: () => void;
|
|
188
|
+
|
|
189
|
+
// Auto-fork functions for VizHub integration
|
|
190
|
+
autoForkAndRetryAI?: (
|
|
191
|
+
prompt: string,
|
|
192
|
+
modelName: string,
|
|
193
|
+
commitId?: string,
|
|
194
|
+
) => Promise<void>;
|
|
195
|
+
clearStoredAIPrompt?: () => void;
|
|
196
|
+
getStoredAIPrompt?: () => {
|
|
197
|
+
prompt: string;
|
|
198
|
+
modelName: string;
|
|
199
|
+
} | null;
|
|
200
|
+
|
|
201
|
+
// Additional widgets that can be rendered in AI chat messages
|
|
202
|
+
additionalWidgets?: React.ComponentType<{
|
|
203
|
+
messageId: string;
|
|
204
|
+
chatId: string;
|
|
205
|
+
handleSendMessage?: (
|
|
206
|
+
messageToSend?: string,
|
|
207
|
+
options?: Record<string, string>,
|
|
208
|
+
) => void;
|
|
209
|
+
}>;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export interface VZCodeProviderProps {
|
|
213
|
+
content: VizContent;
|
|
214
|
+
shareDBDoc: ShareDBDoc<VizContent>;
|
|
215
|
+
submitOperation: SubmitOperation;
|
|
216
|
+
localPresence: any;
|
|
217
|
+
docPresence: any;
|
|
218
|
+
prettierWorker: Worker;
|
|
219
|
+
initialUsername: Username;
|
|
220
|
+
children: React.ReactNode;
|
|
221
|
+
codeError?: string | null;
|
|
222
|
+
connected?: boolean;
|
|
223
|
+
pending?: boolean;
|
|
224
|
+
liveKitToken?: string | undefined;
|
|
225
|
+
setLiveKitToken?: (state: string) => void;
|
|
226
|
+
liveKitRoomName?: string | undefined;
|
|
227
|
+
setLiveKitRoom?: (state: string) => void;
|
|
228
|
+
liveKitConnection?: boolean;
|
|
229
|
+
setLiveKitConnection?: (state: boolean) => void;
|
|
230
|
+
aiChatEndpoint?: string;
|
|
231
|
+
aiChatOptions?: { [key: string]: any };
|
|
232
|
+
autoForkAndRetryAI?: (
|
|
233
|
+
prompt: string,
|
|
234
|
+
modelName: string,
|
|
235
|
+
commitId?: string,
|
|
236
|
+
) => Promise<void>;
|
|
237
|
+
clearStoredAIPrompt?: () => void;
|
|
238
|
+
getStoredAIPrompt?: () => {
|
|
239
|
+
prompt: string;
|
|
240
|
+
modelName: string;
|
|
241
|
+
} | null;
|
|
242
|
+
additionalWidgets?: React.ComponentType<{
|
|
243
|
+
messageId: string;
|
|
244
|
+
chatId: string;
|
|
245
|
+
}>;
|
|
246
|
+
iframeRef?: React.MutableRefObject<HTMLIFrameElement>;
|
|
247
|
+
handleChatError?: (error: string) => void;
|
|
248
|
+
}
|