MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionNotUniqueAnonymousMessage
NotUniqueAnonymousMessage is the not_unique sentence that names no holder. It is what a caller who may not see the holder is told, and it is the ONLY
internal/store/unique_fields.go:143
↓ 2 callersFunctionNotePadTomlURLOverride
NotePadTomlURLOverride records that .pad.toml replaced the chosen server URL with another. Called with two empty strings when no override applies, so
internal/cli/env_token.go:59
↓ 2 callersMethodNotificationSubject
NotificationSubject returns the live item a notification is about. An item that is missing or soft-deleted, or whose collection is archived, is ErrNot
internal/store/push_dispatch.go:446
↓ 2 callersFunctionNoulValue
NoulValue reads the probability out of a stored Noul answer. ok is false for a row of another kind or an unreadable answer.
internal/decision/attention.go:131
↓ 2 callersFunctionNumericClaimForms
NumericClaimForms is the form under which JSONFieldEquals could find two numeric values equal, on either dialect, for arg when numericArg accepts it:
internal/store/dialect_fieldvalue.go:170
↓ 2 callersFunctionORIGIN
()
web/src/lib/chat/markdown.svelte.test.ts:11
↓ 2 callersMethodOccurrenceNoLongerNeeded
OccurrenceNoLongerNeeded reports whether the item's outstanding occurrence is marked No longer needed: a parent occurrence it was linked to, under the
internal/store/commitment_cancel.go:157
↓ 2 callersMethodOldestAccessTokenIssuedAtByRequestID
OldestAccessTokenIssuedAtByRequestID returns the requested_at of the earliest access token in the family identified by requestID. Used by the OAuth re
internal/store/oauth.go:600
↓ 2 callersFunctionOnboardSeedPlaybook
OnboardSeedPlaybook returns the onboard playbook as a SeedPlaybook ready for SeedCollectionsFromTemplate to insert into a new workspace at init time.
internal/collections/playbook_library_onboard.go:314
↓ 2 callersMethodOpenAttachment
OpenAttachment returns the bytes of a visible attachment, or of its variant when one is asked for and exists (falling back to the original, as the hum
internal/appstore/attachments.go:383
↓ 2 callersMethodOrphanedAttachments
OrphanedAttachments returns rows eligible for orphan GC reclamation (TASK-886). Two cases qualify: - Never-attached uploads: item_id IS NULL AND dele
internal/store/attachments.go:911
↓ 2 callersMethodPadTomlAutoArm
PadTomlAutoArm reports whether this .pad.toml opts the repository into auto-arm. Nil-safe: a nil *PadToml (no workspace linked) or a missing `[push]`
internal/cli/workspace.go:49
↓ 2 callersFunctionParseMemLimit
ParseMemLimit reads the EnvMemLimit syntax: a whole number of bytes, or a whole number with a KiB, MiB or GiB suffix (case-sensitive, no space).
internal/materialize/supervisor_config.go:123
↓ 2 callersFunctionParseWorkspaceSettings
(raw string)
internal/models/workspace_settings.go:58
↓ 2 callersFunctionPayloadFamilies
PayloadFamilies returns every payload shape a canonical event may carry, and false if the name is not canonical. The returned slice is freshly built,
internal/kernelevents/taxonomy.go:314
↓ 2 callersMethodPostRawWithContentType
PostRawWithContentType is the explicit-content-type variant of PostRaw. Used by the bundle import path to send a tar.gz as application/gzip so the ser
internal/cli/client.go:2055
↓ 2 callersMethodPostStreamContext
PostStreamContext is PostStreamWithContentTypeHeaders under a context, so a caller watching the upload can abandon it.
internal/cli/client_import.go:57
↓ 2 callersMethodPostStreamWithContentTypeHeaders
PostStreamWithContentTypeHeaders is PostStreamWithContentType, also returning the response headers. The workspace import reports what its --repair-nu
internal/cli/client.go:2090
↓ 2 callersMethodPrepare
Prepare builds the HTTP server for addr without binding it, for a caller that bound the listener itself. `pad server start` binds before it opens the
internal/server/server.go:2868
↓ 2 callersMethodPrepareContext
(ctx context.Context, q string)
internal/store/nulguard.go:437
↓ 2 callersMethodPreviewItemScheduleCarry
PreviewItemScheduleCarry is PreviewScheduleCarry on the store's own connection at the current time, for the preflight handler.
internal/store/schedule_carry_copy.go:347
↓ 2 callersFunctionPrintCommentTable
(comments []models.Comment)
internal/cli/format.go:691
↓ 2 callersFunctionPrintItemMarkdown
PrintItemMarkdown prints items as a markdown table on stdout.
internal/cli/format_markdown.go:102
↓ 2 callersFunctionPrintItemMeta
PrintItemMeta prints item metadata header with colors.
internal/cli/format.go:526
↓ 2 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
↓ 2 callersFunctionPrintJSONCompact
PrintJSONCompact prints any value as compact (no-indent) JSON — a single line plus trailing newline. Preferred for machine-consumed payloads where pre
internal/cli/format.go:520
↓ 2 callersMethodPrune
Prune removes entries whose skill files no longer exist on disk.
internal/cli/registry.go:114
↓ 2 callersMethodPruneNotifications
PruneNotifications deletes rows created before olderThan whose push_state is sent, skipped or expired. It NEVER deletes a pending row, of any age: a p
internal/store/push_dispatch.go:355
↓ 2 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:751
↓ 2 callersMethodPublish
Publish hands the notification to publishScript, which assigns its globally ordered ID and publishes it in one atomic step. It does NOT deliver locall
internal/watchevents/redis_bus.go:626
↓ 2 callersMethodPublish
Publish sends m, bounded at a second. The server calls it from a background worker, never on a request path.
internal/accesskick/accesskick.go:77
↓ 2 callersMethodPushDispatchApplied
PushDispatchApplied reads the dispatcher's timings, filling defaults for any unset one. Read-only; startup's wiring test reads it to prove the knobs r
internal/server/push_dispatch.go:292
↓ 2 callersMethodPut
Put writes the blob streamed from r at the canonical sharded path for hash. _ mime is ignored by this backend (S3 will use it for object metadata). Th
internal/attachments/fs_store.go:103
↓ 2 callersMethodRDate
RDate include the given datetime instance in the recurrence set generation. It will be truncated to second precision.
internal/schedule/internal/rrule/rruleset.go:75
↓ 2 callersMethodRRule
RRule set the RRULE for set. There is the only one RRULE in the set as https://tools.ietf.org/html/rfc5545#appendix-A.1
internal/schedule/internal/rrule/rruleset.go:59
↓ 2 callersMethodRRuleString
RRuleString returns RRULE string exclude DTSTART
internal/schedule/internal/rrule/str.go:135
↓ 2 callersMethodRawGet
RawGet fetches raw bytes from the API. Buffers the entire response in memory; do NOT use for endpoints that can return arbitrarily large bodies (e.g.
internal/cli/client.go:1998
↓ 2 callersMethodRead
(p []byte)
internal/mcp/stdio_eof_inflight_test.go:72
↓ 2 callersMethodRead
(p []byte)
internal/server/bug3821_write_deadline_test.go:248
↓ 2 callersMethodReadChat
(number int, seq int64)
internal/cli/client.go:3749
↓ 2 callersMethodReadMissed
ReadMissed sets MissedCount: the occurrences that passed unresolved after the outstanding one (the same count the schedule view reports).
internal/store/schedule_bootstrap.go:59
↓ 2 callersMethodReadScheduleSnoozedUntil
ReadScheduleSnoozedUntil is for reads without occurrence history already in hand. Agenda expansion calls ScheduleSnoozedUntil with its loaded rows ins
internal/store/schedule_snooze.go:33
↓ 2 callersMethodReceiveLoopExited
ReceiveLoopExited reports that the single consumer of the shared Redis channel has stopped. After this the instance publishes fine and receives nothin
internal/watchevents/observer.go:124
↓ 2 callersMethodRecordMCPTierMismatch
RecordMCPTierMismatch bumps the pad_mcp_authz_denials_total counter with reason="tier_mismatch" (TASK-1119). Wired from internal/mcp/dispatch_http.go'
internal/server/middleware_auth.go:929
↓ 2 callersFunctionRecordMCPToolOutcome
RecordMCPToolOutcome records that the tool call on ctx failed with the structured error code (one of internal/mcp's ErrorCode values) and, when the er
internal/server/mcp_tool_outcome.go:56
↓ 2 callersMethodRegisterDBCollector
RegisterDBCollector registers a callback-based collector that exposes database connection pool statistics on each Prometheus scrape. This is preferred
internal/metrics/metrics.go:1094
↓ 2 callersFunctionRegisterPrompts
RegisterPrompts installs the four static MCP prompts on srv. Each prompt takes no arguments — `prompts/get` returns a single user-role message contain
internal/mcp/prompts.go:56
↓ 2 callersMethodRegisterRedisUp
RegisterRedisUp registers the pad_redis_up gauge. Called only by a deployment that actually has Redis (cmd/pad/cmd_server.go, inside the PAD_REDIS_URL
internal/metrics/metrics.go:1061
↓ 2 callersMethodRegisterStreamConnectionsCollector
RegisterStreamConnectionsCollector exposes pad_stream_connections_active as a CALLBACK collector, sampled on scrape (BUG-2726). A collector rather th
internal/metrics/metrics.go:1083
↓ 2 callersFunctionRelationIssueReasons
RelationIssueReasons is every value a RelationIssue's Reason can carry. It exists so consumers can ENUMERATE the vocabulary rather than grep for it.
internal/store/relation_referents.go:156
↓ 2 callersFunctionRelationIssuesMessage
RelationIssuesMessage renders a set of issues as the ONE sentence every refusing door reports. It lives here rather than in `internal/server` because
internal/store/relation_referents.go:175
↓ 2 callersMethodReleaseCloudOwnership
ReleaseCloudOwnership records that an operator is deliberately taking this database off Pad Cloud, so the next non-cloud boot converts free users to s
internal/store/instance_mode.go:148
↓ 2 callersMethodReleaseDecisionJob
ReleaseDecisionJob gives a claimed job back without recording a failure: the runner stopped before finishing it (shutdown), which says nothing about t
internal/store/decisions.go:560
↓ 2 callersMethodRemoveConnectionWorkspaceUnlessLast
RemoveConnectionWorkspaceUnlessLast deletes one allow-list row, unless the connection is a specific list and that row is its last one, in which case i
internal/store/oauth_connections.go:432
↓ 2 callersFunctionRenderRelationValue
(target models.RelationTarget)
internal/cli/relation_render.go:60
↓ 2 callersMethodReplayConversationMessage
ReplayConversationMessage returns a current conversation member's own message for opKey. TASK-4039 r1: an identical HTTP retry can lose context worksp
internal/store/conversations.go:284
↓ 2 callersMethodRequireWorkspaceAccess
RequireWorkspaceAccess checks that the current user is a member of the workspace identified by the {slug} URL parameter. The user's workspace role is
internal/server/middleware_auth.go:729
↓ 2 callersMethodReservePendingUpgrade
ReservePendingUpgrade reserves a pending record for an upgrade of installID, under the same caps as an install (U8b2).
internal/store/app_pending.go:100
↓ 2 callersMethodResetYjsClassificationForTesting
ResetYjsClassificationForTesting returns an item's op-log rows to the state migration 091 leaves legacy rows in: content_hash NULL, content_bearing TR
internal/store/testing_helpers.go:249
↓ 2 callersFunctionResolve
Resolve merges configuration sources, LATER sources winning per field. Only non-empty fields override, so a source that says nothing about a field lea
internal/decision/config.go:77
↓ 2 callersMethodResolveArchivedCollection
ResolveArchivedCollection returns the id of this workspace's ARCHIVED collection named by ref, its id or its slug (slugs are unique per workspace acro
internal/store/collections_archive.go:51
↓ 2 callersFunctionResolveAttachmentImage
ResolveAttachmentImage resolves a `![alt](pad-attachment:UUID)` image reference into rendered HTML. Falls back to a file chip when the attachment exis
internal/server/render/attachments.go:288
↓ 2 callersFunctionResolveAttachmentLink
ResolveAttachmentLink resolves a `[text](pad-attachment:UUID)` link reference into rendered HTML. Always renders as a file chip — link syntax indicate
internal/server/render/attachments.go:311
↓ 2 callersFunctionResolveAutoArm
Arm-consent resolution (PLAN-2613 S2, D4). "Arming" is a session's declaration that it consents to receive `pad push` notifications — the security ga
internal/cli/arm_consent.go:46
↓ 2 callersFunctionResolveNamed
ResolveNamed is [Resolve] with attribution: it applies the same later-wins, non-empty-overrides rule and also reports which source each field came fro
internal/decision/config.go:112
↓ 2 callersMethodResolveUserPermissionQ
ResolveUserPermissionQ resolves grants and membership on the supplied executor.
internal/store/grants.go:349
↓ 2 callersMethodRestoreWorkspace
RestoreWorkspace un-soft-deletes a workspace by slug via the restore endpoint (owner-only server-side). Returns the now-live workspace.
internal/cli/client.go:262
↓ 2 callersMethodResumeGap
ResumeGap takes the workspace ID but deliberately does NOT label the metric with it. Workspace count is unbounded and operator-controlled, so a per-wo
internal/metrics/events_observer.go:35
↓ 2 callersMethodResumeGap
ResumeGap reports that a RESUME could not be served from this instance's view — the client is told sync_required and re-fetches. Separate from Sequen
internal/watchevents/observer.go:88
↓ 2 callersMethodRetireStepUpCode
RetireStepUpCode makes a code whose email delivery failed unusable. The row stays, so the failed send still counts toward the hourly send cap.
internal/store/step_up.go:68
↓ 2 callersMethodRevokeAllUserGrants
RevokeAllUserGrants deletes all collection and item grants for a user in a workspace. Used when removing a member with "revoke all access" option. The
internal/store/grants.go:315
↓ 2 callersMethodRevokeCalendarFeed
(ctx context.Context, userID, id string)
internal/store/calendar_feeds.go:108
↓ 2 callersFunctionRewriteRefs
RewriteRefs rewrites same-workspace reference links ([[TASK-1]] and [[TASK-1|alias]]) for which renamed returns a new reference, keeping any display s
internal/links/links.go:844
↓ 2 callersMethodRotateRefreshToken
RotateRefreshToken matches fosite's reference MemoryStore (storage/memory.go:497-504): revoke the entire grant — both the refresh family AND the acces
internal/oauth/storage.go:403
↓ 2 callersFunctionSHA256Hex
SHA256Hex is the lower-case hex sha256 the manifest and digests use.
internal/appmanifest/manifest.go:432
↓ 2 callersFunctionSchemaWithoutReservedFields
SchemaWithoutReservedFields returns schema with any reserved-metadata FieldDef removed — the schema as a consumer that reasons about an ITEM's field v
internal/models/collection_schema_item_fields.go:33
↓ 2 callersMethodScrubOutboxUserRefsTxCtx
ScrubOutboxUserRefsTx erases a deleted account's user id from every frozen outbox payload and from the subject_id column, on the caller's transaction.
internal/store/event_outbox.go:873
↓ 2 callersMethodSeedPlanLimits
SeedPlanLimits writes the default plan limits to platform_settings if they don't already exist. Called on server startup. Idempotent — existing values
internal/store/limits.go:499
↓ 2 callersMethodSeek
(offset int64, whence int)
internal/server/app_api_attachments.go:261
↓ 2 callersMethodSend
Send posts msgs (1 to MaxBatch, unique ids) and returns one Result per message, in order. On a 200 whose results do not line up with the request (wron
internal/notify/gateway.go:94
↓ 2 callersMethodSendAs
SendAs sends an email with a custom from name (address stays the same since email providers require verified sender domains).
internal/email/sender.go:139
↓ 2 callersMethodSendChatMessage
(number int, input ChatSendInput)
internal/cli/client.go:3730
↓ 2 callersMethodSendPasswordReset
SendPasswordReset sends a password reset email with a token link. This is a placeholder — the password reset flow (IDEA-81) will call this once the re
internal/email/templates.go:110
↓ 2 callersMethodSendTest
SendTest sends a test email to verify the email configuration.
internal/email/templates.go:326
↓ 2 callersMethodSequenceGap
SequenceGap increments both counters: the gap event, and the number of notifications it spans. A non-positive `missing` still counts as an event — the
internal/metrics/watchevents_observer.go:37
↓ 2 callersMethodSequenceReset
(reason string)
internal/metrics/watchevents_observer.go:48
↓ 2 callersMethodSequenceReset
SequenceReset reports that this instance's replay coverage was dropped. reason is bounded: "epoch_change" (the shared epoch key changed — an opaque to
internal/watchevents/observer.go:104
↓ 2 callersFunctionSerializeWorkspaceSettings
(settings *WorkspaceSettings)
internal/models/workspace_settings.go:70
↓ 2 callersMethodServerHonorsKeys
ServerHonorsKeys is serverHonorsKeys for the command layer: false when the capability lookup fails. `pad item copy` uses it to choose its unknown-outc
internal/cli/client.go:1326
↓ 2 callersMethodServerIdentity
ServerIdentity proves possession of the returned server key with a fresh challenge. It sends no credentials, ignores cookie jars and refuses redirects
internal/cli/client.go:149
↓ 2 callersMethodServerSupportsItemFieldAppend
ServerSupportsItemFieldAppend reports whether the item PATCH on this server honours append_implementation_note / append_decision (BUG-3056), which let
internal/cli/client.go:584
↓ 2 callersMethodServerSupportsItemScopedCommentWrites
ServerSupportsItemScopedCommentWrites reports whether this server routes comment PATCH/DELETE under the item (TASK-2695). An indeterminate probe answe
internal/cli/client.go:1224
↓ 2 callersMethodSetAgentName
SetAgentName sets X-Pad-Agent verbatim; an empty name omits the header. Call it before the first request.
internal/cli/client.go:133
↓ 2 callersMethodSetAppFetchTLS
SetAppFetchTLS overrides the TLS config app fetches use. Tests only.
internal/server/handlers_apps_install.go:685
↓ 2 callersMethodSetBeforeItemVersionsReadHookForTesting
SetBeforeItemVersionsReadHookForTesting runs hook at the start of every version-list read (ListItemVersionsPage and the snapshot read), before its que
internal/store/testing_helpers.go:305
↓ 2 callersMethodSetBeforeMoveLockForTesting
SetBeforeMoveLockForTesting installs the beforeMoveLock seam (BUG-3665) for the lifetime of the returned restore function: a move calls hook after its
internal/store/testing_helpers.go:292
↓ 2 callersMethodSetBeforeRotateRefreshHookForTesting
SetBeforeRotateRefreshHookForTesting runs hook at the start of every RotateRefreshToken, before the presented token is spent: the window after fosite
internal/store/testing_helpers.go:167
↓ 2 callersMethodSetBeforeVersionsReadHookForTesting
SetBeforeVersionsReadHookForTesting runs hook at the start of every legacy document version-list read, before its query (BUG-3833): the window between
internal/store/testing_helpers.go:334
↓ 2 callersMethodSetChatGPTMCPTransport
The ChatGPT catalog's MCP mount (TASK-3321 U2b): the catalog internal/mcp/chatgpt_catalog.go defines, served at its own URL, the ChatGPT resource (htt
internal/server/handlers_chatgpt_mcp.go:27
↓ 2 callersMethodSetCloudMode
SetCloudMode toggles the getpad.dev marketing footer on outgoing transactional emails. Server callers flip it on after Server.SetCloudMode fires (see
internal/email/sender.go:84
← previousnext →6,201–6,300 of 28,840, ranked by callers