Module: services
Table of contents
Interfaces
- IActivityBarService
- IAudioTranscriptionBrainCapability
- IAuxiliaryBarService
- IBrainCapability
- IBrainClient
- IBrainClientManager
- IChatAssistant
- IChatAssistantController
- IChatAssistantsManagement
- IChatSessionService
- IColorThemeService
- IEditorService
- IEditorTreeService
- IExplorerService
- IExtensionService
- IFolderTreeService
- IGlobalShortcutService
- IImageGenerationBrainCapability
- ILayoutService
- IMenuBarService
- INotificationService
- IPackageSettingsService
- IPanelService
- IProblemsService
- ISearchService
- ISettingsService
- ISidebarService
- IStatusBarService
- ITextBrainCapability
- IToastService
- ToastContentProps
- ToastOptions
- ToastPromiseParams
- ToastProps
- UpdateOptions
Type Aliases
- AudioPrompt
- BrainPrompt
- BrainPromptAttachment
- BrainResponse
- BrainResponseAttachment
- BuiltInSettingsTabType
- ChatAssistantContext
- DraggableDirection
- IGlobalShortcut
- IGlobalShortcutRegistrationOptions
- IShortcutSubscription
- IUserShortcut
- IUserShortcutService
- ImageGenerationBrainPrompt
- LocalBrain
- PromptOptions
- PromptRole
- SendChatMessageOptions
- ToastContent
- ToastIcon
- ToastPosition
- TypeOptions
Type Aliases
AudioPrompt
Ƭ AudioPrompt: Object
Represents an audio prompt for transcription.
Type declaration
Name | Type | Description |
---|---|---|
audioFilePath | string | File path to the audio file. |
language | string | Language of the audio content. |
Defined in
src/services/brainClientService.ts:144
BrainPrompt
Ƭ BrainPrompt: Object
Represents a prompt in a conversation with a brain.
Type declaration
Name | Type | Description |
---|---|---|
attachments? | BrainPromptAttachment [] | Optional array of attachments. |
role | PromptRole | Role of the prompt (user, brain, or system). |
sentAt | Date | Date and time when the prompt was sent. |
value | string | Content of the prompt. |
Defined in
src/services/brainClientService.ts:66
BrainPromptAttachment
Ƭ BrainPromptAttachment: Object
Represents an attachment in a brain prompt.
Type declaration
Name | Type | Description |
---|---|---|
mimeType | string | MIME type of the attachment. |
originalFileName? | string | Optional original file name of the attachment. |
path | string | File path of the attachment. |
size | number | Size of the attachment in bytes. |
Defined in
src/services/brainClientService.ts:49
BrainResponse
Ƭ BrainResponse: Object
Represents a response from a brain.
Type declaration
Name | Type | Description |
---|---|---|
attachments? | BrainResponseAttachment [] | Optional array of attachments. |
errors | string [] | Array of error messages, if any. |
result | string | Result of the brain's processing. |
Defined in
src/services/brainClientService.ts:114
BrainResponseAttachment
Ƭ BrainResponseAttachment: Object
Represents an attachment in a brain response.
Type declaration
Name | Type | Description |
---|---|---|
caption? | string | Optional caption for the attachment. |
data | Buffer | string | Data of the attachment (Buffer or string). |
fileName? | string | Optional file name for the attachment. |
fileType | string | File type of the attachment. |
mimeType | string | MIME type of the attachment. |
Defined in
src/services/brainClientService.ts:94
BuiltInSettingsTabType
Ƭ BuiltInSettingsTabType: ReturnType
\<() => IEditorTab
\<{ language
: string
; value
: string
}>>
Defined in
src/services/settingsService.ts:4
ChatAssistantContext
Ƭ ChatAssistantContext: Object
Type declaration
Name | Type | Description |
---|---|---|
appendToAuxiliaryBar | (component : React.ReactNode ) => void | Appends a component to the auxiliary bar. |
chat | ChatInfo | Information about the current chat. |
getSettings | () => any | undefined | Retrieves the current chat settings. |
session | IChatSessionService | Session service for the chat. |
setSettings | (settings : any ) => void | Function to set chat settings. |
Defined in
DraggableDirection
Ƭ DraggableDirection: "x"
| "y"
Defined in
src/services/toastService.ts:15
IGlobalShortcut
Ƭ IGlobalShortcut: Object
Represents a global keyboard shortcut.
Type declaration
Name | Type | Description |
---|---|---|
accelerator | string | The keyboard accelerator for the global shortcut, e.g., "Ctrl+Shift+N". See https://www.electronjs.org/docs/latest/api/accelerator for more information. |
enabled | boolean | Indicates whether the global shortcut is enabled. |
Defined in
src/services/globalShortcutService.ts:4
IGlobalShortcutRegistrationOptions
Ƭ IGlobalShortcutRegistrationOptions: Object
Options for registering a global shortcut.
Type declaration
Name | Type | Description |
---|---|---|
id? | string | Optional identifier for the global shortcut registration. |
Defined in
src/services/globalShortcutService.ts:18
IShortcutSubscription
Ƭ IShortcutSubscription: Object
Represents a subscription to a shortcut event, allowing for unsubscribing.
Type declaration
Name | Type |
---|---|
unsubscribe | () => void |
Defined in
src/services/userShortcutService.ts:22
IUserShortcut
Ƭ IUserShortcut: Object
Represents a user-defined shortcut.
Type declaration
Name | Type | Description |
---|---|---|
accelerator | string | Keyboard accelerator for the shortcut, e.g., "Ctrl+Shift+N". See https://www.electronjs.org/docs/latest/api/accelerator for more information. |
id | string | Unique identifier for the shortcut. |
name | string | Name of the shortcut. |
Defined in
src/services/userShortcutService.ts:4
IUserShortcutService
Ƭ IUserShortcutService: Object
Interface for managing user shortcuts.
Type declaration
Name | Type |
---|---|
getOrCreate | (shortcut : string | IUserShortcut , defaultShortcut : IUserShortcut ) => Promise \<IUserShortcut > |
getShortcuts | () => IUserShortcut [] |
isRegistered | (acceleratorOrShortcut : string | IUserShortcut ) => boolean |
onShortcutAdded | (callback : (shortcut : IUserShortcut ) => void ) => IShortcutSubscription |
onShortcutPressed | (shortcut : string | IUserShortcut , callback : () => void ) => IShortcutSubscription |
onShortcutRemoved | (callback : (shortcut : IUserShortcut ) => void ) => IShortcutSubscription |
onShortcutUpdated | (callback : (shortcut : IUserShortcut ) => void ) => IShortcutSubscription |
register | (shortcut : IUserShortcut ) => Promise \<boolean > |
unregister | (id : string ) => Promise \<boolean > |
update | (shortcut : IUserShortcut ) => Promise \<boolean > |
get | (shortcutId : string ) => undefined | IUserShortcut |
Defined in
src/services/userShortcutService.ts:30
ImageGenerationBrainPrompt
Ƭ ImageGenerationBrainPrompt: BrainPrompt
& { expectedResponseType
: "base64"
| "url"
| "binary"
}
Represents a brain prompt for image generation with expected response type.
Defined in
src/services/brainClientService.ts:171
LocalBrain
Ƭ LocalBrain: Object
Represents a local brain with various properties and capabilities.
Type declaration
Name | Type | Description |
---|---|---|
capabilities | string [] | List of capabilities (as strings) supported by the local brain. |
description? | string | Optional description of the local brain. |
disabled? | boolean | Optional flag indicating if the local brain is disabled. |
displayName | string | Display name of the local brain. |
icon? | string | Optional icon representing the local brain. |
iconUrl? | string | Optional URL for the icon of the local brain. |
id | string | Unique identifier for the local brain. |
name | string | Internal name of the local brain. |
publisher? | string | Publisher id. |
version | string | Version of the local brain. |
Defined in
src/services/brainClientService.ts:9
PromptOptions
Ƭ PromptOptions: Object
Represents options for a brain prompt.
Index signature
▪ [key: string
]: any
Dictionary of prompt options.
Type declaration
Name | Type | Description |
---|---|---|
settings? | any | Optional settings for the prompt. |
Defined in
src/services/brainClientService.ts:83
PromptRole
Ƭ PromptRole: "user"
| "brain"
| "system"
Represents the role of a prompt in a conversation with a brain.
Defined in
src/services/brainClientService.ts:44
SendChatMessageOptions
Ƭ SendChatMessageOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
attachments? | File [] | File attachments for the message. |
audio? | Blob | Audio content for the message. |
hidden? | boolean | Indicates if the message is hidden. |
isSystemMessage? | boolean | True if the message is a system message. |
text? | string | Text of the message to be sent. |
Defined in
ToastContent
Ƭ ToastContent\<T
>: React.ReactNode
| (props
: ToastContentProps
\<T
>) => React.ReactNode
Type parameters
Name | Type |
---|---|
T | unknown |
Defined in
src/services/toastService.ts:23
ToastIcon
Ƭ ToastIcon: boolean
| string
| number
| React.ReactNode
Defined in
src/services/toastService.ts:13
ToastPosition
Ƭ ToastPosition: "top-right"
| "top-center"
| "top-left"
| "bottom-right"
| "bottom-center"
| "bottom-left"
Defined in
src/services/toastService.ts:5
TypeOptions
Ƭ TypeOptions: "info"
| "success"
| "warning"
| "error"
| "default"