MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodGetCloudOwnership
GetCloudOwnership reads the ownership marker and the Stripe fingerprint.
internal/store/instance_mode.go:73
↓ 2 callersMethodGetCommitmentForReaders
GetCommitmentForReaders keeps milestone trash visibility separate from live graph lineage visibility.
internal/store/commitment.go:160
↓ 2 callersMethodGetConventionLibrary
GetConventionLibrary fetches the convention library from the server. category — when non-empty, server-side filter against LibraryCategory.Name (case
internal/cli/client.go:1736
↓ 2 callersMethodGetInstallUpgradeStateQ
GetInstallUpgradeStateQ reads an install of workspaceID on q.
internal/store/app_upgrade.go:39
↓ 2 callersMethodGetItemBySlugIncludeDeleted
GetItemBySlugIncludeDeleted finds an item by slug including soft-deleted items. Used for restore operations where the item is archived.
internal/store/items.go:1224
↓ 2 callersMethodGetItemIncludeDeletedQ
GetItemIncludeDeletedQ is GetItemIncludeDeleted parameterized over its executor (see Queryer).
internal/store/items.go:1145
↓ 2 callersMethodGetItemVersionDiffSnapshot
GetItemVersionDiffSnapshot is GetItemVersionDiff over one read snapshot (BUG-3814): the newest version's After is the body the walk started from.
internal/store/items.go:6779
↓ 2 callersMethodGetItemVersionResolvedSnapshot
GetItemVersionResolvedSnapshot is GetItemVersionResolved over one read snapshot (BUG-3814). Returns nil if not found.
internal/store/items.go:6764
↓ 2 callersMethodGetPendingInvitationForEmail
GetPendingInvitationForEmail returns the pending invitation id if, and only if, it is addressed to email and its workspace is live. Anything else (unk
internal/store/my_invitations.go:108
↓ 2 callersMethodGetPlaybookLibrary
GetPlaybookLibrary fetches the playbook library from the server. category — when non-empty, server-side filter against PlaybookCategory.Name (case-se
internal/cli/client.go:1789
↓ 2 callersMethodGetRefreshTokenSession
GetRefreshTokenSession hydrates a refresh token. Inactive rows surface as fosite.ErrInactiveToken — fosite's refresh-flow handler (handler/oauth2/flow
internal/oauth/storage.go:359
↓ 2 callersMethodGetUserAPIToken
GetUserAPIToken gives foreign, revoked and unknown ids the same result. Expiry is deliberately ignored, as it is for token rotation.
internal/store/api_tokens.go:460
↓ 2 callersMethodGetVersionResolvedSnapshot
GetVersionResolvedSnapshot is GetVersionResolved over one read snapshot (BUG-3833). Returns nil if not found.
internal/store/versions.go:176
↓ 2 callersMethodGetWorkspacesByIDsQ
(q Queryer, ids []string)
internal/store/needs_read.go:58
↓ 2 callersMethodGrantOwner
GrantOwner names the client a presented authorization code or refresh token was issued to, active or not, or "" when it names nothing. It reads the ro
internal/oauth/server.go:278
↓ 2 callersMethodGuestVisibleCollectionIDsQ
GuestVisibleCollectionIDsQ is GuestVisibleCollectionIDs parameterized over its executor (see Queryer).
internal/store/grants.go:517
↓ 2 callersMethodGuestVisibleResourcesIncludeDeletedQ
GuestVisibleResourcesIncludeDeletedQ is GuestVisibleResourcesIncludeDeleted parameterized over its executor (see Queryer).
internal/store/grants.go:592
↓ 2 callersMethodGuestWorkspaceIDsQ
(q Queryer, userID string)
internal/store/needs_read.go:29
↓ 2 callersMethodHandle
(ctx context.Context, rec slog.Record)
internal/server/bug3474_reval_fail_closed_test.go:28
↓ 2 callersFunctionHasPadEntry
HasPadEntry returns whether mcpServers.pad is present, plus the current `command` value (empty string when missing). Missing files are reported as not
internal/mcp/install.go:296
↓ 2 callersMethodHasV2ScheduleMembers
HasV2ScheduleMembers also covers bundles built directly by Go callers.
internal/models/export_version.go:57
↓ 2 callersMethodHeadAttachment
HeadAttachment issues a HEAD request and returns the headers as structured metadata. Variant is forwarded the same way as DownloadAttachment — empty s
internal/cli/client.go:3033
↓ 2 callersMethodHealth
Health checks if the server is running.
internal/cli/client.go:205
↓ 2 callersMethodHeartbeatPublishFailed
HeartbeatPublishFailed reports that this instance could not CONFIRM a liveness heartbeat publish (BUG-2769). Not the same as "did not publish": the ca
internal/watchevents/observer.go:143
↓ 2 callersMethodHold
Hold and Release are Mark without the closure, for a caller that may not call through a function value (the app store's boundary test refuses one). Ev
internal/attachments/inflight.go:34
↓ 2 callersMethodIDs
IDs lists the real (non-placeholder) criterion ids, in body order, once each.
internal/verification/verification.go:86
↓ 2 callersMethodInstallEpoch
InstallEpoch returns the install's current epoch.
internal/store/install_clients.go:133
↓ 2 callersMethodInstallReadCeilingQ
InstallReadCeilingQ is the install's read ceiling: its companion collections and the workspace's system collections.
internal/store/app_ceiling.go:87
↓ 2 callersMethodInviterCanStillGrant
InviterCanStillGrant reports whether an accept of this invitation would pass the inviter check above, read now and unlocked, so a door that offers an
internal/store/workspace_members.go:282
↓ 2 callersMethodInvocationSlugIndexTakenQ
InvocationSlugIndexTakenQ is InvocationSlugIndexTaken on a caller-supplied executor.
internal/store/app_pending.go:353
↓ 2 callersFunctionIsAPITokenFromContext
IsAPITokenFromContext reports whether the request was authenticated via an API token (vs. a session cookie or CLI session token). Mirrors the package-
internal/server/context.go:82
↓ 2 callersFunctionIsAttachmentHref
IsAttachmentHref reports whether href is a `pad-attachment:UUID` reference.
internal/server/render/attachments.go:62
↓ 2 callersFunctionIsCalendarBuiltinDateField
IsCalendarBuiltinDateField reports whether key is `created` or `completed`.
internal/models/view_calendar.go:47
↓ 2 callersFunctionIsCanonical
IsCanonical reports whether name is in the events/1 set. The choke point calls this before writing an outbox row. A name that fails here is a program
internal/kernelevents/taxonomy.go:354
↓ 2 callersMethodIsCloud
IsCloud reports whether the server is running in cloud mode.
internal/server/server.go:1054
↓ 2 callersMethodIsCloud
IsCloud reports whether the configured connection mode is Cloud (i.e. cfg.Mode == ModeCloud). This is a CLIENT-side signal: the CLI is configured to t
internal/config/config.go:765
↓ 2 callersMethodIsEmailOptedOut
IsEmailOptedOut returns true if the given email address has unsubscribed.
internal/store/email_optouts.go:6
↓ 2 callersFunctionIsEmptyRelationList
normalizeEmptyRelationLists rewrites an EMPTY `multi_relation` array into whichever spelling of "no targets" the caller's write shape already has (PLA
internal/items/validate.go:262
↓ 2 callersFunctionIsError
IsError reports whether err is a manifest validation failure.
internal/appmanifest/manifest.go:137
↓ 2 callersFunctionIsImageMime
IsImageMime reports whether the MIME type is LABELLED as an image. Mirrors `image/*` from the server-side allowlist (image/png, image/jpeg, image/gif,
internal/server/render/attachments.go:92
↓ 2 callersFunctionIsInputError
IsInputError reports whether err is a refusal of the request itself.
internal/appstore/items.go:313
↓ 2 callersFunctionIsItemSlugConflict
IsItemSlugConflict reports whether err is the items (workspace_id, slug) unique violation, and no other: an app create retries only that one, with a f
internal/store/fenced_items.go:536
↓ 2 callersFunctionIsPatchRefusal
IsPatchRefusal reports a patch refusal the server answered.
internal/cli/client.go:1390
↓ 2 callersFunctionIsResolveError
IsResolveError reports whether err is, or wraps, a ResolveError.
internal/webhooks/validate.go:29
↓ 2 callersFunctionIsTZMismatchKey
IsTZMismatchKey reports whether key is a well-formed tz-mismatch pair key.
internal/models/ui_dismissals.go:30
↓ 2 callersMethodIsUserAppGrant
IsUserAppGrant reports whether requestID is a delegated app grant the user holds (active or not).
internal/store/app_grants.go:87
↓ 2 callersFunctionIsValidDocType
(t string)
internal/models/document.go:194
↓ 2 callersFunctionIsValidStatus
(s string)
internal/models/document.go:203
↓ 2 callersMethodIsZero
IsZero reports whether the collection declares no kernel traits at all.
internal/models/collection_traits.go:128
↓ 2 callersFunctionItemCloseState
ItemCloseState classifies an item's fields against its collection.
internal/models/close_state.go:21
↓ 2 callersMethodItemGatesDropped
ItemGatesDropped is what a cross-workspace copy or move of itemID would leave out: how many gates hold it whose blocker the mover can read (nil: none)
internal/store/commitment_gates.go:758
↓ 2 callersMethodItemHasPendingContent
ItemHasPendingContent reports whether the item's op-log holds content-bearing rows above its flush watermark: content_state's applied_pending_flush pr
internal/store/materialize_flush.go:140
↓ 2 callersMethodItemIDsInCollectionsQ
ItemIDsInCollectionsQ keeps the item IDs whose item sits in one of collectionIDs, in input order (BUG-3424: an app request's item grants are narrowed
internal/store/app_ceiling.go:246
↓ 2 callersMethodItemLiveness
ItemLiveness reports whether an item may be sent to a decision provider, in two parts because the runner treats them differently: - itemLive: the ite
internal/store/decisions.go:922
↓ 2 callersMethodItemView
ItemView reads the response view of a companion item in this transaction.
internal/store/fenced_items.go:147
↓ 2 callersMethodItemsWithFieldValueQ
ItemsWithFieldValueQ returns up to limit live items of collectionID in workspaceID whose field key equals value, with ListItems' own Fields-filter pre
internal/store/app_pending.go:374
↓ 2 callersMethodJSONExtractText
(column, key string)
internal/store/dialect.go:271
↓ 2 callersMethodJSONFieldOrder
(column, key, dir string)
internal/store/dialect.go:52
↓ 2 callersMethodLatestAssignmentTimes
LatestAssignmentTimes returns, per item, when it was last assigned to the named person: the newest "updated" activity whose change list holds "assigne
internal/store/needs_read.go:451
↓ 2 callersMethodLess
Less reports whether a sorts before b. Both keys come from one sort.
internal/needs/cursor.go:84
↓ 2 callersFunctionLibraryConventionMetadata
LibraryConventionMetadata is the typed convention metadata a library convention carries.
internal/collections/templates.go:345
↓ 2 callersMethodLifespans
Lifespans returns the lifetimes this server issues tokens with.
internal/oauth/server.go:107
↓ 2 callersMethodListBlobs
(ctx context.Context)
internal/attachments/store.go:93
↓ 2 callersMethodListBlobs
ListBlobs enumerates every blob under the store's sharded tree, satisfying the optional Lister capability (BUG-2406 — the rowless-blob GC sweep). One
internal/attachments/fs_store.go:257
↓ 2 callersMethodListCalendarFeeds
(ctx context.Context, userID string)
internal/store/calendar_feeds.go:92
↓ 2 callersMethodListChatConversations
--- Global chat --- Keep the wire responses intact so --format json includes refs and future additive fields. The commands decode only the fields they
internal/cli/client.go:3663
↓ 2 callersMethodListCollectionsQ
ListCollectionsQ is ListCollections on a caller-supplied executor, so it can read inside a snapshot transaction (BUG-3659: the account export reads a
internal/store/collections.go:470
↓ 2 callersMethodListInstallArtifactItems
ListInstallArtifactItems returns the workspace's live items stamped with a pack from origin (source_pack = origin@version), oldest first. A prefix is
internal/store/app_lifecycle.go:472
↓ 2 callersMethodListItemLeases
ListItemLeases returns every LIVE lease in a workspace, keyed by item id. Expired leases are filtered in SQL so the map carries only what a list rende
internal/store/item_lease.go:168
↓ 2 callersMethodListItemVersionsBeforeTime
ListItemVersionsBeforeTime returns versions for an item created before the given time, ordered newest-first, limited to `limit` results. Used for curs
internal/store/items.go:6857
↓ 2 callersMethodListItemVersionsResolvedPage
ListItemVersionsResolvedPage is ListItemVersionsResolved bounded to the newest `limit` versions (limit <= 0 means unbounded). The bound is cheap ONLY
internal/store/items.go:6650
↓ 2 callersMethodListItemsPendingContentFlushQ
ListItemsPendingContentFlushQ is ListItemsPendingContentFlush against a caller-supplied executor, so the migration's unflushed-edits gate reads the sa
internal/store/export.go:2186
↓ 2 callersMethodListPurgeableWorkspaces
ListPurgeableWorkspaces returns workspaces whose deleted_at is set and older than cutoff — i.e. soft-deleted long enough ago to hard-purge. Live works
internal/store/workspace_purge.go:58
↓ 2 callersMethodListReactionsByComments
ListReactionsByComments loads all reactions for a set of comment IDs, keyed by comment ID.
internal/store/reactions.go:96
↓ 2 callersMethodListSchedulesForAgendaAudiences
ListSchedulesForAgendaAudiences is ListSchedulesForAgenda limited to the schedules whose audience is one of audiences (nil or empty reads every audien
internal/store/schedule_agenda.go:51
↓ 2 callersMethodListShareLinks
ListShareLinks returns all share links for a target (item or collection).
internal/store/share_links.go:189
↓ 2 callersMethodListTraitedCollectionsQ
ListTraitedCollectionsQ is ListTraitedCollections on a caller-supplied executor (TASK-3397, U8b: the installer's in-transaction normalization).
internal/store/collections.go:439
↓ 2 callersMethodListViews
ListViews returns all views for a collection within a workspace.
internal/store/views.go:103
↓ 2 callersMethodListWorkspaceImportStatuses
ListWorkspaceImportStatuses answers the markers for a set of workspaces, keyed by workspace id, in one query.
internal/store/workspace_import_status.go:51
↓ 2 callersMethodListWorkspacesQ
ListWorkspacesQ is ListWorkspaces against a caller-supplied executor, so a migration's gate can read the workspace list inside the same snapshot trans
internal/store/workspaces.go:24
↓ 2 callersMethodLogin
Login authenticates with email and password.
internal/cli/client.go:2134
↓ 2 callersMethodMCPAuditNames
MCPAuditNames resolves the people and connections one page of the admin MCP audit names, for display (TASK-2255 C110: the page showed truncated raw UU
internal/store/mcp_audit.go:352
↓ 2 callersMethodMark
Mark increments the count for hash and returns the release, which the caller MUST call exactly once (defer it).
internal/attachments/inflight.go:26
↓ 2 callersMethodMarkChatDeliveredContext
MarkChatDeliveredContext bounds the monitor acknowledgement by its context.
internal/cli/client.go:1026
↓ 2 callersMethodMarkIdempotencyKeyUnknown
MarkIdempotencyKeyUnknown records a patch that reached an open editor and was never confirmed: only that connection may resolve it.
internal/store/idempotency.go:152
↓ 2 callersFunctionMatchLegacyBuiltin
MatchLegacyBuiltin names the built-in an item made before origins were recorded came from, or "" (TASK-3462 U4). The rule is exact, never fuzzy: - one
internal/collections/builtin_legacy.go:32
↓ 2 callersMethodMaxItemSeq
MaxItemSeq returns the largest items.seq across the workspace, or 0 if the workspace has no items. This is the cursor floor for the local-first read m
internal/store/items.go:1976
↓ 2 callersMethodMaxOpLogID
(itemID string)
internal/collab/manager_test.go:326
↓ 2 callersMethodMigrateRelationReferentsQ
MigrateRelationReferentsQ is MigrateRelationReferents on a caller-supplied read executor — see ResolveRelationReferentsQ for why the copy door needs i
internal/store/relation_referents.go:1243
↓ 2 callersMethodMigratedRemedy
MigratedRemedy reports the stored remedy when this database has been marked as migrated, and "" when it has not. Exported for ONE caller and one ques
internal/store/migrated.go:453
↓ 2 callersFunctionMintWorkerID
MintWorkerID returns a fresh worker id: "wk_" + 128 random bits in hex.
internal/cli/session_worker.go:34
↓ 2 callersMethodMoveItemWithForce
MoveItemWithForce is the open-children-guard-aware variant of MoveItem (IDEA-1494). When `force` is true, the URL gets a `?force=true` query so the se
internal/cli/client.go:1101
↓ 2 callersMethodNarrowCurrentOnlyWildcardConnections
NarrowCurrentOnlyWildcardConnections gives every connection stored with all_current_workspaces on and include_future_workspaces off what that combinat
internal/store/oauth_connections_narrow.go:42
↓ 2 callersMethodNeedsMarkersForItems
NeedsMarkersForItems returns each item's state as userID would see it now (the marker a snooze made at this moment would carry), for the rows a page s
internal/store/needs_read.go:430
↓ 2 callersFunctionNewCountingReader
NewCountingReader wraps r. The stall clock starts now, so a connection that never starts reading counts as stalled too.
internal/cli/client_import.go:32
↓ 2 callersFunctionNewImportedUppercaseRefSlugFixture
NewImportedUppercaseRefSlugFixture restores a legacy imported IDENT-10 slug. Import now coerces ref-shaped slugs (TASK-4375), so the fixture seeds the
internal/store/storetest/ref_prefix.go:118
↓ 2 callersFunctionNewWithReplaySize
NewWithReplaySize creates a MemoryBus with a custom replay buffer capacity (tests use a small one).
internal/watchevents/watchevents.go:496
↓ 2 callersMethodNextItemNumber
NextItemNumber returns the workspace's next item_number, the human create's own subquery, read under LockWorkspaceSeq.
internal/store/fenced_tx.go:175
↓ 2 callersMethodNormalize
Normalize sets pagination and sorting defaults on SearchParams.
internal/store/search.go:102
↓ 2 callersFunctionNotDefaultKeys
NotDefaultKeys is the set a migrate door hands DropInvisibleRelationDefaults: the caller's own values plus the values carried from the source item. Ev
internal/store/relation_referents.go:1913
← previousnext →6,101–6,200 of 28,840, ranked by callers