MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions6,005 in github.com/PerpetualSoftware/pad

↓ 1 callersFunctioncontains
contains is a local substring helper to keep the templates_test.go file dependency-free. The standard library's strings.Contains would also work; keep
internal/collections/templates_test.go:316
↓ 1 callersFunctioncontains
(s, substr string)
internal/cli/agents_test.go:147
↓ 1 callersFunctioncontains
(haystack []string, needle string)
internal/mcp/catalog_test.go:350
↓ 1 callersFunctioncontainsHeader
containsHeader does a case-insensitive comma-separated lookup.
internal/server/handlers_auth_bootstrap_token_test.go:343
↓ 1 callersFunctioncontainsPair
containsPair returns true when args contains an adjacent (flag, value) pair. Used to assert "--workspace docapp" appears in BuildCLIArgs's output with
internal/mcp/bug985_test.go:209
↓ 1 callersFunctioncontainsStr
(s, sub string)
internal/cli/agents_test.go:151
↓ 1 callersFunctioncontainsTitle
(results []ItemSearchResult, title string, topN int)
internal/store/search_quality_test.go:178
↓ 1 callersFunctionconventionPriorityRank
conventionPriorityRank ranks convention priority strings (must > should > nice-to-have). Lower rank = higher priority. Unknown values rank last so unt
internal/server/handlers_bootstrap.go:745
↓ 1 callersFunctioncopyFile
(src, dst string)
internal/store/storetest/storetest.go:162
↓ 1 callersFunctioncopyFileContents
copyFileContents copies src to dst atomically: it writes to a sibling temp file, fsyncs it, then renames it into place. A failure therefore never leav
internal/store/migration_guard.go:175
↓ 1 callersFunctioncopyTemplateFile
(src, dst string)
internal/store/store_test.go:127
↓ 1 callersFunctioncountAndValue
countAndValue returns the number of times flag appears followed by a value, plus the LAST such value. Used to assert "exactly one --workspace and it h
internal/mcp/bug985_test.go:221
↓ 1 callersFunctioncountEmailVerificationTokens
(t *testing.T, srv *Server)
internal/server/token_reaper_test.go:33
↓ 1 callersFunctioncountVerificationTokens
(t *testing.T, s *Store)
internal/store/email_verification_test.go:48
↓ 1 callersFunctioncreateCmd
--- create ---
cmd/pad/cmd_item.go:67
↓ 1 callersFunctioncreateCollabFlusher
(config: CollabFlusherConfig)
web/src/lib/collab/collabFlush.svelte.ts:133
↓ 1 callersFunctioncreateContentSaver
(config: ContentSaverConfig)
web/src/lib/items/contentSaver.svelte.ts:63
↓ 1 callersFunctioncreateGhost
(blockDOM: HTMLElement)
web/src/lib/components/editor/block-drag-handle.ts:623
↓ 1 callersFunctioncreateSSEService
()
web/src/lib/services/sse.svelte.ts:58
↓ 1 callersFunctioncreateSyncService
()
web/src/lib/services/sync.svelte.ts:46
↓ 1 callersFunctioncreateTaggedItem
createTaggedItem creates an item with the given JSON tags array.
internal/store/tags_test.go:10
↓ 1 callersFunctioncreateThrowawayUser
( baseURL: string, adminToken: string, identity: { email: string; username: string }, name: string )
web/e2e/account-delete.spec.ts:49
↓ 1 callersFunctioncropButton
()
web/src/lib/components/editor/attachment-image.ts:571
↓ 1 callersFunctionctx
(overrides: Partial<CollabFlushContext> = {})
web/src/lib/collab/collabFlush.test.ts:9
↓ 1 callersFunctioncurrentBlockType
(block: BlockInfo)
web/src/lib/components/editor/block-drag-handle.ts:43
↓ 1 callersFunctioncurrentUserFromRequest
currentUserFromRequest / isAPITokenFromRequest mirror the package-private accessors in internal/server. We need read-only access for tests; surface a
internal/mcp/dispatch_http_test.go:86
↓ 1 callersMethodcwd
()
internal/mcp/install.go:611
↓ 1 callersFunctiondbBackupCmd
()
cmd/pad/cmd_db.go:96
↓ 1 callersFunctiondbCmd
()
cmd/pad/groups.go:191
↓ 1 callersFunctiondbMigrateToPgCmd
()
cmd/pad/cmd_db.go:356
↓ 1 callersFunctiondbRestoreCmd
()
cmd/pad/cmd_db.go:202
↓ 1 callersFunctiondecideCmd
()
cmd/pad/notes.go:86
↓ 1 callersFunctiondefaultCollabBaseUrl
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:1165
↓ 1 callersFunctiondefaultStatus
defaultStatus renders an empty status as a readable placeholder for error messages.
internal/server/handlers_playbooks.go:265
↓ 1 callersMethoddefaultTransport
defaultTransport lazily builds and memoizes the package's safe transport. Reusing one transport across Fetch calls keeps the keep-alive pool bounded a
internal/urlimport/fetch.go:251
↓ 1 callersFunctiondeleteCmd
--- delete ---
cmd/pad/cmd_item.go:1097
↓ 1 callersFunctiondemoSeedItems
()
internal/collections/templates.go:762
↓ 1 callersFunctiondense
(ids: string[])
web/src/lib/collections/reorder.test.ts:12
↓ 1 callersFunctiondepsCmd
()
cmd/pad/cmd_item.go:1668
↓ 1 callersMethodderiveItemClosure
deriveItemClosure computes derived closure (superseded, implemented, split) from item links. When vis is non-nil, links to items in hidden collections
internal/server/item_lineage.go:124
↓ 1 callersFunctiondetectFrontendProject
(dir string, info *ProjectInfo)
internal/cli/detect.go:278
↓ 1 callersFunctiondetectGitRemoteSlug
(dir string)
internal/cli/workspace_context_detect.go:146
↓ 1 callersFunctiondetectHiddenContent
(html: string)
web/src/lib/utils/hiddenContentDetector.ts:76
↓ 1 callersFunctiondetectMakeBuildCmd
(dir string)
internal/cli/detect.go:230
↓ 1 callersFunctiondetectMakeDevCmd
(dir string)
internal/cli/detect.go:257
↓ 1 callersFunctiondetectMakeSetupCmd
(dir string)
internal/cli/detect.go:245
↓ 1 callersFunctiondetectMakeTestCmd
(dir string)
internal/cli/detect.go:213
↓ 1 callersFunctiondetectNodePackageManager
(dir string)
internal/cli/detect.go:326
↓ 1 callersFunctiondetectPlatform
()
web/src/lib/utils/platform.ts:15
↓ 1 callersFunctiondetectWorkspaceAssumptions
(dir string, cfg *config.Config)
internal/cli/workspace_context_detect.go:125
↓ 1 callersFunctiondetectWorkspaceCommands
(info ProjectInfo)
internal/cli/workspace_context_detect.go:97
↓ 1 callersFunctiondetectWorkspaceDeployment
(cfg *config.Config)
internal/cli/workspace_context_detect.go:110
↓ 1 callersFunctiondetectWorkspacePaths
(dir string)
internal/cli/workspace_context_detect.go:73
↓ 1 callersFunctiondetectWorkspaceRepositories
(dir string)
internal/cli/workspace_context_detect.go:51
↓ 1 callersFunctiondetectedNames
(tools []AgentTool)
internal/cli/agents_test.go:185
↓ 1 callersFunctiondetermineSync
(absenceMs: number)
web/src/lib/services/sync.svelte.ts:128
↓ 1 callersFunctiondirPresent
dirPresent reports whether any of dirs (relative to base) exists as a directory.
internal/cli/agents.go:123
↓ 1 callersFunctiondisabledDirections
(index: number, length: number)
web/src/lib/collections/reorder.ts:117
↓ 1 callersFunctiondismiss
(id: string)
web/src/lib/stores/toast.svelte.ts:69
↓ 1 callersMethoddispatchAttachmentList
dispatchAttachmentList handles `pad attachment list` — pure metadata query against /api/v1/workspaces/{ws}/attachments. Custom dispatcher (rather tha
internal/mcp/dispatch_http_attachments.go:35
↓ 1 callersMethoddispatchAttachmentShow
dispatchAttachmentShow handles `pad attachment show <attachment-id> [--variant ...]` — metadata-only HEAD request. The HEAD response has no body; the
internal/mcp/dispatch_http_attachments.go:116
↓ 1 callersMethoddispatchCreateItemLink
dispatchCreateItemLink handles the create-side of the link surface (block, blocked-by, implements, supersedes, split-from). Resolves both refs, then P
internal/mcp/dispatch_http_links.go:181
↓ 1 callersMethoddispatchDeleteItemLink
dispatchDeleteItemLink handles the un-* side of the link surface (unblock, unimplements, unsupersede, unsplit). Mirrors the CLI's deleteLineageLink +
internal/mcp/dispatch_http_links.go:240
↓ 1 callersMethoddispatchItemDecide
dispatchItemDecide is the decision-log analogue of dispatchItemNote — same RMW shape, just using AppendDecisionLogEntry on a different fields slot.
internal/mcp/dispatch_http_project.go:545
↓ 1 callersMethoddispatchItemDeps
dispatchItemDeps handles `pad item deps <ref>` — the simplest of the three read-only link queries. CLI parity: `deps --format json` returns the raw `/
internal/mcp/dispatch_http_links.go:331
↓ 1 callersMethoddispatchItemImplementedBy
dispatchItemImplementedBy handles `pad item implemented-by <ref>` with the CLI's filtered shape (cmd/pad/query.go implementedByCmd): {"item_ref":...
internal/mcp/dispatch_http_links.go:429
↓ 1 callersMethoddispatchItemImport
dispatchItemImport reproduces `pad item import <file>` over the HTTP MCP transport. It POSTs the raw artifact text (YAML frontmatter + Markdown body)
internal/mcp/dispatch_http_artifact.go:43
↓ 1 callersFunctiondispatchItemLink
( api: Api, ws: string, args: Record<string, unknown>, )
web/src/lib/webmcp/dispatch.ts:329
↓ 1 callersMethoddispatchItemNote
--- item note + decide (RMW append) --- dispatchItemNote handles `pad item note <ref> <summary> [--details ...]` — appends an implementation-note entr
internal/mcp/dispatch_http_project.go:492
↓ 1 callersMethoddispatchItemRelated
dispatchItemRelated handles `pad item related <ref>` and emits the grouped response shape the CLI's `--format json` output uses (cmd/pad/query.go rela
internal/mcp/dispatch_http_links.go:382
↓ 1 callersFunctiondispatchItemUnlink
( api: Api, ws: string, args: Record<string, unknown>, )
web/src/lib/webmcp/dispatch.ts:343
↓ 1 callersMethoddispatchItemUpdate
dispatchItemUpdate handles `pad item update <ref>` with full CLI parity, including the read-modify-write merge of the fields JSON. The handler at han
internal/mcp/dispatch_http_advanced.go:255
↓ 1 callersMethoddispatchLibraryActivate
--- library activate --- dispatchLibraryActivate reproduces `pad library activate <title>`: looks up a library entry by title (conventions first, then
internal/mcp/dispatch_http_library.go:40
↓ 1 callersMethoddispatchLibraryList
dispatchLibraryList composes the /convention-library and playbook-library endpoints to mirror `pad library list --format json`. The CLI's JSON output
internal/mcp/dispatch_http_project.go:677
↓ 1 callersMethoddispatchProjectChangelog
dispatchProjectChangelog proxies `project changelog` to GET workspaces/{ws}/changelog?days=N&since=YYYY-MM-DD&parent=REF — handleGetProjectChangelog (
internal/mcp/dispatch_http_project.go:158
↓ 1 callersMethoddispatchProjectNext
dispatchProjectNext proxies `project next` to GET workspaces/{ws}/next — handleGetProjectNext (internal/server/handlers_project_intel.go), the browser
internal/mcp/dispatch_http_project.go:94
↓ 1 callersMethoddispatchProjectReady
dispatchProjectReady reproduces `pad project ready --format json` — the CLI returns `{count, results}` extracted from the dashboard's SuggestedNext sl
internal/mcp/dispatch_http_project.go:29
↓ 1 callersMethoddispatchProjectStale
dispatchProjectStale reproduces `pad project stale --format json` — CLI filters the dashboard's Attention slice to "interesting" types (stalled / bloc
internal/mcp/dispatch_http_project.go:57
↓ 1 callersMethoddispatchProjectStandup
dispatchProjectStandup proxies `project standup` to GET workspaces/{ws}/standup?days=N — handleGetProjectStandup (internal/server/handlers_project_int
internal/mcp/dispatch_http_project.go:123
↓ 1 callersFunctiondoArtifactRequestWithCookie
doArtifactRequestWithCookie is doArtifactRequest with session + CSRF cookies, for the cloud-mode paths that require authentication.
internal/server/handlers_artifact_test.go:28
↓ 1 callersFunctiondoInteractiveLogin
doInteractiveLogin implements the classic email/password prompt login.
cmd/pad/cmd_auth.go:498
↓ 1 callersFunctiondoneFieldKeyFromCollection
(col *models.Collection)
internal/store/status_transitions_backfill.go:76
↓ 1 callersFunctiondropPosition
* Resolve the document position to insert at for a drop event. Uses * the editor's coordinate-to-position mapping; returns null when the * drop land
web/src/lib/components/editor/attachment-upload.ts:139
↓ 1 callersFunctioneditCmd
--- playbook ---
cmd/pad/cmd_item.go:1956
↓ 1 callersMethodeffectiveBlobMaxBytes
100 MiB effectiveBlobMaxBytes returns the per-blob ceiling for bundle import — matches whatever the upload handler accepts so an operator who raised P
internal/server/handlers_import_bundle.go:52
↓ 1 callersFunctioneffectiveLimit
effectiveLimit / effectiveOffset mirror the store-side defaults so the response carries the canonical values the handler used. Useful to the UI when t
internal/server/handlers_storage.go:250
↓ 1 callersFunctioneffectiveOffset
(n int)
internal/server/handlers_storage.go:260
↓ 1 callersFunctionemailVerifiedBackfillSQL
emailVerifiedBackfillSQL reads the ACTUAL backfill statement out of the embedded migration file (070 for SQLite, 048 for Postgres) so the backfill tes
internal/store/users_email_verified_test.go:19
↓ 1 callersFunctionemitCmdhelpJSON
emitCmdhelpJSON walks the cobra command tree below `target` and emits a cmdhelp v0.1 JSON document matching schema/cmdhelp.schema.json. `--all` is a
cmd/pad/help_cmdhelp.go:148
↓ 1 callersFunctionemitCmdhelpMarkdown
emitCmdhelpMarkdown walks the cobra command tree below `target` and emits a cmdhelp v0.1 markdown document with the predictable section order from spe
cmd/pad/help_cmdhelp.go:159
↓ 1 callersFunctionenc
(obj: Record<string, unknown>)
web/e2e/collab-persistence.spec.ts:59
↓ 1 callersFunctionencodeFlagValue
encodeFlagValue stringifies an MCP input value for inclusion as a CLI flag argument. Strings and primitives pass through fmt.Sprint as before; structu
internal/mcp/dispatch.go:546
↓ 1 callersFunctionencodeGIF
(t *testing.T, img image.Image)
internal/attachments/processor_test.go:56
↓ 1 callersFunctionencodeJPEG
(t *testing.T, img image.Image)
internal/attachments/processor_test.go:47
↓ 1 callersFunctionensureIndex
(ws: string)
web/src/lib/stores/localSearch.svelte.ts:345
↓ 1 callersFunctionensureSkills
ensureSkills detects AI tools, installs missing skill files, and updates outdated ones. Returns a summary of what it did.
cmd/pad/init.go:508
↓ 1 callersFunctionensureToolbar
()
web/src/lib/components/editor/attachment-image.ts:280
↓ 1 callersFunctionequalArguments
(a, b fosite.Arguments)
internal/oauth/server_test.go:951
↓ 1 callersFunctionequalFold
equalFold is a tiny case-insensitive string compare without pulling in strings.EqualFold's full Unicode logic — agent names are ASCII.
internal/mcp/install.go:140
↓ 1 callersFunctionequalFoldASCII
(a, b string)
internal/server/handlers_auth_bootstrap_token_test.go:378
← previousnext →2,001–2,100 of 6,005, ranked by callers