MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 3 callersFunctionauthHeaders
(fixture: SuiteFixture)
web/e2e/lib/demo-seed.ts:26
↓ 3 callersMethodauthorizeCrossWorkspace
(r *http.Request, workspaceSlugOrID string, scope CrossWorkspaceScope, needEdit bool)
internal/server/authz_cross_workspace.go:521
↓ 3 callersFunctionautosaveEntry
TestCollapseAutosaveBursts guards the BUG-1612 clutter fix: the web editor flushes a collab-snapshot version every ~5s while typing, so an uninterrupt
internal/server/handlers_timeline_collapse_test.go:14
↓ 3 callersMethodawaitExitFor
(d time.Duration)
internal/materialize/supervisor.go:487
↓ 3 callersMethodbackfillBidiAttachmentFilenames
backfillBidiAttachmentFilenames takes the rename as a parameter so tests can drive the refusal and a concurrent rename; production passes ServedFilena
internal/store/attachment_bidi_backfill.go:83
↓ 3 callersMethodbackfillUsernames
backfillUsernames generates usernames for existing users that don't have one. Idempotent: skips users who already have a non-empty username.
internal/store/users.go:1885
↓ 3 callersMethodbackfillWorkspaceOwners
backfillWorkspaceOwners ensures every workspace has at least one owner. For workspaces with no members, the first admin user is added as owner. This h
internal/store/workspace_members.go:1570
↓ 3 callersMethodbearerHeaders
()
internal/server/handlers_comments_bearer_gate_test.go:32
↓ 3 callersFunctionbefore
(next Next, dt time.Time, inc bool)
internal/schedule/internal/rrule/util.go:160
↓ 3 callersMethodbegin
* Take a token WITHOUT superseding outstanding ones. For the view fence, and * for anything that must coexist with its siblings — two concurrent del
web/src/lib/attachments/viewFence.ts:138
↓ 3 callersMethodbeginMoveOf
beginMoveOf is a cross-workspace move of item i that has not committed: it holds the item's schedule row lock and has archived the item, ended the sch
internal/store/commitment_links_pg_test.go:306
↓ 3 callersMethodbeginWorkspaceMint
beginWorkspaceMint runs every precondition that does not need the body, and returns false having already written the response when one refuses. Call
internal/server/workspace_mint.go:59
↓ 3 callersFunctionbetween
(next Next, after, before time.Time, inc bool)
internal/schedule/internal/rrule/util.go:147
↓ 3 callersMethodbindOAuthIdentityTx
bindOAuthIdentityTx binds `subject` to userID for provider, or confirms it is already. The caller holds the account lock. A concurrent bind of the sam
internal/store/oauth_identities.go:86
↓ 3 callersFunctionboardCols
(t *testing.T, r *CallToolResult)
internal/mcp/board_test.go:87
↓ 3 callersMethodbreakStoredRule
breakStoredRule makes the stored rule uncompilable by writing the row directly, the way a rule that aged out of the grammar would look.
internal/store/schedules_test.go:389
↓ 3 callersFunctionbtn
(container: HTMLElement, label: RegExp)
web/src/lib/components/layout/createWorkspaceModalImportProgress.svelte.test.ts:55
↓ 3 callersFunctionbtoa
btoa: every code unit must be 0-255.
internal/materialize/globals.go:97
↓ 3 callersFunctionbuf
(rel: string)
web/src/lib/attachments/pdfjsBuildOutput.test.ts:42
↓ 3 callersFunctionbug2103DrainForForceRefresh
bug2103DrainForForceRefresh reads c until it closes or d elapses and reports whether a force_refresh control frame arrived. The initial op_log_cursor
internal/collab/prune_evict_bug2103_test.go:67
↓ 3 callersFunctionbug2685CreateItem
(t *testing.T, srv *Server, ws, coll string, body map[string]interface{})
internal/server/bug2685_grandfathered_reserved_key_test.go:67
↓ 3 callersFunctionbug3079Collection
BUG-3079 at the DOOR. `internal/items` pins the rule; this pins that a real create runs it and that the drop reaches the caller, which a unit test of
internal/server/bug3079_default_drop_test.go:16
↓ 3 callersFunctionbug3163SeededItem
bug3163SeededItem is a task whose stored blob holds notes and decisions, seeded below the write doors.
internal/server/bug3163_reserved_write_doors_test.go:250
↓ 3 callersFunctionbug3202CompareFixture
BUG-3202: field writes now keep a number's literal, so one VALUE can be stored as different TEXT (1e3 and 1000). Every place that compares field value
internal/server/bug3202_semantic_compare_test.go:22
↓ 3 callersFunctionbug3314Get
get returns the body after checking the door answered, so an empty 403 or 404 can never pass as "no leak".
internal/server/bug3314_activity_ip_test.go:81
↓ 3 callersFunctionbug3314Setup
(t *testing.T, srv *Server)
internal/server/bug3314_activity_ip_test.go:31
↓ 3 callersFunctionbug3346Setup
(t *testing.T)
internal/server/bug3346_body_ids_test.go:26
↓ 3 callersFunctionbug3400Refresh
BUG-3400: fosite revokes a reused refresh token's (or code's) whole family BEFORE checking that the token belongs to the requesting client. Pad's stor
internal/server/bug3400_reuse_ownership_test.go:21
↓ 3 callersFunctionbug3659OwnerAndWorkspace
(t *testing.T, srv *Server)
internal/server/bug3659_account_export_deadline_test.go:96
↓ 3 callersFunctionbug3678Refresh
BUG-3678, through fosite's real token endpoint: a revoke or a second refresh that lands after fosite validated a refresh token and before it rotated i
internal/server/bug3678_refresh_window_test.go:14
↓ 3 callersFunctionbug3789Walk
walk follows next-offset from offset 0, asking for pageSize rows a page.
internal/server/bug3789_bounded_lists_test.go:41
↓ 3 callersFunctionbug3790Check
BUG-3790: pad_item starred never pages. Both transports ask for one row past the list cap, and a result that had the extra row comes back trimmed to t
internal/mcp/bug3790_starred_truncation_test.go:19
↓ 3 callersFunctionbug3791Walk
bug3791Walk pages from since to the end, calling between after each page that has a next one.
internal/server/bug3791_changes_cursor_test.go:41
↓ 3 callersFunctionbug3811ActiveAdmins
(t *testing.T, s *Store)
internal/store/bug3811_last_admin_race_test.go:26
↓ 3 callersFunctionbug3812Collection
(t *testing.T, srv *Server, slug string)
internal/server/bug3812_unique_race_test.go:18
↓ 3 callersFunctionbug3812Holders
holders counts the live items whose code is value.
internal/server/bug3812_unique_race_test.go:34
↓ 3 callersFunctionbug3812Race
race runs fn on bug3812Writers goroutines released together, and answers their status codes.
internal/server/bug3812_unique_race_test.go:47
↓ 3 callersFunctionbug3839Panics
(f func())
internal/diff/bug3839_no_panic_test.go:51
↓ 3 callersFunctionbug3864Token
(t *testing.T, f *capFixture, u *models.User, scopes string)
cmd/pad/bug3864_permission_reasons_test.go:142
↓ 3 callersFunctionbug3864User
(t *testing.T, f *capFixture, email string, unverified bool)
cmd/pad/bug3864_permission_reasons_test.go:133
↓ 3 callersFunctionbug3870PreviewCanGrant
BUG-3870: an invitee who is already a member, holding an invitation whose inviter can no longer grant it (BUG-3770, BUG-3634), is already in: the acce
internal/server/bug3870_member_dead_invitation_test.go:18
↓ 3 callersFunctionbug4019Sessions
(t *testing.T, srv *Server, userID string)
internal/server/bug4019_totp_lazy_decrypt_test.go:66
↓ 3 callersFunctionbug4082Input
(t *testing.T, edits string)
internal/mcp/bug4082_line_hint_test.go:53
↓ 3 callersFunctionbug4644Active
bug4644Active reports whether token introspects active for bearer.
internal/server/bug4644_oauth_form_cap_test.go:96
↓ 3 callersFunctionbug4644Multipart
bug4644Multipart encodes form as multipart/form-data, padded with a field so the body is at least minSize bytes (0 for no padding).
internal/server/bug4644_oauth_form_cap_test.go:73
↓ 3 callersFunctionbug4644Padded
bug4644Padded encodes form and appends a padding field so the body is exactly size bytes.
internal/server/bug4644_oauth_form_cap_test.go:43
↓ 3 callersFunctionbug4644TokenForm
(clientID, code, verifier string)
internal/server/bug4644_oauth_form_cap_test.go:108
↓ 3 callersFunctionbug4644WantInvalidClient
bug4644WantInvalidClient asserts a 401 RFC 6749 invalid_client and, when hint is set, that the description carries the handler's own hint (which fosit
internal/server/bug4644_oauth_form_cap_test.go:265
↓ 3 callersFunctionbug4644With
(base, extra url.Values)
internal/server/bug4644_oauth_form_cap_test.go:251
↓ 3 callersMethodbuildAppPreviewQ
buildAppPreviewQ validates the pack against this workspace and normalizes every artifact exactly as the importer would store it, with every read on q:
internal/server/handlers_apps_install.go:392
↓ 3 callersFunctionbuildHTTPRequest
buildHTTPRequest constructs the in-process request, attaching the user via the exported server.WithCurrentUser helper so the handler chain treats the
internal/mcp/dispatch_http.go:671
↓ 3 callersFunctionbuildMultiPagePdf
(pages: number, pageHeight = 792)
web/e2e/lib/pdf-fixtures.ts:36
↓ 3 callersMethodbuildProvisionRequest
buildProvisionRequest re-normalizes the pending record's STAGED bytes and compares each artifact with what the owner reviewed, first on the pool (a fa
internal/server/handlers_apps_provision.go:148
↓ 3 callersFunctionbuildRRule
(arg ROption)
internal/schedule/internal/rrule/rrule.go:159
↓ 3 callersFunctionbuildRemapWorld
buildRemapWorld makes n items, each with its OWN source id and its own destination clone (an attachments row with no stamp), referenced from the item'
internal/store/attachments_remap_chunk_test.go:113
↓ 3 callersMethodbuildWithCommitment
---- an abandoned blocker item ---- buildWithCommitment is a build item (shipped delivers, discarded abandons) with a commitment of its own.
internal/store/commitment_gates_outcome_test.go:535
↓ 3 callersFunctionbuiltinRegistry
builtinRegistry gathers every built-in: the convention and playbook libraries, every template's seeds, and the onboard seed. One key names one text: t
internal/collections/builtin.go:215
↓ 3 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:421
↓ 3 callersFunctionbumpEpoch
(ws: string)
web/src/lib/stores/localSearch.svelte.ts:390
↓ 3 callersFunctionbundleWithAttachmentOnBeta
bundleWithAttachmentOnBeta exports a workspace holding items Alpha and Beta and one attachment owned by Beta, and returns the tar bundle and the attac
internal/server/bug3357_bundle_ownership_test.go:58
↓ 3 callersFunctionbusyServer
TASK-4278: the database bound's 503 reads as a plain, retryable message with the server's wait, and no write is retried by the client on its own.
internal/cli/task4278_database_busy_test.go:13
↓ 3 callersMethodbySource
bySource reads back every provenance row for one source, newest first. A test-local query rather than a store accessor: the only production read of t
internal/store/item_workspace_moves_test.go:78
↓ 3 callersFunctioncalendarFeedCaller
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_calendar_feeds.go:26
↓ 3 callersFunctioncalendarPaging
calendarPaging settles the paging fields once the day cut (nextFrom, partial) and the schedules' time cut are both known. - A set cut offers no next_
internal/server/handlers_calendar.go:418
↓ 3 callersFunctioncalendarRows
(data: CalendarResponse, collection: Collection, field: string, month?: string)
web/src/lib/calendar/monthGrid.ts:137
↓ 3 callersFunctioncall
(tool, args)
web/src/mcp-app/bridge.ts:39
↓ 3 callersMethodcall
call invokes a bundle function. Callers hold r.mu, except New.
internal/materialize/materialize.go:292
↓ 3 callersMethodcall
call runs a tool and returns its raw JSON-RPC response.
internal/mcp/bug2772_remote_agent_identity_test.go:191
↓ 3 callersMethodcallAs
TASK-1809: several agents commonly share ONE account. A claim with no holder used to default to the account's email, so a second agent's claim matched
internal/server/task1809_lease_agent_default_test.go:21
↓ 3 callersMethodcallBothRaw
callBothRaw drives handleCopyItemPreflight and handleCopyItem over the SAME request bytes, the same context, and the same route params — the only diff
internal/server/handlers_items_copy_parity_test.go:81
↓ 3 callersFunctioncalleeExpr
calleeExpr strips parentheses and generic instantiation from a call's function expression.
internal/appstore/boundary_check_test.go:455
↓ 3 callersFunctioncalleeKey
(src: AstSource, callee: Node)
web/src/test/identityFenceAst.ts:368
↓ 3 callersFunctioncanPreviewAsPdf
(mime: string | null | undefined)
web/src/lib/attachments/display.ts:463
↓ 3 callersFunctioncanResolve
(entry: AgendaEntry)
web/src/lib/calendar/presentation.ts:149
↓ 3 callersFunctioncancel
()
web/src/lib/collab/collabFlush.svelte.ts:213
↓ 3 callersFunctioncanonicalDir
canonicalDir resolves a directory to its real, absolute, cleaned path when it exists (symlinks followed), and to its cleaned absolute spelling otherwi
cmd/pad/cmd_session.go:306
↓ 3 callersFunctioncanonicalJSON
(t *testing.T, s string)
internal/mcp/bug4082_line_hint_test.go:40
↓ 3 callersFunctioncapPlan
BUG-3653: every door that adds attachment bytes to a workspace is charged against the storage cap TASK-3619 enforces at upload, and is refused when ov
internal/server/bug3653_storage_cap_doors_test.go:22
↓ 3 callersFunctioncapRoutes
capRoutes is DR-5's table, all 23 routes. {id} and {ws} are replaced per fixture. Unknown connection and client ids are deliberate: each of those hand
cmd/pad/mcp_capability_test.go:41
↓ 3 callersFunctioncapSection
(lines []CatchUpLine)
internal/store/catch_up.go:98
↓ 3 callersFunctioncaptureSkill
(t *testing.T)
cmd/pad/capture_skill_commitment_test.go:20
↓ 3 callersFunctioncaptureSlog
(c *logCapture)
internal/watchevents/redis_bus_resume_test.go:654
↓ 3 callersFunctioncaptureStderr
captureStderr runs fn with os.Stderr redirected and returns what it wrote.
internal/config/bug4066_relative_data_dir_test.go:13
↓ 3 callersFunctioncascadeRetainedBytes
cascadeRetainedBytes is what one linking document makes the cascade hold: the body it read (kept verbatim as the compare-and-set token) plus the body
internal/store/documents.go:765
↓ 3 callersFunctioncatalogDef
(name string)
internal/mcp/chatgpt_catalog.go:447
↓ 3 callersMethodchanged
* True when the live view no longer matches this capture — including when * the capture itself was never addressable.
web/src/lib/attachments/viewFence.ts:85
↓ 3 callersFunctionchatLink
(page: Page)
web/e2e/chat-shell-layout.spec.ts:35
↓ 3 callersFunctionchatNow
()
internal/store/conversations.go:47
↓ 3 callersFunctioncheckAppDTOKeys
(t *testing.T, route string, body any)
internal/server/task3401_app_api_test.go:307
↓ 3 callersMethodcheckBootstrapToken
checkBootstrapToken validates the X-Bootstrap-Token header on r against the in-memory token using a constant-time comparison. Returns false if no toke
internal/server/bootstrap.go:169
↓ 3 callersMethodcheckCollectionFullyVisible
checkCollectionFullyVisible is the bool-returning core of requireCollectionFullyVisible — same rules, no response writing, and a workspace ID that nee
internal/server/authz_cross_workspace.go:874
↓ 3 callersFunctioncheckItem
(t *testing.T, where string, it map[string]any)
internal/server/task3401_app_api_test.go:297
↓ 3 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:132
↓ 3 callersMethodcheckListFilterKeys
checkListFilterKeys refuses a field filter the list cannot honour (BUG-3480). parseItemListParams reads every query parameter it does not know as a fi
internal/server/handlers_items.go:4559
↓ 3 callersMethodcheckReminderMigrationTx
(tx *sql.Tx)
internal/store/reminder_migration.go:281
↓ 3 callersMethodcheckScheduleTiming
checkScheduleTiming runs at the user write paths only (create, and an update that names timing): copy, import, restore and migrations never call it, s
internal/store/schedules.go:181
↓ 3 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:1995
↓ 3 callersFunctionchildProgressState
childProgressState says how one child counts toward its parent's progress: whether it is in the total, and whether it is done. An ABANDONED child (a t
internal/server/handlers_dashboard.go:355
↓ 3 callersFunctionchunkedBearerCall
chunkedBearerCall is bearerCall with ContentLength forced to -1, the way a chunked request arrives. The old guard (`ContentLength > 0`) silently DROPP
internal/server/handlers_watches_test.go:184
↓ 3 callersFunctionclampPan
(state: ZoomState, g: Geometry)
web/src/lib/attachments/zoom.ts:289
← previousnext →4,801–4,900 of 28,840, ranked by callers