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
↓ 5 callers
Function
trackedEpochReadDetails
( block: string )
web/src/test/identityFenceSource.ts:482
↓ 5 callers
Function
triageQuestions
()
internal/decision/runner_test.go:24
↓ 5 callers
Function
truncateBindableText
truncateBindableText cuts s to at most maxBytes bytes WITHOUT splitting a rune, so the result is still valid UTF-8. A plain s[:n] slices bytes. If by
internal/server/middleware_request_text.go:866
↓ 5 callers
Function
truncateForSummary
truncateForSummary shortens a comment body (or any free-text field) to a single-line notification summary. Collapses newlines to spaces first so a mul
internal/server/handlers_comments.go:191
↓ 5 callers
Function
u11StoreFixture
(t *testing.T, installID string)
internal/store/task3414_redeem_race_test.go:21
↓ 5 callers
Method
uniqueSlugExcluding
uniqueSlugExcluding generates a unique slug, excluding a specific document ID from the collision check. Used during title renames. It takes the execut
internal/store/store.go:1605
↓ 5 callers
Function
unwrapErrorEnvelope
unwrapErrorEnvelope extracts the structured ErrorEnvelope from a CallToolResult. Test helper — fails fast if the result isn't shaped like a structured
internal/mcp/dispatch_http_envelope_uniform_test.go:277
↓ 5 callers
Function
update
(slug: string, patch: Record<string, unknown>, asAgent = false)
web/e2e/lib/readme-seed.ts:77
↓ 5 callers
Method
upsertAppWebhookTx
upsertAppWebhookTx makes the install's hook match spec, on the caller's transaction (provisioning, upgrade, the backfill). A nil spec, or one with no
internal/store/app_webhooks.go:72
↓ 5 callers
Function
upstreamHTTPErrorResult
upstreamHTTPErrorResult is the canonical wrapper for "the dispatcher made an HTTP call that returned a non-2xx" cases outside the main executeRequest/
internal/mcp/errors.go:1974
↓ 5 callers
Function
user
()
web/src/lib/stores/auth.svelte.ts:176
↓ 5 callers
Method
validBody
()
internal/server/task4871_watermark_door_test.go:108
↓ 5 callers
Function
verifyEmailAuthorizeQuery
(t *testing.T, srv *Server, redirectURI string)
internal/server/handlers_oauth_verify_email_test.go:15
↓ 5 callers
Method
wait
(ctx context.Context)
internal/server/handlers_events_cancel_test.go:31
↓ 5 callers
Function
waitForReset
waitForReset blocks until the observer has recorded a reset FOR THE GIVEN REASON, returning the counts. It fails the test rather than returning empty,
internal/watchevents/redis_reconnect_test.go:120
↓ 5 callers
Method
waitForUpdate
()
internal/webhooks/dispatcher_test.go:84
↓ 5 callers
Function
waitMonitorEnsureDM
(t *testing.T, done <-chan struct{})
cmd/pad/cmd_watch_chat_ensure_test.go:22
↓ 5 callers
Function
walk
(dir: string)
web/src/mcp-app/bridge.test.ts:78
↓ 5 callers
Method
walk
walk feeds visit every occurrence in library order, with the key the walk is bounded on: the wall reading (wall-clock path) or the instant (elapsed pa
internal/schedule/engine.go:291
↓ 5 callers
Function
wantFieldErr
(t *testing.T, err error, field, code string)
internal/store/commitment_move_series_test.go:70
↓ 5 callers
Function
wantMentions
(t *testing.T, s *Store, commentID, label string, want ...*models.User)
internal/store/task3917_comment_mentions_test.go:54
↓ 5 callers
Function
wantValidation
(t *testing.T, err error, what string)
internal/store/bug3407_revalidate_test.go:54
↓ 5 callers
Function
warnContentPendingFlush
warnContentPendingFlush prints one line to STDERR when a content write reached the collaborative document but not yet items.content (BUG-2995). It ma
cmd/pad/cmd_item.go:4922
↓ 5 callers
Function
watchStreamDelivers
watchStreamDelivers is the stream's delivery decision. It answers workspace_access_changed, chat, and home_changed itself and hands every other kind t
internal/server/handlers_watch_events.go:962
↓ 5 callers
Method
watermark
(t *testing.T)
internal/server/task4871_watermark_door_test.go:115
↓ 5 callers
Function
wikiRowCount
These tests set package-level hooks, so they are not parallel. Parallel tests start only after every sequential one has finished, and the hooks ignore
internal/store/wiki_links_backfill_race_test.go:19
↓ 5 callers
Function
withAuthorizer
(req AttachmentCopyRequest, auth AttachmentAuthorizer)
internal/store/attachments_copy_plan_test.go:1129
↓ 5 callers
Function
withFlushError
withFlushError wraps w, a chi wrapper that unwraps to the writer beneath it. A writer that does not unwrap, or is not a Flusher, is returned as is: th
internal/server/flush_error_writer.go:39
↓ 5 callers
Method
withLocals
* Walks a nested function's body with `locals` as the names that resolve to * a binding of the unit rather than to component state (a * nested arr
web/src/test/identityFenceAst.ts:996
↓ 5 callers
Function
withRequestDeadline
( fn: (signal: AbortSignal) => Promise<T>, opts: { idempotent: boolean; ms?: number; signal?: AbortSignal |
web/src/lib/api/client.ts:1033
↓ 5 callers
Function
withoutCatchArms
(block: string)
web/src/test/identityFenceSource.ts:350
↓ 5 callers
Method
workspaceAccessUsers
workspaceAccessUsers reads the users who reach a workspace, for a lifecycle door that must read them BEFORE its own write (a purge deletes the rows).
internal/server/workspace_access_notify.go:92
↓ 5 callers
Function
workspaceGroupCaller
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspace_groups.go:33
↓ 5 callers
Function
writeActivationNotFound
(w http.ResponseWriter)
internal/server/handlers_activate.go:49
↓ 5 callers
Function
writeAgendaParam
(w http.ResponseWriter, field, code, msg string)
internal/server/handlers_agenda.go:141
↓ 5 callers
Function
writeCommentDeleted
writeCommentDeleted refuses a write addressed to a tombstone (BUG-3252): an edit, a reply or a reaction. 409 rather than 404, because the comment is t
internal/server/handlers_comments.go:245
↓ 5 callers
Function
writeDeadlineOwnerRequired
(w http.ResponseWriter)
internal/server/handlers_commitments.go:513
↓ 5 callers
Method
writeItemCommitment
(w http.ResponseWriter, r *http.Request, workspaceID string, item *models.Item, status int, note string)
internal/server/handlers_commitments.go:149
↓ 5 callers
Method
writeNativeRolesTx
writeNativeRolesTx is every native roles writer's door. Derivation and all validation precede its single UPDATE (or the create INSERT), so the table's
internal/store/commitment.go:405
↓ 5 callers
Function
writeScheduleError
writeScheduleError maps a store error from a schedule write onto the API and reports whether it handled err. Nothing is persisted on any of these.
internal/server/handlers_schedules.go:152
↓ 5 callers
Function
writeStartError
(w http.ResponseWriter, err error)
internal/server/start_write.go:28
↓ 5 callers
Function
writeV2Record
(t *testing.T, dir string, reg SessionRegistration)
internal/cli/session_registry_test.go:217
↓ 5 callers
Function
writeWorkspaceGroupValidation
(w http.ResponseWriter, field, code, message string)
internal/server/handlers_workspace_groups.go:45
↓ 5 callers
Method
writeWorkspaceTabs
writeWorkspaceTabs answers with list, the caller's open set as a write left it (or as a read found it), filtered to the visible set. Every write answe
internal/server/handlers_workspace_tabs.go:92
↓ 5 callers
Function
writesOf
(reqs []recordedRequest, method string)
cmd/pad/item_stdin_blank_test.go:69
↓ 5 callers
Function
yjsFrameHash
yjsFrameHash is the content_hash column value: the sha256 of the WHOLE frame, envelope included. The step2/update equivalence of fact (3) is NOT folde
internal/store/yjs_content_bearing.go:139
↓ 4 callers
Method
#cancelTimer
()
web/src/lib/stores/chat.svelte.ts:154
↓ 4 callers
Function
AbandonedValuesForDoneField
AbandonedValuesForDoneField is the complement of PositiveTerminalValuesForDoneField within the terminal set: the terminal values that close an item WI
internal/models/terminal.go:181
↓ 4 callers
Method
Active
Active reports whether any upload holds hash.
internal/attachments/inflight.go:64
↓ 4 callers
Method
ActorDisplay
ActorDisplay is the actor's display name, read in this transaction, so a write's stored author, response and notifications agree.
internal/store/fenced_items.go:177
↓ 4 callers
Method
ApplyExternalContentGuarded
ApplyExternalContentGuarded is ApplyExternalContent with the request marked `guarded` (BUG-3542): a tab that holds unconfirmed local edits refuses it
internal/collab/applier.go:471
↓ 4 callers
Function
ApplyWorkspaceContext
(raw string, context *WorkspaceContext)
internal/models/workspace_settings.go:99
↓ 4 callers
Function
AsContentPendingFlushError
AsContentPendingFlushError unwraps err to a *ContentPendingFlushError.
internal/store/content_pending_guard.go:49
↓ 4 callers
Method
AsOpenChildren
AsOpenChildren returns the parsed open-children details when this APIError carries them, or nil otherwise. Returns nil for any error other than "open_
internal/cli/client.go:2731
↓ 4 callers
Method
AsUpdateConflict
AsUpdateConflict returns the parsed conflict details when this APIError carries them, or nil otherwise. Returns nil for any error other than "update_c
internal/cli/client.go:2853
↓ 4 callers
Function
AttachmentNotFound
AttachmentNotFound rewrites a 404 from an attachment-by-id route into an APIError naming the attachment and workspace. HEAD answers with no body, so t
internal/cli/client.go:3432
↓ 4 callers
Method
BackfillBidiAttachmentFilenames
BackfillBidiAttachmentFilenames rewrites every attachment row whose filename carries a Bidi_Control character to its served name. Called from server s
internal/store/attachment_bidi_backfill.go:77
↓ 4 callers
Method
BackfillConventionRoles
BackfillConventionRoles copies a convention's `role` field into its empty agent-role column where the field names a live role. See the comment above f
internal/store/convention_role_backfill.go:73
↓ 4 callers
Method
BackfillStructuredEntryIDs
BackfillStructuredEntryIDs gives every implementation note and decision-log entry already stored without a usable, unique id a persisted one (BUG-2788
internal/store/structured_entry_id_backfill.go:55
↓ 4 callers
Function
BlockedExtension
BlockedExtension reports whether ext (with its leading dot, any case) is one ValidateUpload refuses as extension_blocked: a known extension whose type
internal/attachments/mime.go:666
↓ 4 callers
Function
BuiltinStateHash
BuiltinStateHash hashes a body and a set of fields the way BuiltinEntry.Hash does, so an item's current state can be compared with an entry's. The fie
internal/collections/builtin.go:127
↓ 4 callers
Function
CallNeedsWriteScope
CallNeedsWriteScope reports whether a remote /mcp tools/call of (toolName, action) is a WRITE: an action the catalog declares that is not in readOnlyA
internal/mcp/tool_surface.go:256
↓ 4 callers
Function
CarriedSourceValues
CarriedSourceValues narrows a source item's field map to the values that actually SURVIVED migration. The migrate doors need "which values carried",
internal/store/relation_referents.go:1870
↓ 4 callers
Method
ClaimStripeEvent
ClaimStripeEvent takes a Stripe event for handling (BUG-3561). The marker used to be final the moment it was written, BEFORE the handler ran, so a sid
internal/store/stripe_events.go:55
↓ 4 callers
Method
CleanExpiredCLIAuthSessions
CleanExpiredCLIAuthSessions revokes minted sessions for expired approved rows and removes all expired CLI auth sessions.
internal/store/cli_auth_sessions.go:318
↓ 4 callers
Method
Close
Close shuts down all Redis subscriptions and closes local subscriber channels. IT DOES NOT JOIN THE MAINTENANCE GOROUTINES (BUG-2738), and that is a
internal/events/redis_bus.go:1620
↓ 4 callers
Method
CompletedInstants
CompletedInstants returns, for each of itemIDs inside collectionID that is currently in a positive terminal status, the instant (RFC3339 UTC) of its l
internal/store/items.go:2659
↓ 4 callers
Method
ConsumeOAuthPendingLink
ConsumeOAuthPendingLink spends a live pending link in one statement and returns it, so of two concurrent callers exactly one gets it. Nil when the tok
internal/store/oauth_pending_links.go:91
↓ 4 callers
Function
CopyCommitted
CopyCommitted reports whether err is a post-commit reporting failure — the copy happened, only its result was lost. Callers must not present these as
internal/cli/client_items_copy.go:383
↓ 4 callers
Method
CountAgentSignupsFromNetSince
CountAgentSignupsFromNetSince counts signups recorded in the ledger from one network prefix created after since. A claim, expiry or account delete doe
internal/store/agent_signups.go:169
↓ 4 callers
Function
CountAttachmentRefs
CountAttachmentRefs counts the distinct IDs the planner enumerates, including unresolved references. It uses the same JSON field encoding and needs no
internal/store/attachments_copy_plan.go:631
↓ 4 callers
Method
CountRelationBacklinks
CountRelationBacklinks is GetRelationBacklinks' count, under the SAME visibility and the SAME filters. It exists as its own query rather than len() o
internal/store/relation_links.go:398
↓ 4 callers
Method
CreateSessionIssuedAt
CreateSessionIssuedAt is CreateSession for a session that replaces an existing one (credential-change rotation): created_at is the REPLACED session's,
internal/store/sessions.go:201
↓ 4 callers
Method
CreateStepUpCode
CreateStepUpCode replaces unused codes across the account and enforces three sends per rolling hour under the account lock. The code is returned once
internal/store/step_up.go:28
↓ 4 callers
Function
DayStart
DayStart returns the day start for a stored users.day_start_minute: the stored minute with set=true, or DefaultDayStartMinute with set=false when it i
internal/usertz/daystart.go:37
↓ 4 callers
Function
DefaultAbandonedStatuses
DefaultAbandonedStatuses is AbandonedValuesForDoneField for the fallback case with no usable schema: the default terminal list minus its shipping valu
internal/models/terminal.go:193
↓ 4 callers
Function
Defaults
Defaults returns the six default collections for a new workspace. Tasks and Ideas are extracted into tasksCollection/ideasCollection (templates.go, a
internal/collections/defaults.go:32
↓ 4 callers
Method
DeleteAPITokenScoped
DeleteAPITokenScoped removes a workspace-scoped API token by ID, verifying it belongs to the given workspace. Prevents cross-workspace revocation (TAS
internal/store/api_tokens.go:275
↓ 4 callers
Method
DeleteOAuthConnection
DeleteOAuthConnection removes the row + cascades to oauth_connection_workspaces. Phase D's "Revoke" handler calls this after RevokeRefreshTokenFamily
internal/store/oauth_connections.go:831
↓ 4 callers
Method
DeleteYjsSetAsideTx
DeleteYjsSetAsideTx discards the item's set-aside rows inside tx and returns how many it deleted. Only an explicit discard may call it: the rows are t
internal/store/yjs_set_aside.go:189
↓ 4 callers
Method
DenyCLIAuthSession
DenyCLIAuthSession refuses a pending session (TASK-2253): the person shown the approval page did not ask for it. Only pending -> denied; the row stays
internal/store/cli_auth_sessions.go:250
↓ 4 callers
Method
DropInvisibleRelationDefaultsQ
DropInvisibleRelationDefaultsQ removes destination-schema defaults whose target the requester cannot see, and reports each as a `not_found` drop. The
internal/store/relation_referents.go:1941
↓ 4 callers
Method
Enabled
Enabled reports whether this config selects a real provider.
internal/decision/config.go:57
↓ 4 callers
Method
EnsureAppWebhook
EnsureAppWebhook creates the hook an already-installed manifest declares (the backfill). Under the install row lock it re-checks the state, that there
internal/store/app_webhooks.go:246
↓ 4 callers
Method
EnsureUniqueUsername
EnsureUniqueUsername takes a candidate username and returns a unique variant by appending -2, -3, etc. if the candidate is reserved or already exists.
internal/store/users.go:2032
↓ 4 callers
Function
EnvToken
EnvToken returns the value of the PAD_TOKEN environment variable, trimmed of surrounding whitespace. When non-empty, it overrides any credential store
internal/cli/env_token.go:34
↓ 4 callers
Method
Error
()
internal/store/app_provision.go:63
↓ 4 callers
Method
Error
()
internal/server/handlers_items_copy.go:372
↓ 4 callers
Method
ExpandAgendaCut
ExpandAgendaCut uses the existing bounded seed expansion for each role's inverse window, then resolves and deduplicates by immutable occurrence key. E
internal/store/agenda_roles.go:143
↓ 4 callers
Method
ExportWorkspaceSnapshot
ExportWorkspaceSnapshot reads a workspace export and, when withAttachments is set, the bundle's attachment rows, all inside one read-only transaction,
internal/store/export.go:182
↓ 4 callers
Function
ExtensionForMIME
ExtensionForMIME returns the canonical file extension for a MIME type, or "" when there is no mapping. Exported so a client need not keep its OWN tab
internal/attachments/mime.go:513
↓ 4 callers
Function
ExtractMentions
ExtractMentions returns the usernames a comment body @-mentions: lowercased, deduplicated and sorted. Mentions inside fenced or inline code and the do
internal/links/mentions.go:173
↓ 4 callers
Method
FTSRank
FTSRank returns relevance SQL and its arguments. PostgreSQL uses the same tsquery as FTSMatch; SQLite uses the MATCH context.
internal/store/dialect.go:132
↓ 4 callers
Function
FieldKeysForKind
FieldKeysForKind returns the frontmatter field keys for the given kind, or ErrUnknownKind if the kind is not recognized. A later phase's server code c
internal/artifact/artifact.go:101
↓ 4 callers
Function
FindAgent
FindAgent returns the matching Agent for a name or alias. Names are case-insensitive (Claude / claude / CLAUDE all resolve).
internal/mcp/install.go:118
↓ 4 callers
Method
FinishDisable
FinishDisable is disable's phase 2: disabling -> inactive. The webhook needs nothing here: admission refuses every attempt while the install is not a
internal/store/app_lifecycle.go:183
↓ 4 callers
Method
FinishPendingInstall
FinishPendingInstall ends the fetch: under the instance lock, the charge is reduced to the bytes actually staged, the record is marked staged with its
internal/store/app_pending.go:192
↓ 4 callers
Function
FormatFieldSummary
FormatFieldSummary returns a formatted summary of item fields. Example output: "status: open | priority: high | category: platform"
internal/cli/format.go:463
↓ 4 callers
Method
GetAccountSecurity
GetAccountSecurity reads whether 2FA is on and whether the account has a password (TASK-403).
internal/cli/client.go:2334
↓ 4 callers
Method
GetCollectionQ
getCollectionQ is GetCollection against a caller-supplied executor, so an in-transaction caller reads through its own transaction instead of asking th
internal/store/collections.go:293
← previous
next →
3,801–3,900 of 31,685, ranked by callers