MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionwriteFlagsTable
writeFlagsTable renders a flag map as a markdown table with sorted keys. Repeatable flags are marked in the type column for visibility.
internal/cmdhelp/md.go:219
↓ 2 callersMethodwriteHeaderLocked
(code int)
internal/server/mcp_stream_keepalive.go:82
↓ 2 callersFunctionwriteInstalledPlugins
(t *testing.T, claudeDir, body string)
cmd/pad/task3488_plugin_hint_test.go:33
↓ 2 callersMethodwriteInvitationAccepted
writeInvitationAccepted is the success body both accept doors answer with. workspace_slug and owner_username (TASK-3277, additive) let a client open t
internal/server/handlers_members.go:660
↓ 2 callersFunctionwriteItemRenameCascadeTooLarge
handleUpdateItem updates an existing item (fields, content, or both). writeItemRenameCascadeTooLarge answers a BUG-2804 cascade refusal as 413 and rep
internal/server/handlers_items.go:1363
↓ 2 callersFunctionwriteJSONConfig
(path string, cfg map[string]any)
internal/mcp/install.go:357
↓ 2 callersFunctionwriteLeaseHeldError
writeLeaseHeldError emits the structured 409 for a live foreign lease — the same envelope discipline as update_conflict: a stable `code` plus details
internal/server/handlers_item_lease.go:247
↓ 2 callersFunctionwriteLenPrefixed
writeLenPrefixed writes a 4-byte big-endian length followed by the raw bytes. Cheap collision-resistant separator for HMAC inputs.
internal/server/claim_codes.go:110
↓ 2 callersFunctionwriteMCPRateLimit
writeMCPRateLimit emits a 429 response with the MCP-shaped JSON envelope plus the standard rate-limit headers. Mirrors writeRateLimitResponse's header
internal/server/middleware_ratelimit.go:1143
↓ 2 callersFunctionwriteMemberChangeError
writeMemberChangeError answers a failed role change or member removal. A missing member is 404; the owner invariants (BUG-3355) are 409 with their own
internal/server/handlers_members.go:397
↓ 2 callersMethodwriteMemberLimitError
writeMemberLimitError answers an INVITEE whose accept would take a workspace past members_per_workspace (BUG-3098). It is deliberately not the plan-li
internal/server/handlers_cloud.go:1727
↓ 2 callersMethodwriteMessage
writeMessage is a tiny helper that holds writeMu while writing one frame. All writes (replay during addConn, writeLoop fan-out) go through here so we
internal/collab/room.go:185
↓ 2 callersFunctionwriteNextOccurrence
(w io.Writer, nextAt *string)
internal/cli/client.go:3846
↓ 2 callersFunctionwritePendingFlushConflict
(w http.ResponseWriter, ref, msg string, e *store.ContentPendingFlushError)
internal/server/handlers_items_open_children_guard.go:562
↓ 2 callersFunctionwritePlanLimitErrorNote
(w http.ResponseWriter, r *http.Request, result *store.LimitResult, note string)
internal/server/handlers_cloud.go:1707
↓ 2 callersMethodwritePreparedSchedule
writePreparedSchedule stores a prepared carry: the schedule, its managed row (none when ended) and its history.
internal/store/schedule_carry.go:277
↓ 2 callersFunctionwritePushUnavailable
(w http.ResponseWriter)
internal/server/handlers_push_devices.go:78
↓ 2 callersFunctionwriteRemindAtError
(w http.ResponseWriter)
internal/server/handlers_reminders.go:50
↓ 2 callersFunctionwriteReservedFieldsCarryError
writeReservedFieldsCarryError answers a reservedFieldsCarryError as 400 validation_error and reports whether err was one. It is a refusal of the reque
internal/server/handlers_items_reserved_write.go:212
↓ 2 callersFunctionwriteRoomSettlingError
writeRoomSettlingError emits the pad-structured-error/v1 envelope for a room that is neither settled enough to elect an applier nor empty enough to wr
internal/server/handlers_items_open_children_guard.go:633
↓ 2 callersFunctionwriteScheduleActiveError
(w http.ResponseWriter, err error)
internal/server/handlers_items_schedule_active.go:60
↓ 2 callersFunctionwriteSelfHostLink
A self-hosted project's link, with the settings a relink must keep.
cmd/pad/task3612_link_repoint_test.go:61
↓ 2 callersFunctionwriteShareAttachmentNotFound
writeShareAttachmentNotFound is the single 404 writer for this path, so every rejection reason produces a byte-identical response.
internal/server/handlers_share_attachments.go:367
↓ 2 callersFunctionwriteSortedIDs
writeSortedIDs feeds ids to h in sorted order, one per line. The input slice is COPIED before sorting: the callers pass slices they go on to use for t
internal/server/access_epoch.go:119
↓ 2 callersMethodwriteStoreMemberLimitError
writeStoreMemberLimitError is writeStorePlanLimitError for the accept doors: it answers a *store.PlanLimitError with writeMemberLimitError and reports
internal/server/handlers_cloud.go:1778
↓ 2 callersFunctionwriteStoredStateUnreadable
writeStoredStateUnreadable answers the Append* helpers' refusal (BUG-2627 part 3), which since BUG-3056 runs in the store under the write lock rather
internal/server/handlers_items.go:1425
↓ 2 callersFunctionwriteStripeCancelledBusy
writeStripeCancelledBusy answers the busy deletion after Stripe was cancelled: a definitive rollback keeps Retry-After; an unknown COMMIT outcome says
internal/server/handlers_account.go:775
↓ 2 callersFunctionwriteTOMLConfig
(path string, cfg map[string]any)
internal/mcp/install.go:530
↓ 2 callersFunctionwriteUniqueFieldHeld
writeInvalidItemTitle maps the store's typed title refusal to a 400, and reports whether it did — same shape as writeItemRenameCascadeTooLarge above,
internal/server/handlers_items.go:1400
↓ 2 callersFunctionwriteUnparentedParam
(params: URLSearchParams, active: boolean)
web/src/lib/collections/unparentedFilter.ts:166
↓ 2 callersFunctionwriteUpdateConflictEnvelope
writeUpdateConflictEnvelope is the shared writer for the pad-structured-error/v1 update_conflict envelope. Both the item path (writeUpdateConflictErro
internal/server/handlers_items_open_children_guard.go:387
↓ 2 callersFunctionwriteUpdateConflictError
writeUpdateConflictError emits the pad-structured-error/v1 conflict envelope (HTTP 409, code "update_conflict") when an optimistic-concurrency update
internal/server/handlers_items_open_children_guard.go:325
↓ 2 callersFunctionwriteUserId
(next: string)
web/src/test/identityEpochMock.svelte.ts:127
↓ 2 callersFunctionwriteV1Record
writeV1Record writes a registry file exactly as the pre-TASK-2767 code did: keyed on the registrar pid, no session_pid, no agent, a bare socket path.
internal/cli/session_registry_test.go:239
↓ 2 callersFunctionwriteVersionUnreconstructable
writeVersionUnreconstructable refuses a restore or diff of a version whose body the reverse-patch history could not rebuild (BUG-3815). A conflict wit
internal/server/handlers_item_versions.go:607
↓ 2 callersFunctionwriteWellKnownNotFound
writeWellKnownNotFound is the JSON 404 for a /.well-known path this server does not publish (TASK-3321 U0a).
internal/server/handlers_openai_challenge.go:32
↓ 2 callersMethodyjsExactEarlierRowQ
yjsExactEarlierRowQ is the whole-frame lookup behind yjsIdenticalEarlierRowQ.
internal/store/yjs_content_bearing.go:190
↓ 2 callersMethodyjsIdenticalEarlierRowQ
yjsIdenticalEarlierRowQ reports whether the item's op-log already holds a frame byte-identical to data, or to its step2/update subtype twin, below bef
internal/store/yjs_content_bearing.go:177
↓ 2 callersFunctionyjsSyncSubtypeTwin
yjsSyncSubtypeTwin returns data with its sync subtype swapped between SyncStep2 and update, for fact (3)'s envelope equivalence. ok is false for any f
internal/store/yjs_content_bearing.go:150
↓ 2 callersMethodzone
()
web/src/lib/stores/homeOverview.svelte.ts:20
↓ 2 callersMethodzoneLabel
()
cmd/pad/cmd_schedule.go:96
↓ 1 callersMethod#applyOwn
* Place a confirmed own row (queued). Contiguous with the end: resolve. Past it, * with another send in flight: detach, fetching nothing (a page cou
web/src/lib/stores/chatThread.svelte.ts:450
↓ 1 callersMethod#armRetry
()
web/src/lib/stores/chat.svelte.ts:164
↓ 1 callersMethod#fence
()
web/src/lib/components/items/itemCommitmentActions.svelte.ts:57
↓ 1 callersMethod#fill
Page after_seq from the newest up to the row before `upTo` (bounded), publishing each page.
web/src/lib/stores/chatThread.svelte.ts:479
↓ 1 callersMethod#pollPresence
()
web/src/lib/stores/chatInbox.svelte.ts:214
↓ 1 callersMethod#postOnce
(n: number, opKey: string, body: string, replyToSeq: number | undefined, ended: { unanswered: boolean })
web/src/lib/stores/chatThread.svelte.ts:506
↓ 1 callersMethod#refresh
(n: number, current: () => boolean)
web/src/lib/stores/chatThread.svelte.ts:361
↓ 1 callersMethod#succeed
(message: string)
web/src/lib/components/items/itemCommitmentActions.svelte.ts:67
↓ 1 callersMethod#surfaceUnconfirmed
* A send that was in flight when this thread opened has ended with no answer. * open() left its stored attempt out while it ran; show it as unconfir
web/src/lib/stores/chatThread.svelte.ts:282
↓ 1 callersMethod#unchanged
(entry: AgendaEntry, to: string)
web/src/lib/components/items/itemCommitmentActions.svelte.ts:68
↓ 1 callersMethodAcceptInvitation
AcceptInvitation marks an invitation as accepted.
internal/store/workspace_members.go:1508
↓ 1 callersMethodAcceptMyInvitation
AcceptMyInvitation accepts a pending invitation by id and returns the role held and the workspace slug.
internal/cli/client.go:3644
↓ 1 callersMethodAckItemReminder
AckItemReminder acknowledges the item's fired, unacknowledged run-once commitment alarm. Multiple candidates are refused without acknowledging any of
internal/cli/client.go:3605
↓ 1 callersMethodAckReminder
AckReminder acknowledges a fired reminder.
internal/cli/client.go:3598
↓ 1 callersMethodAcknowledgedScheduleItemIDs
AcknowledgedScheduleItemIDs suppresses ordinary next/ready suggestions while preserving independent reminder suggestions and all ordinary item listing
internal/store/schedule_ack.go:158
↓ 1 callersMethodActivateLibraryEntry
ActivateLibraryEntry creates an item from the library entry with this title, server-side (TASK-3462).
internal/cli/client.go:1501
↓ 1 callersMethodAddCommitmentGate
AddCommitmentGate waits for the blocker to succeed.
internal/cli/client_schedule.go:149
↓ 1 callersMethodAgendaGatedItemIDs
AgendaGatedItemIDs identifies the candidates requiring gate evaluation.
internal/store/agenda_work_batch.go:54
↓ 1 callersFunctionAgentDMKey
AgentDMKey is the dm_key of an owner's direct conversation with an agent. TASK-4038: owner user ids are store-generated UUIDs (store.go newID) with no
internal/models/conversation.go:126
↓ 1 callersMethodAllDay
AllDay reports whether the occurrence is a date.
internal/schedule/spec.go:30
↓ 1 callersFunctionAppHookSubscribes
AppHookSubscribes reports whether a stored subscription list names event for collectionID (any collection when collectionID is "").
internal/store/app_delivery.go:56
↓ 1 callersMethodAppend
(t time.Time)
internal/schedule/internal/rrule/rrule.go:905
↓ 1 callersMethodAppendFailed
AppendFailed counts a failed op-log append (TASK-3574).
internal/metrics/collab_observer.go:21
↓ 1 callersMethodAppendFailed
()
internal/collab/observer.go:75
↓ 1 callersMethodAppendSyncFrame
AppendSyncFrame is the relay's append (BUG-3135). It behaves like AppendYjsUpdate except that a frame BYTE-IDENTICAL to an earlier row of the same ite
internal/store/yjs_updates.go:103
↓ 1 callersMethodAppendSyncFrame
AppendSyncFrame mirrors store.AppendSyncFrame's contract (BUG-3135): an exact byte duplicate of an earlier row of the same item is not stored and is a
internal/collab/manager_test.go:106
↓ 1 callersMethodApplyExternalPatch
ApplyExternalPatch routes a content-anchored patch (PLAN-3578 step 2) through a designated applier, which applies it to its live document as a narrowe
internal/collab/applier.go:501
↓ 1 callersMethodApplyExternalPatchOn
ApplyExternalPatchOn re-sends a patch, with the SAME patch id, to exactly the connection that received it before (TASK-3585). No other tab is ever ele
internal/collab/applier.go:360
↓ 1 callersMethodArchivedCollectionClaimsSlug
ArchivedCollectionClaimsSlug reports whether a SOFT-DELETED collection in the workspace holds this exact slug. Exists so slug ALIAS resolution can re
internal/store/collections.go:344
↓ 1 callersMethodAreItemsStarred
AreItemsStarred returns a set of item IDs that are starred by the given user. Pass the item IDs you want to check; the returned map contains only the
internal/store/item_stars.go:57
↓ 1 callersMethodAsContentPendingFlush
AsContentPendingFlush reports whether the server refused the write with content_pending_flush.
internal/cli/client.go:2749
↓ 1 callersMethodAtBlankPatched
AtBlankPatched reports whether the bundle's serializer runs the vendored atBlank patch (see web/src/lib/collab/materializer/atBlank.ts).
internal/materialize/materialize.go:154
↓ 1 callersMethodAttachAttachment
AttachAttachment binds an unattached attachment to an item (TASK-2247). itemRef is sent as typed; the server resolves it like the item routes.
internal/cli/client.go:1514
↓ 1 callersMethodAttachmentAdmissionUsage
AttachmentAdmissionUsage runs an upload's write gate before any byte is read and returns the install's current usage (live original rows), for the cal
internal/store/fenced_attachments.go:95
↓ 1 callersMethodAttachmentRowsExistForHash
AttachmentRowsExistForHash is the single-hash form of AttachmentHashesWithRows — the rowless-blob sweep's delete-time re-check, run under the in-fligh
internal/store/attachments.go:1344
↓ 1 callersFunctionBODY
(w: string)
web/e2e/bug-3583-html-mark-readers.spec.ts:17
↓ 1 callersMethodBoundOAuthSubject
BoundOAuthSubject returns the provider account subject bound to userID for provider, or "" when none is bound (BUG-3671: an account with one bound no
internal/store/oauth_identities.go:179
↓ 1 callersMethodBounded
Bounded reports whether the occurrence set is finite: no rule, or COUNT or UNTIL.
internal/schedule/spec.go:127
↓ 1 callersMethodBuildAgentBootstrap
BuildAgentBootstrap assembles the bootstrap blob from store queries. This is the single canonical code path; the HTTP handler, the MCP resource handle
internal/server/handlers_bootstrap.go:495
↓ 1 callersFunctionBuildWorkspaceContext
BuildWorkspaceContext converts detected project metadata plus the current Pad client configuration into a machine-readable workspace context.
internal/cli/workspace_context_detect.go:15
↓ 1 callersFunctionBuiltinEntries
BuiltinEntries lists every built-in Pad ships, in key order (TASK-3462 U4). An error building the registry yields what was built; the registry's own t
internal/collections/builtin_legacy.go:11
↓ 1 callersMethodBusyWorkers
(userID string, workerIDs []string)
internal/server/session_activity.go:158
↓ 1 callersFunctionC
()
web/e2e/permission-walk-move.spec.ts:75
↓ 1 callersMethodCSRFProtect
CSRFProtect implements the double-submit cookie pattern for CSRF protection. It validates that state-changing requests (POST, PATCH, PUT, DELETE) from
internal/server/middleware_csrf.go:123
↓ 1 callersFunctionCalendarViewConfig
CalendarViewConfig reads date_field and end_field out of a view config. A config that is not a JSON object, or whose two keys are not strings, is refu
internal/models/view_calendar.go:106
↓ 1 callersFunctionCanonical
Canonical returns the events/1 set. The returned slice is freshly built on each call, so a caller cannot mutate the contract out from under everyone e
internal/kernelevents/taxonomy.go:372
↓ 1 callersMethodCatchUp
CatchUp reads what happened in workspaceID in (since, until] that viewerID did not do, limited to scope. Bounds are compared at second precision, the
internal/store/catch_up.go:115
↓ 1 callersFunctionChatGPTCatalogReady
ChatGPTCatalogReady reports whether the ChatGPT catalog may be served (TASK-3321 U2b's prerequisite gate): it validates against the /mcp catalog, and
internal/mcp/chatgpt_project.go:541
↓ 1 callersFunctionChatGPTSurfaceFromContext
ChatGPTSurfaceFromContext reports whether ctx carries the ChatGPT door's marker. Exported so the MCP side can prove the marker reaches its dispatch.
internal/server/context.go:337
↓ 1 callersMethodChatMessages
(number int, since *int64, limit int)
internal/cli/client.go:3707
↓ 1 callersMethodChatUnread
(agent string)
internal/cli/client.go:3692
↓ 1 callersMethodCheckCompanionsResolveQ
CheckCompanionsResolveQ refuses unless every installed companion slug still names a live collection stamped via_app = installID. An owner rename or de
internal/store/app_upgrade.go:365
↓ 1 callersMethodCheckFence
CheckFence opens and commits an empty fenced transaction: whether a request admitted under spec may still write. It writes nothing. U1 has no mutation
internal/appstore/appstore.go:109
↓ 1 callersMethodCheckNamedValue
(nv *driver.NamedValue)
internal/store/nulguard.go:417
↓ 1 callersMethodClaimItem
ClaimItem acquires (or refreshes, for the live holder) the execution lease on an item. holder and ttlSeconds may be zero for the server defaults.
internal/cli/client_lease.go:33
↓ 1 callersMethodClaimWorkspace
ClaimWorkspace redeems a 6-digit claim code against the api/v1/oauth/claim endpoint, granting the calling OAuth connection access to the named workspa
internal/cli/client.go:284
↓ 1 callersMethodCleanExpiredCLIAuthSessions
CleanExpiredCLIAuthSessions removes all expired CLI auth sessions.
internal/store/cli_auth_sessions.go:244
↓ 1 callersMethodCleanExpiredPasswordResets
CleanExpiredPasswordResets removes old reset tokens.
internal/store/password_resets.go:139
↓ 1 callersMethodClearCommitmentForecast
ClearCommitmentForecast removes the estimate and returns the commitment view.
internal/cli/client.go:3814
← previousnext →9,001–9,100 of 28,840, ranked by callers