MCPcopy Create free account

hub / github.com/danielmiessler/Fabric / functions

Functions1,885 in github.com/danielmiessler/Fabric

↓ 2 callersFunctionaddFileToDirectory
addFileToDirectory adds a file under root at path. It creates missing intermediate directories.
cmd/code2context/code.go:188
↓ 2 callersFunctionallowTestServer
allowTestServer lets fetch connect to the loopback address of server.
internal/plugins/template/fetch_test.go:98
↓ 2 callersFunctionapiKeyMiddleware
(apiKey string, limiter *authFailureLimiter)
internal/server/auth.go:125
↓ 2 callersFunctionapiKeyPassedAsArg
apiKeyPassedAsArg reports whether the REST API key is on the command line, not in the FABRIC_API_KEY environment variable or the .env file.
internal/cli/setup_server.go:61
↓ 2 callersMethodappendVendorMessage
(message *chat.ChatCompletionMessage)
internal/plugins/db/fsdb/sessions.go:146
↓ 2 callersFunctionapplyPatternModel
applyPatternModel applies FABRIC_MODEL_<PATTERN> when no model is set. The value is a "vendor|model" pair or a model name for one pattern.
internal/cli/chat.go:138
↓ 2 callersMethodapplyVariables
( pattern *Pattern, variables map[string]string, input string)
internal/plugins/db/fsdb/patterns.go:99
↓ 2 callersFunctionapplyWithin
applyWithin starts ApplyTemplate with no input in a goroutine. If ApplyTemplate does not stop in 5 seconds, applyWithin stops the test with an error.
internal/plugins/template/template_test.go:252
↓ 2 callersFunctionbuildAuthorizeURL
(authBaseURL string, callbackURL string, pkce pkceCodes, state string)
internal/plugins/ai/codex/oauth.go:241
↓ 2 callersMethodbuildChatCompletionParams
( inputMsgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/openai/chat_completions.go:71
↓ 2 callersFunctionbuildFabricChatURL
buildFabricChatURL constructs a valid HTTP/HTTPS base URL from various address formats. It accepts fully-qualified URLs (http:// or https://), :port s
internal/server/ollama.go:495
↓ 2 callersMethodbuildMessageText
buildMessageText combines chat messages into a single prompt for Copilot.
internal/plugins/ai/copilot/copilot.go:191
↓ 2 callersFunctionbuildPromptChatRequest
(p PromptRequest, language string)
internal/server/chat.go:248
↓ 2 callersFunctioncaptureLog
captureLog returns what the standard logger writes until the test ends.
internal/server/log_values_test.go:21
↓ 2 callersMethodchat
chat sends req to /api/chat and calls fn for each JSON line of the response. A response with stream off has one line.
internal/plugins/ai/ollama/ollama.go:179
↓ 2 callersFunctioncheckForAIError
(summary string)
cmd/generate_changelog/internal/changelog/generator.go:385
↓ 2 callersFunctioncheckImageGenerationCompatibility
(model string)
internal/plugins/ai/openai/openai.go:137
↓ 2 callersMethodconfigure
()
internal/tools/custom_patterns/custom_patterns.go:35
↓ 2 callersMethodconfigure
()
internal/plugins/ai/anthropic/anthropic.go:240
↓ 2 callersMethodconvertChatMessage
(msg chat.ChatCompletionMessage)
internal/plugins/ai/openai/chat_completions.go:113
↓ 2 callersFunctionconvertMessage
(msg chat.ChatCompletionMessage)
internal/plugins/ai/openai/openai.go:419
↓ 2 callersMethodconvertToMarkdown
(file: File)
web/src/lib/services/PdfConversionService.ts:41
↓ 2 callersMethodcountPatternsInDirectory
countPatternsInDirectory returns the number of subdirectories in dir.
internal/tools/patterns_loader.go:280
↓ 2 callersMethodcreateChatRequest
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/ollama/ollama.go:266
↓ 2 callersMethodcreateChatRequest
( userInput: string, systemPromptText?: string, isPattern: boolean = false, )
web/src/lib/services/ChatService.ts:240
↓ 2 callersMethodcreateConversation
createConversation creates a new Copilot conversation.
internal/plugins/ai/copilot/copilot.go:212
↓ 2 callersFunctioncreateStorageAPI
(entityType: string)
web/src/lib/api/base.ts:60
↓ 2 callersFunctioncreate_pattern
Create a new pattern with necessary files and structure.
scripts/python_ui/streamlit.py:376
↓ 2 callersFunctiondedupInts
(ints []int)
cmd/generate_changelog/internal/git/walker.go:382
↓ 2 callersFunctiondetectSystemLocale
detectSystemLocale checks LC_ALL, LC_MESSAGES, and LANG in POSIX priority order. It returns the first valid locale, or "" when none is valid.
internal/i18n/locale.go:12
↓ 2 callersMethoddo
do sends a request to path on the Ollama server. It returns a *StatusError when the status is 400 or more.
internal/plugins/ai/ollama/ollama.go:146
↓ 2 callersFunctionerror
(message: string)
web/src/lib/services/toast-service.ts:10
↓ 2 callersFunctionextractAccountIDFromJWT
(jwt string)
internal/plugins/ai/codex/token.go:50
↓ 2 callersFunctionextractErrorMessage
(body []byte)
internal/plugins/ai/codex/errors.go:119
↓ 2 callersFunctionextractModelName
extractModelName returns "gemini-2.0-flash" for "publishers/google/models/gemini-2.0-flash".
internal/plugins/ai/vertexai/models.go:119
↓ 2 callersMethodextractResponseText
extractResponseText extracts the assistant's response from messages.
internal/plugins/ai/copilot/copilot.go:378
↓ 2 callersFunctionextractStepOutput
extractStepOutput returns the trimmed assistant response. It fails when the session has no message or the content is blank.
internal/cli/workflow.go:201
↓ 2 callersFunctionfail
(err error, stderr *bytes.Buffer)
internal/plugins/ai/claudecode/claudecode.go:250
↓ 2 callersMethodfail
fail records a wrong key and returns how long the client is locked, or 0.
internal/server/auth.go:67
↓ 2 callersFunctionfenceMarker
fenceMarker splits line into its leading run of three or more backticks or tildes and the rest of the line. It rejects a line indented by more than th
internal/domain/codeblock.go:71
↓ 2 callersFunctionfetchFilesViaGitCLI
fetchFilesViaGitCLI clones a repo with the git binary and extracts files. It is the fallback when go-git fails, for example from DNS errors on Termux.
internal/tools/githelper/githelper.go:124
↓ 2 callersFunctionfetchFilesViaGoGit
fetchFilesViaGoGit clones a repo in memory using go-git and extracts files.
internal/tools/githelper/githelper.go:58
↓ 2 callersMethodfetchPRs
(forcePRSync bool)
cmd/generate_changelog/internal/changelog/generator.go:189
↓ 2 callersMethodfetchStream
( request: ChatRequest, )
web/src/lib/services/ChatService.ts:46
↓ 2 callersFunctionfetch_models_once
Fetch models once and cache the results.
scripts/python_ui/streamlit.py:168
↓ 2 callersMethodfindVTTFilesWithFallback
findVTTFilesWithFallback returns one VTT file from dir. When requestedLanguage is set, it prefers a file tagged with that language, then any language-
internal/tools/youtube/youtube.go:720
↓ 2 callersFunctionfixMarkdown
(content string)
cmd/generate_changelog/internal/changelog/generator.go:474
↓ 2 callersFunctionformatCueTimestamp
(seconds float64)
internal/tools/youtube/youtube.go:491
↓ 2 callersMethodformatPR
(pr *github.PR)
cmd/generate_changelog/internal/changelog/generator.go:504
↓ 2 callersFunctionformatResults
(payload []byte)
internal/tools/parallel/parallel.go:108
↓ 2 callersFunctiongenerateGradientColor
(y: number, height: number)
web/src/lib/components/ui/connections/colors.ts:1
↓ 2 callersMethodgenerateWAVFile
generateWAVFile adds a WAV header to pcmData.
internal/plugins/ai/gemini/gemini.go:378
↓ 2 callersFunctiongetConfig
(t *testing.T, r *gin.Engine)
internal/server/configuration_test.go:121
↓ 2 callersMethodgetGeminiRegion
getGeminiRegion returns "global" for preview models. Vertex AI serves some preview models only on the global endpoint.
internal/plugins/ai/vertexai/vertexai.go:245
↓ 2 callersFunctiongetLocaleCandidates
getLocaleCandidates returns the requested locale, then its base language, then the default variant for that language, without duplicates. For "pt-PT"
internal/i18n/i18n.go:194
↓ 2 callersFunctiongetOutputFormatFromExtension
(imagePath string)
internal/plugins/ai/openai/openai_image.go:34
↓ 2 callersMethodgetSortedGroupsItems
getSortedGroupsItems returns a copy with groups and items sorted case-insensitively. It does not modify o.GroupsItems.
internal/util/groups_items.go:48
↓ 2 callersFunctionget_outputs_dir
Get the directory for storing outputs.
scripts/python_ui/streamlit.py:1031
↓ 2 callersFunctionhandlePromptExport
handlePromptExport prints the rendered prompt. Cli validates the flags before it calls this function.
internal/cli/prompt_export.go:15
↓ 2 callersFunctionhandleToolProcessing
handleToolProcessing runs the YouTube, web scrape, search, and Spotify tools and collects their output. When the run is not a chat request, it also pr
internal/cli/tools.go:14
↓ 2 callersFunctionhandleWorkflowProcessing
handleWorkflowProcessing loads, validates, and runs the workflow, then prints, copies, or writes the result.
internal/cli/workflow.go:218
↓ 2 callersFunctionhangingClient
(t *testing.T)
internal/plugins/ai/lmstudio/lmstudio_test.go:126
↓ 2 callersFunctionhangingServer
hangingServer answers nothing until the test ends.
internal/plugins/ai/bedrock/bedrock_stream_test.go:108
↓ 2 callersMethodinRoot
inRoot checks path with safePath and opens fileReadRoot. All operations get to the file through this root. os.Root rejects a path or a symbolic link t
internal/plugins/template/file.go:57
↓ 2 callersFunctioninferenceConfig
inferenceConfig returns the sampling settings for a Converse or ConverseStream request. Claude models reject a request that sets both temperature and
internal/plugins/ai/bedrock/bedrock.go:574
↓ 2 callersFunctioninferenceConfigOf
(t *testing.T, body []byte)
internal/plugins/ai/bedrock/bedrock_sampling_test.go:44
↓ 2 callersMethodinitParticles
()
web/src/lib/components/ui/connections/ParticleSystem.ts:29
↓ 2 callersFunctioninterpretPdfResult
(result: PdfProcessResult, fileName: string)
web/src/lib/services/PdfConversionService.ts:11
↓ 2 callersFunctionisConversationalModel
isConversationalModel rejects image, video, audio, embedding, legacy, and medical model names.
internal/plugins/ai/vertexai/models.go:180
↓ 2 callersMethodisDuplicateMessage
(message string, commits []*git.Commit)
cmd/generate_changelog/internal/changelog/generator.go:632
↓ 2 callersFunctionisMergeCommit
isMergeCommit reports whether a commit has more than one parent or a merge-style message.
cmd/generate_changelog/internal/changelog/processing.go:36
↓ 2 callersFunctionisRedacted
isRedacted returns true when a submitted value is the mask that maskAPIKey returns. This shows that the user did not change the field. A value that on
internal/server/configuration.go:50
↓ 2 callersMethodisTTSModel
(modelName string)
internal/plugins/ai/gemini/gemini.go:279
↓ 2 callersFunctionisTimeStamp
(s string)
internal/tools/youtube/youtube.go:401
↓ 2 callersFunctionisUsageLimitMessage
(message string)
internal/plugins/ai/codex/errors.go:180
↓ 2 callersFunctionisValidLocale
isValidLocale reports whether language.Parse accepts locale.
internal/i18n/locale.go:56
↓ 2 callersFunctionjoinPromptSections
joinPromptSections trims each part, drops empty ones, and joins the rest with newline separators.
internal/core/chatter.go:54
↓ 2 callersMethodloadPattern
(source string)
internal/plugins/db/fsdb/patterns.go:77
↓ 2 callersFunctionmakeRepo
makeRepo makes a git repository with patterns/a.md, a symlink patterns/link.md and patterns/sub/b.md, and returns its path.
internal/tools/githelper/githelper_test.go:52
↓ 2 callersFunctionmaskAPIKey
maskAPIKey replaces a secret key with a fixed mask (CWE-200). An empty value (key not configured) is returned unchanged so the UI can distinguish "not
internal/server/configuration.go:37
↓ 2 callersFunctionmaskSecret
maskSecret returns the first 4 and last 4 characters of a secret, or "****" when the secret has 12 characters or fewer.
internal/plugins/ai/bedrock/bedrock.go:180
↓ 2 callersFunctionmergeVars
(base, override map[string]string)
internal/cli/workflow.go:269
↓ 2 callersFunctionmodelPriority
modelPriority returns the sort rank. A lower rank sorts first.
internal/plugins/ai/vertexai/models.go:145
↓ 2 callersFunctionmodelsURLFor
(t *testing.T, baseURL string)
internal/plugins/ai/openai/models_cache_test.go:26
↓ 2 callersFunctionnewCommand
newCommand calls command and removes its working folder after the test.
internal/plugins/ai/claudecode/claudecode_test.go:124
↓ 2 callersFunctionnewConfiguredOpenAITestClient
(t *testing.T, baseURL string, implementsResponses bool)
internal/plugins/ai/openai/openai_test.go:273
↓ 2 callersFunctionnewGeminiTestClient
newGeminiTestClient points the genai SDK at a local server through the documented GOOGLE_GEMINI_BASE_URL variable.
internal/plugins/ai/gemini/gemini_test.go:261
↓ 2 callersFunctionnewHTTPClient
newHTTPClient never follows redirects: the API does not need them, and following one could send X-API-Key or the query to another host or over HTTP.
internal/tools/keenable/keenable.go:45
↓ 2 callersFunctionnewInactiveVendorRegistry
(t *testing.T, defaultVendor, defaultModel string, vendor *testVendor)
internal/core/plugin_registry_test.go:338
↓ 2 callersFunctionnewTraversalFixture
newTraversalFixture returns a storage entity in a temporary root and a marker file out of the entity directory. It also returns a check that fails the
internal/plugins/db/fsdb/storage_test.go:115
↓ 2 callersFunctionnormalizeLocale
normalizeLocale converts a POSIX locale string to a BCP 47 language-REGION tag. It drops the encoding and modifier suffixes and returns "" for "C" and
internal/i18n/locale.go:33
↓ 2 callersFunctionnormalizeSemverLikeVersion
(version string)
internal/plugins/ai/codex/token.go:87
↓ 2 callersFunctionnormalizeToBCP47
normalizeToBCP47 replaces underscores with hyphens, lowercases the language, uppercases the region, and drops any subtag after the region.
internal/i18n/i18n.go:172
↓ 2 callersFunctionparseGeminiThinking
(level domain.ThinkingLevel)
internal/plugins/ai/vertexai/vertexai.go:297
↓ 2 callersFunctionparseOllamaNumCtx
parseOllamaNumCtx extracts and validates the num_ctx parameter from Ollama request options. Returns: - (0, nil) if num_ctx is not present or is null -
internal/server/ollama.go:89
↓ 2 callersFunctionparseReasoningEffort
(level domain.ThinkingLevel)
internal/plugins/ai/openai/openai.go:307
↓ 2 callersMethodparseSSEStream
parseSSEStream parses the Server-Sent Events stream from Copilot.
internal/plugins/ai/copilot/copilot.go:330
↓ 2 callersFunctionparseSeconds
(secondsStr string)
internal/tools/youtube/youtube.go:456
↓ 2 callersFunctionparseTimestampToSeconds
parseTimestampToSeconds converts an HH:MM:SS or MM:SS timestamp to seconds.
internal/tools/youtube/youtube.go:425
↓ 2 callersFunctionparseTokenClaims
(jwt string)
internal/plugins/ai/codex/token.go:58
← previousnext →401–500 of 1,885, ranked by callers