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
↓ 3 callers
Method
user
(t *testing.T, name string)
internal/server/bug3687_activity_visible_page_test.go:52
↓ 3 callers
Function
userConfigPath
userConfigPath resolves the user's config.toml path with the SAME precedence Load() uses (PAD_DATA_DIR, then PAD_DB_PATH's directory, overriding), so
internal/config/config.go:348
↓ 3 callers
Method
userFeatureCountOn
userFeatureCountOn returns the current count for a user-scoped feature, read on the given executor.
internal/store/limits.go:460
↓ 3 callers
Method
userID
BUG-3835: the MCP transport's long-lived streams get a comment keepalive and take a slot in the shared stream admission gate. Built on BUG-3808's fixt
internal/server/bug3835_mcp_keepalive_test.go:22
↓ 3 callers
Function
userIDForEmail
(t *testing.T, srv *Server, email string)
internal/server/task1809_lease_agent_default_test.go:269
↓ 3 callers
Method
userIDKeyPrefix
userIDKeyPrefix is sessionKey's prefix for one user — everything before the session id. Kept next to sessionKey so the two cannot drift. A METHOD, no
internal/server/session_presence_redis.go:357
↓ 3 callers
Method
userReachesWorkspace
userReachesWorkspace reports whether a user reaches a workspace as a member or through any live grant: the question a grant or member write asks befor
internal/server/workspace_access_notify.go:77
↓ 3 callers
Function
v0OldTitle
v0OldTitle reconstructs the old title that the code BEFORE BUG-2830 implicitly assumed when it decided whether a bracket was collection- qualified. V
internal/links/rewrite_brackets_diff_test.go:88
↓ 3 callers
Function
validADTSHeader
validADTSHeader recognises the ADTS framing raw .aac files use: the 12-bit syncword plus the two layer bits ADTS requires to be zero. THIS SIGNATURE
internal/attachments/mime_magic.go:347
↓ 3 callers
Function
validHash
validHash returns true if h looks like a hex-encoded sha256 — 64 lowercase hex characters. We only accept this canonical form so on-disk paths are sta
internal/attachments/fs_store.go:85
↓ 3 callers
Function
validManifest
()
internal/appmanifest/manifest_test.go:9
↓ 3 callers
Function
validateAgainstSchema
validateAgainstSchema runs the compiled schema against the given JSON document and returns the validation error (nil on success).
internal/cmdhelp/schema_test.go:29
↓ 3 callers
Function
validateAnchorRule
The completion anchor (TASK-4103 C2b, ruling Q6): "the next one is a recurrence interval after this one was DONE", not after it was due. That only ha
internal/store/schedule_completion.go:20
↓ 3 callers
Function
validateCloudMCPOAuth
validateCloudMCPOAuth refuses a cloud start that could not construct the OAuth server (TASK-1069). On cloud, MCP is always available, so without an ht
cmd/pad/cmd_server_mcp.go:50
↓ 3 callers
Function
validateConversationAgentKey
validateConversationAgentKey checks an agent key. "" (the human) is valid only when allowEmpty. The key is stored exactly as given.
internal/store/conversations.go:55
↓ 3 callers
Function
validateNoReservedFieldKeys
validateNoReservedFieldKeys rejects a schema that newly introduces a field keyed "parent" or "plan". prevSchema is nil on collection create (nothing t
internal/server/handlers_collections.go:57
↓ 3 callers
Function
validateRoleValues
validateRoleValues checks members independently; it does not check pairing.
internal/store/commitment.go:343
↓ 3 callers
Function
validateUnparentedListRequest
validateUnparentedListRequest keeps the boolean structural filter distinct from every supported parent alias. Checking the raw query makes the rule co
internal/server/handlers_items.go:4695
↓ 3 callers
Method
validateWorkspaceGroupMembers
validateWorkspaceGroupMembers refuses any id the caller is not admitted to and returns the admitted set (nil when ids is nil and nothing was read).
internal/server/handlers_workspace_groups.go:133
↓ 3 callers
Function
validateWorkspaceMintPayload
validateWorkspaceMintPayload enforces the preconditions whose subject is the payload, and NORMALIZES the settings in place when they are valid. name
internal/server/workspace_mint.go:118
↓ 3 callers
Function
vendorBody
(n int)
internal/logging/vendor_shapes_test.go:8
↓ 3 callers
Function
verified
(t *testing.T, srv *Server, addr string)
internal/server/task3352_invitation_proof_test.go:84
↓ 3 callers
Function
verifyPRLinked
verifyPRLinked checks the WRITE landed, from the server's own answer (BUG-2696). A server older than this CLI does not know the typed member, ignores
cmd/pad/reconcile.go:422
↓ 3 callers
Function
viewModeKey
(ws: string, coll: string)
web/src/lib/collections/viewPersistence.ts:31
↓ 3 callers
Function
viewerNext
(page: Page)
web/e2e/lib/attachment-viewer.ts:149
↓ 3 callers
Function
viewerPrev
(page: Page)
web/e2e/lib/attachment-viewer.ts:151
↓ 3 callers
Function
vis
(ref: string, workspace = 'w')
web/src/lib/stores/chatThread.svelte.test.ts:1634
↓ 3 callers
Function
visibleAt
* Names bound, at `fn`, by the scopes around it: every enclosing function, * block, loop head, switch body and catch clause. The component's own scri
web/src/test/identityFenceAst.ts:795
↓ 3 callers
Method
visibleAttachment
(id string)
internal/store/fenced_attachments.go:179
↓ 3 callers
Method
waitApplied
waitApplied waits until a pass APPLIED itemID and returns mrApplied; at the deadline it returns the last result seen, or fails if there was none.
internal/server/materialize_recovery_test.go:146
↓ 3 callers
Method
waitForContenders
waitForContenders blocks until `n` distinct backends are queued as ungranted waiters on the gate's keys — i.e. until n copy transactions are open and
internal/store/items_cross_workspace_copy_pg_test.go:209
↓ 3 callers
Function
waitForHomeHint
(t *testing.T, ch <-chan watchSSEEvent, timeout time.Duration)
internal/server/home_hint_test.go:21
↓ 3 callers
Function
waitForOpLogRows
waitForOpLogRows polls the item's op-log until it holds exactly want rows or the deadline passes. Fails immediately if the count exceeds want (an unex
internal/server/handlers_collab_test.go:654
↓ 3 callers
Function
waitIdleStopped
--------------------------------------------------------------------------- idle exit (TASK-2198: a worker with no job for PAD_MATERIALIZE_IDLE_TIMEOU
internal/materialize/supervisor_test.go:998
↓ 3 callers
Function
waitJoinReturn
(t *testing.T, done chan error, within time.Duration, what string)
internal/collab/bug3771_ws_deadlines_test.go:64
↓ 3 callers
Function
waitRestoreActive
waitRestoreActive polls until the room reports a restore in progress (beginRestore has set restoreActive). White-box: the test lives in package collab
internal/collab/restore_coord_test.go:16
↓ 3 callers
Function
walkOrigin
walkOrigin is the outstanding occurrence's instant as the walk reads it: a floating schedule by its WALL in view, whatever the row's state or override
internal/store/schedule_outstanding.go:195
↓ 3 callers
Function
wallFormatter
(zone: string)
web/src/lib/calendar/presentation.ts:7
↓ 3 callers
Function
wallText
(format: Intl.DateTimeFormat, instant: number)
web/src/lib/calendar/presentation.ts:11
↓ 3 callers
Method
wantAll
(ids []string, state, reason string)
internal/server/task3939b2a_push_test.go:47
↓ 3 callers
Function
wantKept
(t *testing.T, pidFile, written string)
internal/buildtools/bug4068_pidfile_test.go:90
↓ 3 callers
Function
wantStale
(t *testing.T, err error)
internal/server/handlers_apps_provision_test.go:372
↓ 3 callers
Function
warnStaleDerivedText
warnStaleDerivedText prints ONE line to STDERR naming the items whose body-DERIVED text in a listing came from a body the server knows is behind its l
cmd/pad/cmd_item.go:4856
↓ 3 callers
Function
warnStaleEditSeed
warnStaleEditSeed prints one line to STDERR before `pad item edit` opens the editor on a body the server knows is BEHIND the item's live collaborative
cmd/pad/cmd_item.go:4885
↓ 3 callers
Method
warns
()
internal/materialize/supervisor_test.go:254
↓ 3 callers
Function
webViewRouteRefused
webViewRouteRefused reports whether r is a door a WebView session may not use (TASK-4454): one that mints, widens or proves a credential, or changes h
internal/server/middleware_auth.go:1507
↓ 3 callers
Function
webhookEventsFor
(ds []webhookDelivery, workspace string)
internal/server/handlers_items_copy_test.go:698
↓ 3 callers
Function
weekEntry
(day: string, extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/home.phone.svelte.test.ts:135
↓ 3 callers
Function
weekResponse
(entries: AgendaEntry[] = [], window_complete = true)
web/src/routes/(console)/home.phone.svelte.test.ts:138
↓ 3 callers
Function
whoName
(who: HistoryWho)
web/src/lib/components/timeline/historyEvents.ts:373
↓ 3 callers
Function
whoOf
(e: TimelineEntry)
web/src/lib/components/timeline/historyEvents.ts:105
↓ 3 callers
Function
wireSend
A server that stores a send under its op_key, like the real one (V10: a replay returns the stored row).
web/src/lib/stores/chatThread.svelte.test.ts:677
↓ 3 callers
Method
wireStreamGauge
wireStreamGauge registers pad_stream_connections_active as a scrape-time collector over the admission gate's total. Called from both SetSSELimits and
internal/server/server.go:1628
↓ 3 callers
Function
withActivityMetaKey
withActivityMetaKey sets one string key in an activity's JSON metadata, keeping every other key (PLAN-2348 U2). Metadata that does not parse is replac
internal/server/handlers_documents.go:534
↓ 3 callers
Function
withFastPolling
withFastPolling shrinks the helper's tick interval and timeout to millisecond scale for the duration of a test, then restores them. Required for asser
internal/cli/bootstrap_test.go:228
↓ 3 callers
Method
withLists
withLists returns p with every list a list, never null (BUG-3417): the manifest's optional lists are nil when it omits them, and a nil slice serialize
internal/server/handlers_apps_install.go:87
↓ 3 callers
Function
withManifestBody
withManifestBody replaces attachments/manifest.json's body with body.
internal/server/handlers_import_bundle_partial_test.go:52
↓ 3 callers
Function
withUpstreamAtBlank
(fn: () => T)
web/src/lib/collab/materializer/atBlank.ts:55
↓ 3 callers
Function
within
TASK-3975: a CLI token minted by approving from a web session gets its own lifetime (30-day slide, 90-day cap from the approval), not the approving se
internal/server/task3975_cli_token_lifetime_test.go:18
↓ 3 callers
Function
withoutEnv
withoutEnv returns a copy of env with any entries whose name is in drop removed, so a test does not depend on what the caller's shell exported.
internal/buildtools/install_refresh_env_test.go:17
↓ 3 callers
Function
workOccurrence
(row: AgendaWorkEntry, zone: string)
web/src/lib/calendar/presentation.ts:475
↓ 3 callers
Function
workspaceGroupBuiltin
(id string)
internal/server/handlers_workspace_groups.go:44
↓ 3 callers
Method
workspaceGroupQ
(q Queryer, userID, id string)
internal/store/workspace_groups.go:74
↓ 3 callers
Function
workspaceHomePath
(ws: { slug: string; owner_username?: string; owner_id?: string; is_guest?: boolean; })
web/src/lib/utils/workspace-route.ts:19
↓ 3 callers
Method
workspaceStorageInfoQ
workspaceStorageInfoQ is WorkspaceStorageInfo on a caller-supplied executor, so the limited insert reads usage and limit on its own transaction, after
internal/store/attachments.go:1970
↓ 3 callers
Function
wrap
(b: string)
web/src/lib/stores/chatSurfaceCallers.test.ts:163
↓ 3 callers
Method
write
write stores the session entry and indexes it, both under the same TTL, in one atomic step. See writeScript.
internal/server/session_presence_redis.go:533
↓ 3 callers
Function
writeBusyMessage
writeBusyMessage is writeBusy with a caller-chosen message, for the one path whose truth differs (account deletion after Stripe was cancelled).
internal/server/server.go:3065
↓ 3 callers
Function
writeCommitmentChanged
(w http.ResponseWriter)
internal/server/handlers_commitments.go:43
↓ 3 callers
Method
writeCopyError
writeCopyError maps the store's typed errors onto the statuses the contract promises. Everything the store classifies as a caller-facing rejection has
internal/server/handlers_items_copy.go:879
↓ 3 callers
Function
writeDoor
writeDoor names the door r arrived through. The ChatGPT surface is checked before remote MCP because it is one; the CLI before the generic token check
internal/server/content_write_guard.go:34
↓ 3 callers
Method
writeDrainError
writeDrainError answers a drain that did not finish. The install is left between the phases and repeating the same call resumes it.
internal/server/handlers_apps_lifecycle.go:63
↓ 3 callers
Method
writeEditRefusal
writeEditRefusal writes requireEditPermission's refusal bytes. The commitment write door (requireCommitmentWrite) shares it, so both refuse identicall
internal/server/server.go:4140
↓ 3 callers
Function
writeFileAtomic
writeFileAtomic writes data to a sibling temp file, fsyncs it, then atomically renames it onto path. Unlike os.WriteFile it never truncates an existin
cmd/pad/cmd_item.go:3283
↓ 3 callers
Function
writeFileInPlace0600
writeFileInPlace0600 writes data over path in place, following a symlink, as os.WriteFile did. A regular file is made 0600 on POSIX and given a protec
internal/cli/credentials.go:454
↓ 3 callers
Function
writeFrame
(w *bufio.Writer, resp WorkerResponse)
internal/materialize/worker.go:151
↓ 3 callers
Function
writeInvalidItemTitle
(w http.ResponseWriter, err error)
internal/server/handlers_items.go:1452
↓ 3 callers
Function
writeLastActiveAdmin
writeLastActiveAdmin answers a demotion, disable or account deletion that would leave the instance with no active human admin (BUG-3811). One code for
internal/server/handlers_admin_users.go:978
↓ 3 callers
Function
writeListFilterKeyError
writeListFilterKeyError answers checkListFilterKeys' error: a refusal is a 400, anything else a store failure.
internal/server/handlers_items.go:4841
↓ 3 callers
Method
writeLocked
writeLocked writes one frame under the connection's write deadline. The caller holds writeMu. Every frame to a collab socket goes through here or writ
internal/collab/room.go:196
↓ 3 callers
Function
writeMarkdownSeparator
writeMarkdownSeparator writes the header/body separator for n columns.
internal/cli/format_markdown.go:62
↓ 3 callers
Method
writeMessageWithDeadline
writeMessageWithDeadline writes one frame with a bounded write deadline, both the deadline set AND the write under writeMu — gorilla treats SetWriteDe
internal/collab/room.go:206
↓ 3 callers
Method
writeNamedWorkspaceGroup
(w http.ResponseWriter, r *http.Request, user *models.User, g models.WorkspaceGroup, status int)
internal/server/handlers_workspace_groups.go:246
↓ 3 callers
Function
writeOpenChildrenError
writeOpenChildrenError emits the 409 response with both a human message AND the structured details payload. `parentRef` is the already-formatted paren
internal/server/handlers_items_open_children_guard.go:286
↓ 3 callers
Method
writePatchRefusal
writePatchRefusal answers a bodypatch refusal with its typed 409; false when err is not one.
internal/server/handlers_items_patch.go:264
↓ 3 callers
Function
writePlanLimitError
writePlanLimitError writes a structured 403 response for plan limit violations. The envelope follows the standard {"error":{"code":...,"message":...,"
internal/server/handlers_cloud.go:1751
↓ 3 callers
Method
writeReminderItemGone
(w http.ResponseWriter, r *http.Request, workspaceID string, item *models.Item, err error)
internal/server/handlers_reminders.go:546
↓ 3 callers
Function
writeSSEResetCursorEvent
writeSSEResetCursorEvent writes an event that also CLEARS the client's Last-Event-ID, by carrying an `id:` field with an empty value. Used for sync_r
internal/server/handlers_events.go:1182
↓ 3 callers
Function
writeSlot
(userId: string, itemId: string, slot: RefusedRawDraftSlot, value: string, now: number)
web/src/lib/items/refusedRawDraft.ts:154
↓ 3 callers
Function
writeStoreForClientTest
(t *testing.T)
internal/cli/env_token_test.go:48
↓ 3 callers
Function
writeStreamLimitExceeded
writeStreamLimitExceeded answers a refused streaming connection. One helper for every streaming door (both SSE endpoints and MCP's long-lived streams
internal/server/stream_admission.go:172
↓ 3 callers
Method
writeTokenError
writeTokenError answers a token request with an RFC 6749 error before fosite has built a requester.
internal/server/app_tokens.go:57
↓ 3 callers
Method
writeUserProvidersTx
writeUserProvidersTx stores the account's linked providers.
internal/store/oauth_identities.go:67
↓ 3 callers
Function
writeWorkspaceSlugContended
writeWorkspaceSlugContended answers 409 when every attempt to mint a workspace lost its slug to a concurrent create (BUG-3307). That is contention, wh
internal/server/handlers_workspaces.go:1151
↓ 3 callers
Function
yesNo
(v bool)
cmd/pad/server_info.go:432
↓ 3 callers
Function
yjsFrameIsSyncStep2
yjsFrameIsSyncStep2 reports whether a sync frame is EXACTLY one well-formed SyncStep2 message (BUG-3523), with the same strict parse as yjsFrameIsEnve
internal/store/yjs_content_bearing.go:122
↓ 3 callers
Function
zeroFilledBucketsIn
zeroFilledBucketsIn is zeroFilledBuckets in a local calendar: days step by calendar day (23 or 25 hours across a DST change), hours by an absolute hou
internal/store/reports_tz.go:72
↓ 3 callers
Method
zoneFor
zoneFor is the zone the wall readings resolve in.
internal/schedule/engine.go:40
↓ 3 callers
Function
zoneOffsets
zoneOffsets are the UTC offsets in force 24 hours before and after the reading: the two Resolve chooses between.
internal/schedule/wall.go:81
↓ 3 callers
Function
zoomTo
( state: ZoomState, targetScale: number, anchor: Point, g: Geometry, )
web/src/lib/attachments/zoom.ts:334
← previous
next →
6,501–6,600 of 31,685, ranked by callers