Documentation
¶
Index ¶
- Variables
- type Change
- type ChangeKind
- type CommandRunner
- type DetectionOptions
- type FileSystem
- type KeychainSecretStore
- type OSCommandRunner
- type OSFS
- type OSProber
- type OllamaModelSetup
- type Options
- type Prober
- type Result
- type Runtime
- type SecretKind
- type SecretStore
- type Selections
- type Tool
- type ToolID
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCategoriesTemplate []byte
View Source
var DefaultConfigTemplate []byte
View Source
var DefaultDbrainModelfile []byte
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct {
Kind ChangeKind
Path string
Message string
}
type ChangeKind ¶
type ChangeKind string
const ( ChangeCreated ChangeKind = "created" ChangeUpdated ChangeKind = "updated" ChangeSkipped ChangeKind = "skipped" ChangePrepared ChangeKind = "prepared" )
type CommandRunner ¶ added in v0.4.1
type DetectionOptions ¶
type FileSystem ¶
type KeychainSecretStore ¶
type KeychainSecretStore struct{}
func (KeychainSecretStore) SecretExists ¶ added in v0.4.2
type OSCommandRunner ¶ added in v0.4.1
type OSCommandRunner struct{}
func (OSCommandRunner) CombinedOutput ¶ added in v0.4.1
type OSProber ¶
func (OSProber) PathExists ¶
type OllamaModelSetup ¶ added in v0.4.1
type Options ¶
type Options struct {
Config config.Config
ConfigTemplate []byte
CategoriesTemplate []byte
Runtime Runtime
Selections Selections
OllamaModels []OllamaModelSetup
Tools []Tool
FS FileSystem
CommandRunner CommandRunner
SecretStore SecretStore
Force bool
DryRun bool
}
type Result ¶
type SecretKind ¶
type SecretKind string
const ( SecretGitHubToken SecretKind = "github_token" SecretOpenRouterAPIKey SecretKind = "openrouter_api_key" SecretTSNetAuthKey SecretKind = "tsnet_auth_key" SecretAuthSessionKey SecretKind = "auth_session_key" SecretGitHubClientSecret SecretKind = "github_client_secret" )
type SecretStore ¶
type Selections ¶
type Selections struct {
EnableAppleNotes bool
EnableSafariTabs bool
EnableScheduler bool
EnableTailscale bool
TSNetHostname string
EnableGitHubLogin bool
AuthBaseURL string
GitHubClientID string
UseKeychain bool
SummaryModel string
CategorizeModel string
OCRModel string
SkipXPhotoOCR bool
SkipCategorize bool
Secrets map[SecretKind]string
}
type Tool ¶
type Tool struct {
ID ToolID
Name string
Available bool
Path string
Endpoint string
Models []string
Detail string
Error string
}
func DetectTools ¶
func DetectTools(ctx context.Context, opts DetectionOptions) []Tool
type ToolID ¶
type ToolID string
const ( ToolMacWhisper ToolID = "macwhisper_cli" ToolMacWhisperApp ToolID = "macwhisper_app" ToolOllama ToolID = "ollama_cli" ToolOllamaAPI ToolID = "ollama_api" ToolLMStudio ToolID = "lmstudio_cli" ToolLMStudioAPI ToolID = "lmstudio_api" ToolOMLX ToolID = "omlx_cli" ToolOMLXAPI ToolID = "omlx_api" ToolTesseract ToolID = "tesseract" ToolFFprobe ToolID = "ffprobe" ToolYTDLP ToolID = "yt_dlp" ToolOnePassword ToolID = "onepassword" ToolSecurity ToolID = "security" )
Click to show internal directories.
Click to hide internal directories.