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
↓ 1 callers
Function
providerStatus
providerStatus finds the HTTP status and the error code of a provider error. It returns zero values when it does not know the error type.
internal/server/provider_error.go:38
↓ 1 callers
Method
prune
prune drops each client that is not locked, so that a flood of addresses cannot grow the table. Locked clients stay locked.
internal/server/auth.go:93
↓ 1 callers
Method
publishOAuthResult
(results chan<- oauthResult, result oauthResult)
internal/plugins/ai/codex/oauth.go:189
↓ 1 callers
Function
quoteForLog
quoteForLog quotes body and cuts it at maxLoggedBodyBytes, so a body with line breaks cannot add log lines of its own.
internal/server/ollama.go:581
↓ 1 callers
Function
readAPIErrorBody
(apiErr *openaiapi.Error)
internal/plugins/ai/codex/errors.go:106
↓ 1 callers
Function
readDiagnostic
readDiagnostic returns a bounded, printable excerpt of an error response.
internal/tools/keenable/keenable.go:173
↓ 1 callers
Function
readFileContent
( file: File, pdf: { convertToMarkdown(file: File): Promise<PdfConversion> }, warn: (message: string) =>
web/src/lib/components/chat/read-file-content.ts:6
↓ 1 callers
Function
readLimited
readLimited reads at most limit bytes and reports errResponseTooLarge when the body is longer, even if the first limit bytes are valid JSON.
internal/tools/keenable/keenable.go:161
↓ 1 callers
Method
readModels
readModels returns an error if no vendors are configured or if all vendors fail. If all vendors fail, it also returns the empty catalog.
internal/plugins/ai/vendors.go:93
↓ 1 callers
Function
readStdin
()
internal/cli/flags.go:312
↓ 1 callers
Function
reasonError
(prefix, reason, message string)
internal/plugins/ai/geminicommon/geminicommon.go:111
↓ 1 callers
Function
recordingClient
recordingClient answers every request with response and stores the last request body.
internal/plugins/ai/bedrock/bedrock_sampling_test.go:25
↓ 1 callers
Function
redactRequestDump
redactRequestDump masks the value of each secret header line in text.
internal/server/recovery.go:19
↓ 1 callers
Method
refreshAccessToken
refreshAccessToken obtains a new access token using Client Credentials flow.
internal/tools/spotify/spotify.go:87
↓ 1 callers
Method
refreshAccessToken
(ctx context.Context)
internal/plugins/ai/codex/auth_transport.go:112
↓ 1 callers
Method
refreshErrorFromResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:44
↓ 1 callers
Function
renderMarkdown
(content: string)
web/src/lib/utils/sanitize-html.ts:28
↓ 1 callers
Function
replyOllamaError
replyOllamaError sends msg as a final prefixed NDJSON chunk in stream mode, or as a JSON error body with status in other modes.
internal/server/ollama.go:549
↓ 1 callers
Function
repo_root
Get the repository root directory.
scripts/readme_updates/update_readme_features.py:53
↓ 1 callers
Function
resolveInputFile
resolveInputFile opens filename and returns the file and the name it opened. If tryAppendTex is true and the first open fails, it retries with ".tex"
cmd/to_pdf/main.go:28
↓ 1 callers
Function
resolveToken
resolveToken gives the text for one token body. The body has no outer braces, and its nested tokens are already resolved. src is the body as it is in
internal/plugins/template/template.go:174
↓ 1 callers
Method
retryAfter
retryAfter returns how long a locked client must wait, or 0 when it may try.
internal/server/auth.go:55
↓ 1 callers
Function
roleHeader
roleHeader changes the first letter of the role to uppercase, for example "user" to "User".
internal/chatfmt/messages.go:40
↓ 1 callers
Method
roundTrip
(req *http.Request, retried bool)
internal/plugins/ai/codex/auth_transport.go:182
↓ 1 callers
Method
roundTripper
()
internal/plugins/ai/codex/auth_transport.go:215
↓ 1 callers
Method
runFirstTimeSetup
runFirstTimeSetup downloads patterns and strategies without a prompt, then asks for a vendor and the defaults.
internal/core/plugin_registry.go:230
↓ 1 callers
Method
runInteractiveSetup
()
internal/core/plugin_registry.go:334
↓ 1 callers
Method
runVendorSetup
runVendorSetup asks the user to select and configure one AI vendor.
internal/core/plugin_registry.go:289
↓ 1 callers
Method
safePath
safePath rejects a path that contains "..", starts with "~" or is absolute. It gives the cleaned path, which is relative to fileReadRoot.
internal/plugins/template/file.go:35
↓ 1 callers
Function
safe_run_command
Safely run a command with retries.
scripts/python_ui/streamlit.py:141
↓ 1 callers
Function
sanitize
(s string)
internal/tools/keenable/keenable.go:189
↓ 1 callers
Function
saveToFile
(data: any, filename: string)
web/src/lib/utils/file-utils.ts:34
↓ 1 callers
Function
saveToFile
(content: string)
web/src/lib/store/note-store.ts:47
↓ 1 callers
Function
save_pattern_files
Save pattern extracts and descriptions JSON files
scripts/pattern_descriptions/extract_patterns.py:105
↓ 1 callers
Method
sendChatCompletions
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/openai/chat_completions.go:16
↓ 1 callers
Method
sendChatMessage
sendChatMessage sends a message to an existing conversation (synchronous).
internal/plugins/ai/copilot/copilot.go:244
↓ 1 callers
Method
sendChatMessageStream
sendChatMessageStream sends a message and streams the response via SSE.
internal/plugins/ai/copilot/copilot.go:289
↓ 1 callers
Method
sendGemini
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:252
↓ 1 callers
Method
sendStreamChatCompletions
( ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.Stre
internal/plugins/ai/openai/chat_completions.go:31
↓ 1 callers
Method
sendStreamClaude
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.Stream
internal/plugins/ai/vertexai/vertexai.go:187
↓ 1 callers
Method
sendStreamGemini
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.Stream
internal/plugins/ai/vertexai/vertexai.go:317
↓ 1 callers
Method
sendStreamResponses
( ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.Stre
internal/plugins/ai/openai/openai.go:188
↓ 1 callers
Function
sendStreamUpdate
(ctx context.Context, channel chan domain.StreamUpdate, update domain.StreamUpdate)
internal/plugins/ai/codex/codex.go:366
↓ 1 callers
Function
setSystemPrompt
(prompt: string)
web/src/lib/store/pattern-store.ts:30
↓ 1 callers
Function
set_clipboard_content
Set content to clipboard with proper error handling. Args: content: The content to copy to clipboard Returns: Tuple[bool, st
scripts/python_ui/streamlit.py:1319
↓ 1 callers
Function
setup
()
web/src/lib/services/PdfConversionService.test.ts:123
↓ 1 callers
Function
splitAudioFile
splitAudioFile halves the ffmpeg segment time until no chunk is larger than maxSize.
internal/plugins/ai/openai/openai_audio.go:140
↓ 1 callers
Function
split_summary
Split AI summary into individual lines/bullets.
scripts/readme_updates/update_readme_features.py:118
↓ 1 callers
Method
stageChangesForRelease
stageChangesForRelease adds CHANGELOG.md and the cache database to the git index.
cmd/generate_changelog/internal/changelog/processing.go:473
↓ 1 callers
Function
star_output
Star/favorite an output log. Args: log_index: Index of the output log to star custom_name: Optional custom name for the starred o
scripts/python_ui/streamlit.py:683
↓ 1 callers
Method
statInRoot
statInRoot gives the file information for path through inRoot.
internal/plugins/template/file.go:70
↓ 1 callers
Function
stdinLineReader
()
internal/plugins/plugin.go:383
↓ 1 callers
Method
streamChat
( userInput: string, systemPromptText?: string, )
web/src/lib/services/ChatService.ts:269
↓ 1 callers
Method
syncGitHistory
syncGitHistory walks the full git history and caches the versions and commits that are missing.
cmd/generate_changelog/internal/changelog/generator.go:682
↓ 1 callers
Method
terminate
()
web/src/lib/services/PdfConversionService.test.ts:112
↓ 1 callers
Function
text
text joins the message content and its text parts. command handles image parts.
internal/plugins/ai/claudecode/claudecode.go:189
↓ 1 callers
Function
tightenMode
(path string)
internal/plugins/db/fsdb/storage.go:58
↓ 1 callers
Function
toTitle
toTitle lowercases s, then uppercases each rune that starts the string or follows a non-letter. Such a rune stays lowercase when a space follows it.
internal/plugins/template/text.go:17
↓ 1 callers
Function
truncate
(s string, max int)
internal/tools/keenable/keenable.go:198
↓ 1 callers
Function
tryGetMessage
tryGetMessage returns messageID from the embedded file for locale, or "" when absent.
internal/i18n/i18n.go:158
↓ 1 callers
Method
tryMethodYtDlp
(videoId string, language string, additionalArgs string)
internal/tools/youtube/youtube.go:287
↓ 1 callers
Method
tryMethodYtDlpWithTimestamps
(videoId string, language string, additionalArgs string)
internal/tools/youtube/youtube.go:291
↓ 1 callers
Method
tryPathMigration
tryPathMigration changes DefaultFolder from the old "patterns" path to "data/patterns" when that path has patterns.
internal/tools/patterns_loader.go:239
↓ 1 callers
Function
unlockExclusive
(f *os.File)
internal/plugins/db/fsdb/env_lock_unix.go:18
↓ 1 callers
Function
unsafePath
unsafePath reports whether a component of the clean, relative path is .git (any case) or a symlink that is in the root. A name comparison is not suff
internal/domain/file_manager.go:203
↓ 1 callers
Function
unstar_output
Remove an output from starred/favorites.
scripts/python_ui/streamlit.py:717
↓ 1 callers
Method
updateReleaseForRepo
(ctx context.Context, client *github.Client, owner, repo, version, releaseBody string)
cmd/generate_changelog/internal/release.go:131
↓ 1 callers
Function
update_provider_selection
Update provider and reset related states.
scripts/python_ui/streamlit.py:200
↓ 1 callers
Function
userLocaleDir
()
internal/i18n/i18n.go:101
↓ 1 callers
Method
validateExtensionDefinition
(ext *ExtensionDefinition)
internal/plugins/template/extension_registry.go:145
↓ 1 callers
Method
validateGitStatus
()
cmd/generate_changelog/internal/changelog/processing.go:360
↓ 1 callers
Method
validatePRState
validatePRState rejects a PR that is not open unless --closed-ok is set, and an open PR that is not mergeable.
cmd/generate_changelog/internal/changelog/processing.go:342
↓ 1 callers
Method
validateSetup
validateSetup prints the status of each required component and a warning when one is missing.
internal/core/plugin_registry.go:394
↓ 1 callers
Method
validateTextContent
validateTextContent returns an error if content is not valid UTF-8 or contains a null byte.
internal/plugins/template/fetch.go:82
↓ 1 callers
Method
verifyCommitPRMappings
verifyCommitPRMappings rewrites the commit-to-PR mapping table from all cached PRs.
cmd/generate_changelog/internal/changelog/generator.go:730
↓ 1 callers
Method
writeAllFlags
()
internal/cli/help.go:227
↓ 1 callers
Function
writeEnvFileAtomic
(path string, env map[string]string)
internal/plugins/db/fsdb/db.go:169
↓ 1 callers
Function
writeSSE
(w http.ResponseWriter, frame string)
internal/plugins/ai/openai/openai_test.go:281
↓ 1 callers
Function
writeSSEResponse
(w gin.ResponseWriter, response StreamResponse)
internal/server/chat.go:263
Method
AddSetupQuestionBool
(name string, required bool)
internal/plugins/plugin.go:91
Method
ApplyPattern
ApplyPattern handles the POST /patterns/:name/apply route @Summary Apply pattern with variables @Description Apply a pattern with variable substitutio
internal/server/patterns.go:98
Method
Ask
(label string)
internal/plugins/plugin.go:345
Method
Configure
Configure buildClient VendorsController based on the environment variables
internal/core/plugin_registry.go:521
Method
Configure
()
internal/core/chatter_test.go:42
Method
Configure
()
internal/core/plugin_registry_test.go:48
Method
Configure
()
internal/server/chat_test.go:143
Method
Configure
()
internal/plugins/ai/vendors.go:74
Method
Configure
()
internal/plugins/ai/vendors_test.go:22
Method
Configure
()
internal/plugins/ai/vendors_race_test.go:20
Function
Debug
Debug writes a debug message if the global level permits.
internal/log/log.go:58
Method
Delete
Delete handles the DELETE /storage/:name route
internal/server/storage.go:90
Method
Exists
Exists handles the GET /storage/exists/:name route. The storage Exists contract cannot report an invalid name, and the handler must validate the name
internal/server/storage.go:103
Function
ExpandPath
ExpandPath expands the ~ to user's home directory and returns absolute path It also checks if the path exists Returns expanded absolute path or error
internal/plugins/template/utils.go:19
Method
FetchAndPrintPlaylist
(playlistID string)
internal/tools/youtube/youtube.go:697
Method
FetchPRs
(prNumbers []int)
cmd/generate_changelog/internal/github/client.go:52
Method
Get
Get handles the GET /storage/:name route
internal/server/storage.go:69
Method
Get
Get handles the GET /patterns/:name route - returns raw pattern without variable processing @Summary Get a pattern @Description Retrieve a pattern by
internal/server/patterns.go:65
Method
Get
Get required for Storage interface
internal/plugins/db/fsdb/patterns.go:280
Method
GetCommitSHAsForPR
GetCommitSHAsForPR returns all commit SHAs for a given PR number
cmd/generate_changelog/internal/cache/cache.go:448
Method
GetConfig
(c *gin.Context)
internal/server/configuration.go:54
← previous
next →
901–1,000 of 1,885, ranked by callers