Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 2 callers
Method
#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 callers
Method
#armPresence
()
web/src/lib/stores/chatInbox.svelte.ts:204
↓ 2 callers
Method
#disarmPresence
()
web/src/lib/stores/chatInbox.svelte.ts:209
↓ 2 callers
Method
#finePointer
()
web/src/lib/chat/inputMode.svelte.ts:27
↓ 2 callers
Method
#held
()
web/src/lib/stores/chatThread.svelte.ts:355
↓ 2 callers
Method
#post
(n: number, opKey: string, body: string, replyToSeq?: number)
web/src/lib/stores/chatThread.svelte.ts:493
↓ 2 callers
Method
#reset
()
web/src/lib/stores/chatThread.svelte.ts:163
↓ 2 callers
Method
#schedule
()
web/src/lib/stores/chat.svelte.ts:177
↓ 2 callers
Function
A
()
web/e2e/permission-walk-move.spec.ts:74
↓ 2 callers
Method
AckReminderWithActor
(workspaceID, id string, in ResolveInput)
internal/store/reminder_commitment.go:200
↓ 2 callers
Method
AddCommitmentLink
AddCommitmentLink previews or creates a link from the URL's parent item.
internal/cli/client_schedule.go:132
↓ 2 callers
Function
AgendaCountDays
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 callers
Method
AgendaWorkDetails
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 callers
Function
AllowsPayload
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 callers
Function
AppPrincipalsListed
AppPrincipalsListed reports whether member surfaces show a workspace's bots.
internal/store/app_principal.go:106
↓ 2 callers
Function
ApplyItemConventionMetadata
(fieldsJSON string, metadata *ItemConventionMetadata)
internal/models/item.go:1177
↓ 2 callers
Method
AttachmentHashesWithRows
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 callers
Function
AwaitsHumanValuesForDoneField
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 callers
Function
B
()
web/e2e/permission-walk-move.spec.ts:78
↓ 2 callers
Method
BackfillEncryptTOTPSecrets
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 callers
Method
Before
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 callers
Function
BlankRelationKeys
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 callers
Function
BootstrapTokenPath
BootstrapTokenPath returns the on-disk path for the bootstrap token file.
internal/server/bootstrap.go:50
↓ 2 callers
Method
BootstrapWithToken
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 callers
Method
BuildAgentBootstrap
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 callers
Function
BuildConventionItemCreate
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 callers
Function
BuildConventionItemFields
(status string, metadata *ItemConventionMetadata)
internal/models/item.go:1210
↓ 2 callers
Function
BuildItemStateWithLinks
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 callers
Function
BuiltinFieldChanges
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 callers
Method
BuiltinUpdateSupport
BuiltinUpdateSupport is ServerSupportsBuiltinUpdate with the probe's certainty kept apart: definitive false means the capabilities probe failed, which
internal/cli/client.go:1326
↓ 2 callers
Method
BurnContextCode
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 callers
Method
ByWorkspace
ByWorkspace groups the violation count by workspace id, with "" collecting the tables that have no workspace column.
internal/store/nulscan.go:127
↓ 2 callers
Function
CanonicalTraitsIfDuplicated
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 callers
Function
CapturePeerAddr
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 callers
Method
CatchUpItemLines
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 callers
Method
ChatConversationContext
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 callers
Method
ChatMessagesContext
ChatMessagesContext bounds gap fills, including reading the response body.
internal/cli/client.go:4127
↓ 2 callers
Method
ChatUnreadContext
ChatUnreadContext shares the summary deadline with identity resolution.
internal/cli/client.go:4112
↓ 2 callers
Method
CheckAdditiveFieldsQ
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 callers
Function
CheckGateAdd
CheckGateAdd refuses self-gates and cycles.
internal/schedule/links.go:515
↓ 2 callers
Function
CheckSettingsObject
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 callers
Method
CheckStorageLimit
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 callers
Method
CleanExpiredEmailVerifications
CleanExpiredEmailVerifications removes expired or already-used verification tokens. Mirrors CleanExpiredPasswordResets; run by the periodic token reap
internal/store/email_verification.go:185
↓ 2 callers
Method
CleanExpiredOAuthPendingLinks
CleanExpiredOAuthPendingLinks removes spent and expired pending links. Run by the token reaper.
internal/store/oauth_pending_links.go:110
↓ 2 callers
Method
CleanExpiredStepUpCodes
CleanExpiredStepUpCodes preserves the full send-limit window, including used codes, before removing old rows.
internal/store/step_up.go:126
↓ 2 callers
Function
CleanupStaleBootstrapToken
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 callers
Method
ClearParentLink
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 callers
Method
Close
()
internal/store/store.go:669
↓ 2 callers
Method
Close
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 callers
Function
CollapseReorderBatches
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 callers
Method
CollectionFieldUsage
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 callers
Method
CollectionNotFoundIsAuthoritative
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 callers
Method
CollectionSlugOwnersQ
CollectionSlugOwnersQ is CollectionSlugOwners on a caller-supplied executor.
internal/store/app_pending.go:313
↓ 2 callers
Function
CommentBodyForDisplay
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 callers
Method
CompleteStripeEvent
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 callers
Method
ConsumeRecoveryCode
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 callers
Method
ContentSetAsideRows
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 callers
Function
ConventionsCommentsSet
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 callers
Method
CountAttachmentsForStorageKeyOutsideWorkspaceContext
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 callers
Method
CountMCPUsablePATs
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 callers
Method
CountWorkspaceContents
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 callers
Method
CreateAuthorizeCodeSession
===================================================================== AuthorizeCodeStorage ===========================================================
internal/oauth/storage.go:185
↓ 2 callers
Method
CreateCLIAuthSession
CreateCLIAuthSession creates a new pending CLI auth session.
internal/cli/client.go:2477
↓ 2 callers
Method
CreateCLIDeviceAuthSession
(req CLIAuthRequester)
internal/store/cli_auth_sessions.go:429
↓ 2 callers
Method
CreateCommentWrite
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 callers
Method
CreateItemReminder
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 callers
Method
CreateItemWrite
CreateItemWrite is CreateItem with the response view.
internal/appstore/items.go:66
↓ 2 callers
Method
CreateRefreshTokenSession
===================================================================== RefreshTokenStorage ============================================================
internal/oauth/storage.go:335
↓ 2 callers
Method
CreateReminderWithReuse
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 callers
Method
CreateSnapshot
CreateSnapshot inserts a new progress snapshot.
internal/store/snapshots.go:11
↓ 2 callers
Method
CreateUserToken
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 callers
Function
CredentialsPath
CredentialsPath returns ~/.pad/credentials.json.
internal/cli/credentials.go:82
↓ 2 callers
Method
Current
()
internal/server/server.go:1078
↓ 2 callers
Method
DTStart
DTStart sets dtstart property for set. It will be truncated to second precision.
internal/schedule/internal/rrule/rruleset.go:44
↓ 2 callers
Function
DecodeCursor
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 callers
Function
DefaultLifespans
DefaultLifespans is Lifespans with every default applied.
internal/oauth/server.go:84
↓ 2 callers
Function
DefaultTracksWork
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 callers
Method
DeleteAccessToken
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 callers
Method
DeleteAgentRole
(workspaceID, id string)
internal/store/agent_roles.go:212
↓ 2 callers
Method
DeleteComment
DeleteComment removes a comment through the item-scoped route (TASK-2695).
internal/cli/client.go:1264
↓ 2 callers
Method
DeleteOAuthClient
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 callers
Method
DeletePKCERequest
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 callers
Method
DeletePlatformSetting
DeletePlatformSetting removes a platform setting.
internal/store/platform_settings.go:54
↓ 2 callers
Method
DeletePushDevice
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 callers
Method
DeleteSessionIfExists
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 callers
Method
DeleteShareLink
DeleteShareLink deletes a share link by ID, scoped to a workspace.
internal/store/share_links.go:237
↓ 2 callers
Method
DeleteWorkspaceGroup
(ctx context.Context, userID, id string)
internal/store/workspace_groups.go:288
↓ 2 callers
Function
DeliveryTerminal
DeliveryTerminal reports whether a status ends the endpoint's part.
internal/store/webhook_deliveries.go:29
↓ 2 callers
Method
DeriveServerKey
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 callers
Method
Details
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 callers
Function
DiagnoseVersionTies
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 callers
Function
DiagnoseVersionTiesAt
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 callers
Method
DiscardYjsSetAside
DiscardYjsSetAside is DeleteYjsSetAsideTx in its own transaction, for the explicit discard door, which writes nothing else.
internal/store/yjs_set_aside.go:206
↓ 2 callers
Method
Dispatch
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 callers
Function
DispatchInputFromContext
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 callers
Method
DownloadAttachment
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 callers
Function
EmitMarkdown
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 callers
Function
EncodeWorkspaceExport
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 callers
Method
Ended
Ended reports whether the schedule has no outstanding occurrence.
internal/store/schedule_resolve.go:61
↓ 2 callers
Method
EnqueueLinkedDeadlineApprovalNotice
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
← previous
next →
6,601–6,700 of 31,685, ranked by callers