Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,348 in github.com/danielmiessler/Fabric
⨍
Functions
1,348
◇
Types & classes
220
↓ 4 callers
Method
Load
(name string)
internal/plugins/db/api.go:11
↓ 4 callers
Method
LoadEnvFile
()
internal/plugins/db/fsdb/db.go:82
↓ 4 callers
Function
NewClient
NewClient creates a new LM Studio client with default configuration.
internal/plugins/ai/lmstudio/lmstudio.go:22
↓ 4 callers
Function
NewClient
()
internal/plugins/ai/dryrun/dryrun.go:21
↓ 4 callers
Function
NewExtensionRegistry
(configDir string)
internal/plugins/template/extension_registry.go:84
↓ 4 callers
Method
ParseResponse
ParseResponse parses Bedrock API response (Anthropic content blocks)
internal/plugins/ai/azureaigateway/backend_bedrock.go:111
↓ 4 callers
Method
Save
(name string, content []byte)
internal/plugins/db/fsdb/storage.go:90
↓ 4 callers
Method
SaveEnv
(content string)
internal/plugins/db/fsdb/db.go:95
↓ 4 callers
Function
ScanFiles
ScanFiles scans specific files and returns a JSON representation
cmd/code2context/code.go:135
↓ 4 callers
Method
Send
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions)
internal/plugins/ai/vendor.go:16
↓ 4 callers
Method
addImageGenerationTool
addImageGenerationTool adds the image generation tool to the request if needed
internal/plugins/ai/openai/openai_image.go:60
↓ 4 callers
Method
buildModelNameFull
buildModelNameFull adds the "models/" prefix for API calls
internal/plugins/ai/gemini/gemini.go:245
↓ 4 callers
Method
doRequest
doRequest performs an authenticated request to the Spotify API.
internal/tools/spotify/spotify.go:141
↓ 4 callers
Method
extractAccountID
(idToken string, accessToken string)
internal/plugins/ai/codex/auth_transport.go:117
↓ 4 callers
Method
extractAndValidateVideoId
extractAndValidateVideoId extracts a video ID from the given URL and validates that the URL points to a video rather than a playlist-only resource. It
internal/tools/youtube/youtube.go:124
↓ 4 callers
Function
filterConversationalModels
filterConversationalModels returns only models suitable for text generation/chat
internal/plugins/ai/vertexai/models.go:230
↓ 4 callers
Method
formatCommitMessage
(message string)
cmd/generate_changelog/internal/changelog/generator.go:597
↓ 4 callers
Method
getFromDB
retrieves a pattern from the database by name
internal/plugins/db/fsdb/patterns.go:121
↓ 4 callers
Function
getMaxTokens
getMaxTokens returns the max output tokens to use for a request
internal/plugins/ai/vertexai/vertexai.go:129
↓ 4 callers
Method
initService
()
internal/tools/youtube/youtube.go:89
↓ 4 callers
Method
loadImageBytes
(ctx context.Context, imageURL string)
internal/plugins/ai/ollama/ollama.go:242
↓ 4 callers
Function
marshalJSON
(t *testing.T, value any)
internal/plugins/ai/codex/codex_test.go:619
↓ 4 callers
Function
save_outputs
Save pattern outputs and starred outputs to files. Error handling: - Creates output directory if it doesn't exist - Handles file write pe
scripts/python_ui/streamlit.py:1037
↓ 4 callers
Function
sendNotification
sendNotification sends a desktop notification about command completion. When truncating the result for notification display, this function counts Uni
internal/cli/chat.go:154
↓ 4 callers
Function
setupTestPatternsEntity
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:12
↓ 4 callers
Function
supportsImageGeneration
supportsImageGeneration checks if the given model supports the image_generation tool
internal/plugins/ai/openai/openai_image.go:34
↓ 4 callers
Function
writeModelsCache
writeModelsCache persists a successfully fetched model list. Empty lists are not cached so a transient empty response does not stick for the whole TTL
internal/plugins/ai/openai/models_cache.go:78
↓ 3 callers
Function
BuildEndpoint
BuildEndpoint appends the /openai/ suffix to the given base URL.
internal/plugins/ai/azurecommon/azurecommon.go:46
↓ 3 callers
Method
Configure
()
internal/plugins/ai/perplexity/perplexity.go:39
↓ 3 callers
Method
ConfigureVendors
()
internal/core/plugin_registry.go:432
↓ 3 callers
Function
ExtractDeploymentFromBody
ExtractDeploymentFromBody reads the model field from the JSON request body and restores the body for subsequent use.
internal/plugins/ai/azurecommon/azurecommon.go:80
↓ 3 callers
Function
FetchFilesFromRepo
FetchFilesFromRepo clones a git repo and extracts files from a specific folder. It tries go-git first, and falls back to the git CLI if available.
internal/tools/githelper/githelper.go:35
↓ 3 callers
Method
FetchPlaylistVideos
FetchPlaylistVideos fetches all videos from a YouTube playlist.
internal/tools/youtube/youtube.go:618
↓ 3 callers
Method
FindGroupsByItem
(item I)
internal/util/groups_items.go:159
↓ 3 callers
Method
FindGroupsByItemFirst
(item I)
internal/util/groups_items.go:144
↓ 3 callers
Function
GetAbsolutePath
GetAbsolutePath resolves a given path to its absolute form, handling ~, ./, ../, UNC paths, and symlinks.
internal/util/utils.go:15
↓ 3 callers
Method
GetEpisodeMetadata
GetEpisodeMetadata retrieves metadata for a Spotify episode.
internal/tools/spotify/spotify.go:279
↓ 3 callers
Method
GetGroupAndItemByItemNumber
(number int)
internal/util/groups_items.go:74
↓ 3 callers
Method
GetNames
GetNames overrides StorageEntity.GetNames to include custom patterns directory
internal/plugins/db/fsdb/patterns.go:212
↓ 3 callers
Method
GetRaw
GetRaw returns a pattern from storage without applying variable processing.
internal/plugins/db/fsdb/patterns.go:54
↓ 3 callers
Method
GetSetupDescription
()
internal/plugins/plugin.go:17
↓ 3 callers
Method
GetShowMetadata
GetShowMetadata retrieves metadata for a Spotify show (podcast).
internal/tools/spotify/spotify.go:230
↓ 3 callers
Method
GetVendorMessages
()
internal/plugins/db/fsdb/sessions.go:62
↓ 3 callers
Method
GetVideoOrPlaylistId
(url string)
internal/tools/youtube/youtube.go:102
↓ 3 callers
Method
GrabMetadata
(videoId string)
internal/tools/youtube/youtube.go:804
↓ 3 callers
Method
GrabTranscript
GrabTranscript retrieves the transcript for the specified video ID using yt-dlp. The language parameter specifies the preferred subtitle language code
internal/tools/youtube/youtube.go:149
↓ 3 callers
Function
Init
Init Initialize flags. returns a Flags struct and an error
internal/cli/flags.go:117
↓ 3 callers
Method
IsAvailable
()
internal/tools/notifications/notifications.go:15
↓ 3 callers
Method
IsConfigured
IsConfigured returns true if a custom patterns directory has been set
internal/tools/custom_patterns/custom_patterns.go:62
↓ 3 callers
Method
IsValid
()
internal/plugins/plugin.go:158
↓ 3 callers
Method
ListModels
(context.Context)
internal/plugins/ai/azure/azure.go:70
↓ 3 callers
Function
LoadAllFiles
()
internal/plugins/strategy/strategy.go:62
↓ 3 callers
Method
NeedsRawMode
(modelName string)
internal/plugins/ai/ollama/ollama.go:277
↓ 3 callers
Function
NewExtensionExecutor
NewExtensionExecutor creates a new executor instance It requires a registry to verify extensions
internal/plugins/template/extension_executor.go:25
↓ 3 callers
Function
NewGroupsItemsSelector
(selectionLabel string, getItemLabel func(I) string)
internal/util/groups_items.go:12
↓ 3 callers
Function
NewSetupQuestion
(question string)
internal/plugins/plugin.go:292
↓ 3 callers
Function
NewYouTube
()
internal/tools/youtube/youtube.go:65
↓ 3 callers
Method
OnAnswerWithReset
(answer string, isReset bool)
internal/plugins/plugin.go:245
↓ 3 callers
Function
ParseDeployments
ParseDeployments splits a comma-separated deployment string into a slice, trimming whitespace and discarding empty entries.
internal/plugins/ai/azurecommon/azurecommon.go:34
↓ 3 callers
Method
ProcessExtension
ProcessExtension handles template processing for extension directives
internal/plugins/template/extension_manager.go:135
↓ 3 callers
Method
RemoveExtension
RemoveExtension handles the rmextension flag action
internal/plugins/template/extension_manager.go:126
↓ 3 callers
Method
Rename
(oldName, newName string)
internal/plugins/db/api.go:9
↓ 3 callers
Method
SaveCommit
(commit *git.Commit, version string)
cmd/generate_changelog/internal/cache/cache.go:133
↓ 3 callers
Method
SaveCommitPRMappings
SaveCommitPRMappings saves SHA→PR mappings for all commits in PRs
cmd/generate_changelog/internal/cache/cache.go:407
↓ 3 callers
Method
SaveVersion
(v *git.Version)
cmd/generate_changelog/internal/cache/cache.go:114
↓ 3 callers
Method
Send
Send sends a notification using the configured provider
internal/tools/notifications/notifications.go:46
↓ 3 callers
Method
SendStream
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions, chan domain.StreamUpdate)
internal/plugins/ai/vendor.go:15
↓ 3 callers
Method
SetEnableXSearch
SetEnableXSearch toggles whether an additional xAI "x_search" tool entry is appended when Search is enabled. Non-xAI providers should leave this false
internal/plugins/ai/openai/openai.go:96
↓ 3 callers
Method
SetLastProcessedTag
(tag string)
cmd/generate_changelog/internal/cache/cache.go:106
↓ 3 callers
Method
SetWebSearchToolName
SetWebSearchToolName overrides the default "web_search_preview" tool name emitted on the Responses API when Search is enabled. Pass an empty string to
internal/plugins/ai/openai/openai.go:89
↓ 3 callers
Function
StripThinkBlocks
(input, startTag, endTag string)
internal/domain/think.go:16
↓ 3 callers
Method
addAuthHeader
addAuthHeader adds the authorization header to a request.
internal/plugins/ai/copilot/copilot.go:416
↓ 3 callers
Method
buildCodexResponseParams
( msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/codex/codex.go:309
↓ 3 callers
Method
buildGeminiConfig
buildGeminiConfig creates the generation config for Gemini models following the gemini.go pattern for feature parity
internal/plugins/ai/vertexai/vertexai.go:296
↓ 3 callers
Method
buildPRWithCommits
buildPRWithCommits fetches commits and constructs a PR object from a GitHub API response
cmd/generate_changelog/internal/github/client.go:157
↓ 3 callers
Method
ensureIncomingDir
ensureIncomingDir creates the incoming directory if it doesn't exist
cmd/generate_changelog/internal/changelog/processing.go:417
↓ 3 callers
Method
errorFromHTTPResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:28
↓ 3 callers
Method
fetchSinglePR
(ctx context.Context, prNumber int)
cmd/generate_changelog/internal/github/client.go:231
↓ 3 callers
Function
getPreferredLocale
getPreferredLocale returns the best locale to use based on user preferences. Priority order: 1. Explicit language flag (if provided) 2. System environ
internal/i18n/locale.go:86
↓ 3 callers
Function
getStrategyDir
getStrategyDir returns the path to the strategies directory
internal/plugins/strategy/strategy.go:173
↓ 3 callers
Function
getString
(s *string)
cmd/generate_changelog/internal/github/client.go:240
↓ 3 callers
Method
insertVersionAtTop
insertVersionAtTop inserts a new version entry at the top of CHANGELOG.md
cmd/generate_changelog/internal/changelog/processing.go:484
↓ 3 callers
Function
isGeminiModel
isGeminiModel returns true if the model is a Gemini model
internal/plugins/ai/vertexai/models.go:190
↓ 3 callers
Function
isValidAWSRegion
isValidAWSRegion validates AWS region format
internal/plugins/ai/bedrock/bedrock.go:353
↓ 3 callers
Function
modelsCacheFile
modelsCacheFile derives a stable, collision-resistant cache path from the provider name and the full request URL. The URL is hashed so a provider that
internal/plugins/ai/openai/models_cache.go:43
↓ 3 callers
Function
recordFirstStreamError
recordFirstStreamError sends err to errChan if the channel is empty; subsequent errors are discarded.
internal/core/chatter.go:33
↓ 3 callers
Method
setupVendorTo
(vendor Vendor, configuredVendors map[string]Vendor)
internal/plugins/ai/vendors.go:149
↓ 3 callers
Method
toMessages
(msgs []*chat.ChatCompletionMessage)
internal/plugins/ai/anthropic/anthropic.go:346
↓ 3 callers
Function
withTestExtension
withTestExtension creates a temporary test extension and runs the test function
internal/plugins/template/template_sentinel_test.go:12
↓ 3 callers
Function
writeAgedCache
writeAgedCache writes a cache entry with an explicit age so freshness and stale-fallback paths can be exercised deterministically.
internal/plugins/ai/openai/models_cache_test.go:37
↓ 2 callers
Method
AddFile
AddFile adds a file to the git index Uses native git CLI instead of go-git to properly handle worktree scenarios
cmd/generate_changelog/internal/git/walker.go:473
↓ 2 callers
Method
AddSetupQuestion
(name string, required bool)
internal/plugins/plugin.go:62
↓ 2 callers
Method
Append
(messages ...*chat.ChatCompletionMessage)
internal/plugins/db/fsdb/sessions.go:51
↓ 2 callers
Method
Apply
Apply executes system operations with the following options: - hostname: System hostname - user: Current username - os: Operating system (linux, darwi
internal/plugins/template/sys.go:27
↓ 2 callers
Function
ApplyFileChanges
ApplyFileChanges applies the parsed file changes to the file system
internal/domain/file_manager.go:171
↓ 2 callers
Method
BuildEndpoint
BuildEndpoint constructs the Bedrock API endpoint URL
internal/plugins/ai/azureaigateway/backend_bedrock.go:51
↓ 2 callers
Function
BuildEnvVariable
(name string)
internal/plugins/plugin.go:344
↓ 2 callers
Method
BuildFilePath
(fileName string)
internal/plugins/db/fsdb/storage.go:128
↓ 2 callers
Method
BuildSession
(request *domain.ChatRequest, raw bool)
internal/core/chatter.go:218
↓ 2 callers
Function
Cli
Cli Controls the cli. It takes in the flags and runs the appropriate functions
internal/cli/cli.go:17
← previous
next →
101–200 of 1,348, ranked by callers