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
Method
handleMCPPATAuth
handleMCPPATAuth runs the original TASK-950 PAT validation path. Extracted from MCPBearerAuth so the OAuth branch reads cleanly without a deeply-neste
internal/server/middleware_mcp_auth.go:120
↓ 1 callers
Method
handleUploadAttachment
1 MiB handleUploadAttachment accepts a multipart upload and writes it into the attachments table + the configured AttachmentStore. Flow: 1. Auth: edi
internal/server/handlers_attachments.go:62
↓ 1 callers
Function
hardcodedLimit
hardcodedLimit returns the hardcoded fallback limit for a feature on a given plan.
internal/store/limits.go:214
↓ 1 callers
Function
hasEntry
(agent *Agent, path string)
internal/mcp/install.go:560
↓ 1 callers
Function
hasFieldChanges
hasFieldChanges reports whether the input has any value that should trigger field-merging on update. Mirrors the CLI's check at cmd/pad/main.go itemUp
internal/mcp/dispatch_http_advanced.go:415
↓ 1 callers
Function
hasPending
hasPending reports whether any embedded migration has not yet been applied.
internal/store/migration_guard.go:38
↓ 1 callers
Method
hasUsableBaseURL
hasUsableBaseURL reports whether s.baseURL is a URL a verification-email recipient on the public internet can actually reach. It supersets the unreach
internal/server/server.go:556
↓ 1 callers
Function
hasValue
(m map[string]any, key string)
internal/server/handlers_playbooks.go:485
↓ 1 callers
Function
hashRecoveryCodes
hashRecoveryCodes returns SHA-256 hex hashes of the given plaintext codes.
internal/server/handlers_2fa.go:447
↓ 1 callers
Function
hashShareToken
hashShareToken computes the SHA-256 hash of a raw share token for lookup.
internal/store/share_links.go:31
↓ 1 callers
Function
hashString
* djb2-ish 32-bit string hash. Stable, fast, and good enough for * spreading short user-ID strings across the hue circle. Returns a * non-negative 3
web/src/lib/collab/cursorColor.ts:31
↓ 1 callers
Function
hiringCandidatesCollection
(sortOrder int)
internal/collections/templates_hiring.go:92
↓ 1 callers
Function
hiringFeedbackCollection
(sortOrder int)
internal/collections/templates_hiring.go:174
↓ 1 callers
Function
hiringLoopsCollection
(sortOrder int)
internal/collections/templates_hiring.go:133
↓ 1 callers
Function
hiringRequisitionsCollection
(sortOrder int)
internal/collections/templates_hiring.go:41
↓ 1 callers
Function
hiringSeedItems
hiringSeedItems seeds a single example item in each core collection so users can see the shape of the workspace without having to build it from scratc
internal/collections/templates_hiring.go:276
↓ 1 callers
Function
hiringStarterConventions
hiringStarterConventions is the curated convention seed pack for hiring workspaces. Kept small and universal; workspace owners can add more from the l
internal/collections/templates_hiring.go:223
↓ 1 callers
Function
hiringStarterPlaybooks
hiringStarterPlaybooks is the curated playbook seed pack for hiring workspaces.
internal/collections/templates_hiring.go:245
↓ 1 callers
Function
hiringTemplate
hiringTemplate builds the "hiring" workspace template. Company-side hiring: track Requisitions → Candidates → Interview Loops → Feedback. Parent/child
internal/collections/templates_hiring.go:20
↓ 1 callers
Function
historyCmd
()
cmd/pad/cmd_item.go:1010
↓ 1 callers
Method
home
()
internal/mcp/install.go:597
↓ 1 callers
Function
hook
(currentNode: Node)
web/src/lib/utils/markdown.ts:247
↓ 1 callers
Function
hslToHex
* Convert HSL (h: 0..360, s/l: 0..1) → `#rrggbb`. Standard formula * (CSS Color Module 3, Annex A). Values are clamped at integer-byte * resolution
web/src/lib/collab/cursorColor.ts:46
↓ 1 callers
Function
humanizeBytes
(size int64)
cmd/pad/server_info.go:311
↓ 1 callers
Function
iconForFilename
(filename: string)
web/src/lib/components/editor/attachment-chip.ts:118
↓ 1 callers
Function
iconForMime
* Map a MIME type to a category icon. Mirrors the server-side category * enum in `internal/attachments/mime.go`. When MIME is unknown (HEAD * failed
web/src/lib/components/editor/attachment-chip.ts:69
↓ 1 callers
Function
idsOf
(entries []models.TimelineEntry)
internal/server/handlers_timeline_collapse_test.go:38
↓ 1 callers
Function
implementedByCmd
()
cmd/pad/query.go:175
↓ 1 callers
Function
implementsCmd
()
cmd/pad/lineage.go:56
↓ 1 callers
Method
importBundle
importBundle reads a tar (already gzip-decompressed) from r and orchestrates the two-phase import. Returns the new workspace. Single-pass streaming:
internal/server/handlers_import_bundle.go:202
↓ 1 callers
Function
importCmd
--- import ---
cmd/pad/cmd_workspace.go:952
↓ 1 callers
Function
incomingImplementedBy
incomingImplementedBy mirrors cmd/pad/query.go's helper. Filters the link list to incoming `implements` links only — outgoing implements describe what
internal/mcp/dispatch_http_links.go:631
↓ 1 callers
Function
indexClosingFence
indexClosingFence returns the byte offset within s of the start of the first line equal to "---" (optionally with trailing whitespace), or -1.
internal/artifact/decode.go:118
↓ 1 callers
Method
indexExists
indexExists checks whether the named index exists in the database.
internal/store/store.go:948
↓ 1 callers
Function
indexOf
(s, substr string)
internal/links/links.go:177
↓ 1 callers
Function
indexOf
(s string, c byte)
internal/store/store_test.go:230
↓ 1 callers
Function
indexOf
(s, sub string)
internal/server/handlers_playbooks_test.go:397
↓ 1 callers
Function
indexOfUsageLine
indexOfUsageLine returns the byte offset of the line containing "Usage:" (cobra's help-block prefix), or -1 when absent. The match is anchored to a li
internal/mcp/errors.go:637
↓ 1 callers
Function
infoCmd
()
cmd/pad/server_info.go:70
↓ 1 callers
Function
ingestFieldKVP
(s string, dst map[string]any)
internal/mcp/dispatch_http.go:915
↓ 1 callers
Function
initCmd
--- reset-password ---
cmd/pad/cmd_workspace.go:437
↓ 1 callers
Function
inlineCodeRanges
inlineCodeRanges returns half-open `[start, end)` byte ranges that cover every inline-code span in `content`, skipping over the fenced regions caller
internal/links/extract.go:340
↓ 1 callers
Function
insertRawWebhook
insertRawWebhook writes a webhook row directly, bypassing CreateWebhook's encryption, to simulate a legacy pre-encryption row.
internal/store/webhooks_test.go:171
↓ 1 callers
Function
insertWithPlanAndDate
insertWithPlanAndDate is a test-only helper that inserts a user with a specific plan + created_at timestamp. CreateUser doesn't expose either directly
internal/store/users_test.go:505
↓ 1 callers
Function
installAll
()
cmd/pad/cmd_agent.go:235
↓ 1 callers
Function
installCmd
()
cmd/pad/cmd_agent.go:14
↓ 1 callers
Function
installForTool
(name string)
cmd/pad/cmd_agent.go:219
↓ 1 callers
Function
installInteractive
()
cmd/pad/cmd_agent.go:255
↓ 1 callers
Function
installMatchMedia
* Install a fake `window.matchMedia` whose `MediaQueryList` starts at * `initialMatches` and lets the test fire synthetic `change` events. Returns *
web/src/lib/stores/breakpoint.svelte.test.ts:16
↓ 1 callers
Function
interviewingApplicationsCollection
(sortOrder int)
internal/collections/templates_interviewing.go:42
↓ 1 callers
Function
interviewingCompaniesCollection
(sortOrder int)
internal/collections/templates_interviewing.go:156
↓ 1 callers
Function
interviewingContactsCollection
(sortOrder int)
internal/collections/templates_interviewing.go:200
↓ 1 callers
Function
interviewingInterviewsCollection
(sortOrder int)
internal/collections/templates_interviewing.go:104
↓ 1 callers
Function
interviewingSeedItems
interviewingSeedItems seeds one example in each core collection.
internal/collections/templates_interviewing.go:309
↓ 1 callers
Function
interviewingStarterConventions
interviewingStarterConventions is the curated convention seed pack for candidate-side job-search workspaces.
internal/collections/templates_interviewing.go:243
↓ 1 callers
Function
interviewingStarterPlaybooks
interviewingStarterPlaybooks is the curated playbook seed pack for the interviewing template.
internal/collections/templates_interviewing.go:265
↓ 1 callers
Function
interviewingTemplate
interviewingTemplate builds the "interviewing" workspace template. Candidate-side job search: track Applications, Interviews per application, plus sib
internal/collections/templates_interviewing.go:21
↓ 1 callers
Function
invalidateAttachmentMetadata
(workspaceSlug: string, uuid: string)
web/src/lib/components/editor/attachment-metadata.ts:75
↓ 1 callers
Function
inviteCmd
()
cmd/pad/cmd_workspace.go:154
↓ 1 callers
Method
invocationSlugTaken
invocationSlugTaken reports whether an item with the given invocation_slug already exists (non-archived) in the destination collection.
internal/server/handlers_artifact_import.go:249
↓ 1 callers
Function
isAPITokenFromRequest
(r *http.Request)
internal/mcp/dispatch_http_test.go:91
↓ 1 callers
Function
isAccessDenial
isAccessDenial reports whether the given error from authorizeCollabAccess represents a real authorization decision (member removed, role demoted, item
internal/server/handlers_collab.go:349
↓ 1 callers
Function
isActiveStatus
isActiveStatus returns true if the status indicates work actively in progress. It excludes both initial/queued states and terminal/completed states.
internal/server/handlers_dashboard.go:195
↓ 1 callers
Function
isAllDigits
isAllDigits reports whether s is non-empty and entirely ASCII digits. A public TLD is never all-numeric (RFC 3696), so an all-digit final label signal
internal/server/server.go:645
↓ 1 callers
Function
isAllDigits
(s string)
cmd/pad/cmd_auth.go:552
↓ 1 callers
Function
isAllowedIframeSrc
(src: string)
web/src/lib/utils/markdown.ts:217
↓ 1 callers
Function
isAllowedRegisterScope
isAllowedRegisterScope is the v1 allow-list. TASK-953 widens this to include workspace-scoped scopes (pad:workspaces:slug,…).
internal/server/handlers_oauth.go:368
↓ 1 callers
Function
isAlpha
(b byte)
internal/store/store.go:818
↓ 1 callers
Function
isAuthMethod
(value: unknown)
web/src/lib/auth/lastMethod.ts:34
↓ 1 callers
Function
isAutosaveVersion
isAutosaveVersion reports whether an entry is a collab-snapshot version row (the web editor's 5s auto-flush). These are the only versions we collapse
internal/server/handlers_timeline.go:254
↓ 1 callers
Function
isBlankLineAt
isBlankLineAt returns true if the line starting at byte position `pos` contains only whitespace (space or tab) before its newline, or runs to EOF with
internal/links/extract.go:429
↓ 1 callers
Function
isClosedDone
isClosedDone is a non-blocking check for "has rc.done been closed?". Used by the writer's error path to distinguish a real network error from a watchd
cmd/loadtest-collab/main.go:268
↓ 1 callers
Function
isClosingFence
isClosingFence checks if line closes a fenced code block opened with `fenceLen` of `fenceChar`. The closing fence must be at least as long as the open
internal/server/render/attachments.go:411
↓ 1 callers
Function
isCollectionSlugVisible
isCollectionSlugVisible reports whether the named collection survived the visibility filter. Used by the bootstrap path to gate convention/playbook qu
internal/server/handlers_bootstrap.go:403
↓ 1 callers
Function
isCurrent
()
web/src/lib/stores/auth.svelte.ts:52
↓ 1 callers
Function
isForeignKeysOff
isForeignKeysOff reports whether a PRAGMA statement disables foreign keys. Matches the canonical forms used in migrations 022 and 055 plus the common
internal/store/store.go:692
↓ 1 callers
Function
isImageMime
(mime: string | null | undefined)
web/src/lib/markdown/attachments.ts:96
↓ 1 callers
Function
isInRanges
isInRanges returns true if `pos` falls inside any half-open `[start, end)` interval in `ranges`. `ranges` must be sorted by start (which both fencedCo
internal/links/extract.go:449
↓ 1 callers
Function
isKnownVariant
isKnownVariant gates the ?variant= query against a closed set so an attacker can't probe arbitrary variant strings. Mirrors the constants in models.At
internal/server/handlers_attachments.go:503
↓ 1 callers
Function
isLineStart
isLineStart returns true when the character at byte position i is preceded by a newline (with arbitrary leading whitespace allowed between the newline
internal/mcp/errors.go:658
↓ 1 callers
Function
isMutatingMethod
isMutatingMethod reports whether an HTTP method can mutate server state. The verified-email gate only fires on these; reads pass through so an unverif
internal/mcp/dispatch_http.go:534
↓ 1 callers
Function
isMutatingMethod
isMutatingMethod reports whether an HTTP method can mutate server state. The verified-email gate only fires on these — reads (GET / HEAD / OPTIONS) st
internal/server/middleware_verified_email.go:49
↓ 1 callers
Function
isOpenAPIJSON
isOpenAPIJSON returns true when the body is a JSON object that declares a top-level `openapi` (3.x) or `swagger` (2.0) key. Other shapes (arrays, prim
internal/urlimport/detect.go:107
↓ 1 callers
Function
isOpenAPIYAML
isOpenAPIYAML returns true when one of the first ~8 KiB of unindented (top-level) lines starts with `openapi:` or `swagger:`. We don't pull in a YAML
internal/urlimport/detect.go:195
↓ 1 callers
Function
isOpenChildrenError
( err: unknown )
web/src/lib/items/openChildrenError.ts:53
↓ 1 callers
Function
isPublicDNSName
isPublicDNSName reports whether host is a syntactically-valid public FQDN (RFC 1123 labels) whose TLD is neither a special-use reserved name nor all-n
internal/server/server.go:603
↓ 1 callers
Function
isRateLimitError
* Returns true when `err` is the distinct 429 server-busy error. Mirrors * the `isPlanLimitError` idiom so call sites can branch on rate limiting *
web/src/lib/api/client.ts:183
↓ 1 callers
Function
isScrollKey
(e: KeyboardEvent)
web/src/lib/scroll/restore.svelte.ts:336
↓ 1 callers
Function
isServerOwnedPath
(path: string)
web/src/lib/auth/redirect.ts:55
↓ 1 callers
Function
isSliceFlag
isSliceFlag is true when a flag should be emitted as repeated `--flag value` pairs rather than a single `--flag value`. Covers both pflag's slice type
internal/mcp/dispatch.go:510
↓ 1 callers
Function
isStale
()
web/src/lib/stores/localIndex.svelte.ts:268
↓ 1 callers
Function
isStringType
isStringType returns true when v is a Go string. Used by the fields-builder to distinguish "real value to pass through" from "empty/missing".
internal/mcp/dispatch_http.go:839
↓ 1 callers
Function
isTerminalItemStatus
(status string)
cmd/pad/reconcile.go:368
↓ 1 callers
Function
isTimeout
(err error)
internal/server/handlers_collab_test.go:508
↓ 1 callers
Function
isUniqueViolation
isUniqueViolation checks whether an error is a unique constraint violation. Works for both SQLite (UNIQUE constraint failed) and PostgreSQL (duplicate
internal/store/items.go:332
↓ 1 callers
Function
isValidDNSLabel
isValidDNSLabel reports whether l is a valid RFC 1123 hostname label: 1–63 chars of [a-z0-9-], not starting or ending with a hyphen.
internal/server/server.go:626
↓ 1 callers
Function
isValidatedBearerAuth
isValidatedBearerAuth reports whether the request was authenticated via a Bearer credential TokenAuth actually validated — a long-lived API token (isA
internal/server/middleware_auth.go:475
↓ 1 callers
Function
isValidatedSessionBearerAuth
isValidatedSessionBearerAuth returns true if the request was authenticated via a validated CLI session-bearer token (Authorization: Bearer padsess_...
internal/server/middleware_auth.go:461
↓ 1 callers
Function
isWorkspaceSlug
(s string)
internal/links/extract.go:606
↓ 1 callers
Function
isZeroDefault
isZeroDefault returns true when DefValue is the conventional zero for the flag's type. Suppressing zero defaults keeps the emitted document small and
internal/cmdhelp/json.go:420
← previous
next →
2,201–2,300 of 6,005, ranked by callers