MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodcut
cut severs every connection opened so far, forcing go-redis to redial and re-subscribe.
internal/events/redis_reconnect_test.go:65
↓ 2 callersFunctioncv
(e: Element | null)
web/e2e/lib/boardClickProbe.ts:49
↓ 2 callersFunctiondashboardArrayField
dashboardArrayField pulls a named array out of a decoded dashboard payload, returning a typed []map[string]any so the callers can filter / sort by str
internal/mcp/dispatch_http_project.go:221
↓ 2 callersFunctiondashboardGets
()
web/src/routes/[username]/[workspace]/dashboardLiveOnboarding.svelte.test.ts:95
↓ 2 callersFunctiondashboardGets
()
web/src/routes/[username]/[workspace]/dashboardPollGate.svelte.test.ts:110
↓ 2 callersFunctiondata
()
web/src/lib/components/calendar/CalendarView.svelte.test.ts:10
↓ 2 callersFunctiondatabaseBusyMessage
(serverMessage: unknown, isWrite: boolean)
web/src/lib/api/client.ts:652
↓ 2 callersFunctiondateBucketSubstr
dateBucketSubstr truncates a UTC RFC3339 TEXT timestamp to its day ("hour" → chars 1-13 "YYYY-MM-DDTHH"; otherwise → chars 1-10 "YYYY-MM-DD"). The SUB
internal/store/dialect.go:404
↓ 2 callersFunctiondateButton
(day: string)
web/src/routes/(console)/agenda/agenda.svelte.test.ts:1212
↓ 2 callersFunctiondateString
(date: Date)
web/src/lib/calendar/monthGrid.ts:11
↓ 2 callersFunctiondateTime
(at: string, zone: string, allDay = false)
web/src/lib/calendar/presentation.ts:255
↓ 2 callersFunctiondayLabel
(iso: string, now: Date = new Date())
web/src/lib/chat/grouping.ts:34
↓ 2 callersFunctiondayNumber
(day: string)
web/src/lib/calendar/presentation.ts:361
↓ 2 callersFunctiondbReleaseCloudCmd
dbReleaseCloudCmd is the deliberate way to take a Pad Cloud database to a self-hosted instance (TASK-3551). A cloud boot marks its database cloud-owne
cmd/pad/cmd_db_release_cloud.go:49
↓ 2 callersFunctiondeadPID
deadPID returns the pid of a process that has already exited and been reaped. The number can in principle be reused before the caller looks, which wou
internal/cli/pid_file_test.go:287
↓ 2 callersFunctiondeadlineInstant
The instant a deadline passes. A date-only deadline holds through its whole local day.
web/src/lib/calendar/presentation.ts:394
↓ 2 callersMethoddeadlinePage
(now time.Time, cursor *deadlineCandidate)
internal/store/schedule_deadline_eval.go:159
↓ 2 callersFunctiondeadlineTone
(deadline: string, zone: string, now = new Date(Date.now()))
web/src/lib/calendar/presentation.ts:398
↓ 2 callersFunctiondeadlocksSettled
deadlocksSettled returns how many deadlocks were recorded since `before`, having given Postgres's statistics flush time to catch up. It returns the m
internal/store/items_cross_workspace_copy_pg_test.go:318
↓ 2 callersMethoddebounceRowUnchanged
debounceRowUnchanged reports whether the row still carries the exact metadata the caller read, and is the only thing that can tell the merge UPDATE's
internal/store/activities.go:465
↓ 2 callersFunctiondecideFirstRequest
( width: number | null | undefined, height: number | null | undefined, platform: Platform )
web/src/lib/attachments/viewerLoading.ts:112
↓ 2 callersFunctiondecideTarget
decideTarget posts a consent decision carrying one target parameter (key is "resource" or "audience") and returns the redirect's query.
internal/server/task3363_resource_missing_test.go:204
↓ 2 callersFunctiondecimalIntString
decimalIntString admits a string only when it is a plain decimal integer, ^-?(0|[1-9][0-9]*)$: an optional '-', then "0" or digits with no leading zer
internal/mcp/dispatch_http_routes.go:1941
↓ 2 callersFunctiondecisionFileConfig
decisionFileConfig is the config-file source of the decision provider's settings, handed to the server at boot (SetDecisionBase).
cmd/pad/server_info.go:138
↓ 2 callersFunctiondecisionNotBefore
decisionNotBefore is the not_before a job gets, from the row of latestDecisionEvaluationSQL: that evaluation plus window, or "" (NULL, claimable now)
internal/store/decisions.go:108
↓ 2 callersFunctiondecisionSQLState
decisionSQLState returns the five-character SQLSTATE of a Postgres error, or "" for anything else (SQLite has none) or a code of an unexpected shape.
internal/store/decisions.go:592
↓ 2 callersMethoddecisionSetResolver
()
internal/store/decisions.go:56
↓ 2 callersFunctiondecisionWindowFor
decisionWindowFor is debounce(set), or zero when no debounce is installed.
internal/store/decisions.go:89
↓ 2 callersMethoddecisionsNow
decisionsNow is Decisions plus, per row, the fingerprint of its question as registered now ("" when there is none), for the surfacing test.
internal/decision/runner.go:860
↓ 2 callersFunctiondeclName
declName names a top-level declaration: "Func", "Recv.Method", or "var"/ "const"/"type" for a GenDecl (a reader inside a package-level initializer is
internal/server/body_reader_census_test.go:181
↓ 2 callersFunctiondeclarations
(src: AstSource)
web/src/test/identityFenceAst.ts:1557
↓ 2 callersFunctiondeclaringConvention
(t *testing.T, s *Store, workspaceID string)
internal/store/trait_dedupe_test.go:89
↓ 2 callersMethoddeclineInvitation
declineInvitation is what declining means behind both doors: the pending invitation is deleted and a member_invite_declined audit event records it. A
internal/server/handlers_members.go:555
↓ 2 callersFunctiondecodeArtifactBytes
decodeArtifactBytes is parseArtifactRequest's steps (2) to (5) over bytes already read and size-capped: the import door and the app installer's staged
internal/server/artifact_import.go:115
↓ 2 callersFunctiondecodeBoardText
(res *CallToolResult, decode func([]byte) error)
internal/mcp/dispatch_http_board.go:204
↓ 2 callersFunctiondecodeBusy
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/task4278_error_mapping_test.go:146
↓ 2 callersFunctiondecodeErrEnvelope
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/bug3069_workspace_not_found_test.go:28
↓ 2 callersFunctiondecodeErrorBody
BUG-2951: the prefix-grammar refusal reached the caller as "An internal error occurred" — a 500 with no text — because the collection doors mapped onl
internal/server/handlers_collections_refusal_status_test.go:23
↓ 2 callersFunctiondecodeInto
decodeInto unmarshals a recorder body, failing with the body on error so a decode failure names what came back rather than only that it did not parse.
internal/server/relation_titles_copy_test.go:113
↓ 2 callersFunctiondecodePayload
decodePayload parses the "<epoch>|<id>|<json>" wire form publishScript emits. Splitting into exactly three parts on the FIRST two separators is what
internal/watchevents/redis_bus.go:1454
↓ 2 callersFunctiondecodeToolSurface
(t *testing.T)
internal/mcp/tool_surface_test.go:28
↓ 2 callersFunctiondecodeUIDismissals
decodeUIDismissals reads the stored set. Keys no longer in the allow-list (a suggestion that was retired) are dropped, so they never reach a client.
internal/store/ui_dismissals.go:21
↓ 2 callersFunctiondecodeWorkspace
(t *testing.T, body []byte)
internal/server/handlers_import_partial_marker_test.go:35
↓ 2 callersFunctiondefaultExportPath
defaultExportPath is the file `pad item export` writes when no -o is given: the server-suggested name, else "<ref>.pad.md". BUG-3185: when that name'
cmd/pad/cmd_item.go:3132
↓ 2 callersFunctiondefaultIfEmpty
(v, fallback string)
cmd/pad/cmd_bootstrap.go:334
↓ 2 callersFunctiondefaultLeaseHolder
defaultLeaseHolder is the holder a claim or release names when the caller passes none, and the identity `pad project next` / `ready` compare leases ag
internal/server/handlers_item_lease.go:189
↓ 2 callersFunctiondefaultLeaseWorker
defaultLeaseWorker is the worker id a claim, release or queue read uses when the request body names none (TASK-3613): the X-Pad-Worker header, which t
internal/server/handlers_item_lease.go:215
↓ 2 callersFunctiondefaultScheduleZone
defaultScheduleZone is the creator's zone for a schedule that names neither a zone nor floating. It returns the zone name and the note that explains a
internal/server/handlers_schedules.go:216
↓ 2 callersFunctiondeferListIndex
A `/items-index` the test answers by hand, so the ordering is the test's.
web/src/lib/stores/localIndexReconcileOneReadPerAsk.svelte.test.ts:33
↓ 2 callersFunctiondeferred
()
web/src/lib/stores/localIndexMovedOutFloor.svelte.test.ts:76
↓ 2 callersFunctiondeferredRemapFailure
The deferred retry runs after a keep-path error (here: an oversized blob). Its remap failure rides next to that primary error; the answer is the non-r
internal/server/task4278_remap_failures_test.go:111
↓ 2 callersFunctiondeferringCallee
(src: AstSource, call: Node)
web/src/test/identityFenceAst.ts:671
↓ 2 callersMethoddefinition
* A function defined inside the unit. A helper that is only ever CALLED is * checked at each call site instead (`inline`); anything else — a helper
web/src/test/identityFenceAst.ts:1075
↓ 2 callersFunctiondelegatedFixtureOn
delegatedFixtureOn builds the fixture on Pad Cloud, or on a self-host with apps enabled and MCP left off (cloud=false).
internal/server/task3399_delegated_flow_test.go:33
↓ 2 callersMethoddeleteAppWebhookTx
(tx *sql.Tx, installID string)
internal/store/app_webhooks.go:126
↓ 2 callersFunctiondeleteAsync
(s *Store, userID string)
internal/store/bug3099_delete_account_lock_test.go:27
↓ 2 callersFunctiondeleteButtons
()
web/src/lib/components/items/attachmentDeleteIdentityFence.svelte.test.ts:114
↓ 2 callersFunctiondeleteButtons
()
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:998
↓ 2 callersFunctiondeleteCmd
--- delete ---
cmd/pad/cmd_item.go:1833
↓ 2 callersMethoddeleteSchedule
---- the item-keyed gate: deleting a blocker's commitment, and timing edits ----
internal/store/commitment_gates_pg_test.go:157
↓ 2 callersMethoddeleteScheduleCheckedTx
(tx *sql.Tx, cur *models.ItemSchedule)
internal/store/schedules.go:1207
↓ 2 callersFunctiondelimitDeclaration
* Delimit a FUNCTION DECLARATION's body. * * Not `delimit` above, and the difference is not cosmetic: a signature can * contain braces of its own,
web/src/test/identityFenceSource.ts:308
↓ 2 callersFunctiondeliver
(msg: Relay)
web/src/lib/services/accessStream.svelte.ts:119
↓ 2 callersMethoddeliver
deliver sends a webhook, retrying transient failures up to maxDeliveryAttempts with linear backoff, records the final outcome once via the store, and
internal/webhooks/dispatcher.go:551
↓ 2 callersMethoddeliverCounted
deliverCounted is deliver, also reporting how many requests it made.
internal/webhooks/dispatcher.go:572
↓ 2 callersFunctiondeliverRefusal
(userId: string, n: number, body: string, outcome: LateOutcome, replySeq: number | null)
web/src/lib/chat/composerRegistry.ts:37
↓ 2 callersMethoddelivers
TASK-4041: chat is global; do not resolve an empty workspace on either path.
internal/server/handlers_watch_events.go:895
↓ 2 callersMethoddemoteGuardedTx
demoteGuardedTx sets userID's role to member on tx, refusing with ErrLastAdmin when that would leave no active human admin.
internal/store/users.go:1348
↓ 2 callersMethoddenied
()
internal/server/handlers_watch_events.go:892
↓ 2 callersFunctionderiveClaimCodeForBucket
deriveClaimCodeForBucket is the inner derive — split out so VerifyClaimCode can derive both the current and previous bucket without re-computing the b
internal/server/claim_codes.go:86
↓ 2 callersFunctiondescribeRule
(rrule *string)
cmd/pad/cmd_schedule.go:84
↓ 2 callersMethoddestinationContent
destinationContent reads the copied item's stored body.
internal/server/handlers_items_copy_attachment_authz_test.go:177
↓ 2 callersMethoddestroyReplacedSessions
destroyReplacedSessions deletes the session rows named by the session cookies this request presented, which the sign-in that just minted a new row is
internal/server/handlers_auth.go:478
↓ 2 callersFunctiondetectFieldConflicts
detectFieldConflicts builds the canonical map and refuses on it. It is the ONLY place a conflict is decided; the emission code below runs knowing the
internal/mcp/catalog_item_fields.go:208
↓ 2 callersFunctiondetectPlatform
()
web/src/lib/utils/platform.ts:15
↓ 2 callersFunctiondeviceIDs
(ds []PushDevice)
internal/store/task3939_push_dispatch_test.go:77
↓ 2 callersMethoddial
dial screens the address actually dialed. The request's origin rides in the context, because the transport sees only host:port.
internal/appfetch/appfetch.go:145
↓ 2 callersFunctiondialAndClose
(t *testing.T, baseURL, itemID string)
internal/server/materialize_recovery_test.go:178
↓ 2 callersFunctiondialFakeTab
(t *testing.T, baseURL, itemID, body string)
internal/server/task3585_patch_key_test.go:96
↓ 2 callersFunctiondialWithServerName
(t *testing.T, trust *tls.Config, addr, serverName string)
internal/redisdial/redisdial_test.go:164
↓ 2 callersMethoddied
died classifies a child that is gone (or going) and returns the job's error.
internal/materialize/supervisor.go:910
↓ 2 callersFunctiondigest
(over: Record<string, unknown> = {})
web/src/lib/components/activity/CatchUpCard.svelte.test.ts:54
↓ 2 callersFunctiondirectionFileFields
(t *testing.T, path string)
internal/cli/chat_direction_generation_test.go:10
↓ 2 callersMethoddisableGuardedTx
disableGuardedTx is DisableUserAndRevokeAccess's transaction body: the active-admin guard, before any row lock (BUG-3811), then the disable. The guard
internal/store/users.go:1217
↓ 2 callersMethoddisableUserAndRevokeAccessTx
disableUserAndRevokeAccessTx is DisableUserAndRevokeAccess on the caller's transaction: the app uninstall disables the install's bot inside UninstallA
internal/store/users.go:1241
↓ 2 callersFunctiondisconnect
()
web/src/lib/services/sse.svelte.ts:821
↓ 2 callersMethoddispatch
(t *testing.T, cmd []string, input map[string]any)
internal/mcp/dispatch_http_stored_state_test.go:86
↓ 2 callersMethoddispatchChat
(verb string)
internal/mcp/dispatch_http_chat.go:122
↓ 2 callersMethoddispatchExpectingError
(t *testing.T, cmd []string, input map[string]any)
internal/mcp/dispatch_http_clear_parent_test.go:116
↓ 2 callersFunctiondispatchItemEvent
(data: ItemEvent)
web/src/lib/services/sse.svelte.ts:271
↓ 2 callersMethoddispatchResult
PLAN-3555 phase 1 at the MCP doors: the unguarded-write warning reaches the agent, replace reaches the server and is refused where it contradicts itse
internal/mcp/plan3555_replace_test.go:19
↓ 2 callersFunctiondispatcherFlagExists
(cmd *cobra.Command, name string)
cmd/pad/agent_dispatcher_commands_test.go:310
↓ 2 callersFunctiondispatcherSplit
dispatcherSplit tokenizes one command line POSIX-ish: whitespace separates, single/double quotes group, backslash escapes outside single quotes. It is
cmd/pad/agent_dispatcher_commands_test.go:273
↓ 2 callersFunctiondisplayFilenameIsolated
(filename: string | null | undefined)
web/src/lib/attachments/display.ts:58
↓ 2 callersFunctiondispose
()
web/src/lib/utils/throttledRefresh.ts:68
↓ 2 callersFunctiondivmod
divmod in Python
internal/schedule/internal/rrule/util.go:56
↓ 2 callersFunctiondm
(name, caller, key string, refuse bool)
internal/agentchatcases/cases.go:27
↓ 2 callersFunctiondm
(request: APIRequestContext, f: Fixture, tag: string)
web/e2e/chat-url-writes.spec.ts:23
↓ 2 callersFunctiondoGetWithCookieUA
doGetWithCookieUA issues a GET with the session cookie, a fixed client IP matching the session binding, and a caller-chosen User-Agent. GET needs no C
internal/server/middleware_session_ua_test.go:35
↓ 2 callersFunctiondoIncrementalOrFull
(absenceMs: number)
web/src/lib/services/sync.svelte.ts:252
← previousnext →7,001–7,100 of 28,840, ranked by callers