MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctionadminFetch
(path: string, opts?: RequestInit)
web/src/lib/stores/admin.svelte.ts:82
↓ 4 callersMethodadvance
(content string, at int)
internal/links/mentions.go:77
↓ 4 callersFunctionagendaOptionalInstant
agendaOptionalInstant formats an optional instant in the response timezone.
internal/server/handlers_agenda.go:534
↓ 4 callersFunctionagentGuideSection
(markdown, topic string)
cmd/pad/cmd_agent.go:57
↓ 4 callersFunctionanalyseSource
(path: string, code: string)
web/src/lib/components/items/childIdentityFencePopulation.test.ts:751
↓ 4 callersFunctionand
(a: State, b: State)
web/src/test/identityFenceAst.ts:950
↓ 4 callersFunctionanswer
(status: number, body: unknown)
web/src/lib/api/schedule.test.ts:7
↓ 4 callersFunctionappActorKind
appActorKind is the actor kind an app write's events carry: "user" for a person acting through the app (a delegated token), "agent" for the bot. X-Pad
internal/server/app_api_write.go:94
↓ 4 callersFunctionappFault
appFault marks an error from re-admission as a server fault (a store or database failure), not a denial: the response is withheld either way, but a fa
internal/server/app_api.go:734
↓ 4 callersFunctionappKeysOf
(m map[string]any)
internal/server/task3401_app_api_test.go:256
↓ 4 callersMethodappRevalidate
appRevalidate re-admits the request from scratch before its response is sent: the token is introspected again (revocation, expiry, binding, epoch, ins
internal/server/app_api.go:630
↓ 4 callersFunctionappendTestDecision
(t *testing.T, s *Store, itemID, decision, rationale string)
internal/store/item_entries_index_test.go:44
↓ 4 callersFunctionapply
(c: CaretRect)
web/src/lib/components/editor/caretPopup.ts:55
↓ 4 callersFunctionapplyDraftEdits
(body: string, edits: DraftEdit[])
web/src/lib/items/draftPatch.ts:99
↓ 4 callersFunctionapplyWorkerID
applyWorkerID points client at an explicit --worker-id, if one was given.
cmd/pad/worker_flag.go:16
↓ 4 callersFunctionarchivedCollectionFixture
BUG-2884. DeleteCollection soft-deletes the collection row only; its items keep deleted_at IS NULL and stay fully reachable (GetItemByRef, GetItem, Se
internal/store/export_soft_deleted_collection_test.go:27
↓ 4 callersMethodarm
arm sets the deadline for a write about to start. A nil return is paired with exactly one disarm when that write returns.
internal/server/middleware_write_deadline.go:165
↓ 4 callersMethodarm
arm sets a fresh deadline for the write about to happen. A failure here fails the stream: the write would otherwise be unbounded.
internal/server/sse_stream.go:121
↓ 4 callersFunctionarmFileExists
(t *testing.T, path string)
internal/cli/session_arm_unverifiable_bug2771_test.go:40
↓ 4 callersFunctionarmSchedule
armSchedule computes the arming of an occurrence. Pinned: the occurrence instant and its fire instant in the schedule's own zone. Floating: the early
internal/store/schedules.go:293
↓ 4 callersFunctionarmSessionForTest
armSessionForTest puts the process in an armed session so streamWatchEvents' per-notification consent gate (D1) lets events through: a temp HOME/data-
cmd/pad/cmd_watch_test.go:272
↓ 4 callersFunctionarr
(v: T[] | null | undefined)
web/src/lib/components/settings/apps/appsShape.ts:16
↓ 4 callersFunctionassemble
Assemble a PDF from numbered object bodies, with a correct xref table.
web/e2e/lib/pdf-fixtures.ts:13
↓ 4 callersFunctionassertAgendaScheduleIDs
(t *testing.T, rows []AgendaSchedule, want []string)
internal/store/schedule_agenda_list_test.go:86
↓ 4 callersFunctionassertAmbiguityRefused
(t *testing.T, rr interface { // httptest.ResponseRecorder shape without importing it here Result() *http.Re
internal/server/handlers_items_parent_ambiguity_test.go:28
↓ 4 callersFunctionassertAttachmentDisposition
(t *testing.T, rr *httptest.ResponseRecorder, wantPrefix string)
internal/server/handlers_attachments_download_mime_test.go:112
↓ 4 callersFunctionassertDisclosesNothing
assertDisclosesNothing checks a refusal body for anything that would confirm the source item exists or reveal the destination schema.
internal/server/handlers_items_copy_preflight_test.go:841
↓ 4 callersFunctionassertEntrySource
TASK-4491: notes and decisions are searched in the comment band. A match names its source (`note` / `decision`) and the entry's stored id.
internal/store/search_entries_test.go:13
↓ 4 callersFunctionassertForecastMember
(t *testing.T, e map[string]any)
internal/server/handlers_agenda_forecast_test.go:35
↓ 4 callersFunctionassertGotForceRefresh
assertGotForceRefresh drains conn until it either receives a force_refresh control frame (pass) or the conn closes without one (fail).
internal/server/handlers_items_collab_versions_test.go:660
↓ 4 callersFunctionassertKeysWithin
(t *testing.T, where string, got map[string]any, dto string, required []string)
internal/server/task3401_app_api_test.go:265
↓ 4 callersFunctionassertOpLogEmpty
(t *testing.T, srv *Server, itemID string)
internal/server/handlers_items_collab_versions_test.go:651
↓ 4 callersFunctionassertRenegotiationJournal
(t *testing.T, f *schedFixture, id, typ string, beforeN int)
internal/store/commitment_renegotiate_test.go:80
↓ 4 callersFunctionassertView
assertView checks that every `hidden` title is absent from the whole body, and that each `visible` title reaches the sections its shape belongs in.
internal/server/task772_dashboard_visibility_test.go:112
↓ 4 callersFunctionassignItemSnapshot
assignItemSnapshot reads the item back through getItemTx — the same query every production emitter uses — after assigning it to the given user, so the
internal/store/event_outbox_scrub_test.go:90
↓ 4 callersFunctionat
(sec: number)
web/src/lib/components/timeline/historyEvents.test.ts:15
↓ 4 callersMethodatClock
atClock sets the linked-change clock for the rest of the test.
internal/store/commitment_cascade_past_test.go:18
↓ 4 callersFunctionatob
atob per the HTML spec's forgiving-base64 decode: ASCII whitespace is removed, one or two trailing '=' are optional, and the result is a string of cod
internal/materialize/globals.go:75
↓ 4 callersMethodattachmentCallerIsRestricted
attachmentCallerIsRestricted reports whether the caller's access to the workspace is narrowed to specific collections or items rather than being full
internal/server/attachments_authz.go:128
↓ 4 callersFunctionattachmentItemID
attachmentItemID reads back the persisted item_id for an attachment, returning "" for a NULL association.
internal/server/handlers_attachments_test.go:352
↓ 4 callersFunctionattentionFor
(resp DashboardResponse, ref string)
internal/server/dashboard_attention_decisions_test.go:93
↓ 4 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/pane-full-page-host.spec.ts:25
↓ 4 callersFunctionauthJson
* TASK-2998 / PLAN-2857 U7 — filtering and grouping a collection view by a * RELATION field, driven through a real browser against a binary built fro
web/e2e/task-2998-relation-filter-group.spec.ts:21
↓ 4 callersMethodauthorizeResponseWriter
authorizeResponseWriter wraps w for one fosite WriteAuthorizeResponse or WriteAuthorizeError call. With no configured issuer (OAuth unavailable) it re
internal/server/oauth_iss.go:30
↓ 4 callersFunctionautosaveBy
(id, user string, at time.Time, added, removed *int)
internal/server/handlers_timeline_collapse_test.go:123
↓ 4 callersMethodawaitReset
awaitReset blocks until the observer has been told of a reset for reason, then returns every reset reason reported so far. A test that wants to ASSER
internal/events/observer_test.go:152
↓ 4 callersFunctionbearer
(baseURL: string, token: string)
web/e2e/lib/permission-walk.ts:82
↓ 4 callersFunctionbefore
(i: number)
web/src/lib/stores/chatSurfaceCallers.test.ts:81
↓ 4 callersMethodbeginReadSnapshot
beginReadSnapshot opens a read-only transaction whose reads share one snapshot; ExportWorkspaceSnapshot says why each option is there.
internal/store/export.go:218
↓ 4 callersFunctionbigLinker
BUG-2804 M3 guards: the bound on how much linking-item content ONE item rename may process. These are regression tests, not probes — each was run aga
internal/store/items_rename_bounds_test.go:20
↓ 4 callersFunctionbindReactiveUserId
(hook: { readUser: null | (() => string); writeUser: null | ((id: string) => void); })
web/src/test/identityEpochMock.svelte.ts:131
↓ 4 callersFunctionbool
* Read a boolean param. Absent (undefined/null) returns undefined. Accepts * the literal strings "true"/"false" (transport leniency). Any other prese
web/src/lib/webmcp/dispatch.ts:95
↓ 4 callersFunctionbootPlanBackfill
bootPlanBackfill is the plan step of `pad server start` (TASK-3551). Cloud: mark the database cloud-owned (sticky, before anything else), then give e
cmd/pad/cmd_server.go:1541
↓ 4 callersMethodbound
bound is the walk key past which nothing can still land at or before t.
internal/schedule/engine.go:51
↓ 4 callersFunctionbug3163PatchFields
(t *testing.T, srv *Server, ws, slug, fields string)
internal/server/bug3163_reserved_write_doors_test.go:257
↓ 4 callersFunctionbug3453Bugs
(t *testing.T, srv *Server, slug string)
internal/server/bug3453_ready_fallback_test.go:19
↓ 4 callersFunctionbug3591Stamp
(t *testing.T, s *Store, id string)
internal/store/bug3591_upgrades_test.go:34
↓ 4 callersFunctionbug3634Restricted
BUG-3634: an owner restricted to some collections cannot grant more access than it holds. An invitation carries no scope, and accepting one makes a me
internal/server/bug3634_restricted_owner_grant_test.go:17
↓ 4 callersFunctionbug3791Get
(t *testing.T, srv *Server, path, cookie string)
internal/server/bug3791_changes_cursor_test.go:25
↓ 4 callersFunctionbug3821Dial
bug3821Dial opens a raw connection to ts with the given receive buffer.
internal/server/bug3821_write_deadline_test.go:56
↓ 4 callersFunctionbug3839Patch
bug3839Patch is a reverse patch between valid texts, for fixtures.
internal/store/bug3839_invalid_utf8_version_test.go:298
↓ 4 callersFunctionbug3864Refusal
BUG-3864: the shared 403 gates name which gate refused, in details.reason, with code and message unchanged. cmd/pad's end-to-end test drives the role,
internal/server/bug3864_forbidden_reason_test.go:20
↓ 4 callersFunctionbug4019Key
(t *testing.T)
internal/server/bug4019_totp_lazy_decrypt_test.go:42
↓ 4 callersFunctionbug4019Login
(srv *Server, userID string, body map[string]any)
internal/server/bug4019_totp_lazy_decrypt_test.go:113
↓ 4 callersFunctionbug4019Placeholder
()
internal/server/bug4019_totp_lazy_decrypt_test.go:51
↓ 4 callersFunctionbuildBootstrapURL
buildBootstrapURL constructs the /setup URL the operator should open. setup_method dispatch (kept in sync with handleSessionCheck in internal/server/
internal/cli/bootstrap.go:153
↓ 4 callersMethodbuildCommentAppProjectionTx
buildCommentAppProjectionTx freezes the block for a comment event. author is the comment's own author column, the display used when the account is gon
internal/store/app_projection.go:261
↓ 4 callersMethodbuildCommitmentView
(r *http.Request, workspaceID string, item *models.Item, sc *models.ItemSchedule, note string)
internal/server/handlers_commitments.go:94
↓ 4 callersFunctionbuildReconcileFindings
buildReconcileFindings returns the reconcile findings for the given item. The item argument MUST be non-nil — the production caller (reconcileItem) an
cmd/pad/reconcile.go:287
↓ 4 callersFunctionbuildRequestErrorResult
buildRequestErrorResult maps a buildAuthedRequest failure onto the structured error envelope. Extracted from executeRequest (BUG-2305) so hand-written
internal/mcp/dispatch_http.go:548
↓ 4 callersFunctionbulkEventDelta
bulkEventDelta is the SHARED delta of a bulk operation — the change every member received, as opposed to each member's post-mutation snapshot. Only t
internal/server/handlers_items_bulk.go:1326
↓ 4 callersFunctionbulkRequest
BUG-3813: the bulk move and the bulk tag and untag built their writes from the item ResolveItem read before any lock, so a write landing in between wa
internal/server/bug3813_bulk_prelock_read_test.go:18
↓ 4 callersFunctionbulkStoreError
applyBulkOp dispatches one verb against one item, reusing the same store paths as the single-item handlers. Returns the post-mutation item (for seq) o
internal/server/handlers_items_bulk.go:447
↓ 4 callersFunctionbulkUpdateCmd
--- utility ---
cmd/pad/cmd_item.go:4257
↓ 4 callersMethodbumpStructuralLinkSourceTx
bumpStructuralLinkSourceTx advances the source row whenever a parent or implements edge changes. Callers must already hold the workspace seq lock on P
internal/store/items.go:4936
↓ 4 callersMethodbundleWith
TASK-4104 D2 r1 fixes: the import's schedule loop and comment map.
internal/store/schedule_carry_fix1_test.go:12
↓ 4 callersFunctionbytes32
===================================================================== Helpers ===================================================================== by
internal/oauth/server_test.go:930
↓ 4 callersMethodcallBoth
callBoth is callBothRaw with a JSON-encodable body.
internal/server/handlers_items_copy_parity_test.go:126
↓ 4 callersFunctioncallWorkspaceViaOAuth
callWorkspaceViaOAuth simulates an MCP-driven workspace API call by going through MCPBearerAuth's OAuth path. The MCP transport stub the test harness
internal/server/handlers_mcp_test.go:1800
↓ 4 callersMethodcallback
* A function literal that may run LATER: walked from an unsafe start, with * only its own allowance. What it does never changes the caller's state.
web/src/test/identityFenceAst.ts:1031
↓ 4 callersMethodcalls
(t *testing.T)
internal/buildtools/bug4511_monitor_await_consent_test.go:121
↓ 4 callersMethodcancelLink
Postgres lock-order tests for the cancel policy (TASK-4353, 2c). The mark is written inside the parent's skip, under the parent's single-item pin (ite
internal/store/commitment_cancel_pg_test.go:15
↓ 4 callersFunctioncapBootstrapDashboard
capBootstrapDashboard wraps a DashboardResponse with the bootstrap's per-section caps. The underlying *DashboardResponse is shallow-copied before the
internal/server/handlers_bootstrap.go:1107
↓ 4 callersFunctioncaptureRedactionLogs
(t *testing.T)
internal/server/middleware_logging_redaction_test.go:12
↓ 4 callersFunctioncarriedByKey
(t *testing.T, resp ItemCopyPreflight, key string)
internal/server/handlers_items_copy_preflight_test.go:235
↓ 4 callersFunctioncarriedRowFor
carriedRowFor finds one carried row by key, or nil.
internal/server/handlers_items_copy_relation_test.go:1540
↓ 4 callersFunctioncarryInstant
carryInstant normalizes an RFC3339 instant, or "" when empty.
internal/store/schedule_carry.go:81
↓ 4 callersFunctioncarryWall
carryWall parses a wall and returns its canonical text.
internal/store/schedule_carry.go:93
↓ 4 callersFunctionchainBetween
chainBetween rebuilds Between's window one NextAfter at a time.
internal/schedule/nextbetween_test.go:149
↓ 4 callersFunctionchat4315Patch
TASK-4315: users.chat_enabled over the API. It is the caller's own display preference: default off, written only through PATCH /auth/me, and never a g
internal/server/task4315_chat_setting_test.go:16
↓ 4 callersFunctionchat4315Value
(t *testing.T, srv *Server, token string)
internal/server/task4315_chat_setting_test.go:21
↓ 4 callersFunctionchatDirectionPath
TASK-4041, DOC-4036: this independent declaration is socket-scoped only. Reuse the owner stamps and bind direction to one explicit arm generation.
internal/cli/chat_direction_state.go:13
↓ 4 callersFunctionchatGPTPatch
TASK-3321 U1b: every content change through the ChatGPT catalog is saved as a version first, past the 1h throttle, so it can be undone from History. T
internal/server/task3321_u1b_chatgpt_versions_test.go:20
↓ 4 callersFunctionchatNoticeFor
chatNoticeFor returns the one notice targeting agentKey ("" for the human inbox notice) and fails if there is not exactly one.
internal/server/chat_delivery_test.go:376
↓ 4 callersFunctioncheckPartial
TASK-4236: a CapTime or CapStall that stops Between returns the occurrences it examined plus Resume, the instant every earlier occurrence was examined
internal/schedule/partial_test.go:14
↓ 4 callersMethodcheckSecondFactor
checkSecondFactor verifies a TOTP code, or failing that a recovery code, for user, the way login does. Every door that accepts a second factor uses it
internal/server/handlers_2fa.go:395
↓ 4 callersFunctionclaimOneAttentionJob
(t *testing.T, s *Store, wsID, itemID string)
internal/store/decisions_failopen_test.go:49
↓ 4 callersFunctionclear
()
web/src/lib/stores/auth.svelte.ts:353
↓ 4 callersFunctionclearCSRFCookie
clearCSRFCookie removes the CSRF cookie (e.g. on logout). Must clear both prefixed and unprefixed names to handle upgrades cleanly.
internal/server/middleware_csrf.go:315
↓ 4 callersFunctionclearTimer
()
web/src/lib/items/linksRetry.ts:66
← previousnext →3,701–3,800 of 28,840, ranked by callers