MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 2 callersFunctionevent
(type: 'created' | 'completed', ref: string, title: string, day = '2026-11-05')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:1469
↓ 2 callersFunctionevent
(over: Record<string, unknown> = {})
web/src/lib/components/admin/adminUserActivityAgentName.svelte.test.ts:24
↓ 2 callersFunctioneventTypes
(evs []events.Event)
internal/server/handlers_items_copy_test.go:689
↓ 2 callersMethodeventsSinceLocked
eventsSinceLocked is EventsSince without the observer report — the shared core, so the two callers cannot drift in what "cannot vouch" means. It take
internal/events/bus.go:1019
↓ 2 callersMethodevictLocked
evictLocked shrinks a full map to its low-water mark (7/8 of the cap), so the sweep runs once per cap/8 new keys rather than on every one. Caller hold
internal/server/middleware_ratelimit.go:198
↓ 2 callersFunctionexactElapsedStart
exactElapsedStart is the start of an HOURLY or MINUTELY completion grid. The engine reads a Start as Resolve(loc, wall), the EARLIER half of a repeate
internal/store/schedule_resolve.go:1068
↓ 2 callersMethodexceededCap
exceededCap reports whether the response body overran the byte limit.
internal/mcp/resources_http.go:432
↓ 2 callersMethodexchange
exchange writes one frame and returns the next response. On the timer it kills the child for timerReason; on ctx, for "canceled". Every failure that e
internal/materialize/supervisor.go:855
↓ 2 callersFunctionexecMulti
execMulti executes multiple SQL statements by iteratively using database/sql's Exec which processes one statement at a time, then advancing past it us
internal/store/store.go:1034
↓ 2 callersFunctionexecRaw
(db *sql.DB, q string, args ...any)
internal/store/nultriggers_test.go:406
↓ 2 callersMethodexhaust
exhaust makes the rule end before copyNow while the schedule still looks live.
internal/store/schedule_copy_test.go:519
↓ 2 callersFunctionexhaustedWindowCursor
exhaustedWindowCursor returns the position the next timeline page must start strictly before, when the merged page fit inside `limit` but at least one
internal/server/handlers_timeline.go:754
↓ 2 callersFunctionexitedPID
exitedPID starts and reaps a trivial process, returning its now-dead pid.
cmd/pad/cmd_session_registry_test.go:133
↓ 2 callersMethodexits
()
internal/events/observer_test.go:125
↓ 2 callersFunctionexpandRow
expandRow runs a row through the real package. A bounded row is read with one Between over 40 years; an unbounded row takes len(want) NextAfter steps.
internal/schedule/conformance_test.go:130
↓ 2 callersFunctionexpectNoIsolates
(str: string | null | undefined)
web/src/lib/attachments/bidiIsolation.testutil.ts:38
↓ 2 callersFunctionexpectNoMessage
expectNoMessage checks that no NON-cursor frame arrives within d. Cursor TextMessage frames (TASK-1319) are drained without failing the assertion — th
internal/collab/manager_test.go:541
↓ 2 callersMethodexpectOf
(t *testing.T, what, itemID string, acc models.CommitmentAccess, state, outcome string)
internal/store/commitment_gates_noschedule_test.go:24
↓ 2 callersFunctionexpectOnScreen
(p: { x: number; y: number }, vp: { width: number; height: number }, what: string)
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:63
↓ 2 callersFunctionexpectOnScreen
Both ends of the gesture must be on screen, or "did not move" proves nothing.
web/e2e/bug-3158-landscape-touch-drag.spec.ts:70
↓ 2 callersFunctionexpectReachable
* The point must land ON `target`, not merely inside the viewport: a card under * the sidebar is within the viewport's bounds and still unreachable.
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:74
↓ 2 callersFunctionexpireCutoff
expireCutoff is the creation time before which a row is past pushExpireAfter. It is truncated to the second because the store compares RFC3339 seconds
internal/server/push_dispatch.go:391
↓ 2 callersFunctionexpireInvitation
(t *testing.T, srv *Server, id string)
internal/server/my_invitations_test.go:72
↓ 2 callersFunctionexplainPlan
(t *testing.T, s *Store, query string, args ...any)
internal/store/bug3668_credential_lookup_index_test.go:58
↓ 2 callersFunctionexplicitTimezoneWrites
()
web/src/lib/timezone.ts:26
↓ 2 callersFunctionexportHasItem
(exp *models.WorkspaceExport, id string)
internal/store/export_snapshot_test.go:173
↓ 2 callersMethodexportScheduleLinksQ
Carrying time links in the workspace bundle (TASK-4353, version 3). Export, import and `pad db migrate-to-pg` (which rides them) now keep the links be
internal/store/schedule_link_carry.go:24
↓ 2 callersFunctionexportSummarySource
exportSummarySource builds a source workspace holding a known population, including rows the export deliberately leaves out (a deleted item, a deleted
internal/server/handlers_import_bundle_summary_test.go:37
↓ 2 callersFunctionextractAllowedWorkspacesFromSessionExtra
extractAllowedWorkspacesFromSessionExtra parses session_data JSON and returns the extracted shape. Defensive: malformed JSON, non-object .extra, non-s
internal/store/oauth_connections_backfill.go:395
↓ 2 callersFunctionextractItemStatus
(fieldsJSON string)
cmd/pad/reconcile.go:362
↓ 2 callersFunctionextractPragmas
extractPragmas scans the migration text line-by-line and lifts any top-level `PRAGMA ...;` statement out of the body. It returns the lifted pragma sta
internal/store/store.go:1092
↓ 2 callersFunctionextractUpstreamErrorEnvelope
(body string)
internal/mcp/errors.go:1408
↓ 2 callersFunctionextractUpstreamMessage
extractUpstreamMessage pulls a human-readable message out of an upstream error body. Three return shapes: - Pad's structured envelope ({error:{messag
internal/mcp/errors.go:1375
↓ 2 callersFunctionf
(v: number)
web/e2e/task-2262-focus-and-contrast.spec.ts:44
↓ 2 callersMethodfacts
facts turns the collected recipients into one fact each for comment c.
internal/store/notifications.go:259
↓ 2 callersFunctionfailClosedUnjudged
failClosedUnjudged collapses a `wrong_collection` issue that reached a server pass WITHOUT the resolver having judged it against the requester (Visibi
internal/server/relation_referents.go:265
↓ 2 callersFunctionfailLoad
()
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:162
↓ 2 callersFunctionfailOld
()
web/src/lib/components/timeline/timelineRefreshDeletion.svelte.test.ts:627
↓ 2 callersFunctionfailOneAttentionJob
failOneAttentionJob owes, claims and fails one attention job with this message, and returns the job's stored state (BUG-4018).
internal/store/decisions_test.go:435
↓ 2 callersMethodfailPending
The send failed: keep the bubble, marked for a retry with the same op_key.
web/src/lib/chat/model.ts:79
↓ 2 callersFunctionfakeRemapClock
fakeRemapClock advances by step on EVERY reading, so a chunk's boundary depends on how many times the code looked at the clock, not on the box.
internal/store/attachments_remap_chunk_test.go:71
↓ 2 callersFunctionfakeSources
fakeSources serves one publish time per dependency from fake endpoints.
cmd/depages/main_test.go:115
↓ 2 callersFunctionfamilyEventsCollection
(sortOrder int)
internal/collections/templates_family.go:89
↓ 2 callersFunctionfamilyField
(t *testing.T, c DefaultCollection, key string)
internal/collections/templates_family_test.go:10
↓ 2 callersFunctionfamilyNotesCollection
(sortOrder int)
internal/collections/templates_family.go:170
↓ 2 callersFunctionfamilyTodoCollection
(sortOrder int)
internal/collections/templates_family.go:134
↓ 2 callersMethodfanOut
(gen, epoch int64, event Event)
internal/events/redis_bus.go:2774
↓ 2 callersFunctionfenceSeedsBefore
fenceSeedsBefore marks a prune-and-replace content write as a seed boundary (BUG-3746). The write prunes the op-log and replaces items.content, so a t
internal/server/handlers_items_content_route.go:388
↓ 2 callersFunctionfencedCodeRanges
fencedCodeRanges returns half-open `[start, end)` byte ranges that cover every fenced (triple-backtick) code block in `content`, including the opening
internal/links/extract.go:165
↓ 2 callersMethodfetchDashboardJSON
fetchDashboardJSON hits the workspace dashboard endpoint and decodes the response into a generic map[string]any so the dispatcher preserves every fiel
internal/mcp/dispatch_http_project.go:187
↓ 2 callersMethodfetchItemList
fetchItemList reproduces `pad item list --all --format json`: the CLI projects the raw []models.Item into the token-light ItemSummary shape, so we do
internal/mcp/resources_http.go:165
↓ 2 callersMethodfetchTutorialBytes
(ctx context.Context, url string, limit int64)
internal/server/tutorials.go:101
↓ 2 callersFunctionfieldLabel
(collection: Collection, key?: string)
web/src/lib/calendar/monthGrid.ts:74
↓ 2 callersFunctionfieldMatches
(raw: unknown, wanted: unknown, declaredType?: string)
web/src/lib/fields/fieldShape.ts:95
↓ 2 callersFunctionfieldWriteTarget
(itemId: string, fieldKey: string)
web/src/lib/items/fieldWriteOrder.ts:184
↓ 2 callersFunctionfieldsOf
(f)
plugin/hooks/register.js:69
↓ 2 callersFunctionfieldsPatchFromMerge
fieldsPatchFromMerge returns the field-level patch that turns `stored` into `merged`: every key whose value differs (added or changed), plus an explic
internal/server/handlers_items_bulk.go:1469
↓ 2 callersFunctionfieldsRaceServer
BUG-3049 — CLI doors that write item fields must name only the keys they own. Each of these commands did a GET, edited the decoded blob, and PATCHed
cmd/pad/bug3049_cli_field_patch_test.go:27
↓ 2 callersFunctionfill
(text)
plugin/hooks/register.js:624
↓ 2 callersMethodfillAgendaItemFacts
fillAgendaItemFacts sets the item ref, title and collection of each schedule. A non-empty doneSQL (the terminal expression, with its args) also sets e
internal/store/schedule_agenda.go:204
↓ 2 callersFunctionfillSubscriber
TASK-1273: a subscriber whose buffer is full when an op it needs arrives is signalled once and receives nothing after the gap, so no later op's cursor
internal/collab/task1273_overflow_test.go:16
↓ 2 callersMethodfillTimeSet
(set *[]time.Time, freq Frequency, hour, minute, second int)
internal/schedule/internal/rrule/rrule.go:537
↓ 2 callersFunctionfilterAudience
(entries: AgendaEntry[], view: AudienceView)
web/src/lib/calendar/audience.ts:25
↓ 2 callersFunctionfindBucket
(buckets []ReportBucket, label string)
internal/store/reports_test.go:12
↓ 2 callersFunctionfindCatalogTool
findCatalogTool returns the ToolDef with the given name, or a failed test.
internal/mcp/catalog_project_test.go:6
↓ 2 callersFunctionfindField
(fields: FieldDef[], key: string)
web/src/lib/components/share/shareView.ts:280
↓ 2 callersFunctionfindGaugeValue
findGaugeValue is a small lookup helper for the OAuth active-tokens test. Returns -1 when the metric isn't present so callers can spot "missing" disti
internal/metrics/metrics_test.go:337
↓ 2 callersFunctionfindImportedPackage
(pkg *packages.Package, path string)
internal/server/body_reader_census_test.go:157
↓ 2 callersFunctionfindProp
(name: string)
web/src/routes/[username]/[workspace]/[collection]/restoreReasonToast.svelte.test.ts:153
↓ 2 callersFunctionfindProp
(name: string)
web/src/routes/[username]/[workspace]/[collection]/collectionChatUrlWrites.svelte.test.ts:349
↓ 2 callersFunctionfindRow
(scroller: HTMLElement, keyOrSlug: string)
web/src/lib/collections/listScrollHandoff.ts:36
↓ 2 callersFunctionfindSub
TASK-4356: `pad remind` is the top-level name for `pad item remind`.
cmd/pad/task4356_remind_test.go:16
↓ 2 callersFunctionfindToolLine
findToolLine returns the first line of doc whose trimmed form starts with prefix (the tool's documentation-line marker), or "" if none matches. Scopin
internal/mcp/tool_surface_drift_test.go:111
↓ 2 callersFunctionfindUnsatisfiedProjects
( requirements: readonly ProjectRequirement[], canResolve: (id: string) => boolean, )
web/src/test/vitestProjects.ts:80
↓ 2 callersMethodfinish
finish records the 5 March occurrence as done and the 6 March one as skipped, then moves the item to done when terminal is set.
internal/server/handlers_calendar_test.go:604
↓ 2 callersMethodfinishAdmission
finishAdmission ends the admission span opened by a !waited enterApplierGate — call it exactly once after registerPendingAck returns (success or error
internal/collab/restore_coord.go:123
↓ 2 callersFunctionfinishField
()
web/src/lib/attachments/csv.ts:44
↓ 2 callersFunctionfire
()
web/src/lib/items/crashDraft.svelte.test.ts:188
↓ 2 callersMethodfireAndDone
()
internal/store/schedule_carry_matrix_test.go:79
↓ 2 callersFunctionfireLoad
Simulate the <img> decoding at `naturalWidth x naturalHeight`, then flush.
web/src/lib/components/common/Lightbox.svelte.test.ts:3483
↓ 2 callersMethodfireOpen
()
web/src/lib/services/sseLiveness.svelte.test.ts:41
↓ 2 callersMethodfireOpen
()
web/src/lib/services/sseReconnect.svelte.test.ts:43
↓ 2 callersMethodfireOurs
(at time.Time)
internal/store/schedule_carry_matrix_test.go:56
↓ 2 callersFunctionfirePathPGStore
Postgres-only pins for the fire path's row pin (IDEA-2641). reminderFireable READS liveness; the pin HOLDS it. TestFirePathInvariant covers the inter
internal/store/reminders_pg_test.go:36
↓ 2 callersFunctionfiredFloating
firedFloating makes a fired floating schedule for a recipient in zone, whose outstanding occurrence is the wall 2026-11-02T09:00.
internal/store/schedule_outstanding_test.go:235
↓ 2 callersMethodfirstActiveBlockers
firstActiveBlockers resolves, for every blocked target in the workspace, the FIRST blocker (newest link first) that the caller can see AND that is sti
internal/server/handlers_dashboard.go:271
↓ 2 callersFunctionfirstBlockDom
The paragraph `startDrag` dims to 0.2 and every teardown path restores.
web/src/lib/components/editor/blockDragHandleModalArbitration.svelte.test.ts:132
↓ 2 callersFunctionfirstHandlerMentioned
(reason string)
internal/mcp/dispatch_http_allowlist_guard_test.go:998
↓ 2 callersFunctionfixedTextRepairTally
fixedTextRepairTally returns a copy of t whose Declined reason is a fixed sentence. repairBodyNULEscapes builds its reason from the document (it can n
internal/server/handlers_import_bundle.go:1616
↓ 2 callersFunctionflatJSONBody
flatJSONBody serializes selected input keys into a JSON object. Empty-string values are skipped; nil values are skipped. For more complex shapes (nes
internal/mcp/dispatch_http_routes.go:227
↓ 2 callersFunctionflipIdentity
()
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:204
↓ 2 callersFunctionflipIdentity
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:409
↓ 2 callersFunctionflush
()
web/src/routes/(console)/settings/account/task4129SettleFences.svelte.test.ts:56
↓ 2 callersFunctionflush
()
web/src/routes/[username]/[workspace]/dashboardLiveOnboarding.svelte.test.ts:97
↓ 2 callersFunctionflush
()
web/src/lib/components/activity/CatchUpCard.svelte.test.ts:79
↓ 2 callersFunctionflush
()
web/src/lib/stores/chatThread.lateRefusal.svelte.test.ts:73
↓ 2 callersFunctionflush
()
web/src/lib/stores/chatInbox.svelte.test.ts:59
↓ 2 callersFunctionflush
()
web/src/lib/services/sseLiveness.svelte.test.ts:98
↓ 2 callersFunctionflush
()
web/src/lib/services/sseReconnect.svelte.test.ts:88
↓ 2 callersFunctionflushDeferred
* Run the deferred writes ONE AFTER ANOTHER (insertion order, each isolated), * clearing the Map BEFORE running so nothing can run twice. A write tha
web/src/lib/stores/chatSurface.svelte.ts:177
← previousnext →7,201–7,300 of 28,840, ranked by callers