MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctiondoRefusable
doRefusable sends a request that should be refused. A response that is not a refusal may be a live event stream, which never reaches EOF, so its body
internal/server/bug3835_mcp_keepalive_test.go:111
↓ 2 callersMethoddoUA
(method, path, contentType string, body []byte, ua string)
internal/server/plan_limit_native_shell_test.go:37
↓ 2 callersFunctiondoc
(html: string)
web/src/lib/components/share/shareRender.svelte.test.ts:13
↓ 2 callersFunctiondom
(html: string)
web/src/lib/chat/markdown.svelte.test.ts:14
↓ 2 callersFunctiondone
()
web/src/lib/utils/keyedCoalescer.ts:47
↓ 2 callersFunctiondoneFieldKeyFromSchemaJSON
doneFieldKeyFromSchemaJSON resolves the done-field key from the raw schema + settings JSON strings (as stored on the collections row). Falls back to "
internal/store/status_transitions_backfill.go:94
↓ 2 callersFunctiondownloadAttachmentToPath
downloadAttachmentToPath streams the attachment into a sibling temp file and atomically renames it onto outPath on success. Shared by `attachment down
cmd/pad/cmd_attachment.go:227
↓ 2 callersFunctiondr15CopyOneAttachment
DR-15 pinning tests (PLAN-2392). Three attachment semantics that the copy / move / bundle paths rely on silently; pinned here so a future change that
internal/store/attachments_dr15_test.go:25
↓ 2 callersFunctiondraftTargets
( draftText: Record<string, string>, field: FieldDef | undefined | null, clientDefaults: Record<string, unk
web/src/lib/collections/laneDrafts.ts:219
↓ 2 callersFunctiondraftableLanes
(field: FieldDef | undefined | null)
web/src/lib/collections/laneDrafts.ts:48
↓ 2 callersFunctiondrain
(t *testing.T, ch chan Event, n int)
internal/events/redis_uncovered_test.go:171
↓ 2 callersMethoddrain
drain is drainTimeout with the production default applied, for the same zero-value reason as timeout.
internal/server/session_presence_redis.go:343
↓ 2 callersFunctiondrop
(n: number)
web/src/lib/workspaces/importSummary.test.ts:48
↓ 2 callersMethoddrop
The connection dropped: closed, and the close event fired.
web/src/lib/collab/wsProviderAtRiskOnClose.svelte.test.ts:38
↓ 2 callersMethoddropAllBuffers
dropAllBuffers throws away every replay buffer because this instance can no longer vouch for the sequence they describe — either the ID space itself c
internal/events/redis_bus.go:2517
↓ 2 callersFunctiondropCacheForAuthError
* The reaction to a 401 / 403 from a reconcile: the cached rows are no longer * this caller's to display (TASK-1360). ONE definition, both doors (TAS
web/src/lib/stores/localIndex.svelte.ts:792
↓ 2 callersFunctiondropCoercionOnlyKeys
dropCoercionOnlyKeys removes from patch every key the caller did not set whose patched value is exactly what CoerceFields makes of the stored value, w
internal/server/handlers_items_bulk.go:1427
↓ 2 callersMethoddropCoverageChecked
dropCoverageChecked is dropCoverage with an optional generation guard. A nil gen means the caller is not acting on a frame and no guard applies.
internal/watchevents/redis_bus.go:1821
↓ 2 callersMethoddropCoverageForGen
dropCoverage ends this instance's coverage of the watch stream, because something happened that its replay buffer cannot account for: a pub/sub resubs
internal/watchevents/redis_bus.go:1811
↓ 2 callersMethoddropInvisibleRelationDefaultsQ
( q store.Queryer, r *http.Request, workspaceID string, role string, schema models.CollectionSchema, fie
internal/server/relation_referents.go:413
↓ 2 callersFunctiondropNullFields
dropNullFields removes null values, so a key stored as null and a key not stored at all hash the same: neither door distinguishes them on read.
internal/collections/builtin.go:91
↓ 2 callersFunctiondropPosAtY
(view: EditorView, y: number, dragPos: number)
web/src/lib/components/editor/block-drag-handle.ts:161
↓ 2 callersMethoddropWorkspaceCoverageLocked
dropWorkspaceCoverageLocked is dropWorkspaceCoverage with the lock already held. It returns the reason to report, or "" for nothing to report; the cal
internal/events/redis_bus.go:2352
↓ 2 callersMethoddropped
()
internal/events/observer_test.go:119
↓ 2 callersMethoddue
(now time.Time)
internal/store/schedule_deadline_eval.go:112
↓ 2 callersFunctiondupFixture
BUG-3357: the import remaps every collection and item by its SOURCE id, so two rows sharing an id silently collapse into one mapping and every referen
internal/store/bug3357_import_duplicate_ids_test.go:16
↓ 2 callersFunctionduplicateTraitFixture
TASK-2710. Two collections in one workspace could declare the same kernel trait, and with both live the resolver returned whichever the result order p
internal/store/trait_dedupe_test.go:24
↓ 2 callersFunctiondurableEpochFor
(state: WorkspaceState)
web/src/lib/stores/localIndex.svelte.ts:727
↓ 2 callersFunctiondurationHours
--- cycle-time / WIP helpers (PLAN-1628 / TASK-1631) --- durationHours returns hours between two RFC3339 timestamps (end-start), clamped at 0. ok is f
internal/store/reports.go:940
↓ 2 callersFunctione
(code: string, message: string)
web/src/lib/chat/compose.test.ts:59
↓ 2 callersFunctionearlier
earlier is the earlier of two instants, a zero one counting as absent.
internal/store/schedule_agenda.go:366
↓ 2 callersFunctionebmlLength
ebmlLength returns how many bytes a VINT starting with this byte occupies — one plus the number of leading zero bits — or 0 for the invalid all-zero m
internal/attachments/mime_magic.go:319
↓ 2 callersFunctioneditPlaybookSchema
(t *testing.T, e *appsEnv, edit func(field map[string]any))
internal/server/handlers_apps_provision_test.go:337
↓ 2 callersFunctioneditStateFromView
(view: ItemCommitmentView)
web/src/lib/commitment.ts:130
↓ 2 callersFunctioneditableFlag
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_commitment_editable_test.go:20
↓ 2 callersFunctioneditor
()
web/src/lib/components/editor/uploadMasterFreeze.svelte.test.ts:96
↓ 2 callersFunctioneditsWithLineHints
editsWithLineHints returns a copy of a patch's edits with each object edit's line_hint read through intParam (numericInput's rule) and replaced by its
internal/mcp/dispatch_http_routes.go:946
↓ 2 callersMethodeffectiveMCPHost
effectiveMCPHost is the host requireConfiguredHost checks, and the header it came from: the first X-Forwarded-Host entry when the TCP peer is a truste
internal/server/middleware_mcp_host.go:93
↓ 2 callersMethodeffectivePurgeRetention
effectivePurgeRetention returns the retention window the purge sweeper actually enforces: the SetWorkspacePurgeConfig override when set (PAD_WORKSPACE
internal/server/workspace_purge.go:89
↓ 2 callersFunctioneffectiveWorkspaceUpdatedAt
effectiveWorkspaceUpdatedAt returns the later of the workspace's own updated_at and the most recent item activity inside it. See BUG-1481 for why item
internal/store/workspaces.go:65
↓ 2 callersFunctioneffortAnswer
(probs string, qhash string)
internal/server/needs_scorers_test.go:361
↓ 2 callersFunctioneffortRow
TASK-3959: the effort readers, tested where they live.
internal/decision/effort_read_test.go:13
↓ 2 callersFunctioneligible
(extra = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:1770
↓ 2 callersMethodeligible
(now time.Time, state deadlineJournalState)
internal/store/schedule_deadline_eval.go:328
↓ 2 callersMethodemitAttachmentEventTx
emitAttachmentEventTx writes one attachment-subject event to the outbox on the caller's transaction. Callers own the decision about WHICH attachment
internal/store/event_outbox.go:1156
↓ 2 callersMethodemitItemUpdateEventsAsInstallTx
emitItemUpdateEventsAsInstallTx is emitItemUpdateEventsTx for an installed app's write; see emitItemEventAsInstallTx.
internal/store/event_outbox.go:1689
↓ 2 callersMethodemitItemUpdateEventsTx
emitItemUpdateEventsTx writes the canonical event(s) for one item UPDATE, applying SPEC-3 v1.3's DISJOINT-DELTA RULE. Canonical events PARTITION a mu
internal/store/event_outbox.go:1683
↓ 2 callersMethodemitLocked
()
internal/materialize/supervisor.go:1106
↓ 2 callersMethodemitMCPAuditDenied
emitMCPAuditDenied records an audit row for a request that MCPBearerAuth resolved (so we know the user + token identity) but then rejected — currently
internal/server/middleware_mcp_audit.go:716
↓ 2 callersFunctionempty
(t)
plugin/hooks/register.js:617
↓ 2 callersFunctionempty
()
web/src/lib/components/activity/CatchUpCard.svelte.test.ts:51
↓ 2 callersFunctionencodeFrame
(req WorkerRequest)
internal/materialize/supervisor.go:1028
↓ 2 callersFunctionencodePNG
(t *testing.T, img image.Image)
internal/attachments/processor_test.go:38
↓ 2 callersFunctionencodeSchemaForBody
encodeSchemaForBody converts a `schema` MCP input value into a JSON-encoded CollectionSchema string suitable for the create-collection HTTP body's `sc
internal/mcp/dispatch_http_routes.go:824
↓ 2 callersFunctionendFlow
endFlow answers the resolve with item_still_open until end_schedule is sent.
cmd/pad/schedule_end_test.go:40
↓ 2 callersFunctionendSend
(opKey: string)
web/src/lib/chat/composerRegistry.ts:47
↓ 2 callersMethodendedItem
endedItem gives w an open item whose one-shot the owner ended with consent.
internal/server/schedule_end_guard_test.go:177
↓ 2 callersFunctionendpoint
(fixture: SuiteFixture, slug: string)
web/e2e/soft-line-break.spec.ts:12
↓ 2 callersMethodenforceStorageLimitTx
enforceStorageLimitTx is the authoritative storage check (TASK-3619): it refuses an insert of adding bytes that would take the workspace past its owne
internal/store/attachments.go:1952
↓ 2 callersMethodenforceUserPlanLimit
enforceUserPlanLimit checks a user-scoped plan limit and writes a 403 error if the limit is exceeded. Returns true if the operation is allowed. In non
internal/server/handlers_cloud.go:1636
↓ 2 callersMethodenqueue
enqueue adds itemID unless it is already queued. Never blocks; a full queue drops the item, which the next sweep will offer again.
internal/server/materialize_recovery.go:360
↓ 2 callersMethodenqueueCommentNotificationsTx
enqueueCommentNotificationsTx tells the people a new comment concerns: the item's assignee and creator ("comment"), and the author of the comment it r
internal/store/notifications.go:229
↓ 2 callersMethodenqueueCommitmentNoticeTx
(tx *sql.Tx, workspaceID, itemID, kind, key string)
internal/store/commitment_notices.go:46
↓ 2 callersMethodenqueueMentionNotificationsTx
enqueueMentionNotificationsTx tells the users an EDIT newly mentioned. The actor is the EDITOR, who wrote the mention: an admin adding @bob to Alice's
internal/store/notifications.go:293
↓ 2 callersMethodenqueueNotificationsCountTx
enqueueNotificationsCountTx is enqueueNotificationsTx reporting which facts wrote a row: a fact gated out by the device EXISTS, or already present und
internal/store/notifications.go:70
↓ 2 callersMethodenqueueRefusedPlanTx
(tx *sql.Tx, workspaceID string, p *linkedPlan, access models.CommitmentAccess, attempt RefusedCommitmentMove)
internal/store/commitment_notices.go:222
↓ 2 callersMethodenqueueReminderNotificationTx
enqueueReminderNotificationTx tells the item's assignee, or its creator when nobody holds it, that a reminder fired. A reminder has no owner column. T
internal/store/notifications.go:361
↓ 2 callersMethodenrichActivities
enrichActivities populates ItemTitle, ItemSlug, and CollectionSlug on each activity by looking up the referenced item.
internal/server/handlers_activity.go:170
↓ 2 callersMethodenrichChatMessages
TASK-4039: visibility belongs to this reader and request, never the stored message.
internal/server/handlers_chat_enrich.go:24
↓ 2 callersFunctionensureCollections
()
plugin/hooks/register.js:377
↓ 2 callersMethodensureNULTriggers
ensureNULTriggers re-applies the applied Layer B trigger migrations if any of their triggers are missing. It runs after every migration pass, and exi
internal/store/nulcolumns.go:806
↓ 2 callersMethodensureNULTriggersFor
ensureNULTriggersFor is the restore, over the trigger files a binary KNOWS. Production passes every file this binary ships. The parameter exists so a
internal/store/nulcolumns.go:829
↓ 2 callersFunctionensurePrivateDir
ensurePrivateDir creates dir at 0700, and tightens it to 0700 when it already existed looser: MkdirAll applies the mode only on creation.
internal/cli/chat_seen.go:35
↓ 2 callersMethodenterApplierGate
enterApplierGate is called at the start of each applier election. It blocks while a version restore holds the room and reports whether it had to wait.
internal/collab/restore_coord.go:101
↓ 2 callersFunctionentry
(c: Comment)
web/src/lib/components/timeline/ItemTimeline.lifecycle.svelte.test.ts:139
↓ 2 callersFunctionentry
(extra: Partial<AgendaEntry> = {})
web/src/lib/components/calendar/AgendaDayGroup.svelte.test.ts:8
↓ 2 callersFunctionentry
(extra: Partial<AgendaEntry> = {})
web/src/lib/components/calendar/AgendaRow.svelte.test.ts:9
↓ 2 callersFunctionentry
(ref: string, state: string, extra = {})
web/src/lib/calendar/monthGrid.test.ts:102
↓ 2 callersFunctionentryChips
(entry: AgendaEntry, now = new Date(Date.now()))
web/src/lib/calendar/presentation.ts:219
↓ 2 callersFunctionentryHref
(entry: AgendaEntry)
web/src/lib/calendar/presentation.ts:136
↓ 2 callersFunctionentryIDs
BUG-2788: the repair gives an id to exactly the entries the timeline would otherwise number by position, and leaves everything else untouched.
internal/models/structured_entry_ids_test.go:12
↓ 2 callersFunctionenumerateUnits
(src: AstSource)
web/src/test/identityFenceAst.ts:683
↓ 2 callersFunctionenvInt
(name, fallback, min, max)
web/scripts/ci-audit.mjs:47
↓ 2 callersFunctionephemeralRange
ephemeralRange is the kernel's range for :0 binds: Linux's ip_local_port_range when it can be read, else 32768-60999. That fallback sits below macOS's
internal/buildtools/install_refresh_test.go:153
↓ 2 callersFunctionepoch
* Reactive per-workspace mutation epoch. Bumped on every successful * `rebuild` / `upsert` / `remove`. Consumers should READ this inside * a `$eff
web/src/lib/stores/localSearch.svelte.ts:544
↓ 2 callersFunctionequalStrings
(a, b []string)
internal/store/field_value_dialect_test.go:104
↓ 2 callersFunctionequalStrings
(a, b []string)
internal/server/relation_multi_roundtrip_test.go:247
↓ 2 callersFunctionerrInvalidTarget
errInvalidTarget is RFC 8707 §2's invalid_target, which fosite does not define: the request named no resource (TASK-3363 phase 2). A fresh value per c
internal/server/handlers_oauth.go:711
↓ 2 callersFunctionerrorDetails
(raw map[string]any)
internal/server/handlers_workspace_tabs_test.go:46
↓ 2 callersFunctionerrorEnvelope
(t *testing.T, body []byte)
internal/server/bug3976_settings_not_object_test.go:66
↓ 2 callersFunctionerrorResult
errorResult is an error result carrying plain text. Prefer NewErrorResult (errors.go), which carries a structured envelope, wherever a code applies.
internal/mcp/result.go:29
↓ 2 callersFunctionerrorServer
errorServer returns an httptest.Server that answers every request with the given status + API error envelope ({"error":{"code","message"}}), matching
internal/cli/item_notfound_test.go:18
↓ 2 callersFunctionescape
(s string)
internal/ics/ics.go:122
↓ 2 callersFunctionescapeHtml
* Escape HTML-significant characters so a user-controlled string can be * safely interpolated into attribute values / text nodes.
web/src/lib/utils/markdown.ts:455
↓ 2 callersFunctionescapeModule
escapeModule applies the module proxy's case encoding: an upper-case letter becomes '!' plus its lower case.
cmd/depages/main.go:343
↓ 2 callersFunctionescapeRe
(s: string)
web/e2e/lib/attachment-viewer.ts:193
↓ 2 callersFunctionescapeUnsafe
(s: string)
web/src/lib/workspaces/importSummary.ts:65
↓ 2 callersMethodevaluateAndOpenGatesTx
(tx *sql.Tx, workspaceID, itemID string)
internal/store/commitment_gates.go:603
↓ 2 callersMethodevaluateDeadline
evaluateDeadline reports whether it recorded a new miss, and the lapse to announce when it closed an occurrence. The lapse is returned only after the
internal/store/schedule_deadline_eval.go:422
↓ 2 callersFunctionevent
(package, output="PAD_PG_CONNECTED helper=probe\n", action="output")
scripts/ci-pg-trace_test.py:16
← previousnext →7,101–7,200 of 28,840, ranked by callers