MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersMethodGetConversation
GetConversation returns a conversation the actor is a member of.
internal/store/conversations.go:184
↓ 4 callersMethodGetItem
(wsSlug, itemSlug string)
internal/cli/client.go:662
↓ 4 callersMethodGetItemCommitment
GetItemCommitment returns an item's schedule view.
internal/cli/client_schedule.go:38
↓ 4 callersMethodGetItemIncludeDeletedQ
GetItemIncludeDeletedQ is GetItemIncludeDeleted parameterized over its executor (see Queryer).
internal/store/items.go:1151
↓ 4 callersMethodGetItemPatch
GetItemPatch reads a stored patch (PLAN-3578 step 3) for the undo path, the table's only reader. Nil when there is none, or when it belongs to another
internal/store/item_patches.go:13
↓ 4 callersMethodGetItemVersionDiff
GetItemVersionDiff returns the change a version row records (PLAN-2348 U2), or nil if the item has no such version. A create row holds the body AS CRE
internal/store/items.go:6970
↓ 4 callersFunctionGetLibraryConvention
GetLibraryConvention finds a convention in the library by its title. Returns nil if no convention with the given title exists.
internal/collections/convention_library.go:232
↓ 4 callersMethodGetPlatformSettings
GetPlatformSettings returns all platform settings as a map.
internal/store/platform_settings.go:35
↓ 4 callersMethodGetScheduleRevision
GetScheduleRevision reads the schedule and its commitment_revision in one read-only snapshot (beginReadSnapshot: REPEATABLE READ on Postgres, a read t
internal/store/commitment_revision.go:92
↓ 4 callersMethodGetSecretPlatformSetting
GetSecretPlatformSetting returns a secret platform setting decrypted, or "" when unset. A row WITHOUT the encrypted prefix is refused rather than ret
internal/store/platform_settings.go:98
↓ 4 callersMethodGetUserWorkspacesDetailed
GetUserWorkspacesDetailed returns each workspace this user is a member of with the per-workspace aggregations the admin modal's Workspaces tab renders
internal/store/workspace_members.go:1892
↓ 4 callersMethodGetView
GetView returns a single view by ID.
internal/store/views.go:47
↓ 4 callersFunctionGroupTemplatesByCategory
GroupTemplatesByCategory returns the visible workspace templates grouped by category in the canonical CategoryOrder. Categories with no visible templa
internal/collections/templates.go:67
↓ 4 callersMethodGuestVisibleResources
GuestVisibleResources returns the two-level visibility for a guest: - fullCollectionIDs: collections where the user has a direct collection grant (ful
internal/store/grants.go:655
↓ 4 callersMethodHasItemDecisionsAtState
HasItemDecisionsAtState reports whether every asked question already has an answer for this item, set and state hash — the runner's idempotency check.
internal/store/decisions.go:567
↓ 4 callersMethodHasRoom
HasRoom reports whether a room exists for the item right now. Racy by nature; a caller that acts on the answer re-checks under the lock (UnderItemLock
internal/collab/manager.go:217
↓ 4 callersMethodHasV2ScheduleMembers
HasV2ScheduleMembers also covers bundles built directly by Go callers.
internal/models/export_version.go:20
↓ 4 callersMethodInsert
Insert runs step 5: the row, in ONE fenced transaction.
internal/appstore/attachments.go:246
↓ 4 callersMethodIntrospectToken
IntrospectToken validates an opaque OAuth access token without going through the public RFC 7662 HTTP endpoint. Used by sub-PR E's MCPBearerAuth middl
internal/oauth/server.go:390
↓ 4 callersFunctionInvert
Invert turns applied edits into the patch that undoes them: each anchored on its context around what it wrote, replaced by its context around what it
internal/bodypatch/bodypatch.go:218
↓ 4 callersFunctionIsItemNow
IsItemNow reports whether item is actively being worked on: either it holds a live execution lease or its done-field status passes models.IsActiveStat
internal/store/role_park.go:142
↓ 4 callersFunctionIsReservedUsername
IsReservedUsername checks if a username is in the reserved list, ignoring case.
internal/store/reserved_usernames.go:44
↓ 4 callersFunctionIsReservedUsername
IsReservedUsername checks if a username is in the reserved list.
internal/server/username.go:57
↓ 4 callersMethodIsValid
()
internal/store/nulguard.go:413
↓ 4 callersFunctionIsValidPrefix
IsValidPrefix reports whether s is a well-formed collection prefix: an uppercase ASCII letter followed by uppercase letters or digits. ONE DEFINITION
internal/collections/prefix.go:128
↓ 4 callersMethodIssueInstallCode
IssueInstallCode mints a new install code for an ACTIVE install in workspaceID: the owner's recovery when the app lost its redeem response (U8b Q2). E
internal/store/app_provision.go:443
↓ 4 callersMethodJSONExtractText
(column, key string)
internal/store/dialect.go:198
↓ 4 callersMethodJSONFieldEquals
(column, key, arg string)
internal/store/dialect.go:46
↓ 4 callersFunctionLibraryConventionFields
LibraryConventionFields is the stored fields blob for an active item made from a library convention, the `convention` metadata key included. Every doo
internal/collections/templates.go:336
↓ 4 callersMethodListAgentRoles
--- Agent Roles --- ListAgentRoles returns all agent roles for a workspace.
internal/cli/client.go:1949
↓ 4 callersMethodListAllMCPAudit
ListAllMCPAudit is the admin-only full-table view used by the settings/admin/mcp-audit page. limit + offset paginate; caller must restrict access at t
internal/store/mcp_audit.go:178
↓ 4 callersMethodListCollectionItemsReport
ListCollectionItemsReport is ListCollectionItems plus the ItemListPage (see ListItemsReport).
internal/cli/client.go:521
↓ 4 callersMethodListComments
--- Comments ---
internal/cli/client.go:1230
↓ 4 callersMethodListConnectionWorkspaceSlugs
ListConnectionWorkspaceSlugs returns the join table's slug list for requestID, regardless of the parent connection's wildcard flag. Companion to Conne
internal/store/oauth_connections.go:660
↓ 4 callersMethodListDeletedWorkspaces
ListDeletedWorkspaces returns the soft-deleted workspaces the given user OWNS that are still inside the restore window — deleted_at set, newer than cu
internal/store/workspaces.go:548
↓ 4 callersMethodListForecastsForAgenda
ListForecastsForAgenda reads visible open schedules whose forecasts fall in the window. The lexical prefilter is padded for every viewer zone; only ro
internal/store/schedule_agenda.go:628
↓ 4 callersMethodListForeignItemLeaseIDs
ListForeignItemLeaseIDs returns the ids of the items in a workspace whose LIVE lease a claim by (holder, workerID, userID) would be refused, i.e. ever
internal/store/item_lease.go:246
↓ 4 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:207
↓ 4 callersMethodListItemsChangesSince
ListItemsChangesSince returns the skinny-projection of items that have mutated (create / update / soft-delete / restore) since the given seq cursor, i
internal/store/items.go:1745
↓ 4 callersMethodListItemsIndex
ListItemsIndex returns the skinny-projection of items in a workspace — every column EXCEPT i.content. Used by the local-first read model (PLAN-1343) s
internal/store/items.go:1601
↓ 4 callersMethodListItemsPendingContentFlush
ListItemsPendingContentFlush returns the workspace's items whose op-log holds content-bearing updates above items.content_flushed_op_log_id (BUG-3124:
internal/store/export.go:2288
↓ 4 callersMethodListItemsQ
ListItemsQ is ListItems on a caller-supplied executor, so it can read inside a snapshot transaction (BUG-3659). Only the plain listing: search, field
internal/store/items.go:1283
↓ 4 callersMethodListMaterializeCandidates
ListMaterializeCandidates returns up to limit live items whose op-log holds content-bearing rows above the flush watermark, whose NEWEST op-log row is
internal/store/materialize_flush.go:184
↓ 4 callersMethodListUserGrants
--- Cross-cutting queries --- ListUserGrants returns all collection and item grants for a user in a workspace.
internal/store/grants.go:240
↓ 4 callersMethodListVersionsResolved
ListVersionsResolved returns versions with full content (diffs resolved). Requires the current document content to reconstruct diff-based versions.
internal/store/versions.go:129
↓ 4 callersMethodListWorkspaceGroups
(ctx context.Context, userID string)
internal/store/workspace_groups.go:71
↓ 4 callersMethodListWorkspaceTags
ListWorkspaceTags returns the distinct tags used across a workspace's items with the number of (non-archived) items carrying each, ordered by count de
internal/store/items.go:1499
↓ 4 callersFunctionLoadRegistry
LoadRegistry reads the installation registry from disk. Returns an empty registry if the file doesn't exist.
internal/cli/registry.go:44
↓ 4 callersMethodMarkCaughtUp
MarkCaughtUp moves userID's cursor in workspaceID to at, creating it on the first call. The cursor never moves backwards: an older at (a request that
internal/store/read_cursors.go:35
↓ 4 callersMethodMarkConversationDelivered
MarkConversationDelivered advances the delivery marker with the same cap (TASK-4038).
internal/store/conversations.go:664
↓ 4 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
↓ 4 callersMethodMarkNotificationsSent
MarkNotificationsSent records ids as pushed. token is Claim.Token. A row not (or no longer) pending under it is left alone. The dispatcher does not us
internal/store/push_dispatch.go:298
↓ 4 callersMethodMaxOpLogIDTx
MaxOpLogIDTx is the in-transaction variant of MaxOpLogID. Version-restore (BUG-2264) reads the pre-prune MAX inside the SAME tx as the op-log wipe + c
internal/store/yjs_updates.go:678
↓ 4 callersFunctionMergeCollectionSettings
MergeCollectionSettings returns the settings a collection update stores (TASK-4732): patchJSON merged shallowly onto storedJSON. Every top-level key i
internal/models/collection_settings_merge.go:19
↓ 4 callersMethodMigrateStartSlot
MigrateStartSlot adopts active legacy session-start playbooks once per instance. A conditional write that loses a race leaves the marker unset for the
internal/store/start_slot_migration.go:27
↓ 4 callersMethodName
Name is the backend's configuration name, e.g. "typesafe".
internal/decision/decision.go:296
↓ 4 callersFunctionNativeJSONOr
NativeJSONOr returns s as json.RawMessage when its trimmed text is valid JSON, preserving number literals verbatim. Empty or whitespace-only input yie
internal/cli/item_summary.go:157
↓ 4 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:424
↓ 4 callersMethodNeedsScoringItems
NeedsScoringItems returns the scoring facts of the live items among ids in the workspace. length() counts characters on SQLite and Postgres alike; a N
internal/store/needs_scoring.go:38
↓ 4 callersMethodNeedsSnoozesForItems
NeedsSnoozesForItems returns userID's snoozes on the given items of one workspace with Holds evaluated at now, keyed by item id. It is the batch of Ge
internal/store/needs_read.go:312
↓ 4 callersFunctionNew
New returns the ID base for a bus incarnation, STRICTLY GREATER than any base this process has already issued. The clock supplies cross-restart separ
internal/idspace/idspace.go:119
↓ 4 callersFunctionNewRefSlugFixture
NewRefSlugFixture pairs item #2 with a different item owning release-2. There is deliberately no RELEASE collection.
internal/store/storetest/ref_prefix.go:94
↓ 4 callersFunctionNewScanner
NewScanner scans doc. doc must not change while the Scanner is in use.
internal/jsonscan/jsonscan.go:68
↓ 4 callersFunctionNewSharedWorkspaceState
NewSharedWorkspaceState returns a state for a multi-user process (the cloud /mcp transport). It records Set/Get like any other state, but ResolveDefau
internal/mcp/workspace.go:66
↓ 4 callersFunctionNewWatchEventsObserver
NewWatchEventsObserver returns an observer writing into m.
internal/metrics/watchevents_observer.go:19
↓ 4 callersFunctionNormalizeFilename
NormalizeFilename is the stored form of a caller-supplied attachment name. Every door that writes a CALLER-SUPPLIED name calls it (upload, bundle impo
internal/attachments/filename.go:76
↓ 4 callersFunctionNormalizeSlug
NormalizeSlug maps the common singular / shorthand collection-name forms users actually type ("task", "idea", "doc", etc.) to the canonical plural slu
internal/collections/prefix.go:14
↓ 4 callersMethodOccurrenceState
OccurrenceState is the current open occurrence state, separate from history.
internal/models/schedule.go:119
↓ 4 callersFunctionOffsetFromDrop
OffsetFromDrop retains a link's mode and computes its new offset after a drag. Civil uses the child's date and second-resolution clock in zone, or mid
internal/schedule/links.go:121
↓ 4 callersMethodOpen
(string)
internal/store/nultriggers_test.go:593
↓ 4 callersMethodOpenMentionsForItems
OpenMentionsForItems returns the open mentions on the given items (see Store.openMentionSQL), per item ordered by mention time then user id.
internal/store/needs_read.go:268
↓ 4 callersMethodPendingAck
PendingAck reports whether this reminder has fired and not been acknowledged — the set the agent poll surface reads.
internal/models/reminder.go:52
↓ 4 callersMethodPendingInstallBlobs
PendingInstallBlobs returns a pending install's staged blobs, by key.
internal/store/app_pending.go:277
↓ 4 callersFunctionPlaybookSummary
PlaybookSummary extracts a short prose hint from a playbook body. Picks the first non-heading non-empty paragraph and caps at ~240 chars so summary pa
internal/collections/summary.go:12
↓ 4 callersMethodPost
(ctx context.Context, rawURL string, body []byte, header http.Header)
internal/webhooks/app_delivery.go:56
↓ 4 callersFunctionPrintItemTable
PrintItemTable prints items in a width-aware, ANSI-safe table. It probes the terminal width (falling back to 120 columns when stdout is piped or the s
internal/cli/format.go:240
↓ 4 callersMethodPruneSweepKeeping
PruneSweepKeeping is PruneSweep that leaves alone any item `keep` returns true for, asked under the item's lock (TASK-3531: a compacted op-log is one
internal/collab/manager.go:806
↓ 4 callersMethodPruneUndispatchedOutbox
PruneUndispatchedOutbox deletes events that were never dispatched and are older than the given timestamp, returning how many rows went. This one DROP
internal/store/event_outbox.go:1921
↓ 4 callersMethodPublicLinkBaseURL
PublicLinkBaseURL returns the URL the server should embed in emailed links (password reset, invites, share links, admin invitations). Resolution order
internal/config/config.go:1078
↓ 4 callersMethodPublish
Publish delegates to the inner bus, counts the attempt, and counts a failure by outcome. The error is returned unchanged. pad_eventbus_publish_total
internal/metrics/instrumented_bus.go:113
↓ 4 callersFunctionPublishFailureOutcome
PublishFailureOutcome names a non-nil Publish error by the outcome it reports: "closed" for ErrBusClosed, "unconfirmed" for anything else. It is the l
internal/events/bus.go:28
↓ 4 callersMethodPushDispatchTimings
PushDispatchTimings parses the four PAD_PUSH_DISPATCH_* knobs (TASK-3939 part C, decision 77a8fae7). A knob that is set but is not a Go duration, or i
internal/config/config.go:1251
↓ 4 callersFunctionQuestionFingerprint
QuestionFingerprint is hex sha256 of the model and one question's full definition. An answer is current only while its fingerprint still matches: rewo
internal/decision/runner.go:354
↓ 4 callersFunctionQuoteExcerpt
QuoteExcerpt is the first non-empty line of body with whitespace collapsed, cut so the result, "..." included, is at most ConversationExcerptRunes run
internal/models/conversation.go:133
↓ 4 callersMethodRecordShareLinkView
RecordShareLinkView atomically increments the view counter (respecting max_views) and records a view entry inside a single transaction. Returns true i
internal/store/share_links.go:254
↓ 4 callersMethodReenableInstall
ReenableInstall: inactive -> active. The epoch is NEVER moved back (DOC-3371 §2): every token issued before the disable stays dead, and the app obtain
internal/store/app_lifecycle.go:252
↓ 4 callersFunctionRefuseRepeatedMember
RefuseRepeatedMember returns a *RepeatedMemberError when the JSON object `data` carries more than one top-level member that encoding/json would decode
internal/models/repeated_member.go:43
↓ 4 callersMethodRelease
Release undoes one Hold.
internal/attachments/inflight.go:44
↓ 4 callersMethodReleaseNotifications
ReleaseNotifications hands claimed rows back after a retryable failure: the claim is cleared and attempts goes up by one. A row reaching MaxNotificati
internal/store/push_dispatch.go:313
↓ 4 callersMethodReminderCompatibility
ReminderCompatibility checks the shape for HTTP error precedence. Every mutation checks it again while holding the item, workspace and schedule.
internal/store/reminder_commitment.go:68
↓ 4 callersMethodRemove
Remove implements SessionPresence: idempotent, and safe for a session id that was never added (the stream handler's defer runs on paths where Add may
internal/server/session_presence_redis.go:581
↓ 4 callersFunctionRemovePadEntry
RemovePadEntry deletes mcpServers.pad while leaving other servers + top-level keys intact. Returns (true, nil) when an entry was removed, (false, nil)
internal/mcp/install.go:267
↓ 4 callersMethodRemoveWorkspaceMemberAndRevokeGrants
RemoveWorkspaceMemberAndRevokeGrants atomically removes a user from a workspace and revokes all their grants in a single transaction. This prevents th
internal/store/workspace_members.go:386
↓ 4 callersMethodRenewSessionIfStaleContext
RenewSessionIfStaleContext is RenewSessionIfStale under ctx (TASK-4278): a cancelled request stops the read or the UPDATE and returns ctx's error.
internal/store/sessions.go:485
↓ 4 callersMethodReorderWorkspaceTabs
ReorderWorkspaceTabs rewrites the user's tab positions. The workspaces in order come first, in that order; ids that name no open tab are ignored. Open
internal/store/workspace_tabs.go:300
↓ 4 callersMethodResize
Resize returns a new image with the longer edge fitted to maxLong, preserving aspect ratio. Images already within maxLong are returned unchanged so ca
internal/attachments/processor.go:41
↓ 4 callersMethodResolveBacklinksVisibilityQ
ResolveBacklinksVisibilityQ is ResolveBacklinksVisibility parameterized over its executor (see Queryer). The cross-workspace copy's attachment authori
internal/store/backlinks_visibility.go:68
↓ 4 callersMethodResolveDefault
ResolveDefault returns the workspace to inject into a dispatched call that didn't carry an explicit `workspace` — or "" when this state must not be tr
internal/mcp/workspace.go:99
↓ 4 callersMethodResolveRelationReferentsQ
ResolveRelationReferentsQ is ResolveRelationReferents parameterised over its read executor, following the store's own `...Q` convention (`GetItemQ`, `
internal/store/relation_referents.go:226
↓ 4 callersMethodResolveUserPermission
ResolveUserPermission resolves the effective permission for a user on a specific item, following the permission resolution order from DOC-406: 1. Owne
internal/store/grants.go:344
← previousnext →3,901–4,000 of 31,685, ranked by callers