MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersMethodRestoreDocument
RestoreDocument un-archives a document of workspaceID. Both the read and the update are scoped to that workspace, so a document of another workspace i
internal/store/documents.go:1128
↓ 4 callersMethodRetimeTargetOffsetReminders
RetimeTargetOffsetReminders repairs the managed reminders armed before the reminder followed the target (TASK-4713): on a live, unoverridden schedule
internal/store/schedule_offset_rearm.go:20
↓ 4 callersMethodRevokeAccessToken
RevokeAccessToken mirrors RevokeRefreshToken for access tokens. fosite calls these in pairs when revoking a grant (the unified "revoke the whole famil
internal/oauth/storage.go:454
↓ 4 callersMethodRevokeRefreshTokenFamily
============================================================ Token revocation (handler/oauth2/revocation_storage.go) =================================
internal/store/oauth.go:551
↓ 4 callersMethodRotateInstallClientSecretTx
RotateInstallClientSecretTx replaces the client's secret and returns the new one. Tokens already issued are the caller's business: rotate bumps the in
internal/store/install_clients.go:254
↓ 4 callersMethodRotateRefreshToken
RotateRefreshToken retires every token of the grant — both the refresh family AND the paired access family for the given requestID (the grant itself l
internal/store/oauth.go:429
↓ 4 callersFunctionRunWorker
RunWorker serves the materializer worker protocol: frames of a uint32 big-endian length followed by that many bytes of JSON, a WorkerRequest in on r a
internal/materialize/worker.go:66
↓ 4 callersMethodSeedFromTemplateForTesting
SeedFromTemplateForTesting seeds the workspace from tmpl exactly as SeedCollectionsFromTemplate seeds it from a shipped template named templateName, s
internal/store/testing_helpers.go:378
↓ 4 callersFunctionServedProtocolVersions
ServedProtocolVersions lists the revisions served by the remote transport, newest first. Modern revisions are approved and listed individually; legacy
internal/mcp/transport.go:18
↓ 4 callersMethodSetBaseURL
SetBaseURL sets the public base URL used for generating shareable links. If the supplied URL has an unspecified bind-all host ("0.0.0.0", "::", "[::]
internal/server/server.go:1123
↓ 4 callersMethodSetFailureObserver
SetFailureObserver attaches the callback; nil detaches. Safe to call after the registry is running. The callback must be safe for concurrent use and m
internal/server/session_presence_observer.go:52
↓ 4 callersMethodSetImageProcessor
SetImageProcessor wires the image processor that the upload handler uses to derive thumbnail variants (TASK-878). Optional — without it uploads still
internal/server/server.go:1389
↓ 4 callersMethodSetImportArtifactMaxBytes
SetImportArtifactMaxBytes overrides the default 1 MiB cap on a single playbook/convention artifact import. Set to 0 to fall back to the default. Wired
internal/server/server.go:1432
↓ 4 callersMethodSetOrphanGCConfig
SetOrphanGCConfig overrides the default sweep interval (24h) and grace period (30d). Pass 0 for either to keep the package default. Must be called bef
internal/server/orphan_gc.go:545
↓ 4 callersMethodSetPushDispatchConfig
SetPushDispatchConfig overrides the timings; zero keeps the current value. Server startup calls it from the PAD_PUSH_DISPATCH_* knobs (cmd/pad configu
internal/server/push_dispatch.go:137
↓ 4 callersFunctionSetRelativeDataDirWarningSink
SetRelativeDataDirWarningSink routes the relative data-dir warning: the server sets it so the line goes through slog; a machine-read stream (the plugi
internal/config/config.go:408
↓ 4 callersMethodSetRestoreBoundary
SetRestoreBoundary records a restore boundary for itemID, keeping the stored value monotonically non-decreasing (a later restore always has a higher o
internal/collab/manager.go:227
↓ 4 callersMethodSetShareAssetSecret
SetShareAssetSecret wires the key for protected share-link image signatures (see Server.shareAssetSecret). Copied like SetClaimSecret; nil clears it.
internal/server/handlers_oauth.go:115
↓ 4 callersMethodSetTokenReaperConfig
SetTokenReaperConfig overrides the default sweep interval (1h). Pass 0 to keep the package default. Must be called before StartTokenReaper; calling af
internal/server/token_reaper.go:31
↓ 4 callersMethodSetToolSurfaceHandler
SetToolSurfaceHandler wires the MCP catalog→JSON serializer onto the server (PLAN-1888 / TASK-1891). Called once at startup by cmd/pad/main.go with mc
internal/server/handlers_mcp.go:106
↓ 4 callersMethodSetWriteDeadline
SetWriteDeadline is where a handler's http.ResponseController lands: the controller stops at the first writer that has the method. A handler that sets
internal/server/middleware_write_deadline.go:202
↓ 4 callersFunctionSetupWriter
SetupWriter is like Setup but writes to w instead of stderr (useful for tests).
internal/logging/logging.go:30
↓ 4 callersFunctionShouldEmbedAsImage
ShouldEmbedAsImage decides <img> vs file chip (BUG-2964). THE RULE IS A DISJUNCTION: embed as <img> iff THE VARIANT THIS RENDER WILL REQUEST exists (
internal/server/render/attachments.go:139
↓ 4 callersMethodStagePendingBlob
StagePendingBlob writes one fetched blob into a fetching reservation. The staged total may not exceed the reservation's charge (the per-install cap),
internal/store/app_pending.go:158
↓ 4 callersMethodStageUpload
StageUpload runs steps 1 to 4: size, admission, type and blob.
internal/appstore/attachments.go:171
↓ 4 callersMethodStampRestoreBoundaryOpIDTx
StampRestoreBoundaryOpIDTx sets items.restore_boundary_op_id INSIDE the caller's transaction (BUG-2264) — the DURABLE counterpart of the in-memory Roo
internal/store/yjs_updates.go:425
↓ 4 callersMethodStartDecisionTick
StartDecisionTick starts the evaluation loop. Idempotent, a no-op with no runner attached, and a no-op once Stop() has run.
internal/server/decision_tick.go:122
↓ 4 callersMethodStartDone
(userID, workerID, workspaceID, playbookID string)
internal/server/session_presence_start_test.go:13
↓ 4 callersMethodStartTokenReaper
StartTokenReaper kicks off the periodic sweep that deletes expired/used email-verification tokens, password-reset tokens, sessions, CLI-auth sessions,
internal/server/token_reaper.go:49
↓ 4 callersFunctionStatusColor
StatusColor returns a *color.Color appropriate for the given status string.
internal/cli/format.go:28
↓ 4 callersMethodStop
Stop ends probing and waits for the goroutine to exit. Idempotent, and safe on a prober that was never started. MUST NOT be called from an onProbe ca
internal/server/redis_health.go:184
↓ 4 callersMethodString
String names a result, for logs and tests.
internal/webhooks/app_delivery.go:221
↓ 4 callersMethodSubscribeWithOverflow
SubscribeWithOverflow is Subscribe with the overflow signal (TASK-1273): onOverflow runs once, on its own goroutine, the first time an event this subs
internal/collab/memory_bus.go:67
↓ 4 callersMethodSubscriberCount
SubscriberCount returns the number of active local subscribers.
internal/events/bus.go:324
↓ 4 callersMethodTOTPSecretForVerify
TOTPSecretForVerify returns the plaintext TOTP secret of a user whose 2FA is enabled, for the second-factor check and nothing else. It is the only rea
internal/store/users.go:142
↓ 4 callersFunctionToItemAgentView
ToItemAgentView projects one item for machine consumption. The full content replaces content_preview so the same text is never paid for twice.
internal/cli/item_summary.go:199
↓ 4 callersMethodTopLevel
TopLevel returns the highest-probability level of a Score answer: its index and its name from the legend. ok is false for any other kind, or when the
internal/decision/decision.go:247
↓ 4 callersMethodUninstall
Uninstall removes the pad entry from the named agent's config. Idempotent: a missing file or missing entry is not an error and returns (path, false, n
internal/mcp/install.go:689
↓ 4 callersMethodUpdateComment
UpdateComment replaces the body of a comment this install wrote as this actor, addressed through its item, in one FencedTx.
internal/appstore/comments.go:89
↓ 4 callersMethodUpdateCommitmentExpecting
UpdateCommitmentExpecting is UpdateCommitment with an optimistic precondition: a non-empty expected must equal the commitment_revision under the pin,
internal/store/commitment.go:577
↓ 4 callersMethodUpdateItemFields
UpdateItemFields applies a fields patch (declared, scalar, non-relation keys, validated by appstore) to an item this install created. The seq lock is
internal/store/fenced_items.go:328
↓ 4 callersFunctionValidate
Validate reports whether raw may be registered as an OAuth redirect URI. Registration must never accept a URI the authorize endpoint refuses, so this
internal/oauth/redirecturi/redirecturi.go:25
↓ 4 callersFunctionValidateCalendarFields
ValidateCalendarFields checks a calendar's date_field and end_field against the collection's schema. date_field is required: a schema date field or a
internal/models/view_calendar.go:63
↓ 4 callersFunctionValidateChatGPTCatalog
ValidateChatGPTCatalog checks the catalog against Catalog: every entry's source exists, every parameter exists on it, required parameters are declared
internal/mcp/chatgpt_catalog.go:610
↓ 4 callersFunctionValidateConventionMetadata
ValidateConventionMetadata normalizes a typed convention member and refuses one that carries nothing: an empty object would lower to a key the extract
internal/models/item.go:1391
↓ 4 callersFunctionValidateFieldsDetailed
ValidateFieldsDetailed is ValidateFields with per-field attribution: it returns one FieldIssue per failure instead of a joined error, and applies sche
internal/items/validate.go:125
↓ 4 callersFunctionWindowsDeviceName
WindowsDeviceName reports whether Windows would open name as a device. It reads the name as Windows does: the stem is everything before the FIRST dot
internal/attachments/filename.go:187
↓ 4 callersFunctionWithValidatedSchema
WithValidatedSchema hands MoveItemWithPreCheck the exact bytes of the target collection's schema its caller validated the moved fields against (BUG-34
internal/store/event_outbox.go:98
↓ 4 callersMethodWorkspaceHasAgentActivity
WorkspaceHasAgentActivity reports whether any non-deleted item VISIBLE to the caller was created via an agent surface — direct CLI invocation or the R
internal/store/items.go:7352
↓ 4 callersMethodWorkspaceID
WorkspaceID is a nil-safe accessor for the resolved workspace's ID.
internal/server/authz_cross_workspace.go:176
↓ 4 callersMethodWorkspaceSlug
WorkspaceSlug is a nil-safe accessor for the resolved workspace's canonical slug — the value the token allow-list was tested against.
internal/server/authz_cross_workspace.go:185
↓ 4 callersMethodWorkspaceSlugClaims
WorkspaceSlugClaims returns all current and historical slug claims.
internal/store/workspaces.go:649
↓ 4 callersMethodWorkspaceSubscriberCount
WorkspaceSubscriberCount returns the number of active local subscribers for a workspace.
internal/events/redis_bus.go:1675
↓ 4 callersMethodWrite
(p []byte)
internal/materialize/supervisor.go:1082
↓ 4 callersMethodWrite
(p []byte)
internal/events/redis_subscribe_rejected_test.go:72
↓ 4 callersMethodWrite
(p []byte)
internal/server/bug3821_write_deadline_test.go:607
↓ 4 callersMethodWrite
(p []byte)
internal/watchevents/redis_subscribe_failed_test.go:41
↓ 4 callersMethodWriteDenied
WriteDenied writes the acknowledging denial, for paths where the caller supplied the target slug themselves and a bare 404 would be unhelpful — the co
internal/server/authz_cross_workspace.go:238
↓ 4 callersFunctionWriteOpenChildrenError
WriteOpenChildrenError formats an open-children rejection to w in the canonical two-track shape the project guarantees (IDEA-1494): 1. A single `pad-
internal/cli/client.go:2785
↓ 4 callersFunctionabortDrag
* Tear a block gesture down mid-flight (BUG-2453). * * ABORT RATHER THAN EARLY-RETURN, the same choice `ItemGraph`'s * `abortPan` ma
web/src/lib/components/editor/block-drag-handle.ts:883
↓ 4 callersMethodaccessSince
accessSince renders every workspace_access_changed notification after id as sorted "change user-email workspace-id" lines, so an assertion names peopl
internal/server/workspace_access_notify_test.go:86
↓ 4 callersMethodaccountExists
(t *testing.T, email string)
internal/server/handlers_invitation_accept_limit_test.go:85
↓ 4 callersMethodaccountStorageUsageQ
accountStorageUsageQ is the bytes of non-deleted attachments across every workspace ownerID owns: the pool a per-account limit is checked against. A
internal/store/attachments.go:1901
↓ 4 callersMethodacquirePlanLimitLock
acquirePlanLimitLock takes the Postgres advisory transaction lock that serialises the limited inserts of one workspace-scoped feature (BUG-2808). It i
internal/store/limits.go:392
↓ 4 callersFunctionact
(minutesAgo: number, over: Partial<Activity> = {})
web/src/lib/components/activity/EpisodeFeed.svelte.test.ts:28
↓ 4 callersFunctionact
(minutesAgo: number, over: Partial<Activity> = {})
web/src/lib/utils/activityEpisodes.test.ts:10
↓ 4 callersFunctionaction
(id: string)
web/src/lib/attachments/actions.test.ts:77
↓ 4 callersFunctionactionItemBacklinks
actionItemBacklinks handles pad_item.action=backlinks. Modelled on actionItemHistory: injects the default limit when omitted and clamps an oversized o
internal/mcp/catalog_item.go:1017
↓ 4 callersFunctionactionItemImport
actionItemImport handles pad_item.action=import. The CLI's `pad item import <file>` reads the artifact from a file (or stdin when the positional is `-
internal/mcp/catalog_item.go:1172
↓ 4 callersFunctionactivityKeysetClause
activityKeysetClause is the keyset predicate the paginated activity feeds share (BUG-2781): rows strictly after the cursor in (created_at, id) DESCEND
internal/store/activities.go:1059
↓ 4 callersMethodaddConn
addConn registers a freshly-built roomConn with the room. Cancels any pending grace timer (a reconnect within the window keeps the Room alive) and ret
internal/collab/room.go:366
↓ 4 callersFunctionaddWorkerIDFlag
addWorkerIDFlag declares --worker-id on a lease-aware command (claim, release, project next / ready; TASK-3613). Unset, the client sends this session'
cmd/pad/worker_flag.go:11
↓ 4 callersFunctionadminFetch
(path: string, opts?: RequestInit)
web/src/lib/stores/admin.svelte.ts:84
↓ 4 callersFunctionadmitted
admitted reports whether a write door let a deliberately bad body through to decoding (400 invalid_body) rather than refusing it (403/404/409).
internal/server/handlers_commitment_editable_test.go:38
↓ 4 callersMethodadvance
(content string, at int)
internal/links/mentions.go:77
↓ 4 callersFunctionagendaGroupsOut
The stub's /auth/me zone is America/New_York, so times show in it.
cmd/pad/task4489_agenda_groups_test.go:58
↓ 4 callersFunctionagendaOptionalInstant
agendaOptionalInstant formats an optional instant in the response timezone.
internal/server/handlers_agenda.go:592
↓ 4 callersFunctionagentGuideSection
(markdown, topic string)
cmd/pad/cmd_agent.go:57
↓ 4 callersFunctionanalyseSource
(path: string, code: string)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:753
↓ 4 callersFunctionand
(a: State, b: State)
web/src/test/identityFenceAst.ts:950
↓ 4 callersFunctionappActorKind
appActorKind is the actor kind an app write's events carry: "user" for a person acting through the app (a delegated token), "agent" for the bot. X-Pad
internal/server/app_api_write.go:94
↓ 4 callersFunctionappFault
appFault marks an error from re-admission as a server fault (a store or database failure), not a denial: the response is withheld either way, but a fa
internal/server/app_api.go:739
↓ 4 callersFunctionappKeysOf
(m map[string]any)
internal/server/task3401_app_api_test.go:256
↓ 4 callersMethodappRevalidate
appRevalidate re-admits the request from scratch before its response is sent: the token is introspected again (revocation, expiry, binding, epoch, ins
internal/server/app_api.go:635
↓ 4 callersFunctionapply
(c: CaretRect)
web/src/lib/components/editor/caretPopup.ts:55
↓ 4 callersFunctionapplyWorkerID
applyWorkerID points client at an explicit --worker-id, if one was given.
cmd/pad/worker_flag.go:16
↓ 4 callersFunctionapproveCLIAuthForBUG4836
BUG-4836: an approved CLI sign-in code must stop handing out its minted session token once expires_at has passed, and both expiry sweeps must revoke t
internal/server/bug4836_cli_auth_expired_approval_test.go:14
↓ 4 callersFunctionarchivedCollectionFixture
BUG-2884. DeleteCollection soft-deletes the collection row only; its items keep deleted_at IS NULL and stay fully reachable (GetItemByRef, GetItem, Se
internal/store/export_soft_deleted_collection_test.go:27
↓ 4 callersMethodarm
arm sets the deadline for a write about to start. A nil return is paired with exactly one disarm when that write returns.
internal/server/middleware_write_deadline.go:165
↓ 4 callersMethodarm
arm sets a fresh deadline for the write about to happen. A failure here fails the stream: the write would otherwise be unbounded.
internal/server/sse_stream.go:121
↓ 4 callersFunctionarmFileExists
(t *testing.T, path string)
internal/cli/session_arm_unverifiable_bug2771_test.go:40
↓ 4 callersFunctionarmSchedule
armSchedule computes the arming of an occurrence. Pinned: the occurrence instant and its fire instant in the schedule's own zone. Floating: the early
internal/store/schedules.go:322
↓ 4 callersFunctionarmSessionForTest
armSessionForTest puts the process in an armed session so streamWatchEvents' per-notification consent gate (D1) lets events through: a temp HOME/data-
cmd/pad/cmd_watch_test.go:272
↓ 4 callersFunctionarr
(v: T[] | null | undefined)
web/src/lib/components/settings/apps/appsShape.ts:16
↓ 4 callersFunctionassemble
Assemble a PDF from numbered object bodies, with a correct xref table.
web/e2e/lib/pdf-fixtures.ts:13
↓ 4 callersFunctionassertAgendaScheduleIDs
(t *testing.T, rows []AgendaSchedule, want []string)
internal/store/schedule_agenda_list_test.go:86
↓ 4 callersFunctionassertAmbiguityRefused
(t *testing.T, rr interface { // httptest.ResponseRecorder shape without importing it here Result() *http.Re
internal/server/handlers_items_parent_ambiguity_test.go:28
↓ 4 callersFunctionassertAttachmentDisposition
(t *testing.T, rr *httptest.ResponseRecorder, wantPrefix string)
internal/server/handlers_attachments_download_mime_test.go:112
↓ 4 callersFunctionassertDisclosesNothing
assertDisclosesNothing checks a refusal body for anything that would confirm the source item exists or reveal the destination schema.
internal/server/handlers_items_copy_preflight_test.go:841
↓ 4 callersFunctionassertEntrySource
TASK-4491: notes and decisions are searched in the comment band. A match names its source (`note` / `decision`) and the entry's stored id.
internal/store/search_entries_test.go:13
← previousnext →4,001–4,100 of 31,685, ranked by callers