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 ¶
var DefaultCategoriesTemplate []byte
var DefaultConfigTemplate []byte
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 {
ImportXBookmarks bool
ImportGitHubStars bool
ImportYouTubeWatchLater bool
ImportYouTubeLiked bool
ImportFeeds bool
EnableAppleNotes bool
EnableSafariTabs bool
SafariTabsDevice string
SyncBrowser string
SyncProfile string
EnableScheduler bool
EnableTailscale bool
TSNetHostname string
EnableGitHubLogin bool
AuthBaseURL string
GitHubClientID string
UseKeychain bool
SummaryModel string
CategorizeModel string
OCRModel string
SkipXPhotoOCR bool
SkipCategorize bool
GitHubTokenConfigured bool
Secrets map[SecretKind]string
}
func SeedSelectionsFromConfig ¶ added in v0.4.3
func SeedSelectionsFromConfig(selections Selections, data []byte) (Selections, error)
SeedSelectionsFromConfig restores the effective import and browser selections represented by an existing config before a reinstall applies explicit flags or presents the interactive checklist. Configs without sync_all.imports retain the legacy sync all defaults.
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" )