MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersMethod#absorbRefs
* Merge a response's refs (Q-h, ruling 687eb810). A `visible` or `restricted` * entry is a verdict and REPLACES the held one, so a later page can up
web/src/lib/stores/chatThread.svelte.ts:226
↓ 2 callersMethod#armPresence
()
web/src/lib/stores/chatInbox.svelte.ts:204
↓ 2 callersMethod#disarmPresence
()
web/src/lib/stores/chatInbox.svelte.ts:209
↓ 2 callersMethod#finePointer
()
web/src/lib/chat/inputMode.svelte.ts:27
↓ 2 callersMethod#held
()
web/src/lib/stores/chatThread.svelte.ts:355
↓ 2 callersMethod#post
(n: number, opKey: string, body: string, replyToSeq?: number)
web/src/lib/stores/chatThread.svelte.ts:493
↓ 2 callersMethod#reset
()
web/src/lib/stores/chatThread.svelte.ts:163
↓ 2 callersMethod#schedule
()
web/src/lib/stores/chat.svelte.ts:177
↓ 2 callersFunctionA
()
web/e2e/permission-walk-move.spec.ts:74
↓ 2 callersMethodAckReminderWithActor
(workspaceID, id string, in ResolveInput)
internal/store/reminder_commitment.go:200
↓ 2 callersMethodAddCommitmentLink
AddCommitmentLink previews or creates a link from the URL's parent item.
internal/cli/client_schedule.go:132
↓ 2 callersFunctionAgendaCountDays
AgendaCountDays lists the local days a window touches, each with the instant its count is taken at: the next local midnight, or the window's end. It a
internal/store/agenda_counts.go:29
↓ 2 callersMethodAgendaWorkDetails
AgendaWorkDetails loads schedule facts and gate presence in two queries, regardless of candidate count. Gate evaluation remains per gated item; Agenda
internal/store/agenda_work_batch.go:12
↓ 2 callersFunctionAllowsPayload
AllowsPayload reports whether a canonical event admits the given payload shape. A writer that knows which shape it just marshalled calls this to conf
internal/kernelevents/taxonomy.go:331
↓ 2 callersFunctionAppPrincipalsListed
AppPrincipalsListed reports whether member surfaces show a workspace's bots.
internal/store/app_principal.go:106
↓ 2 callersFunctionApplyItemConventionMetadata
(fieldsJSON string, metadata *ItemConventionMetadata)
internal/models/item.go:1177
↓ 2 callersMethodAttachmentHashesWithRows
AttachmentHashesWithRows reports which of the given content hashes have at least one attachments row — in ANY state. Soft-deleted rows count, includin
internal/store/attachments.go:1343
↓ 2 callersFunctionAwaitsHumanValuesForDoneField
AwaitsHumanValuesForDoneField returns the resolved done-field key and the done field's declared awaits_human_options (TASK-4643) minus every value Ter
internal/models/terminal.go:322
↓ 2 callersFunctionB
()
web/e2e/permission-walk-move.spec.ts:78
↓ 2 callersMethodBackfillEncryptTOTPSecrets
BackfillEncryptTOTPSecrets encrypts any plaintext TOTP secrets in the database. Idempotent: skips secrets that already have the "enc:" prefix. Called
internal/store/encryption.go:118
↓ 2 callersMethodBefore
Before Returns the last recurrence before the given datetime instance, or time.Time's zero value if no recurrence match. The inc keyword defines what
internal/schedule/internal/rrule/rruleset.go:196
↓ 2 callersFunctionBlankRelationKeys
BlankRelationKeys returns, sorted, the keys of fields that the schema declares as a scalar `relation` and whose value is blank.
internal/items/relation_blanks.go:31
↓ 2 callersFunctionBootstrapTokenPath
BootstrapTokenPath returns the on-disk path for the bootstrap token file.
internal/server/bootstrap.go:50
↓ 2 callersMethodBootstrapWithToken
BootstrapWithToken is like Bootstrap but sends token as the X-Bootstrap-Token header when token is non-empty. This is required for self-host deploymen
internal/cli/client.go:2430
↓ 2 callersMethodBuildAgentBootstrap
BuildAgentBootstrap assembles the bootstrap blob from store queries. This is the single canonical code path; the HTTP handler, the MCP resource handle
internal/server/handlers_bootstrap.go:526
↓ 2 callersFunctionBuildConventionItemCreate
BuildConventionItemCreate is BuildConventionItemFields for the create door (BUG-3163): the same fields blob MINUS the reserved `convention` key, plus
internal/models/item.go:1402
↓ 2 callersFunctionBuildConventionItemFields
(status string, metadata *ItemConventionMetadata)
internal/models/item.go:1210
↓ 2 callersFunctionBuildItemStateWithLinks
BuildItemStateWithLinks is BuildItemState plus the item's links, for a set built WithLinks. links may be empty but not nil: the member is then [].
internal/decision/runner.go:287
↓ 2 callersFunctionBuiltinFieldChanges
BuiltinFieldChanges lists the settings taking the library's text would replace: every key the library writes whose value differs from the item's, and
internal/cli/builtin_format.go:95
↓ 2 callersMethodBuiltinUpdateSupport
BuiltinUpdateSupport is ServerSupportsBuiltinUpdate with the probe's certainty kept apart: definitive false means the capabilities probe failed, which
internal/cli/client.go:1326
↓ 2 callersMethodBurnContextCode
BurnContextCode consumes installID's code without redeeming it (an attempt refused before the redeem, a delegated token's). Another install's code is
internal/store/app_item_actions.go:458
↓ 2 callersMethodByWorkspace
ByWorkspace groups the violation count by workspace id, with "" collecting the tables that have no workspace column.
internal/store/nulscan.go:127
↓ 2 callersFunctionCanonicalTraitsIfDuplicated
CanonicalTraitsIfDuplicated returns raw unchanged unless some object in it repeats a member name, in which case it returns the parsed declaration's ow
internal/models/collection.go:167
↓ 2 callersFunctionCapturePeerAddr
CapturePeerAddr must be installed BEFORE TrustedProxyRealIP in the chain. It snapshots the real TCP peer RemoteAddr into the request context so authen
internal/server/middleware_realip.go:22
↓ 2 callersMethodCatchUpItemLines
CatchUpItemLines renders the given items as section lines, limited to scope, in the order given. Ids that are deleted, invisible or unknown are droppe
internal/store/catch_up.go:463
↓ 2 callersMethodChatConversationContext
ChatConversationContext allows the monitor's floor GET to share its deadline with identity resolution, including reading the response body.
internal/cli/client.go:4090
↓ 2 callersMethodChatMessagesContext
ChatMessagesContext bounds gap fills, including reading the response body.
internal/cli/client.go:4127
↓ 2 callersMethodChatUnreadContext
ChatUnreadContext shares the summary deadline with identity resolution.
internal/cli/client.go:4112
↓ 2 callersMethodCheckAdditiveFieldsQ
CheckAdditiveFieldsQ refuses an additive field that is not safe for the collection's EXISTING items, decided against the current data: a key the schem
internal/store/app_upgrade.go:393
↓ 2 callersFunctionCheckGateAdd
CheckGateAdd refuses self-gates and cycles.
internal/schedule/links.go:515
↓ 2 callersFunctionCheckSettingsObject
CheckSettingsObject refuses a settings value that is not a JSON object, wrapping ErrSettingsNotObject. "" is the empty sentinel the store writes as "{
internal/models/awaits_human.go:82
↓ 2 callersMethodCheckStorageLimit
CheckStorageLimit refuses adding bytes that would take the workspace owner past their storage_bytes limit (BUG-3653), under the lock BeginFenced took
internal/store/fenced_attachments.go:206
↓ 2 callersMethodCleanExpiredEmailVerifications
CleanExpiredEmailVerifications removes expired or already-used verification tokens. Mirrors CleanExpiredPasswordResets; run by the periodic token reap
internal/store/email_verification.go:185
↓ 2 callersMethodCleanExpiredOAuthPendingLinks
CleanExpiredOAuthPendingLinks removes spent and expired pending links. Run by the token reaper.
internal/store/oauth_pending_links.go:110
↓ 2 callersMethodCleanExpiredStepUpCodes
CleanExpiredStepUpCodes preserves the full send-limit window, including used codes, before removing old rows.
internal/store/step_up.go:126
↓ 2 callersFunctionCleanupStaleBootstrapToken
CleanupStaleBootstrapToken removes a token file left behind by a previous run that completed bootstrap but failed to delete the file. Called at startu
internal/server/bootstrap.go:133
↓ 2 callersMethodClearParentLink
ClearParentLink removes the parent link for an item. Runs in a tx and acquires `pad:parent-children:<old>` before the DELETE so a concurrent UpdateIt
internal/store/items.go:4895
↓ 2 callersMethodClose
()
internal/store/store.go:669
↓ 2 callersMethodClose
Close stops the receive loop, closes the Redis subscription, and closes every subscriber channel. The `closed` flag exists because this bus, unlike M
internal/watchevents/redis_bus.go:1161
↓ 2 callersFunctionCollapseReorderBatches
CollapseReorderBatches folds each run of consecutive "reordered" rows that share a reorder_batch into its first row, counting the run (TASK-3517). A r
internal/cli/activity_reorder.go:23
↓ 2 callersMethodCollectionFieldUsage
CollectionFieldUsage scans the live (not soft-deleted) items of one collection. Every key present in a blob is counted, declared or not, so a field re
internal/store/field_usage.go:37
↓ 2 callersMethodCollectionNotFoundIsAuthoritative
CollectionNotFoundIsAuthoritative reports whether a collection-not-found from this server should be TRUSTED — i.e. the alias retry in WithCollectionAl
internal/cli/client.go:573
↓ 2 callersMethodCollectionSlugOwnersQ
CollectionSlugOwnersQ is CollectionSlugOwners on a caller-supplied executor.
internal/store/app_pending.go:313
↓ 2 callersFunctionCommentBodyForDisplay
PrintCommentTable prints comments in a formatted table. PrintCommentTable deliberately does NOT render Comment.AgentName (TASK-2760). The name is self
internal/cli/format.go:684
↓ 2 callersMethodCompleteStripeEvent
CompleteStripeEvent marks a claimed event done after its handler succeeded (BUG-3561). It acts only on the row still carrying the claim's token, so a
internal/store/stripe_events.go:120
↓ 2 callersMethodConsumeRecoveryCode
ConsumeRecoveryCode validates and removes a single recovery code. Recovery codes are stored as SHA-256 hashes. The provided plaintext code is hashed b
internal/store/users.go:2291
↓ 2 callersMethodContentSetAsideRows
ContentSetAsideRows reads details.set_aside_rows from a content_pending_flush refusal: how many set-aside edit rows caused it. Zero when the refusal w
internal/cli/client.go:3093
↓ 2 callersFunctionConventionsCommentsSet
ConventionsCommentsSet returns the `conventions_comments` question set: ConventionsSet's questions, asked about each of the item's recent comments wit
internal/decision/conventions.go:88
↓ 2 callersMethodCountAttachmentsForStorageKeyOutsideWorkspaceContext
CountAttachmentsForStorageKeyOutsideWorkspaceContext is the same count bounded by ctx, for the caller that runs it under the in-flight lock (TASK-4279
internal/store/workspace_purge.go:142
↓ 2 callersMethodCountMCPUsablePATs
CountMCPUsablePATs counts personal access tokens that /mcp would accept. It applies the same three rules the request path does, in the same way: MCPBe
internal/store/mcp_resume.go:46
↓ 2 callersMethodCountWorkspaceContents
CountWorkspaceContents counts a workspace's contents for the post-import check. Each count is its own statement: an import has finished writing by the
internal/store/workspace_counts.go:27
↓ 2 callersMethodCreateAuthorizeCodeSession
===================================================================== AuthorizeCodeStorage ===========================================================
internal/oauth/storage.go:185
↓ 2 callersMethodCreateCLIAuthSession
CreateCLIAuthSession creates a new pending CLI auth session.
internal/cli/client.go:2477
↓ 2 callersMethodCreateCLIDeviceAuthSession
(req CLIAuthRequester)
internal/store/cli_auth_sessions.go:429
↓ 2 callersMethodCreateCommentWrite
CreateCommentWrite is CreateComment with the item and actor display. An empty Author is filled with the actor's display name, read in the transaction.
internal/appstore/comments.go:53
↓ 2 callersMethodCreateItemReminder
CreateItemReminder arms a reminder. remindAt must be an RFC3339 instant — the server refuses a bare date rather than assuming a time of day, and the C
internal/cli/client.go:3999
↓ 2 callersMethodCreateItemWrite
CreateItemWrite is CreateItem with the response view.
internal/appstore/items.go:66
↓ 2 callersMethodCreateRefreshTokenSession
===================================================================== RefreshTokenStorage ============================================================
internal/oauth/storage.go:335
↓ 2 callersMethodCreateReminderWithReuse
CreateReminderWithReuse also reports whether the write rearmed an existing ended commitment, as determined under the same locks as the write.
internal/store/reminders.go:152
↓ 2 callersMethodCreateSnapshot
CreateSnapshot inserts a new progress snapshot.
internal/store/snapshots.go:11
↓ 2 callersMethodCreateUserToken
CreateUserToken mints a new API token owned by the authenticated user. The response carries the plaintext secret exactly once; it is never retrievable
internal/cli/client_tokens.go:38
↓ 2 callersFunctionCredentialsPath
CredentialsPath returns ~/.pad/credentials.json.
internal/cli/credentials.go:82
↓ 2 callersMethodCurrent
()
internal/server/server.go:1078
↓ 2 callersMethodDTStart
DTStart sets dtstart property for set. It will be truncated to second precision.
internal/schedule/internal/rrule/rruleset.go:44
↓ 2 callersFunctionDecodeCursor
DecodeCursor parses a token and checks it was minted for this sort, view and workspace filter. Anything else is ErrInvalidCursor.
internal/needs/cursor.go:174
↓ 2 callersFunctionDefaultLifespans
DefaultLifespans is Lifespans with every default applied.
internal/oauth/server.go:84
↓ 2 callersFunctionDefaultTracksWork
DefaultTracksWork is the value a NEW collection gets when its creator did not say: a system collection (Conventions, Playbooks) is reference; any othe
internal/models/tracks_work.go:48
↓ 2 callersMethodDeleteAccessToken
DeleteAccessToken removes a row entirely (fosite uses Delete after successful exchange to prevent reuse). Distinct from RevokeAccessToken which preser
internal/store/oauth.go:353
↓ 2 callersMethodDeleteAgentRole
(workspaceID, id string)
internal/store/agent_roles.go:212
↓ 2 callersMethodDeleteComment
DeleteComment removes a comment through the item-scoped route (TASK-2695).
internal/cli/client.go:1264
↓ 2 callersMethodDeleteOAuthClient
DeleteOAuthClient removes a client AND every dependent row (auth codes, access tokens, refresh tokens, PKCE sessions) atomically. Why explicit cascad
internal/store/oauth.go:225
↓ 2 callersMethodDeletePKCERequest
DeletePKCERequest removes the row after a successful /token exchange (fosite's lifecycle for PKCE is delete-on-use, unlike auth codes which are flagge
internal/store/oauth.go:662
↓ 2 callersMethodDeletePlatformSetting
DeletePlatformSetting removes a platform setting.
internal/store/platform_settings.go:54
↓ 2 callersMethodDeletePushDevice
DeletePushDevice removes the device bound to this session under this connection id. Absent is not an error: the call is idempotent.
internal/store/push_devices.go:168
↓ 2 callersMethodDeleteSessionIfExists
DeleteSessionIfExists destroys a session by plaintext token and reports whether a row was actually deleted. Used by the IP-change strict-mode path as
internal/store/sessions.go:594
↓ 2 callersMethodDeleteShareLink
DeleteShareLink deletes a share link by ID, scoped to a workspace.
internal/store/share_links.go:237
↓ 2 callersMethodDeleteWorkspaceGroup
(ctx context.Context, userID, id string)
internal/store/workspace_groups.go:288
↓ 2 callersFunctionDeliveryTerminal
DeliveryTerminal reports whether a status ends the endpoint's part.
internal/store/webhook_deliveries.go:29
↓ 2 callersMethodDeriveServerKey
DeriveServerKey derives a 32-byte server-only key for one purpose from the deployment encryption key (HKDF-SHA256, the label as info). Every supported
internal/store/encryption.go:304
↓ 2 callersMethodDetails
Details is the structured half of the refusal: the field to set and the values it takes, so a client builds its retry from data rather than from the s
internal/models/close_state.go:118
↓ 2 callersFunctionDiagnoseVersionTies
DiagnoseVersionTies reads every item that has same-second versions and classifies each tie group (see VersionTieReport). It only reads, in one read-on
internal/store/version_tie_diagnostic.go:122
↓ 2 callersFunctionDiagnoseVersionTiesAt
DiagnoseVersionTiesAt opens the database at dsn WITHOUT running migrations, runs DiagnoseVersionTies and closes it, so an operator can measure a produ
internal/store/version_tie_diagnostic.go:465
↓ 2 callersMethodDiscardYjsSetAside
DiscardYjsSetAside is DeleteYjsSetAsideTx in its own transaction, for the explicit discard door, which writes nothing else.
internal/store/yjs_set_aside.go:206
↓ 2 callersMethodDispatch
Dispatch is the helper most fan-out actions use. Looks up cmdInfo in env.Doc, builds CLI args, attaches the dispatch input to ctx, forwards to env.Dis
internal/mcp/catalog.go:157
↓ 2 callersFunctionDispatchInputFromContext
DispatchInputFromContext returns the original MCP tool-call JSON input attached by WithDispatchInput, or nil if none. Safe to call on any context.
internal/mcp/dispatch.go:65
↓ 2 callersMethodDownloadAttachment
DownloadAttachment streams the bytes of an attachment into w. Returns the Content-Type the server set and the number of bytes copied so callers can ve
internal/cli/client.go:3343
↓ 2 callersFunctionEmitMarkdown
EmitMarkdown walks the command tree below `target`, builds a cmdhelp v0.1 Document, and writes it to w as a markdown document with the predictable sec
internal/cmdhelp/md.go:21
↓ 2 callersFunctionEncodeWorkspaceExport
EncodeWorkspaceExport writes x as compact JSON to w, streaming item_versions from versions so version rows do not have to be held in memory at once (T
internal/models/export_stream.go:17
↓ 2 callersMethodEnded
Ended reports whether the schedule has no outstanding occurrence.
internal/store/schedule_resolve.go:61
↓ 2 callersMethodEnqueueLinkedDeadlineApprovalNotice
EnqueueLinkedDeadlineApprovalNotice re-plans a refused move after its caller has rolled back. Fresh permissions and the graph decide whether the same
internal/store/commitment_notices.go:121
← previousnext →6,601–6,700 of 31,685, ranked by callers