MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodremoveOAuthProviderTx
(tx *sql.Tx, userID, provider string)
internal/store/users.go:902
↓ 2 callersFunctionrenderConflict
BUG-3037 — a conflict on the SEQ token must print the seq pair and point the retry at --expected-seq. Before this, UpdateConflictDetails only decoded
internal/cli/bug3037_conflict_render_test.go:17
↓ 2 callersFunctionrenderItemContextMarkdown
(w io.Writer, v *itemContextView)
cmd/pad/cmd_item_context.go:132
↓ 2 callersFunctionrenderLinkedMove
(m models.LinkedMoveResult, apply bool, hint string)
cmd/pad/cmd_schedule_link.go:376
↓ 2 callersFunctionrenderMarkdownDocument
(content: string)
web/src/lib/utils/markdown.ts:667
↓ 2 callersFunctionrenderMermaidBlocks
(root: ParentNode)
web/src/lib/components/share/shareMermaid.ts:24
↓ 2 callersFunctionrenewalKey
(userID, sessionID string)
internal/server/session_presence_redis.go:875
↓ 2 callersFunctionreopenSnapshot
(t *testing.T, s *Store, id string)
internal/store/schedule_reopen_test.go:29
↓ 2 callersFunctionreorder
* The full order, as slugs. Reorders are SENT one at a time, in call * order (TASK-3306). The server serialises writes and the revision above * or
web/src/lib/stores/tabs.svelte.ts:237
↓ 2 callersFunctionrepaired
(t *testing.T, fieldsJSON string)
internal/server/bug2788_entry_id_stability_test.go:40
↓ 2 callersFunctionrepairedNULCount
(header http.Header)
cmd/pad/cmd_workspace.go:1599
↓ 2 callersFunctionrepeatFoldFor
repeatFoldFor classifies a decode destination by its top-level kind only. It reflects on the TYPE, never the value, so none of WHY NOT REFLECT's conce
internal/server/middleware_request_text.go:513
↓ 2 callersFunctionreplaceDBName
replaceDBName swaps the database name in a postgres connection URL, preserving any query string. Mirrors store_test.go::replaceDBName.
internal/store/storetest/postgres.go:237
↓ 2 callersFunctionreplaceRefs
( body: string, refs: readonly ChatRef[], ctxWorkspace: string | undefined )
web/src/lib/chat/refs.ts:348
↓ 2 callersFunctionreplaceSessionToken
replaceSessionToken swaps the saved session for the one the server issued when it rotated sessions. A PAD_TOKEN session lives in the environment, whic
cmd/pad/cmd_auth_2fa.go:297
↓ 2 callersMethodreplaceWikiLinksScoped
replaceWikiLinksScoped is replaceWikiLinks with target resolution limited by scope.
internal/store/wiki_links.go:69
↓ 2 callersMethodreplaceWorkspaceGroupMembers
replaceWorkspaceGroupMembers makes ids the group's members. keep names stored members the caller cannot see right now: they are left in place, so an e
internal/store/workspace_groups.go:130
↓ 2 callersFunctionreplay
Replays a key sequence, returning the generation after each step.
web/src/lib/attachments/viewerResource.test.ts:38
↓ 2 callersMethodreplaySince
replaySince is replayBuffer.since plus the hole check. Callers must hold mu. Returning nil is the same signal eviction already produces, and the SSE
internal/watchevents/redis_bus.go:1090
↓ 2 callersMethodreplaySinceLocked
replaySinceLocked answers the resume question for THIS bus: which notifications, if any, this incarnation can honestly hand a client holding sinceID.
internal/watchevents/watchevents.go:729
↓ 2 callersFunctionreplayed
replayed returns the item and comments as they stood at the replay point, or excluded=true with a reason.
scripts/decision-eval/attention/replay.go:66
↓ 2 callersFunctionreport
report prints the findings and returns the exit status.
cmd/depages/main.go:414
↓ 2 callersMethodreportDropped
(reason string)
internal/events/observer.go:352
↓ 2 callersFunctionreportFineGranularity
Report buckets in the viewer's time zone (TASK-3524). A report without a Location buckets by UTC, exactly as before: SQL groups by the leading charac
internal/store/reports_tz.go:26
↓ 2 callersMethodreportResumeGap
()
internal/watchevents/observer.go:221
↓ 2 callersMethodreportVisibleCollections
reportVisibleCollections computes the collection-visibility scope for the aggregate report. Aggregate counts have no item-level filtering, so a collec
internal/server/handlers_reports.go:96
↓ 2 callersFunctionreportWorkspaceWrite
(path: string, method: string | undefined)
web/src/lib/api/workspaceWrites.ts:38
↓ 2 callersFunctionrequestClientID
Install-client tokens (SPEC-6 U5a, TASK-3394, DOC-3371 §4 Credentials). An installed app's confidential client obtains SERVICE tokens with client_cre
internal/server/app_tokens.go:31
↓ 2 callersFunctionrequestedAgo
(createdAt: string, now: Date = new Date())
web/src/routes/auth/cli/[code]/cliAuthContext.ts:10
↓ 2 callersMethodrequireAppAccess
requireAppAccess is step 2: a write row refuses a read token, before any resolution or lookup.
internal/server/app_api.go:400
↓ 2 callersMethodrequireAppWorkspace
requireAppWorkspace is step 3 (RequireAppWorkspaceAccess). {ws} must be the token's workspace, by ID: a slug, another workspace, or a deleted one all
internal/server/app_api.go:440
↓ 2 callersFunctionrequireArg
(args: Record<string, unknown>, key: string)
web/src/lib/webmcp/dispatch.ts:110
↓ 2 callersFunctionrequireBoundedDelete
(t *testing.T, spy *deleteDeadlineSpy, what string)
internal/server/task4280_locked_calls_bounded_test.go:57
↓ 2 callersFunctionrequireFlushError
(t *testing.T, got <-chan error)
internal/server/bug3827_flush_error_test.go:43
↓ 2 callersFunctionrequireKnownWorkspaceRole
requireKnownWorkspaceRole answers 400 and returns false unless role is one the workspace_members and workspace_invitations CHECK constraints accept. B
internal/server/handlers_members.go:936
↓ 2 callersMethodrequirePushSession
requirePushSession admits only a session credential, a cookie or a padsess_ bearer, and returns that session. Everything else is refused 403 session_r
internal/server/handlers_push_devices.go:56
↓ 2 callersMethodrequireRawParentInWorkspace
requireRawParentInWorkspace refuses a top-level parent_id that does not name a live item in the workspace the route authorized (BUG-3346). The store w
internal/server/handlers_items.go:4745
↓ 2 callersFunctionrequireRef
(args: Record<string, unknown>)
web/src/lib/webmcp/dispatch.ts:104
↓ 2 callersMethodrequireShareLinkTargetVisible
requireShareLinkTargetVisible resolves a share link's target (item or collection) and gates on the appropriate visibility check (BUG-1923). Item-scope
internal/server/handlers_share_links.go:357
↓ 2 callersMethodrequireTOTPEnrolStepUp
requireTOTPEnrolStepUp gates both creating and confirming a pending secret. Accounts without a verification factor must have signed in recently instea
internal/server/handlers_step_up.go:24
↓ 2 callersMethodrequireUnrestrictedExportAccess
requireUnrestrictedExportAccess denies workspace export (both the JSON and tar.gz bundle forms) to a caller whose workspace access is scoped to specif
internal/server/handlers_export_bundle.go:40
↓ 2 callersMethodrequireUploadTarget
requireUploadTarget is the upload write gate, the same as an app field edit's: the seq lock, then a live companion item created by this install.
internal/store/fenced_attachments.go:66
↓ 2 callersMethodrequireViewEditable
requireViewEditable is like requireViewVisible but also checks edit permission on the view's collection (grant-aware for guests/restricted members).
internal/server/handlers_views.go:186
↓ 2 callersMethodrequireWorkspaceOwnerTx
requireWorkspaceOwnerTx refuses unless userID is an owner of workspaceID, read on tx. A plain read on purpose: see the lock comment on ProvisionAppIns
internal/store/app_provision.go:585
↓ 2 callersFunctionreserveKeepalive
( wanted: boolean | undefined, body: string, what: string )
web/src/lib/api/keepaliveBudget.ts:55
↓ 2 callersMethodreservePending
(workspaceID, ownerID, origin, upgradeOf string)
internal/store/app_pending.go:104
↓ 2 callersFunctionreservedFieldCreateMessage
reservedFieldCreateMessage renders the refusal for a reserved key in create's `fields`. There is no stored item yet, so unlike reservedFieldPatchMessa
internal/server/handlers_items_reserved_write.go:45
↓ 2 callersFunctionreservedFieldLabel
reservedFieldLabel renders a human label for a reserved metadata key in the copy preflight. These keys have no FieldDef and therefore no author-suppli
internal/server/handlers_items_copy_preflight.go:1669
↓ 2 callersFunctionreservedFullFieldsMessage
reservedFullFieldsMessage renders the full-`fields` refusal. It names each key and gives the one remedy that works for every caller: carry the stored
internal/server/handlers_items_reserved_write.go:179
↓ 2 callersFunctionreset
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:173
↓ 2 callersFunctionreset
()
web/src/lib/attachments/zoom.ts:401
↓ 2 callersMethodresetFloatingBound
(match string, arg string)
internal/store/schedule_fire.go:357
↓ 2 callersMethodresetFloatingForUser
resetFloatingForUser resets the armed floating managed rows whose recipient is userID, after that user's time zone changed.
internal/store/schedule_fire.go:343
↓ 2 callersFunctionreshapeItemFields
reshapeItemFields folds input["fields"] into the dedicated-param and `field`-array paths. Returns the reshaped input, or a structured error result (se
internal/mcp/catalog_item_fields.go:641
↓ 2 callersMethodresolve
(in ResolveInput, at time.Time)
internal/store/schedule_carry_matrix_test.go:67
↓ 2 callersFunctionresolveAgendaRoles
(sc *models.ItemSchedule, seed AgendaEntry, loc *time.Location, roles scheduleRoles, overrides map[string]stri
internal/store/agenda_roles.go:28
↓ 2 callersFunctionresolveAttachmentImage
( href: string, alt: string, workspaceSlug: string, resolver: AttachmentResolver, variant: 'thumb-sm' | '
web/src/lib/markdown/attachments.ts:299
↓ 2 callersMethodresolveAttachmentParentItemQ
resolveAttachmentParentItemQ is resolveAttachmentParentItem parameterized over its executor — the cross-workspace copy's attachment authorizer runs it
internal/server/attachments_authz.go:83
↓ 2 callersMethodresolveAuthorizedCopy
resolveAuthorizedCopy performs the resolution and the four-step authorization ladder shared by the copy preflight and the copy itself. It returns ok=
internal/server/handlers_items_copy_resolve.go:125
↓ 2 callersMethodresolveBrokenTitleLinks
resolveBrokenTitleLinks flips item_wiki_links rows in the workspace that have target_kind='title' and a target_title matching the given (collSlug, tit
internal/store/wiki_links.go:899
↓ 2 callersMethodresolveBuiltinItem
resolveBuiltinItem loads the item in the URL, checks the caller may see it, and loads its origin. It writes the response and returns ok=false on any r
internal/server/handlers_builtin.go:82
↓ 2 callersMethodresolveCompletedDay
resolveCompletedDay builds the cache when the query names `completed`.
internal/store/items.go:2511
↓ 2 callersFunctionresolveConfig
()
web/src/test/vitestProjects.test.ts:293
↓ 2 callersMethodresolveDecisionConfigLocked
resolveDecisionConfigLocked returns the resolved config, the origin of each field, and any error reading the stored secret. A stored key that cannot b
internal/server/decision_settings.go:184
↓ 2 callersFunctionresolveItemLink
resolveItemLink reads link_type/ref/target from input and returns the dispatch tuple for action=link (creating=true) or action=unlink (creating=false)
internal/mcp/catalog_item.go:673
↓ 2 callersFunctionresolveItemVersionChain
resolveItemVersionChain resolves versions (newest first) in place, walking from currentContent and applying reverse patches. diff.ApplyPatch matches
internal/store/items.go:6670
↓ 2 callersMethodresolveLeaseRequest
resolveLeaseRequest performs the shared claim/release preamble: resolve workspace + item, check visibility, require an authenticated user, and decode
internal/server/handlers_item_lease.go:120
↓ 2 callersFunctionresolveLinkRoute
(args: Record<string, unknown>)
web/src/lib/webmcp/dispatch.ts:349
↓ 2 callersMethodresolveMilestoneChild
resolveMilestoneChild resolves {childRef} for a caller that must be able to read it. An unknown item, one in another workspace, an archived one and on
internal/server/handlers_milestone.go:115
↓ 2 callersFunctionresolveNULToolsTarget
resolveNULToolsTarget works out which database file the two commands act on, WITHOUT opening it, and reports whether there is anything to do. Resolut
cmd/pad/cmd_db_nul.go:225
↓ 2 callersMethodresolveNeedsSnoozeItem
resolveNeedsSnoozeItem is the shared front half: the item, visible to the caller, and the caller's user id. It has written the response when ok is fal
internal/server/handlers_needs_snooze.go:28
↓ 2 callersFunctionresolvePaneTarget
(target: PaneTarget, current?: PaneGuardItem | null)
web/src/lib/collections/paneTarget.ts:329
↓ 2 callersMethodresolvePending
* The server answered: drop the bubble and merge the returned message by seq. * A `replayed: true` answer whose seq is already in the window (a real
web/src/lib/chat/model.ts:73
↓ 2 callersFunctionresolvePushGatewaySecret
resolvePushGatewaySecret is the secret to send the push gateway: the explicit PAD_PUSH_GATEWAY_SECRET, else what pad already sends pad-cloud (PAD_CLOU
cmd/pad/cmd_server.go:1609
↓ 2 callersFunctionresolveRefTx
resolveRefTx resolves a live exact or move-log-proven ref inside the caller's transaction and wiki scope (BUG-4119). Broken refs persist with NULL tar
internal/store/wiki_links.go:402
↓ 2 callersMethodresolveRelationReferents
Server-side half of referent validation for `relation` values (PLAN-2857 U1 TASK-2878). The store owns the question "does this value name a live item
internal/server/relation_referents.go:44
↓ 2 callersMethodresolveRelationReferentsAs
resolveRelationReferentsAs is resolveRelationReferents with the requester's effective role passed EXPLICITLY rather than read from the request. The c
internal/server/relation_referents.go:62
↓ 2 callersMethodresolveRelationReferentsAsQ
resolveRelationReferentsAsQ is resolveRelationReferentsAs with every read on q: the app installer re-runs it on the provisioning transaction (TASK-339
internal/server/relation_referents.go:74
↓ 2 callersMethodresolveRelationValueQ
resolveRelationValueQ runs the UUID→ref→title ladder for ONE relation value and returns either the canonical item ID or the issue explaining why not.
internal/store/relation_referents.go:609
↓ 2 callersMethodresolveRelationsForWriteQ
resolveRelationsForWriteQ is resolveRelationsForWrite with every read on q (TASK-3397: the installer's in-transaction normalization).
internal/server/relation_referents.go:479
↓ 2 callersFunctionresolveReminderCollisions
resolveReminderCollisions selects one row per unscheduled item after preflight. State outranks chronology. Equal instants use ID for database rows and
internal/store/reminder_migration.go:20
↓ 2 callersMethodresolveRestore
resolveRestore releases the gate when the restore RESOLVES (commit, rollback, or uncertain): it clears restoreActive and closes restoreResolved, wakin
internal/collab/restore_coord.go:82
↓ 2 callersMethodresolveSetAsideItem
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_collab_set_aside.go:66
↓ 2 callersMethodresolveUserPermissionQ
(q Queryer, workspaceID, userID, itemID, collectionID string)
internal/store/grants.go:353
↓ 2 callersFunctionresolveVersionChain
resolveVersionChain resolves a document's versions, newest first, in place from currentContent.
internal/store/versions.go:191
↓ 2 callersMethodresolveWatchAccessVisibility
resolveWatchAccessVisibility is computeWatchAccessVisibility without the logging: on error it returns the log message for the failing lookup instead o
internal/server/handlers_watch_access.go:212
↓ 2 callersFunctionresolveWikiBody
* Resolve a same-workspace wiki-link body against the in-memory items list. * Callers handle the cross-workspace `[[ws::REF]]` form first; this cover
web/src/lib/utils/markdown.ts:819
↓ 2 callersMethodresourceID
(kind string)
internal/server/commitment_graph_access_test.go:16
↓ 2 callersMethodresourceMissingWarnDue
resourceMissingWarnDue reports whether clientID's warning is due, and records that it was logged.
internal/server/handlers_oauth.go:731
↓ 2 callersMethodresourceNoteClient
resourceNoteClient names the client of a request for the note functions: the form client_id, else the id a client authenticating with HTTP Basic sends
internal/server/handlers_oauth.go:638
↓ 2 callersFunctionresp
(rows: Array<[number, number]>)
web/src/lib/stores/chat.svelte.test.ts:32
↓ 2 callersFunctionrestStatus
(srv *Server)
internal/server/handlers_collab_bug1308_test.go:50
↓ 2 callersMethodrestart
* Supersede every outstanding token, then take a new one. For a request * fence: issuing request N+1 means request N's response may no longer write.
web/src/lib/attachments/viewFence.ts:143
↓ 2 callersFunctionrestore
()
web/src/lib/a11y/focusReturn.ts:37
↓ 2 callersFunctionrestoreFixture
BUG-3101, store half. RestoreItem with WithRestorePlanLimit decides items_per_workspace in its own transaction, under the workspace seq lock. Same con
internal/store/restore_plan_limit_test.go:23
↓ 2 callersMethodrestoreLimitOpts
restoreLimitOpts is workspaceLimitMintOpts for RestoreItem, whose options are MutationOptions (BUG-3101). Cloud mode only, like the pre-check.
internal/server/handlers_cloud.go:1844
↓ 2 callersMethodrestoreScheduleChangesTx
restoreScheduleChangesTx maps only retained rows, so causal references never point at a discarded change. Unknown schedules represent deleted schedule
internal/store/schedule_carry_v2.go:276
↓ 2 callersMethodrestrict
(t *testing.T)
internal/mcp/board_test.go:234
↓ 2 callersFunctionrestrictShareMarkup
(html: string)
web/src/lib/components/share/shareRender.ts:110
↓ 2 callersFunctionresultJSON
resultJSON returns the result's JSON value: the structured content when present, else the text parsed as JSON.
internal/mcp/chatgpt_project.go:280
← previousnext →8,301–8,400 of 28,840, ranked by callers