MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions6,005 in github.com/PerpetualSoftware/pad

↓ 1 callersFunctionequalIDs
(a, b []string)
internal/server/handlers_timeline_collapse_test.go:46
↓ 1 callersFunctionequalStringSlices
(a, b []string)
internal/links/extract_test.go:874
↓ 1 callersFunctionerrCatalogMissing
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 callersMethoderrLogger
()
internal/mcp/server.go:134
↓ 1 callersFunctionerrMissingAction
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 callersFunctionerrResult
(message: string)
web/src/lib/webmcp/dispatch.ts:276
↓ 1 callersFunctionerrUnknownAction
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 callersFunctionescapeMarkdownAlt
Escape `[` and `]` in alt text so the markdown serializer's brackets stay balanced.
web/src/lib/components/editor/attachment-image.ts:142
↓ 1 callersFunctionescapeMarkdownLabel
* 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 callersFunctionescapeMarkdownLinkText
(s: string)
web/src/lib/utils/markdown.ts:683
↓ 1 callersFunctionescapeWikiBody
(s: string)
web/src/lib/utils/markdown.ts:689
↓ 1 callersFunctionexactItemNumberLookup
* 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 callersFunctionexecMulti
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 callersFunctionexecStderrMatchesAuthRequired
(lower string)
internal/mcp/errors.go:557
↓ 1 callersFunctionexecStderrMatchesItemNotFound
(lower string)
internal/mcp/errors.go:561
↓ 1 callersFunctionexecStderrMatchesNoWorkspace
(lower string)
internal/mcp/errors.go:553
↓ 1 callersFunctionexecStderrMatchesPermissionDenied
(lower string)
internal/mcp/errors.go:558
↓ 1 callersFunctionexecStderrMatchesUnknownWorkspace
(lower string)
internal/mcp/errors.go:554
↓ 1 callersFunctionexecStderrMatchesValidation
(lower string)
internal/mcp/errors.go:562
↓ 1 callersFunctionexecuteMove
(view: EditorView, fromPos: number, fromNode: any, targetPos: number)
web/src/lib/components/editor/block-drag-handle.ts:197
↓ 1 callersFunctionexperimentalCapabilities
experimentalCapabilities returns the map advertised at capabilities.experimental in the initialize handshake's result envelope. Lets clients discover
internal/mcp/meta.go:131
↓ 1 callersFunctionexportCmd
--- completion ---
cmd/pad/cmd_workspace.go:857
↓ 1 callersFunctionextensionForMIME
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 callersFunctionextractAllowDraft
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 callersFunctionextractAroundSubstring
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 callersFunctionextractBearer
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 callersFunctionextractEnumStrings
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 callersFunctionextractFieldString
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 callersFunctionextractFrontmatterRegion
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 callersFunctionextractHiddenFormValue
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 callersFunctionextractImportSpecifiers
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 callersFunctionextractItemRefFromBranch
(branch string)
cmd/pad/cmd_github.go:73
↓ 1 callersMethodextractParentLink
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 callersFunctionextractStringList
(raw any)
internal/models/item.go:486
↓ 1 callersFunctionextractStructuredCLIError
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 callersFunctionextractUpstreamErrorEnvelope
(body string)
internal/mcp/errors.go:989
↓ 1 callersFunctionextractValidationField
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 callersMethodfanOutLocally
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 callersMethodfeatureCount
featureCount returns the current count for a workspace-scoped feature.
internal/store/limits.go:176
↓ 1 callersFunctionfencedCodeRanges
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 callersFunctionfetchGitHubPR
fetchGitHubPR fetches PR data for the current branch using the gh CLI.
cmd/pad/cmd_github.go:81
↓ 1 callersFunctionfetchGitHubPRByNumber
(repo string, number int)
cmd/pad/reconcile.go:226
↓ 1 callersMethodfetchLibraryEndpoint
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 callersFunctionfilesFromDrop
Same idea for drop events — covers the dataTransfer.files surface.
web/src/lib/components/editor/attachment-upload.ts:128
↓ 1 callersFunctionfilesFromPaste
* 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 callersFunctionfilterAgentAttention
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 callersMethodfilterUserGrantsForCaller
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 callersFunctionfindBucket
(buckets []ReportBucket, label string)
internal/store/reports_test.go:12
↓ 1 callersFunctionfindFenceCloser
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 callersFunctionfindField
(fields: FieldDef[], key: string)
web/src/lib/components/share/shareView.ts:192
↓ 1 callersFunctionfindStatementEnd
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 callersFunctionfirstID
(items []models.Item)
internal/server/handlers_items_test.go:2043
↓ 1 callersFunctionfirstLine
(s string)
cmd/pad/help_cmdhelp_test.go:177
↓ 1 callersFunctionflagExists
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 callersMethodflagSource
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 callersFunctionflattenFields
(fieldsJSON: string | undefined)
web/src/lib/stores/localSearch.svelte.ts:271
↓ 1 callersFunctionflattenTags
(tagsJSON: string | undefined)
web/src/lib/stores/localSearch.svelte.ts:295
↓ 1 callersFunctionflipHtmlBlockToSource
( editor: Editor, insertionPoint: number, before: HtmlBlockSnapshotEntry[], )
web/src/lib/components/editor/extensions/htmlBlock.ts:87
↓ 1 callersFunctionflipToPreview
()
web/src/lib/components/editor/extensions/htmlBlock.ts:362
↓ 1 callersFunctionflipToSource
()
web/src/lib/components/editor/extensions/htmlBlock.ts:335
↓ 1 callersMethodflush
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 callersMethodflushNow
* 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 callersMethodflushNow
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 callersMethodforceReconnect
* 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 callersFunctionformatAttachmentSize
(bytes: number)
web/src/lib/markdown/attachments.ts:78
↓ 1 callersFunctionformatBytes
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 callersMethodformatSupported
(format string)
internal/attachments/processor_purego.go:168
↓ 1 callersFunctionforward
(sig)
web/e2e/run-pad.mjs:30
↓ 1 callersMethodfreeInvocationSlug
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 callersFunctiongenerateId
()
web/src/lib/stores/toast.svelte.ts:35
↓ 1 callersFunctiongenerateShareToken
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 callersFunctiongenerateTwoFAChallenge
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 callersFunctiongenerateTwoFASecret
generateTwoFASecret creates a random 32-byte secret for signing 2FA challenge tokens.
internal/server/twofactor_challenge.go:17
↓ 1 callersFunctiongetActiveKey
(pathname: string, wsPrefix: string)
web/src/lib/nav/destinations.ts:78
↓ 1 callersFunctiongetAuthedSession
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 callersMethodgetCollectionSlugTx
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 callersFunctiongetCurrentBranch
getCurrentBranch returns the current git branch name.
cmd/pad/cmd_github.go:62
↓ 1 callersFunctiongetDialog
()
web/src/lib/components/common/KeyboardShortcuts.svelte.test.ts:12
↓ 1 callersFunctiongetDialog
()
web/src/lib/components/common/Modal.svelte.test.ts:28
↓ 1 callersFunctiongetGaugeValue
getGaugeValue extracts the current value from a Prometheus Gauge.
internal/metrics/metrics_test.go:473
↓ 1 callersMethodgetOrCreate
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 callersMethodgetReaction
(commentID, userID, emoji string)
internal/store/reactions.go:31
↓ 1 callersFunctiongetScrollContainer
()
web/src/lib/components/editor/block-drag-handle.ts:364
↓ 1 callersFunctiongetTerminalOptions
(collection: Collection)
web/src/lib/types/index.ts:1645
↓ 1 callersMethodgetValue
Read the current textarea value.
web/src/lib/utils/commentAttachments.ts:93
↓ 1 callersFunctiongithubBranchExists
(repo, branch string)
cmd/pad/reconcile.go:255
↓ 1 callersFunctiongithubCmd
()
cmd/pad/cmd_github.go:34
↓ 1 callersFunctiongithubLinkCmd
()
cmd/pad/cmd_github.go:120
↓ 1 callersFunctiongithubStatusCmd
()
cmd/pad/cmd_github.go:217
↓ 1 callersFunctiongithubUnlinkCmd
()
cmd/pad/cmd_github.go:322
↓ 1 callersMethodgoos
()
internal/mcp/install.go:604
↓ 1 callersFunctiongraphEdgeType
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 callersFunctionguardArtifactFrontmatter
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 callersMethodguestResourceFilterIncludeDeletedItems
guestResourceFilterIncludeDeletedItems is the delta-sync variant of guestResourceFilter. It uses GuestVisibleResourcesIncludeDeleted under the hood so
internal/server/server.go:2200
↓ 1 callersMethodhandleControlMessage
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 callersMethodhandleControlMessage
(raw: string, sourceWs: WebSocket | null)
web/src/lib/collab/wsProvider.svelte.ts:847
↓ 1 callersMethodhandleExportWorkspaceBundle
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 callersMethodhandleGetWorkspaceStorageUsage
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 callersMethodhandleImportWorkspaceBundle
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 callersMethodhandleMCPOAuthAuth
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
← previousnext →2,101–2,200 of 6,005, ranked by callers