MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 5 callersMethodEndAppDelivery
(deliveryID string)
internal/webhooks/app_delivery.go:50
↓ 5 callersMethodEnsureChatDMContext
EnsureChatDMContext lets the monitor cancel its background DM ensure on exit.
internal/cli/client.go:4101
↓ 5 callersMethodError
()
internal/server/handlers_items_bulk.go:104
↓ 5 callersFunctionErrorType
ErrorType retains the failure's type without rendering untrusted error text. HTTP and conversion errors can repeat URLs, response bodies or credential
internal/logging/redaction.go:240
↓ 5 callersMethodEventsSince
EventsSince returns buffered events for a workspace with IDs greater than sinceID. Returns nil when this instance cannot vouch for the requested span
internal/events/redis_bus.go:1559
↓ 5 callersFunctionExtractWorkspaceContext
(raw string)
internal/models/workspace_settings.go:118
↓ 5 callersMethodFinishRotate
FinishRotate is rotate's phase 2: disabling -> active with a new client secret (discarded: the app receives one through redeem) and a new install code
internal/store/app_lifecycle.go:208
↓ 5 callersFunctionFoldName
FoldName folds an object member name the way encoding/json v1 does when it matches a key to a struct field: ASCII letters upper-cased, and every other
internal/jsonscan/jsonscan.go:150
↓ 5 callersMethodFor
For returns the routing as the given user sees it. Under the mentioned rule that is built from the user's own mentions alone, so nothing of another pe
internal/needs/needs.go:142
↓ 5 callersFunctionGenerateUsername
--- Username backfill --- GenerateUsername derives a URL-safe username from a display name. Falls back to the email local part if the name produces an
internal/store/users.go:1995
↓ 5 callersMethodGetAllItemProgress
GetAllItemProgress returns child item completion counts for every item in the given collection within a workspace. includeArchived controls whether s
internal/store/items.go:5602
↓ 5 callersMethodGetCollection
(wsSlug, collSlug string)
internal/cli/client.go:316
↓ 5 callersMethodGetDashboard
--- Dashboard --- GetDashboard returns the workspace dashboard as raw JSON. The DashboardResponse type lives in the server package, so we use json.Raw
internal/cli/client.go:1601
↓ 5 callersMethodGetDeletedWorkspaceBySlug
GetDeletedWorkspaceBySlug returns a SOFT-DELETED workspace by any slug it claims (deleted_at IS NOT NULL), including its owner_id, or nil when no such
internal/store/workspaces.go:507
↓ 5 callersMethodGetMemberCollectionAccessQ
GetMemberCollectionAccessQ is GetMemberCollectionAccess parameterized over its executor (see Queryer).
internal/store/workspace_members.go:793
↓ 5 callersMethodGetParentMap
GetParentMap returns a map of item ID -> parent item ID for all parent links in a workspace. Used for efficient batch lookups (e.g., dashboard, list e
internal/store/items.go:5091
↓ 5 callersMethodGetShareLink
GetShareLink retrieves a share link by ID.
internal/store/share_links.go:118
↓ 5 callersMethodGetWatchByUserItem
GetWatchByUserItem returns the (at most one) watch a user holds on a specific item, or (nil, nil) if none exists.
internal/store/watches.go:33
↓ 5 callersMethodGetWebhook
GetWebhook retrieves a single webhook by ID.
internal/store/webhooks.go:72
↓ 5 callersMethodGetWorkspace
(slug string)
internal/cli/client.go:242
↓ 5 callersMethodGetWorkspaceGroup
(ctx context.Context, userID, id string)
internal/store/workspace_groups.go:84
↓ 5 callersMethodGetWorkspaceImportStatus
GetWorkspaceImportStatus answers the workspace's import marker, or nil when it has none (the normal case).
internal/store/workspace_import_status.go:36
↓ 5 callersFunctionHTTPStatus
HTTPStatus is the HTTP status a request error carries, or 0 when the request got no answer at all (the server was unreachable) or the error did not co
internal/cli/client.go:3970
↓ 5 callersMethodHasElectablePatchApplier
HasElectablePatchApplier is HasElectableApplier for a patch (PLAN-3578 step 2): is a patch-capable conn electable right now. A point-in-time hint, lik
internal/collab/applier.go:616
↓ 5 callersFunctionHasRefPlaceholder
HasRefPlaceholder reports whether a body carries a {{ref:}} placeholder. Such a seed's stored body depends on the workspace it lands in, so it can nev
internal/collections/template_refs.go:22
↓ 5 callersMethodInstallClientIDTx
InstallClientIDTx returns the install's client id.
internal/store/install_clients.go:239
↓ 5 callersMethodItemLastRestoreSeq
ItemLastRestoreSeq returns the DURABLE per-item restore boundary (items.last_restore_seq) — the item.seq of the most recent version restore (BUG-2264)
internal/collab/room.go:358
↓ 5 callersMethodIterator
Iterator returns an iterator for rrule.Set
internal/schedule/internal/rrule/rruleset.go:134
↓ 5 callersFunctionJudge
Judge sets State on every row, and PossiblyStale where a linked PR merged after the row was recorded. rows may be any subset of one item's history; "s
internal/verification/verification.go:113
↓ 5 callersMethodListAgendaWork
ListAgendaWork applies visibility and recipient admission before the scan cap. listNoDate admits unscheduled work collections for a personal listing.
internal/store/agenda_roles.go:398
↓ 5 callersMethodListAllItemsReport
ListAllItemsReport is ListAllItems from startOffset, also returning the first page's UndeclaredKeys (BUG-4024).
internal/cli/client.go:465
↓ 5 callersMethodListItemVersionsResolvedSnapshot
ListItemVersionsResolvedSnapshot reads the item's body and its newest `limit` versions (limit <= 0: all) in one read snapshot, and resolves the versio
internal/store/items.go:6888
↓ 5 callersMethodListSchedulesForCalendar
ListSchedulesForCalendar is ListSchedulesForAgenda for the calendar, which also shows what happened on a finished item. An open item qualifies exactly
internal/store/schedule_agenda.go:62
↓ 5 callersMethodListStarredItems
ListStarredItems returns all items starred by a user in a workspace, enriched with collection and assignment info. Only non-deleted items are returned
internal/store/item_stars.go:96
↓ 5 callersMethodListUserAppGrants
ListUserAppGrants returns the user's live delegated app grants: a binding of kind delegated whose grant still has an active access or refresh token he
internal/store/app_grants.go:36
↓ 5 callersMethodListWorkspaceMembers
--- Workspace Members --- ListWorkspaceMembers returns all members of a workspace.
internal/cli/client.go:1936
↓ 5 callersMethodLiveCollectionIDs
ListTraitedCollections returns every live collection in the workspace paired with its parsed kernel traits (SPEC-5). This is the lookup that replaced
internal/store/collections.go:417
↓ 5 callersMethodMCPBearerAuth
MCPBearerAuth is the auth gate for the /mcp Streamable HTTP endpoint. Behaviour, in order: 1. No Authorization header, or one that doesn't start wit
internal/server/middleware_mcp_auth.go:79
↓ 5 callersFunctionMetricsMiddleware
MetricsMiddleware returns a chi middleware that records Prometheus metrics for every HTTP request: count, duration, and response size. Path labels us
internal/server/middleware_metrics.go:19
↓ 5 callersFunctionMigrateCloseStateChange
MigrateCloseStateChange reports whether moving an item from the source collection to the destination would change its CloseState, given the destinatio
internal/models/close_state.go:71
↓ 5 callersMethodMigrateItemFieldValues
MigrateItemFieldValues bulk-updates items in a collection when select options are renamed. Each entry in renames maps old_value → new_value for the gi
internal/store/collections.go:1021
↓ 5 callersFunctionMigratedTables
MigratedTables names the tables `pad db migrate-to-pg` actually copies. The migration is application-level: it walks workspaces and runs ExportWorksp
internal/store/nulmigrated.go:28
↓ 5 callersMethodMinGap
MinGap measures a schedule at its write (TASK-4236). n is how many occurrences the sample from Start found: gapSample, or more when an RDATE lies past
internal/schedule/engine.go:471
↓ 5 callersFunctionMkdirTemp
MkdirTemp makes os.TempDir()/prefix<pid>-<random> after a sweep of earlier prefix directories whose owner is gone, and holds its owner.lock for the li
internal/testtmp/testtmp.go:47
↓ 5 callersFunctionNewEventsObserver
NewEventsObserver returns an observer writing into m.
internal/metrics/events_observer.go:19
↓ 5 callersFunctionNewHTTPResourceFetcher
NewHTTPResourceFetcher builds a fetcher backed by an already-configured tool dispatcher (its Handler + UserResolver + auth perimeter are reused).
internal/mcp/resources_http.go:56
↓ 5 callersFunctionNewMessage
NewMessage builds the message for one device: the fixed title and body for kind, and Data{nid, cid, kind, count}. id is the batch-local message id.
internal/notify/body.go:71
↓ 5 callersFunctionNewRRule
NewRRule construct a new RRule instance
internal/schedule/internal/rrule/rrule.go:151
↓ 5 callersFunctionNewRedisBusWithKeys
NewRedisBusWithKeys is NewRedisBusWithReplaySize with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the value sha
internal/watchevents/redis_bus.go:468
↓ 5 callersFunctionNewRedisHealth
NewRedisHealth builds a prober for client. onProbe may be nil.
internal/server/redis_health.go:118
↓ 5 callersFunctionNewRedisSessionPresenceWithKeys
NewRedisSessionPresenceWithKeys is NewRedisSessionPresence with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the
internal/server/session_presence_redis.go:434
↓ 5 callersFunctionNewRedisTransport
NewRedisTransport returns a transport on keys' access_kicks channel. It uses its OWN client, cloned from client's options with context timeouts enable
internal/accesskick/accesskick.go:57
↓ 5 callersFunctionNewSupervisor
NewSupervisor builds a Supervisor. It starts no process: the first job does.
internal/materialize/supervisor.go:189
↓ 5 callersFunctionNormalizeAgentName
NormalizeAgentName is the one stored form of a self-declared agent name, shared by write attribution, presence (TASK-4040), chat key validation (TASK-
internal/models/agent_name.go:13
↓ 5 callersFunctionNormalizeFilenameWithSource
NormalizeFilenameWithSource is NormalizeFilename that also reports which of its branches decided the result, so the door that stores the name can reco
internal/attachments/filename.go:119
↓ 5 callersMethodNowRFC3339
NowRFC3339 returns the SQL expression for current UTC time in RFC3339 format. SQLite: strftime('%Y-%m-%dT%H:%M:%SZ', 'now') PostgreSQL: TO_CHAR(NOW()
internal/store/dialect.go:73
↓ 5 callersMethodOctetLength
OctetLength returns SQL for the BYTE length of a text-ish column, as the driver will hand it to Scan. The distinction matters here rather than being
internal/store/dialect.go:94
↓ 5 callersFunctionOnboardPlaybook
OnboardPlaybook returns the library entry for the canonical `/pad onboard` playbook. PLAN-1496 / TASK-1499. Title is "Onboard a workspace" — verb-obj
internal/collections/playbook_library_onboard.go:338
↓ 5 callersFunctionOnboardSeedPlaybook
OnboardSeedPlaybook returns the onboard playbook as a SeedPlaybook ready for SeedCollectionsFromTemplate to insert into a new workspace at init time.
internal/collections/playbook_library_onboard.go:314
↓ 5 callersMethodPlanAttachmentCopy
PlanAttachmentCopy plans the attachment side of a cross-workspace item copy. It writes nothing. DR-11a, restated because it is the whole point of the
internal/store/attachments_copy_plan.go:373
↓ 5 callersMethodPrepare
Prepare delegates to PrepareContext so there is ONE wrapping site. A mutation showed the separate body was unreachable: database/sql routes to Prepare
internal/store/nulguard.go:433
↓ 5 callersMethodPreviewScheduleCarryFor
PreviewScheduleCarryFor is PreviewScheduleCarry for a reader who may see only some selected children (canRead nil: all) and link ends or gate blockers
internal/store/schedule_carry_copy.go:448
↓ 5 callersFunctionPrintRawJSON
PrintRawJSON writes a server response verbatim except for indentation. json.Indent is a LEXICAL transform: it does not decode, so key order, numeric
internal/cli/client_items_copy.go:568
↓ 5 callersFunctionPriorityColor
PriorityColor returns a *color.Color appropriate for the given priority string.
internal/cli/format.go:50
↓ 5 callersFunctionProjectRewrittenLen
ProjectRewrittenLen returns the byte length RewriteBracketsAt WOULD produce for the same arguments, and how many rewrites it would apply, without buil
internal/links/links.go:393
↓ 5 callersMethodPushItemKeyed
PushItemKeyed is PushItem with an idempotency key (TASK-3585). With a key it retries once with that key after a transport error or a 5xx, and only aga
internal/cli/client.go:909
↓ 5 callersMethodPutNotificationSettings
PutNotificationSettings replaces userID's settings wholesale: a field left false is stored false, so a client that turns one off and sends the rest un
internal/store/notification_settings.go:33
↓ 5 callersMethodRead
(p []byte)
internal/cli/client_import.go:38
↓ 5 callersMethodRead
(p []byte)
internal/server/handlers_import_bundle.go:88
↓ 5 callersMethodRead
(_ []byte)
cmd/pad/templates_picker_test.go:14
↓ 5 callersMethodReadCursor
ReadCursor returns when userID last marked workspaceID caught up (TASK-3615). found is false when the user never has: the catch-up window then falls b
internal/store/read_cursors.go:13
↓ 5 callersMethodReadScheduleSnoozedUntil
ReadScheduleSnoozedUntil is for reads without occurrence history already in hand. Agenda expansion calls ScheduleSnoozedUntil with its loaded rows ins
internal/store/schedule_snooze.go:59
↓ 5 callersMethodRedeemContextCode
RedeemContextCode consumes code for installID, whose token carries epoch, and returns the item it names if, under the §6 locks, everything the code wa
internal/store/app_item_actions.go:366
↓ 5 callersFunctionReservedFieldKeysIn
ReservedFieldKeysIn returns the keys of a caller-supplied field map that name system metadata, sorted. Two kinds of map consult it, for the same reas
internal/items/overrides.go:94
↓ 5 callersMethodResolveBacklinksVisibility
ResolveBacklinksVisibility computes the (fullCollectionIDs, grantedItemIDs) access vectors for `userID` in `workspaceID`, REQUEST-INDEPENDENT. Mirrors
internal/store/backlinks_visibility.go:61
↓ 5 callersFunctionResolveWorkerID
ResolveWorkerID decides what goes in the X-Pad-Worker header (TASK-3613): the opaque id this session holds item leases under, so two sessions that sha
internal/cli/session_worker.go:26
↓ 5 callersMethodRestoreCollection
RestoreCollection un-archives this workspace's archived collection id. sql.ErrNoRows when it is not one (already restored by a racing call, or never a
internal/store/collections_archive.go:62
↓ 5 callersMethodRetryable
Retryable reports whether any endpoint's failure is worth another drain pass. It is the ack decision, stated once here rather than re-derived by every
internal/webhooks/dispatcher.go:215
↓ 5 callersMethodRevokeAccessTokenFamily
RevokeAccessTokenFamily mirrors RevokeRefreshTokenFamily for access tokens. fosite calls these in pairs when revoking by request_id (the unified Revok
internal/store/oauth.go:627
↓ 5 callersMethodRunStdio
RunStdio is Run with explicit stdin / stdout streams. Used by tests that drive the server in-process via io.Pipe. The same shutdown semantics as Run
internal/mcp/server.go:133
↓ 5 callersMethodScan
(dest ...any)
internal/store/push_dispatch.go:66
↓ 5 callersFunctionScore
Score builds a Score question over an ORDERED scale, lowest level first. At least two levels are required.
internal/decision/decision.go:83
↓ 5 callersMethodSetAllowedWorkspaces
SetAllowedWorkspaces is the symmetric writer used by oauth/authorize/decide (TASK-952). Centralizing the key string here keeps producers + consumers i
internal/oauth/session.go:138
↓ 5 callersMethodSetEndpoint
SetEndpoint overrides the Maileroo API endpoint. Intended for tests that stand up an httptest server mimicking Maileroo's v2 API — production callers
internal/email/sender.go:75
↓ 5 callersMethodSetLinkClockForTesting
SetLinkClockForTesting sets the clock the linked-change time budget reads. Production code must not call this. Set it only with no request in flight.
internal/store/testing_helpers.go:364
↓ 5 callersMethodSetMCPSessionTrackerConfig
SetMCPSessionTrackerConfig stashes ttl + sweep-interval overrides for both trackers before they are started. Either may be 0 to keep the package defau
internal/server/middleware_mcp_session.go:277
↓ 5 callersMethodSetMCPWriteCallClassifier
SetMCPWriteCallClassifier tells the /mcp mount which tool calls need a write scope (TASK-2308). cmd/pad wires the catalog's own read-only knowledge; n
internal/server/middleware_mcp_scope.go:20
↓ 5 callersMethodSetParentLinkAs
SetParentLinkAs is SetParentLink recording the account that wrote the link in item_links.user_id (BUG-3372). Request paths use it; "" names no account
internal/store/items.go:4641
↓ 5 callersMethodSetPushGateway
SetPushGateway sets the push gateway URL (PAD_PUSH_GATEWAY_URL). Empty means this server offers no push. Called once at startup, before the server acc
internal/server/handlers_push_devices.go:35
↓ 5 callersMethodSetScopeFlags
SetScopeFlags updates the three boolean scope flags atomically. All three values are written every call — there's no PATCH semantic at the store layer
internal/store/oauth_connections.go:279
↓ 5 callersMethodSetTrustedProxies
SetTrustedProxies configures which direct TCP peers are allowed to set X-Real-IP / X-Forwarded-For on incoming requests. Accepts a comma- separated li
internal/server/server.go:1674
↓ 5 callersMethodSetWebhookDispatcher
SetWebhookDispatcher attaches a webhook dispatcher for outgoing notifications. Delivery goroutines are routed through s.goAsync so they're tracked on
internal/server/server.go:1335
↓ 5 callersMethodSetWorkerID
SetWorkerID makes this client send id as X-Pad-Worker instead of the one ResolveWorkerID would pick: the `--worker-id` flag, which is also how a local
internal/cli/session_worker.go:110
↓ 5 callersFunctionShortWorkerID
ShortWorkerID is the display form ("wk_3f2a"): enough to tell two holders apart in a conflict message or an item's detail, never the full id, which is
internal/models/lease_worker.go:34
↓ 5 callersFunctionShorthandNames
ShorthandNames lists the shorthand names, sorted, for help text.
internal/schedule/shorthand.go:27
↓ 5 callersMethodStartMaterializeRecovery
StartMaterializeRecovery starts the op-log recovery worker and its two triggers. A no-op without a Materializer (SetMaterializer) or without a collab
internal/server/materialize_recovery.go:194
↓ 5 callersMethodState
State builds the item's current state, as a set without links sees it.
internal/decision/runner.go:483
↓ 5 callersFunctionStillDropped
StillDropped filters a MigrateResult.Dropped list down to the keys that are genuinely absent from the FINAL field map. Dropped is computed during mig
internal/items/migrate.go:235
↓ 5 callersMethodString
()
internal/store/occurrence_role_history_test.go:25
↓ 5 callersFunctionStripFrontmatter
StripFrontmatter removes YAML frontmatter (between --- delimiters) from content.
internal/cli/agents.go:249
← previousnext →3,201–3,300 of 31,685, ranked by callers