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
↓ 5 callers
Function
newSubscriber
newSubscriber builds a subscriber with BOTH channels, so no path can register one whose gaps channel is nil — a nil channel silently swallows every si
internal/watchevents/watchevents.go:628
↓ 5 callers
Function
newTokenRecorder
(t *testing.T)
cmd/pad/bug3646_pad_toml_token_test.go:25
↓ 5 callers
Function
newWatchVisCache
(s *Server, r *http.Request, user *models.User)
internal/server/handlers_watch_events.go:669
↓ 5 callers
Function
noFlock
BUG-3828: Save truncates credentials.json in place before it writes, under the exclusive lock. A caller that could not take the lock (a holder past cr
internal/cli/credentials_bug3828_test.go:21
↓ 5 callers
Function
noLeak
(t *testing.T, what string, rr *httptest.ResponseRecorder)
internal/server/bug3334_fail_closed_test.go:252
↓ 5 callers
Function
normalizeRemindAt
normalizeRemindAt re-parses and re-formats an instant, and REFUSES anything that is not RFC3339. The HTTP edge already normalizes, so on that path th
internal/store/reminders.go:129
↓ 5 callers
Function
normalizeServerURL
normalizeServerURL canonicalizes a server URL for use as a credential key. Trailing slash and surrounding whitespace are stripped; nothing else is tou
internal/cli/credentials.go:655
↓ 5 callers
Function
normalizeSkill
normalizeSkill is what every hash is taken over: CRLF made LF and trailing newlines dropped, so a Windows checkout (core.autocrlf) or an editor that a
internal/cli/skillstamp.go:31
↓ 5 callers
Method
note
(owner_username: string, slug: string)
web/src/lib/stores/lastWorkspace.svelte.ts:21
↓ 5 callers
Method
noteResourceMissing
noteResourceMissing records a request that omitted the RFC 8707 resource parameter (TASK-3363, TASK-3345): one log line naming the client (id and regi
internal/server/handlers_oauth.go:625
↓ 5 callers
Function
notifyAttachmentDeleted
(uuid: string)
web/src/lib/attachments/events.ts:45
↓ 5 callers
Method
now
()
internal/watchevents/heartbeat_test.go:25
↓ 5 callers
Function
nullStr
(p *string)
internal/store/schedules.go:1285
↓ 5 callers
Method
observeOAuthFlowDuration
observeOAuthFlowDuration records the elapsed time since `start` for the given stage. Designed to be `defer`'d at the top of each OAuth flow handler so
internal/server/handlers_oauth.go:140
↓ 5 callers
Method
observer
()
internal/collab/observer.go:92
↓ 5 callers
Method
occurrences
()
internal/server/handlers_commitments_resolve_test.go:29
↓ 5 callers
Function
ok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/workspace-access-live.spec.ts:27
↓ 5 callers
Function
onlySession
onlySession reads the user's one remaining session: a rotation revokes every other one.
internal/server/bug3978_rotation_ttl_test.go:32
↓ 5 callers
Function
opLogRowCount
(t *testing.T, f *recoveryFixture, itemID string)
internal/server/task3531_compaction_test.go:48
↓ 5 callers
Method
openGET
openGET opens GET /mcp over a raw connection and waits for the session to register. It returns the connection and a reader positioned after the respon
internal/server/bug3808_mcp_stalled_reader_test.go:76
↓ 5 callers
Method
openSSEStream
openSSEStream wraps w, or refuses when w cannot take a write deadline. The bound is always sseFrameWriteTimeout: a method taking no timeout, so a hand
internal/server/sse_stream.go:63
↓ 5 callers
Function
openStalledStream
openStalledStream sends one GET for path over a raw connection, reads the response head, and then never reads again. The connection stays open until t
internal/server/bug3637_sse_stalled_reader_test.go:112
↓ 5 callers
Function
openStatusPicker
(container: ParentNode)
web/src/lib/components/collections/statusPickerTestKit.ts:31
↓ 5 callers
Function
overdueToday
overdueToday renders the calendar day deadlines are measured against: the day now falls on in now's own location, so callers convert to the viewer's z
internal/server/overdue.go:40
↓ 5 callers
Function
overrideFor
(m map[string]string, role string)
internal/store/commitment.go:137
↓ 5 callers
Function
ownedTokens
(t *testing.T, env *tokenAuthEnv)
internal/server/handlers_plan_limit_race_test.go:224
↓ 5 callers
Function
paneNavInFlight
()
web/src/lib/collections/paneHostController.ts:155
↓ 5 callers
Method
parkUnrecorded
parkUnrecorded remembers rows the gateway delivered but whose 'sent' record failed (TASK-4032). A row left pending is reclaimed after the lease and pu
internal/server/push_dispatch.go:356
↓ 5 callers
Function
parkedSend
--- r4-L4: a send that outlives its lease ---
internal/server/task3939b_push_dispatch_test.go:255
↓ 5 callers
Function
parseChatPath
(pathname: string)
web/src/lib/stores/chatSurface.svelte.ts:36
↓ 5 callers
Function
parseComponent
(code: string)
web/src/test/identityFenceAst.ts:346
↓ 5 callers
Function
parseItemFields
(fieldsJSON string)
internal/models/item.go:1225
↓ 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
Function
permissionLevel
permissionLevel returns a numeric level for grant permission comparison.
internal/server/middleware_auth.go:1006
↓ 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:112
↓ 5 callers
Method
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:63
↓ 5 callers
Function
planLimitErr
(t *testing.T, err error)
internal/store/task3619_storage_limit_test.go:73
↓ 5 callers
Function
playbooksCollection
playbooksCollection returns a Playbooks collection scoped to the caller's domain. Like conventionsCollection, the trigger and scope select options are
internal/collections/templates.go:632
↓ 5 callers
Function
pluralize
pluralize renders "1 field" / "2 fields".
cmd/pad/cmd_item.go:2567
↓ 5 callers
Function
polarity
(src: AstSource, n: Node, decls: Declarations, scope: PolarityScope)
web/src/test/identityFenceAst.ts:579
↓ 5 callers
Function
pollCLIAuth
(t *testing.T, srv *Server, code string)
internal/server/task2253_cli_auth_deny_test.go:35
↓ 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:297
↓ 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
postSetPlan
(t *testing.T, srv *Server, body map[string]string)
internal/server/handlers_plan_source_test.go:41
↓ 5 callers
Function
presenceNow
(now func() time.Time)
internal/server/session_activity.go:47
↓ 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:1248
↓ 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
pruneOldSnapshots
pruneOldSnapshots removes pre-migration snapshots of dbPath older than the newest one other than keep, so each upgrade does not leave another full cop
internal/store/migration_guard.go:192
↓ 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
publishItemEventWithHint
publishItemEventWithHint always publishes the activity SSE event and optionally publishes a home_changed watch-bus refetch hint when hintHome is true.
internal/server/handlers_items.go:3813
↓ 5 callers
Method
publishItemUpdatedFromRequest
publishItemUpdatedFromRequest rides the existing item_updated SSE event rather than a new type: every client already subscribes to it, and a new type
internal/server/handlers_verifications.go:406
↓ 5 callers
Function
publishReplayExpiryEvent
(t *testing.T, bus *MemoryBus, workspaceID, eventType string)
internal/events/bus_replay_expiry_test.go:131
↓ 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
rawComment
Stored comment stamps in a format other than now()'s UTC Z-second (TASK-3960): the marker is computed on the instant, never the text. rawComment adds
internal/store/needs_snooze_test.go:330
↓ 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:864
↓ 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:714
↓ 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:958
↓ 5 callers
Function
refKey
(workspace: string, ref: string)
web/src/lib/chat/refs.ts:272
↓ 5 callers
Function
refresh
()
web/src/lib/components/editor/attachment-image.ts:1184
↓ 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
refreshAccessibleName
()
web/src/lib/components/editor/attachment-chip.ts:302
↓ 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
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
registerNonAdmin
--- helpers --- registerNonAdmin inserts a member-role user directly into the store and mints a session token for them. Bypasses the admin-registratio
internal/server/handlers_admin_billing_test.go:351
↓ 5 callers
Function
registerRemoteMCP
registerRemoteMCP registers everything the remote /mcp transport serves on mcpSrv: the catalog, prompts, meta and resources. Extracted from the cloud
cmd/pad/cmd_server.go:1540
↓ 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
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
(page, svgFile, size)
docs/brand/mark/export.mjs:46
↓ 5 callers
Function
render
(statuses: unknown[], abandonedOptions: string[])
web/src/lib/components/NestedChildren.svelte.test.ts:51
↓ 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:2765
↓ 5 callers
Function
renderItemCopyResult
renderItemCopyResult writes the outcome of a completed copy.
cmd/pad/cmd_item.go:2976
↓ 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:3351
← previous
next →
3,601–3,700 of 31,685, ranked by callers