MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 6 callersFunctionmarshalScheduleRequest
(method, template string, input, body map[string]any)
internal/mcp/dispatch_http_schedule.go:115
↓ 6 callersMethodmcpAvailable
mcpAvailable is PLAN-2310 DR-1's predicate: cloud, or the setting on and a usable public origin configured. A setting that is on without an origin lea
internal/server/handlers_admin_mcp.go:57
↓ 6 callersMethodmcpBodyLimit
mcpBodyLimit is the largest POST body the MCP mounts accept (BUG-3534). The MCP transport (mcp-go's StreamableHTTPServer) reads the whole body into me
internal/server/middleware_mcp_body_limit.go:37
↓ 6 callersMethodmcpSetting
mcpSetting returns the effective value of the MCP setting and its source. Cloud is always on. Otherwise PAD_MCP_ENABLED wins, then the stored setting,
internal/server/handlers_admin_mcp.go:39
↓ 6 callersFunctionmeAgendaTransition
(t *testing.T, w *agendaWorld, it *models.Item, at, status string)
internal/server/handlers_me_agenda_test.go:58
↓ 6 callersFunctionmembersHandler
membersHandler returns an http.Handler that responds to any path with the standard `{members:[...], invitations:[]}` shape using the supplied rows.
internal/mcp/dispatch_http_advanced_test.go:876
↓ 6 callersFunctionmergeActivityMeta
mergeActivityMeta combines two activity metadata JSON strings, accumulating the "changes" field. If both contain changes, they are joined with "; ". O
internal/store/activities.go:515
↓ 6 callersFunctionmintPAT
The PAT legs. Not a copy of the session legs for tidiness: a PAT authenticates through `TokenAuth`, a different middleware path with scopes and an all
internal/server/handlers_stream_session_liveness_test.go:192
↓ 6 callersFunctionmirrorConventionMetadata
A convention keeps its metadata twice (TASK-2257). The ordinary fields (`trigger`, `scope` / `surfaces`, `enforcement` / `priority`, `category`, `comm
internal/store/items_convention_mirror.go:32
↓ 6 callersFunctionmkUnverifiedUser
(t *testing.T, srv *Server, email string)
internal/server/my_invitations_test.go:58
↓ 6 callersFunctionmount
(extra: Record<string, unknown> = {})
web/src/lib/components/common/DialogShell.svelte.test.ts:7
↓ 6 callersFunctionmount
()
web/src/lib/chat/viewportOwner.svelte.test.ts:28
↓ 6 callersFunctionmustAllowed
(t *testing.T, s *Store, requestID, workspaceID string)
internal/store/oauth_connections_autoadd_test.go:57
↓ 6 callersFunctionmustRoles
(t *testing.T, in models.CommitmentRolesInput)
internal/store/commitment_c1_test.go:31
↓ 6 callersMethodnestedAsyncCallbacks
* `async` callbacks in the script that are NOT top-level declarations: * IIFEs, subscription callbacks, async timer bodies. Instrument C, and the
web/src/test/identityFenceSource.ts:125
↓ 6 callersFunctionnewAwarenessTracker
()
internal/collab/awareness.go:165
↓ 6 callersFunctionnewBUG3976Fixture
(t *testing.T, d store.DriverType)
internal/server/bug3976_settings_not_object_test.go:38
↓ 6 callersFunctionnewClaimCodeEnv
(t *testing.T)
internal/server/handlers_claim_code_test.go:86
↓ 6 callersFunctionnewConnectedTestStore
Connected-apps store tests (PLAN-943 TASK-954). What's covered: - ListUserOAuthConnections deduplicates a chain across multiple access-token rows (r
internal/store/connected_apps_test.go:29
↓ 6 callersFunctionnewCopyStorageFixture
(t *testing.T, plan string, origBytes, variantBytes int64)
internal/store/bug3653_copy_storage_test.go:27
↓ 6 callersFunctionnewDerivationFixture
(t *testing.T)
internal/server/handlers_attachments_thumbnails_parent_test.go:35
↓ 6 callersFunctionnewMailSink
newMailSink stands up a fake Maileroo v2 endpoint that records every outgoing email onto a channel, and returns a Sender wired to it. Mirrors the http
internal/server/handlers_verify_email_test.go:35
↓ 6 callersFunctionnewNeedsFixture
(t *testing.T)
internal/store/needs_snooze_test.go:23
↓ 6 callersFunctionnewProofFixture
(t *testing.T)
internal/server/task3352_invitation_proof_test.go:47
↓ 6 callersFunctionnewSortFixture
(t *testing.T)
internal/server/task3517_sort_order_test.go:26
↓ 6 callersFunctionnewTestConfig
(t *testing.T)
internal/config/encryption_key_test.go:12
↓ 6 callersFunctionnewTestOAuthServer
newTestOAuthServer builds an internal/oauth.Server matched to the test harness's canonical audience (testCanonicalAudience). Used by mcpAndOAuthEnable
internal/server/handlers_mcp_test.go:1885
↓ 6 callersFunctionnewU2Fixture
(t *testing.T)
internal/store/plan2348_u2_versions_test.go:23
↓ 6 callersFunctionnormalizeAgentName
normalizeAgentName delegates to models.NormalizeAgentName, the single source of the stored form of a self-declared agent name (TASK-4186 PR C moved it
internal/server/agent_name.go:18
↓ 6 callersFunctionnormalizeStringEncodedJSONFields
normalizeStringEncodedJSONFields recursively walks a parsed JSON value, finds string-typed `fields` and `tags` properties, parses them as embedded JSO
internal/mcp/dispatch.go:237
↓ 6 callersFunctionnoteCmd
()
cmd/pad/notes.go:19
↓ 6 callersFunctionnoticeFixture
(t *testing.T, native bool)
internal/store/commitment_notifications_test.go:19
↓ 6 callersFunctionnum
(n int)
internal/cli/format_markdown_test.go:22
↓ 6 callersMethodobserve
observe records a frame a connection sent. A frame that does not decode is not tracked (it is still relayed by the caller).
internal/collab/awareness.go:171
↓ 6 callersMethodobserver
()
internal/watchevents/observer.go:163
↓ 6 callersMethodoccurrenceOverrides
(q Queryer, scheduleID, key string)
internal/store/commitment.go:117
↓ 6 callersMethodonError
Surface an upload failure to the user.
web/src/lib/utils/commentAttachments.ts:101
↓ 6 callersMethodonlyLinkID
(t *testing.T)
internal/store/commitment_links_deleted_end_test.go:22
↓ 6 callersFunctionpackageHTTPResponse
packageHTTPResponse turns the recorded handler response into an MCP CallToolResult, mirroring ExecDispatcher's "JSON → structured + text fallback" beh
internal/mcp/dispatch_http.go:767
↓ 6 callersFunctionpagerServer
BUG-4024: ListAllItems and ListAllCollectionItems share one pager (listAllPages) that takes a start offset, keeps the first page's undeclared-filter k
internal/cli/bug4024_list_all_pager_test.go:20
↓ 6 callersFunctionparseMCPRequestBody
(body []byte)
internal/server/middleware_mcp_audit.go:496
↓ 6 callersFunctionparseMutableItemFields
(fieldsJSON string)
internal/models/item.go:1225
↓ 6 callersFunctionparseSessionIdentity
parseSessionIdentity reads the self-declared session identity off a stream request. It never fails: malformed fields are sanitized or dropped individu
internal/server/session_identity.go:79
↓ 6 callersFunctionpartialRolesFixture
(t *testing.T, deadline bool)
internal/store/commitment_partial_test.go:22
↓ 6 callersFunctionpatchItemFields
BUG-2783: a structured entry's id can equal the id of a comment, activity or version on the SAME item, and then two entries in one timeline payload sh
internal/server/handlers_timeline_id_collision_test.go:44
↓ 6 callersFunctionpatchRoles
Decode the wire-shaped partial so absent, null and zero remain distinct.
internal/store/commitment_partial_test.go:13
↓ 6 callersMethodpath
(it *models.Item)
internal/server/handlers_commitments_http_test.go:70
↓ 6 callersFunctionpendingOutboxCount
(t *testing.T, srv *Server)
internal/server/outbox_drain_test.go:91
↓ 6 callersFunctionpendingOwner
TASK-3397 (U8a): pending app-install reservations and their caps.
internal/store/app_pending_test.go:14
↓ 6 callersFunctionpersistReplace
( userId: string | null, ws: string, rows: ItemIndexRow[], cursor: string, includesUnparentedMetadata: bo
web/src/lib/stores/localIndexPersistence.ts:841
↓ 6 callersFunctionplanLimitMessage
planLimitMessage returns a human-readable statement-of-fact sentence for a plan limit violation. Each surface (web toast, CLI, MCP hint) appends its o
internal/server/handlers_cloud.go:1859
↓ 6 callersMethodplanLimitMintOpts
planLimitMintOpts returns the store option that makes a user-scoped mint enforce the owner's plan limit inside its own transaction (BUG-2808). Cloud m
internal/server/handlers_cloud.go:1670
↓ 6 callersMethodplanLinkedTx
planLinkedTx plans the cascade of a change to one date of itemID's outstanding occurrence over the component c that pinCommitmentTx read (the caller m
internal/store/commitment_cascade.go:406
↓ 6 callersFunctionpollAndSaveCLIAuth
pollAndSaveCLIAuth polls a pending CLI auth session until it is approved, then persists the issued token as credentials for cfg.BaseURL(). It is the s
cmd/pad/cmd_auth.go:483
↓ 6 callersFunctionpreflightNULForMigration
--- audit-log --- preflightNULForMigration refuses a SQLite-to-PostgreSQL migration whose source carries values PostgreSQL will not accept, listing th
cmd/pad/cmd_db.go:1004
↓ 6 callersFunctionprepareProvision
prepareProvision is the confirm handler's first half, as the owner.
internal/server/handlers_apps_provision_test.go:355
↓ 6 callersFunctionptrFloat
(f float64)
internal/server/handlers_playbook_match_test.go:54
↓ 6 callersFunctionpublishTyped
publishTyped is publishN for tests that care which event types land, and is the reason neither helper recomputes an ID: since BUG-2736 the IDs a bus i
internal/events/idspace_test.go:39
↓ 6 callersFunctionraised
raised reports whether a gap signal is pending, without blocking. Reading it CONSUMES the signal, which is what a real consumer's select does.
internal/events/gap_signal_test.go:12
↓ 6 callersFunctionrawPeerAddr
rawPeerAddr returns the untampered TCP peer address captured by CapturePeerAddr, falling back to the current r.RemoteAddr if the middleware wasn't ins
internal/server/middleware_realip.go:33
↓ 6 callersFunctionreadAllThen
(after func(w http.ResponseWriter, r *http.Request))
cmd/pad/bug3476_import_watch_test.go:95
↓ 6 callersFunctionreadConfig
(t *testing.T, path string)
internal/mcp/install_test.go:877
↓ 6 callersMethodreadItem
readItem handles pad://workspace/{ws}/items/{ref}. Why JSON-then-format instead of `--format markdown`: pad's CLI `--format markdown` for `item show`
internal/mcp/resources.go:321
↓ 6 callersFunctionreadRawSSEFramesAuthed
(t *testing.T, ctx context.Context, url, lastEventID, token string)
internal/server/handlers_events_resume_test.go:25
↓ 6 callersFunctionreadRegistration
(t *testing.T, path string)
internal/cli/session_registry_test.go:66
↓ 6 callersFunctionreadReopenID
(t *testing.T, f *schedHTTP)
internal/server/schedule_reopen_privacy_test.go:13
↓ 6 callersFunctionreadSyncRow
Read the `sync` meta row, or undefined when this cache has never synced.
web/src/lib/stores/localIndexPersistence.ts:309
↓ 6 callersFunctionreadWorkflow
(t *testing.T, name string)
internal/buildtools/ci_release_branches_test.go:61
↓ 6 callersMethodrecordMCPCallMetrics
recordMCPCallMetrics fans the audit-row data out to Prometheus. No-op when metrics aren't wired (selfhost / tests). Kept separate from MCPAuditLog so
internal/server/middleware_mcp_audit.go:366
↓ 6 callersMethodrecordOAuthFlow
recordOAuthFlow bumps the pad_oauth_flows_total counter with the supplied stage label. No-op when metrics aren't wired (selfhost / tests). Stage vocab
internal/server/handlers_oauth.go:128
↓ 6 callersMethodreenter
(name string)
internal/watchevents/observer_test.go:512
↓ 6 callersFunctionref
(id string)
internal/appstore/comments_test.go:107
↓ 6 callersMethodregisterPendingAck
registerPendingAck creates an entry in the room's pending-acks map keyed on requestID, expecting acks/brackets from `applier`. It seeds the bracket ba
internal/collab/applier.go:992
↓ 6 callersFunctionrelationArrayElements
THREE READERS OF ONE SHAPE, and they are three because they answer three different questions. Picking the wrong one has been a defect twice over, so t
internal/store/relation_referents.go:348
↓ 6 callersFunctionrelease
()
web/e2e/bug-3204-cursor-snapback.spec.ts:120
↓ 6 callersMethodrelease
release gives up the claim; a no-op once the write recorded its answer.
internal/server/idempotency_keys.go:42
↓ 6 callersFunctionreloadGraphAccess
reloadGraphAccess checks both ends after the pin. Direct store callers may keep their supplied snapshot; HTTP always supplies a transaction loader.
internal/store/commitment_access.go:86
↓ 6 callersFunctionrepoRoot
(t *testing.T)
internal/models/reserved_field_decode_guard_test.go:97
↓ 6 callersFunctionreport
(name, rows, thresholds=(0.5, 0.7, 0.9))
scripts/decision-eval/eval2.py:55
↓ 6 callersFunctionrequesterToOAuthRequest
===================================================================== Translation helpers ============================================================
internal/oauth/storage.go:516
↓ 6 callersMethodrequireAppsOwner
requireAppsOwner gates every install route: apps available here, and the caller an owner of the workspace.
internal/server/handlers_apps_install.go:183
↓ 6 callersMethodrequireCompanionCollection
requireCompanionCollection refuses a write to a collection outside the install's companions. Every fenced write method calls it, or requireCompanionIt
internal/store/fenced_tx.go:202
↓ 6 callersFunctionreservedPatchErrorBody
BUG-2627 part 2 — `fields_patch` is the door every user field-setter lowers into (`pad item update --field`, the MCP `field` param on both transports)
internal/server/handlers_items_reserved_fieldpatch_test.go:22
↓ 6 callersMethodresolveChatConversation
(w http.ResponseWriter, r *http.Request, actor models.ConversationActor)
internal/server/handlers_chat.go:65
↓ 6 callersFunctionresolveOne
Exact-title resolution and read-side hydration for `relation` values (PLAN-2857 U6). U1 accepted a UUID or a ref. U6 adds a THIRD spelling — an exact
internal/store/relation_titles_test.go:25
↓ 6 callersMethodresolvePath
(it *models.Item)
internal/server/handlers_commitments_resolve_test.go:22
↓ 6 callersFunctionrespText
(t *testing.T, resp any)
internal/mcp/bug3217_fields_number_literals_test.go:27
↓ 6 callersFunctionrestrictedTitleFixture
--- title resolution is scoped to what the caller can SEE ---------------- PLAN-2857 U6 rule, one step past "collapse ambiguous when nothing is visib
internal/server/relation_titles_doors_test.go:255
↓ 6 callersMethodresync
(w io.Writer)
cmd/pad/cmd_watch_chat.go:338
↓ 6 callersMethodretry
Re-read on demand (Retry) — the same invalidate-then-fetch path a restore uses.
web/src/lib/attachments/surfaceMetadata.svelte.ts:106
↓ 6 callersFunctionrl3310Request
BUG-3310: the general API bucket is charged from two arms of the rate limit middleware: the auth-default arm (/api/v1/auth/* paths with no bucket of t
internal/server/middleware_ratelimit_bug3310_test.go:16
↓ 6 callersFunctionrnd
()
web/src/lib/collab/materializer/atBlank.test.ts:22
↓ 6 callersFunctionroleDay
(value: string, zone: string)
web/src/lib/calendar/presentation.ts:269
↓ 6 callersFunctionrtLimits
()
internal/store/runtime_pool_test.go:26
↓ 6 callersMethodrun
* Issue a run. ALWAYS issues; never joins an existing one. * * `work` receives a handle whose `isLatest()` says whether this run may * still com
web/src/lib/stores/singleFlight.ts:96
↓ 6 callersFunctionrunApplierEcho
runApplierEcho spawns a goroutine that reads all incoming TextMessage frames on conn, looks for applier_request, and immediately responds with applier
internal/collab/applier_test.go:17
↓ 6 callersFunctionrunCatchUp
(t *testing.T, rec *catchUpRecorder, format string)
cmd/pad/task4035_catch_up_test.go:61
↓ 6 callersFunctionrunPatch
(t *testing.T, args ...string)
cmd/pad/task3585_patch_retry_test.go:53
↓ 6 callersMethodrunWorkspaceRace
(t *testing.T, r workspaceRace, compete bool)
internal/server/handlers_plan_limit_race_test.go:454
↓ 6 callersFunctionscanCollectionDoneFilters
scanCollectionDoneFilters consumes rows yielding (id, schema, settings) and resolves each into a collectionDoneFilter. When a collection's schema fai
internal/store/items.go:5263
← previousnext →2,701–2,800 of 28,840, ranked by callers