Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
6,005 in github.com/PerpetualSoftware/pad
⨍
Functions
6,005
◇
Types & classes
763
↓ 1 callers
Function
equalIDs
(a, b []string)
internal/server/handlers_timeline_collapse_test.go:46
↓ 1 callers
Function
equalStringSlices
(a, b []string)
internal/links/extract_test.go:874
↓ 1 callers
Function
errCatalogMissing
errCatalogMissing keeps the validation error messages in one place so the surface is consistent across the three required fields.
internal/mcp/catalog.go:252
↓ 1 callers
Method
errLogger
()
internal/mcp/server.go:134
↓ 1 callers
Function
errMissingAction
errMissingAction is the structured result returned when the input has no `action` field. Lists the valid actions inline so agents can retry with a cor
internal/mcp/catalog.go:393
↓ 1 callers
Function
errResult
(message: string)
web/src/lib/webmcp/dispatch.ts:276
↓ 1 callers
Function
errUnknownAction
errUnknownAction is the structured result returned when `action` is set but not in the tool's action table. Same listing as errMissingAction so agents
internal/mcp/catalog.go:404
↓ 1 callers
Function
escapeMarkdownAlt
Escape `[` and `]` in alt text so the markdown serializer's brackets stay balanced.
web/src/lib/components/editor/attachment-image.ts:142
↓ 1 callers
Function
escapeMarkdownLabel
* Escape the characters that would break out of a markdown link/image * label (`[label](...)`). Backslash first so we don't double-escape the * esca
web/src/lib/utils/commentAttachments.ts:74
↓ 1 callers
Function
escapeMarkdownLinkText
(s: string)
web/src/lib/utils/markdown.ts:683
↓ 1 callers
Function
escapeWikiBody
(s: string)
web/src/lib/utils/markdown.ts:689
↓ 1 callers
Function
exactItemNumberLookup
* Exact item_number lookup. Used by the `#N` / `item:N` / bare-digit * paths in `search()`. MiniSearch's tokenized search would surface * every doc
web/src/lib/stores/localSearch.svelte.ts:368
↓ 1 callers
Function
execMulti
execMulti executes multiple SQL statements by iteratively using database/sql's Exec which processes one statement at a time, then advancing past it us
internal/store/store.go:476
↓ 1 callers
Function
execStderrMatchesAuthRequired
(lower string)
internal/mcp/errors.go:557
↓ 1 callers
Function
execStderrMatchesItemNotFound
(lower string)
internal/mcp/errors.go:561
↓ 1 callers
Function
execStderrMatchesNoWorkspace
(lower string)
internal/mcp/errors.go:553
↓ 1 callers
Function
execStderrMatchesPermissionDenied
(lower string)
internal/mcp/errors.go:558
↓ 1 callers
Function
execStderrMatchesUnknownWorkspace
(lower string)
internal/mcp/errors.go:554
↓ 1 callers
Function
execStderrMatchesValidation
(lower string)
internal/mcp/errors.go:562
↓ 1 callers
Function
executeMove
(view: EditorView, fromPos: number, fromNode: any, targetPos: number)
web/src/lib/components/editor/block-drag-handle.ts:197
↓ 1 callers
Function
experimentalCapabilities
experimentalCapabilities returns the map advertised at capabilities.experimental in the initialize handshake's result envelope. Lets clients discover
internal/mcp/meta.go:131
↓ 1 callers
Function
exportCmd
--- completion ---
cmd/pad/cmd_workspace.go:857
↓ 1 callers
Function
extensionForMIME
extensionForMIME returns a leading-dot extension for a MIME type, or "" if the MIME isn't on our known list. Used as a last-resort fallback when the C
cmd/pad/cmd_attachment.go:250
↓ 1 callers
Function
extractAllowDraft
extractAllowDraft removes any `allow-draft` / `allow_draft` bareword token from the raw CLI args and reports whether one was present. The returned boo
internal/server/handlers_playbooks.go:278
↓ 1 callers
Function
extractAroundSubstring
extractAroundSubstring returns body[match-radius:match+radius] when substr is present, or a "(not found)" sentinel. Helper for the error message above
internal/server/handlers_oauth_test.go:1508
↓ 1 callers
Function
extractBearer
extractBearer parses an Authorization header value. Returns the token and true on success. Anything that isn't "Bearer <token>" (case-insensitive sche
internal/server/middleware_mcp_auth.go:559
↓ 1 callers
Function
extractEnumStrings
extractEnumStrings normalizes the schema's enum representation to a string set, accepting either []string or []any (mcp-go's exact shape has flipped h
internal/mcp/catalog_workspace_lifecycle_test.go:61
↓ 1 callers
Function
extractFieldString
extractFieldString reads a top-level scalar string from a JSON-encoded fields map. Returns "" when the JSON is empty, malformed, the key is missing, o
internal/server/handlers_items_open_children_guard.go:369
↓ 1 callers
Function
extractFrontmatterRegion
extractFrontmatterRegion returns the YAML text between the leading "---\n" fence and the next line equal to "---". Returns ("", false) when the openin
internal/server/artifact_import.go:170
↓ 1 callers
Function
extractHiddenFormValue
extractHiddenFormValue pulls the value of a hidden <input name="..."> out of rendered consent HTML, mirroring what a browser would submit. Values are
internal/server/handlers_oauth_test.go:453
↓ 1 callers
Function
extractImportSpecifiers
extractImportSpecifiers pulls the module specifiers out of every import shape we know about: static `import ... from '...'`, side-effect `import '...'
internal/server/share_page_collab_isolation_test.go:178
↓ 1 callers
Function
extractItemRefFromBranch
(branch string)
cmd/pad/cmd_github.go:73
↓ 1 callers
Method
extractParentLink
checkUniqueFields enforces FieldDef.UniqueScope == "workspace_collection" for the given collection. For each schema field with that scope, any non-emp
internal/server/handlers_items.go:2369
↓ 1 callers
Function
extractStringList
(raw any)
internal/models/item.go:486
↓ 1 callers
Function
extractStructuredCLIError
extractStructuredCLIError scans stderr for the `pad-structured-error/v1: {json}\n` marker line and lifts the structured error envelope into an MCP res
internal/mcp/errors.go:391
↓ 1 callers
Function
extractUpstreamErrorEnvelope
(body string)
internal/mcp/errors.go:989
↓ 1 callers
Function
extractValidationField
extractValidationField pulls the field name out of a BuildCLIArgs error message, returning empty string when no match is found.
internal/mcp/errors.go:604
↓ 1 callers
Method
fanOutLocally
fanOutLocally distributes an event to all local subscribers for the event's workspace and stores it in the replay buffer.
internal/events/redis_bus.go:272
↓ 1 callers
Method
featureCount
featureCount returns the current count for a workspace-scoped feature.
internal/store/limits.go:176
↓ 1 callers
Function
fencedCodeRanges
fencedCodeRanges returns half-open `[start, end)` byte ranges that cover every fenced (triple-backtick) code block in `content`, including the opening
internal/links/extract.go:134
↓ 1 callers
Function
fetchGitHubPR
fetchGitHubPR fetches PR data for the current branch using the gh CLI.
cmd/pad/cmd_github.go:81
↓ 1 callers
Function
fetchGitHubPRByNumber
(repo string, number int)
cmd/pad/reconcile.go:226
↓ 1 callers
Method
fetchLibraryEndpoint
fetchLibraryEndpoint GETs one of the library endpoints and decodes the JSON body into a generic any so the caller can stuff it into the composed respo
internal/mcp/dispatch_http_project.go:757
↓ 1 callers
Function
filesFromDrop
Same idea for drop events — covers the dataTransfer.files surface.
web/src/lib/components/editor/attachment-upload.ts:128
↓ 1 callers
Function
filesFromPaste
* Extract file payloads from a paste event. Falls back to the empty * array when the clipboard has no files (regular text paste, etc.) so * the call
web/src/lib/components/editor/attachment-upload.ts:116
↓ 1 callers
Function
filterAgentAttention
filterAgentAttention mirrors cmd/pad/query.go's helper of the same name — keeps only the attention types agents care about (stalled, blocked, overdue,
internal/mcp/dispatch_http_project.go:243
↓ 1 callers
Method
filterUserGrantsForCaller
filterUserGrantsForCaller narrows collGrants/itemGrants — the TARGET user's grants, already loaded by the caller — down to what the CALLER can see. On
internal/server/server.go:2285
↓ 1 callers
Function
findBucket
(buckets []ReportBucket, label string)
internal/store/reports_test.go:12
↓ 1 callers
Function
findFenceCloser
findFenceCloser scans forward from `start` looking for a line that begins with at least `tickCount` consecutive `fenceChar` characters (after up to th
internal/links/extract.go:266
↓ 1 callers
Function
findField
(fields: FieldDef[], key: string)
web/src/lib/components/share/shareView.ts:192
↓ 1 callers
Function
findStatementEnd
findStatementEnd finds the index of the semicolon that ends the next complete SQL statement, correctly handling BEGIN...END blocks.
internal/store/store.go:742
↓ 1 callers
Function
firstID
(items []models.Item)
internal/server/handlers_items_test.go:2043
↓ 1 callers
Function
firstLine
(s string)
cmd/pad/help_cmdhelp_test.go:177
↓ 1 callers
Function
flagExists
flagExists reports whether `name` is a known flag on cmd or any of its ancestors (covers persistent / inherited flags). Both long and short forms are
internal/cmdhelp/example_validation.go:118
↓ 1 callers
Method
flagSource
flagSource looks up the enum_source for a flag on the given command path. Returns ("", false) when no binding applies.
internal/cmdhelp/dynamic.go:95
↓ 1 callers
Function
flattenFields
(fieldsJSON: string | undefined)
web/src/lib/stores/localSearch.svelte.ts:271
↓ 1 callers
Function
flattenTags
(tagsJSON: string | undefined)
web/src/lib/stores/localSearch.svelte.ts:295
↓ 1 callers
Function
flipHtmlBlockToSource
( editor: Editor, insertionPoint: number, before: HtmlBlockSnapshotEntry[], )
web/src/lib/components/editor/extensions/htmlBlock.ts:87
↓ 1 callers
Function
flipToPreview
()
web/src/lib/components/editor/extensions/htmlBlock.ts:362
↓ 1 callers
Function
flipToSource
()
web/src/lib/components/editor/extensions/htmlBlock.ts:335
↓ 1 callers
Method
flush
Run a flush immediately for the given `markdown` + `ctx`, applying the * full recovery/dedupe gauntlet before the injected PATCH. Used by the *
web/src/lib/collab/collabFlush.svelte.ts:114
↓ 1 callers
Method
flushNow
* Fire the pending save immediately, cancelling any queued debounce so it * can't fire a second, older-content PATCH. No-op (returns false) when *
web/src/lib/items/contentSaver.svelte.ts:50
↓ 1 callers
Method
flushNow
Cancel the debounce, read the live editor markdown, and flush it now. * Returns false (no-op) when the editor is unavailable. Used by editor * t
web/src/lib/collab/collabFlush.svelte.ts:119
↓ 1 callers
Method
forceReconnect
* Cancel any pending backoff timer, tear down any existing * socket (including an apparently-OPEN one), and try connecting * fresh. Idempotent. Sa
web/src/lib/collab/wsProvider.svelte.ts:539
↓ 1 callers
Function
formatAttachmentSize
(bytes: number)
web/src/lib/markdown/attachments.ts:78
↓ 1 callers
Function
formatBytes
Format a byte count as a human-readable string ("832 B", "1.2 MB", "5 GB").
web/src/lib/components/editor/attachment-chip.ts:133
↓ 1 callers
Method
formatSupported
(format string)
internal/attachments/processor_purego.go:168
↓ 1 callers
Function
forward
(sig)
web/e2e/run-pad.mjs:30
↓ 1 callers
Method
freeInvocationSlug
freeInvocationSlug returns an invocation_slug that's free in the destination collection. If the requested slug is already taken it appends -2, -3, … u
internal/server/handlers_artifact_import.go:231
↓ 1 callers
Function
generateId
()
web/src/lib/stores/toast.svelte.ts:35
↓ 1 callers
Function
generateShareToken
generateShareToken creates a cryptographically random URL-safe token with at least 128 bits of entropy and returns both the raw token and its SHA-256
internal/store/share_links.go:19
↓ 1 callers
Function
generateTwoFAChallenge
generateTwoFAChallenge creates a short-lived, HMAC-signed challenge token that proves the user already passed password verification. The token is boun
internal/server/twofactor_challenge.go:28
↓ 1 callers
Function
generateTwoFASecret
generateTwoFASecret creates a random 32-byte secret for signing 2FA challenge tokens.
internal/server/twofactor_challenge.go:17
↓ 1 callers
Function
getActiveKey
(pathname: string, wsPrefix: string)
web/src/lib/nav/destinations.ts:78
↓ 1 callers
Function
getAuthedSession
getAuthedSession issues a GET as a logged-in user via a session cookie (GET needs no CSRF). The UA + IP match CreateSession so the session-binding mid
internal/server/handlers_items_moved_out_test.go:14
↓ 1 callers
Method
getCollectionSlugTx
getCollectionSlugTx reads collections.slug for a collection_id inside the supplied tx. Tiny helper used by the wiki-link cascade hooks that need the s
internal/store/items.go:322
↓ 1 callers
Function
getCurrentBranch
getCurrentBranch returns the current git branch name.
cmd/pad/cmd_github.go:62
↓ 1 callers
Function
getDialog
()
web/src/lib/components/common/KeyboardShortcuts.svelte.test.ts:12
↓ 1 callers
Function
getDialog
()
web/src/lib/components/common/Modal.svelte.test.ts:28
↓ 1 callers
Function
getGaugeValue
getGaugeValue extracts the current value from a Prometheus Gauge.
internal/metrics/metrics_test.go:473
↓ 1 callers
Method
getOrCreate
getOrCreate returns the existing Room for itemID or, atomically under m.mu, mints a new one. Holding m.mu across the lookup + insertion keeps the grac
internal/collab/manager.go:606
↓ 1 callers
Method
getReaction
(commentID, userID, emoji string)
internal/store/reactions.go:31
↓ 1 callers
Function
getScrollContainer
()
web/src/lib/components/editor/block-drag-handle.ts:364
↓ 1 callers
Function
getTerminalOptions
(collection: Collection)
web/src/lib/types/index.ts:1645
↓ 1 callers
Method
getValue
Read the current textarea value.
web/src/lib/utils/commentAttachments.ts:93
↓ 1 callers
Function
githubBranchExists
(repo, branch string)
cmd/pad/reconcile.go:255
↓ 1 callers
Function
githubCmd
()
cmd/pad/cmd_github.go:34
↓ 1 callers
Function
githubLinkCmd
()
cmd/pad/cmd_github.go:120
↓ 1 callers
Function
githubStatusCmd
()
cmd/pad/cmd_github.go:217
↓ 1 callers
Function
githubUnlinkCmd
()
cmd/pad/cmd_github.go:322
↓ 1 callers
Method
goos
()
internal/mcp/install.go:604
↓ 1 callers
Function
graphEdgeType
graphEdgeType maps a stored item_links.link_type to the hyphenated edge vocabulary the graph API advertises. Stored values are first canonicalized thr
internal/store/graph.go:28
↓ 1 callers
Function
guardArtifactFrontmatter
guardArtifactFrontmatter extracts the leading "---\n...\n---" frontmatter region from the artifact bytes and walks it as a yaml.Node tree to enforce t
internal/server/artifact_import.go:108
↓ 1 callers
Method
guestResourceFilterIncludeDeletedItems
guestResourceFilterIncludeDeletedItems is the delta-sync variant of guestResourceFilter. It uses GuestVisibleResourcesIncludeDeleted under the hood so
internal/server/server.go:2200
↓ 1 callers
Method
handleControlMessage
handleControlMessage dispatches a TextMessage frame received from a peer. Today the only valid type is applier_ack (TASK-1257); any other type is drop
internal/collab/room.go:454
↓ 1 callers
Method
handleControlMessage
(raw: string, sourceWs: WebSocket | null)
web/src/lib/collab/wsProvider.svelte.ts:847
↓ 1 callers
Method
handleExportWorkspaceBundle
handleExportWorkspaceBundle streams a tar.gz containing the workspace JSON export plus every original (non-thumbnail) attachment blob and a manifest.
internal/server/handlers_export_bundle.go:81
↓ 1 callers
Method
handleGetWorkspaceStorageUsage
handleGetWorkspaceStorageUsage returns the consolidated quota summary for the workspace: used bytes, effective limit, the owner's plan, and whether a
internal/server/handlers_storage.go:116
↓ 1 callers
Method
handleImportWorkspaceBundle
handleImportWorkspaceBundle accepts a tar.gz bundle produced by the export endpoint and rebuilds the workspace including all attachment blobs. The ha
internal/server/handlers_import_bundle.go:100
↓ 1 callers
Method
handleMCPOAuthAuth
handleMCPOAuthAuth runs introspection against the OAuth server for any non-PAT bearer. Validates: - Token is recognized (storage lookup) and active.
internal/server/middleware_mcp_auth.go:226
← previous
next →
2,101–2,200 of 6,005, ranked by callers