MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodRestoreWorkspace
RestoreWorkspace un-soft-deletes a workspace by slug via the restore endpoint (owner-only server-side). Returns the now-live workspace.
internal/cli/client.go:276
↓ 2 callersMethodResumeGap
ResumeGap takes the workspace ID but deliberately does NOT label the metric with it. Workspace count is unbounded and operator-controlled, so a per-wo
internal/metrics/events_observer.go:35
↓ 2 callersMethodResumeGap
ResumeGap reports that a RESUME could not be served from this instance's view — the client is told sync_required and re-fetches. Separate from Sequen
internal/watchevents/observer.go:88
↓ 2 callersMethodRetireStepUpCode
RetireStepUpCode makes a code whose email delivery failed unusable. The row stays, so the failed send still counts toward the hourly send cap.
internal/store/step_up.go:68
↓ 2 callersMethodRevokeAllUserGrants
RevokeAllUserGrants deletes all collection and item grants for a user in a workspace. Used when removing a member with "revoke all access" option. The
internal/store/grants.go:315
↓ 2 callersMethodRevokeCalendarFeed
(ctx context.Context, userID, id string)
internal/store/calendar_feeds.go:108
↓ 2 callersFunctionRewriteRefs
RewriteRefs rewrites same-workspace reference links ([[TASK-1]] and [[TASK-1|alias]]) for which renamed returns a new reference, keeping any display s
internal/links/links.go:844
↓ 2 callersMethodRotateAgentClaimSecrets
(userID, tokenHash, codeHash string, at time.Time)
internal/store/agent_claim.go:77
↓ 2 callersMethodRotateRefreshToken
RotateRefreshToken matches fosite's reference MemoryStore (storage/memory.go:497-504): revoke the entire grant — both the refresh family AND the acces
internal/oauth/storage.go:403
↓ 2 callersMethodRotateUserToken
RotateUserToken generates a new secret for an existing token, keeping its metadata (name, scopes, workspace). The OLD secret dies with the UPDATE — Ro
internal/cli/client_tokens.go:59
↓ 2 callersFunctionSHA256Hex
SHA256Hex is the lower-case hex sha256 the manifest and digests use.
internal/appmanifest/manifest.go:432
↓ 2 callersFunctionSchemaHasStartSlot
SchemaHasStartSlot reports whether a collection schema declares the session start select. An unreadable schema has none.
internal/collections/templates.go:563
↓ 2 callersFunctionSchemaWithoutReservedFields
SchemaWithoutReservedFields returns schema with any reserved-metadata FieldDef removed — the schema as a consumer that reasons about an ITEM's field v
internal/models/collection_schema_item_fields.go:33
↓ 2 callersMethodScrubOutboxUserRefsTxCtx
ScrubOutboxUserRefsTx erases a deleted account's user id from every frozen outbox payload and from the subject_id column, on the caller's transaction.
internal/store/event_outbox.go:873
↓ 2 callersMethodSend
Send posts msgs (1 to MaxBatch, unique ids) and returns one Result per message, in order. On a 200 whose results do not line up with the request (wron
internal/notify/gateway.go:96
↓ 2 callersMethodSendAs
SendAs sends an email with a custom from name (address stays the same since email providers require verified sender domains).
internal/email/sender.go:143
↓ 2 callersMethodSendChatMessage
(number int, input ChatSendInput)
internal/cli/client.go:4145
↓ 2 callersMethodSendTest
SendTest sends a test email to verify the email configuration.
internal/email/templates.go:362
↓ 2 callersMethodSequenceGap
SequenceGap increments both counters: the gap event, and the number of notifications it spans. A non-positive `missing` still counts as an event — the
internal/metrics/watchevents_observer.go:37
↓ 2 callersMethodSequenceReset
(reason string)
internal/metrics/watchevents_observer.go:48
↓ 2 callersMethodSequenceReset
SequenceReset reports that this instance's replay coverage was dropped. reason is bounded: "epoch_change" (the shared epoch key changed — an opaque to
internal/watchevents/observer.go:104
↓ 2 callersFunctionSerializeWorkspaceSettings
(settings *WorkspaceSettings)
internal/models/workspace_settings.go:70
↓ 2 callersMethodServerHonorsKeys
ServerHonorsKeys is serverHonorsKeys for the command layer: false when the capability lookup fails. `pad item copy` uses it to choose its unknown-outc
internal/cli/client.go:1402
↓ 2 callersMethodServerIdentity
ServerIdentity proves possession of the returned server key with a fresh challenge. It sends no credentials, ignores cookie jars and refuses redirects
internal/cli/client.go:158
↓ 2 callersMethodServerSupportsItemFieldAppend
ServerSupportsItemFieldAppend reports whether the item PATCH on this server honours append_implementation_note / append_decision (BUG-3056), which let
internal/cli/client.go:598
↓ 2 callersMethodServerSupportsItemScopedCommentWrites
ServerSupportsItemScopedCommentWrites reports whether this server routes comment PATCH/DELETE under the item (TASK-2695). An indeterminate probe answe
internal/cli/client.go:1276
↓ 2 callersMethodSessionID
()
internal/mcp/client_discover_test.go:68
↓ 2 callersMethodSetActivity
(userID, workerID string, busy bool, at time.Time, clientAt *time.Time)
internal/server/session_activity.go:54
↓ 2 callersMethodSetAgentName
SetAgentName sets X-Pad-Agent verbatim; an empty name omits the header. Call it before the first request.
internal/cli/client.go:137
↓ 2 callersMethodSetAppFetchTLS
SetAppFetchTLS overrides the TLS config app fetches use. Tests only.
internal/server/handlers_apps_install.go:707
↓ 2 callersMethodSetBeforeItemVersionsReadHookForTesting
SetBeforeItemVersionsReadHookForTesting runs hook at the start of every version-list read (ListItemVersionsPage and the snapshot read), before its que
internal/store/testing_helpers.go:306
↓ 2 callersMethodSetBeforeMoveLockForTesting
SetBeforeMoveLockForTesting installs the beforeMoveLock seam (BUG-3665) for the lifetime of the returned restore function: a move calls hook after its
internal/store/testing_helpers.go:293
↓ 2 callersMethodSetBeforeRotateRefreshHookForTesting
SetBeforeRotateRefreshHookForTesting runs hook at the start of every RotateRefreshToken, before the presented token is spent: the window after fosite
internal/store/testing_helpers.go:168
↓ 2 callersMethodSetBeforeVersionsReadHookForTesting
SetBeforeVersionsReadHookForTesting runs hook at the start of every legacy document version-list read, before its query (BUG-3833): the window between
internal/store/testing_helpers.go:335
↓ 2 callersMethodSetChatGPTMCPTransport
The ChatGPT catalog's MCP mount (TASK-3321 U2b): the catalog internal/mcp/chatgpt_catalog.go defines, served at its own URL, the ChatGPT resource (htt
internal/server/handlers_chatgpt_mcp.go:27
↓ 2 callersMethodSetCloudMode
SetCloudMode toggles the getpad.dev marketing footer on outgoing transactional emails. Server callers flip it on after Server.SetCloudMode fires (see
internal/email/sender.go:88
↓ 2 callersMethodSetCommentInsertFailureHookForTesting
SetCommentInsertFailureHookForTesting makes the comment INSERT inside CreateComment / CreateCommentWithActivity return hook's error, for the lifetime
internal/store/testing_helpers.go:223
↓ 2 callersMethodSetConnWritable
(itemID string, conn *websocket.Conn, canWrite bool)
internal/collab/manager.go:1559
↓ 2 callersMethodSetDeadlockRetryObserver
SetDeadlockRetryObserver records a function called once per retry with the site's name; the server counts them in pad_db_deadlock_retries_total.
internal/store/deadlock_retry.go:39
↓ 2 callersMethodSetHeader
SetHeader reports the count on a successful import, and says nothing when there is nothing to say — so a clean import's response is unchanged.
internal/server/import_stale_bodies.go:50
↓ 2 callersMethodSetHeader
SetHeader reports the count on a successful import.
internal/server/import_nul_repair.go:88
↓ 2 callersMethodSetIdleHook
SetIdleHook installs fn as the room-reclaimed callback (see idleHook). Nil removes it.
internal/collab/manager.go:173
↓ 2 callersMethodSetItemBuiltinSeed
SetItemBuiltinSeed records that an item has been given a built-in's text at this version (TASK-3462). The built-in update does this inside its write (
internal/store/builtin_origin.go:150
↓ 2 callersMethodSetMaterializer
SetMaterializer installs the op-log recovery worker's Materializer. Nil (the default, and what PAD_MATERIALIZE=off leaves) disables recovery entirely:
internal/server/materialize_recovery.go:152
↓ 2 callersMethodSetRedisHealth
SetRedisHealth attaches the Redis reachability prober (BUG-2727). Nil on a deployment with no Redis, in which case /api/v1/health/ready reports no red
internal/server/server.go:1316
↓ 2 callersMethodSetReminderTickChannel
SetReminderTickChannel replaces the interval ticker with a caller-driven channel. Test affordance only.
internal/server/reminder_tick.go:70
↓ 2 callersMethodSetReminderTickConfig
SetReminderTickConfig overrides the tick's timings. Zero values keep the defaults, so a caller can set one knob without restating the rest. Must be ca
internal/server/reminder_tick.go:57
↓ 2 callersMethodSetRetryBackoff
SetRetryBackoff sets the base retry backoff (tests set 0 to not wait).
internal/webhooks/dispatcher.go:243
↓ 2 callersMethodSetRolePark
SetRolePark places or moves a role lane's park line (PUT .../park), returning both the decoded response and the verbatim server JSON body.
internal/cli/client.go:1990
↓ 2 callersMethodSetRotateFaultHookForTesting
SetRotateFaultHookForTesting makes RotateUserSessions fail its transaction with hook's error, after the writes and before the commit, for the lifetime
internal/store/testing_helpers.go:348
↓ 2 callersMethodSetScopeFlagsGuarded
SetScopeFlagsGuarded is SetScopeFlags with the empty-list rule checked under the connection's lock: turning the wildcard off is refused with ErrLastCo
internal/store/oauth_connections.go:466
↓ 2 callersMethodSetSecretPlatformSetting
SetSecretPlatformSetting stores a secret platform setting encrypted with the store's key (the PAD_ENCRYPTION_KEY path). An empty value deletes the row
internal/store/platform_settings.go:73
↓ 2 callersMethodSetUsageObserver
SetUsageObserver installs fn, called after every provider call with the set's name and the call's usage. nil removes it. Not safe to call while jobs r
internal/decision/runner.go:392
↓ 2 callersMethodSetUserStripeCustomerIDIfUnset
SetUserStripeCustomerIDIfUnset stores customerID only when the user has no Stripe customer yet, or already has this one (TASK-3549). It never replaces
internal/store/limits.go:819
↓ 2 callersMethodSetWorkspacePurgeConfig
SetWorkspacePurgeConfig overrides the default sweep interval (24h) and retention window (30d). Pass 0 for either to keep the package default. Must be
internal/server/workspace_purge.go:71
↓ 2 callersMethodSetsFor
SetsFor names the sets that apply to a collection, sorted. It is the store's DecisionSetResolver, so it must stay pure (no database access): the store
internal/decision/runner.go:192
↓ 2 callersFunctionShipPlaybook
ShipPlaybook returns the seeded ship playbook for the startup template.
internal/collections/templates_playbooks.go:68
↓ 2 callersFunctionSignAppPayload
SignAppPayload returns the signature v2 header value.
internal/webhooks/app_delivery.go:108
↓ 2 callersFunctionSplitCommentKey
SplitCommentKey returns the question key and the comment id of a PerComment row's key. ok is false for a key that names no comment.
internal/decision/per_comment.go:35
↓ 2 callersMethodStampContentWatermarkIfCaughtUp
StampContentWatermarkIfCaughtUp advances items.content_flushed_op_log_id to cursor WITHOUT writing content, when a browser tab proves that the stored
internal/store/content_watermark_stamp.go:67
↓ 2 callersMethodStartAppPendingSweep
StartAppPendingSweep starts the sweep. Idempotent.
internal/server/app_pending_sweep.go:29
↓ 2 callersMethodStartOrphanGC
StartOrphanGC kicks off the periodic sweep loop. Idempotent — calling twice is a no-op (existing loop continues, second call returns silently). Must b
internal/server/orphan_gc.go:574
↓ 2 callersMethodStartSlotHolderQ
StartSlotHolderQ is the one-per-scope start rule (TASK-4918): the ref of a non-deleted item other than itemID in collectionID that holds a start desig
internal/store/start_slot.go:27
↓ 2 callersMethodStatus
Status checks each tracked installation and returns its current state, decided the way an update would decide it (DecideSkillWrite). embedded is the r
internal/cli/registry.go:142
↓ 2 callersMethodStatus
Status walks every global (per-user) agent and reports installation state. CWDBased agents (Claude Code) are omitted — their config is project-local,
internal/mcp/install.go:708
↓ 2 callersMethodStepUpStatus
()
internal/cli/client.go:2349
↓ 2 callersMethodStorage
Storage returns the storage adapter. Exposed for sub-PR C's oauth/register handler (which calls Storage.store directly to CreateOAuthClient) and for t
internal/oauth/server.go:319
↓ 2 callersMethodStoredFieldKeys
StoredFieldKeys reports which of keys some item within scope stores in its fields (BUG-3480: a list filter on a key no schema declares is honoured, wi
internal/store/items.go:2703
↓ 2 callersFunctionStrToDatesInLoc
StrToDatesInLoc same as StrToDates but it consideres default location to parse dates in in case no location specified with TZID parameter
internal/schedule/internal/rrule/str.go:391
↓ 2 callersFunctionStrToDtStart
StrToDtStart accepts string with format: "(TZID={timezone}:)?{time}" and parses it to a date may be used to parse DTSTART rules, without the DTSTART;
internal/schedule/internal/rrule/str.go:443
↓ 2 callersFunctionStrToROptionInLocation
StrToROptionInLocation is same as StrToROption but in case local time is supplied as date-time/date field (ex. UNTIL), it is parsed as a time in a giv
internal/schedule/internal/rrule/str.go:176
↓ 2 callersMethodString
()
internal/events/redis_subscribe_rejected_test.go:78
↓ 2 callersMethodString
String returns Redacted.
internal/secret/secret.go:62
↓ 2 callersFunctionSubjectKind
SubjectKind returns the subject kind for a canonical event name, and false if the name is not canonical.
internal/kernelevents/taxonomy.go:361
↓ 2 callersMethodSubscribeWithOverflow
SubscribeWithOverflow is Subscribe plus the overflow signal (TASK-1273): onOverflow runs once, asynchronously, when an event the subscriber needs (any
internal/collab/bus.go:116
↓ 2 callersMethodSupportsProtocolVersion
(string)
internal/mcp/transport_test.go:224
↓ 2 callersFunctionSurfaceSSE
SurfaceSSE returns the SSE wire name a canonical event publishes under, and false when it has none — either because the name is not canonical, or beca
internal/kernelevents/taxonomy.go:392
↓ 2 callersMethodSweepIdempotencyKeys
SweepIdempotencyKeys deletes keys older than the TTL.
internal/store/idempotency.go:161
↓ 2 callersMethodSweepMCPAuditOlderThan
SweepMCPAuditOlderThan deletes audit rows older than cutoff and returns the number of rows removed. Called from a periodic goroutine in Server.Start (
internal/store/mcp_audit.go:290
↓ 2 callersMethodSweepWorkspacelessActivities
SweepWorkspacelessActivities deletes workspace-less activities rows older than WorkspacelessActivityRetention, in batches, and returns how many it del
internal/store/activity_retention.go:214
↓ 2 callersFunctionTerminalStatusesFromSchema
── Back-compat wrappers ──────────────────────────────────────────────── The original API (status-only) stays in place so callers that don't yet have
internal/models/terminal.go:423
↓ 2 callersFunctionTokenScopeAllows
TokenScopeAllows is the exported wrapper around the package-private tokenScopeAllows: returns true iff the scopes JSON permits the given HTTP method a
internal/server/context.go:132
↓ 2 callersFunctionTraitedFromCollections
TraitedFromCollections adapts stored collection models into the trait view. Lets callers that already hold []models.Collection (CLI, in-process HTTP d
internal/collections/traits.go:105
↓ 2 callersMethodUnclaimNotifications
UnclaimNotifications hands claimed rows back WITHOUT counting an attempt: for rows that were never tried (a shutdown, a deadline, a gate that could no
internal/store/push_dispatch_settle.go:59
↓ 2 callersMethodUnclaimedRequestBlocked
UnclaimedRequestBlocked reports whether a request from user must be refused by the unclaimed-account gate: user is unclaimed, the method mutates, and
internal/server/middleware_unclaimed.go:171
↓ 2 callersMethodUnderItemLock
UnderItemLock runs fn while the per-item setup lock for itemID is held — the SAME lock Join's addConn+replayTo acquires and the SAME lock PruneAndAppl
internal/collab/manager.go:1087
↓ 2 callersMethodUnmarkNeedsNotMine
UnmarkNeedsNotMine removes userID's "not mine" on an item. It reports whether there was one.
internal/store/needs_not_mine.go:143
↓ 2 callersMethodUnreadMayHoldReady
UnreadMayHoldReady reports whether queue entries past the returned prefix could still be ready. Parking is monotone in lane order (every entry at or b
internal/models/agent_role.go:137
↓ 2 callersMethodUnstarItem
UnstarItem removes a star from an item for a user. Returns sql.ErrNoRows if not starred.
internal/store/item_stars.go:27
↓ 2 callersFunctionUnsubscribeURL
UnsubscribeURL generates an HMAC-signed unsubscribe link for the given email. The secret should be a stable server-side key (e.g. derived from the API
internal/email/unsubscribe.go:13
↓ 2 callersMethodUnwrap
Unwrap returns the driver's own connection. The write-capture test harness (storetest.CaptureWrites, TASK-3388) needs it to reach modernc's pre-update
internal/store/nulguard.go:398
↓ 2 callersMethodUpdateAgentRoleOrder
UpdateAgentRoleOrder batch-updates sort_order for a list of roles.
internal/store/agent_roles.go:476
↓ 2 callersMethodUpdateCollection
(wsSlug, collSlug string, input models.CollectionUpdate)
internal/cli/client.go:321
↓ 2 callersMethodUpdateComment
UpdateComment replaces a comment's body through the item-scoped route (TASK-2695), which refuses a comment that is not on itemRef. The server's not_fo
internal/cli/client.go:1254
↓ 2 callersMethodUpdateCommentAs
UpdateCommentAs replaces a comment's body and bumps updated_at. The comments_fts_update trigger re-indexes the new body. Returns sql.ErrNoRows when no
internal/store/comments.go:215
↓ 2 callersMethodUpdateCommentWrite
UpdateCommentWrite is UpdateComment with the item and actor display.
internal/appstore/comments.go:98
↓ 2 callersMethodUpdateItemWithPreCheck
UpdateItemWithPreCheck is UpdateItem with an optional pre-mutation hook that runs inside the same transaction (and, on Postgres, holds the same worksp
internal/store/items.go:2835
↓ 2 callersMethodUpdateItemWrite
UpdateItemWrite is UpdateItem with the response view.
internal/appstore/items.go:171
↓ 2 callersMethodUpdateUserAPIToken
UpdateUserAPIToken compares scopes in the write so a concurrent edit cannot make the widening decision stale. Read-back shares the update transaction.
internal/store/api_tokens.go:478
↓ 2 callersMethodUpdateWebhookFailure
(id string, failed bool)
internal/webhooks/dispatcher.go:75
← previousnext →6,901–7,000 of 31,685, ranked by callers