MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionvalidateCatalogOptions
(opts CatalogOptions)
internal/mcp/catalog.go:265
↓ 2 callersFunctionvalidateCollectionTraits
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 callersFunctionvalidateDraft
(body: string, replyToSeq: number | undefined, opKey: string)
web/src/lib/chat/compose.ts:30
↓ 2 callersMethodvalidateFTSInvariants
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 callersFunctionvalidateFieldType
(def models.FieldDef, val any)
internal/items/validate.go:358
↓ 2 callersFunctionvalidateLegacyReminder
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 callersFunctionvalidateRedirect
(raw: string | null | undefined)
web/src/lib/auth/redirect.ts:123
↓ 2 callersMethodvalidateResolutionUndoQ
(q Queryer, sc *models.ItemSchedule, u *resolutionUndo, now time.Time, lock bool)
internal/store/schedule_reopen.go:348
↓ 2 callersFunctionvalidateRoleValues
validateRoleValues checks members independently; it does not check pairing.
internal/store/commitment.go:312
↓ 2 callersFunctionvalidateShareLinkOpts
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 callersMethodvalidateToken
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 callersFunctionvalidateTwoFAChallengeBound
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 callersFunctionvalueInSet
valueInSet does a case-insensitive membership check.
internal/server/handlers_items_open_children_guard.go:674
↓ 2 callersFunctionveCollabMember
--------------------------------------------------------------------- Perimeter 4: collab WebSocket GET-upgrade (persists Yjs edits). ----------------
internal/server/middleware_verified_email_test.go:363
↓ 2 callersFunctionveOAuthUnverifiedSession
--------------------------------------------------------------------- Perimeter 5: OAuth-provider authorize + decide (mints auth codes). -------------
internal/server/middleware_verified_email_test.go:456
↓ 2 callersMethodverdict
verdict is the state and the one gate's outcome.
internal/store/commitment_gates_outcome_test.go:55
↓ 2 callersFunctionverifiedEmailExemptPath
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 callersFunctionverifyConventionLanded
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 callersFunctionverifyPRUnlinked
verifyPRUnlinked is verifyPRLinked for unlink.
cmd/pad/reconcile.go:431
↓ 2 callersFunctionviewIdentity
(read: () => T)
web/src/lib/attachments/viewFence.ts:106
↓ 2 callersFunctionviewerCopyLink
(page: Page)
web/e2e/lib/attachment-viewer.ts:180
↓ 2 callersFunctionviewerDelete
(page: Page)
web/e2e/lib/attachment-viewer.ts:184
↓ 2 callersFunctionviewerDownloadAnchor
(page: Page)
web/e2e/lib/attachment-viewer.ts:177
↓ 2 callersFunctionviewerResourceKey
( workspaceSlug: string | null | undefined, itemId: string | null | undefined, loaded: boolean )
web/src/lib/attachments/viewerResource.ts:22
↓ 2 callersFunctionviewerTapLoad
(page: Page)
web/e2e/lib/attachment-viewer.ts:154
↓ 2 callersFunctionviewerToday
viewerToday is the caller's calendar day as YYYY-MM-DD.
internal/server/viewer_zone.go:21
↓ 2 callersMethodvisibleRoleItemCounts
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 callersMethodvisibleWorkspaceBuiltins
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 callersFunctionwait
()
web/e2e/bug-3492-list-jk-rendered-order.spec.ts:65
↓ 2 callersFunctionwaitForFenceLockWait
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 callersFunctionwaitForStatus
(t *testing.T, h *RedisHealth, cond func(RedisHealthStatus) bool, what string)
internal/server/redis_health_test.go:98
↓ 2 callersFunctionwaitHeld
(t *testing.T, srv *Server, want int)
internal/server/bug3835_mcp_keepalive_test.go:31
↓ 2 callersFunctionwaitItemRows
waitItemRows polls until the store holds at least n op-log rows for itemID.
internal/collab/restore_coord_test.go:48
↓ 2 callersMethodwaitJobs
waitJobs polls until at least n decision_jobs rows exist.
internal/decision/effort_backfill_test.go:117
↓ 2 callersFunctionwaitPatchCapable
(t *testing.T, srv *Server, itemID string)
internal/server/task3585_patch_key_test.go:154
↓ 2 callersFunctionwake
($)
plugin/hooks/register.js:1099
↓ 2 callersFunctionwalkChanges
( fetchPage: (q: ChangesPageQuery) => Promise<ChangesResponse>, sinceMs: number, maxPages = MAX_CHANGES_PAG
web/src/lib/api/changesWalk.ts:22
↓ 2 callersFunctionwalkOffsetPages
( fetchPage: (limit: number, offset: number) => Promise<T[]>, pageSize = LIST_PAGE_SIZE, maxPages = MAX_LIS
web/src/lib/api/listWalk.ts:15
↓ 2 callersFunctionwalkSharePages
( fetchPage: (offset: number) => Promise<SharePage>, maxPages = MAX_SHARE_PAGES )
web/src/lib/api/shareWalk.ts:21
↓ 2 callersFunctionwalkTimeline
walk pages a query to the end and returns every entry id by kind.
internal/server/plan2348_timeline_kinds_test.go:44
↓ 2 callersFunctionwalkTimelinePages
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 callersFunctionwallIn
(t *testing.T, zone string, y int, m time.Month, d, h, min, s int)
internal/store/schedule_outstanding_test.go:250
↓ 2 callersFunctionwantIDs
(items ...*models.Item)
internal/store/bug2631_scope_collection_test.go:59
↓ 2 callersFunctionwantIDs
(t *testing.T, what string, got []PushDevice, want ...string)
internal/store/task3939_push_dispatch_test.go:85
↓ 2 callersMethodwantMessage
()
internal/server/bug2367_migrate_doors_test.go:101
↓ 2 callersFunctionwantsNULRepair
wantsNULRepair reports whether the request asked for the repair.
internal/server/import_nul_repair.go:61
↓ 2 callersFunctionwarmThreads
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 callersFunctionwarnContentStale
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 callersFunctionwarnOptionsAdded
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 callersFunctionwarnPartialAppProjection
(collectionID, reason string)
internal/store/app_projection.go:104
↓ 2 callersFunctionwarnPrunedPendingEdits
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 callersMethodwarnRenewFailure
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 callersFunctionwarnStalePlaybookSummaries
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 callersFunctionwatched
(u: string)
web/e2e/bug-2601-sync-rename-heal.spec.ts:52
↓ 2 callersFunctionwebBaseFromMcp
(url)
plugin/hooks/register.js:31
↓ 2 callersMethodwebhookRace
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 callersFunctionweekEntry
(day: string, extra: Partial<AgendaEntry> = {})
web/src/routes/(console)/home.phone.svelte.test.ts:135
↓ 2 callersFunctionweekResponse
(entries: AgendaEntry[] = [], window_complete = true)
web/src/routes/(console)/home.phone.svelte.test.ts:138
↓ 2 callersFunctionwiden
(factor: string)
web/src/routes/(console)/settings/account/task3867EditTokenAccess.svelte.test.ts:59
↓ 2 callersFunctionwireMCP
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 callersMethodwireOAuthMetricsObserver
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 callersFunctionwithAllowedLists
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 callersFunctionwithChatMark
Follow-up marking must never replace a successful fetch or stored send.
internal/mcp/dispatch_http_chat.go:244
↓ 2 callersFunctionwithCounts
* 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 callersFunctionwithDeadline
(p: Promise<T>, ms: number)
web/src/lib/components/editor/mermaidRender.ts:86
↓ 2 callersFunctionwithEditor
(html: string, use: (md: string, text: string) => T)
web/src/lib/utils/markdown.strayBracket.svelte.test.ts:21
↓ 2 callersFunctionwithFlagsBeforePositionals
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 callersFunctionwithForged
(body map[string]any, forged bool)
internal/server/bug3372_attribution_test.go:58
↓ 2 callersFunctionwithFormat
(t *testing.T, f string)
cmd/pad/task3462_u3c_library_builtin_test.go:235
↓ 2 callersMethodwithImportReadDeadline
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 callersFunctionwithIssParam
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 callersFunctionwithOversizedSecondAttachment
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 callersFunctionwithinExportDeadline
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 callersFunctionwithoutInertScheduleParams
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 callersMethodwithoutRead
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 callersFunctionwork
(extra: Partial<AgendaWorkEntry> = {})
web/src/lib/components/calendar/OutstandingPanel.svelte.test.ts:12
↓ 2 callersFunctionworkspaceExists
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 callersMethodworkspaceFlags
workspaceFlags implements both; a nil only evaluates every item.
internal/decision/attention.go:206
↓ 2 callersMethodworkspaceGroupNameAvailable
(ctx context.Context, tx *sql.Tx, userID, id, name string)
internal/store/workspace_groups.go:108
↓ 2 callersMethodworkspaceGroupsQ
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 callersMethodworkspaceHasInstalledAppTx
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 callersFunctionworkspaceHintLine
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 callersFunctionworkspaceNotFoundDetails
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 callersMethodworkspaceOwnerForTest
(ws string)
internal/store/limits_workspace_mint_race_test.go:272
↓ 2 callersMethodworkspaceStorageInfoQ
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 callersMethodworkspaceStorageUsageQ
(q Queryer, workspaceID string)
internal/store/attachments.go:1786
↓ 2 callersFunctionworkspaceWriteSlug
(path: string, method: string | undefined)
web/src/lib/api/workspaceWrites.ts:25
↓ 2 callersFunctionwrap
(b: string)
web/src/lib/stores/chatSurfaceCallers.test.ts:163
↓ 2 callersFunctionwrapConn
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 callersMethodwriteAppConsentRefusal
(w http.ResponseWriter, r *http.Request, ar fosite.AuthorizeRequester, ref *appConsentRefusal)
internal/server/app_delegated_consent.go:101
↓ 2 callersFunctionwriteAppRevalidateError
writeAppRevalidateError answers a failed re-admission: 500 for a fault, 401 for a denial.
internal/server/app_api.go:738
↓ 2 callersFunctionwriteApplierRequest
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 callersFunctionwriteArmStateFile
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 callersFunctionwriteBusyOutcomeUnknown
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 callersFunctionwriteCalendarConfigError
(w http.ResponseWriter, cerr *models.CalendarConfigError)
internal/server/handlers_views.go:156
↓ 2 callersFunctionwriteClient
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 callersFunctionwriteCollectionUpdateConflictError
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 callersFunctionwriteContentPendingFlushError
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 callersFunctionwriteContextRefused
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 callersMethodwriteEditRefusal
writeEditRefusal writes requireEditPermission's refusal bytes. The commitment write door (requireCommitmentWrite) shares it, so both refuse identicall
internal/server/server.go:4082
← previousnext →8,901–9,000 of 28,840, ranked by callers