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
↓ 2 callers
Method
UpdateWorkspace
(slug string, input models.WorkspaceUpdate)
internal/store/workspaces.go:366
↓ 2 callers
Method
UpdateWorkspaceSortOrder
UpdateWorkspaceSortOrder sets the sort_order for a workspace in a user's membership.
internal/store/workspace_members.go:1041
↓ 2 callers
Method
UserHasGrantsInWorkspaceQ
UserHasGrantsInWorkspaceQ is UserHasGrantsInWorkspace on q.
internal/store/grants.go:453
↓ 2 callers
Function
ValidMode
(mode string)
internal/config/config.go:979
↓ 2 callers
Function
ValidPlanSource
ValidPlanSource reports whether src is a plan source SetUserPlan accepts.
internal/store/limits.go:589
↓ 2 callers
Function
ValidVerdict
ValidVerdict reports whether v is one of the three verdicts.
internal/models/verification.go:16
↓ 2 callers
Method
Validate
(string)
internal/server/mcp_modern_test.go:34
↓ 2 callers
Method
Validate
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 callers
Method
ValidateCloudSecureCookies
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 callers
Function
ValidateFormBody
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 callers
Method
ValidateShareLink
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 callers
Method
ValidateTokenForLiveness
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 callers
Function
ValidateWatermarkStampInput
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 callers
Function
ValidateWebhookURL
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 callers
Function
Verify
Verify checks a plain Ed25519 proof, refusing every invalid input length.
internal/serveridentity/identity.go:39
↓ 2 callers
Method
VisibleAttachment
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 callers
Function
VisibleWorkspaceTabs
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 callers
Function
WindowsPathComponent
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 callers
Function
WithMCPResource
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 callers
Function
WithRemoteMCPCaller
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 callers
Function
WithStructuredEntryAuthor
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 callers
Method
WorkspaceAttachmentBlobs
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 callers
Method
WorkspaceHasSlug
WorkspaceHasSlug reports whether slug belongs to the live workspace.
internal/store/workspaces.go:608
↓ 2 callers
Method
WorkspaceHasUserCreatedItems
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 callers
Method
WorkspaceLive
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 callers
Method
WorkspaceOwnerIDs
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 callers
Method
WorkspaceSlugClaimsQ
WorkspaceSlugClaimsQ reads claims in the caller's snapshot.
internal/store/workspaces.go:654
↓ 2 callers
Function
Write
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 callers
Method
Write
(p []byte)
internal/appfetch/appfetch.go:445
↓ 2 callers
Method
Write
(p []byte)
cmd/pad/bug3476_import_watch_test.go:37
↓ 2 callers
Function
WriteCommentDeletedError
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 callers
Function
WriteCommentHasRepliesError
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 callers
Method
WriteHeader
(int)
internal/server/bug3821_write_deadline_test.go:643
↓ 2 callers
Function
WriteLeaseHeldError
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 callers
Function
WriteRateLimitedError
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 callers
Function
WriteSkill
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 callers
Function
__resetServerClockForTests
()
web/src/lib/api/serverClock.ts:66
↓ 2 callers
Method
abandonIfRejected
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 callers
Method
abandonSpaceLocked
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 callers
Function
absentArmLeavesNoRestorableHusk
(t *testing.T, driver store.DriverType)
internal/server/handlers_cloud_autocreate_husk_test.go:198
↓ 2 callers
Function
absorb
(st: Node)
web/src/test/identityFenceGate.ts:424
↓ 2 callers
Method
accept
(l linkRow)
internal/store/schedule_link_import.go:392
↓ 2 callers
Function
acceptFixture
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 callers
Function
acceptedAt
(t *testing.T, s *Store, invID string)
internal/store/workspace_invitation_accept_test.go:37
↓ 2 callers
Function
accessPayloadsUntil
--- 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 callers
Function
accessRank
(a string)
internal/server/app_upgrade_diff.go:78
↓ 2 callers
Function
accountExportIsComplete
(text: string)
web/src/lib/api/client.ts:1352
↓ 2 callers
Method
accountExportWorkspace
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 callers
Function
accountFor
An API handle for an account that already exists, by signing in as it.
web/e2e/workspace-tabs.spec.ts:50
↓ 2 callers
Function
accountNotUnclaimedPayload
accountNotUnclaimedPayload is the account_not_unclaimed envelope, the same on both transports.
internal/mcp/errors.go:1651
↓ 2 callers
Function
ackCmd
()
cmd/pad/cmd_reminder.go:226
↓ 2 callers
Method
ackOccurrenceTx
(tx *sql.Tx, sc *models.ItemSchedule, in ResolveInput, occurrence, now time.Time)
internal/store/schedule_ack.go:23
↓ 2 callers
Method
ackReminder
ackReminder keeps the by-id and by-item doors' store and race handling identical.
internal/server/handlers_reminders.go:292
↓ 2 callers
Function
acknowledgementLine
(at *string, by *models.AcknowledgedBy, loc *time.Location)
cmd/pad/cmd_schedule.go:1281
↓ 2 callers
Method
acquireWorkspaceLocksOrdered
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 callers
Method
acquireWorkspaceParentLinkLock
acquireWorkspaceParentLinkLock takes a Postgres advisory transaction lock that serializes ALL parent-edge-ADDING transactions within a workspace (BUG-
internal/store/items.go:173
↓ 2 callers
Function
actionItemGet
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 callers
Function
actionItemStarred
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 callers
Function
actionMetaServerInfo
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 callers
Function
actionWorkspaceAuditLog
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 callers
Function
activeInViewer
(page: Page)
web/e2e/lib/attachment-viewer.ts:714
↓ 2 callers
Function
activity
* 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 callers
Method
activityCounts
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 callers
Function
activityPage
(t *testing.T, srv *Server, path string)
internal/server/task2219_activity_collection_test.go:27
↓ 2 callers
Function
actorKindOf
(kind string)
internal/store/milestone.go:65
↓ 2 callers
Method
addBillingFields
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 callers
Function
addCause
(key: string, why: string)
web/src/lib/stores/chatThread.property.svelte.test.ts:183
↓ 2 callers
Function
addField
(f models.FieldDef)
internal/server/app_upgrade_diff_test.go:202
↓ 2 callers
Method
addFlags
(c *cobra.Command)
cmd/pad/cmd_schedule_link.go:23
↓ 2 callers
Function
addPadEntryJSON
(path, binary string, args []string)
internal/mcp/install.go:215
↓ 2 callers
Function
addPadEntryTOMLWithArgs
(path, binary string, args []string)
internal/mcp/install.go:413
↓ 2 callers
Method
addPending
(op_key: string, body: string, reply_to_seq?: number)
web/src/lib/chat/model.ts:59
↓ 2 callers
Function
addressable
Both anchors need a workspace and an id before they can point anywhere.
web/src/lib/attachments/actions.ts:161
↓ 2 callers
Method
adminAcceptsAPITokens
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 callers
Method
admit
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 callers
Method
admitActivate
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_activate.go:59
↓ 2 callers
Function
advanceQueue
* 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 callers
Function
advanceQueue
()
web/src/lib/stores/pendingEditsDialog.svelte.ts:28
↓ 2 callers
Method
agendaEntries
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 callers
Function
agendaForecastRow
(row store.AgendaForecast)
internal/server/handlers_agenda_forecast.go:29
↓ 2 callers
Method
agendaGatedItemIDsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:58
↓ 2 callers
Method
agendaOccurrences
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 callers
Function
agendaRecipient
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 callers
Function
agendaRolesWorld
agendaRolesWorld builds both origins through their respective store writers.
internal/server/handlers_agenda_test.go:114
↓ 2 callers
Method
agendaSchedulesQuery
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 callers
Method
agendaWorkDetailsQ
(q Queryer, workspaceID string, itemIDs []string)
internal/store/agenda_work_batch.go:16
↓ 2 callers
Function
agendaZone
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 callers
Method
agentClaimBlock
(r *http.Request, token, code string, expires time.Time)
internal/server/handlers_agent_claim.go:157
↓ 2 callers
Function
agentClaimColumn
(byCode bool)
internal/store/agent_claim.go:45
↓ 2 callers
Method
agentClaimDirective
agentClaimDirective is the directive returned with a claim link, at signup and on rotation.
internal/server/handlers_agent_signup.go:201
↓ 2 callers
Method
agentClaimPauseTargetsQ
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 callers
Function
agentClaimUserFKs
(t *testing.T, s *Store)
internal/store/agent_claim_fk_guard_test.go:26
↓ 2 callers
Function
agentGuideHeading
(line string)
cmd/pad/cmd_agent.go:79
↓ 2 callers
Function
agentGuideSlug
(s string)
cmd/pad/cmd_agent.go:91
↓ 2 callers
Function
agentGuideTopics
(markdown string)
cmd/pad/cmd_agent.go:46
↓ 2 callers
Function
agentItem
agentItem creates an item as the agent and returns its ref, which no rename moves.
internal/server/middleware_unclaimed_test.go:42
↓ 2 callers
Function
agentItemFields
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 callers
Function
agentMeta
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 callers
Function
agentNameFromMetadata
(metadata: string | undefined | null)
web/src/lib/utils/agentActor.ts:58
↓ 2 callers
Function
agentNameValue
(name: unknown)
web/src/lib/utils/agentActor.ts:82
← previous
next →
7,001–7,100 of 31,685, ranked by callers