Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,885 in github.com/danielmiessler/Fabric
⨍
Functions
1,885
◇
Types & classes
270
↓ 283 callers
Function
T
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:92
↓ 157 callers
Method
Close
()
cmd/generate_changelog/internal/cache/cache.go:33
↓ 74 callers
Method
Error
()
internal/plugins/ai/codex/errors.go:20
↓ 72 callers
Method
String
()
internal/plugins/db/fsdb/sessions.go:164
↓ 63 callers
Method
Write
(p []byte)
internal/server/recovery.go:39
↓ 62 callers
Method
Error
()
internal/domain/stream.go:32
↓ 56 callers
Method
Get
(name string)
internal/plugins/db/api.go:8
↓ 56 callers
Function
NewDb
(dir string)
internal/plugins/db/fsdb/db.go:16
↓ 39 callers
Function
Init
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:40
↓ 30 callers
Method
String
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:83
↓ 26 callers
Method
GetName
()
internal/plugins/plugin.go:20
↓ 24 callers
Method
Lock
Lock locks the named session and returns the function that unlocks it. Hold the lock from Get until SaveSession.
internal/plugins/db/fsdb/sessions.go:28
↓ 22 callers
Method
AddVendors
AddVendors registers one or more vendors with the manager. Vendors are stored with lowercase keys to enable case-insensitive lookup. Membership change
internal/plugins/ai/vendors.go:34
↓ 22 callers
Function
NewBedrockBackend
NewBedrockBackend creates a new Bedrock backend handler
internal/plugins/ai/azureaigateway/backend_bedrock.go:27
↓ 21 callers
Function
NewClient
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:190
↓ 21 callers
Function
NewClient
()
internal/plugins/ai/openai/openai.go:28
↓ 21 callers
Function
NewClient
NewClient creates a new Azure AI Gateway client
internal/plugins/ai/azureaigateway/azureaigateway.go:71
↓ 21 callers
Function
NewVendorsManager
()
internal/plugins/ai/vendors.go:16
↓ 20 callers
Method
Remove
(name string)
internal/plugins/template/extension_registry.go:174
↓ 18 callers
Method
AddSetupQuestion
(name string, required bool)
internal/plugins/plugin.go:67
↓ 16 callers
Function
ApplyTemplate
ApplyTemplate resolves each {{...}} token in content one time, in one pass from left to right. It writes the result of a token as literal text and doe
internal/plugins/template/template.go:71
↓ 16 callers
Function
BuildEnvVariablePrefix
(name string)
internal/plugins/plugin.go:356
↓ 15 callers
Function
NewClient
()
internal/plugins/ai/anthropic/anthropic.go:139
↓ 15 callers
Function
NewClient
NewClient creates a new Codex vendor client.
internal/plugins/ai/codex/codex.go:78
↓ 15 callers
Function
get
(name: string)
web/src/lib/api/base.ts:62
↓ 14 callers
Method
buildResponseParams
( inputMsgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/openai/openai.go:320
↓ 14 callers
Function
debugf
(format string, a ...any)
internal/plugins/template/template.go:37
↓ 14 callers
Function
testJWT
(accountID string, expiry time.Time)
internal/plugins/ai/codex/codex_test.go:826
↓ 13 callers
Method
GetChatter
(model string, modelContextLength int, vendorName string, stream bool, dryRun bool)
internal/core/plugin_registry.go:554
↓ 13 callers
Method
IsConfigured
()
internal/plugins/plugin.go:22
↓ 13 callers
Function
NewVendorPluginBase
NewVendorPluginBase creates a standardized PluginBase for AI vendor plugins. This centralizes the common initialization pattern used by all vendors.
internal/plugins/plugin.go:45
↓ 13 callers
Method
Send
Send processes a chat request and applies file changes for create_coding_feature pattern
internal/core/chatter.go:73
↓ 13 callers
Method
SendStream
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions, chan domain.StreamUpdate)
internal/plugins/ai/vendor.go:15
↓ 12 callers
Method
Ask
(label string)
internal/plugins/plugin.go:232
↓ 12 callers
Method
Configure
()
internal/plugins/plugin.go:23
↓ 12 callers
Method
Error
()
internal/plugins/ai/ollama/ollama.go:140
↓ 12 callers
Method
Print
()
internal/plugins/plugin.go:189
↓ 12 callers
Function
withTempModelsCache
(t *testing.T)
internal/plugins/ai/openai/models_cache_test.go:17
↓ 11 callers
Method
AddGroupItems
(group string, items ...I)
internal/util/groups_items.go:42
↓ 11 callers
Function
FetchModelsDirectly
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 callers
Function
NewClient
()
internal/plugins/ai/dryrun/dryrun.go:22
↓ 11 callers
Function
NewVendorsModels
()
internal/plugins/ai/models.go:12
↓ 10 callers
Method
Load
(name string)
internal/plugins/db/api.go:16
↓ 10 callers
Function
NewAzureOpenAIBackend
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 callers
Function
NewSpotify
NewSpotify creates a new Spotify client instance.
internal/tools/spotify/spotify.go:41
↓ 10 callers
Method
Read
(p []byte)
internal/server/bodylimit_test.go:122
↓ 10 callers
Method
Search
Search returns the web results for query as markdown, one section per result. It works without an API key via Keenable's public endpoint.
internal/tools/keenable/keenable.go:90
↓ 10 callers
Function
ValidateStorageName
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:239
↓ 10 callers
Function
newClient
(key string)
internal/tools/keenable/keenable_test.go:42
↓ 10 callers
Function
setupIntegrationClient
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:22
↓ 10 callers
Function
setupTestPatternsEntity
(t *testing.T)
internal/plugins/db/fsdb/patterns_test.go:14
↓ 9 callers
Function
LoadStrategy
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:192
↓ 9 callers
Method
Send
(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions)
internal/plugins/ai/vendor.go:16
↓ 9 callers
Method
configure
()
internal/plugins/ai/azure/azure.go:35
↓ 9 callers
Function
fetch
(endpoint: string, options: RequestInit = {})
web/src/lib/api/base.ts:13
↓ 9 callers
Function
storageError
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
↓ 9 callers
Function
withServer
withServer points both endpoints at a test server. The handler only records the request and writes the response; assertions run in the test goroutine.
internal/tools/keenable/keenable_test.go:23
↓ 8 callers
Method
AddSetupQuestionWithEnvName
AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name. This is useful when you want the environment variable
internal/plugins/plugin.go:84
↓ 8 callers
Method
BuildChatOptions
()
internal/cli/flags.go:403
↓ 8 callers
Method
Error
()
internal/plugins/db/fsdb/storage.go:209
↓ 8 callers
Function
ExtractTextWithCitations
ExtractTextWithCitations extracts text content from the response and appends any web citations in a standardized format.
internal/plugins/ai/geminicommon/geminicommon.go:120
↓ 8 callers
Method
ListModels
ListModels returns the list of models available for this backend
internal/plugins/ai/azureaigateway/azureaigateway.go:37
↓ 8 callers
Function
NewClient
()
internal/tools/firecrawl/firecrawl.go:29
↓ 8 callers
Function
NewExtensionManager
NewExtensionManager creates a new extension manager instance
internal/plugins/template/extension_manager.go:22
↓ 8 callers
Function
NewVertexAIBackend
NewVertexAIBackend creates a new Vertex AI backend handler
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:25
↓ 8 callers
Function
NewYouTube
()
internal/tools/youtube/youtube.go:68
↓ 8 callers
Method
Rename
(oldName, newName string)
internal/plugins/db/api.go:14
↓ 8 callers
Method
Save
(name string, content []byte)
internal/plugins/db/api.go:15
↓ 8 callers
Method
Save
(name string, content []byte)
internal/plugins/db/fsdb/storage.go:140
↓ 8 callers
Method
Send
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 callers
Method
Setup
()
internal/plugins/plugin.go:24
↓ 8 callers
Method
buildGenerateContentConfig
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:205
↓ 8 callers
Method
buildMessageParams
(msgs []anthropic.MessageParam, opts *domain.ChatOptions)
internal/plugins/ai/anthropic/anthropic.go:370
↓ 8 callers
Function
fetchBedrockRegions
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:131
↓ 8 callers
Method
loadImageBytes
(ctx context.Context, imageURL string)
internal/plugins/ai/ollama/ollama.go:343
↓ 8 callers
Function
newServeEngine
newServeEngine makes the REST API engine but does not start it, which lets tests operate the middleware and the routes.
internal/server/serve.go:88
↓ 7 callers
Method
AddSetting
(name string, required bool)
internal/plugins/plugin.go:60
↓ 7 callers
Method
AddSetupQuestionCustom
(name string, required bool, question string)
internal/plugins/plugin.go:71
↓ 7 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
↓ 7 callers
Method
Count
()
internal/util/groups_items.go:26
↓ 7 callers
Function
CreateOutputFile
(message string, fileName string)
internal/cli/output.go:22
↓ 7 callers
Method
Exists
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
↓ 7 callers
Method
FindByName
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:87
↓ 7 callers
Method
GetLastMessage
()
internal/plugins/db/fsdb/sessions.go:157
↓ 7 callers
Function
NewClient
()
internal/plugins/ai/azure/azure.go:16
↓ 7 callers
Function
NewClient
()
internal/plugins/ai/azure_entra/azure_entra.go:18
↓ 7 callers
Method
RegisterExtension
RegisterExtension handles the addextension flag action
internal/plugins/template/extension_manager.go:73
↓ 7 callers
Method
SaveEnv
(content string)
internal/plugins/db/fsdb/db.go:106
↓ 7 callers
Method
configure
()
internal/plugins/ai/codex/codex.go:144
↓ 7 callers
Method
configure
configure validates the gateway URL and key, then builds the HTTP client and the backend.
internal/plugins/ai/azureaigateway/azureaigateway.go:90
↓ 7 callers
Function
createTestPattern
(t *testing.T, entity *PatternsEntity, name, content string)
internal/plugins/db/fsdb/patterns_test.go:34
↓ 7 callers
Function
must
(t *testing.T, err error)
internal/cli/prompt_export_test.go:188
↓ 7 callers
Function
newConfiguredTestClient
(t *testing.T, apiBaseURL string, accountID string, accessToken string)
internal/plugins/ai/codex/codex_test.go:809
↓ 7 callers
Method
requestOptions
requestOptions returns per-request options that attach Fabric's session ID and User-Agent headers when configured. Providers that do not set these val
internal/plugins/ai/openai/openai.go:127
↓ 7 callers
Function
run
(cmd *cobra.Command, args []string)
cmd/generate_changelog/main.go:51
↓ 7 callers
Function
send
(r *gin.Engine, remote, key string)
internal/server/auth_limit_test.go:24
↓ 7 callers
Function
withMockEndpointsURL
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:331
↓ 6 callers
Function
AppendMessage
(message string, newMessage string)
internal/cli/flags.go:535
↓ 6 callers
Method
Configure
()
internal/plugins/db/api.go:7
↓ 6 callers
Method
FormatMetadataAsText
FormatMetadataAsText formats metadata as human-readable text suitable for LLM processing.
internal/tools/spotify/spotify.go:466
next →
1–100 of 1,885, ranked by callers