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
contains
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 callers
Function
contains
(s, substr string)
internal/cli/agents_test.go:147
↓ 1 callers
Function
contains
(haystack []string, needle string)
internal/mcp/catalog_test.go:350
↓ 1 callers
Function
containsHeader
containsHeader does a case-insensitive comma-separated lookup.
internal/server/handlers_auth_bootstrap_token_test.go:343
↓ 1 callers
Function
containsPair
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 callers
Function
containsStr
(s, sub string)
internal/cli/agents_test.go:151
↓ 1 callers
Function
containsTitle
(results []ItemSearchResult, title string, topN int)
internal/store/search_quality_test.go:178
↓ 1 callers
Function
conventionPriorityRank
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 callers
Function
copyFile
(src, dst string)
internal/store/storetest/storetest.go:162
↓ 1 callers
Function
copyFileContents
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 callers
Function
copyTemplateFile
(src, dst string)
internal/store/store_test.go:127
↓ 1 callers
Function
countAndValue
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 callers
Function
countEmailVerificationTokens
(t *testing.T, srv *Server)
internal/server/token_reaper_test.go:33
↓ 1 callers
Function
countVerificationTokens
(t *testing.T, s *Store)
internal/store/email_verification_test.go:48
↓ 1 callers
Function
createCmd
--- create ---
cmd/pad/cmd_item.go:67
↓ 1 callers
Function
createCollabFlusher
(config: CollabFlusherConfig)
web/src/lib/collab/collabFlush.svelte.ts:133
↓ 1 callers
Function
createContentSaver
(config: ContentSaverConfig)
web/src/lib/items/contentSaver.svelte.ts:63
↓ 1 callers
Function
createGhost
(blockDOM: HTMLElement)
web/src/lib/components/editor/block-drag-handle.ts:623
↓ 1 callers
Function
createSSEService
()
web/src/lib/services/sse.svelte.ts:58
↓ 1 callers
Function
createSyncService
()
web/src/lib/services/sync.svelte.ts:46
↓ 1 callers
Function
createTaggedItem
createTaggedItem creates an item with the given JSON tags array.
internal/store/tags_test.go:10
↓ 1 callers
Function
createThrowawayUser
( baseURL: string, adminToken: string, identity: { email: string; username: string }, name: string )
web/e2e/account-delete.spec.ts:49
↓ 1 callers
Function
cropButton
()
web/src/lib/components/editor/attachment-image.ts:571
↓ 1 callers
Function
ctx
(overrides: Partial<CollabFlushContext> = {})
web/src/lib/collab/collabFlush.test.ts:9
↓ 1 callers
Function
currentBlockType
(block: BlockInfo)
web/src/lib/components/editor/block-drag-handle.ts:43
↓ 1 callers
Function
currentUserFromRequest
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 callers
Method
cwd
()
internal/mcp/install.go:611
↓ 1 callers
Function
dbBackupCmd
()
cmd/pad/cmd_db.go:96
↓ 1 callers
Function
dbCmd
()
cmd/pad/groups.go:191
↓ 1 callers
Function
dbMigrateToPgCmd
()
cmd/pad/cmd_db.go:356
↓ 1 callers
Function
dbRestoreCmd
()
cmd/pad/cmd_db.go:202
↓ 1 callers
Function
decideCmd
()
cmd/pad/notes.go:86
↓ 1 callers
Function
defaultCollabBaseUrl
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:1165
↓ 1 callers
Function
defaultStatus
defaultStatus renders an empty status as a readable placeholder for error messages.
internal/server/handlers_playbooks.go:265
↓ 1 callers
Method
defaultTransport
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 callers
Function
deleteCmd
--- delete ---
cmd/pad/cmd_item.go:1097
↓ 1 callers
Function
demoSeedItems
()
internal/collections/templates.go:762
↓ 1 callers
Function
dense
(ids: string[])
web/src/lib/collections/reorder.test.ts:12
↓ 1 callers
Function
depsCmd
()
cmd/pad/cmd_item.go:1668
↓ 1 callers
Method
deriveItemClosure
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 callers
Function
detectFrontendProject
(dir string, info *ProjectInfo)
internal/cli/detect.go:278
↓ 1 callers
Function
detectGitRemoteSlug
(dir string)
internal/cli/workspace_context_detect.go:146
↓ 1 callers
Function
detectHiddenContent
(html: string)
web/src/lib/utils/hiddenContentDetector.ts:76
↓ 1 callers
Function
detectMakeBuildCmd
(dir string)
internal/cli/detect.go:230
↓ 1 callers
Function
detectMakeDevCmd
(dir string)
internal/cli/detect.go:257
↓ 1 callers
Function
detectMakeSetupCmd
(dir string)
internal/cli/detect.go:245
↓ 1 callers
Function
detectMakeTestCmd
(dir string)
internal/cli/detect.go:213
↓ 1 callers
Function
detectNodePackageManager
(dir string)
internal/cli/detect.go:326
↓ 1 callers
Function
detectPlatform
()
web/src/lib/utils/platform.ts:15
↓ 1 callers
Function
detectWorkspaceAssumptions
(dir string, cfg *config.Config)
internal/cli/workspace_context_detect.go:125
↓ 1 callers
Function
detectWorkspaceCommands
(info ProjectInfo)
internal/cli/workspace_context_detect.go:97
↓ 1 callers
Function
detectWorkspaceDeployment
(cfg *config.Config)
internal/cli/workspace_context_detect.go:110
↓ 1 callers
Function
detectWorkspacePaths
(dir string)
internal/cli/workspace_context_detect.go:73
↓ 1 callers
Function
detectWorkspaceRepositories
(dir string)
internal/cli/workspace_context_detect.go:51
↓ 1 callers
Function
detectedNames
(tools []AgentTool)
internal/cli/agents_test.go:185
↓ 1 callers
Function
determineSync
(absenceMs: number)
web/src/lib/services/sync.svelte.ts:128
↓ 1 callers
Function
dirPresent
dirPresent reports whether any of dirs (relative to base) exists as a directory.
internal/cli/agents.go:123
↓ 1 callers
Function
disabledDirections
(index: number, length: number)
web/src/lib/collections/reorder.ts:117
↓ 1 callers
Function
dismiss
(id: string)
web/src/lib/stores/toast.svelte.ts:69
↓ 1 callers
Method
dispatchAttachmentList
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 callers
Method
dispatchAttachmentShow
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 callers
Method
dispatchCreateItemLink
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 callers
Method
dispatchDeleteItemLink
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 callers
Method
dispatchItemDecide
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 callers
Method
dispatchItemDeps
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 callers
Method
dispatchItemImplementedBy
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 callers
Method
dispatchItemImport
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 callers
Function
dispatchItemLink
( api: Api, ws: string, args: Record<string, unknown>, )
web/src/lib/webmcp/dispatch.ts:329
↓ 1 callers
Method
dispatchItemNote
--- 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 callers
Method
dispatchItemRelated
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 callers
Function
dispatchItemUnlink
( api: Api, ws: string, args: Record<string, unknown>, )
web/src/lib/webmcp/dispatch.ts:343
↓ 1 callers
Method
dispatchItemUpdate
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 callers
Method
dispatchLibraryActivate
--- 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 callers
Method
dispatchLibraryList
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 callers
Method
dispatchProjectChangelog
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 callers
Method
dispatchProjectNext
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 callers
Method
dispatchProjectReady
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 callers
Method
dispatchProjectStale
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 callers
Method
dispatchProjectStandup
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 callers
Function
doArtifactRequestWithCookie
doArtifactRequestWithCookie is doArtifactRequest with session + CSRF cookies, for the cloud-mode paths that require authentication.
internal/server/handlers_artifact_test.go:28
↓ 1 callers
Function
doInteractiveLogin
doInteractiveLogin implements the classic email/password prompt login.
cmd/pad/cmd_auth.go:498
↓ 1 callers
Function
doneFieldKeyFromCollection
(col *models.Collection)
internal/store/status_transitions_backfill.go:76
↓ 1 callers
Function
dropPosition
* 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 callers
Function
editCmd
--- playbook ---
cmd/pad/cmd_item.go:1956
↓ 1 callers
Method
effectiveBlobMaxBytes
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 callers
Function
effectiveLimit
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 callers
Function
effectiveOffset
(n int)
internal/server/handlers_storage.go:260
↓ 1 callers
Function
emailVerifiedBackfillSQL
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 callers
Function
emitCmdhelpJSON
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 callers
Function
emitCmdhelpMarkdown
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 callers
Function
enc
(obj: Record<string, unknown>)
web/e2e/collab-persistence.spec.ts:59
↓ 1 callers
Function
encodeFlagValue
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 callers
Function
encodeGIF
(t *testing.T, img image.Image)
internal/attachments/processor_test.go:56
↓ 1 callers
Function
encodeJPEG
(t *testing.T, img image.Image)
internal/attachments/processor_test.go:47
↓ 1 callers
Function
ensureIndex
(ws: string)
web/src/lib/stores/localSearch.svelte.ts:345
↓ 1 callers
Function
ensureSkills
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 callers
Function
ensureToolbar
()
web/src/lib/components/editor/attachment-image.ts:280
↓ 1 callers
Function
equalArguments
(a, b fosite.Arguments)
internal/oauth/server_test.go:951
↓ 1 callers
Function
equalFold
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 callers
Function
equalFoldASCII
(a, b string)
internal/server/handlers_auth_bootstrap_token_test.go:378
← previous
next →
2,001–2,100 of 6,005, ranked by callers