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
↓ 5 callers
Function
parseComponent
(code: string)
web/src/test/identityFenceAst.ts:346
↓ 5 callers
Function
parseItemFields
(fieldsJSON string)
internal/models/item.go:1214
↓ 5 callers
Function
passwordlessTOTPUser
TASK-2190: an account with no password (signed up through Google, GitHub or Apple) could never turn 2FA off: the door demanded a password it does not
internal/server/task2190_totp_disable_test.go:19
↓ 5 callers
Method
patchKey
TASK-3585: idempotency keys on patch.
internal/server/task3585_patch_key_test.go:20
↓ 5 callers
Function
patchServer
TASK-3585 at the CLI: every patch carries an idempotency key, and a transport-level failure (a 5xx) is retried ONCE with the same key; a 4xx answer is
cmd/pad/task3585_patch_retry_test.go:14
↓ 5 callers
Function
pathErrorCode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/middleware_request_text_test.go:42
↓ 5 callers
Function
pdCaptureLogs
--- logging ---
internal/server/task3939b_push_dispatch_test.go:424
↓ 5 callers
Function
percentile
percentile returns the linearly-interpolated p-quantile (p in [0,1]) of vals, rounded to 1 decimal. 0 for an empty sample. Computed in Go so the same
internal/store/reports.go:969
↓ 5 callers
Method
pg
()
internal/server/task3939b_push_fixture_test.go:147
↓ 5 callers
Method
pin
pin sets every timestamp the digest reads in this workspace to at.
internal/server/task3615_catch_up_test.go:110
↓ 5 callers
Function
pinAdmitsWorkspaceRef
pinAdmitsWorkspaceRef reports whether a pinned token may address the workspace named ref (a slug or an ID, as a request carries it), decided BEFORE re
internal/server/pinned_token.go:62
↓ 5 callers
Function
pluralize
pluralize renders "1 field" / "2 fields".
cmd/pad/cmd_item.go:2434
↓ 5 callers
Function
polarity
(src: AstSource, n: Node, decls: Declarations, scope: PolarityScope)
web/src/test/identityFenceAst.ts:579
↓ 5 callers
Function
portHeld
Two questions, two probes (TASK-3620). The old single probe was an HTTP GET of /health that required a 200, and it was wrong both ways: - The probe s
internal/cli/server.go:273
↓ 5 callers
Method
positiveTerminalExpr
positiveTerminalExpr builds the "this transition is a positive completion" boolean: OR over collections of (st.collection_id = ? AND st.field_key = ?
internal/store/reports.go:825
↓ 5 callers
Function
postComment
TASK-2760. An agent's comment rendered under the human's name because the timeline payload carried the comment and dropped the one row holding the age
internal/server/handlers_timeline_comment_agent_test.go:19
↓ 5 callers
Function
postgresFTSQuery
PG FTS uses an OR-combined plainto_tsquery to handle hyphenated user queries correctly. For an indexed title `task-five-distinctive`, the english pars
internal/store/dialect.go:335
↓ 5 callers
Function
printBootstrapMarkdown
printBootstrapMarkdown renders a human-friendly summary of the bootstrap blob. Intended for quick inspection from the terminal; the canonical machine
cmd/pad/cmd_bootstrap.go:72
↓ 5 callers
Function
printMigrateDropSummary
printMigrateDropSummary closes the run, where an operator looks, saying how many schedules were not carried and where they still are.
cmd/pad/cmd_db.go:1140
↓ 5 callers
Function
probeBody
probeBody builds a linker body of approximately bodyBytes containing exactly `brackets` occurrences of [[title]], padded with filler that contains no
internal/store/items_rename_probe_test.go:53
↓ 5 callers
Function
procStartToken
procStartToken has no portable non-Linux implementation, so it returns ok=false and a headless owner is judged by bare pid-liveness on unix platforms
internal/cli/proc_start_other.go:16
↓ 5 callers
Function
projectChatGPTResult
projectChatGPTResult minimizes one ChatGPT tool result. The structured content is projected through the tool's shape and the text fallback is REWRITTE
internal/mcp/chatgpt_project.go:235
↓ 5 callers
Method
pruneWorkspaceTabIfNoAccessTx
pruneWorkspaceTabIfNoAccessTx deletes the user's tab for a workspace when the user holds neither a membership nor any grant in it. It runs inside the
internal/store/workspace_tabs.go:415
↓ 5 callers
Method
publishEventWithName
publishEventWithName publishes a real-time event with actor name.
internal/server/handlers_documents.go:325
↓ 5 callers
Method
publishWorkspaceAccessChanged
workspace_access_changed publishers (TASK-3272, PLAN-3002 U7a). Every door that gives a user access to a workspace, takes it away, or deletes, restor
internal/server/workspace_access_notify.go:31
↓ 5 callers
Function
pushEscapeHandler
(handler: EscapeHandler, priority: number)
web/src/lib/stores/escapeStack.ts:60
↓ 5 callers
Method
put
(t *testing.T, tok string, entries ...any)
internal/server/task3517_sort_order_test.go:35
↓ 5 callers
Method
questionsFor
questionsFor is the set's questions for the item's workspace now: its fixed Questions, or what Resolve returns. Each resolved question is validated, s
internal/decision/runner.go:555
↓ 5 callers
Function
rawOutboxPayload
Tests for the account-deletion outbox scrub (TASK-2719). The CONVE-18 shape here: one test per payload family that carries a user id, because a scrub
internal/store/event_outbox_scrub_test.go:24
↓ 5 callers
Function
rawSubscriber
rawSubscriber returns a channel of raw payload strings on one workspace's Redis channel, bypassing the bus entirely — the only way to assert what this
internal/events/redis_heartbeat_test.go:84
↓ 5 callers
Function
rawTarEntry
rawTarEntry writes one ustar entry with an arbitrary typeflag (tar.Writer refuses to emit raw extension headers itself), fixing up the checksum.
internal/server/bug3354_import_bundle_bomb_test.go:190
↓ 5 callers
Function
reachedSeam
(t *testing.T, calls *int)
internal/server/bug3334_fail_closed_test.go:59
↓ 5 callers
Function
readPasswordFrom
readPasswordFrom reads a password without echo when stdin is a TTY, and otherwise falls back to reading a line from the supplied bufio.Reader. Caller
cmd/pad/cmd_auth.go:815
↓ 5 callers
Function
readTOML
Helpers ------------------------------------------------------------------
internal/mcp/install_test.go:850
↓ 5 callers
Function
readableLinkEnds
(acc models.CommitmentAccess, a, b string)
internal/store/commitment_links.go:505
↓ 5 callers
Method
rearmManagedReminderTx
rearmManagedReminderTx moves the managed row's instant and clears both fire marks, reporting whether a row existed.
internal/store/schedules.go:680
↓ 5 callers
Method
rebuild
(year int, month time.Month)
internal/schedule/internal/rrule/rrule.go:343
↓ 5 callers
Function
reconcile
* Recompute and apply the desired inert set from scratch. This is the ONLY * mutator: release doesn't undo its own writes, it re-derives the truth fr
web/src/lib/a11y/viewerBackdrop.ts:96
↓ 5 callers
Function
reconcileNewItem
(t *testing.T, srv *Server, slug, content string)
internal/server/handlers_item_versions_test.go:29
↓ 5 callers
Method
recordMCPAuthzDenial
recordMCPAuthzDenial bumps the pad_mcp_authz_denials_total counter when the request originated from the MCP surface. The discriminator is the presence
internal/server/middleware_auth.go:953
↓ 5 callers
Function
refKey
(workspace: string, ref: string)
web/src/lib/chat/refs.ts:272
↓ 5 callers
Method
refresh
refresh replays fosite's storage calls for one refresh of r1, minting the given signatures, and reports the first error.
internal/store/bug3678_refresh_after_revoke_test.go:50
↓ 5 callers
Function
refusalNotice
(t *testing.T, s *Store, ws, item, actor string, agent bool)
internal/store/commitment_notifications_test.go:12
↓ 5 callers
Method
refuseCrossSiteSignIn
handleLogin validates email/password and creates a session. refuseCrossSiteSignIn guards the sign-in doors CSRF exempts (BUG-3350). Without it, a cros
internal/server/handlers_auth.go:1192
↓ 5 callers
Method
register
register signs up email with inv's code (A2).
internal/server/handlers_invitation_accept_limit_test.go:76
↓ 5 callers
Function
registerAs
registerAs writes a record for the given owner pid via the real verb, so the list/prune tests exercise the same file the writer produces.
cmd/pad/cmd_session_registry_test.go:150
↓ 5 callers
Function
registerNamedTestClient
TASK-1071: the consent screen is the trust anchor the RFC 8707 relaxation leans on (audienceForAuthorize), so it must say plainly that the resource is
internal/server/task1071_consent_identity_test.go:18
↓ 5 callers
Function
relationIssuesMessage
relationIssuesMessage is the same rendering for the doors that RETURN an error instead of writing a response — `createItemChecked` (*itemCreateError)
internal/server/relation_referents.go:306
↓ 5 callers
Function
release
()
web/src/lib/a11y/viewerBackdrop.ts:233
↓ 5 callers
Function
releaseFirst
()
web/src/lib/components/items/PushToAgentDialog.svelte.test.ts:351
↓ 5 callers
Function
remapRef
(id string)
internal/store/attachments_remap_fixture_test.go:31
↓ 5 callers
Function
remoteCfg
remoteCfg builds a Config wired to point at the given test server URL.
cmd/pad/init_test.go:37
↓ 5 callers
Function
remoteMCPCaller
remoteMCPCaller reports the remote MCP caller a request carries, if any.
internal/server/context.go:310
↓ 5 callers
Method
removeUnusableWorkspace
removeUnusableWorkspace takes back a workspace that cannot be made usable, and is the shared removal both of this door's failure points use (BUG-2715)
internal/server/workspace_owner_compensation.go:179
↓ 5 callers
Function
render
(statuses: unknown[], abandonedOptions: string[])
web/src/lib/components/NestedChildren.svelte.test.ts:46
↓ 5 callers
Function
renderConsentFor
(t *testing.T, srv *Server, clientID, redirectURI, sessionToken string)
internal/server/task1071_consent_identity_test.go:36
↓ 5 callers
Function
renderItemCopyNeedsValue
renderItemCopyNeedsValue is the refusal. It names every unresolved field and shows the flags to add FOR THE ONES A FLAG CAN ADDRESS. Not every one ca
cmd/pad/cmd_item.go:2632
↓ 5 callers
Function
renderItemCopyResult
renderItemCopyResult writes the outcome of a completed copy.
cmd/pad/cmd_item.go:2843
↓ 5 callers
Function
renderItemsGroupedByCollectionMarkdown
renderItemsGroupedByCollectionMarkdown is the markdown counterpart of printItemsGroupedByCollection (#898): one `## Icon Name (N)` heading per collect
cmd/pad/cmd_item.go:696
↓ 5 callers
Function
renderedScale
(page: Page, selector = VIEWER_IMAGE)
web/e2e/lib/attachment-viewer.ts:252
↓ 5 callers
Function
repairBodyNULEscapes
repairBodyNULEscapes repairs a JSON body the way the GATE reads it, and returns how many values it changed. IT MIRRORS bodyDecodesNUL's WALK, and the
internal/server/server.go:3293
↓ 5 callers
Method
replaceWikiLinks
replaceWikiLinks deletes prior wiki-link rows for `sourceItemID` and inserts fresh ones extracted from `content`. Resolution against the workspace's i
internal/store/wiki_links.go:32
↓ 5 callers
Function
replayFrames
(doc: Y.Doc, frames: Uint8Array[])
web/src/lib/collab/materializer/replay.ts:32
↓ 5 callers
Function
req
(title: string)
web/src/lib/stores/confirmDialog.svelte.test.ts:11
↓ 5 callers
Function
request
( path: string, options?: RequestInit, // Internal: how many automatic re-invocations after a 429 this call
web/src/lib/api/client.ts:1041
↓ 5 callers
Method
requireCommentVisible
requireCommentVisible checks that a comment's underlying item is in a visible collection. Writes a 404 and returns false if not.
internal/server/handlers_comments.go:603
↓ 5 callers
Method
requireConnectionOwner
requireConnectionOwner is the per-mutation prologue. Returns the (currentUser, requestID, ok) triple. On `ok=false` the response has already been writ
internal/server/handlers_connected_apps.go:341
↓ 5 callers
Method
resolveAttachmentParentItem
resolveAttachmentParentItem loads and validates the parent item of an attachment row that has ALREADY been established as live and belonging to the re
internal/server/attachments_authz.go:74
↓ 5 callers
Function
resolveCollectionDoneFilter
resolveCollectionDoneFilter is shared by collection reads and transactional schedule resolution, including the fallback for undecodable collection JSO
internal/store/items.go:5277
↓ 5 callers
Method
resolveCommitmentGraphItem
resolveCommitmentGraphItem has no archived fallback. Visibility failures and disappearing ends use the graph error adapter at every door.
internal/server/handlers_commitment_links.go:158
↓ 5 callers
Method
resolvePushDispatchSettings
resolvePushDispatchSettings fills every unset knob and stores the result, so a tick reached directly never sees a zero (the outbox drain's lesson).
internal/server/push_dispatch.go:176
↓ 5 callers
Method
resolveRoleSlug
resolveRoleSlug rewrites a `--role <slug>` input into `agent_role_id <uuid>` by hitting the agent-roles endpoint and finding a matching role. Mirrors
internal/mcp/dispatch_http_advanced.go:112
↓ 5 callers
Function
resolveRoleValue
resolveRoleValue is the occurrence's seed wall displaced by the role's offset, or the override that replaces it, read in loc. It is the derivation the
internal/store/commitment.go:36
↓ 5 callers
Function
resp
(rows: ReturnType<typeof row>[], extra: Record<string, unknown> = {})
web/src/routes/(console)/needs/needsPage.svelte.test.ts:50
↓ 5 callers
Method
respondWithConnection
respondWithConnection re-fetches + writes the connection DTO post- mutation so the page can re-render without a separate list refresh. Stats lookup is
internal/server/handlers_connected_apps.go:367
↓ 5 callers
Method
restoreOne
(it *models.Item)
internal/server/handlers_restore_plan_limit_test.go:63
↓ 5 callers
Method
restoreOverride
BUG-3031: a version restore prunes the whole op-log and mints its undo point from items.content. Content-bearing op-log rows above the flush watermark
internal/server/handlers_item_versions_bug3031_test.go:21
↓ 5 callers
Method
resync
The stream cannot vouch for what it missed: refetch now.
web/src/lib/stores/chat.svelte.ts:134
↓ 5 callers
Function
retryOnParentSetChanged
retryOnParentSetChanged runs fn, retrying (up to maxParentLockRetries) while it returns errParentSetChanged. fn MUST open and own its own transaction
internal/store/items.go:5669
↓ 5 callers
Function
retryableWithKey
retryableWithKey: no API answer at all (a transport error) or a 5xx.
internal/cli/client.go:1329
↓ 5 callers
Function
revalidateAttachmentMetadata
( workspaceSlug: string, uuid: string, getDownloadUrl: AttachmentUrlBuilder, options?: MetadataFetchOption
web/src/lib/components/editor/attachment-metadata.ts:349
↓ 5 callers
Function
rolesFromInput
(in models.CommitmentRolesInput)
internal/store/commitment.go:293
↓ 5 callers
Function
row
(ws: string, ref: string, extra: Record<string, unknown> = {})
web/src/routes/(console)/needs/needsPage.svelte.test.ts:30
↓ 5 callers
Function
runBUG4066Child
(t *testing.T, which string, extra ...string)
cmd/pad/bug4066_relative_data_dir_test.go:54
↓ 5 callers
Function
runCommentCmd
(t *testing.T, stub *commentStub, cmd *cobra.Command, args ...string)
cmd/pad/comment_edit_delete_test.go:52
↓ 5 callers
Function
runCreate
(t *testing.T, args ...string)
cmd/pad/task3585_create_retry_test.go:45
↓ 5 callers
Function
runMonitor
runMonitor runs the real pad-monitor.sh against a fake pad on PATH. armAfter < 0 means consent never appears; 0 means armed before start.
internal/buildtools/bug4511_monitor_await_consent_test.go:52
↓ 5 callers
Function
runScriptIn
runScriptIn is runScript with the SCRIPT's own working directory set, which is what a refresh run from a worktree looks like (BUG-3196).
internal/buildtools/install_refresh_test.go:1676
↓ 5 callers
Function
runWatchMonitor
(ctx context.Context)
cmd/pad/cmd_watch.go:508
↓ 5 callers
Function
same
()
web/e2e/chat-shell-layout.spec.ts:91
↓ 5 callers
Function
sameBytes
sameBytes fails unless a and b are the same response: status, every header, and the body byte for byte.
internal/server/task3939b2b_notification_test.go:39
↓ 5 callers
Function
sampleConvention
()
internal/artifact/encode_test.go:38
↓ 5 callers
Function
saveFresh
(t *testing.T)
internal/cli/credentials_bug3648_test.go:368
↓ 5 callers
Function
scanActivitiesWithUser
(rows interface { Next() bool Scan(dest ...interface{}) error Err() error })
internal/store/activities.go:1071
↓ 5 callers
Function
scanReminder
(row interface{ Scan(...any) error })
internal/store/reminders.go:100
↓ 5 callers
Function
scheduleItemAction
(t *testing.T, name string)
internal/mcp/task4105_schedule_test.go:55
↓ 5 callers
Function
schemaHasField
schemaHasField returns true if the collection schema defines a field with the given key.
internal/server/handlers_items.go:4223
↓ 5 callers
Function
scopeBindings
(fn: Node)
web/src/test/identityFenceAst.ts:764
↓ 5 callers
Function
scopeTestServer
scopeTestServer is an OAuth-capable server whose /mcp transport records what reaches it, with a classifier calling pad_item.create a write.
internal/server/task2308_mcp_scope_test.go:42
↓ 5 callers
Function
scrubItemPII
scrubItemPII returns a copy of the item with the JOIN-POPULATED assignee identity removed, for storage in an event payload. An outbox payload is a FR
internal/store/event_outbox.go:698
← previous
next →
3,301–3,400 of 28,840, ranked by callers