Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 2 callers
Method
logExhaustion
logExhaustion is the ONE line a stuck item leaves: which item, how many failures, and the kind of the last one. WARN, because from here on the item's
internal/server/materialize_recovery.go:655
↓ 2 callers
Method
logSpend
logSpend writes the evaluation's spend line: counts and identifiers only, never a question, an answer, the item's text or an error message (a provider
internal/decision/runner.go:722
↓ 2 callers
Method
logStop
(c *child, reason string, delay time.Duration, extra ...any)
internal/materialize/supervisor.go:980
↓ 2 callers
Function
looksLikeFieldKey
(field: string)
web/src/lib/utils/activityChanges.ts:92
↓ 2 callers
Function
lookupAll
(src Sources, deps []Dep, concurrency int)
cmd/depages/main.go:320
↓ 2 callers
Function
loopBindings
The names a loop's own head declares (`for (let i …)`, `for (const x of …)`).
web/src/test/identityFenceAst.ts:773
↓ 2 callers
Function
lostLaneLabel
( target: { lostLane: string; lostField?: string }, labelFor: (fieldKey: string) => string, )
web/src/lib/collections/laneDrafts.ts:130
↓ 2 callers
Function
luminance
(hex: string)
web/src/routes/[username]/[workspace]/graph/graphTheme.ts:43
↓ 2 callers
Function
makeCollection
(id: string, slug: string)
web/src/lib/components/common/QuickActionsMenu.svelte.test.ts:77
↓ 2 callers
Function
makeDest
()
internal/models/testdata/decodeshapes/shapes.go:26
↓ 2 callers
Function
makeTarget
A stand-in scroll container; `scrollTo` firing is the "restore proceeded" signal.
web/src/lib/scroll/restore.svelte.test.ts:58
↓ 2 callers
Function
manifest
(origin: string)
web/e2e/task-3415-real-install.spec.ts:62
↓ 2 callers
Function
manifestField
manifestField reads one top-level string from a stored manifest.
internal/store/app_item_actions.go:193
↓ 2 callers
Function
map
(...rs: ChatRef[])
web/src/lib/components/chat/MessageBubble.svelte.test.ts:262
↓ 2 callers
Function
mapGrantRevoked
mapGrantRevoked turns a mint refused on a revoked grant into fosite.ErrInactiveToken, which fosite answers invalid_request rather than server_error (B
internal/oauth/storage.go:288
↓ 2 callers
Function
mapItemPatch
mapItemPatch is itemPatchRoute with its two numeric inputs validated here (BUG-4065, folded from BUG-4061, decision 63360424). They used to be forward
internal/mcp/dispatch_http_routes.go:911
↓ 2 callers
Function
mapPflagType
mapPflagType translates pflag Value.Type() strings to the cmdhelp v0.1 type vocabulary (spec §5.1) and reports whether the flag is repeatable. pflag
internal/cmdhelp/json.go:444
↓ 2 callers
Function
mapWorkspaceClaim
mapWorkspaceClaim dispatches `pad workspace claim <code> --workspace <slug>`. POST /api/v1/oauth/claim with body {workspace, code} — see internal/ser
internal/mcp/dispatch_http_routes.go:1426
↓ 2 callers
Method
markConversationSeq
column is one of the two fixed marker columns above, never caller input (TASK-4038).
internal/store/conversations.go:675
↓ 2 callers
Function
markDeleted
()
web/src/lib/components/editor/attachment-chip.ts:346
↓ 2 callers
Function
markItemArchived
(itemId: string)
web/src/lib/attachments/archivedItemRegistry.ts:50
↓ 2 callers
Function
markItemListTruncation
markItemListTruncation trims a list result fetched with limit+1 back to limit and, when it had the extra row, sets has_more on the structured result a
internal/mcp/catalog_item.go:959
↓ 2 callers
Method
markRaw
---- an offset update leaves the mark ---- markRaw writes the mark the cancel hook writes, on item i's outstanding occurrence, with an optional dragge
internal/store/commitment_cancel_test.go:295
↓ 2 callers
Method
markUnconfirmedAdmission
markUnconfirmedAdmission records that Redis did not acknowledge a subscription within the bound, so its callers are being admitted without this instan
internal/events/redis_bus.go:2026
↓ 2 callers
Function
markWorkspaceDropped
* Record that a workspace's rows are gone. EVERY path that drops them calls * this — `reset()`, which deletes the whole state entry, and `bootstrap()
web/src/lib/stores/localIndex.svelte.ts:390
↓ 2 callers
Function
markdownShowBodies
IDEA-2937: `pad item show <ref> --format markdown` is the machine-facing read of an item body, and `pad item update <ref> --stdin` is the write. Toget
cmd/pad/item_show_markdown_roundtrip_test.go:31
↓ 2 callers
Function
marker
(n: number)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:24
↓ 2 callers
Function
markerRun
BUG-3215. Between the stop and the restart nothing serves the port, and a pad CLI call in that window used to auto-start a server of its own (the call
internal/buildtools/install_refresh_marker_test.go:23
↓ 2 callers
Function
marketplaceEntries
(doc map[string]any)
internal/mcp/claude_plugin_manifest_test.go:93
↓ 2 callers
Function
marketplaceSource
(t *testing.T, dir string)
internal/buildtools/pin_plugin_marketplace_test.go:92
↓ 2 callers
Function
marshalWithPersistedEntryIDs
marshalWithPersistedEntryIDs marshals an append helper's result and gives any sibling entry without a usable, unique id a persisted one (BUG-2788). Th
internal/models/item.go:1139
↓ 2 callers
Function
maskEmailShapedNames
maskEmailShapedNames replaces email-shaped person names in place.
internal/mcp/chatgpt_project.go:508
↓ 2 callers
Function
masterCol
The route column that holds the MASTER (route-owned `.item-page-host > * .item-page` direct child). The pane is a SEPARATE direct child * (`aside.
web/e2e/pane-full-page-capstone.spec.ts:81
↓ 2 callers
Function
matchModeAlias
(options []modeOption, input string)
cmd/pad/configure.go:292
↓ 2 callers
Function
matchNoneProvider
()
internal/server/handlers_playbook_match_ratelimit_test.go:33
↓ 2 callers
Function
matches
matches returns every start offset of sub in s, overlapping ones included: "aa" occurs twice in "aaa", and a uniqueness check that counted it once wou
internal/bodypatch/bodypatch.go:115
↓ 2 callers
Function
materialize
(jobJSON: string)
web/src/lib/collab/materializer/entry.ts:78
↓ 2 callers
Function
maxScale
(g: Geometry)
web/src/lib/attachments/zoom.ts:248
↓ 2 callers
Method
maxTransitionSeqs
(q Queryer, ids []string)
internal/store/milestone.go:596
↓ 2 callers
Function
maxWorkspaceSeq
(t *testing.T, s *Store, workspaceID string)
internal/store/items_create_tx_test.go:71
↓ 2 callers
Function
mayReadImportNote
mayReadImportNote: the workspace's owners, and instance admins who are MEMBERS of it. An admin admitted only through a guest grant reads the workspace
internal/server/handlers_workspaces.go:641
↓ 2 callers
Method
maybeWarnStorageQuota
maybeWarnStorageQuota emits a slog warning if the workspace's usage has crossed the owner-plan storage limit. Phase 1 is observational only — see DOC-
internal/server/handlers_attachments.go:964
↓ 2 callers
Function
mcp
(tool, args)
plugin/hooks/register.js:97
↓ 2 callers
Method
mcpAuditDroppedSnapshot
mcpAuditDroppedSnapshot returns the cumulative number of audit entries dropped due to buffer-full backpressure. Exported as a method on Server so admi
internal/server/middleware_mcp_audit.go:201
↓ 2 callers
Function
mcpAuditEntryToDTO
(e models.MCPAuditEntry)
internal/server/handlers_mcp_audit.go:65
↓ 2 callers
Method
mcpBlockedReasonFor
(ep config.MCPEndpoints)
internal/server/handlers_admin_mcp.go:244
↓ 2 callers
Method
mcpChallengeMetadataURL
mcpChallengeMetadataURL is the protected-resource metadata URL a challenge on r names: THIS mount's document (TASK-3321 U2b; the ChatGPT mount stamps
internal/server/middleware_mcp_auth.go:647
↓ 2 callers
Function
mcpConnectionStatsKey
mcpConnectionStatsKey is the canonical map key for the result of MCPConnectionStatsForUser. Exposed via a helper so callers constructing lookup keys d
internal/store/mcp_audit.go:269
↓ 2 callers
Function
mcpRequestUA
TASK-2307: pad_mcp_http_requests_total{mount, method, client} counts each authenticated request reaching an MCP mount, so a week of Cloud traffic says
internal/server/task2307_mcp_request_counter_test.go:17
↓ 2 callers
Function
mcpServeCmd
mcpServeCmd implements the stdio MCP server. The cobra command is a thin wrapper around internal/mcp.Server — all transport / handshake behaviour and
cmd/pad/mcp.go:259
↓ 2 callers
Function
mcpServedVersion
mcpServedVersion reports whether the transport behind a mount serves version. A transport that does not say (a test stub, a wrapper that does not forw
internal/server/mcp_stream_keepalive.go:213
↓ 2 callers
Method
mcpStreamPrincipalStillValid
mcpStreamPrincipalStillValid reports whether the stream may continue: its credential is live, and its user still exists and is enabled.
internal/server/mcp_stream_credential.go:60
↓ 2 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
↓ 2 callers
Function
measure
()
web/src/lib/components/editor/toolbarScrollHint.ts:14
↓ 2 callers
Function
measure
()
web/src/lib/chat/viewport.ts:19
↓ 2 callers
Function
measureBulkWorkspace
measureBulkWorkspace builds a Postgres workspace of n items and commentsPer comments each in a handful of statements. Every rewriteEvery-th item (0 =
internal/store/runtime_pool_measure_test.go:74
↓ 2 callers
Function
measureRename
measureRename runs one cascade and returns its allocation profile. The sampler goroutine that tracks peak HeapAlloc is deliberately secondary: it can
internal/store/items_rename_probe_test.go:78
↓ 2 callers
Function
memberRole
(t *testing.T, s *Store, wsID, userID string)
internal/store/workspace_invitation_accept_test.go:28
↓ 2 callers
Function
membersFor
(who: string)
web/src/routes/[username]/[workspace]/settings/settingsLoadIdentityOrder.svelte.test.ts:54
↓ 2 callers
Function
membershipKey
Cache key for `slug` under `userId`. See `answeredMembership`.
web/src/lib/stores/workspace.svelte.ts:116
↓ 2 callers
Method
memoFor
memoFor is the memo the handler put in ctx for this workspace, or a fresh one for a caller (a test) that did not.
internal/server/needs_scorers.go:138
↓ 2 callers
Method
mentionRecipientsTx
mentionRecipientsTx keeps the mentioned users who can see c's item (TASK-3946, binding rule 645fab20): comment_mentions indexes any resolved human, so
internal/store/notifications.go:327
↓ 2 callers
Function
menu
(ref = 'EX-30')
web/src/routes/(console)/agenda/agenda.svelte.test.ts:34
↓ 2 callers
Function
menuButton
(r: Awaited<ReturnType<typeof mount>>)
web/src/lib/components/items/itemDetailPeekDismiss.svelte.test.ts:159
↓ 2 callers
Function
mergeChildAndCheckboxProgress
( childRows: ProgressRow[], checkboxRows: ProgressRow[], )
web/src/lib/collections/progressMerge.ts:49
↓ 2 callers
Function
mergeParameters
mergeParameters combines path-item-level parameters with operation-level ones, deduping on the (name, in) tuple. Operation- level parameters win on co
internal/urlimport/openapi.go:221
↓ 2 callers
Function
mermaidThemeForMode
( root: Element | null | undefined, prefersLight: boolean, )
web/src/lib/components/editor/mermaidTheme.ts:41
↓ 2 callers
Function
message
(seq: number, over: Record<string, unknown> = {})
web/src/routes/messages/messagesRoutes.svelte.test.ts:142
↓ 2 callers
Function
metaInt
(v interface{})
internal/store/activity_seq_chain.go:90
↓ 2 callers
Function
metricsMethodLabel
metricsMethodLabel bounds the method label (BUG-2817). The middleware runs ahead of authentication and Go's server accepts any token as a method, so r
internal/server/middleware_metrics.go:47
↓ 2 callers
Function
middle
(b: { x: number; y: number; width: number; height: number })
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:82
↓ 2 callers
Method
migrate
()
internal/store/store.go:702
↓ 2 callers
Method
migrateCopyFields
migrateCopyFields runs the DR-12 field pipeline: migrate the source fields into the destination schema, merge the caller's overrides, then validate.
internal/store/items_cross_workspace_copy.go:1252
↓ 2 callers
Function
milestoneRows
milestoneRows counts the rows a cascading schedule delete would take.
internal/store/reminder_commitment_milestone_test.go:43
↓ 2 callers
Function
mimeToFormat
(mime: string)
web/src/lib/components/editor/attachment-metadata.ts:366
↓ 2 callers
Function
mintAccount
(fixture: SuiteFixture, tag: string)
web/e2e/workspace-tabs.spec.ts:30
↓ 2 callers
Function
mirrorOf
TASK-2257: the reserved convention copy follows the ordinary keys a write changed.
internal/store/items_convention_mirror_test.go:12
↓ 2 callers
Function
missingLibraryOptions
missingLibraryOptions returns, per select field, the values fieldMap carries that the library vocabulary allows and the field's options lack.
internal/server/library_option_widen.go:149
↓ 2 callers
Function
mkdirOwned
mkdirOwned builds the directory under a staging name, takes the flock on its owner.lock, and only then renames it to prefix<pid>-<random>, so a sweep
internal/testtmp/lock_unix.go:21
↓ 2 callers
Function
mockGeometry
Mock the geometry the viewer reads, so the cursor anchor is observable.
web/src/lib/components/common/Lightbox.svelte.test.ts:1823
↓ 2 callers
Method
modelClientToFosite
modelClientToFosite turns a stored client row into the fosite.DefaultClient fosite expects. Public clients only — Secret stays empty; PKCE is the only
internal/oauth/storage.go:625
↓ 2 callers
Function
models_ItemUpdateContent
Small constructors, so the corpus loop reads as the assertion rather than as struct plumbing.
internal/store/nulguard_test.go:169
↓ 2 callers
Function
models_ItemUpdateFields
(v string)
internal/store/nulguard_test.go:170
↓ 2 callers
Function
modernDiscover
(t *testing.T, h http.Handler)
internal/mcp/transport_test.go:64
↓ 2 callers
Function
monitorClient
monitorClient builds a Client for the monitor loop WITHOUT any of getClient()'s side effects that are fatal (or interactive) for an unattended backgro
cmd/pad/cmd_watch.go:421
↓ 2 callers
Function
more
()
web/src/lib/components/attachments/AttachmentTablePreview.svelte.test.ts:28
↓ 2 callers
Function
more
()
web/src/lib/components/chat/MessageBubble.svelte.test.ts:117
↓ 2 callers
Function
mount
()
web/src/lib/components/auth/EditTokenAccessDialog.svelte.test.ts:17
↓ 2 callers
Function
mountComposer
Mount a composer wired to `thread` for conversation `n`, as ChatThreadView does.
web/src/lib/stores/chatThread.lateRefusal.svelte.test.ts:91
↓ 2 callers
Function
mountTab
(doc = new Y.Doc())
web/src/lib/collab/materializer/materializerParity.svelte.test.ts:163
↓ 2 callers
Function
movable
(t: string, allowB = false)
web/e2e/permission-walk-move.spec.ts:81
↓ 2 callers
Function
move
(e: PointerEvent)
web/src/lib/chat/longPress.ts:36
↓ 2 callers
Function
moveCmd
--- move ---
cmd/pad/cmd_item.go:1929
↓ 2 callers
Function
moveDrag
(clientY: number)
web/src/lib/components/editor/block-drag-handle.ts:745
↓ 2 callers
Method
moveInputsUnchanged
moveInputsUnchanged is a move's under-lock precheck. A move builds its payload from reads taken before it takes its lock (BUG-3665). Every input to it
internal/server/handlers_items.go:4786
↓ 2 callers
Function
moveMonth
(day: string, amount: number)
web/src/lib/calendar/monthGrid.ts:47
↓ 2 callers
Function
msg
(seq: number, tag: string, over: Partial<ChatMessage> = {})
web/src/lib/stores/chatThread.property.svelte.test.ts:107
↓ 2 callers
Function
msg
(when: Date, over: Partial<ChatMessage> = {})
web/src/lib/chat/grouping.test.ts:12
↓ 2 callers
Function
multiRelationSchema
`multi_relation` shape validation (PLAN-2857 U4). This package is DB-free, so these tests are about SHAPE only — whether an element names a live item
internal/items/validate_multi_relation_test.go:19
↓ 2 callers
Function
mustCompile
(t *testing.T, start, tz, rule string, rdates []string)
internal/store/schedule_fire_test.go:768
← previous
next →
7,701–7,800 of 28,840, ranked by callers