MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodUpdateWorkspace
(slug string, input models.WorkspaceUpdate)
internal/store/workspaces.go:366
↓ 2 callersMethodUpdateWorkspaceSortOrder
UpdateWorkspaceSortOrder sets the sort_order for a workspace in a user's membership.
internal/store/workspace_members.go:1041
↓ 2 callersMethodUserHasGrantsInWorkspaceQ
UserHasGrantsInWorkspaceQ is UserHasGrantsInWorkspace on q.
internal/store/grants.go:453
↓ 2 callersFunctionValidMode
(mode string)
internal/config/config.go:979
↓ 2 callersFunctionValidPlanSource
ValidPlanSource reports whether src is a plan source SetUserPlan accepts.
internal/store/limits.go:589
↓ 2 callersFunctionValidVerdict
ValidVerdict reports whether v is one of the three verdicts.
internal/models/verification.go:16
↓ 2 callersMethodValidate
(string)
internal/server/mcp_modern_test.go:34
↓ 2 callersMethodValidate
Validate refuses an origin whose key is not a lowercase path, whose hash is not a sha256 hex digest, whose seed text is oversized or whose seed fields
internal/models/builtin_origin.go:39
↓ 2 callersMethodValidateCloudSecureCookies
ValidateCloudSecureCookies returns an error if this server process is opted into cloud-tenant mode (see IsCloudServer) without secure cookies enabled.
internal/config/config.go:1026
↓ 2 callersFunctionValidateFormBody
ValidateFormBody is the form-encoded-body half of the transport text rule ValidatePath (BUG-2782) and ValidateQuery (BUG-2784) apply: a request whose
internal/server/middleware_form_body.go:63
↓ 2 callersMethodValidateShareLink
ValidateShareLink checks if a share link is valid (not expired). Max views enforcement is handled atomically by RecordShareLinkView. Returns nil error
internal/store/share_links.go:367
↓ 2 callersMethodValidateTokenForLiveness
ValidateTokenForLiveness answers "is this token still valid" WITHOUT touching `last_used_at` (BUG-3007). Two reasons it is a separate door rather tha
internal/store/api_tokens.go:337
↓ 2 callersFunctionValidateWatermarkStampInput
ValidateWatermarkStampInput reports, wrapping ErrWatermarkStampBadInput, a stamp request the server could never honour. The HTTP door calls it before
internal/store/content_watermark_stamp.go:18
↓ 2 callersFunctionValidateWebhookURL
ValidateWebhookURL checks that a webhook URL is safe to call. It rejects non-HTTP(S) schemes, URLs with credentials, private/reserved IPs (loopback, l
internal/webhooks/validate.go:41
↓ 2 callersFunctionVerify
Verify checks a plain Ed25519 proof, refusing every invalid input length.
internal/serveridentity/identity.go:39
↓ 2 callersMethodVisibleAttachment
VisibleAttachment is the app read rule: a live attachment in the install's workspace, bound to a live item whose CURRENT collection is a companion. A
internal/store/fenced_attachments.go:151
↓ 2 callersFunctionVisibleWorkspaceTabs
VisibleWorkspaceTabs intersects stored rows with the caller's visible workspace set, in row order. visible must be exactly what the caller may list (G
internal/store/workspace_tabs.go:113
↓ 2 callersFunctionWindowsPathComponent
WindowsPathComponent returns name made safe to use as ONE path component on Windows (BUG-3186): each reserved character and each C0 control becomes "_
internal/attachments/filename.go:212
↓ 2 callersFunctionWithMCPResource
WithMCPResource returns middleware stamping the mount's canonical resource on the request, for MCPBearerAuth's audience check. Install it BEFORE MCPBe
internal/server/middleware_mcp_auth.go:665
↓ 2 callersFunctionWithRemoteMCPCaller
WithRemoteMCPCaller marks ctx as a remote MCP call. Every such write is an AGENT write (an app acting for the user), named by X-Pad-Agent when the cli
internal/server/context.go:305
↓ 2 callersFunctionWithStructuredEntryAuthor
WithStructuredEntryAuthor sets the created_by the item PATCH stamps on an appended entry, in place of actorFromRequest's user/agent. It exists for th
internal/server/context.go:272
↓ 2 callersMethodWorkspaceAttachmentBlobs
WorkspaceAttachmentBlobs returns every attachment row for a workspace — originals AND thumbnail variants, live AND soft-deleted — so the purge sweeper
internal/store/workspace_purge.go:93
↓ 2 callersMethodWorkspaceHasSlug
WorkspaceHasSlug reports whether slug belongs to the live workspace.
internal/store/workspaces.go:608
↓ 2 callersMethodWorkspaceHasUserCreatedItems
WorkspaceHasUserCreatedItems reports whether ANY non-deleted item in the workspace was created by something other than template seeding. Used by the a
internal/store/items.go:7453
↓ 2 callersMethodWorkspaceLive
WorkspaceLive reports whether the workspace exists and is not soft-deleted. ListWebhooks already returns nothing for a deleted workspace; this is re-c
internal/webhooks/dispatcher.go:81
↓ 2 callersMethodWorkspaceOwnerIDs
WorkspaceOwnerIDs lists the workspace's human owners, ordered by id. Disabled accounts are included: eligibility belongs to the router.
internal/store/needs_read.go:96
↓ 2 callersMethodWorkspaceSlugClaimsQ
WorkspaceSlugClaimsQ reads claims in the caller's snapshot.
internal/store/workspaces.go:654
↓ 2 callersFunctionWrite
Write emits RFC 5545 content lines, folded at 75 octets including the continuation space. Only title, reference, link and dates are published.
internal/ics/ics.go:39
↓ 2 callersMethodWrite
(p []byte)
internal/appfetch/appfetch.go:445
↓ 2 callersMethodWrite
(p []byte)
cmd/pad/bug3476_import_watch_test.go:37
↓ 2 callersFunctionWriteCommentDeletedError
WriteCommentDeletedError writes the structured marker line for the tombstone refusal, so the stdio MCP transport reports comment_deleted instead of in
internal/cli/client.go:3038
↓ 2 callersFunctionWriteCommentHasRepliesError
WriteCommentHasRepliesError writes the structured marker line for BUG-3252's refusal, so the stdio MCP transport reports comment_has_replies with its
internal/cli/client.go:3056
↓ 2 callersMethodWriteHeader
(int)
internal/server/bug3821_write_deadline_test.go:643
↓ 2 callersFunctionWriteLeaseHeldError
WriteLeaseHeldError writes the structured marker line for the lease refusal, so the stdio MCP transport reports lease_held with its holder and expiry
internal/cli/client.go:2954
↓ 2 callersFunctionWriteRateLimitedError
WriteRateLimitedError writes the structured marker line for a 429 (BUG-3147), so the stdio MCP transport reports rate_limited — with the server's wait
internal/cli/client.go:3862
↓ 2 callersFunctionWriteSkill
WriteSkill is the one door that writes a tool's skill file (BUG-3466). It decides with DecideSkillWrite and writes the stamped text only to install or
internal/cli/skillstamp.go:306
↓ 2 callersFunction__resetServerClockForTests
()
web/src/lib/api/serverClock.ts:66
↓ 2 callersMethodabandonIfRejected
abandonIfRejected takes down a subscription Redis rejected, before anyone is admitted into it, and reports whether it did. Its callers then find no su
internal/events/redis_bus.go:1959
↓ 2 callersMethodabandonSpaceLocked
abandonSpaceLocked records that the id space whose high-water mark is oldPeak has been abandoned, so replaySince refuses cursors inside it. See ambigu
internal/watchevents/redis_bus.go:1078
↓ 2 callersFunctionabsentArmLeavesNoRestorableHusk
(t *testing.T, driver store.DriverType)
internal/server/handlers_cloud_autocreate_husk_test.go:198
↓ 2 callersFunctionabsorb
(st: Node)
web/src/test/identityFenceGate.ts:424
↓ 2 callersMethodaccept
(l linkRow)
internal/store/schedule_link_import.go:392
↓ 2 callersFunctionacceptFixture
BUG-3281: AcceptWorkspaceInvitation shares addWorkspaceMemberTx with AddWorkspaceMember. An existing membership is an idempotent success that keeps it
internal/store/workspace_invitation_accept_test.go:12
↓ 2 callersFunctionacceptedAt
(t *testing.T, s *Store, invID string)
internal/store/workspace_invitation_accept_test.go:37
↓ 2 callersFunctionaccessPayloadsUntil
--- delivery, through the real stream handler --- accessPayloads drains ch until a status-change notification for sentinelRef arrives, returning every
internal/server/workspace_access_notify_test.go:401
↓ 2 callersFunctionaccessRank
(a string)
internal/server/app_upgrade_diff.go:78
↓ 2 callersFunctionaccountExportIsComplete
(text: string)
web/src/lib/api/client.ts:1352
↓ 2 callersMethodaccountExportWorkspace
accountExportWorkspace reads one owned workspace's collections, items and their app attribution from ONE read-only snapshot, after re-checking on that
internal/server/handlers_account.go:436
↓ 2 callersFunctionaccountFor
An API handle for an account that already exists, by signing in as it.
web/e2e/workspace-tabs.spec.ts:50
↓ 2 callersFunctionaccountNotUnclaimedPayload
accountNotUnclaimedPayload is the account_not_unclaimed envelope, the same on both transports.
internal/mcp/errors.go:1651
↓ 2 callersFunctionackCmd
()
cmd/pad/cmd_reminder.go:226
↓ 2 callersMethodackOccurrenceTx
(tx *sql.Tx, sc *models.ItemSchedule, in ResolveInput, occurrence, now time.Time)
internal/store/schedule_ack.go:23
↓ 2 callersMethodackReminder
ackReminder keeps the by-id and by-item doors' store and race handling identical.
internal/server/handlers_reminders.go:292
↓ 2 callersFunctionacknowledgementLine
(at *string, by *models.AcknowledgedBy, loc *time.Location)
cmd/pad/cmd_schedule.go:1281
↓ 2 callersMethodacquireWorkspaceLocksOrdered
acquireWorkspaceLocksOrdered takes the workspace advisory locks for every supplied workspace, in ascending lock-KEY order, with duplicates collapsed.
internal/store/items_cross_workspace_copy.go:1104
↓ 2 callersMethodacquireWorkspaceParentLinkLock
acquireWorkspaceParentLinkLock takes a Postgres advisory transaction lock that serializes ALL parent-edge-ADDING transactions within a workspace (BUG-
internal/store/items.go:173
↓ 2 callersFunctionactionItemGet
actionItemGet handles pad_item.action=get. With `lines` it slices the body into numbered lines HERE, the one place both transports pass through, so th
internal/mcp/catalog_item.go:1216
↓ 2 callersFunctionactionItemStarred
actionItemStarred handles pad_item.action=starred. Like list it never pages (BUG-3790, as BUG-3704 did for list): it asks for one row past the list ca
internal/mcp/catalog_item.go:957
↓ 2 callersFunctionactionMetaServerInfo
actionMetaServerInfo returns the minimal {name, version} pair. Roughly equivalent to what the MCP handshake exposes, but available post-handshake with
internal/mcp/catalog_meta.go:80
↓ 2 callersFunctionactionWorkspaceAuditLog
actionWorkspaceAuditLog reshapes the input for `pad workspace audit-log`'s `--action` filter flag. The CLI flag name `action` would normally be reacha
internal/mcp/catalog_workspace.go:123
↓ 2 callersFunctionactiveInViewer
(page: Page)
web/e2e/lib/attachment-viewer.ts:714
↓ 2 callersFunctionactivity
* TASK-2759. The card's actor chip said "Agent" for every agent write, so a * timeline could not tell you WHICH agent touched the item — the name has
web/src/lib/components/timeline/timelineActivityAgentName.svelte.test.ts:18
↓ 2 callersMethodactivityCounts
activityCounts returns per-workspace "<workspace>:<action>" counts, so an assertion can name exactly which row it expects where.
internal/server/handlers_items_copy_test.go:619
↓ 2 callersFunctionactivityPage
(t *testing.T, srv *Server, path string)
internal/server/task2219_activity_collection_test.go:27
↓ 2 callersFunctionactorKindOf
(kind string)
internal/store/milestone.go:65
↓ 2 callersMethodaddBillingFields
addBillingFields sets billing_available and billing_offer (TASK-3577): whether Pad Pro can be bought now, and its intervals, prices and trial as the s
internal/server/handlers_auth.go:171
↓ 2 callersFunctionaddCause
(key: string, why: string)
web/src/lib/stores/chatThread.property.svelte.test.ts:183
↓ 2 callersFunctionaddField
(f models.FieldDef)
internal/server/app_upgrade_diff_test.go:202
↓ 2 callersMethodaddFlags
(c *cobra.Command)
cmd/pad/cmd_schedule_link.go:23
↓ 2 callersFunctionaddPadEntryJSON
(path, binary string, args []string)
internal/mcp/install.go:215
↓ 2 callersFunctionaddPadEntryTOMLWithArgs
(path, binary string, args []string)
internal/mcp/install.go:413
↓ 2 callersMethodaddPending
(op_key: string, body: string, reply_to_seq?: number)
web/src/lib/chat/model.ts:59
↓ 2 callersFunctionaddressable
Both anchors need a workspace and an id before they can point anywhere.
web/src/lib/attachments/actions.ts:161
↓ 2 callersMethodadminAcceptsAPITokens
adminAcceptsAPITokens reports whether platform administration accepts an API token: only when the operator opted in, and never on Pad Cloud.
internal/server/server.go:943
↓ 2 callersMethodadmit
admit applies the failure budget. The budget resets when the op-log has moved past the MAX(id) recorded at the last failure.
internal/server/materialize_recovery.go:566
↓ 2 callersMethodadmitActivate
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_activate.go:59
↓ 2 callersFunctionadvanceQueue
* Show the next QUEUED request that is still live (BUG-3046). A request queued * behind another is not withdrawn when its reason disappears: the user
web/src/lib/stores/openChildrenDialog.svelte.ts:41
↓ 2 callersFunctionadvanceQueue
()
web/src/lib/stores/pendingEditsDialog.svelte.ts:28
↓ 2 callersMethodagendaEntries
agendaEntries states each occurrence. loc is the zone the schedule's walls resolve in and lo where the walk began (the later of from and the rule's st
internal/store/schedule_agenda.go:491
↓ 2 callersFunctionagendaForecastRow
(row store.AgendaForecast)
internal/server/handlers_agenda_forecast.go:29
↓ 2 callersMethodagendaGatedItemIDsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:58
↓ 2 callersMethodagendaOccurrences
agendaOccurrences reads a schedule's history rows around [from, to), padded a day and a half each way because a floating row is the recipient's readin
internal/store/schedule_agenda.go:331
↓ 2 callersFunctionagendaRecipient
agendaRecipient reads the caller as the agenda sees them: the account whose zone "today" is in and whose items the schedules belong to, and the kind.
internal/server/bootstrap_agenda.go:101
↓ 2 callersFunctionagendaRolesWorld
agendaRolesWorld builds both origins through their respective store writers.
internal/server/handlers_agenda_test.go:114
↓ 2 callersMethodagendaSchedulesQuery
agendaSchedulesQuery builds listAgendaSchedules' statement, rebound for the dialect, with its arguments (limit+1 last), and the done expression the it
internal/store/schedule_agenda.go:123
↓ 2 callersMethodagendaWorkDetailsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:16
↓ 2 callersFunctionagendaZone
agendaZone reads the optional `tz` parameter, writing the 400 itself on a bad name. note is set when the zone is the caller's own default.
internal/server/handlers_agenda.go:175
↓ 2 callersMethodagentClaimBlock
(r *http.Request, token, code string, expires time.Time)
internal/server/handlers_agent_claim.go:157
↓ 2 callersFunctionagentClaimColumn
(byCode bool)
internal/store/agent_claim.go:45
↓ 2 callersMethodagentClaimDirective
agentClaimDirective is the directive returned with a claim link, at signup and on rotation.
internal/server/handlers_agent_signup.go:201
↓ 2 callersMethodagentClaimPauseTargetsQ
Includes archived collections and deleted items. Only the oldest collection of each first-party kind keeps behavior; every other collection becomes in
internal/store/agent_claim.go:439
↓ 2 callersFunctionagentClaimUserFKs
(t *testing.T, s *Store)
internal/store/agent_claim_fk_guard_test.go:26
↓ 2 callersFunctionagentGuideHeading
(line string)
cmd/pad/cmd_agent.go:79
↓ 2 callersFunctionagentGuideSlug
(s string)
cmd/pad/cmd_agent.go:91
↓ 2 callersFunctionagentGuideTopics
(markdown string)
cmd/pad/cmd_agent.go:46
↓ 2 callersFunctionagentItem
agentItem creates an item as the agent and returns its ref, which no rename moves.
internal/server/middleware_unclaimed_test.go:42
↓ 2 callersFunctionagentItemFields
agentItemFields removes entries already hydrated as top-level arrays. These keys remain in storage for append semantics, but repeating them in an agen
internal/cli/item_summary.go:220
↓ 2 callersFunctionagentMeta
agentMeta returns metadata JSON with the agent name if X-Pad-Agent is set, merged with any existing metadata. Returns empty string if no agent.
internal/server/handlers_documents.go:399
↓ 2 callersFunctionagentNameFromMetadata
(metadata: string | undefined | null)
web/src/lib/utils/agentActor.ts:58
↓ 2 callersFunctionagentNameValue
(name: unknown)
web/src/lib/utils/agentActor.ts:82
← previousnext →7,001–7,100 of 31,685, ranked by callers