MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersMethod#clearTimer
()
web/src/lib/items/saveTracker.svelte.ts:96
↓ 3 callersMethod#settled
After a send settles: run the refresh that was deferred while it was in flight.
web/src/lib/stores/chatThread.svelte.ts:395
↓ 3 callersMethodAbort
Abort discards the staged bytes. It is idempotent, and safe after Commit.
internal/attachments/staged.go:154
↓ 3 callersFunctionActorKind
ActorKind is the writer role — "agent" or "user" — as this process can best describe itself. Same self-declared signal as ResolveAgentName, just reduc
internal/cli/agent_identity.go:95
↓ 3 callersFunctionAllToolNames
AllToolNames returns all valid names and aliases that can be passed to `pad agent install`.
internal/cli/agents.go:307
↓ 3 callersMethodAllUnfillable
AllUnfillable is the condition the error and the summary both test: no `--field` resolves ANY of them, so advising one is advice that cannot be follow
cmd/pad/cmd_item.go:2821
↓ 3 callersMethodAppendSyncFrame
AppendSyncFrame persists one relay frame, or skips it when it is a byte-identical duplicate of an earlier row (BUG-3135). Either way the returned ID i
internal/collab/room.go:313
↓ 3 callersMethodAppendSyncFrames
AppendSyncFrames is AppendSyncFrame for a run of frames in one transaction, all or nothing, one result per frame in order (BUG-3253).
internal/collab/room.go:316
↓ 3 callersMethodApproveCLIAuthSession
ApproveCLIAuthSession marks a pending session as approved, storing the session token and user ID. Returns an error if the session doesn't exist, is ex
internal/store/cli_auth_sessions.go:172
↓ 3 callersFunctionAsUniqueFieldHeldError
AsUniqueFieldHeldError unwraps a UniqueFieldHeldError.
internal/store/unique_fields.go:170
↓ 3 callersMethodAsUpdateConflict
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:2542
↓ 3 callersMethodAt
At is the as_of time.
internal/needs/cursor.go:170
↓ 3 callersFunctionAttachmentDownloadURL
AttachmentDownloadURL builds the canonical attachment download URL. Pass an empty variant for the original; otherwise "thumb-sm" / "thumb-md" (the ser
internal/server/render/attachments.go:79
↓ 3 callersMethodAttachmentRowsExistForHashContext
AttachmentRowsExistForHashContext is AttachmentRowsExistForHash bounded by ctx, for a caller that runs it under a process-wide lock (BUG-3652).
internal/store/attachments.go:1350
↓ 3 callersMethodBackends
Backends returns a snapshot of every registered backend, keyed by prefix. The rowless-blob GC sweep iterates it and type-asserts each store against Li
internal/attachments/registry.go:51
↓ 3 callersMethodBackfillCommentMentions
BackfillCommentMentions derives comment_mentions for comments written before the table existed (TASK-3917, IDEA-3906). It scans live comments whose bo
internal/store/comment_mentions_backfill.go:36
↓ 3 callersMethodBackfillStatusTransitions
BackfillStatusTransitions populates status_transitions from history in two passes, designed to be called once from server startup after migrations run
internal/store/status_transitions_backfill.go:159
↓ 3 callersMethodBackfillUserPlans
BackfillUserPlans sets the plan for all users that have an empty or default plan. In cloud mode, call with "free" to ensure all users have a plan set.
internal/store/limits.go:753
↓ 3 callersFunctionBatchID
BatchID is the id for the i-th message of a request: m0, m1, ... Batch-local and short, because the gateway wants 1 to 64 chars of [A-Za-z0-9_-] uniqu
internal/notify/body.go:88
↓ 3 callersMethodBeginReadSnapshot
BeginReadSnapshot is beginReadSnapshot for callers outside the store (BUG-3659, the account export). The caller rolls it back.
internal/store/export.go:212
↓ 3 callersMethodBindOAuthIdentity
BindOAuthIdentity records that the provider account `subject` signs in to userID, or confirms the record already says so, for a provider the account h
internal/store/oauth_identities.go:116
↓ 3 callersMethodBootstrap
(ctx context.Context, workspace string)
internal/mcp/workspace.go:22
↓ 3 callersMethodCancelCustomer
CancelCustomer asks pad-cloud to cancel every active Stripe subscription for customerID and then delete the Stripe customer object. Idempotent at the
internal/billing/cloud_client.go:200
↓ 3 callersFunctionCanonicalizeRef
CanonicalizeRef is the exported alias for canonicalizeRef so the store layer's same-workspace workspace_ref normalization (TASK-1597) can use the same
internal/links/extract.go:684
↓ 3 callersMethodCapabilities
Capabilities reports what this backend can do. The editor reads these flags via GET /api/v1/server/capabilities and gates rotate/crop UI on per-format
internal/attachments/processor.go:80
↓ 3 callersFunctionCases
Cases is the table. The cap rows are built from models.MaxAgentNameRunes.
internal/agentchatcases/cases.go:32
↓ 3 callersFunctionCategoryLabel
CategoryLabel returns the human-readable label for a category slug. Unknown categories are returned unchanged so the picker can still render a reasona
internal/collections/templates.go:50
↓ 3 callersFunctionChatReadSeq
ChatReadSeq returns the highest displayed sequence only when the page reaches the existing read marker. A high-water mark must not skip unseen message
internal/cli/chat.go:52
↓ 3 callersMethodCheckActiveAdminLoss
CheckActiveAdminLoss answers ErrLastAdmin when removing userID now would leave no active human admin. It runs the same guard in a transaction it rolls
internal/store/users.go:1337
↓ 3 callersFunctionCheckAgentChatTarget
CheckAgentChatTarget refuses, before any request, an @<name> send target that names a DM other than the calling agent's own. An agent has one chat, wi
internal/cli/chat.go:37
↓ 3 callersMethodCheckLimitTx
CheckLimitTx is CheckLimit with every read routed through the caller's transaction instead of an independent connection (PLAN-2357 / DR-16). The COUN
internal/store/limits.go:126
↓ 3 callersFunctionChildLinkTypes
ChildLinkTypes is the exported, read-only view of childLinkTypes (items.go) — the link types GetChildItems walks to find an item's children. It exist
internal/store/link_types.go:17
↓ 3 callersMethodClaimOrphanedVariantAttachment
ClaimOrphanedVariantAttachment is the orphan GC's atomic claim for a LIVE variant row whose parent original is tombstoned or gone (BUG-2388) — the lea
internal/store/attachments.go:1115
↓ 3 callersMethodCleanExpiredSessions
CleanExpiredSessions removes all sessions past their expiry time.
internal/store/sessions.go:483
↓ 3 callersFunctionClearChatDirection
()
internal/cli/chat_direction_state.go:95
↓ 3 callersMethodClearForecast
ClearForecast removes the forecast and records the clear. Clearing an absent forecast writes nothing.
internal/store/milestone.go:120
↓ 3 callersMethodClose
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
↓ 3 callersMethodClose
Close releases the transport's own client. The server closes a transport it replaces or clears (SetAccessKickTransport), so a caller hands over owners
internal/accesskick/accesskick.go:71
↓ 3 callersFunctionCollectionCompletedWorkValues
CollectionCompletedWorkValues unmarshals a collection's persisted schema and settings JSON (best-effort; parse failures fall back the same way Termina
internal/models/terminal.go:274
↓ 3 callersFunctionColorizedStatus
ColorizedStatus returns a status icon + status text with appropriate color.
internal/cli/format.go:66
↓ 3 callersMethodCommitmentAccessItemsQ
CommitmentAccessItemsQ returns the seed component over links and gates, plus owners of the seed journal lineage. Deleted rows retain their marker.
internal/store/commitment_access.go:21
↓ 3 callersMethodCompanionCollectionSchema
CompanionCollectionSchema returns a companion collection's schema and settings, read in the fence, for the app layer's field validation. It takes the
internal/store/fenced_items.go:121
↓ 3 callersFunctionConfigFromEnv
ConfigFromEnv reads EnvTimeout, EnvMemLimit and EnvIdleTimeout through getenv (os.Getenv in production). An unset variable takes the default; an unpar
internal/materialize/supervisor_config.go:143
↓ 3 callersMethodConsumeInvitationProof
ConsumeInvitationProof spends an invitation's mailbox-only proof (TASK-3352): if proof is the one minted with invitationID, it is cleared and userID's
internal/store/workspace_members.go:1370
↓ 3 callersFunctionConventionPriorityRank
ConventionPriorityRank ranks convention priority strings (must > should > nice-to-have). Lower rank = higher priority. Unknown values rank last so unt
internal/models/priority_rank.go:30
↓ 3 callersMethodCountNotificationsSentSince
CountNotificationsSentSince is how many of userID's rows were pushed at or after since: the rate cap's input. sent_at is stored at whole seconds, so a
internal/store/push_dispatch.go:340
↓ 3 callersMethodCountProtectingAttachmentsForHashContext
CountProtectingAttachmentsForHashContext is CountProtectingAttachmentsForHash bounded by ctx, for the callers that run it while holding the process-wi
internal/store/attachments.go:1381
↓ 3 callersMethodCreateAccessTokenSession
===================================================================== AccessTokenStorage =============================================================
internal/oauth/storage.go:277
↓ 3 callersMethodCreateAgentRole
CreateAgentRole creates a new agent role in a workspace.
internal/cli/client.go:1875
↓ 3 callersMethodCreateAttachmentTx
CreateAttachmentTx inserts an attachment row inside an existing transaction. It exists for the cross-workspace copy (PLAN-2357 / DR-9 / DR-11), which
internal/store/attachments.go:174
↓ 3 callersMethodCreateAttachmentVariantIfParentLive
CreateAttachmentVariantIfParentLive inserts a derived-variant row ONLY while its parent original is still live — the liveness check is part of the INS
internal/store/attachments.go:1566
↓ 3 callersMethodCreateCommentWithActivity
CreateCommentWithActivity writes the activity row a comment links to AND the comment in ONE transaction, so both commit or neither does (BUG-2716). T
internal/store/comments.go:64
↓ 3 callersMethodCreateItem
CreateItem accepts WithPlanLimit(): the workspace's items_per_workspace cap is then counted inside the insert's transaction, under the workspace lock
internal/store/items.go:209
↓ 3 callersMethodCreateSessionIssuedAt
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:78
↓ 3 callersFunctionCriterionHash
CriterionHash is the sha256 hex of a criterion's text with runs of whitespace collapsed, so re-wrapping a criterion does not stale its evidence and re
internal/verification/verification.go:28
↓ 3 callersMethodDBRuntimeLimits
DBRuntimeLimits parses the three PAD_DB_* bounds. Unset takes the default; `0` or `off` means no limit; anything else must be a positive Go duration o
internal/config/config.go:1065
↓ 3 callersMethodDateBucket
DateBucket returns a SQL expression that truncates an RFC3339 UTC timestamp TEXT column to the start of its bucket, as a sortable TEXT label, for GROU
internal/store/dialect.go:166
↓ 3 callersMethodDead
Dead is closed on the stream's first write or flush failure.
internal/server/sse_stream.go:82
↓ 3 callersFunctionDefaults
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
↓ 3 callersMethodDelete
(ctx context.Context, key string)
internal/attachments/registry.go:94
↓ 3 callersMethodDeleteCollectionGrant
DeleteCollectionGrant revokes a collection grant by ID, scoped to a workspace. When it was the grantee's last access to the workspace, their workspac
internal/store/grants.go:96
↓ 3 callersMethodDeleteComment
DeleteComment deletes (or tombstones) a comment this install wrote as this actor, addressed through its item, in one FencedTx.
internal/appstore/comments.go:128
↓ 3 callersMethodDeleteInstallClientTx
DeleteInstallClientTx removes the install's client and everything hanging off it, children first (DOC-3371 §8): the request ids are captured from the
internal/store/install_clients.go:305
↓ 3 callersMethodDeleteInvitationAdmin
DeleteInvitationAdmin removes a pending invitation by ID (no workspace scoping).
internal/store/workspace_members.go:1725
↓ 3 callersMethodDeleteOAuthConnection
DeleteOAuthConnection removes the row + cascades to oauth_connection_workspaces. Phase D's "Revoke" handler calls this after RevokeRefreshTokenFamily
internal/store/oauth_connections.go:831
↓ 3 callersMethodDeletePendingInstall
DeletePendingInstall removes a reservation and every staged blob: a failed or cancelled fetch, or an owner discarding a preview. A missing record is n
internal/store/app_pending.go:221
↓ 3 callersMethodDeleteWatch
DeleteWatch removes a user's watch on an item. Returns sql.ErrNoRows if no such watch exists — mirrors UnstarItem's contract.
internal/store/watches.go:112
↓ 3 callersMethodDeleteYjsSetAsideTx
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
↓ 3 callersMethodDeliveryStatus
DeliveryStatus returns the recorded status of eventID for webhookID, "" when nothing is recorded.
internal/store/webhook_deliveries.go:39
↓ 3 callersFunctionDescribe
Describe reports the configured provider for operator-facing output such as `pad server info`. It returns ("none", "") when nothing is configured, and
internal/decision/config.go:162
↓ 3 callersMethodDismissUI
DismissUI adds key to userID's dismissed set (idempotent) and returns the set as this write left it. The read-modify-write holds the users row, the sa
internal/store/ui_dismissals.go:50
↓ 3 callersMethodDropDecisionJob
DropDecisionJob abandons a claimed job: the item is gone, the set no longer applies, or the job has exhausted its attempts. Generation-matched, exact
internal/store/decisions.go:542
↓ 3 callersFunctionDroppedFilenameRune
BUG-2818: one filename, three readers. A stored attachment name is read by the extension blocklist (ValidateUpload), by the Content-Disposition heade
internal/attachments/filename.go:42
↓ 3 callersMethodETag
ETag is the concurrency token an app sees for an item.
internal/appstore/appstore.go:93
↓ 3 callersFunctionErrManagerClosed
ErrManagerClosed exposes the manager's internal closed-flag error to callers via a public sentinel they can wrap. The internal errManagerClosed (in ma
internal/collab/applier.go:880
↓ 3 callersMethodError
()
internal/logging/redaction_followups_test.go:191
↓ 3 callersMethodError
()
internal/store/app_provision.go:63
↓ 3 callersMethodError
()
internal/store/items_cross_workspace_copy.go:124
↓ 3 callersMethodError
()
internal/store/items.go:2346
↓ 3 callersMethodError
()
internal/server/handlers_import_bundle.go:1575
↓ 3 callersFunctionEscapeWikiTitle
EscapeWikiTitle is title in the form a wiki-link body stores it: `\`, `]` and `|` escaped with a backslash. A caller that searches or counts link lite
internal/links/links.go:152
↓ 3 callersMethodExhausted
Exhausted reports whether an iterator of r stopped on its budget. TASK-4100.
internal/schedule/internal/rrule/rrule.go:145
↓ 3 callersMethodExpireStaleNotifications
ExpireStaleNotifications turns pending rows created before createdCutoff into 'expired': a push that late is noise. A row under a live claim (claimed
internal/store/push_dispatch.go:249
↓ 3 callersMethodExportItemArtifact
ExportItemArtifact GETs the single-item artifact export endpoint (GET /workspaces/{ws}/items/{ref}/export) and returns the artifact bytes (Markdown +
internal/cli/client.go:1913
↓ 3 callersFunctionExtractAttachmentRefs
ExtractAttachmentRefs returns the unique attachment UUIDs referenced in `markdown` via `pad-attachment:UUID` image/link syntax, in first-seen order. R
internal/server/render/attachments.go:433
↓ 3 callersMethodFTSSnippet
FTSSnippet returns highlighted snippet SQL and its arguments. PostgreSQL uses the same tsquery as FTSMatch; SQLite uses the MATCH context.
internal/store/dialect.go:118
↓ 3 callersMethodFetch
Fetch runs `<Binary> <args...>` and returns stdout on success.
internal/mcp/resources.go:70
↓ 3 callersFunctionFoldName
FoldName folds an object member name the way encoding/json v1 does when it matches a key to a struct field: ASCII letters upper-cased, and every other
internal/jsonscan/jsonscan.go:150
↓ 3 callersMethodForecastSummaries
ForecastSummaries decorates already admitted schedules without loading history.
internal/store/milestone.go:923
↓ 3 callersFunctionFormatChangesForDisplay
FormatChangesForDisplay is the Go twin of formatChangesForDisplay in web/src/lib/utils/activityChanges.ts (BUG-2789). It sanitises an activity row's `
internal/cli/activity_changes.go:34
↓ 3 callersFunctionFormatFieldValue
FormatFieldValue renders one field value for a human: a string as itself, a structured value (a json field's object or array) as compact JSON, anythin
internal/cli/format.go:424
↓ 3 callersFunctionFormatLineDiff
FormatLineDiff renders old -> new as lines prefixed "-", "+" or " ", keeping at most context unchanged lines around each change and eliding the rest w
internal/cli/builtin_format.go:16
↓ 3 callersMethodGet
Get / Stat / Delete are convenience helpers that resolve the key first.
internal/attachments/registry.go:78
↓ 3 callersMethodGetAccessTokenSession
GetAccessTokenSession hydrates an access token. Inactive rows surface as fosite.ErrInactiveToken so the introspection / authorization-bearer middlewar
internal/oauth/storage.go:304
↓ 3 callersMethodGetBillingMetrics
GetBillingMetrics asks pad-cloud for an aggregated Stripe-derived snapshot (active subs, MRR, ARR, churn, cancellations). Auth is the same shared Clou
internal/billing/cloud_client.go:144
↓ 3 callersMethodGetCollectionGrant
GetCollectionGrant retrieves a collection grant by ID.
internal/store/grants.go:36
↓ 3 callersMethodGetCurrentUserContext
GetCurrentUserContext allows callers to bound identity resolution.
internal/cli/client.go:2321
↓ 3 callersMethodGetItemGrant
GetItemGrant retrieves an item grant by ID.
internal/store/grants.go:148
↓ 3 callersMethodGetItemLineageByIDs
GetItemLineageByIDs fetches skinny parent-lineage projections for the given item IDs in a single `WHERE id IN (...)` query. Soft-deleted items are exc
internal/store/items.go:5078
↓ 3 callersMethodGetItemsByIDsIncludeDeleted
GetItemsByIDsIncludeDeleted fetches items (soft-deleted included) for the given IDs in ONE `WHERE id IN (...)` query, keyed by item ID. It replaces th
internal/store/items.go:1160
← previousnext →4,401–4,500 of 28,840, ranked by callers