MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,743 in github.com/PerpetualSoftware/pad

↓ 20 callersFunctioncaptureLogs
(t *testing.T)
internal/server/workspace_owner_compensation_test.go:64
↓ 20 callersMethodcheckItemVisible
checkItemVisible is the context-free visibility decision. Returns (true, nil) when the (user, role) pair can see `item` under the same rules `requireI
internal/server/server.go:3772
↓ 20 callersFunctiondecodeAttributionBody
(t *testing.T, rr *httptest.ResponseRecorder, out any)
internal/server/handlers_items_attribution_test.go:129
↓ 20 callersFunctionderef
(p *string)
internal/store/schedule_fire_test.go:1055
↓ 20 callersMethodfanOutFromRedis
fanOutFromRedis is the receive path: a message that arrived on the subscription identified by gen, carrying the ID space it belongs to. A zero epoch
internal/events/redis_bus.go:2668
↓ 20 callersMethodgetScheduleQ
(q Queryer, workspaceID, itemID string, lock bool)
internal/store/schedules.go:448
↓ 20 callersFunctiongroupRequest
(s *Server, u *models.User, method, path, body string, mods ...func(context.Context) context.Context)
internal/server/handlers_workspace_groups_test.go:28
↓ 20 callersMethodinsert
(t *testing.T, id, body, source string, parent any)
internal/store/task3391_comments_rebuild_test.go:32
↓ 20 callersMethoditem
(t *testing.T, title, mode, status, role string)
internal/server/bootstrap_start_test.go:51
↓ 20 callersMethodjournal
(t *testing.T, scheduleID string)
internal/store/commitment_c1_test.go:68
↓ 20 callersFunctionmeAgendaGet
(t *testing.T, w *agendaWorld, u *models.User, query string, mods ...func(context.Context) context.Context)
internal/server/handlers_me_agenda_test.go:19
↓ 20 callersMethodmk
mk creates a schedule on a fresh item, armed from created.
internal/store/schedule_resolve_test.go:40
↓ 20 callersFunctionmkAgentsPAT
(t *testing.T, srv *Server, userID, wsID string)
internal/server/handlers_me_agents_test.go:68
↓ 20 callersFunctionmkAgentsUser
(t *testing.T, srv *Server, email, name string)
internal/server/handlers_me_agents_test.go:55
↓ 20 callersFunctionmount
(browser = 'Asia/Tokyo')
web/src/lib/components/TimezoneSync.svelte.test.ts:24
↓ 20 callersFunctionmount
(unread: number, props: Record<string, unknown> = {})
web/src/lib/components/chat/ChatLink.svelte.test.ts:38
↓ 20 callersFunctionmultiDefaultSchema
A `multi_relation` DEFAULT, and `required` on one (PLAN-2857 U4) Both were the same defect in two places: a gate reading `def.Type != "relation"`. `V
internal/store/relation_multi_defaults_test.go:17
↓ 20 callersFunctionmustJob
(t *testing.T, s *Store, itemID, set string)
internal/store/decisions_test.go:33
↓ 20 callersFunctionnewEmptyStore
()
internal/cli/credentials.go:314
↓ 20 callersFunctionnewRunnerFixture
(t *testing.T)
internal/decision/runner_test.go:60
↓ 20 callersMethodpasswordUser
(t *testing.T, email string)
cmd/pad/cmd_auth_2fa_test.go:65
↓ 20 callersMethodpreviewUpgrade
(t *testing.T)
internal/server/handlers_apps_upgrade_test.go:36
↓ 20 callersMethodpublishHomeChanged
publishHomeChanged publishes a home_changed refetch hint onto the home-hint fan-out (delivered to ?home=true watch streams without entering the watch
internal/server/home_hint.go:52
↓ 20 callersMethodresponseMaxBytes
()
internal/mcp/response_cap.go:26
↓ 20 callersMethodrestrictedEditor
--- authorization: the four checks, in order -------------------------- restrictedEditor returns an editor in both workspaces whose membership in each
internal/server/handlers_items_copy_preflight_test.go:668
↓ 20 callersFunctionseedParentAndChildren
seedParentAndChildren creates a plan + N child tasks with the given statuses (one per child), returning the parent and the slice of child refs in crea
internal/server/handlers_items_open_children_guard_test.go:24
↓ 20 callersMethodstoredRelation
storedRelation reads owner_ref back out of the database. Deliberately not the response body: a handler that echoed the right thing while writing the w
internal/server/relation_referents_doors_test.go:142
↓ 20 callersFunctiontestStoreSQLite
(t *testing.T)
internal/store/store_test.go:55
↓ 20 callersFunctionuploadHelper
uploadHelper does a fresh upload and returns the parsed response.
internal/server/handlers_attachments_download_test.go:19
↓ 20 callersFunctionwriteOutboxTx
writeOutboxTx appends one canonical event to the outbox on the caller's transaction. Two rejections, both deliberately hard errors that fail the encl
internal/store/event_outbox.go:390
↓ 19 callersFunctionCaptureWrites
CaptureWrites runs fn and returns every table write it caused, as the DATABASE saw it, triggers included (SPEC-6 §4, TASK-3388). It is the app store's
internal/store/storetest/writecapture.go:44
↓ 19 callersMethodCreateAuthorizationCode
============================================================ Authorization codes (handler/oauth2/storage.go AuthorizeCodeStorage) ====================
internal/store/oauth.go:283
↓ 19 callersMethodCreateEmailVerification
CreateEmailVerification generates an email-verification token for the given user. Returns the plaintext token (to embed in the verification URL). The
internal/store/email_verification.go:29
↓ 19 callersMethodCreateRefreshToken
============================================================ Refresh tokens (handler/oauth2/storage.go RefreshTokenStorage) ==========================
internal/store/oauth.go:370
↓ 19 callersMethodError
()
internal/attachments/mime.go:502
↓ 19 callersMethodGetItemLinks
GetItemLinks returns links where the given item is either source or target. Links pointing to or from soft-deleted items, or items in a soft-deleted c
internal/store/items.go:4458
↓ 19 callersMethodGetMemberCollectionAccess
GetMemberCollectionAccess returns the collection IDs a member has been explicitly granted access to (only meaningful when collection_access = "specifi
internal/store/workspace_members.go:787
↓ 19 callersMethodGetOAuthConnection
GetOAuthConnection fetches the connection row by request_id. Returns ErrOAuthConnectionNotFound if no row exists; any other error is a real I/O failur
internal/store/oauth_connections.go:107
↓ 19 callersMethodLog
(args ...any)
internal/store/storetest/pgtrace_test.go:17
↓ 19 callersFunctionLookupBuiltin
LookupBuiltin returns the built-in with this key.
internal/collections/builtin.go:206
↓ 19 callersMethodSave
Save writes the persisted Pad config to disk. A value an environment variable supplied at Load is not written: the field keeps what config.toml had, u
internal/config/config.go:919
↓ 19 callersMethodScanNUL
ScanNUL counts and locates every stored value violating the NUL invariant. Read-only: it issues SELECTs and nothing else, so it is safe to run agains
internal/store/nulscan.go:169
↓ 19 callersMethodSchemaVersion
SchemaVersion is the collab schema version the bundle was built with.
internal/materialize/materialize.go:139
↓ 19 callersMethodSeedDefaultCollections
SeedDefaultCollections rescues a workspace that ended up with zero collections by seeding it with the standard Software-shape Defaults(). It is intent
internal/store/collections.go:1223
↓ 19 callersMethodSetAttachments
SetAttachments wires the attachment storage Registry that the upload and download handlers use. Pass maxBytes = 0 to keep the defaultAttachmentMaxByte
internal/server/server.go:1379
↓ 19 callersMethodSubscribeAndReplaySince
SubscribeAndReplaySince atomically checks the per-workspace limit, registers the subscriber, and captures the buffered events above sinceID — all in O
internal/events/bus.go:277
↓ 19 callersFunctionUpdateStore
UpdateStore is the load-modify-save for credentials.json, under the exclusive credentials lock (BUG-3649): two `pad auth login` runs for different ser
internal/cli/credentials.go:604
↓ 19 callersFunctionWriteDisarmState
WriteDisarmState writes a session-scoped explicit-OFF marker (PLAN-2613 S3): the session withdraws consent for its remaining life, beating a repo's au
internal/cli/session_arm_state.go:207
↓ 19 callersFunction__resetViewerBackdropForTests
()
web/src/lib/a11y/viewerBackdrop.ts:496
↓ 19 callersFunctionassertAllowed
(t *testing.T, got CrossWorkspaceAccess, label string)
internal/server/authz_cross_workspace_test.go:186
↓ 19 callersMethodcallAs
callAs is `call` with an explicit user and workspace role, for the legs that need someone other than the fixture owner.
internal/server/relation_referents_doors_test.go:631
↓ 19 callersFunctioncalls
()
web/src/lib/components/layout/YouNav.svelte.test.ts:30
↓ 19 callersMethodcancel
Drop everything (pane destroyed).
web/src/lib/items/linksRetry.ts:52
↓ 19 callersFunctionchatSend
(t *testing.T, s *Store, convID string, author models.ConversationActor, body, opKey string, replyTo *int64)
internal/store/conversations_test.go:31
↓ 19 callersFunctioncontextWithWorkspaceRoleForTest
contextWithWorkspaceRoleForTest / contextWithResolvedWorkspaceIDForTest stash the two values RequireWorkspaceAccess populates for the REQUEST's worksp
internal/server/authz_cross_workspace_test.go:19
↓ 19 callersFunctioncreateTestCalendarFeed
(t *testing.T, s *Server, u *models.User, layer string, ids ...string)
internal/server/handlers_calendar_feeds_test.go:28
↓ 19 callersMethoddecisionRunner
()
internal/server/decision_tick.go:106
↓ 19 callersMethoddown
Press a finger down at (x, y); sends `touchStart` with the full active set.
web/e2e/lib/attachment-viewer.ts:383
↓ 19 callersFunctionequalSlice
equalSlice is a small helper for stable []string comparison; kept here so test files across the package can share it. catalog_test.go has equalString
internal/mcp/registry_test.go:189
↓ 19 callersMethodflush
Run a flush immediately for the given `markdown` + `ctx`, applying the * full recovery/dedupe gauntlet before the injected PATCH. Used by the *
web/src/lib/collab/collabFlush.svelte.ts:139
↓ 19 callersFunctionisAPITokenAuth
isAPITokenAuth returns true if the request was authenticated via an API token (not a session cookie or CLI session). Use this to gate sensitive operat
internal/server/middleware_auth.go:666
↓ 19 callersMethodlast
()
web/src/lib/stores/chatThread.property.svelte.test.ts:128
↓ 19 callersMethodlink
(p, c int, pr, cr, policy string)
internal/server/commitment_graph_entry_test.go:48
↓ 19 callersFunctionlinkObject
linkObject is one bundle link, for bundles edited by hand.
internal/store/schedule_link_import_test.go:285
↓ 19 callersFunctionnewGCClaimFixture
(t *testing.T)
internal/store/attachments_gc_claim_test.go:23
↓ 19 callersFunctionnewParkEndpointFixture
(t *testing.T)
internal/server/handlers_role_park_test.go:37
↓ 19 callersFunctionnewSeededMonitorChat
(f *fakeChatSink, printed *recentSet)
cmd/pad/cmd_watch_chat_test.go:655
↓ 19 callersFunctionnewUnclaimedAgent
newUnclaimedAgent mints the account through the store, the same steps the signup handler takes. A first admin is bootstrapped first so RequireAuth is
internal/server/unclaimed_accounts_test.go:36
↓ 19 callersMethodopenedAt
(t *testing.T, gateID string)
internal/store/commitment_gates_outcome_test.go:64
↓ 19 callersMethodput
(path string, body interface{}, result interface{})
internal/cli/client.go:3688
↓ 19 callersFunctionputBlob
Blob-read authorization tests for PLAN-2391 / TASK-2401 (BUG-2386). handleGetAttachment used to open with a flat requireMinRole("viewer"). roleLevel(
internal/server/handlers_attachments_download_authz_test.go:33
↓ 19 callersFunctionreadControlWithin
readControlWithin reads frames off the conn within d, drains payload (binary) frames, and returns the FIRST TextMessage parsed as a ControlMessage. Te
internal/collab/manager_test.go:1879
↓ 19 callersFunctionscriptPath
(t *testing.T)
internal/buildtools/install_refresh_test.go:209
↓ 19 callersMethodsetStatus
(t *testing.T, it *models.Item, status string)
internal/store/milestone_test.go:49
↓ 19 callersMethodsize
size returns the current entry count. Used by tests and by startMCPSessionTracker's initial gauge prime.
internal/server/middleware_mcp_session.go:231
↓ 19 callersFunctionwriteForbidden
(w http.ResponseWriter, code, message, reason string)
internal/server/server.go:3112
↓ 18 callersMethodAdd
Add implements SessionPresence.
internal/server/session_presence.go:376
↓ 18 callersMethodApplyExternalContent
ApplyExternalContent routes an external content update through a designated applier when an active room exists. Returns nil on success; one of the sen
internal/collab/applier.go:464
↓ 18 callersMethodClaimPendingNotifications
ClaimPendingNotifications claims up to limit pending rows for token: rows at least as old as settleCutoff (so a burst settles before it is pushed) and
internal/store/push_dispatch.go:143
↓ 18 callersFunctionCompile
Compile validates the whole Spec. Every refusal is a *MalformedError, and no text from the expansion library can reach the caller.
internal/schedule/spec.go:57
↓ 18 callersFunctionCrossWorkspaceWorkspaceOnlyScope
CrossWorkspaceWorkspaceOnlyScope requests a WORKSPACE-LEVEL CHECK ONLY, which is almost never sufficient on its own. It answers "does this caller hav
internal/server/authz_cross_workspace.go:378
↓ 18 callersMethodDisableUserAndRevokeAccess
DisableUserAndRevokeAccess disables the account and ends every credential it holds, in one transaction (BUG-3349): sessions, API tokens, and OAuth (MC
internal/store/users.go:1334
↓ 18 callersMethodDisableUserLeavingCredentialsForTesting
DisableUserLeavingCredentialsForTesting sets disabled_at without revoking anything and without the last-admin guard: the state a disable made before B
internal/store/testing_helpers.go:320
↓ 18 callersMethodDispatch
Dispatch runs `<Binary> <cmdPath...> <cliArgs...>` and packages the output for an MCP client.
internal/mcp/dispatch.go:131
↓ 18 callersMethodEnableTOTP
EnableTOTP atomically enables 2FA for a user and stores hashed recovery codes. The expectedSecret is the plaintext secret — it's compared against the
internal/store/users.go:2168
↓ 18 callersMethodGetOAuthConnectionAccess
GetOAuthConnectionAccess is the hot-path projection used by the MCP introspection middleware. Runs at most two cheap indexed queries (one PK lookup, o
internal/store/oauth_connections.go:152
↓ 18 callersMethodHasElectableApplier
HasElectableApplier reports whether an external content update for itemID would, at this instant, route through a designated applier rather than fall
internal/collab/applier.go:595
↓ 18 callersMethodIsConfigured
IsConfigured reports whether the client has an explicit global connection configuration, either from config.toml or an environment/flag override.
internal/config/config.go:969
↓ 18 callersMethodIsMultiRelation
IsMultiRelation reports whether this field's value is an ORDERED LIST of references rather than a single one.
internal/models/collection.go:70
↓ 18 callersFunctionNewRedisBusWithKeys
NewRedisBusWithKeys is NewRedisBus with an explicit key namespace (BUG-2724). cmd/pad/cmd_server.go uses this one, passing the value shared with the w
internal/events/redis_bus.go:855
↓ 18 callersMethodProvisionAppInstall
ProvisionAppInstall provisions an app install in one transaction. THE RE-CHECK IS A RE-DERIVATION. The transaction does not re-verify a list of facts
internal/store/app_provision.go:212
↓ 18 callersMethodPurgeWorkspaceData
PurgeWorkspaceData hard-deletes every child row of a soft-deleted workspace and the workspace row itself, in a single transaction. Blob bytes are NOT
internal/store/workspace_purge.go:254
↓ 18 callersMethodSetUserTimezoneIfUnset
SetUserTimezoneIfUnset sets users.timezone to tz only while it is NULL, as one atomic UPDATE, so a browser's first-sign-in default can never overwrite
internal/store/users.go:431
↓ 18 callersMethodString
()
internal/materialize/supervisor_test.go:924
↓ 18 callersMethodUnsubscribe
Unsubscribe removes a local subscriber and closes its channel. Cancels the Redis subscription if this was the last local subscriber for the workspace.
internal/events/redis_bus.go:1276
↓ 18 callersMethodUpdateItemWithParentLink
UpdateItemWithParentLink is UpdateItemWithPreCheck plus an OPTIONAL parent-link mutation applied inside the same transaction (BUG-2013). When parentLi
internal/store/items.go:2860
↓ 18 callersFunctionValidWorkerID
ValidWorkerID reports whether s is a well-formed worker id. The shape is strict (lowercase hex only), which is also what lets the column skip the NUL
internal/models/lease_worker.go:18
↓ 18 callersMethodValidatePassword
ValidatePassword checks an email/password combination. Returns the user if valid, nil if the credentials are wrong (not an error).
internal/store/users.go:453
↓ 18 callersFunctionappDo
TASK-3401 U6b: the app API's writes.
internal/server/task3401b_app_writes_test.go:22
↓ 18 callersMethodcomment
(ws *models.Workspace, it *models.Item, by *models.User, body string)
internal/server/handlers_me_needs_test.go:122
← previousnext →801–900 of 31,743, ranked by callers