MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 10 callersMethodwriteScheduleError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/commitment_errors.go:110
↓ 9 callersFunctionAddPadEntry
AddPadEntry reads (or creates) the JSON config at path, ensures mcpServers.pad points to `binary`, and writes the file back. Existing entries outside
internal/mcp/install.go:211
↓ 9 callersMethodAgendaCounts
AgendaCounts reads the counts series for one workspace over [from, to) in loc's days. scope is the caller's visibility, applied to the items before an
internal/store/agenda_counts.go:107
↓ 9 callersMethodBeginTx
(ctx context.Context, opts driver.TxOptions)
internal/store/nulguard.go:449
↓ 9 callersMethodClaimAccountByVerification
ClaimAccountByVerification hands a never-verified account to whoever holds its mailbox, proven by the email-verification token (BUG-3382). The token w
internal/store/account_claim.go:62
↓ 9 callersMethodClaimNeverAttachedAttachment
ClaimNeverAttachedAttachment is the orphan GC's atomic claim for a never-attached row (BUG-2415): a conditional DELETE that re-asserts the row is stil
internal/store/attachments.go:1081
↓ 9 callersFunctionContainsNUL
ContainsNUL reports whether the string carries a real NUL byte. This is the universal half of the invariant and it needs no classing: no column of an
internal/textguard/textguard.go:48
↓ 9 callersMethodCountBacklinks
CountBacklinks returns the total number of same-workspace backlinks the requester would see for a given target, applying the same visibility filter as
internal/store/wiki_links.go:1261
↓ 9 callersMethodCreateCLIAuthSession
CreateCLIAuthSession generates a new pending CLI auth session with a cryptographically random code and the default TTL. Returns the session including
internal/store/cli_auth_sessions.go:62
↓ 9 callersFunctionCurrentUserFromContext
CurrentUserFromContext returns the user attached by WithCurrentUser (or by the standard auth middleware), and a boolean signalling whether one was pre
internal/server/context.go:74
↓ 9 callersFunctionDefaultNotificationSettings
DefaultNotificationSettings is what a user with no settings row has: every kind on, agent activity off.
internal/models/notification_settings.go:18
↓ 9 callersMethodDeleteDocument
(id string)
internal/store/documents.go:1109
↓ 9 callersMethodDeleteReminder
DeleteReminder uses the checked commitment deletion under the same locks and expected alarm identity as rearm and acknowledgement.
internal/store/reminder_commitment.go:223
↓ 9 callersMethodDeliverAppEvent
DeliverAppEvent delivers one app event to one app hook, synchronously, with the owner path's retry schedule (maxDeliveryAttempts, linear backoff on co
internal/webhooks/app_delivery.go:133
↓ 9 callersMethodEffectivePlan
EffectivePlan is the plan entitlement is decided from: the stored plan, "free" when it is empty, and "free" once its expiry has passed (BUG-3356). The
internal/models/user.go:95
↓ 9 callersMethodEnsureEncryptionKey
EnsureEncryptionKey makes sure the server has a usable encryption key without requiring the operator to set one explicitly. Resolution order: 1. If c
internal/config/config.go:909
↓ 9 callersMethodError
()
internal/billing/cloud_client.go:102
↓ 9 callersFunctionExtractItemConventionMetadata
(fieldsJSON string)
internal/models/item.go:846
↓ 9 callersMethodFetch
Fetch performs a GET against rawURL, re-validating every redirect hop and aborting if the response exceeds the size cap. Returns a wrapped error suita
internal/urlimport/fetch.go:118
↓ 9 callersFunctionFindByArtifactKind
FindByArtifactKind returns the collection declaring the given artifact kind. Returns nil when no collection declares it — an unknown kind imports as a
internal/collections/traits.go:54
↓ 9 callersMethodGetItemContentFlushedOpLogID
GetItemContentFlushedOpLogID returns the value of items.content_flushed_op_log_id for an item — the highest op-log id known to be reflected in items.c
internal/store/yjs_updates.go:487
↓ 9 callersMethodGetPendingInstall
GetPendingInstall returns a LIVE pending install of this owner in this workspace, or ErrPendingNotFound (another owner's, another workspace's, an expi
internal/store/app_pending.go:258
↓ 9 callersMethodHasPassword
HasPassword returns true if the user has explicitly set a password that they can sign in with. OAuth-only users have a random placeholder hash stored
internal/models/user.go:139
↓ 9 callersMethodHydrateDerivedFields
()
internal/models/workspace_settings.go:141
↓ 9 callersMethodIsConnectionWorkspaceAllowed
IsConnectionWorkspaceAllowed reports whether workspace_id appears in the connection's allow-list. Used internally by GetOAuthConnectionAccess when cal
internal/store/oauth_connections.go:695
↓ 9 callersFunctionIsDBRetryable
IsDBRetryable is either class: the request failed for a reason a later attempt can get past. Callers that must word the two differently use the two pr
internal/store/busy_error.go:102
↓ 9 callersMethodLastRestoreSeq
LastRestoreSeq returns the item.seq of the most recent restore for itemID, or (0, false) when none has been recorded. Join consults it to force_refres
internal/collab/manager.go:267
↓ 9 callersFunctionLineCounts
LineCounts returns how many lines a line-level diff of oldText → newText adds and removes (PLAN-2348 U2). It counts the way the web DiffView renders j
internal/diff/diff.go:166
↓ 9 callersMethodListComments
ListComments returns all comments for an item, ordered chronologically.
internal/store/comments.go:436
↓ 9 callersMethodLivePushDevices
LivePushDevices returns userID's devices a push may go to at now, earliest created first (ties by id), so element 0 is the earliest-created live devic
internal/store/push_dispatch.go:377
↓ 9 callersFunctionNew
New builds the configured provider. A config that selects no provider returns (nil, nil) — the unconfigured case is not an error, and callers branch
internal/decision/config.go:139
↓ 9 callersFunctionNew
New builds a Fetcher. private is the admin list (self-host only; Cloud passes nil, so no private destination is ever reachable). tlsConfig is nil in p
internal/appfetch/appfetch.go:72
↓ 9 callersFunctionNormalizeOrigin
NormalizeOrigin returns the canonical origin of an https base URL: lower-case host, no default port, and no path, query, fragment or userinfo. It is t
internal/appmanifest/manifest.go:357
↓ 9 callersMethodObserve
Observe records the count from a decoded bundle. Safe on a nil receiver so a door that does not care can pass nil.
internal/server/import_stale_bodies.go:37
↓ 9 callersMethodOweDecisionJobs
OweDecisionJobs makes the one question set owed for each item, in chunked transactions, under the installed debounce (an item evaluated inside the win
internal/store/decisions.go:223
↓ 9 callersMethodPost
Post sends body to rawURL with header and returns the status, having written the WHOLE request before reading any response. A server that stops readin
internal/appfetch/appfetch.go:313
↓ 9 callersMethodPruneAndApply
PruneAndApply runs applyFn under the per-item setup lock so it is strictly serialised with any in-flight Join's addConn+replayTo for the same itemID.
internal/collab/manager.go:1082
↓ 9 callersFunctionRenderItemMarkdown
RenderItemMarkdown is the writer-taking core of PrintItemMarkdown. Columns mirror the table renderer's — Ref · Title · Status · Priority · Collection
internal/cli/format_markdown.go:110
↓ 9 callersMethodRestoreBoundary
RestoreBoundary returns the restore boundary recorded for itemID, or (0, false) when none has been set. The collab-snapshot PATCH handler consults it
internal/collab/manager.go:239
↓ 9 callersMethodRestoreWorkspace
RestoreWorkspace un-soft-deletes a workspace: it clears deleted_at so the workspace (and every item/collection/member/attachment that was only transit
internal/store/workspaces.go:454
↓ 9 callersMethodRevokeOAuthGrant
RevokeOAuthGrant ends a grant for good (BUG-3678): it records the request_id in oauth_revoked_grants and flips every token of the grant inactive, in o
internal/store/oauth.go:479
↓ 9 callersMethodSave
Save writes the registry to disk.
internal/cli/registry.go:67
↓ 9 callersMethodSetActivity
SetActivity records activity for this credential user and worker, independently of any connection. Entries expire 30 minutes after the server receipt
internal/server/session_presence.go:310
↓ 9 callersMethodSetAsideAndClearOpLog
(itemID string)
internal/collab/room.go:326
↓ 9 callersMethodSetBypassSetupToken
SetBypassSetupToken wires the operator's PAD_BYPASS_SETUP_TOKEN choice into the Server. When true, handleBootstrap accepts a self-host first-admin POS
internal/server/bootstrap.go:191
↓ 9 callersMethodSetIPChangeEnforce
SetIPChangeEnforce controls how the auth middleware reacts when a session's binding (client IP OR User-Agent hash) changes mid-lifetime: - mode == "st
internal/server/server.go:1638
↓ 9 callersMethodString
()
internal/appstore/boundary_check_test.go:158
↓ 9 callersMethodString
()
internal/collab/task3574_append_failure_test.go:90
↓ 9 callersMethodSubscribe
Subscribe registers a subscriber for itemID and returns a buffered channel of size subscriberBufSize.
internal/collab/memory_bus.go:59
↓ 9 callersMethodTimeout
()
internal/server/handlers_collab_test.go:510
↓ 9 callersMethodUpdateCommitment
UpdateCommitment judges the stored timing and the partial roles request under one pin, then writes both or neither. Authority is HTTP's job.
internal/store/commitment.go:539
↓ 9 callersFunctionValidate
Validate loads name as an IANA zone. It refuses the empty string, "Local" (the server's own zone, not the user's), NUL, and names past MaxLen.
internal/usertz/usertz.go:25
↓ 9 callersFunctionValidateFieldsDetailedWithDrops
ValidateFieldsDetailedWithDrops is ValidateFieldsDetailed plus the list of schema-declared keys whose INJECTED DEFAULT was discarded (BUG-3079). THE
internal/items/validate.go:162
↓ 9 callersMethodValidateSessionContext
ValidateSessionContext is ValidateSession under ctx: a cancelled or expired request context stops the query in flight (database/sql sends the cancel t
internal/store/sessions.go:267
↓ 9 callersMethodWorkspaceStorageUsage
WorkspaceStorageUsage returns the total bytes consumed by non-deleted attachments in the workspace. Includes derived blobs (thumbnails) — those are re
internal/store/attachments.go:1759
↓ 9 callersFunction_resetEscapeStackForTests
()
web/src/lib/stores/escapeStack.ts:97
↓ 9 callersFunctionackLossCloudServer
(t *testing.T, driver store.DriverType)
internal/server/handlers_cloud_member_ack_test.go:38
↓ 9 callersFunctionageAllSessions
ageAllSessions dates every session of the user d into the past.
internal/server/bug3336_account_delete_test.go:109
↓ 9 callersFunctionapiError
(status int, code, msg, details string)
cmd/pad/task4105_remind_schedule_test.go:36
↓ 9 callersFunctionappendFrames
(t *testing.T, s *store.Store, itemID string, frames ...[]byte)
internal/store/materialize_flush_test.go:30
↓ 9 callersFunctionassertCensusUnchanged
(t *testing.T, before, after map[string]int)
internal/server/handlers_apps_provision_test.go:68
↓ 9 callersFunctionassertCounter
(t *testing.T, m *Metrics, name string, labels map[string]string, want float64)
internal/metrics/watchevents_observer_test.go:84
↓ 9 callersMethodassertEnds
(t *testing.T, done <-chan struct{}, why string)
internal/server/bug3837_mcp_credential_tick_test.go:152
↓ 9 callersFunctionassertPreflightMatchesCopy
--- 1. DR-6: the preview IS the copy ---------------------------------- assertPreflightMatchesCopy is the general form of this task's headline deliver
internal/server/handlers_items_copy_test.go:149
↓ 9 callersMethodattachIn
attachIn creates an original attachment in the given workspace.
internal/store/items_cross_workspace_copy_test.go:66
↓ 9 callersMethodauthorizeParams
()
internal/server/task3399_delegated_flow_test.go:102
↓ 9 callersFunctionbug3407Fixture
(t *testing.T)
internal/store/bug3407_revalidate_test.go:21
↓ 9 callersFunctionbug3626Export
bug3626Export fetches the export over a real connection (an aborted response is only visible on the wire) and reports the body and the read error.
internal/server/bug3626_account_export_test.go:56
↓ 9 callersMethodbuildDashboardResponse
buildDashboardResponse is the canonical dashboard-assembly path. The HTTP handler (handleGetDashboard) is now a thin wrapper around it, and the bootst
internal/server/handlers_dashboard.go:397
↓ 9 callersFunctionbuildPlainShell
buildPlainShell builds the plain-text body for transactional emails. Self-hosted output is byte-equivalent to the prior templates. Cloud output adds a
internal/email/shell.go:93
↓ 9 callersFunctionbuildQuery
buildQuery returns the URL-encoded query string for the mapping (without the leading '?'). Empty mapping → empty string. Numbers from JSON arrive as
internal/mcp/dispatch_http_routes.go:167
↓ 9 callersFunctioncalItemTitles
(m map[string]any)
internal/server/handlers_calendar_test.go:52
↓ 9 callersFunctioncarriedValue
carriedValue returns the value the preflight says will land under key.
internal/server/handlers_items_copy_relation_test.go:129
↓ 9 callersFunctionchatActor
TASK-4039: membership identities come only from the admitted credential.
internal/server/handlers_chat.go:20
↓ 9 callersMethodcheck
check refuses an over-budget change. The error is marked as proven rolled back: it is returned before any COMMIT is sent.
internal/store/commitment_cascade.go:53
↓ 9 callersFunctioncheckDispatcherLine
checkDispatcherLine validates one dispatcher command line against the cobra tree and returns every problem found (empty means the line resolves cleanl
cmd/pad/agent_dispatcher_commands_test.go:362
↓ 9 callersFunctionclaimRows
claimRows and claimIDRows are the claim calls with the per-claim token dropped, for tests that only look at the rows.
internal/store/task3939_push_dispatch_test.go:40
↓ 9 callersMethodcomputeSSEVisibility
computeSSEVisibility resolves the caller's current visibility snapshot. Safe to call repeatedly on a live SSE connection — each call fetches the lates
internal/server/handlers_events.go:894
↓ 9 callersFunctioncontains
(haystack []string, needle string)
internal/mcp/catalog_test.go:419
↓ 9 callersFunctionconventionsCollection
conventionsCollection returns a Conventions collection scoped to the caller's domain. The trigger and scope select options are supplied by the caller
internal/collections/templates.go:478
↓ 9 callersFunctioncountDecisionJobs
(t *testing.T, s *Store)
internal/store/decisions_test.go:24
↓ 9 callersMethodcreateActivityQ
createActivityQ is CreateActivity against an executor, so a caller that must commit the activity row together with the row that references it (comment
internal/store/activities.go:73
↓ 9 callersMethodcreateWorkspace
(name, requestID string)
internal/server/handlers_workspace_create_consent_test.go:150
↓ 9 callersFunctiondebounceFixture
debounceFixture installs a "triage" set with an hour's window and a "per-comment" set with none.
internal/store/decisions_debounce_test.go:17
↓ 9 callersMethodderiveThumbnails
deriveThumbnails generates thumb-sm and thumb-md variants for the uploaded image identified by parentID. Idempotent and tolerant of every failure mode
internal/server/handlers_attachments_thumbnails.go:59
↓ 9 callersMethoddestroy
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:49
↓ 9 callersFunctiondialWSReadOnly
dialWSReadOnly joins as a read-only participant (canWrite=false) via the harness's `?readonly=1` switch — for TASK-265 tests.
internal/collab/manager_test.go:483
↓ 9 callersMethoddo
do issues a request with Bearer PAT auth. When requestID is non-empty the request context is decorated with an OAuth grant identity, which is what mak
internal/server/handlers_workspace_create_consent_test.go:124
↓ 9 callersFunctiondocWith
docWith constructs a minimal Document with two commands sharing a `collection` arg (caching test) and one `role` flag.
internal/cmdhelp/dynamic_test.go:49
↓ 9 callersFunctiondroppedReason
droppedReason returns the reason the preflight gave for key, and whether it reported the key dropped at all.
internal/server/handlers_items_copy_relation_test.go:119
↓ 9 callersMethoddueReminderCandidates
dueReminderCandidates returns the ids of armed reminders whose instant has arrived, oldest first. Split from FireDueReminders so a test can drive the
internal/store/reminders.go:399
↓ 9 callersMethoddump
()
internal/materialize/supervisor_test.go:245
↓ 9 callersFunctionenableTOTPForDeleteUser
enableTOTPForDeleteUser turns on 2FA for a bootstrapped delete-test user using a known secret, mirroring the real SetTOTPSecret → EnableTOTP flow, and
internal/server/handlers_account_test.go:488
↓ 9 callersFunctionentriesByKind
(entries []models.TimelineEntry, kind string)
internal/server/handlers_timeline_id_collision_test.go:57
↓ 9 callersFunctionfakeSessionServer
fakeSessionServer returns an httptest.Server whose /api/v1/auth/session handler responds with the SessionResponse produced by `gen` (called once per r
internal/cli/bootstrap_test.go:23
↓ 9 callersFunctionfetchAttachmentMetadata
( workspaceSlug: string, uuid: string, getDownloadUrl: AttachmentUrlBuilder, options?: MetadataFetchOption
web/src/lib/components/editor/attachment-metadata.ts:201
↓ 9 callersFunctionfindFieldOptions
findFieldOptions returns the Options slice for the named field on a collection's schema, or nil if the field is missing.
internal/collections/templates_test.go:11
↓ 9 callersFunctionfkCheckStore
fkCheckStore is a migrated store with a parent/child pair to break.
internal/store/bug3663_migration_025_test.go:90
↓ 9 callersMethodgate
Postgres lock-order tests for gate writes (TASK-4353, 2c). A gate write is a link write behind the same pin, so it queues with a cascade and with a re
internal/store/commitment_gates_pg_test.go:18
↓ 9 callersMethodgateKeyOf
A timing edit of a blocker changes the key of its outstanding occurrence. A PENDING gate fixed on that occurrence follows it to the new outstanding on
internal/store/commitment_gates_rekey_test.go:15
← previousnext →1,601–1,700 of 28,840, ranked by callers