MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 10 callersFunctionisStartSlotCollection
isStartSlotCollection reports whether the start rules apply to a collection: it is the playbook kind AND its schema declares start as the run/offer se
internal/server/bootstrap_start.go:40
↓ 10 callersFunctionitemCopyLine
itemCopyLine makes a server-supplied string safe to drop into a table row. Schema keys, labels, option values, link types and validator messages are a
cmd/pad/cmd_item.go:3113
↓ 10 callersFunctionitemsIn
itemsIn returns the titles of the items the given collection holds, resolved by EXACT slug so the assertion cannot be satisfied by the very fallback u
internal/server/collection_resolve_test.go:51
↓ 10 callersMethodkill
(reason string)
internal/materialize/supervisor.go:468
↓ 10 callersMethodkinds
(t *testing.T, userID string)
internal/store/notifications_test.go:11
↓ 10 callersMethodlastReferencedAt
(t *testing.T, id string)
internal/store/attachments_gc_claim_test.go:66
↓ 10 callersFunctionlibraryUpdateCmd
libraryUpdateCmd: pad library update <ref> (TASK-3462 U3c).
cmd/pad/cmd_library.go:637
↓ 10 callersFunctionlinkEdge
(p, c string)
internal/schedule/links_test.go:22
↓ 10 callersFunctionlinkRole
(name string)
internal/store/commitment_links.go:115
↓ 10 callersFunctionlinkState
(edges []Edge, at time.Time)
internal/schedule/links_test.go:36
↓ 10 callersMethodlogActivity
logActivity is a helper that logs activity, ignoring errors (best-effort).
internal/server/handlers_documents.go:416
↓ 10 callersFunctionmapCollectionUpdate
mapCollectionUpdate dispatches `pad collection update <slug> [--name ...] [--icon ...] [--description ...] [--prefix ...] [--schema ...] [--fields ...
internal/mcp/dispatch_http_routes.go:1060
↓ 10 callersMethodmint
mint mints as the viewer; returns the status, the URL and its code.
internal/server/task3414_item_actions_test.go:61
↓ 10 callersMethodmint
(t *testing.T, u *models.User, scopes string)
cmd/pad/task4507_token_edit_test.go:57
↓ 10 callersFunctionmount
(factor: 'password' | 'totp' | 'email' | 'unavailable')
web/src/lib/components/auth/StepUpPrompt.svelte.test.ts:15
↓ 10 callersFunctionmount
(extra: Record<string, unknown> = {}, expectPanel = true)
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:136
↓ 10 callersMethodmustExist
(t *testing.T, name string)
internal/server/handlers_workspace_create_consent_test.go:187
↓ 10 callersFunctionnewBackfillTestStore
BackfillOAuthConnections tests (PLAN-1519 / TASK-1522 / IDEA-1517 §2). What's covered: - Pre-TASK-952 session (no key) → all_current=1, no
internal/store/oauth_connections_backfill_test.go:29
↓ 10 callersFunctionnewBoardFixture
(t *testing.T)
internal/mcp/board_test.go:28
↓ 10 callersFunctionnewFlippedRedisBus
(t *testing.T)
internal/events/redis_idspace_test.go:50
↓ 10 callersFunctionnewLegacyFixture
(t *testing.T)
internal/server/bug3353_legacy_token_test.go:28
↓ 10 callersMethodnewLinkBudget
()
internal/store/commitment_cascade.go:47
↓ 10 callersFunctionnewNeedsFake
(t *testing.T)
cmd/pad/cmd_needs_test.go:27
↓ 10 callersFunctionnewOAuthConnTestStore
OAuth connection store tests (PLAN-1519 / TASK-1520 — Phase A foundation). What's covered: - CreateOAuthConnection + GetOAuthConnection round-trip w
internal/store/oauth_connections_test.go:35
↓ 10 callersFunctionnewRestoreCollabFixture
(t *testing.T, name string)
internal/server/handlers_items_collab_versions_test.go:576
↓ 10 callersFunctionnewStub
newStub starts a test HTTP server and returns a CloudClient pointed at it. Callers supply the handler to control the response.
internal/billing/cloud_client_test.go:16
↓ 10 callersFunctionnewTask3615Fixture
(t *testing.T, srv *Server)
internal/server/task3615_catch_up_test.go:35
↓ 10 callersFunctionnewTestFSStore
(t *testing.T)
internal/attachments/fs_store_test.go:22
↓ 10 callersFunctionnormalizeStringEncodedJSONFields
normalizeStringEncodedJSONFields recursively walks a parsed JSON value and normalizes `fields` and `tags` properties in both shapes: JSON-encoded stri
internal/mcp/dispatch.go:247
↓ 10 callersFunctionopen
* Open the workspace's IDB database for the given user, creating * object stores on first run. Cached so subsequent calls reuse the * connection. Re
web/src/lib/stores/localIndexPersistence.ts:351
↓ 10 callersFunctionpackageStructuredResponse
packageStructuredResponse encodes payload to JSON, then decodes it back to a generic any so the StructuredContent surface matches the shape MCP client
internal/mcp/dispatch_http_links.go:502
↓ 10 callersMethodparkedCount
()
internal/server/task4032_push_record_failure_test.go:40
↓ 10 callersFunctionpgCount
pgCount counts rows with a raw $1-style query on the Postgres database.
internal/store/runtime_pool_test.go:63
↓ 10 callersFunctionpl4745WantNotLinked
(t *testing.T, got map[string]interface{}, code string)
internal/server/task4745_pending_link_test.go:173
↓ 10 callersFunctionputDevice
(srv *Server, bearer, conn, body string)
internal/server/handlers_push_devices_test.go:107
↓ 10 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/watchevents/gap_signal_test.go:7
↓ 10 callersFunctionrateLimitAddr
rateLimitAddr is the part of a client address a per-address bucket is keyed on (BUG-3308): an IPv6 address counts as its /64, because a single subscri
internal/server/middleware_ratelimit.go:1047
↓ 10 callersFunctionreadRawSSEFrames
readRawSSEFrames reads whole SSE frames verbatim, unlike connectSSE which keeps only the event type and data. The `id:` line is the subject here, so i
internal/server/handlers_events_resume_test.go:20
↓ 10 callersFunctionreadRefusedRawDraft
( userId: string, itemId: string, now = Date.now(), slot: RefusedRawDraftSlot = 'pending', )
web/src/lib/items/refusedRawDraft.ts:203
↓ 10 callersMethodrecordScheduleWrite
recordScheduleWrite logs the activity and publishes the item event. Both are best-effort and non-transactional, like a verification. An item_updated S
internal/server/handlers_schedules.go:259
↓ 10 callersMethodrecoverSweeper
recoverSweeper is the panic firewall for the long-running background sweeper loops (orphan GC, op-log GC, token reaper, workspace purge). Each of thos
internal/server/server.go:809
↓ 10 callersFunctionredeem
(srv *Server, body string)
internal/server/handlers_apps_provision_test.go:77
↓ 10 callersFunctionrenderMD
renderMD is a small test helper that builds + renders the synthetic tree with a fixed clock and returns the markdown output as a string.
internal/cmdhelp/md_test.go:18
↓ 10 callersFunctionrenegotiateCall
(f *schedHTTP, u *models.User, body any)
internal/server/handlers_commitments_test.go:343
↓ 10 callersFunctionreopenState
(t *testing.T, s *Store)
internal/store/schedule_reopen_test.go:17
↓ 10 callersMethodrequireActiveUserTx
requireActiveUserTx is the one gate every credential-minting insert passes (BUG-3349): it reads the user's row inside the insert's own transaction, FO
internal/store/users.go:1303
↓ 10 callersMethodrowCount
()
internal/collab/manager_test.go:359
↓ 10 callersFunctionrunNeedsCmd
(t *testing.T, f *needsFake, args ...string)
cmd/pad/cmd_needs_test.go:59
↓ 10 callersFunctionrunSessionCmd
(t *testing.T, args ...string)
cmd/pad/cmd_session_registry_test.go:43
↓ 10 callersFunctionscanCount
(t *testing.T, s *Store, query string, args ...any)
internal/store/items_create_tx_test.go:52
↓ 10 callersMethodscheduleViewZone
scheduleViewZone is the zone a schedule's walls are read in: its own, or for a floating one the recipient's.
internal/store/commitment.go:99
↓ 10 callersFunctionseedConnectedAppForMutations
seedConnectedAppForMutations creates a user + workspace + an oauth_connections row directly so the mutation handlers have something to mutate. Returns
internal/server/handlers_connected_apps_mutations_test.go:64
↓ 10 callersFunctionseedExportLimitWorkspace
(t *testing.T, srv *Server, slug string)
internal/server/task4839_export_limit_test.go:18
↓ 10 callersMethodseen
seen reports whether id was recorded within the window, and records it when it was not.
cmd/pad/cmd_watch.go:119
↓ 10 callersFunctionsend
(call: () => Promise<WorkspaceTabsResponse>)
web/src/lib/stores/tabs.svelte.ts:124
↓ 10 callersFunctionsessionRegistryTestEnv
sessionRegistryTestEnv: fresh HOME (empty registry), a temp cwd with NO .pad.toml (so ResolveAgentName falls to PAD_AGENT / runtime detection), every
cmd/pad/cmd_session_registry_test.go:20
↓ 10 callersFunctionsessionUserPayload
(user *models.User)
internal/server/handlers_auth.go:67
↓ 10 callersFunctionsetupTokenEnv
(t *testing.T)
cmd/pad/cmd_token_test.go:134
↓ 10 callersFunctionsha256Hex
(b []byte)
internal/attachments/fs_store_test.go:17
↓ 10 callersFunctionsignUp
(t *testing.T, srv *Server, addr string)
internal/server/handlers_agent_signup_test.go:94
↓ 10 callersMethodstart
Fetch the counts, and refetch on window focus. A second call is a no-op.
web/src/lib/stores/chat.svelte.ts:98
↓ 10 callersFunctionstartBody
(t *testing.T, f *startFixture, it *models.Item, body string)
internal/server/task4914_start_demote_test.go:23
↓ 10 callersMethodstop
()
web/src/lib/stores/chat.svelte.ts:106
↓ 10 callersFunctionstr
* Read a string param. Absent (undefined/null) returns undefined — not an * error, matching strArray's absent-vs-malformed line. A present value of a
web/src/lib/webmcp/dispatch.ts:50
↓ 10 callersFunctionstr
(x: unknown)
web/src/mcp-app/boardModel.ts:95
↓ 10 callersFunctionstreamClosedWithin
BUG-3007 — a stream must stop delivering when the CREDENTIAL that opened it is no longer valid. Both SSE endpoints revalidate something on a 60s jitt
internal/server/handlers_stream_session_liveness_test.go:46
↓ 10 callersMethodstreamCredentialStillValid
streamCredentialStillValid reports whether a long-lived connection may keep running. Every tick site calls it: both SSE endpoints, collab, and the MCP
internal/server/stream_credential_liveness.go:71
↓ 10 callersFunctiontask3389Fixture
(t *testing.T)
internal/store/task3389_app_projection_test.go:54
↓ 10 callersFunctiontask3389Pending
(t *testing.T, s *Store)
internal/store/task3389_app_projection_test.go:28
↓ 10 callersFunctiontask3397Fixture
(t *testing.T)
internal/store/task3397_provision_test.go:28
↓ 10 callersFunctiontask3867Mail
(t *testing.T, e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:136
↓ 10 callersFunctiontask3867Scopes
(t *testing.T, e *tokenAuthEnv, scopes string)
internal/server/task3867_token_access_test.go:38
↓ 10 callersMethodvariant
variant creates a derived thumbnail row for parent, in ws.
internal/store/attachments_copy_plan_test.go:63
↓ 10 callersMethodverify
(remote string, body map[string]interface{})
internal/server/task4137_pkce_twofactor_test.go:95
↓ 10 callersFunctionview
(extra: Partial<ItemCommitmentView> = {})
web/src/lib/test/commitmentFixtures.ts:11
↓ 10 callersFunctionwaitForSubscribers
waitForSubscribers polls until the channel has (or provably lacks) subscribers. CALL IT AFTER Subscribe AND BEFORE THE FIRST Publish, on any test tha
internal/events/redis_namespace_test.go:203
↓ 10 callersFunctionwaitMail
waitMail blocks for the next captured email or fails on timeout. Emails are sent from a goAsync goroutine, so the caller can't assume synchronous deli
internal/server/handlers_verify_email_test.go:66
↓ 10 callersFunctionwantKinds
(t *testing.T, what string, got []string, want ...string)
internal/store/notifications_test.go:29
↓ 10 callersFunctionworkspaceCount
(t *testing.T, srv *Server)
internal/server/workspace_owner_compensation_test.go:73
↓ 10 callersFunctionworkspaceListed
(t *testing.T, srv *Server, name string)
internal/server/bug3354_import_bundle_bomb_test.go:66
↓ 10 callersFunctionwriteCredStore
(t *testing.T, home, serverURL, token string)
cmd/pad/env_token_override_test.go:33
↓ 10 callersFunctionwritePIDRecord
writePIDRecord serialises rec to path.
internal/cli/pidfile.go:46
↓ 10 callersMethodwriteScheduleError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/commitment_errors.go:114
↓ 9 callersFunctionAddPadEntry
AddPadEntry reads (or creates) the JSON config at path, ensures mcpServers.pad points to `binary`, and writes the file back. Existing entries outside
internal/mcp/install.go:211
↓ 9 callersMethodAddReaction
AddReaction adds an emoji reaction to a comment. Returns the created reaction, or the existing one if the same user+emoji already exists.
internal/store/reactions.go:11
↓ 9 callersFunctionCanonicalJSONNumbers
CanonicalJSONNumbers returns v with every number replaced by one canonical spelling of its exact value, for code that COMPARES decoded field values (B
internal/models/fields_json.go:146
↓ 9 callersMethodClaimAccountByVerification
ClaimAccountByVerification hands a never-verified account to whoever holds its mailbox, proven by the email-verification token (BUG-3382). The token w
internal/store/account_claim.go:62
↓ 9 callersMethodClaimNeverAttachedAttachment
ClaimNeverAttachedAttachment is the orphan GC's atomic claim for a never-attached row (BUG-2415): a conditional DELETE that re-asserts the row is stil
internal/store/attachments.go:1115
↓ 9 callersMethodCloudMode
CloudMode reports whether the marketing footer is currently enabled. Templates read it through getCloudMode() so they pick up the same snapshot for th
internal/email/sender.go:97
↓ 9 callersMethodCompleteDecisionJob
CompleteDecisionJob retires a claimed job. The job is deleted only if its generation is still the one claimed. If a write re-enqueued it mid-evaluati
internal/store/decisions.go:332
↓ 9 callersFunctionContainsNUL
ContainsNUL reports whether the string carries a real NUL byte. This is the universal half of the invariant and it needs no classing: no column of an
internal/textguard/textguard.go:48
↓ 9 callersMethodCountBacklinks
CountBacklinks returns the total number of same-workspace backlinks the requester would see for a given target, applying the same visibility filter as
internal/store/wiki_links.go:1320
↓ 9 callersFunctionCreatePatch
CreatePatch computes a compact patch that transforms oldText into newText. The patch can be applied with ApplyPatch to recover newText from oldText. B
internal/diff/diff.go:23
↓ 9 callersFunctionCurrentUserFromContext
CurrentUserFromContext returns the user attached by WithCurrentUser (or by the standard auth middleware), and a boolean signalling whether one was pre
internal/server/context.go:74
↓ 9 callersFunctionDecodeFieldsJSON
DecodeFieldsJSON decodes an item's fields blob with every number kept as the literal it was written as (a json.Number), for code that decodes a blob i
internal/models/fields_json.go:32
↓ 9 callersFunctionDefaultNotificationSettings
DefaultNotificationSettings is what a user with no settings row has: every kind on, agent activity off.
internal/models/notification_settings.go:18
↓ 9 callersMethodDeleteDocument
(id string)
internal/store/documents.go:1109
↓ 9 callersMethodDeleteReminder
DeleteReminder uses the checked commitment deletion under the same locks and expected alarm identity as rearm and acknowledgement.
internal/store/reminder_commitment.go:225
↓ 9 callersMethodDeliverAppEvent
DeliverAppEvent delivers one app event to one app hook, synchronously, with the owner path's retry schedule (maxDeliveryAttempts, linear backoff on co
internal/webhooks/app_delivery.go:133
↓ 9 callersMethodEffectivePlan
EffectivePlan is the plan entitlement is decided from: the stored plan, "free" when it is empty, and "free" once its expiry has passed (BUG-3356). The
internal/models/user.go:130
← previousnext →1,701–1,800 of 31,685, ranked by callers