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
↓ 6 callers
Method
GetVendorMessages
()
internal/plugins/db/fsdb/sessions.go:136
↓ 6 callers
Function
LoadWorkflow
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
↓ 6 callers
Function
LooksLikePatternFilePath
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:70
↓ 6 callers
Function
NewChatHandler
(r *gin.Engine, registry *core.PluginRegistry, db *fsdb.Db)
internal/server/chat.go:50
↓ 6 callers
Function
NewClient
()
internal/tools/sofya/sofya.go:28
↓ 6 callers
Function
NewClient
()
internal/tools/parallel/parallel.go:26
↓ 6 callers
Function
NewClient
NewClient creates a new LM Studio client with default configuration.
internal/plugins/ai/lmstudio/lmstudio.go:22
↓ 6 callers
Function
ParseBool
(val string)
internal/plugins/plugin.go:217
↓ 6 callers
Function
RequireSecureBaseURL
RequireSecureBaseURL checks the base URL of a vendor that gets an API key or token. It accepts https, and http only for a loopback host, so that crede
internal/plugins/endpoint.go:18
↓ 6 callers
Function
SanitizeTerminalOutput
SanitizeTerminalOutput removes escape sequences and control characters from text before Fabric writes it to the terminal. Model output can contain seq
internal/domain/terminal.go:35
↓ 6 callers
Method
SaveEnvFile
()
internal/core/plugin_registry.go:176
↓ 6 callers
Method
UpdateEnvVars
UpdateEnvVars merges non-empty values into .env under a file lock. Comments and key order are not preserved.
internal/plugins/db/fsdb/db.go:145
↓ 6 callers
Method
ensureAccessToken
(ctx context.Context, forceRefresh bool)
internal/plugins/ai/codex/auth_transport.go:26
↓ 6 callers
Method
mapRequestError
(err error)
internal/plugins/ai/codex/errors.go:60
↓ 6 callers
Function
marshalJSON
(t *testing.T, value any)
internal/plugins/ai/codex/codex_test.go:840
↓ 6 callers
Function
newOllamaEngine
newOllamaEngine makes the engine but does not start it, which lets tests operate the routes. The address parameter is the /api/chat forward target, no
internal/server/ollama.go:225
↓ 6 callers
Function
parseThinking
parseThinking changes a thinking level into the thinking shape for model. It returns a non-empty effort only for adaptive models. The caller must then
internal/plugins/ai/anthropic/anthropic.go:269
↓ 6 callers
Method
resolvedPath
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:295
↓ 6 callers
Function
writeSSE
(w http.ResponseWriter, frame string)
internal/plugins/ai/codex/codex_test.go:850
↓ 5 callers
Method
Append
(messages ...*chat.ChatCompletionMessage)
internal/plugins/db/fsdb/sessions.go:125
↓ 5 callers
Function
ApplyFileChanges
ApplyFileChanges applies the parsed file changes to the file system. The change list comes from model output. Thus all writes go through os.Root, whi
internal/domain/file_manager.go:164
↓ 5 callers
Method
BuildSession
BuildSession prints a notice for a new named session when announceNewSession is true.
internal/core/chatter.go:266
↓ 5 callers
Method
Configure
()
internal/plugins/db/fsdb/db.go:50
↓ 5 callers
Function
ConvertMessages
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 callers
Function
FormatMessages
FormatMessages writes each message as a role header line and its content. --dry-run and --print-prompt use this format.
internal/chatfmt/messages.go:12
↓ 5 callers
Method
GetApplyVariables
GetApplyVariables main entry point for getting patterns from any source
internal/plugins/db/fsdb/patterns.go:39
↓ 5 callers
Method
GetModels
()
internal/plugins/ai/vendors.go:59
↓ 5 callers
Method
Load
(name string)
internal/plugins/db/fsdb/storage.go:162
↓ 5 callers
Function
NewClient
()
internal/tools/searchapi/searchapi.go:27
↓ 5 callers
Function
NewClient
()
internal/tools/serply/serply.go:27
↓ 5 callers
Function
NewClientCompatibleNoSetupQuestions
(vendorName string, configureCustom func() error)
internal/plugins/ai/openai/openai.go:53
↓ 5 callers
Function
NewCustomPatterns
()
internal/tools/custom_patterns/custom_patterns.go:13
↓ 5 callers
Function
NewNotificationManager
NewNotificationManager creates a new notification manager with the best available provider
internal/tools/notifications/notifications.go:24
↓ 5 callers
Function
NewPatternsHandler
NewPatternsHandler creates a new PatternsHandler
internal/server/patterns.go:37
↓ 5 callers
Function
NewPublicHTTPClient
NewPublicHTTPClient returns an HTTP client for a URL that a template or a request supplies. control is the Control function of the dialer. If control
internal/util/httpclient.go:85
↓ 5 callers
Method
PrepareRequest
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 callers
Method
Register
(configPath string)
internal/plugins/template/extension_registry.go:98
↓ 5 callers
Method
SaveSession
SaveSession writes the session to its file. The caller must hold Lock for the session from Get until SaveSession. Lock uses the session name as its ke
internal/plugins/db/fsdb/sessions.go:110
↓ 5 callers
Method
Search
Search returns the top web results for query as markdown, one section per result, with the page text of each result when Sofya could read the page.
internal/tools/sofya/sofya.go:61
↓ 5 callers
Method
Search
Search returns the top web results for query as markdown, one section per result, with the page content of each result when Firecrawl could scrape it.
internal/tools/firecrawl/firecrawl.go:66
↓ 5 callers
Method
SetWebSearchToolName
SetWebSearchToolName replaces the "web_search_preview" tool type that the Responses API request has when Search is true. A name that is not empty also
internal/plugins/ai/openai/openai.go:94
↓ 5 callers
Method
Worktree
Worktree returns the git worktree for performing git operations
cmd/generate_changelog/internal/git/walker.go:397
↓ 5 callers
Method
addAuthorizationHeader
(req *http.Request)
internal/plugins/ai/lmstudio/lmstudio.go:375
↓ 5 callers
Function
captureInput
(input string)
internal/plugins/plugin_test.go:288
↓ 5 callers
Function
captureStdout
captureStdout runs fn and returns what it writes to stdout.
internal/cli/prompt_export_test.go:174
↓ 5 callers
Method
fetch
fetch downloads urlStr and applies the size, content-type, and UTF-8 checks.
internal/plugins/template/fetch.go:98
↓ 5 callers
Function
newConfigTestEngine
(t *testing.T)
internal/server/configuration_test.go:17
↓ 5 callers
Function
newSecuredEngine
newSecuredEngine makes an engine with the security middleware that each server uses. noKeyWarning is the log message when apiKey is empty.
internal/server/serve.go:43
↓ 5 callers
Function
newTestServer
(t *testing.T, handler http.HandlerFunc)
internal/tools/firecrawl/firecrawl_test.go:12
↓ 5 callers
Function
readModelsCache
readModelsCache returns the cached list for the provider and URL. A maxAge of 0 or less accepts an entry of any age. An empty cached list is a miss.
internal/plugins/ai/openai/models_cache.go:48
↓ 5 callers
Method
toMessages
(msgs []*chat.ChatCompletionMessage)
internal/plugins/ai/vertexai/vertexai.go:374
↓ 5 callers
Method
update
()
web/src/lib/components/ui/connections/ParticleSystem.ts:63
↓ 4 callers
Function
BlockedError
BlockedError returns an error when Gemini refused to answer: the prompt was blocked (no candidates, and the reason is in the prompt feedback), or the
internal/plugins/ai/geminicommon/geminicommon.go:90
↓ 4 callers
Method
BuildEndpoint
BuildEndpoint constructs the Azure OpenAI API endpoint URL API version reference: https://learn.microsoft.com/azure/ai-services/openai/reference
internal/plugins/ai/azureaigateway/backend_azure_openai.go:52
↓ 4 callers
Function
ComputeHash
ComputeHash computes SHA-256 hash of a file at given path. Returns the hex-encoded hash string or an error if the operation fails.
internal/plugins/template/hash.go:15
↓ 4 callers
Function
ComputeStringHash
ComputeStringHash returns hex-encoded SHA-256 hash of the given string
internal/plugins/template/hash.go:31
↓ 4 callers
Method
ConfigureVendors
()
internal/core/plugin_registry.go:468
↓ 4 callers
Function
CopyToClipboard
(message string)
internal/cli/output.go:15
↓ 4 callers
Function
CreateClient
CreateClient creates a new client for a provider by name
internal/plugins/ai/openai_compatible/providers_config.go:551
↓ 4 callers
Method
Delete
(name string)
internal/plugins/db/api.go:10
↓ 4 callers
Function
DenyNonPublicAddress
DenyNonPublicAddress is a Control function for net.Dialer. The dialer calls it after DNS resolution, with the IP address and the port of the connectio
internal/util/httpclient.go:52
↓ 4 callers
Method
Execute
Execute runs an extension with the given operation and value string name: the registered name of the extension operation: the operation to perform val
internal/plugins/template/extension_executor.go:36
↓ 4 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
↓ 4 callers
Method
FillEnvFileContent
(buffer *bytes.Buffer)
internal/plugins/plugin.go:198
↓ 4 callers
Method
FindModelNameCaseInsensitive
FindModelNameCaseInsensitive returns the actual model name from available models, matching case-insensitively. Returns empty string if not found. For
internal/plugins/ai/models.go:38
↓ 4 callers
Function
GetAbsolutePath
GetAbsolutePath resolves a given path to its absolute form, handling ~, ./, ../, UNC paths, and symlinks.
internal/util/utils.go:15
↓ 4 callers
Method
GetFileConfig
()
internal/plugins/template/extension_registry.go:60
↓ 4 callers
Function
GetGeminiVoices
GetGeminiVoices returns the current list of supported Gemini TTS voices This list is maintained based on official Google Gemini documentation https://
internal/plugins/ai/gemini/voices.go:21
↓ 4 callers
Method
GetLatestTag
GetLatestTag returns the name of the most recent tag by committer date
cmd/generate_changelog/internal/git/walker.go:46
↓ 4 callers
Method
GetNames
()
internal/plugins/db/api.go:9
↓ 4 callers
Method
GetRaw
(name string)
internal/cli/workflow.go:36
↓ 4 callers
Method
GrabMetadataForURL
GrabMetadataForURL retrieves metadata for a Spotify URL (show or episode).
internal/tools/spotify/spotify.go:448
↓ 4 callers
Method
GrabVisual
GrabVisual retrieves visual data from the video by extracting frames via FFmpeg and OCR parsing them via Tesseract.
internal/tools/youtube/youtube.go:861
↓ 4 callers
Function
Init
Init Initialize flags. returns a Flags struct and an error
internal/cli/flags.go:134
↓ 4 callers
Method
ListModels
(context.Context)
internal/plugins/ai/azure/azure.go:67
↓ 4 callers
Function
LoadAllFiles
()
internal/plugins/strategy/strategy.go:64
↓ 4 callers
Method
LoadEnvFile
()
internal/plugins/db/fsdb/db.go:93
↓ 4 callers
Method
NeedsRawMode
(modelName string)
internal/plugins/ai/vendor.go:17
↓ 4 callers
Function
NewClientCompatibleWithResponses
(vendorName string, defaultBaseUrl string, implementsResponses bool, configureCustom func() error)
internal/plugins/ai/openai/openai.go:42
↓ 4 callers
Function
NewContextsHandler
NewContextsHandler creates a new ContextsHandler
internal/server/contexts.go:15
↓ 4 callers
Function
NewExtensionRegistry
(configDir string)
internal/plugins/template/extension_registry.go:78
↓ 4 callers
Method
ParseResponse
ParseResponse parses Bedrock API response (Anthropic content blocks)
internal/plugins/ai/azureaigateway/backend_bedrock.go:114
↓ 4 callers
Function
ScanFiles
ScanFiles scans specific files and returns a JSON representation
cmd/code2context/code.go:128
↓ 4 callers
Method
addImageGenerationTool
(opts *domain.ChatOptions, tools []responses.ToolUnionParam)
internal/plugins/ai/openai/openai_image.go:54
↓ 4 callers
Method
buildCodexResponseParams
( msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/codex/codex.go:375
↓ 4 callers
Method
buildModelNameFull
buildModelNameFull adds the "models/" prefix when the name lacks it.
internal/plugins/ai/gemini/gemini.go:240
↓ 4 callers
Function
command
command builds the claude invocation. System messages go to --system-prompt. All other messages go to stdin. If every message is a system message, tha
internal/plugins/ai/claudecode/claudecode.go:108
↓ 4 callers
Method
doRequest
doRequest performs an authenticated request to the Spotify API.
internal/tools/spotify/spotify.go:135
↓ 4 callers
Method
extractAccountID
(idToken string, accessToken string)
internal/plugins/ai/codex/auth_transport.go:160
↓ 4 callers
Method
extractAndValidateVideoId
extractAndValidateVideoId returns the video ID in url. It returns an error when url is invalid or names only a playlist.
internal/tools/youtube/youtube.go:127
↓ 4 callers
Function
filterConversationalModels
(models []string)
internal/plugins/ai/vertexai/models.go:212
↓ 4 callers
Method
formatCommitMessage
(message string)
cmd/generate_changelog/internal/changelog/generator.go:563
↓ 4 callers
Method
getFromDB
(name string)
internal/plugins/db/fsdb/patterns.go:125
↓ 4 callers
Function
getMaxTokens
(opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:138
↓ 4 callers
Function
guardEngine
(corsOrigins []string)
internal/server/loopback_guard_test.go:14
↓ 4 callers
Method
initService
()
internal/tools/youtube/youtube.go:95
↓ 4 callers
Function
newStepRegistry
newStepRegistry makes a registry with vendor as the default vendor and a pattern for each step of wf.
internal/cli/workflow_test.go:290
↓ 4 callers
Function
newTestServer
(t *testing.T, handler http.HandlerFunc)
internal/tools/sofya/sofya_test.go:12
↓ 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:1038
↓ 4 callers
Function
sendNotification
sendNotification runs the custom notification command, or the built-in notifier when none is set.
internal/cli/chat.go:155
← previous
next →
101–200 of 1,885, ranked by callers