MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,348 in github.com/danielmiessler/Fabric

↓ 4 callersMethodLoad
(name string)
internal/plugins/db/api.go:11
↓ 4 callersMethodLoadEnvFile
()
internal/plugins/db/fsdb/db.go:82
↓ 4 callersFunctionNewClient
NewClient creates a new LM Studio client with default configuration.
internal/plugins/ai/lmstudio/lmstudio.go:22
↓ 4 callersFunctionNewClient
()
internal/plugins/ai/dryrun/dryrun.go:21
↓ 4 callersFunctionNewExtensionRegistry
(configDir string)
internal/plugins/template/extension_registry.go:84
↓ 4 callersMethodParseResponse
ParseResponse parses Bedrock API response (Anthropic content blocks)
internal/plugins/ai/azureaigateway/backend_bedrock.go:111
↓ 4 callersMethodSave
(name string, content []byte)
internal/plugins/db/fsdb/storage.go:90
↓ 4 callersMethodSaveEnv
(content string)
internal/plugins/db/fsdb/db.go:95
↓ 4 callersFunctionScanFiles
ScanFiles scans specific files and returns a JSON representation
cmd/code2context/code.go:135
↓ 4 callersMethodSend
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions)
internal/plugins/ai/vendor.go:16
↓ 4 callersMethodaddImageGenerationTool
addImageGenerationTool adds the image generation tool to the request if needed
internal/plugins/ai/openai/openai_image.go:60
↓ 4 callersMethodbuildModelNameFull
buildModelNameFull adds the "models/" prefix for API calls
internal/plugins/ai/gemini/gemini.go:245
↓ 4 callersMethoddoRequest
doRequest performs an authenticated request to the Spotify API.
internal/tools/spotify/spotify.go:141
↓ 4 callersMethodextractAccountID
(idToken string, accessToken string)
internal/plugins/ai/codex/auth_transport.go:117
↓ 4 callersMethodextractAndValidateVideoId
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 callersFunctionfilterConversationalModels
filterConversationalModels returns only models suitable for text generation/chat
internal/plugins/ai/vertexai/models.go:230
↓ 4 callersMethodformatCommitMessage
(message string)
cmd/generate_changelog/internal/changelog/generator.go:597
↓ 4 callersMethodgetFromDB
retrieves a pattern from the database by name
internal/plugins/db/fsdb/patterns.go:121
↓ 4 callersFunctiongetMaxTokens
getMaxTokens returns the max output tokens to use for a request
internal/plugins/ai/vertexai/vertexai.go:129
↓ 4 callersMethodinitService
()
internal/tools/youtube/youtube.go:89
↓ 4 callersMethodloadImageBytes
(ctx context.Context, imageURL string)
internal/plugins/ai/ollama/ollama.go:242
↓ 4 callersFunctionmarshalJSON
(t *testing.T, value any)
internal/plugins/ai/codex/codex_test.go:619
↓ 4 callersFunctionsave_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 callersFunctionsendNotification
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 callersFunctionsetupTestPatternsEntity
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:12
↓ 4 callersFunctionsupportsImageGeneration
supportsImageGeneration checks if the given model supports the image_generation tool
internal/plugins/ai/openai/openai_image.go:34
↓ 4 callersFunctionwriteModelsCache
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 callersFunctionBuildEndpoint
BuildEndpoint appends the /openai/ suffix to the given base URL.
internal/plugins/ai/azurecommon/azurecommon.go:46
↓ 3 callersMethodConfigure
()
internal/plugins/ai/perplexity/perplexity.go:39
↓ 3 callersMethodConfigureVendors
()
internal/core/plugin_registry.go:432
↓ 3 callersFunctionExtractDeploymentFromBody
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 callersFunctionFetchFilesFromRepo
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 callersMethodFetchPlaylistVideos
FetchPlaylistVideos fetches all videos from a YouTube playlist.
internal/tools/youtube/youtube.go:618
↓ 3 callersMethodFindGroupsByItem
(item I)
internal/util/groups_items.go:159
↓ 3 callersMethodFindGroupsByItemFirst
(item I)
internal/util/groups_items.go:144
↓ 3 callersFunctionGetAbsolutePath
GetAbsolutePath resolves a given path to its absolute form, handling ~, ./, ../, UNC paths, and symlinks.
internal/util/utils.go:15
↓ 3 callersMethodGetEpisodeMetadata
GetEpisodeMetadata retrieves metadata for a Spotify episode.
internal/tools/spotify/spotify.go:279
↓ 3 callersMethodGetGroupAndItemByItemNumber
(number int)
internal/util/groups_items.go:74
↓ 3 callersMethodGetNames
GetNames overrides StorageEntity.GetNames to include custom patterns directory
internal/plugins/db/fsdb/patterns.go:212
↓ 3 callersMethodGetRaw
GetRaw returns a pattern from storage without applying variable processing.
internal/plugins/db/fsdb/patterns.go:54
↓ 3 callersMethodGetSetupDescription
()
internal/plugins/plugin.go:17
↓ 3 callersMethodGetShowMetadata
GetShowMetadata retrieves metadata for a Spotify show (podcast).
internal/tools/spotify/spotify.go:230
↓ 3 callersMethodGetVendorMessages
()
internal/plugins/db/fsdb/sessions.go:62
↓ 3 callersMethodGetVideoOrPlaylistId
(url string)
internal/tools/youtube/youtube.go:102
↓ 3 callersMethodGrabMetadata
(videoId string)
internal/tools/youtube/youtube.go:804
↓ 3 callersMethodGrabTranscript
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 callersFunctionInit
Init Initialize flags. returns a Flags struct and an error
internal/cli/flags.go:117
↓ 3 callersMethodIsAvailable
()
internal/tools/notifications/notifications.go:15
↓ 3 callersMethodIsConfigured
IsConfigured returns true if a custom patterns directory has been set
internal/tools/custom_patterns/custom_patterns.go:62
↓ 3 callersMethodIsValid
()
internal/plugins/plugin.go:158
↓ 3 callersMethodListModels
(context.Context)
internal/plugins/ai/azure/azure.go:70
↓ 3 callersFunctionLoadAllFiles
()
internal/plugins/strategy/strategy.go:62
↓ 3 callersMethodNeedsRawMode
(modelName string)
internal/plugins/ai/ollama/ollama.go:277
↓ 3 callersFunctionNewExtensionExecutor
NewExtensionExecutor creates a new executor instance It requires a registry to verify extensions
internal/plugins/template/extension_executor.go:25
↓ 3 callersFunctionNewGroupsItemsSelector
(selectionLabel string, getItemLabel func(I) string)
internal/util/groups_items.go:12
↓ 3 callersFunctionNewSetupQuestion
(question string)
internal/plugins/plugin.go:292
↓ 3 callersFunctionNewYouTube
()
internal/tools/youtube/youtube.go:65
↓ 3 callersMethodOnAnswerWithReset
(answer string, isReset bool)
internal/plugins/plugin.go:245
↓ 3 callersFunctionParseDeployments
ParseDeployments splits a comma-separated deployment string into a slice, trimming whitespace and discarding empty entries.
internal/plugins/ai/azurecommon/azurecommon.go:34
↓ 3 callersMethodProcessExtension
ProcessExtension handles template processing for extension directives
internal/plugins/template/extension_manager.go:135
↓ 3 callersMethodRemoveExtension
RemoveExtension handles the rmextension flag action
internal/plugins/template/extension_manager.go:126
↓ 3 callersMethodRename
(oldName, newName string)
internal/plugins/db/api.go:9
↓ 3 callersMethodSaveCommit
(commit *git.Commit, version string)
cmd/generate_changelog/internal/cache/cache.go:133
↓ 3 callersMethodSaveCommitPRMappings
SaveCommitPRMappings saves SHA→PR mappings for all commits in PRs
cmd/generate_changelog/internal/cache/cache.go:407
↓ 3 callersMethodSaveVersion
(v *git.Version)
cmd/generate_changelog/internal/cache/cache.go:114
↓ 3 callersMethodSend
Send sends a notification using the configured provider
internal/tools/notifications/notifications.go:46
↓ 3 callersMethodSendStream
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions, chan domain.StreamUpdate)
internal/plugins/ai/vendor.go:15
↓ 3 callersMethodSetEnableXSearch
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 callersMethodSetLastProcessedTag
(tag string)
cmd/generate_changelog/internal/cache/cache.go:106
↓ 3 callersMethodSetWebSearchToolName
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 callersFunctionStripThinkBlocks
(input, startTag, endTag string)
internal/domain/think.go:16
↓ 3 callersMethodaddAuthHeader
addAuthHeader adds the authorization header to a request.
internal/plugins/ai/copilot/copilot.go:416
↓ 3 callersMethodbuildCodexResponseParams
( msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/codex/codex.go:309
↓ 3 callersMethodbuildGeminiConfig
buildGeminiConfig creates the generation config for Gemini models following the gemini.go pattern for feature parity
internal/plugins/ai/vertexai/vertexai.go:296
↓ 3 callersMethodbuildPRWithCommits
buildPRWithCommits fetches commits and constructs a PR object from a GitHub API response
cmd/generate_changelog/internal/github/client.go:157
↓ 3 callersMethodensureIncomingDir
ensureIncomingDir creates the incoming directory if it doesn't exist
cmd/generate_changelog/internal/changelog/processing.go:417
↓ 3 callersMethoderrorFromHTTPResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:28
↓ 3 callersMethodfetchSinglePR
(ctx context.Context, prNumber int)
cmd/generate_changelog/internal/github/client.go:231
↓ 3 callersFunctiongetPreferredLocale
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 callersFunctiongetStrategyDir
getStrategyDir returns the path to the strategies directory
internal/plugins/strategy/strategy.go:173
↓ 3 callersFunctiongetString
(s *string)
cmd/generate_changelog/internal/github/client.go:240
↓ 3 callersMethodinsertVersionAtTop
insertVersionAtTop inserts a new version entry at the top of CHANGELOG.md
cmd/generate_changelog/internal/changelog/processing.go:484
↓ 3 callersFunctionisGeminiModel
isGeminiModel returns true if the model is a Gemini model
internal/plugins/ai/vertexai/models.go:190
↓ 3 callersFunctionisValidAWSRegion
isValidAWSRegion validates AWS region format
internal/plugins/ai/bedrock/bedrock.go:353
↓ 3 callersFunctionmodelsCacheFile
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 callersFunctionrecordFirstStreamError
recordFirstStreamError sends err to errChan if the channel is empty; subsequent errors are discarded.
internal/core/chatter.go:33
↓ 3 callersMethodsetupVendorTo
(vendor Vendor, configuredVendors map[string]Vendor)
internal/plugins/ai/vendors.go:149
↓ 3 callersMethodtoMessages
(msgs []*chat.ChatCompletionMessage)
internal/plugins/ai/anthropic/anthropic.go:346
↓ 3 callersFunctionwithTestExtension
withTestExtension creates a temporary test extension and runs the test function
internal/plugins/template/template_sentinel_test.go:12
↓ 3 callersFunctionwriteAgedCache
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 callersMethodAddFile
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 callersMethodAddSetupQuestion
(name string, required bool)
internal/plugins/plugin.go:62
↓ 2 callersMethodAppend
(messages ...*chat.ChatCompletionMessage)
internal/plugins/db/fsdb/sessions.go:51
↓ 2 callersMethodApply
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 callersFunctionApplyFileChanges
ApplyFileChanges applies the parsed file changes to the file system
internal/domain/file_manager.go:171
↓ 2 callersMethodBuildEndpoint
BuildEndpoint constructs the Bedrock API endpoint URL
internal/plugins/ai/azureaigateway/backend_bedrock.go:51
↓ 2 callersFunctionBuildEnvVariable
(name string)
internal/plugins/plugin.go:344
↓ 2 callersMethodBuildFilePath
(fileName string)
internal/plugins/db/fsdb/storage.go:128
↓ 2 callersMethodBuildSession
(request *domain.ChatRequest, raw bool)
internal/core/chatter.go:218
↓ 2 callersFunctionCli
Cli Controls the cli. It takes in the flags and runs the appropriate functions
internal/cli/cli.go:17
← previousnext →101–200 of 1,348, ranked by callers