MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,490 in github.com/danielmiessler/Fabric

↓ 261 callersFunctionT
T returns the localized string for the given message id. If the translator is not initialized, it will automatically initialize with system locale det
internal/i18n/i18n.go:87
↓ 111 callersMethodError
()
internal/plugins/ai/codex/errors.go:20
↓ 109 callersMethodClose
()
cmd/generate_changelog/internal/cache/cache.go:33
↓ 45 callersMethodString
()
internal/plugins/db/fsdb/sessions.go:91
↓ 32 callersMethodGet
(name string)
internal/plugins/db/api.go:8
↓ 30 callersFunctionInit
Init initializes the i18n bundle and localizer. It loads the specified locale and falls back to English if loading fails. Translation files are search
internal/i18n/i18n.go:39
↓ 26 callersFunctionNewDb
(dir string)
internal/plugins/db/fsdb/db.go:15
↓ 26 callersMethodString
String implements fmt.Stringer with token redaction to prevent accidental exposure of the ABSK key in logs or debug output.
internal/plugins/ai/bedrock/bedrock.go:82
↓ 21 callersFunctionNewBedrockBackend
NewBedrockBackend creates a new Bedrock backend handler
internal/plugins/ai/azureaigateway/backend_bedrock.go:26
↓ 21 callersFunctionNewClient
NewClient creates a new Azure AI Gateway client
internal/plugins/ai/azureaigateway/azureaigateway.go:71
↓ 20 callersMethodRemove
(name string)
internal/plugins/template/extension_registry.go:174
↓ 17 callersFunctionNewClient
NewClient returns a new Bedrock plugin client. Client initialization is deferred to configure() so that explicit credentials from the .env file or --s
internal/plugins/ai/bedrock/bedrock.go:189
↓ 17 callersFunctionNewClient
()
internal/plugins/ai/openai/openai.go:25
↓ 16 callersFunctionNewClient
()
internal/plugins/ai/anthropic/anthropic.go:78
↓ 15 callersMethodGetName
()
internal/plugins/plugin.go:16
↓ 15 callersFunctionget
(name: string)
web/src/lib/api/base.ts:62
↓ 13 callersFunctionNewVendorPluginBase
NewVendorPluginBase creates a standardized PluginBase for AI vendor plugins. This centralizes the common initialization pattern used by all vendors.
internal/plugins/plugin.go:41
↓ 13 callersMethodbuildResponseParams
( inputMsgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/openai/openai.go:240
↓ 13 callersFunctiondebugf
(format string, a ...any)
internal/plugins/template/template.go:38
↓ 12 callersFunctionNewClient
NewClient creates a new Codex vendor client.
internal/plugins/ai/codex/codex.go:78
↓ 12 callersFunctionwithTempModelsCache
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:17
↓ 11 callersMethodAddSetupQuestion
AddSetupQuestion adds a setup question to the plugin. This is a helper method, usually called from NewClient.
internal/plugins/ai/perplexity/perplexity.go:239
↓ 11 callersMethodAddVendors
AddVendors registers one or more vendors with the manager. Vendors are stored with lowercase keys to enable case-insensitive lookup.
internal/plugins/ai/vendors.go:32
↓ 11 callersFunctionFetchModelsDirectly
FetchModelsDirectly is used to fetch models directly from the API when the standard OpenAI SDK method fails due to a nonstandard format. This is usefu
internal/plugins/ai/openai/direct_models.go:33
↓ 11 callersMethodIsConfigured
()
internal/plugins/plugin.go:18
↓ 11 callersMethodbuildMessageParams
(msgs []anthropic.MessageParam, opts *domain.ChatOptions)
internal/plugins/ai/anthropic/anthropic.go:274
↓ 11 callersFunctiontestJWT
(accountID string, expiry time.Time)
internal/plugins/ai/codex/codex_test.go:794
↓ 10 callersMethodAddGroupItems
(group string, items ...I)
internal/util/groups_items.go:42
↓ 10 callersFunctionApplyTemplate
(content string, variables map[string]string, input string)
internal/plugins/template/template.go:56
↓ 10 callersMethodAsk
(label string)
internal/plugins/plugin.go:206
↓ 10 callersFunctionBuildEnvVariablePrefix
(name string)
internal/plugins/plugin.go:332
↓ 10 callersMethodGetChatter
(model string, modelContextLength int, vendorName string, stream bool, dryRun bool)
internal/core/plugin_registry.go:516
↓ 10 callersFunctionNewAzureOpenAIBackend
NewAzureOpenAIBackend creates a new Azure OpenAI backend handler If apiVersion is empty, defaults to "2025-04-01-preview"
internal/plugins/ai/azureaigateway/backend_azure_openai.go:26
↓ 10 callersFunctionNewSpotify
NewSpotify creates a new Spotify client instance.
internal/tools/spotify/spotify.go:41
↓ 10 callersFunctionNewVendorsManager
()
internal/plugins/ai/vendors.go:16
↓ 10 callersFunctionNewVendorsModels
()
internal/plugins/ai/models.go:12
↓ 10 callersMethodPrint
()
internal/plugins/plugin.go:163
↓ 10 callersFunctionsetupIntegrationClient
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:22
↓ 10 callersFunctionsetupTestPatternsEntity
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:14
↓ 9 callersMethodConfigure
()
internal/plugins/plugin.go:19
↓ 9 callersMethodSetup
()
internal/plugins/plugin.go:20
↓ 9 callersFunctionfetch
(endpoint: string, options: RequestInit = {})
web/src/lib/api/base.ts:13
↓ 8 callersMethodAddSetupQuestionWithEnvName
AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name. This is useful when you want the environment variable
internal/plugins/plugin.go:79
↓ 8 callersMethodBuildChatOptions
()
internal/cli/flags.go:416
↓ 8 callersFunctionLoadStrategy
LoadStrategy loads a strategy from the given name. The resolved path is validated to stay within the strategy directory to prevent path traversal.
internal/plugins/strategy/strategy.go:183
↓ 8 callersFunctionNewExtensionManager
NewExtensionManager creates a new extension manager instance
internal/plugins/template/extension_manager.go:22
↓ 8 callersFunctionNewVertexAIBackend
NewVertexAIBackend creates a new Vertex AI backend handler
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:25
↓ 8 callersMethodSaveEnv
(content string)
internal/plugins/db/fsdb/db.go:96
↓ 8 callersMethodSend
Send processes a chat request and applies file changes for create_coding_feature pattern
internal/core/chatter.go:59
↓ 8 callersMethodSend
Send sends a non-streaming request through the APIM gateway. This is the single implementation of HTTP plumbing shared by all backends.
internal/plugins/ai/azureaigateway/azureaigateway.go:143
↓ 8 callersMethodbuildGenerateContentConfig
buildGenerateContentConfig builds the request config. When opts.Search is set, it adds the Google Search tool. The search location accepts two forms:
internal/plugins/ai/gemini/gemini.go:199
↓ 8 callersMethodconfigure
()
internal/plugins/ai/azure/azure.go:36
↓ 8 callersFunctionfetchBedrockRegions
fetchBedrockRegions reads the Bedrock regions from the botocore endpoints.json file, which needs no authentication. It returns fallbackRegions on any
internal/plugins/ai/bedrock/bedrock.go:130
↓ 7 callersMethodAddSetupQuestionCustom
(name string, required bool, question string)
internal/plugins/plugin.go:66
↓ 7 callersFunctionExtractTextWithCitations
ExtractTextWithCitations extracts text content from the response and appends any web citations in a standardized format.
internal/plugins/ai/geminicommon/geminicommon.go:79
↓ 7 callersMethodFindByName
FindByName returns a vendor by name. Lookup is case-insensitive. For example, "OpenAI", "openai", and "OPENAI" all match the same vendor.
internal/plugins/ai/vendors.go:73
↓ 7 callersMethodGetName
GetName returns the name of the plugin.
internal/plugins/ai/perplexity/perplexity.go:227
↓ 7 callersFunctionNewClient
()
internal/plugins/ai/azure_entra/azure_entra.go:19
↓ 7 callersMethodRegisterExtension
RegisterExtension handles the addextension flag action
internal/plugins/template/extension_manager.go:73
↓ 7 callersMethodRename
(oldName, newName string)
internal/plugins/db/api.go:14
↓ 7 callersMethodSave
(name string, content []byte)
internal/plugins/db/fsdb/storage.go:103
↓ 7 callersMethodconfigure
configure validates the gateway URL and key, then builds the HTTP client and the backend.
internal/plugins/ai/azureaigateway/azureaigateway.go:90
↓ 7 callersFunctioncreateTestPattern
(t *testing.T, entity *PatternsEntity, name, content string)
internal/plugins/db/fsdb/patterns_test.go:34
↓ 7 callersFunctionrun
(cmd *cobra.Command, args []string)
cmd/generate_changelog/main.go:51
↓ 7 callersFunctionstorageError
storageError answers err. A name-validation rejection becomes a 400, and its body contains only the rejected name. All other errors stay 500 errors wi
internal/server/storage.go:31
↓ 7 callersFunctionwithMockEndpointsURL
withMockEndpointsURL points botocoreEndpointsURL at url while fn runs. It writes a package variable, so tests that use it must not call t.Parallel().
internal/plugins/ai/bedrock/bedrock_test.go:319
↓ 6 callersMethodAddSetting
(name string, required bool)
internal/plugins/plugin.go:56
↓ 6 callersFunctionCreateOutputFile
(message string, fileName string)
internal/cli/output.go:22
↓ 6 callersMethodError
()
internal/plugins/db/fsdb/storage.go:161
↓ 6 callersMethodExists
Exists reports false for an invalid name. It cannot show the difference between a rejected name and an absent entry.
internal/plugins/db/api.go:13
↓ 6 callersMethodFormatMetadataAsText
FormatMetadataAsText formats metadata as human-readable text suitable for LLM processing.
internal/tools/spotify/spotify.go:466
↓ 6 callersFunctionLooksLikePatternFilePath
LooksLikePatternFilePath reports whether loadPattern uses source as a filesystem path. HTTP handlers must reject these names to keep the CLI file-path
internal/plugins/db/fsdb/patterns.go:64
↓ 6 callersFunctionNewClient
()
internal/plugins/ai/azure/azure.go:17
↓ 6 callersFunctionParseBool
(val string)
internal/plugins/plugin.go:191
↓ 6 callersMethodSave
(name string, content []byte)
internal/plugins/db/api.go:15
↓ 6 callersMethodSaveEnvFile
()
internal/core/plugin_registry.go:157
↓ 6 callersMethodconfigure
()
internal/plugins/ai/codex/codex.go:140
↓ 6 callersMethodensureAccessToken
(ctx context.Context, forceRefresh bool)
internal/plugins/ai/codex/auth_transport.go:26
↓ 6 callersMethodmapRequestError
(err error)
internal/plugins/ai/codex/errors.go:60
↓ 6 callersMethodresolvedPath
resolvedPath keeps name in the entity directory. It validates the name, checks containment again after absolute resolution, and rejects a symlinked en
internal/plugins/db/fsdb/storage.go:247
↓ 5 callersFunctionAppendMessage
(message string, newMessage string)
internal/cli/flags.go:548
↓ 5 callersFunctionConvertMessages
ConvertMessages converts fabric chat messages to genai Content format. Gemini's API only accepts "user" and "model" roles, so other roles are mapped t
internal/plugins/ai/geminicommon/geminicommon.go:21
↓ 5 callersMethodCount
()
internal/util/groups_items.go:26
↓ 5 callersMethodGetApplyVariables
GetApplyVariables main entry point for getting patterns from any source
internal/plugins/db/fsdb/patterns.go:33
↓ 5 callersMethodListModels
ListModels returns the list of models available for this backend
internal/plugins/ai/azureaigateway/azureaigateway.go:37
↓ 5 callersMethodLoad
(name string)
internal/plugins/db/api.go:16
↓ 5 callersMethodLoad
(name string)
internal/plugins/db/fsdb/storage.go:114
↓ 5 callersFunctionLoadWorkflow
LoadWorkflow parses a workflow definition from a YAML or JSON file (JSON is valid YAML). It does not validate the contents – call Validate before runn
internal/cli/workflow.go:47
↓ 5 callersFunctionNewClientCompatibleNoSetupQuestions
(vendorName string, configureCustom func() error)
internal/plugins/ai/openai/openai.go:50
↓ 5 callersFunctionNewCustomPatterns
()
internal/tools/custom_patterns/custom_patterns.go:13
↓ 5 callersFunctionNewNotificationManager
NewNotificationManager creates a new notification manager with the best available provider
internal/tools/notifications/notifications.go:24
↓ 5 callersFunctionNewPatternsHandler
NewPatternsHandler creates a new PatternsHandler
internal/server/patterns.go:37
↓ 5 callersMethodPrepareRequest
PrepareRequest converts messages to Bedrock API format (Anthropic Messages API). System messages are extracted into the top-level "system" field per t
internal/plugins/ai/azureaigateway/backend_bedrock.go:62
↓ 5 callersMethodRegister
(configPath string)
internal/plugins/template/extension_registry.go:98
↓ 5 callersMethodUpdateEnvVars
UpdateEnvVars merges non-empty values into .env under a file lock. Comments and key order are not preserved.
internal/plugins/db/fsdb/db.go:135
↓ 5 callersFunctionValidateStorageName
ValidateStorageName rejects an empty name, ".", "..", and each name that is not a single path element. It also rejects names that are dangerous only o
internal/plugins/db/fsdb/storage.go:191
↓ 5 callersMethodWorktree
Worktree returns the git worktree for performing git operations
cmd/generate_changelog/internal/git/walker.go:397
↓ 5 callersMethodaddAuthorizationHeader
(req *http.Request)
internal/plugins/ai/lmstudio/lmstudio.go:375
↓ 5 callersMethodfetch
fetch downloads urlStr and applies the size, content-type, and UTF-8 checks.
internal/plugins/template/fetch.go:87
↓ 5 callersFunctionnewConfiguredTestClient
(t *testing.T, apiBaseURL string, accountID string, accessToken string)
internal/plugins/ai/codex/codex_test.go:777
next →1–100 of 1,490, ranked by callers