Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 2 callers
Function
guardParagraph
guardParagraph returns the blank-line-bounded paragraph containing anchor.
internal/cli/agent_identity_test.go:464
↓ 2 callers
Function
guardUser
()
internal/mcp/dispatch_http_allowlist_guard_test.go:386
↓ 2 callers
Function
guardedDomain
guardedDomain reports whether the frozen V0 oracle is still authoritative for this input. BUG-2805 deliberately changes behaviour in two places, so t
internal/links/rewrite_brackets_diff_test.go:154
↓ 2 callers
Method
guestResourceFilterCore
guestResourceFilterCore is the request-scoped wrapper around Store.ResolveBacklinksVisibility. Delegates the role-determination + merge logic to the s
internal/server/server.go:3954
↓ 2 callers
Method
guestResourceFilterCoreQ
guestResourceFilterCoreQ is guestResourceFilterCore parameterized over its executor — the cross-workspace copy's attachment authorizer runs it on the
internal/server/server.go:3962
↓ 2 callers
Method
handleCommitmentMove
(w http.ResponseWriter, r *http.Request, preview bool)
internal/server/handlers_commitment_links.go:440
↓ 2 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:93
↓ 2 callers
Method
handleGetAttachment
handleGetAttachment streams an attachment back to the caller. Auth is enforced by the route's RequireWorkspaceAccess middleware; this handler then aut
internal/server/handlers_attachments.go:625
↓ 2 callers
Method
handleImportWorkspace
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspaces.go:982
↓ 2 callers
Method
handleRedactItem
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_item_redact.go:15
↓ 2 callers
Method
handleRestoreWorkspaceAttachment
handleRestoreWorkspaceAttachment clears the tombstone on a deleted attachment and its thumbnail variants. POST /api/v1/workspaces/{ws}/attachments/{
internal/server/handlers_storage.go:502
↓ 2 callers
Method
handleSSE
handleSSE streams Server-Sent Events for a workspace. GET /api/v1/events?workspace=<slug> Supports Last-Event-ID: when a client reconnects with a Las
internal/server/handlers_events.go:63
↓ 2 callers
Method
handleSessionIPChange
handleSessionIPChange compares the client IP on this request to the IP recorded when the session was created. Behavior: - Session has no recorded IP
internal/server/middleware_auth.go:1093
↓ 2 callers
Method
handleSessionUAChange
handleSessionUAChange compares the User-Agent hash on this request to the hash recorded when the session was created, and enforces the same opt-in pol
internal/server/middleware_auth.go:1220
↓ 2 callers
Method
handler
(w http.ResponseWriter, r *http.Request)
cmd/pad/bug3035_edit_guard_test.go:51
↓ 2 callers
Function
harness
(over: Partial<CrashDraftSource> = {})
web/src/lib/items/crashDraft.svelte.test.ts:13
↓ 2 callers
Function
hasBacklinkSource
(bls []models.Backlink, id string)
internal/store/bug3344_backlinks_deleted_collection_test.go:136
↓ 2 callers
Function
hasChange
(changes []string, want string)
internal/server/plan2348_timeline_drops_test.go:28
↓ 2 callers
Function
hasCloudSecretMarker
hasCloudSecretMarker returns true if the request carries a sidecar- style auth marker: X-Cloud-Secret header or a cloud_secret field in the JSON body
internal/server/handlers_cloud.go:163
↓ 2 callers
Function
hasMetric
(t *testing.T, m *Metrics, name string)
internal/metrics/redis_up_test.go:59
↓ 2 callers
Function
hasOption
(list []string, v string)
internal/server/library_option_widen.go:233
↓ 2 callers
Function
hasPadEntryTOML
hasPadEntryTOML reports whether mcp_servers.pad is present plus its current `command` value. Missing files are "not installed", no error.
internal/mcp/install.go:483
↓ 2 callers
Function
hashCanonicalJSON
hashCanonicalJSON returns a SHA-256 hex of a canonicalized form of the input JSON. "Canonical" here means: round-trip through encoding/json to sort ob
internal/server/middleware_mcp_audit.go:574
↓ 2 callers
Function
hashTokenForLimiter
hashTokenForLimiter returns a SHA-256 hex digest of the bearer token, suitable for use as a rate-limiter map key. The hash means the limiter's in-memo
internal/server/middleware_ratelimit.go:1165
↓ 2 callers
Function
header
(e: TimelineEntry)
web/src/lib/components/timeline/HistoryView.svelte.test.ts:227
↓ 2 callers
Function
header
(container: HTMLElement)
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:157
↓ 2 callers
Method
header
(name: string)
web/src/lib/api/importUpload.ts:47
↓ 2 callers
Function
headers
()
web/src/lib/components/collections/task2237Nesting.svelte.test.ts:97
↓ 2 callers
Function
headers
(f: Fixture, agent?: string)
web/e2e/chat-mobile-nav.spec.ts:13
↓ 2 callers
Function
headers
(fixture: SuiteFixture)
web/e2e/bug-3043-lane-draft-rehome.spec.ts:27
↓ 2 callers
Function
headers
(fixture: SuiteFixture)
web/e2e/bug-3200-pane-move-needs-value.spec.ts:19
↓ 2 callers
Function
headers
(f: Fixture, agent?: string)
web/e2e/chat-entries.spec.ts:16
↓ 2 callers
Function
headers
(fixture: SuiteFixture)
web/e2e/copy-dialog.spec.ts:29
↓ 2 callers
Function
headers
(f: Fixture, agent?: string)
web/e2e/chat-shell.spec.ts:19
↓ 2 callers
Function
headers
* PLAN-3535 — a child in a REFERENCE collection (tracks_work: false) is not * part of its parent's work. On the parent page it is listed in its own
web/e2e/plan-3535-reference-children.spec.ts:20
↓ 2 callers
Function
healthBody
TASK-1069: MCP that is turned on but cannot be served says so: one reason for the admin panel, the startup error and the health flag, so the three can
internal/server/task1069_mcp_blocked_test.go:16
↓ 2 callers
Function
helpCmd
helpCmd returns a custom `pad help` subcommand that replaces cobra's built-in help. It implements the cmdhelp v0.1 mandatory surface (https://getpad.d
cmd/pad/help_cmdhelp.go:45
↓ 2 callers
Function
heuristicEffort
heuristicEffort is the effort estimate: 0 for a question title with a short body, else by body length.
internal/server/needs_scorers.go:434
↓ 2 callers
Function
historyCmd
()
cmd/pad/cmd_item.go:1822
↓ 2 callers
Function
holdAuthedSSE
holdAuthedSSE opens the workspace-scoped stream WITH a bearer token and holds it, returning a close func. connectSSE (handlers_events_test.go) sends n
internal/server/stream_admission_test.go:52
↓ 2 callers
Function
holdUncommittedRename
holdUncommittedRename opens a transaction that looks exactly like a rename in flight: workspace lock held, the row's slug already rewritten, nothing c
internal/store/collections_slug_race_pg_test.go:61
↓ 2 callers
Method
holdWorkspace
holdWorkspace locks the workspace row from a side transaction until release.
internal/store/commitment_links_pg_test.go:72
↓ 2 callers
Function
hook
(currentNode: Node)
web/src/lib/utils/markdown.ts:426
↓ 2 callers
Function
host
(page: Page)
web/e2e/chat-shell-layout.spec.ts:36
↓ 2 callers
Function
htmlProseExtensions
()
web/src/lib/components/editor/extensions/htmlProse.ts:377
↓ 2 callers
Method
httpDispatcher
()
internal/mcp/plan3578_patch_test.go:98
↓ 2 callers
Function
humanBytes
humanBytes renders a byte count for a refusal sentence, in binary units with the decimal-style labels the billing page uses ("1 GB" for 1<<30).
internal/server/handlers_cloud.go:1957
↓ 2 callers
Function
hydrateCollections
( userId: string | null, ws: string, )
web/src/lib/stores/localIndexPersistence.ts:1043
↓ 2 callers
Method
hydrateItemAppAttribution
hydrateItemAppAttribution is hydrateItemsAppAttribution for one item.
internal/server/app_attribution.go:36
↓ 2 callers
Method
hydrateRelationTargets
hydrateRelationTargets fills `relation_targets` on a batch of items (PLAN-2857 U6): for each `relation` field the collection declares, the item the st
internal/server/relation_hydration.go:45
↓ 2 callers
Function
iconSvg
(id: string, options: { size?: number | string } = {})
web/src/lib/attachments/icons/index.ts:157
↓ 2 callers
Function
idemRequestHash
idemRequestHash is the request half of a key's identity: the route, its scope (the item) and the canonical request body.
internal/server/idempotency_keys.go:199
↓ 2 callers
Function
identName
(e ast.Expr)
scripts/ci-web-census/main.go:142
↓ 2 callers
Function
identity
(n int)
internal/store/version_tie_diagnostic.go:424
↓ 2 callers
Function
ids
(ns []Notification)
internal/watchevents/redis_bus_ambiguity_test.go:198
↓ 2 callers
Function
idsOf
(items []models.Item)
internal/store/bug2631_scope_collection_test.go:50
↓ 2 callers
Function
idsOf
(events []OutboxEvent)
internal/store/event_outbox_bounds_test.go:286
↓ 2 callers
Function
ifNoneMatchHits
ifNoneMatchHits reports whether the If-None-Match field lines in values match etag, by the WEAK comparison RFC 9110 13.1.2 prescribes for If-None-Matc
internal/server/handlers_attachments.go:974
↓ 2 callers
Function
image
(over: Partial<LightboxImage> = {})
web/src/lib/attachments/events.test.ts:34
↓ 2 callers
Function
img
(id: string, over: Partial<LightboxImage> = {})
web/src/lib/components/attachments/AttachmentSurfaceHost.svelte.test.ts:75
↓ 2 callers
Function
imgFor
(id: string)
web/src/lib/components/timeline/ItemTimeline.lifecycle.svelte.test.ts:205
↓ 2 callers
Function
importBundleForSummary
(t *testing.T, bundle []byte)
internal/server/handlers_import_bundle_summary_test.go:121
↓ 2 callers
Function
importNumberSlots
importNumberSlots returns a JSON number literal as each dialect's index compares it. Neither expands the number, so the work is linear in the literal
internal/store/import_unique.go:114
↓ 2 callers
Function
importNumericKey
importNumericKey is the (value, scale) of a JSON number literal as Postgres's numeric holds it: sign, significant digits, the decimal exponent of the
internal/store/import_unique.go:143
↓ 2 callers
Function
importOutcomes3475
(t *testing.T, driver store.DriverType)
internal/server/handlers_import_bundle_bug3475_test.go:82
↓ 2 callers
Method
importOutcomesRegistry
()
internal/server/import_outcomes.go:161
↓ 2 callers
Function
importPartialMarkerKeepPath
(t *testing.T, driver store.DriverType)
internal/server/handlers_import_partial_marker_test.go:44
↓ 2 callers
Function
importRefSlugBundle
importRefSlugBundle is a bundle whose slugs include ref-shaped ones, for the preserved-slug (pad db migrate-to-pg) and plain-door comparison.
internal/store/export_import_refslug_test.go:295
↓ 2 callers
Function
importRemapsVersionHistory
(t *testing.T, driver store.DriverType)
internal/server/bug3656_import_remap_test.go:128
↓ 2 callers
Function
importUniqueValue
importUniqueValue is the value reported for a field, and the slots it claims. A declared unique_scope field is checked as checkUniqueFields checks it:
internal/store/import_unique.go:53
↓ 2 callers
Function
importanceDetail
(loc *time.Location, r *needs.Row, it store.NeedsScoringItem, blocked int, now time.Time)
internal/server/needs_scorers.go:220
↓ 2 callers
Function
importedAckEvidence
importedAckEvidence rewrites an imported acknowledgement's before or after JSON into the canonical evidence shape, without an actor_user_id. Import ne
internal/store/schedule_ack.go:185
↓ 2 callers
Function
importedBodySHA256
importedBodySHA256 is the body_sha256 an imported version row is stored with (BUG-3820): the bundle's value when it is a well-formed hex sha256, other
internal/store/export.go:235
↓ 2 callers
Function
importedFilenameSource
importedFilenameSource decides filename_source for an attachment arriving in a bundle (BUG-2819). When THIS server altered the name (normalised or su
internal/server/handlers_import_bundle.go:1383
↓ 2 callers
Function
importedFlag
importedFlag is attachments.imported for a row being inserted (BUG-3379).
internal/store/attachments.go:74
↓ 2 callers
Function
importedSlugsByTitle
(t *testing.T, s *Store, wsID string)
internal/store/export_import_refslug_test.go:315
↓ 2 callers
Function
inRanges
(ranges: Array<[number, number]>, i: number)
web/src/lib/utils/markdown.ts:1136
↓ 2 callers
Function
inRow
(ref: string)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:804
↓ 2 callers
Function
includeLocalRuntime
(cfg *config.Config)
cmd/pad/server_info.go:272
↓ 2 callers
Function
incomingImplementedBy
(item *models.Item, links []models.ItemLink)
cmd/pad/query.go:474
↓ 2 callers
Function
independentTotalAndFacets
independentTotalAndFacets computes the expected total and SearchFacets using the legacy multi-query shapes over the exact same search_matches CTE so t
internal/store/task4809_search_single_pass_test.go:16
↓ 2 callers
Function
inertInternalReferences
( html: string, titleByRef: ReadonlyMap<string, string>, pageUrl: string = typeof location !== 'undefined'
web/src/lib/components/share/shareRender.ts:128
↓ 2 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:370
↓ 2 callers
Function
input
()
web/src/lib/components/layout/Sidebar.quickAdd.svelte.test.ts:52
↓ 2 callers
Method
insertCLIAuthSession
(ttl time.Duration, req CLIAuthRequester, userCodeHash *string)
internal/store/cli_auth_sessions.go:104
↓ 2 callers
Function
insertInstall
(t *testing.T, s *store.Store, workspaceID string)
internal/appstore/items_test.go:77
↓ 2 callers
Method
insertItemRefAliasTx
insertItemRefAliasTx reserves a departed ref without ever changing its owner. Call after the item has moved, under the workspace lock, so a current re
internal/store/item_ref_aliases.go:12
↓ 2 callers
Function
insertLegacyUnverifiedUser
insertLegacyUnverifiedUser inserts a user row with email_verified_at = NULL, simulating an account that existed BEFORE migration 070 added + backfille
internal/store/users_email_verified_test.go:51
↓ 2 callers
Method
insertOAuthRequestRowTx
(tx *sql.Tx, table string, req models.OAuthRequest, requestedStr string)
internal/store/oauth.go:770
↓ 2 callers
Function
insertOutboxRowBatch
(t *testing.T, s *Store, id, workspaceID, occurredAt string, dispatchedAt *string, batchID string)
internal/store/event_outbox_test.go:1547
↓ 2 callers
Function
insertRawInvitation
insertRawInvitation inserts a pending invitation row directly, bypassing CreateInvitation's replace, to model two invites that raced past it.
internal/server/bug2136_invite_consent_test.go:254
↓ 2 callers
Method
insertUpload
(ctx context.Context, spec store.FenceSpec, res *reservation, in store.FencedAttachmentCreate)
internal/appstore/attachments.go:308
↓ 2 callers
Function
insideModule
insideModule reports whether a package path belongs to this module.
internal/models/reserved_field_decode_guard_test.go:228
↓ 2 callers
Function
insideTestTempDir
insideTestTempDir reports whether p is inside this test's temp dir: under sc.base, in a top-level directory named for sc.top.
internal/buildtools/bug4066_harness_guard_test.go:79
↓ 2 callers
Function
install
()
web/e2e/task-3413-apps-settings.spec.ts:39
↓ 2 callers
Method
installClientOf
Delegated app sign-in (SPEC-6 U5b-1, TASK-3399; DOC-3371 §4 "Delegated tokens"): authorization code + PKCE for an install's client, so a Pad user can
internal/server/app_delegated_consent.go:26
↓ 2 callers
Function
installEpoch
(t *testing.T, srv *Server, id string)
internal/server/task3397_lifecycle_test.go:51
↓ 2 callers
Function
installInitCancelHandler
installInitCancelHandler installs a SIGINT/SIGTERM handler for the duration of an interactive init run. On signal receipt it calls cancelInit() — but
cmd/pad/cancel.go:48
↓ 2 callers
Function
installInteractive
(force bool)
cmd/pad/cmd_agent.go:379
↓ 2 callers
Method
installIssuanceBarrierTx
installIssuanceBarrierTx is the issuance barrier (DOC-3371 §4). For a request whose client is an install client it does the whole persistence in the c
internal/store/install_clients.go:349
← previous
next →
8,101–8,200 of 31,685, ranked by callers