MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 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 callersMethoderaseUserTx
eraseUserTx is eraseUserTxCtx without a deadline.
internal/store/users.go:1987
↓ 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:696
↓ 2 callersFunctionerrMsg
(e: unknown, fallback = 'That did not go through')
web/src/lib/components/needs/notMineActions.ts:11
↓ 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 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 callersFunctionescapeLikePattern
(s string)
internal/store/documents.go:632
↓ 2 callersFunctionescapeModule
escapeModule applies the module proxy's case encoding: an upper-case letter becomes '!' plus its lower case.
cmd/depages/main.go:345
↓ 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:805
↓ 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
↓ 2 callersFunctionevent
(type: 'created' | 'completed', ref: string, title: string, day = '2026-11-05')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:1487
↓ 2 callersFunctionevent
(over: Record<string, unknown> = {})
web/src/lib/components/admin/adminUserActivityAgentName.svelte.test.ts:24
↓ 2 callersFunctioneventIDSpacePhase
eventIDSpacePhase is what the Redis startup log reports about the event ID-space migration (BUG-2736): the phase this instance publishes, where the se
cmd/pad/cmd_server.go:1460
↓ 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:1053
↓ 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:1095
↓ 2 callersMethodexceededCap
exceededCap reports whether the response body overran the byte limit.
internal/mcp/response_cap.go:219
↓ 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 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 callersFunctionexplicitTimezoneWrites
()
web/src/lib/timezone.ts:26
↓ 2 callersFunctionexportCmd
--- completion ---
cmd/pad/cmd_workspace.go:1189
↓ 2 callersFunctionexportHasItem
(exp *models.WorkspaceExport, id string)
internal/store/export_snapshot_test.go:173
↓ 2 callersMethodexportItemVersionsCtxQ
(ctx context.Context, q Queryer, wsID string, yield func(*models.ItemVersionExport) error)
internal/store/export.go:614
↓ 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 callersMethodexportWorkspaceBaseQ
(q Queryer, slug string)
internal/store/export.go:340
↓ 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 callersFunctionextractEnumStrings
extractEnumStrings normalizes the schema's enum representation to a string set, accepting either []string or []any (mcp-go's exact shape has flipped h
internal/mcp/catalog_workspace_lifecycle_test.go:61
↓ 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:1122
↓ 2 callersFunctionextractUpstreamErrorEnvelope
(body string)
internal/mcp/errors.go:1456
↓ 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:1423
↓ 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:173
↓ 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:455
↓ 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:117
↓ 2 callersFunctionfamilyField
(t *testing.T, c DefaultCollection, key string)
internal/collections/templates_family_test.go:10
↓ 2 callersMethodfanOut
(gen, epoch int64, event Event)
internal/events/redis_bus.go:2776
↓ 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:285
↓ 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:170
↓ 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:84
↓ 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:1549
↓ 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:259
↓ 2 callersMethodfillResolutionUndoTx
(tx *sql.Tx, sc *models.ItemSchedule, u *resolutionUndo, now time.Time)
internal/store/schedule_reopen.go:179
↓ 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 callersFunctionfillTime
(d: HTMLElement, value = '2026-11-06T09:30')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:53
↓ 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 callersFunctionfinalizeItem
(t *testing.T, s *Store)
internal/store/fields_finalize_test.go:11
↓ 2 callersFunctionfindBucket
(buckets []ReportBucket, label string)
internal/store/reports_test.go:12
↓ 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:342
↓ 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 callersFunctionfinish
()
web/src/routes/(console)/consoleShellEscape.svelte.test.ts:105
↓ 2 callersFunctionfinish
()
web/src/routes/[username]/[workspace]/playbooks/[slug]/task2191PlaybookDraftGuard.svelte.test.ts:148
← previousnext →7,901–8,000 of 31,685, ranked by callers