Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
31,685 in github.com/PerpetualSoftware/pad
⨍
Functions
31,685
◇
Types & classes
3,533
↓ 3 callers
Function
matchNoneProvider
()
internal/server/handlers_playbook_match_ratelimit_test.go:33
↓ 3 callers
Function
matchesEvent
matchesEvent checks whether a webhook's event filter (JSON array) includes the given event name, or the wildcard "*".
internal/webhooks/dispatcher.go:759
↓ 3 callers
Function
maxSeq
(t *testing.T, s *Store, workspaceID string)
internal/store/items_cross_workspace_copy_test.go:149
↓ 3 callers
Method
maxSeq
(workspaceID string)
internal/server/handlers_items_copy_preflight_test.go:889
↓ 3 callers
Function
mcpClientClass
mcpClientClass returns the client class for a User-Agent header value.
internal/server/middleware_mcp_client.go:64
↓ 3 callers
Function
mcpInstallCmd
mcpInstallCmd implements `pad mcp install [agent]`. With no arguments, prints the install status across supported agents (so the user picks one). Wit
cmd/pad/mcp.go:49
↓ 3 callers
Function
mcpResourceFromContext
(ctx context.Context)
internal/server/middleware_mcp_auth.go:673
↓ 3 callers
Method
mcpToolText
BUG-3982: over remote /mcp, a PAT minted with a workspace_id is confined to that workspace, as it is over REST. The server is built through wireMCP, t
cmd/pad/bug3982_mcp_pinned_test.go:18
↓ 3 callers
Function
md
(ed: Editor)
web/src/lib/items/confirmedBaseSent.svelte.test.ts:50
↓ 3 callers
Function
mdNum
(n int)
cmd/pad/format_markdown_list_test.go:12
↓ 3 callers
Function
measure
()
web/src/lib/chat/viewport.ts:19
↓ 3 callers
Function
member
( role: WorkspaceMembership['role'], collection_access: WorkspaceMembership['collection_access'] )
web/src/lib/utils/permissions.canExport.test.ts:8
↓ 3 callers
Method
memberRoleReachesCollection
memberRoleReachesCollection is the member half of editorRoleReaches, shared with the collab socket's write decision, which has no request context. Th
internal/server/server.go:4226
↓ 3 callers
Method
membersPath
BUG-3355: a workspace must keep at least one owner, and its CANONICAL owner (workspaces.owner_id, which sets its URL, restore rights and plan limits)
internal/server/bug3355_last_owner_test.go:19
↓ 3 callers
Function
mergeAllowedWorkspaces
mergeAllowedWorkspaces computes the effective workspace allow-list for an OAuth-authenticated MCP request from the two sources described in handleMCPO
internal/server/middleware_mcp_auth.go:474
↓ 3 callers
Function
mergeDispatchInput
mergeDispatchInput returns a copy of the user-supplied MCP input augmented with the same default injections BuildCLIArgs applies — session workspace,
internal/mcp/dispatch.go:80
↓ 3 callers
Method
messagesAfter
(ctx context.Context, number int, after int64, limit int)
cmd/pad/cmd_watch_chat.go:17
↓ 3 callers
Function
metricsToolLabel
parseMCPRequestBody extracts (tool_name, args_hash) from the JSON-RPC envelope in body. Two cases: - method == "tools/call" → tool_name = params.name
internal/server/middleware_mcp_audit.go:418
↓ 3 callers
Function
migratedRemedy
migratedRemedy composes the operator-facing refusal text. `destination` names where the data went. The CALLER decides what to put there and is respon
internal/store/migrated.go:368
↓ 3 callers
Function
migrationCommitment
(t *testing.T)
cmd/pad/commitment_bundle_v2_test.go:13
↓ 3 callers
Function
milestoneShape
BUG-4612: a forecast or an active milestone selection lives beside the schedule and cascades away with it, so a commitment that has either is not a si
internal/store/reminder_commitment_milestone_test.go:16
↓ 3 callers
Function
miniredisTransport
(t *testing.T)
internal/server/task3365_access_kick_test.go:96
↓ 3 callers
Method
mintInstallCodeTx
mintInstallCodeTx mints a fresh install code for installID: 128 random bits, stored only as their SHA-256, redeemable once within InstallCodeTTL.
internal/store/app_provision.go:415
↓ 3 callers
Function
mintStatus
(srv *Server, in testInstall, secret string)
internal/server/task3397_lifecycle_test.go:37
↓ 3 callers
Function
mintWithResourceTier
mintWithResourceTier is mintWithResource asking for scope and consenting to tier (read / write / admin).
internal/server/task3321_u2a_audience_test.go:63
↓ 3 callers
Function
missing
()
web/e2e/task-3415-real-install.spec.ts:40
↓ 3 callers
Function
mockMailerooEndpoint
mockMailerooEndpoint stands up an httptest server that speaks enough of Maileroo's v2 JSON API to satisfy email.Sender. Returning 500 exercises the se
internal/server/cloud_admin_gate_test.go:754
↓ 3 callers
Function
monthDays
(month: string)
web/src/lib/calendar/monthGrid.ts:39
↓ 3 callers
Function
mountStrip
(itemId: string | null)
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:255
↓ 3 callers
Function
mountViewer
(props: Partial<Props> = {})
web/src/lib/components/common/Lightbox.svelte.test.ts:195
↓ 3 callers
Function
move
(e: PointerEvent)
web/src/lib/chat/longPress.ts:36
↓ 3 callers
Function
moveWestFrom
moveWestFrom moves a floating Tokyo schedule to the LA copier, checks that the destination arms wantWall and fires it at wantAt (its LA instant: next_
internal/store/schedule_copy_r3_test.go:56
↓ 3 callers
Function
multiIndexFixture
The reverse index and `multi_relation` (PLAN-2857 U4, population-table rows 20-22). These rows were OPEN on the table as questions, not as work: U5 b
internal/store/relation_links_multi_test.go:19
↓ 3 callers
Method
mustBeMemberLimitRefusal
--- the invitee's refusal: its own code, the owner named, no upgrade link --- mustBeMemberLimitRefusal asserts the invitee-facing refusal (BUG-3098 ru
internal/server/handlers_invitation_accept_limit_test.go:246
↓ 3 callers
Function
mustJSONString
(s string)
internal/mcp/bug2772_remote_agent_identity_test.go:197
↓ 3 callers
Function
mustRead
(path string, v any)
scripts/decision-eval/attention/main.go:365
↓ 3 callers
Function
namesFile
namesFile reports whether path still names the file f has open.
internal/cli/pidfile_unix.go:138
↓ 3 callers
Function
namespaceStamp
namespaceStamp is the value a writer records for the namespace it just observed something in: the namespace's inode, the unidentified sentinel when Li
internal/cli/session_owner.go:276
↓ 3 callers
Function
narrowRelationRow
( row: ItemIndexRow | null | undefined, value: string, declaredCollection: string | undefined, // `null` a
web/src/lib/collections/relationGroups.ts:132
↓ 3 callers
Function
nativeFields
parseFieldKVP normalizes the --field flag's various wire shapes (single string, []string, []any) into a `key→value` map. A MALFORMED entry — empty, or
internal/mcp/dispatch_http.go:1072
↓ 3 callers
Function
nativeRolesObject
()
internal/store/commitment_bundle_v2_test.go:40
↓ 3 callers
Function
navigated
(p: Promise<unknown>, before: string = urlKey())
web/src/lib/stores/chatSurface.svelte.ts:563
↓ 3 callers
Function
needsIDsAt
needsIDsAt lists, sorted, the ids of the stamps at the normalised second at (none for "").
internal/store/needs_snooze.go:104
↓ 3 callers
Function
needsItemPath
(ws, ref, kind string)
internal/cli/client_needs.go:35
↓ 3 callers
Method
needsOtherCommentStamps
needsOtherCommentStamps reads the other comments (needsOthersComment) on the items, keyed by item id, each with its normalised second.
internal/store/needs_snooze.go:54
↓ 3 callers
Function
networkUnreachableError
(isIdempotent: boolean)
web/src/lib/api/client.ts:704
↓ 3 callers
Method
newActivity
newActivity is the activity delta since the observer was created.
internal/server/handlers_items_copy_test.go:635
↓ 3 callers
Function
newAdvisoryLockGate
newAdvisoryLockGate opens a transaction and takes the advisory lock for every supplied workspace, in sorted key order (the gate obeys the same protoco
internal/store/items_cross_workspace_copy_pg_test.go:169
↓ 3 callers
Function
newAppWebhookSecret
()
internal/store/app_webhooks.go:59
↓ 3 callers
Function
newAttentionFixture
(t *testing.T)
internal/decision/attention_test.go:157
↓ 3 callers
Function
newB2367StateFixture
(t *testing.T)
internal/server/bug2367_close_state_test.go:31
↓ 3 callers
Function
newCancelTestBus
BUG-2749: a client that disconnects while its workspace's Redis subscription is being established used to hold both admission slots — the process-wide
internal/events/redis_subscribe_cancel_test.go:29
↓ 3 callers
Function
newCappedUploadFixture
BUG-3653 part B: an app upload is charged against the workspace owner's storage_bytes limit, as a human upload is (TASK-3619), on top of the install's
internal/appstore/bug3653_storage_cap_test.go:20
↓ 3 callers
Function
newChatGPTTransport
newChatGPTTransport is the HTTP handler /mcp/chatgpt serves: the remote transport, with each tool's securitySchemes lifted to the top level of tools/l
cmd/pad/cmd_server_chatgpt.go:80
↓ 3 callers
Function
newCommentBearerGateFixture
(t *testing.T)
internal/server/handlers_comments_bearer_gate_test.go:36
↓ 3 callers
Function
newCopyPreflightFixtureOn
newCopyPreflightFixtureOn is the fixture on a server the caller built, so a test can run it on Postgres.
internal/server/handlers_items_copy_preflight_test.go:88
↓ 3 callers
Function
newDeleteFixture
(t *testing.T, s *Store)
internal/store/task4278_ctx_test.go:109
↓ 3 callers
Function
newDependentFix
The gate view of an item carries its dependents: the gates it blocks, so the items its success releases (TASK-4611). Only live dependents the reader c
internal/server/handlers_commitment_gate_dependents_test.go:17
↓ 3 callers
Function
newEpochFixture
newEpochFixture builds a workspace with a live and a doomed collection, one item in each, and a session for a member whose access is either "all" (unr
internal/server/bug3428_phase2_epoch_guard_test.go:31
↓ 3 callers
Function
newFailingSubscribeBus
(t *testing.T, failures int64)
internal/events/redis_subscribe_failed_test.go:63
↓ 3 callers
Function
newLimitedWorkspaceFixture
newLimitedWorkspaceFixture creates a free-plan owner with one seeded workspace, two further users (the member under test and the competitor's rival),
internal/store/limits_workspace_mint_race_test.go:116
↓ 3 callers
Function
newListSummaryFixture
listSummaryFixture: one workspace, one collection, one item whose content carries a recognizable marker string.
internal/mcp/dispatch_http_item_list_summary_test.go:40
↓ 3 callers
Function
newMaterializeRecovery
(s *Server, m Materializer, cfg materializeRecoveryConfig)
internal/server/materialize_recovery.go:160
↓ 3 callers
Function
newMentionNotifyFixture
(t *testing.T)
internal/store/task3946_mention_notify_test.go:22
↓ 3 callers
Function
newMetricsTestServer
newMetricsTestServer builds a Server with metrics enabled and the given static token, via storetest.NewSQLite (IDEA-1914) — see testServer in server_t
internal/server/metrics_auth_test.go:15
↓ 3 callers
Function
newMultiDoorFixture
newMultiDoorFixture extends the shared door fixture with a `multi_relation` collection and three distinct targets in the existing `people` collection.
internal/server/relation_multi_roundtrip_test.go:47
↓ 3 callers
Function
newProjectionFixtureNamed
newProjectionFixtureNamed is the fixture with the owner's display name set to ownerName (an email-shaped one exercises the name mask).
cmd/pad/chatgpt_projection_test.go:46
↓ 3 callers
Function
newRecordingPresenceObserver
()
internal/server/session_presence_observer_test.go:22
↓ 3 callers
Function
newRejectedSubscribeBus
(t *testing.T, s *rejectingSubscribeServer)
internal/events/redis_subscribe_rejected_test.go:56
↓ 3 callers
Function
newRejectingSubscribeServer
(t *testing.T, reply string, delay time.Duration)
internal/events/redis_subscribe_rejected_test.go:39
↓ 3 callers
Function
newRequestWithTokenWorkspace
newRequestWithTokenWorkspace is a request as TokenAuth leaves a user-less legacy workspace token: a workspace and no user.
internal/server/bug3353_legacy_token_test.go:230
↓ 3 callers
Function
newSafeTransport
newSafeTransport returns an *http.Transport whose DialContext resolves each hostname inside the dialer and validates every returned IP. Only IPs that
internal/urlimport/fetch.go:276
↓ 3 callers
Function
newSeedID
newSeedID is a stable test-only ID derived from the email. Used as both the user.id AND the unique-per-row component of user.username, so collisions a
internal/server/handlers_admin_billing_test.go:77
↓ 3 callers
Function
newSeqGuardBus
BUG-2744: the event sequence counter had no value guard, and the id was stringified through a Lua double. A corrupted counter (another type, a non-in
internal/events/bug2744_seq_guard_test.go:25
↓ 3 callers
Function
newSessionCookie
newSessionCookie returns the session token the response set, failing the test if it set none.
internal/server/handlers_auth_replaced_session_test.go:48
↓ 3 callers
Function
newSharedLeakEnv
BUG-1865: the cloud /mcp transport used to resolve the target workspace from a SINGLE process-global *mcp.WorkspaceState shared across every OAuth use
internal/mcp/bug1865_test.go:50
↓ 3 callers
Function
newStubSessionServer
(t *testing.T, meAccept string, sessionStatus int)
cmd/pad/env_token_override_test.go:204
↓ 3 callers
Function
newUnreadableFixture
newUnreadableFixture builds an item in the exact defect state: the entries array stored as a JSON-encoded STRING under both structured keys.
internal/mcp/dispatch_http_stored_state_test.go:33
↓ 3 callers
Function
newUnreadablePresence
()
internal/server/handlers_push_presence_unreadable_test.go:36
↓ 3 callers
Function
newWebViewDoorFixture
(t *testing.T)
internal/server/handlers_webview_session_test.go:375
↓ 3 callers
Method
next
()
cmd/pad/cmd_schedule.go:111
↓ 3 callers
Method
nextRoleLaneArrivalSortOrderTx
nextRoleLaneArrivalSortOrderTx computes the role_sort_order for an item arriving in roleIDOrSlug's lane: max(role_sort_order over every live item of t
internal/store/role_park.go:822
↓ 3 callers
Function
noLeak
noLeak runs call n times and fails if the goroutine count moved: every expansion runs in the caller (TASK-4100). It asserts on counts and kinds, never
internal/schedule/budget_test.go:13
↓ 3 callers
Function
none
()
web/src/lib/components/share/shareView.test.ts:176
↓ 3 callers
Function
normalizeSchemaForRender
(schema: CollectionSchema)
web/src/lib/types/index.ts:3378
↓ 3 callers
Function
notFound
()
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:96
↓ 3 callers
Function
note
(m: Map<string, Node[]>, k: string, v: Node)
web/src/test/identityFenceAst.ts:432
↓ 3 callers
Method
noteAudienceOnly
noteAudienceOnly records an audience-only request at authorize or decide: the same log line shape and the same pad_oauth_resource_missing_total counte
internal/server/handlers_oauth.go:681
↓ 3 callers
Function
noteEscapeConsumedByViewer
(event: Event)
web/src/lib/a11y/viewerBackdrop.ts:346
↓ 3 callers
Function
notesWithItem
BUG-3156: `refuse_undeclared_fields` is a strict opt-in on item update. With it, a write that would store a key the collection does not declare is ref
internal/server/handlers_items_refuse_undeclared_test.go:18
↓ 3 callers
Method
notificationRecipientVisibleTx
notificationRecipientVisibleTx applies the same bearer visibility rule as mentions and dispatch: membership and grants, never a platform admin bypass.
internal/store/notifications.go:117
↓ 3 callers
Function
notify
* Deliver a result to every consumer. * * Isolation is unchanged (one failing consumer must not break the others) and * so is TIMING: callbacks
web/src/lib/services/sync.svelte.ts:320
↓ 3 callers
Method
notifyChatMessage
TASK-4041, DOC-4036: publish after the store commits, with no full body; a bounded excerpt (at most 100 runes, first line) rides on the event.
internal/server/chat_notify.go:11
↓ 3 callers
Function
nowRFC
()
internal/store/occurrence_role_history_test.go:71
↓ 3 callers
Function
nulTriggerPrefix
nulTriggerPrefix is the name prefix of one trigger file's triggers: pad_nul_ for 084, and pad_nul<NNN>_ for a later file NNN. Separate namespaces are
internal/store/nulcolumns.go:1086
↓ 3 callers
Function
numericArg
numericArg returns the SQLite comparison value for a numeric argument: an int64 when the number is integer-valued and in range, so a stored INTEGER is
internal/store/dialect_fieldvalue.go:48
↓ 3 callers
Method
occurrenceOutcomeQ
occurrenceOutcome reads the state of the occurrence a key names. decided is false when the occurrence is still open: pending, unless a miss under `lap
internal/store/commitment_gates.go:562
↓ 3 callers
Function
occurrenceRolesSelect
occurrenceRolesSelect lists the snapshot columns of alias, in the order occurrenceRolesScan.dest scans them.
internal/store/occurrence_roles.go:20
↓ 3 callers
Function
offerAttachmentUndo
(opts: AttachmentUndoOptions)
web/src/lib/attachments/undo.ts:42
↓ 3 callers
Function
offerKeptDraft
( userId: string, itemId: string, storedBody: string, keeperOwns: (markdown: string) => boolean, now = Da
web/src/lib/items/refusedRawDraft.ts:331
← previous
next →
5,901–6,000 of 31,685, ranked by callers