MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 7 callersMethodacquireImageDecode
acquireImageDecode acquires a slot from the process-wide decode semaphore, blocking until one is free or ctx is done. When ctx is done before a slot i
internal/server/handlers_attachments_thumbnails.go:45
↓ 7 callersFunctionactionItemList
actionItemList handles pad_item.action=list. It forwards to `item list` but first applies a default limit (when the agent didn't ask for one) and clam
internal/mcp/catalog_item.go:910
↓ 7 callersMethodaddOwnerOrCompensate
addOwnerOrCompensate adds userID as the owner of a workspace that was just created, and makes that membership FATAL to the create (BUG-2715). THE DEF
internal/server/workspace_owner_compensation.go:67
↓ 7 callersFunctionadminBillingReq
adminBillingReq fires GET /api/v1/admin/billing-stats with the cookie from a logged-in user. Returns the recorder so callers can inspect status + body
internal/server/handlers_admin_billing_test.go:43
↓ 7 callersMethodadvance
(d time.Duration)
internal/events/redis_heartbeat_test.go:35
↓ 7 callersFunctionallowed
(user: string)
web/src/lib/chat/chatRecords.ts:25
↓ 7 callersFunctionapplyDraftEdits
(body: string, edits: DraftEdit[])
web/src/lib/items/draftPatch.ts:100
↓ 7 callersFunctionapplyImageSemantics
()
web/src/lib/components/editor/attachment-image.ts:445
↓ 7 callersFunctionapplyRenegotiation
(t *testing.T, f *schedFixture, in models.CommitmentRenegotiateInput, now time.Time)
internal/store/commitment_renegotiate_test.go:58
↓ 7 callersFunctionarmStateOwnerVerdict
armStateOwnerVerdict is the tri-state verdict on st's recorded owner. SessionArmState needs all three: dead reaps, alive resolves the file, and unknow
internal/cli/session_arm_state.go:392
↓ 7 callersFunctionassertAliasDoors
Check the four identity doors independently, including the concrete wiki transaction.
internal/store/item_ref_aliases_test.go:29
↓ 7 callersFunctionassertBlobDenied
assertBlobDenied pins the shared denial shape: 404, no-store, and the exact body every other denial writes.
internal/server/handlers_attachments_download_authz_test.go:203
↓ 7 callersFunctionassertBlobServed
assertBlobServed checks a 200 whose body is want (GET) or whose headers say so (HEAD — no body on the wire, so Content-Type + the positive cache direc
internal/server/handlers_attachments_download_authz_test.go:184
↓ 7 callersFunctionassertBlocked
assertBlocked asserts the response is a 403 email_not_verified.
internal/server/middleware_verified_email_test.go:154
↓ 7 callersFunctionassertLapsed
(t *testing.T, f *schedFixture, sc *models.ItemSchedule)
internal/store/schedule_lapse_test.go:27
↓ 7 callersFunctionassertStartPending
(t *testing.T, b map[string]any, want bool)
internal/server/bootstrap_start_test.go:89
↓ 7 callersMethodasyncFunctions
* Top-level `async function` declarations in the script block, by name. * This is instrument A, and on its own it is NOT the population — see * `n
web/src/test/identityFenceSource.ts:115
↓ 7 callersFunctionauditedMCPServer
MCP audit middleware tests (PLAN-943 TASK-960). What's covered: - A successful tool call writes one audit row with the right tool_name + args_hash +
internal/server/middleware_mcp_audit_test.go:34
↓ 7 callersMethodawaitExit
awaitExit waits for the child to be reaped. Kill is SIGKILL / TerminateProcess, so this is prompt; the bound covers a wedged kernel.
internal/materialize/supervisor.go:483
↓ 7 callersMethodblock
(stmts: Node[], s: State)
web/src/test/identityFenceAst.ts:1120
↓ 7 callersFunctionbug2103Conns
(mgr *RoomManager, itemID string)
internal/collab/prune_evict_bug2103_test.go:46
↓ 7 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
↓ 7 callersFunctionbug3678Fixture
(t *testing.T)
internal/store/bug3678_refresh_after_revoke_test.go:28
↓ 7 callersFunctionbug3744Item
BUG-3744: a browser snapshot was written whatever its op-log cursor, so a delayed flush from a tab that had seen fewer ops overwrote a body built from
internal/store/bug3744_snapshot_behind_content_test.go:15
↓ 7 callersFunctionbug4954Seed
bug4954Seed writes one activities row with an IP, a user agent and the given metadata, created at the given time.
internal/store/bug4954_activity_scrub_test.go:30
↓ 7 callersMethodbulkFieldUpdate
bulkFieldUpdate merges field changes into the item's existing fields, validates against the collection schema, runs the open-children guard (unless fo
internal/server/handlers_items_bulk.go:602
↓ 7 callersFunctioncanOpenInViewer
(mime: string | null | undefined)
web/src/lib/attachments/display.ts:378
↓ 7 callersFunctioncancelInit
cancelInit is the canonical exit path for both Ctrl+C and explicit "Cancel" actions during pad init / pad workspace init. It prints a brief message to
cmd/pad/cancel.go:25
↓ 7 callersFunctionchatRouteCases
()
internal/server/handlers_chat_test.go:711
↓ 7 callersFunctionchooseStatus
(container: ParentNode, status: string)
web/src/lib/components/collections/statusPickerTestKit.ts:40
↓ 7 callersFunctionclaimN
(t *testing.T, s *Store)
internal/store/decisions_debounce_test.go:46
↓ 7 callersFunctioncodeFrom
codeFrom returns the code a decide redirect carries, or "" with the redirect's error.
internal/server/task3399_delegated_flow_test.go:133
↓ 7 callersFunctioncollapseAutosaveBursts
collapseAutosaveBursts walks the newest-first entries and drops a collab-snapshot version when the previous kept entry is also a collab-snapshot versi
internal/server/handlers_timeline.go:660
↓ 7 callersMethodcollectionsAreFreshFor
(slug: string)
web/src/lib/stores/workspaceScope.svelte.ts:36
↓ 7 callersMethodcomments
()
internal/server/handlers_commitments_resolve_test.go:33
↓ 7 callersFunctioncommitmentSeed
(t *testing.T, s *Store)
internal/store/commitment_dates_migration_test.go:55
↓ 7 callersFunctionconnectWatchStreamWithHeaders
connectWatchStreamWithHeaders is connectWatchStream plus arbitrary request headers — the seam the session-identity headers need (PLAN-2558 S2, TASK-25
internal/server/handlers_watch_events_test.go:56
↓ 7 callersFunctionconsentScopedRequest
These tests cover BUG-2102: the OAuth consent allow-list was enforced only by RequireWorkspaceAccess, which fires solely for /{slug} path-param routes
internal/server/token_workspace_consent_scope_test.go:31
↓ 7 callersFunctioncontentDisposition
contentDisposition builds a Content-Disposition header value that carries name faithfully (BUG-3190). A name of printable ASCII with no quote or back
internal/server/content_disposition.go:28
↓ 7 callersFunctioncontentOf
(t *testing.T, s *Store, itemID string)
internal/store/bug3744_snapshot_behind_content_test.go:42
↓ 7 callersMethodcount
(t *testing.T, q string, args ...any)
internal/store/schedule_copy_test.go:42
↓ 7 callersFunctioncountAttachmentsIn
(t *testing.T, s *Store, workspaceID string)
internal/store/items_cross_workspace_copy_test.go:115
↓ 7 callersFunctioncountReads
countReads counts credentials-file reads, and calls onRead (when set) with the read's 1-based number before it happens.
internal/cli/credentials_bug3828_test.go:29
↓ 7 callersFunctioncreateDrainCollection
(t *testing.T, srv *Server, workspaceID string)
internal/server/outbox_drain_test.go:186
↓ 7 callersFunctioncreateDrainItem
(t *testing.T, srv *Server, workspaceID, collectionID, title string)
internal/server/outbox_drain_test.go:200
↓ 7 callersFunctioncreateLegacyTitledItem
createLegacyTitledItem creates an item and then writes `title` onto the row DIRECTLY, bypassing the write-time validation in CreateItem/UpdateItem (mo
internal/store/items_test.go:57
↓ 7 callersFunctioncutoffTS
(t time.Time)
internal/store/push_dispatch.go:84
↓ 7 callersFunctionday
(date: string)
web/src/lib/commitment.ts:83
↓ 7 callersFunctiondebounceFixture
debounceFixture installs a "triage" set with an hour's window and a "per-comment" set with none.
internal/store/decisions_debounce_test.go:17
↓ 7 callersMethoddecide
(t *testing.T, params url.Values, decision, access string)
internal/server/task3399_delegated_flow_test.go:114
↓ 7 callersFunctiondecodeMCPSettings
PLAN-2310 U1: GET/PUT /api/v1/admin/mcp, through the router.
internal/server/handlers_admin_mcp_test.go:16
↓ 7 callersFunctiondecodeManifestJSON
(data []byte, target any)
internal/collections/templates_manifest.go:110
↓ 7 callersMethoddecompressedBundleCap
decompressedBundleCap is the ceiling on the tar stream: a multiple of the body cap for attachment bytes, plus both metadata files at their own cap.
internal/server/handlers_import_bundle.go:132
↓ 7 callersFunctiondel
(seq: number)
web/src/routes/messages/messagesRoutes.svelte.test.ts:1052
↓ 7 callersMethoddeleteWithResult
deleteWithResult is delete for an endpoint that answers with a body.
internal/cli/client.go:3744
↓ 7 callersFunctiondiffUpgrade
diffUpgrade compares the installed manifest with the new one, using the fresh preview for the new artifacts' digests.
internal/server/app_upgrade_diff.go:90
↓ 7 callersFunctiondirectionEnv
(t *testing.T)
internal/cli/chat_direction_state_test.go:12
↓ 7 callersMethoddisconnect
()
web/src/lib/components/common/Lightbox.svelte.test.ts:1645
↓ 7 callersMethoddispatchResult2
(t *testing.T, cmd []string, input map[string]any)
internal/mcp/plan3578_patch_test.go:110
↓ 7 callersFunctiondisplayWidth
displayWidth returns the visible column width of s: escape and control sequences are stripped, then the remaining runes are counted. Every rune is app
internal/cli/format.go:184
↓ 7 callersMethoddo
(method, path string, body any)
internal/server/bug3334_fail_closed_test.go:229
↓ 7 callersMethoddoClaim
doClaim issues a POST /api/v1/oauth/claim with Bearer PAT auth. extraReqID, if non-empty, attaches a WithMCPTokenIdentity context override to simulate
internal/server/handlers_oauth_claim_test.go:104
↓ 7 callersFunctiondoneFieldKey
(collection: Collection)
web/src/lib/types/index.ts:3517
↓ 7 callersMethoddrop
The connection dropped: closed, and the close event fired.
web/src/lib/collab/wsProviderCatchUp.svelte.test.ts:35
↓ 7 callersMethoddueAfterConversion
(now time.Time, state deadlineJournalState)
internal/store/schedule_deadline_eval.go:332
↓ 7 callersMethodeffectBlocks
* Every `$effect(...)` body on the page. * * The population no other enumerator reaches, and the one BUG-3084 found * last and hardest. A reacti
web/src/test/identityFenceSource.ts:140
↓ 7 callersMethodeffectiveExportMetadataMaxBytes
()
internal/server/export_metadata_limit.go:17
↓ 7 callersMethodemitBulkItemEventTx
emitBulkItemEventTx writes one item.bulk_updated event covering every member of a single-transaction bulk mutation. ONE EVENT, NOT N — this is TASK-1
internal/store/event_outbox.go:1281
↓ 7 callersFunctionenable
enable runs setup with a code computed from the secret it printed, so the test types what a user would read off the app.
cmd/pad/cmd_auth_2fa_test.go:99
↓ 7 callersMethodenqueueDecisionJobsTx
enqueueDecisionJobsTx makes an evaluation owed for every question set that applies to the item, on the caller's transaction. COALESCING: one row per
internal/store/decisions.go:164
↓ 7 callersMethodenqueueNotificationsTx
enqueueNotificationsTx writes each fact for its user, and only for a user who has at least one registered device: a person who never installed the app
internal/store/notifications.go:62
↓ 7 callersMethodensureNULTriggersReporting
ensureNULTriggersReporting is ensureNULTriggers, reporting whether it actually RESTORED anything. The bool exists for tests and is not decoration: th
internal/store/nulcolumns.go:900
↓ 7 callersFunctionensureWorkspace
── Shared helpers ──────────────────────────────────────────────────────────── ensureWorkspace checks if the current directory is linked to a workspac
cmd/pad/init.go:407
↓ 7 callersFunctionfieldsPatchOf
(t *testing.T, body map[string]any)
cmd/pad/item_column_fields_test.go:70
↓ 7 callersFunctionfilter
()
web/src/routes/(console)/agenda/agenda.svelte.test.ts:47
↓ 7 callersFunctionfiniteOr
* Coerce a possibly-NaN/Infinite measurement to something usable. * * Infinity takes the fallback rather than saturating at a bound: an infinite *
web/src/lib/attachments/zoom.ts:160
↓ 7 callersFunctionfireInstant
fireInstant is the one function that turns an occurrence into the instant its managed row is armed at, used by create, update and the firing path: the
internal/store/schedules.go:303
↓ 7 callersFunctionfloorRequest
PLAN-2310 DR-9 acceptance: the MCP/OAuth security floor.
internal/server/mcp_security_floor_test.go:20
↓ 7 callersFunctionflush
()
web/src/lib/attachments/undo.test.ts:72
↓ 7 callersFunctionfold
fold collapses whitespace, so a folded (>-) expression compares as one line.
internal/buildtools/ci_release_branches_test.go:92
↓ 7 callersFunctionfsBackendKeys
fsBackendKeys lists every object the test's FS backend currently holds.
internal/server/handlers_import_bundle_husk_test.go:221
↓ 7 callersMethodgates
(t *testing.T, i int, acc models.CommitmentAccess)
internal/store/commitment_gates_outcome_test.go:45
↓ 7 callersMethodgetContext
(ctx context.Context, path string, result interface{})
internal/cli/client.go:3591
↓ 7 callersMethodgetJSON
getJSON serves a GET in-process and returns the response body, mapping any 4xx/5xx to a Go error (the resource protocol surfaces these as JSON-RPC err
internal/mcp/resources_http.go:305
↓ 7 callersMethodgraphAccessLoader
(r *http.Request, workspaceID string, mode commitmentAccessMode, seeds ...string)
internal/server/handlers_commitment_links.go:182
↓ 7 callersFunctiongroupError
(t *testing.T, rr *httptest.ResponseRecorder, status int, code, field, detail string)
internal/server/handlers_workspace_groups_test.go:92
↓ 7 callersFunctionhasDocument
()
web/src/lib/a11y/viewerBackdrop.ts:60
↓ 7 callersFunctionheadlessTestServer
headlessTestServer builds an httptest.Server that speaks the minimal subset of the Pad API that the headless bootstrap path touches: - GET /api/v1/a
cmd/pad/setup_headless_test.go:31
↓ 7 callersFunctionhides
Visibility on the UUID and REF rungs (PLAN-2857 U4). It used to live only in the SERVER's post-resolution pass, which is gated on the field TYPE — so
internal/store/relation_visibility_rungs_test.go:24
↓ 7 callersMethodhomeHints
homeHints returns the server's home-hint fan-out hub, created on first use so every constructor path (tests included) gets one.
internal/server/home_hint_hub.go:77
↓ 7 callersFunctionhopTransitions
hopTransitions returns only the "real" status hops — excluding the create-time "entered initial status" seed row (id prefix "create_") that every crea
internal/store/status_transitions_test.go:37
↓ 7 callersFunctionhttpAckBody
()
internal/server/schedule_ack_test.go:30
↓ 7 callersFunctionidempotencyKey
idempotencyKey reads the caller's key: the header, else op_key. Empty when none; an error when it is malformed.
internal/server/handlers_items_patch.go:107
↓ 7 callersFunctionidentityTestServer
(t *testing.T, offset byte)
internal/server/handlers_server_identity_test.go:22
↓ 7 callersMethodinjectedDeadlock
injectedDeadlock is called by each wrapped function just before its commit: a test can make an attempt fail there, after its writes, with an error tha
internal/store/deadlock_retry.go:77
↓ 7 callersMethodinsertLinkTx
(tx *sql.Tx, workspaceID string, l linkRow)
internal/store/commitment_links.go:701
↓ 7 callersFunctioninsertOutboxRow
insertOutboxRow writes one outbox row directly, so a retention test can pin occurred_at / dispatched_at to values a real emit would never produce on d
internal/store/event_outbox_test.go:1542
↓ 7 callersMethodintrospectAppToken
introspectAppToken is the app API's token check, in-process (DOC-3371 §4 "Token middleware", steps 1–3). In order: an ACTIVE ACCESS token (a refresh t
internal/server/app_tokens.go:173
↓ 7 callersFunctioninvalidf
invalidf builds a ValidationError. Unexported: the store decides what is caller-visible, and a caller-supplied Reason from outside the package would b
internal/store/validation_error.go:56
↓ 7 callersFunctionisCancellation
isCancellation reports whether err represents a user-initiated abort from any interactive init prompt. Init RunEs use this to convert the sentinel int
cmd/pad/cancel.go:84
← previousnext →2,401–2,500 of 31,685, ranked by callers