code_crafter library

Classes

AiCompletion
A class that provides AI completion functionality. Click here for documentation: AICompletion
Claude
Claude AI model implementation.
CodeCrafter
CodeCrafterController
CustomIcons
CustomModel
Custom AI model implementation that allows for custom API endpoints and request/response handling.
DeepSeek
DeepSeek AI model implementation.
EditorField
This class is used to define the properties of the CodeCrafter field. It includes the same properties as the TextField widget,. If provided it will be passed to the underlying TextField of the CodeCrafter widget.
FireWorks
FireWorks AI model implementation.
FoldRange
This class is used to represent a range of lines that can be folded in the editor. It is used internally by the CodeCrafter widget to manage folding ranges.
Gemini
Goole Gemini AI model implementation.
Gorq
Groq AI model implementation.
Grok
Grok aka xAI AI model implementation.
Gutter
A widget that displays a gutter with line numbers, breakpoints, and folding icons. Managed internally by the CodeCrafterController.
GutterItem
GutterStyle
This class provides styling options for the Gutter.
HoverDetailsStyle
LineState
This class is used to represent the state of a line in the editor. It is used internally by the CodeCrafter widget to manage line states such as breakpoints and folding ranges.
LspCompletion
Represents a completion item in the LSP (Language Server Protocol). This class is used internally by the CodeCrafter widget to display completion suggestions.
LspConfig
LspErrors
Represents an error in the LSP (Language Server Protocol). This class is used internally by the CodeCrafter widget to display errors in the editor.
LspSocketConfig
A configuration class for Language Server Protocol (LSP) using WebSocket communication.
LspStdioConfig
This class provides a configuration for Language Server Protocol (LSP) using standard input/output communication. Little bit complex compared to LspSocketConfig.
Models
OpenAI
OpenAI AI model implementation.
OpenAiCompatible
OpenRouter
OpenRouter AI model implementation.
OverlayStyle
Shared
This class is a singleton that holds shared state and configurations for the application. It is used internally by the CodeCrafter widget and other components to maintain a consistent state across the application. It includes properties for AI responses, gutter width, theme styles, text styles, tab size, diagnostics, and more.
Sonar
Sonar AI model implementation.
SuggestionStyle
TogetherAi
Together AI model implementation.

Enums

CompletionItemType
CompletionType
Enum that defines the type of AI completion behavior.

Properties

completionItemIcons Map<CompletionItemType, Icon>
getter/setter pair