Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
6,005 in github.com/PerpetualSoftware/pad
⨍
Functions
6,005
◇
Types & classes
763
↓ 1 callers
Function
readyCmd
()
cmd/pad/query.go:31
↓ 1 callers
Function
rebuildSearchIndex
* Rebuild the per-workspace MiniSearch index from the current in-RAM * snapshot. Called after the warm-cache hydrate and after the cold-path * /item
web/src/lib/stores/localIndex.svelte.ts:185
↓ 1 callers
Method
receiveMessages
receiveMessages reads from a Redis pub/sub channel and fans out to local subscribers.
internal/events/redis_bus.go:250
↓ 1 callers
Method
reclaimWorkspaceBlobs
reclaimWorkspaceBlobs deletes every physical blob owned solely by workspace c, returning true only when the workspace is safe to purge — i.e. every bl
internal/server/workspace_purge.go:288
↓ 1 callers
Function
reconcileCmd
()
cmd/pad/reconcile.go:45
↓ 1 callers
Function
reconcileItem
(client *cli.Client, ws string, item *models.Item, apply bool)
cmd/pad/reconcile.go:168
↓ 1 callers
Function
reconcileTargetItems
(client *cli.Client, ws string, args []string)
cmd/pad/reconcile.go:139
↓ 1 callers
Method
recordLatency
(d time.Duration)
cmd/loadtest-collab/main.go:163
↓ 1 callers
Function
redactURL
redactURL hides credentials from log/error output. We already reject credential-bearing URLs at validation time, but Go can hand us an already-strippe
internal/urlimport/fetch.go:362
↓ 1 callers
Method
refResolverNotFound
refResolverNotFound writes a 404 with no body details. Centralized so all failure paths produce identical responses — preventing oracle-style probes t
internal/server/handlers_ref_resolver.go:126
↓ 1 callers
Function
refStrings
(links []WikiLinkRef)
internal/links/extract_test.go:866
↓ 1 callers
Function
refreshToolbarState
* Update each toolbar button's enabled state + tooltip based on the * image's MIME and the processor's supported-formats list. * * - Empty suppor
web/src/lib/components/editor/attachment-image.ts:612
↓ 1 callers
Method
registerMCPRoutes
registerMCPRoutes installs the /mcp + /.well-known endpoints on r, gated by cloud mode. Called from setupRouter at infrastructure- middleware level (N
internal/server/handlers_mcp.go:154
↓ 1 callers
Method
registerOAuthRoutes
because it was the 501 stub from TASK-950, and replacing it in place keeps the URL stable for clients that already discovered the chain. The OAuth-ser
internal/server/handlers_oauth.go:146
↓ 1 callers
Method
registerPendingAck
registerPendingAck creates an entry in the room's pending-acks map keyed on requestID, with the expected ack source set to expectedConn. Returns the c
internal/collab/applier.go:326
↓ 1 callers
Function
registerSetWorkspaceTool
registerSetWorkspaceTool installs the built-in workspace tool on srv.
internal/mcp/workspace.go:208
↓ 1 callers
Method
registerTool
(tool: ModelContextTool, opts?: ModelContextRegisterToolOptions)
web/src/lib/webmcp/types.d.ts:77
↓ 1 callers
Function
registerToolbarRefresher
(fn: () => void)
web/src/lib/components/editor/attachment-image.ts:61
↓ 1 callers
Method
rehydrateAttachment
rehydrateAttachment runs the upload-handler's MIME validation, hash, and store.Put for one manifest entry, then inserts a fresh attachments row in the
internal/server/handlers_import_bundle.go:433
↓ 1 callers
Function
rejectInvalidBearer
rejectInvalidBearer writes a 401 with the given code/message UNLESS the request targets a path in isPublicAPIPath, in which case it falls through to t
internal/server/middleware_auth.go:317
↓ 1 callers
Function
relatedCmd
()
cmd/pad/query.go:118
↓ 1 callers
Function
relationRefFromLink
(link models.ItemLink, useSource bool)
internal/server/item_lineage.go:202
↓ 1 callers
Function
relationRefLabel
(item models.ItemRelationRef)
internal/server/item_lineage.go:240
↓ 1 callers
Function
remapAttachmentRefs
remapAttachmentRefs replaces "pad-attachment:OLD" with "pad-attachment:NEW" for every (old, new) pair in the map. Pure string operation — kept private
internal/store/attachments.go:854
↓ 1 callers
Function
remapFieldIDs
remapFieldIDs replaces old UUIDs in a JSON fields string with their new IDs. This handles relation fields (e.g. parent: "uuid") without needing to par
internal/store/export.go:468
↓ 1 callers
Function
removeEntry
(agent *Agent, path string)
internal/mcp/install.go:553
↓ 1 callers
Function
removeSQLiteTemplate
removeSQLiteTemplate deletes the template directory built by buildSQLiteTemplate, if any. Called from TestMain after m.Run().
internal/store/store_test.go:148
↓ 1 callers
Function
removeString
(ss []string, s string)
internal/server/handlers_search.go:231
↓ 1 callers
Function
renderArgumentsSection
(args: PlaybookArgument[])
web/src/lib/playbooks/arguments.ts:150
↓ 1 callers
Function
renderAttachmentImage
( meta: AttachmentMeta, alt: string, workspaceSlug: string, variant: 'thumb-sm' | 'thumb-md' = 'thumb-md'
web/src/lib/markdown/attachments.ts:125
↓ 1 callers
Function
renderCommand
renderCommand writes one command's markdown section. Section order matches cmdhelp v0.1 §6 exactly.
internal/cmdhelp/md.go:97
↓ 1 callers
Method
renderConsent
renderConsent draws the consent UI. CSRF token comes from the existing __Host-pad_csrf cookie (or is minted here if absent — rare on the post-login pa
internal/server/handlers_oauth.go:1679
↓ 1 callers
Function
renderInfo
(b *strings.Builder, doc *v3high.Document)
internal/urlimport/openapi.go:71
↓ 1 callers
Function
renderInspector
()
web/src/lib/components/editor/extensions/htmlBlock.ts:248
↓ 1 callers
Function
renderMediaExample
(b *strings.Builder, mt *v3high.MediaType)
internal/urlimport/openapi.go:338
↓ 1 callers
Function
renderModeString
(m attachments.RenderMode)
internal/server/handlers_attachments.go:337
↓ 1 callers
Function
renderOperation
(b *strings.Builder, slot opSlot)
internal/urlimport/openapi.go:187
↓ 1 callers
Function
renderOperations
(b *strings.Builder, doc *v3high.Document)
internal/urlimport/openapi.go:140
↓ 1 callers
Function
renderParameters
(b *strings.Builder, params []*v3high.Parameter)
internal/urlimport/openapi.go:264
↓ 1 callers
Function
renderRequestBody
(b *strings.Builder, rb *v3high.RequestBody)
internal/urlimport/openapi.go:289
↓ 1 callers
Function
renderResponses
(b *strings.Builder, resps *v3high.Responses)
internal/urlimport/openapi.go:312
↓ 1 callers
Function
renderSchemaProperties
(b *strings.Builder, s *base.Schema)
internal/urlimport/openapi.go:394
↓ 1 callers
Function
renderSchemas
(b *strings.Builder, doc *v3high.Document)
internal/urlimport/openapi.go:362
↓ 1 callers
Function
renderServers
(b *strings.Builder, doc *v3high.Document)
internal/urlimport/openapi.go:109
↓ 1 callers
Function
renderSynopsis
renderSynopsis reconstructs a cobra-style usage line from the Document's structured args + flags. Output looks like: pad item create <collection> <t
internal/cmdhelp/md.go:194
↓ 1 callers
Function
reorderGroup
( ordered: Item[], itemId: string, dir: ReorderDirection )
web/src/lib/collections/reorder.ts:69
↓ 1 callers
Function
replaceAll
(s, old, new string)
internal/links/links.go:164
↓ 1 callers
Function
replaceDBName
replaceDBName swaps the database name in a postgres:// URL. e.g. "postgres://pad:pad@localhost:5432/pad?sslmode=disable" becomes "postgres://pad:pad@l
internal/store/store_test.go:215
↓ 1 callers
Method
replayTo
replayTo sends every persisted op-log update for this room with id strictly greater than `since` to the given connection in order. Each row goes out a
internal/collab/room.go:245
↓ 1 callers
Function
repoRoot
repoRoot walks up from this test file to the directory containing go.mod.
internal/collections/invocation_framing_test.go:103
↓ 1 callers
Function
reportCmd
--- changelog ---
cmd/pad/cmd_project.go:509
↓ 1 callers
Method
reportCompletedBuckets
reportCompletedBuckets returns completion counts keyed by bucket label AND the per-collection completion totals over the whole window. A completion is
internal/store/reports.go:736
↓ 1 callers
Method
reportCompletedItems
reportCompletedItems returns the items that reached a positive terminal in the window (the "what shipped" list, TASK-1641): deduped by item (newest co
internal/store/reports.go:341
↓ 1 callers
Method
reportCreatedBuckets
reportCreatedBuckets returns created-item counts keyed by bucket label.
internal/store/reports.go:712
↓ 1 callers
Method
reportCycleTime
reportCycleTime computes created→positive-terminal durations for completions within the window, returning overall median/p90 + per-collection medians.
internal/store/reports.go:537
↓ 1 callers
Method
reportStatusDistribution
reportStatusDistribution returns the current per-collection breakdown of items by their done-field value. One small grouped query per collection (the
internal/store/reports.go:828
↓ 1 callers
Method
reportWIP
reportWIP snapshots currently-open items (done field NOT a terminal value), their age (now - created_at), and an age-band distribution. Point-in-time.
internal/store/reports.go:585
↓ 1 callers
Function
requestLeader
* Acquire the workspace-scoped leader lock and, if granted, open * the SSE EventSource. Peer tabs queue on the same lock and only * advance when t
web/src/lib/services/sse.svelte.ts:253
↓ 1 callers
Method
requireCallerCanSetCollectionAccess
requireCallerCanSetCollectionAccess denies a restricted caller (their own collection_access is "specific") from using this endpoint to escalate beyond
internal/server/handlers_members.go:560
↓ 1 callers
Method
requireViewVisible
requireViewVisible looks up a view by ID, verifies it belongs to the workspace, and checks that its collection is visible. Returns the view or writes
internal/server/handlers_views.go:122
↓ 1 callers
Method
resetDedup
Reset the per-item dedupe baseline (`lastFlushedContent`). Call on item * swap and after any out-of-band raw save that changed items.content via a
web/src/lib/collab/collabFlush.svelte.ts:125
↓ 1 callers
Function
resetPasswordCmd
--- members ---
cmd/pad/cmd_auth.go:814
↓ 1 callers
Function
resolveAssignment
* Resolve the catalog's `role` (slug) and `assign` (user name/email) item * params to the `agent_role_id` / `assigned_user_id` the create/update * e
web/src/lib/webmcp/dispatch.ts:206
↓ 1 callers
Function
resolveAttachmentImage
( href: string, alt: string, workspaceSlug: string, resolver: AttachmentResolver, variant: 'thumb-sm' | '
web/src/lib/markdown/attachments.ts:174
↓ 1 callers
Function
resolveAttachmentLink
( href: string, text: string, workspaceSlug: string, resolver: AttachmentResolver )
web/src/lib/markdown/attachments.ts:195
↓ 1 callers
Function
resolveImport
resolveImport maps a Svelte/TS module specifier to a file path inside the project's source tree, or "" for external packages / unresolvable paths. -
internal/server/share_page_collab_isolation_test.go:207
↓ 1 callers
Function
resolveRefTx
resolveRefTx looks up a (prefix, number) pair to an item ID within a workspace. Returns a NULL sql.NullString if the ref doesn't resolve — broken refs
internal/store/wiki_links.go:374
↓ 1 callers
Function
resolveTitleTx
resolveTitleTx mirrors the renderer's title-resolution logic (web/src/lib/utils/markdown.ts:541–558) inside the parse-time transaction. Two-stage look
internal/store/wiki_links.go:437
↓ 1 callers
Function
resolveWorkspaceSlugTx
resolveWorkspaceSlugTx looks up `slug` against the workspaces table and returns the workspace ID as a sql.NullString. Returns a NULL when the slug doe
internal/store/wiki_links.go:496
↓ 1 callers
Method
resolverItemVisible
resolverItemVisible derives the viewer's workspace role outside the RequireWorkspaceAccess middleware path, then delegates to checkItemVisible. The ro
internal/server/handlers_ref_resolver.go:146
↓ 1 callers
Method
resolverOwnerUsername
resolverOwnerUsername returns the workspace owner's username — the only source for the leading path segment of the canonical redirect target (since `/
internal/server/handlers_ref_resolver.go:236
↓ 1 callers
Method
resolverWorkspaceRole
resolverWorkspaceRole reproduces RequireWorkspaceAccess's role lookup for a (workspace, user) pair without the *http.Request scaffolding. Returns "" w
internal/server/handlers_ref_resolver.go:202
↓ 1 callers
Function
restoreCmd
--- restore ---
cmd/pad/cmd_item.go:1151
↓ 1 callers
Method
restoreItemOnce
(id string)
internal/store/items.go:2379
↓ 1 callers
Function
rewriteMcpSubdomain
rewriteMcpSubdomain best-effort rewrites "mcp.<rest>" to "app.<rest>" so the discovery doc's authorization_servers entry points at the auth vhost when
internal/server/handlers_well_known.go:266
↓ 1 callers
Function
roleCmd
()
cmd/pad/cmd_role.go:15
↓ 1 callers
Function
roleCreateCmd
()
cmd/pad/cmd_role.go:60
↓ 1 callers
Function
roleDeleteCmd
()
cmd/pad/cmd_role.go:194
↓ 1 callers
Function
roleLevel
roleLevel returns a numeric level for role comparison. Higher values indicate more permissions.
internal/server/middleware_auth.go:758
↓ 1 callers
Function
roleListCmd
()
cmd/pad/cmd_role.go:26
↓ 1 callers
Function
roleUpdateCmd
roleUpdateCmd updates an existing agent role's name, description, icon, tools, slug, or sort_order. Only flags explicitly set are sent — every AgentRo
cmd/pad/cmd_role.go:112
↓ 1 callers
Function
rotateButton
(label: string, title: string, deg: 90 | 180 | 270)
web/src/lib/components/editor/attachment-image.ts:555
↓ 1 callers
Function
round1
(x float64)
internal/store/reports.go:963
↓ 1 callers
Method
routeApplierAck
routeApplierAck signals the channel waiting on requestID, but only if the ack came from the expected conn (defence in depth). Called by readLoop on re
internal/collab/applier.go:360
↓ 1 callers
Method
run
run drives the periodic sweeper at the given interval. Exits on stop. Tracked via Server.bg so Stop() can drain in-flight sweeps before the process ex
internal/server/middleware_mcp_session.go:174
↓ 1 callers
Function
runCLISetup
runCLISetup is the legacy in-terminal admin bootstrap, reachable via `pad auth setup --cli-prompt`. Kept verbatim from the pre-TASK-1216 behavior so u
cmd/pad/cmd_auth.go:202
↓ 1 callers
Function
runClient
runClient opens one WebSocket, fires synthetic updates at the configured rate, and consumes inbound frames from peers. Exits when `done` closes or the
cmd/loadtest-collab/main.go:174
↓ 1 callers
Function
runConcurrentWriteTest
(t *testing.T, s *Store, label string)
internal/store/bench_concurrent_test.go:47
↓ 1 callers
Method
runConn
runConn drives one connection through its full lifecycle: spawn writer (drains the bus subscription concurrently with replay), stream the op-log repla
internal/collab/manager.go:515
↓ 1 callers
Function
runCrop
()
web/src/lib/components/editor/attachment-image.ts:366
↓ 1 callers
Method
runMCPAuditSweeper
runMCPAuditSweeper drives the 90-day retention sweep on a 24h ticker. Exits when the audit writer's stop channel closes (i.e. when Server.Stop() runs)
internal/server/middleware_mcp_audit.go:483
↓ 1 callers
Function
runMCPInstallAll
(cmd *cobra.Command, inst *mcpserver.Installer)
cmd/pad/mcp.go:197
↓ 1 callers
Function
runMCPInstallOne
(cmd *cobra.Command, inst *mcpserver.Installer, agent string)
cmd/pad/mcp.go:182
↓ 1 callers
Method
runOpLogGCTick
runOpLogGCTick is one tick of the periodic loop. No outer timeout because PruneSweep itself is bounded by the size of the candidate list (one DB query
internal/server/oplog_gc.go:127
↓ 1 callers
Method
runOrphanGCTick
runOrphanGCTick is one tick of the periodic loop. Wrapped with a 30-minute cap on the sweep so a long-running scan can't pin the goroutine across mult
internal/server/orphan_gc.go:262
↓ 1 callers
Function
runRotate
(degrees: 90 | 180 | 270)
web/src/lib/components/editor/attachment-image.ts:344
↓ 1 callers
Method
runWorkspacePurgeTick
runWorkspacePurgeTick runs one tick of the periodic loop, wrapped with a 30-minute cap so a large sweep can't pin the goroutine across intervals. Logg
internal/server/workspace_purge.go:165
↓ 1 callers
Function
safe
* Encode a value so it's safe to embed in an IDB database name. * Names allow any UTF-16 string per spec, but URL-encoding keeps * the on-disk handl
web/src/lib/stores/localIndexPersistence.ts:77
↓ 1 callers
Function
sanitizeHtmlBlock
(html: string)
web/src/lib/utils/markdown.ts:236
↓ 1 callers
Function
sanitizeMarkdownHtml
(html: string)
web/src/lib/utils/markdown.ts:154
← previous
next →
2,501–2,600 of 6,005, ranked by callers