MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

↓ 4 callersFunctionsetHSTS
setHSTS sets the Strict-Transport-Security header. Each validation 400 sends it, the same as the chat BindJSON 400 path.
internal/server/storage.go:22
↓ 4 callersFunctionsupportsImageGeneration
(model string)
internal/plugins/ai/openai/openai_image.go:30
↓ 4 callersFunctionwriteFileAtomic
writeFileAtomic writes content to a temporary file in the same directory and then renames it to path. A reader thus never sees a partial file. The fil
internal/plugins/db/fsdb/db.go:180
↓ 4 callersFunctionwriteModelsCache
writeModelsCache skips an empty list, so a transient empty response does not stay cached for the full TTL.
internal/plugins/ai/openai/models_cache.go:72
↓ 3 callersFunctionAPIKeyMiddleware
APIKeyMiddleware validates API key for protected endpoints. Swagger documentation endpoints (/swagger/*) are exempt from authentication to allow users
internal/server/auth.go:121
↓ 3 callersFunctionBuildEnvVariable
(name string)
internal/plugins/plugin.go:364
↓ 3 callersMethodDisplayValue
DisplayValue returns the value as it may be shown to the user.
internal/plugins/plugin.go:174
↓ 3 callersMethodExists
(name string)
internal/plugins/db/fsdb/storage.go:116
↓ 3 callersFunctionExtractText
ExtractText extracts just the text parts from a Gemini response. Thought summaries (parts with Thought set, returned when --thinking asks for them) ar
internal/plugins/ai/geminicommon/geminicommon.go:60
↓ 3 callersMethodFetchPlaylistVideos
FetchPlaylistVideos fetches all videos from a YouTube playlist.
internal/tools/youtube/youtube.go:623
↓ 3 callersMethodFilterByVendor
FilterByVendor returns a new VendorsModels containing only the specified vendor's models. Vendor matching is case-insensitive (e.g., "OpenAI", "openai
internal/plugins/ai/models.go:23
↓ 3 callersMethodFindGroupsByItem
(item I)
internal/util/groups_items.go:153
↓ 3 callersMethodFindGroupsByItemFirst
(item I)
internal/util/groups_items.go:138
↓ 3 callersMethodGet
(name string)
internal/plugins/db/fsdb/sessions.go:73
↓ 3 callersMethodGetEpisodeMetadata
GetEpisodeMetadata retrieves metadata for a Spotify episode.
internal/tools/spotify/spotify.go:271
↓ 3 callersMethodGetExtension
(name string)
internal/plugins/template/extension_registry.go:184
↓ 3 callersMethodGetGroupAndItemByItemNumber
(number int)
internal/util/groups_items.go:71
↓ 3 callersMethodGetNames
GetNames overrides StorageEntity.GetNames to include custom patterns directory
internal/plugins/db/fsdb/patterns.go:222
↓ 3 callersFunctionGetProviderByName
GetProviderByName returns the provider configuration for a given name with O(1) lookup
internal/plugins/ai/openai_compatible/providers_config.go:523
↓ 3 callersMethodGetSetupDescription
()
internal/plugins/plugin.go:21
↓ 3 callersMethodGetShowMetadata
GetShowMetadata retrieves metadata for a Spotify show (podcast).
internal/tools/spotify/spotify.go:222
↓ 3 callersMethodGetVideoOrPlaylistId
(url string)
internal/tools/youtube/youtube.go:108
↓ 3 callersMethodGrabMetadata
(videoId string)
internal/tools/youtube/youtube.go:803
↓ 3 callersMethodGrabTranscript
GrabTranscript retrieves the transcript for the specified video ID using yt-dlp and the arguments in the YtDlpArgs field. The language parameter speci
internal/tools/youtube/youtube.go:153
↓ 3 callersMethodIsAvailable
()
internal/tools/notifications/notifications.go:15
↓ 3 callersMethodIsChatRequest
()
internal/cli/flags.go:522
↓ 3 callersMethodIsConfigured
IsConfigured returns true if a custom patterns directory has been set
internal/tools/custom_patterns/custom_patterns.go:59
↓ 3 callersMethodIsEnvFileExists
()
internal/plugins/db/fsdb/db.go:100
↓ 3 callersFunctionIsLoopbackHost
IsLoopbackHost tells if host is "localhost", a subdomain of "localhost" or a loopback IP address. The host has no port and no IPv6 brackets.
internal/util/httpclient.go:116
↓ 3 callersMethodIsValid
()
internal/plugins/plugin.go:181
↓ 3 callersMethodNeedsRawMode
(modelName string)
internal/plugins/ai/ollama/ollama.go:385
↓ 3 callersFunctionNewClient
NewClient creates a new OpenAI-compatible client for the specified provider
internal/plugins/ai/openai_compatible/providers_config.go:56
↓ 3 callersFunctionNewConfigHandler
(r *gin.Engine, db *fsdb.Db)
internal/server/configuration.go:20
↓ 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 callersFunctionNewPatternsLoader
(patterns *fsdb.PatternsEntity)
internal/tools/patterns_loader.go:22
↓ 3 callersFunctionNewPluginRegistry
(db *fsdb.Db)
internal/core/plugin_registry.go:58
↓ 3 callersFunctionNewSetupQuestion
(question string)
internal/plugins/plugin.go:312
↓ 3 callersFunctionNewYouTubeHandler
(r *gin.Engine, registry *core.PluginRegistry)
internal/server/youtube.go:30
↓ 3 callersMethodOnAnswerWithReset
(answer string, isReset bool)
internal/plugins/plugin.go:266
↓ 3 callersFunctionOutputTokenCount
OutputTokenCount returns the tokens the model generated: the visible answer plus the thinking tokens, which Gemini reports separately but bills as out
internal/plugins/ai/geminicommon/geminicommon.go:82
↓ 3 callersFunctionParseDeployments
ParseDeployments splits a comma-separated deployment string into a slice, trimming whitespace and discarding empty entries.
internal/plugins/ai/azurecommon/azurecommon.go:12
↓ 3 callersMethodPopulateDB
PopulateDB downloads patterns from the internet and populates the patterns folder
internal/tools/patterns_loader.go:87
↓ 3 callersMethodProcessExtension
ProcessExtension handles template processing for extension directives
internal/plugins/template/extension_manager.go:132
↓ 3 callersMethodRemoveExtension
RemoveExtension handles the rmextension flag action
internal/plugins/template/extension_manager.go:123
↓ 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:406
↓ 3 callersMethodSaveVersion
(v *git.Version)
cmd/generate_changelog/internal/cache/cache.go:114
↓ 3 callersFunctionScanDirectory
ScanDirectory scans a directory and returns a JSON representation of its structure
cmd/code2context/code.go:35
↓ 3 callersMethodSearch
Search returns the Google results for query as markdown, one section per result. Google no longer honours a result count, so one call returns one page
internal/tools/searchapi/searchapi.go:59
↓ 3 callersMethodSearch
Search returns source URLs and excerpts as Markdown. Anonymous searches use the server's default Fast mode. Explicit credentials are never retried ano
internal/tools/parallel/parallel.go:57
↓ 3 callersMethodSend
Send sends a notification using the configured provider
internal/tools/notifications/notifications.go:45
↓ 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:101
↓ 3 callersMethodSetLastProcessedTag
(tag string)
cmd/generate_changelog/internal/cache/cache.go:106
↓ 3 callersFunctionStripThinkBlocks
StripThinkBlocks removes each start tag, end tag, and the text between them from input. It also removes the whitespace after the end tag, so the outpu
internal/domain/think.go:16
↓ 3 callersMethodUnwrap
()
internal/plugins/ai/codex/errors.go:24
↓ 3 callersMethodWithEnvLock
(fn func() error)
internal/plugins/db/fsdb/db.go:126
↓ 3 callersMethodaddAuthHeader
addAuthHeader adds the authorization header to a request.
internal/plugins/ai/copilot/copilot.go:390
↓ 3 callersFunctionallowTestServer
allowTestServer lets loadImageBytes connect to the loopback address of server. The check stays on for all other addresses.
internal/plugins/ai/ollama/ollama_test.go:41
↓ 3 callersFunctionapplyTemplate
applyTemplate does the work for ApplyTemplate, ApplyTemplateNoSystemPlugins and ApplyTemplateInput.
internal/plugins/template/template.go:103
↓ 3 callersFunctionassertEnvMode
(t *testing.T, path string)
internal/plugins/db/fsdb/db_test.go:194
↓ 3 callersMethodbuildGeminiConfig
(opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:277
↓ 3 callersMethodbuildPRWithCommits
(ctx context.Context, ghPR *github.PullRequest)
cmd/generate_changelog/internal/github/client.go:154
↓ 3 callersFunctionbuildVendorsMap
buildVendorsMap groups the model names by vendor name for the response. A vendor with no models gets an empty slice, not a nil slice, because a nil sl
internal/server/models.go:47
↓ 3 callersFunctioncaptureOutput
(f func())
internal/plugins/plugin_test.go:276
↓ 3 callersFunctioncaptureStdout
captureStdout runs fn and returns the text that fn writes to stdout.
internal/core/chatter_test.go:809
↓ 3 callersFunctioncleanCORSOrigins
cleanCORSOrigins trims each origin, removes a trailing "/" and removes empty entries. A browser sends the Origin header with no "/". It refuses "*" wh
internal/server/cors.go:18
↓ 3 callersMethodconfigure
()
internal/plugins/ai/openai/openai.go:144
↓ 3 callersMethodconstructRequest
(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/dryrun/dryrun.go:63
↓ 3 callersFunctionconvertMessageCommon
(msg chat.ChatCompletionMessage)
internal/plugins/ai/openai/message_conversion.go:13
↓ 3 callersFunctioncopyFile
(src, dst string)
internal/tools/githelper/githelper.go:178
↓ 3 callersFunctiondelete
(name: string)
web/src/lib/api/base.ts:74
↓ 3 callersMethodensureIncomingDir
()
cmd/generate_changelog/internal/changelog/processing.go:377
↓ 3 callersMethoderrorFromHTTPResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:28
↓ 3 callersMethodextractText
(resp *responses.Response)
internal/plugins/ai/openai/openai.go:443
↓ 3 callersMethodfetchSinglePR
(ctx context.Context, prNumber int)
cmd/generate_changelog/internal/github/client.go:226
↓ 3 callersFunctionfilePerm
(t *testing.T, path string)
internal/plugins/db/fsdb/storage_test.go:58
↓ 3 callersFunctiongetFabricBaseUrl
()
web/src/lib/config/environment.ts:12
↓ 3 callersFunctiongetPreferredLocale
getPreferredLocale returns explicitLang when it is not empty. Otherwise it returns the result of detectSystemLocale.
internal/i18n/locale.go:67
↓ 3 callersFunctiongetStrategyDir
getStrategyDir returns the path to the strategies directory
internal/plugins/strategy/strategy.go:180
↓ 3 callersFunctiongetString
(s *string)
cmd/generate_changelog/internal/github/client.go:235
↓ 3 callersFunctionhandleChatProcessing
(currentFlags *Flags, registry *core.PluginRegistry, messageTools string)
internal/cli/chat.go:20
↓ 3 callersFunctionhandleSetupAndServerCommands
handleSetupAndServerCommands runs the setup and server commands. It returns handled = true when a command ran and the caller must exit.
internal/cli/setup_server.go:18
↓ 3 callersFunctionhostOnly
hostOnly removes the port from a Host value or from an address. It accepts an IPv6 literal such as "[::1]:8080". If the value has no port, hostOnly re
internal/server/loopback_guard.go:18
↓ 3 callersMethodinsertVersionAtTop
insertVersionAtTop writes the entry below the "# Changelog" header and creates the file when absent.
cmd/generate_changelog/internal/changelog/processing.go:441
↓ 3 callersFunctionisGeminiModel
(modelName string)
internal/plugins/ai/vertexai/models.go:174
↓ 3 callersFunctionisValidAWSRegion
isValidAWSRegion checks only the length of the region name, 5 to 30 characters.
internal/plugins/ai/bedrock/bedrock.go:345
↓ 3 callersFunctionlimitedRouter
(now *time.Time)
internal/server/auth_limit_test.go:13
↓ 3 callersFunctionmodelsCacheFile
modelsCacheFile builds the cache path from the provider name and a hash of the URL. A provider that changes its endpoint then reads a new file, not a
internal/plugins/ai/openai/models_cache.go:39
↓ 3 callersFunctionmustSymlink
mustSymlink makes a symlink. If symlinks are not available, for example on Windows without the privilege, it skips the test.
internal/plugins/db/fsdb/storage_test.go:225
↓ 3 callersFunctionnewAuthFailureLimiter
()
internal/server/auth.go:50
↓ 3 callersFunctionnewTestClient
newTestClient returns a client whose requests go to a test server that sends body.
internal/plugins/ai/gemini/gemini_stream_test.go:21
↓ 3 callersFunctionnewTestServer
(t *testing.T, handler http.HandlerFunc)
internal/tools/searchapi/searchapi_test.go:11
↓ 3 callersFunctionnewTextServer
newTextServer starts a test server on a loopback address. The server answers each request with body as text/plain.
internal/plugins/template/fetch_test.go:16
↓ 3 callersFunctionparseFFmpegFrameTimes
(logOutput string)
internal/tools/youtube/youtube.go:478
↓ 3 callersFunctionpostConfig
(r *gin.Engine, body string)
internal/server/configuration_test.go:28
↓ 3 callersFunctionpublicError
publicError returns the text of err that the server sends to a client or writes to its log. The text of a provider error can repeat private content, f
internal/server/provider_error.go:20
↓ 3 callersFunctionrecordFirstStreamError
recordFirstStreamError sends err to errChan when the channel has space. It discards later errors.
internal/core/chatter.go:41
↓ 3 callersMethodregisterVendor
(plugin plugins.Plugin)
internal/core/plugin_registry.go:452
↓ 3 callersFunctionrejectUnsafePatternName
rejectUnsafePatternName answers a 400 when name is a file-path-like pattern name or does not obey storage-name validation. An empty name passes, becau
internal/server/patterns.go:24
← previousnext →201–300 of 1,885, ranked by callers