MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctionassertExpiredClaimFixture
(t *testing.T, f claimFixture)
internal/store/agent_signup_expiry_test.go:18
↓ 4 callersFunctionassertForecastMember
(t *testing.T, e map[string]any)
internal/server/handlers_agenda_forecast_test.go:35
↓ 4 callersFunctionassertGone
(t *testing.T, path string)
internal/store/migration_guard_test.go:343
↓ 4 callersFunctionassertKeysWithin
(t *testing.T, where string, got map[string]any, dto string, required []string)
internal/server/task3401_app_api_test.go:265
↓ 4 callersFunctionassertLocalResetError
(t *testing.T, rr *httptest.ResponseRecorder, wantStatus int, wantCode, wantMsg string)
internal/server/handlers_auth_local_reset_test.go:27
↓ 4 callersFunctionassertNoLeftoverTempFiles
(t *testing.T, dir, expectedName string)
cmd/pad/bug4833_export_atomic_test.go:23
↓ 4 callersFunctionassertPasswordUnchangedAndSessionValid
(t *testing.T, srv *Server, email, sessionToken string)
internal/server/handlers_auth_local_reset_test.go:47
↓ 4 callersFunctionassertRenegotiationJournal
(t *testing.T, f *schedFixture, id, typ string, beforeN int)
internal/store/commitment_renegotiate_test.go:80
↓ 4 callersFunctionassertResponseTooLargeEnvelope
(t *testing.T, res *CallToolResult, wantLimit int64)
internal/mcp/response_cap_test.go:67
↓ 4 callersFunctionassertStartActivity
(t *testing.T, s *Server, id, actor string)
internal/server/task4914_start_demote_test.go:55
↓ 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 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 callersFunctionattachmentAction
pad_attachment delete and restore (TASK-4937).
internal/mcp/attachment_delete_restore_test.go:18
↓ 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 callersFunctionattachmentIDPathSegment
attachmentIDPathSegment renders an attachment id as a single, inert URL path segment. The id reaches these URLs from item content ("pad-attachment:" r
internal/cli/client.go:3329
↓ 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 callersFunctionauthClaimLinkCmd
authClaimLinkCmd is `pad auth claim-link`: an unclaimed account replaces its claim link and code (POST /api/v1/agent-signup/claim-link) and prints the
cmd/pad/cmd_auth.go:1383
↓ 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 callersFunctionb4710Move
b4710Move previews and commits the cross-workspace move, asserts they report the same, and returns the destination schedule and the report.
internal/store/bug4710_move_carry_test.go:68
↓ 4 callersFunctionbackdateItemUpdatedAt
── standup ────────────────────────────────────────────────────────────────── backdateItemUpdatedAt directly rewrites an item's updated_at column so c
internal/server/handlers_project_intel_test.go:87
↓ 4 callersMethodbatchHolds
batchHolds is holds through the batch path.
internal/store/needs_snooze_test.go:340
↓ 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 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:1601
↓ 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 callersFunctionbug3691UpgradeWithDest
(t *testing.T, installID string)
internal/store/bug3691_app_plan_limit_test.go:148
↓ 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:100
↓ 4 callersMethodbuildDashboard
(workspaceID string, r *http.Request, opts dashboardBuildOpts)
internal/server/handlers_dashboard.go:455
↓ 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 callersFunctionbuildRolePark
(mode string, sortOrder sql.NullInt64, setAt, setByUserID, setBy sql.NullString, parkSeq int)
internal/store/role_park.go:155
↓ 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:1406
↓ 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:472
↓ 4 callersFunctionbulkUpdateCmd
--- utility ---
cmd/pad/cmd_item.go:4429
↓ 4 callersFunctionbulkUpdateRefs
bulkUpdateRefs canonicalizes the `ref` input — accepts repeatable shapes the cmdhelp registry generates (string for a single value, []any from JSON ar
internal/mcp/dispatch_http_project.go:544
↓ 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:4996
↓ 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 callersFunctioncalendarRows
(data: CalendarResponse, collection: Collection, field: string, month?: string)
web/src/lib/calendar/monthGrid.ts:147
↓ 4 callersFunctioncall
(fn: typeof upstreamAtBlank, out: string)
web/src/lib/collab/materializer/atBlank.test.ts:10
↓ 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 callersMethodcanEditItem
(item: { id: string; collection_id: string })
web/src/lib/stores/workspaceScope.svelte.ts:31
↓ 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:1159
↓ 4 callersFunctioncaptureRedactionLogs
(t *testing.T)
internal/server/middleware_logging_redaction_test.go:12
↓ 4 callersMethodcaptureResolutionUndoTx
captureResolutionUndoTx runs under the schedule pin, before even the skip deadline guard. Only the current row and the bounded missed walk are read.
internal/store/schedule_reopen.go:161
↓ 4 callersFunctioncaptureStdoutDraining
captureStdoutDraining is captureStdout for output bigger than a pipe buffer (64 KiB): a few thousand JSON rows block the writer if nothing reads until
cmd/pad/bug4024_item_list_json_autopage_test.go:122
↓ 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:84
↓ 4 callersFunctioncarryWall
carryWall parses a wall and returns its canonical text.
internal/store/schedule_carry.go:96
↓ 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 callersMethodcheckLimitOn
checkLimitOn is the shared body of CheckLimit / CheckLimitTx, parameterized over the executor EVERY read runs on (BUG-2409 — see CheckLimitTx).
internal/store/limits.go:145
↓ 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:409
↓ 4 callersMethodcheckStorageLimitTx
checkStorageLimitTx is the second half of enforceStorageLimitTx: under the lock, it refuses adding bytes that would take the workspace past its owner'
internal/store/attachments.go:2124
↓ 4 callersFunctionclaimOneAttentionJob
(t *testing.T, s *Store, wsID, itemID string)
internal/store/decisions_failopen_test.go:49
↓ 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:329
↓ 4 callersFunctionclearTimer
()
web/src/lib/items/linksRetry.ts:66
↓ 4 callersFunctioncliAuthPollServer
cliAuthPollServer builds an httptest.Server serving GET api/v1/auth/cli/sessions/{code}, delegating each request to handle so tests can script status
cmd/pad/cmd_auth_poll_test.go:43
↓ 4 callersFunctioncliPositionals
cliPositionals returns the positionals of a BuildCLIArgs vector: everything after its `--` terminator, which is where BUG-3142 put them. Nil when the
internal/mcp/dispatch_test.go:487
↓ 4 callersFunctionclock
(time?: string)
web/src/lib/commitment.ts:84
↓ 4 callersMethodcloseItem
(t *testing.T, item *models.Item, status string)
internal/store/schedule_end_guard_test.go:41
↓ 4 callersFunctionclosedReceiveBus
BUG-2741: Close cancels the receive loop's context AND closes its pubsub, so both select cases can be ready at once and Go picks one at random. When i
internal/watchevents/bug2741_closed_receive_test.go:22
↓ 4 callersFunctioncollect
collect gathers every dependency the given tree declares.
cmd/depages/main.go:177
↓ 4 callersFunctioncollectServerInfo
(cfg *config.Config)
cmd/pad/server_info.go:167
↓ 4 callersFunctioncollectServerInfoWithClient
(cfg *config.Config, client *cli.Client)
cmd/pad/server_info.go:171
↓ 4 callersMethodcollection
(ws, name, schema string)
internal/server/bug2367_migrate_doors_test.go:54
↓ 4 callersFunctioncollectionTraits
collectionTraits fetches a collection over the API and parses its traits.
internal/server/handlers_collection_traits_test.go:168
↓ 4 callersFunctioncolls
colls are collections with the open/done schema, so isOpen can judge a target; a target whose collection is missing is not open (fail closed).
internal/server/needs_scorers_test.go:31
↓ 4 callersMethodcomment
(t *testing.T, item *models.Item, body string)
internal/decision/per_comment_test.go:25
← previousnext →4,101–4,200 of 31,685, ranked by callers