Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 2 callers
Function
validateCatalogOptions
(opts CatalogOptions)
internal/mcp/catalog.go:265
↓ 2 callers
Function
validateCollectionTraits
validateCollectionTraits parses and validates an inbound traits blob. An empty blob is legal — most collections declare nothing. TASK-2657.
internal/server/handlers_collections.go:162
↓ 2 callers
Function
validateDraft
(body: string, replyToSeq: number | undefined, opKey: string)
web/src/lib/chat/compose.ts:30
↓ 2 callers
Method
validateFTSInvariants
validateFTSInvariants checks that every trigger in expectedFTSTriggers exists. Missing triggers are logged as structured warnings; this function is in
internal/store/store.go:876
↓ 2 callers
Function
validateFieldType
(def models.FieldDef, val any)
internal/items/validate.go:358
↓ 2 callers
Function
validateLegacyReminder
validateLegacyReminder returns the normalized target or the unreadable field. Unreadable data is preserved as history, never considered for winner sel
internal/store/reminder_migration.go:71
↓ 2 callers
Function
validateRedirect
(raw: string | null | undefined)
web/src/lib/auth/redirect.ts:123
↓ 2 callers
Method
validateResolutionUndoQ
(q Queryer, sc *models.ItemSchedule, u *resolutionUndo, now time.Time, lock bool)
internal/store/schedule_reopen.go:348
↓ 2 callers
Function
validateRoleValues
validateRoleValues checks members independently; it does not check pairing.
internal/store/commitment.go:312
↓ 2 callers
Function
validateShareLinkOpts
validateShareLinkOpts checks that share link creation constraints are sane. Returns an error message string (empty if valid).
internal/server/handlers_share_links.go:64
↓ 2 callers
Method
validateToken
validateToken is the shared read. `touch` controls the `last_used_at` write so the two doors above cannot drift in what they consider valid.
internal/store/api_tokens.go:335
↓ 2 callers
Function
validateTwoFAChallengeBound
validateTwoFAChallengeBound is validateTwoFAChallengeEpoch with the presented code_verifier ("" for none). A pkce-bound token needs a verifier whose S
internal/server/twofactor_challenge.go:117
↓ 2 callers
Function
valueInSet
valueInSet does a case-insensitive membership check.
internal/server/handlers_items_open_children_guard.go:674
↓ 2 callers
Function
veCollabMember
--------------------------------------------------------------------- Perimeter 4: collab WebSocket GET-upgrade (persists Yjs edits). ----------------
internal/server/middleware_verified_email_test.go:363
↓ 2 callers
Function
veOAuthUnverifiedSession
--------------------------------------------------------------------- Perimeter 5: OAuth-provider authorize + decide (mints auth codes). -------------
internal/server/middleware_verified_email_test.go:456
↓ 2 callers
Method
verdict
verdict is the state and the one gate's outcome.
internal/store/commitment_gates_outcome_test.go:55
↓ 2 callers
Function
verifiedEmailExemptPath
verifiedEmailExemptPath reports whether a mutating /api/v1 request stays allowed for an authenticated-but-unverified cloud user. These are the narrow,
internal/server/middleware_verified_email.go:82
↓ 2 callers
Function
verifyConventionLanded
verifyConventionLanded checks library activation's typed `convention` member was STORED (BUG-3163). A server older than this CLI ignores the member an
cmd/pad/reconcile.go:444
↓ 2 callers
Function
verifyPRUnlinked
verifyPRUnlinked is verifyPRLinked for unlink.
cmd/pad/reconcile.go:431
↓ 2 callers
Function
viewIdentity
(read: () => T)
web/src/lib/attachments/viewFence.ts:106
↓ 2 callers
Function
viewerCopyLink
(page: Page)
web/e2e/lib/attachment-viewer.ts:180
↓ 2 callers
Function
viewerDelete
(page: Page)
web/e2e/lib/attachment-viewer.ts:184
↓ 2 callers
Function
viewerDownloadAnchor
(page: Page)
web/e2e/lib/attachment-viewer.ts:177
↓ 2 callers
Function
viewerResourceKey
( workspaceSlug: string | null | undefined, itemId: string | null | undefined, loaded: boolean )
web/src/lib/attachments/viewerResource.ts:22
↓ 2 callers
Function
viewerTapLoad
(page: Page)
web/e2e/lib/attachment-viewer.ts:154
↓ 2 callers
Function
viewerToday
viewerToday is the caller's calendar day as YYYY-MM-DD.
internal/server/viewer_zone.go:21
↓ 2 callers
Method
visibleRoleItemCounts
visibleRoleItemCounts counts, per agent role, the items the caller may see. restricted is false when visibility is unrestricted (visibleCollectionIDs
internal/server/role_item_counts.go:18
↓ 2 callers
Method
visibleWorkspaceBuiltins
visibleWorkspaceBuiltins is every item made from a built-in that the caller sees its WHOLE collection of, with its state. One query reads them all (a
internal/server/handlers_builtin.go:194
↓ 2 callers
Function
wait
()
web/e2e/bug-3492-list-jk-rendered-order.spec.ts:65
↓ 2 callers
Function
waitForFenceLockWait
waitForFenceLockWait returns once Postgres reports a backend in this test's database waiting on a LOCK, which is the proof the worker is blocked on th
internal/store/fenced_tx_test.go:339
↓ 2 callers
Function
waitForStatus
(t *testing.T, h *RedisHealth, cond func(RedisHealthStatus) bool, what string)
internal/server/redis_health_test.go:98
↓ 2 callers
Function
waitHeld
(t *testing.T, srv *Server, want int)
internal/server/bug3835_mcp_keepalive_test.go:31
↓ 2 callers
Function
waitItemRows
waitItemRows polls until the store holds at least n op-log rows for itemID.
internal/collab/restore_coord_test.go:48
↓ 2 callers
Method
waitJobs
waitJobs polls until at least n decision_jobs rows exist.
internal/decision/effort_backfill_test.go:117
↓ 2 callers
Function
waitPatchCapable
(t *testing.T, srv *Server, itemID string)
internal/server/task3585_patch_key_test.go:154
↓ 2 callers
Function
wake
($)
plugin/hooks/register.js:1099
↓ 2 callers
Function
walkChanges
( fetchPage: (q: ChangesPageQuery) => Promise<ChangesResponse>, sinceMs: number, maxPages = MAX_CHANGES_PAG
web/src/lib/api/changesWalk.ts:22
↓ 2 callers
Function
walkOffsetPages
( fetchPage: (limit: number, offset: number) => Promise<T[]>, pageSize = LIST_PAGE_SIZE, maxPages = MAX_LIS
web/src/lib/api/listWalk.ts:15
↓ 2 callers
Function
walkSharePages
( fetchPage: (offset: number) => Promise<SharePage>, maxPages = MAX_SHARE_PAGES )
web/src/lib/api/shareWalk.ts:21
↓ 2 callers
Function
walkTimeline
walk pages a query to the end and returns every entry id by kind.
internal/server/plan2348_timeline_kinds_test.go:44
↓ 2 callers
Function
walkTimelinePages
walkTimelinePages pages the whole feed one entry at a time, following the (created_at, before_id) cursor exactly as the web client does, and returns t
internal/server/handlers_timeline_structured_test.go:354
↓ 2 callers
Function
wallIn
(t *testing.T, zone string, y int, m time.Month, d, h, min, s int)
internal/store/schedule_outstanding_test.go:250
↓ 2 callers
Function
wantIDs
(items ...*models.Item)
internal/store/bug2631_scope_collection_test.go:59
↓ 2 callers
Function
wantIDs
(t *testing.T, what string, got []PushDevice, want ...string)
internal/store/task3939_push_dispatch_test.go:85
↓ 2 callers
Method
wantMessage
()
internal/server/bug2367_migrate_doors_test.go:101
↓ 2 callers
Function
wantsNULRepair
wantsNULRepair reports whether the request asked for the repair.
internal/server/import_nul_repair.go:61
↓ 2 callers
Function
warmThreads
warmThreads brings the worker's thread set to steady state BEFORE it reads the readiness probe, i.e. before the supervisor measures the baseline the m
internal/materialize/worker.go:82
↓ 2 callers
Function
warnContentStale
warnContentStale prints one line to STDERR when a READ served a body the server knows is behind the item's live collaborative document (BUG-3000). Th
cmd/pad/cmd_item.go:4627
↓ 2 callers
Function
warnOptionsAdded
warnOptionsAdded prints one line to STDERR when the create added library trigger or scope words to its collection's options (BUG-3446), so the schema
cmd/pad/cmd_item.go:4599
↓ 2 callers
Function
warnPartialAppProjection
(collectionID, reason string)
internal/store/app_projection.go:104
↓ 2 callers
Function
warnPrunedPendingEdits
warnPrunedPendingEdits tells the caller, on stderr, that a direct content write deleted unflushed edits a browser tab had left in the op-log (BUG-3133
cmd/pad/cmd_item.go:4773
↓ 2 callers
Method
warnRenewFailure
warnRenewFailure logs a renewal failure at most once per renewLogInterval, carrying the number of failures it stands for. Deliberately not silent in
internal/server/session_presence_redis.go:322
↓ 2 callers
Function
warnStalePlaybookSummaries
warnStalePlaybookSummaries reports the listed playbooks whose summary is derived from a body the server knows is behind its live collaborative documen
cmd/pad/cmd_playbook.go:376
↓ 2 callers
Function
watched
(u: string)
web/e2e/bug-2601-sync-rename-heal.spec.ts:52
↓ 2 callers
Function
webBaseFromMcp
(url)
plugin/hooks/register.js:31
↓ 2 callers
Method
webhookRace
The members door is gone from this harness (BUG-2136). The invite still runs its members_per_workspace pre-check (refusing an invitation at the cap, a
internal/server/handlers_plan_limit_race_test.go:556
↓ 2 callers
Function
weekEntry
(day: string, extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/home.phone.svelte.test.ts:135
↓ 2 callers
Function
weekResponse
(entries: AgendaEntry[] = [], window_complete = true)
web/src/routes/(console)/home.phone.svelte.test.ts:138
↓ 2 callers
Function
widen
(factor: string)
web/src/routes/(console)/settings/account/task3867EditTokenAccess.svelte.test.ts:59
↓ 2 callers
Function
wireMCP
wireMCP constructs the remote MCP capability on every install (PLAN-2310 DR-4): the MCP server and its in-process dispatcher and resource fetcher, the
cmd/pad/cmd_server_mcp.go:92
↓ 2 callers
Method
wireOAuthMetricsObserver
wireOAuthMetricsObserver attaches the OAuth metrics that need both the metrics registry AND the OAuth server: the active-tokens callback collector (re
internal/server/server.go:1465
↓ 2 callers
Function
withAllowedLists
withAllowedLists returns origins as a list, every entry's Allowed a list too (BUG-3417): a webhook-only entry may omit it, and a value stored before t
internal/server/handlers_apps_install.go:700
↓ 2 callers
Function
withChatMark
Follow-up marking must never replace a successful fetch or stored send.
internal/mcp/dispatch_http_chat.go:244
↓ 2 callers
Function
withCounts
* Keys with their OCCURRENCE COUNT folded in (`… ×2`) when above one — so a * second call of an already-classified shape in the same function changes
web/src/lib/components/items/childIdentityFencePopulation.test.ts:959
↓ 2 callers
Function
withDeadline
(p: Promise<T>, ms: number)
web/src/lib/components/editor/mermaidRender.ts:86
↓ 2 callers
Function
withEditor
(html: string, use: (md: string, text: string) => T)
web/src/lib/utils/markdown.strayBracket.svelte.test.ts:21
↓ 2 callers
Function
withFlagsBeforePositionals
withFlagsBeforePositionals inserts flags ahead of the `--` that BuildCLIArgs puts before the positionals: after it, the CLI would read them as positio
internal/mcp/dispatch.go:477
↓ 2 callers
Function
withForged
(body map[string]any, forged bool)
internal/server/bug3372_attribution_test.go:58
↓ 2 callers
Function
withFormat
(t *testing.T, f string)
cmd/pad/task3462_u3c_library_builtin_test.go:235
↓ 2 callers
Method
withImportReadDeadline
withImportReadDeadline replaces r.Body with a reader that arms a per-Read deadline. Call it only once the caller is authorised to mint a workspace (af
internal/server/import_read_deadline.go:42
↓ 2 callers
Function
withIssParam
withIssParam adds iss to the part of the redirect that carries the response parameters: the fragment when fosite answered in fragment mode, otherwise
internal/server/oauth_iss.go:61
↓ 2 callers
Function
withOversizedSecondAttachment
withOversizedSecondAttachment adds a second manifest entry whose blob sorts after the golden's one and is over the cap the test sets, so the first att
internal/server/bug3656_import_remap_test.go:25
↓ 2 callers
Function
withinExportDeadline
withinExportDeadline runs one export read on its own goroutine and stops waiting when the deadline passes, so nothing can hold the request open past a
internal/server/handlers_account.go:549
↓ 2 callers
Function
withoutInertScheduleParams
withoutInertScheduleParams returns a copy of input with the schedule parameters that carry no value removed: null, a blank string, and floating=false.
internal/mcp/catalog_item_schedule.go:31
↓ 2 callers
Method
withoutRead
ScheduleGates is the per-reader DISPLAY of a gate; evaluateAndOpenGates is the act (TASK-4353). What opens a gate, and what decides that a child is re
internal/store/commitment_gates_display_test.go:17
↓ 2 callers
Function
work
(extra: Partial<AgendaWorkEntry> = {})
web/src/lib/components/calendar/OutstandingPanel.svelte.test.ts:12
↓ 2 callers
Function
workspaceExists
workspaceExists answers whether a workspace with this name is present and not soft-deleted — the husk check. It counts rows directly rather than going
internal/store/import_plan_limit_test.go:92
↓ 2 callers
Method
workspaceFlags
workspaceFlags implements both; a nil only evaluates every item.
internal/decision/attention.go:206
↓ 2 callers
Method
workspaceGroupNameAvailable
(ctx context.Context, tx *sql.Tx, userID, id, name string)
internal/store/workspace_groups.go:108
↓ 2 callers
Method
workspaceGroupsQ
workspaceGroupsQ reads owner-scoped rows in one statement. Admission is deliberately applied by the caller on every response, not stored here.
internal/store/workspace_groups.go:25
↓ 2 callers
Method
workspaceHasInstalledAppTx
workspaceHasInstalledAppTx reports whether the workspace has an app installed, in any state but uninstalled: a disabled install can be enabled again a
internal/store/app_projection.go:134
↓ 2 callers
Function
workspaceHintLine
workspaceHintLine returns a concise comma-joined slug list, or an empty string when no hints were resolved (avoids "Available workspaces: " trailing n
internal/mcp/errors.go:434
↓ 2 callers
Function
workspaceNotFoundDetails
workspaceNotFoundDetails marks a 404 as the WORKSPACE failing to resolve for this caller (a non-member, or a deleted workspace), as opposed to a sub-r
internal/server/server.go:3035
↓ 2 callers
Method
workspaceOwnerForTest
(ws string)
internal/store/limits_workspace_mint_race_test.go:272
↓ 2 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:1841
↓ 2 callers
Method
workspaceStorageUsageQ
(q Queryer, workspaceID string)
internal/store/attachments.go:1786
↓ 2 callers
Function
workspaceWriteSlug
(path: string, method: string | undefined)
web/src/lib/api/workspaceWrites.ts:25
↓ 2 callers
Function
wrap
(b: string)
web/src/lib/stores/chatSurfaceCallers.test.ts:163
↓ 2 callers
Function
wrapConn
wrapConn selects the variant matching the base connection's optional interfaces. See the shape note above for why this is a selection rather than one
internal/store/nulguard.go:377
↓ 2 callers
Method
writeAppConsentRefusal
(w http.ResponseWriter, r *http.Request, ar fosite.AuthorizeRequester, ref *appConsentRefusal)
internal/server/app_delegated_consent.go:101
↓ 2 callers
Function
writeAppRevalidateError
writeAppRevalidateError answers a failed re-admission: 500 for a fault, 401 for a denial.
internal/server/app_api.go:738
↓ 2 callers
Function
writeApplierRequest
writeApplierRequest sends the applier_request with a bounded write. An independent timer closes the conn if the write can't complete within applierWri
internal/collab/applier.go:867
↓ 2 callers
Function
writeArmStateFile
writeArmStateFile writes (or idempotently overwrites) this session's arm-state file, mode 0600, with the given disarmed value, and returns the path. I
internal/cli/session_arm_state.go:215
↓ 2 callers
Function
writeBusyOutcomeUnknown
writeBusyOutcomeUnknown is the 503 for a WRITE that may have committed. Its text says to check before trying again, so it carries no Retry-After: that
internal/server/server.go:2982
↓ 2 callers
Function
writeCalendarConfigError
(w http.ResponseWriter, cerr *models.CalendarConfigError)
internal/server/handlers_views.go:156
↓ 2 callers
Function
writeClient
writeClient labels a write: an agent (X-Pad-Agent, or remote MCP) first, then the mobile shell, then a CLI or API token, else the browser. The order m
internal/server/funnel_metrics.go:41
↓ 2 callers
Function
writeCollectionUpdateConflictError
writeCollectionUpdateConflictError emits the shared update_conflict envelope (HTTP 409) for a collection optimistic-concurrency loss. `ref` is the col
internal/server/handlers_collections.go:644
↓ 2 callers
Function
writeContentPendingFlushError
writeContentPendingFlushError answers the BUG-3133 refusal: a content write carrying a version token while the item's op-log holds unflushed collabora
internal/server/handlers_items_open_children_guard.go:511
↓ 2 callers
Function
writeContextRefused
App item actions and context codes (SPEC-6 U11, DOC-3371 §6; TASK-3414). GET /api/v1/workspaces/{ws}/items/{ref}/app-actions the actions offered on
internal/server/app_item_actions.go:31
↓ 2 callers
Method
writeEditRefusal
writeEditRefusal writes requireEditPermission's refusal bytes. The commitment write door (requireCommitmentWrite) shares it, so both refuse identicall
internal/server/server.go:4082
← previous
next →
8,901–9,000 of 28,840, ranked by callers