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
readBoundedBytes
(response: Response, max: number)
web/src/lib/attachments/boundedBytes.ts:50
↓ 3 callers
Function
readLastLine
readLastLine returns the last non-empty line of path.
internal/buildtools/install_refresh_env_test.go:33
↓ 3 callers
Function
readManifestBody
(fsys fs.FS, path string)
internal/collections/templates_manifest.go:674
↓ 3 callers
Function
readOrSetConsentCSRF
readOrSetConsentCSRF reads the current __Host-pad_csrf cookie or mints a new one if absent. The cookie's value is what gets rendered into the consent
internal/server/handlers_oauth.go:2486
↓ 3 callers
Function
readPadTomlMap
TASK-3612: WriteWorkspaceLink updates an existing .pad.toml instead of replacing it, so a relink keeps agent_name, the [push] consent table and any ke
internal/cli/workspace_link_write_test.go:15
↓ 3 callers
Function
readRawWorkflow
readRawWorkflow decodes a workflow as a plain tree, and refuses a file with more than one YAML document, which a single decode would not see.
internal/buildtools/ci_release_branches_test.go:652
↓ 3 callers
Function
readRegistryBytes
readRegistryBytes opens a registry entry WITHOUT following symlinks or blocking on a FIFO (where the platform allows), re-checks that what it opened i
internal/cli/session_registry.go:392
↓ 3 callers
Function
readResponses
(t *testing.T, b []byte)
internal/materialize/worker_test.go:32
↓ 3 callers
Function
readScheduleParams
(input map[string]any)
internal/mcp/dispatch_http_schedule.go:67
↓ 3 callers
Method
readSeqResult
readSeqResult reads the reply both id-assigning scripts return: the id as the key holds it, then a repair report (BUG-2744). A repair is logged and co
internal/events/redis_bus.go:1525
↓ 3 callers
Function
readSessionRecord
readSessionRecord reads one file and judges it. Only a missing file is an error; unreadable or unparseable content is a Malformed record.
internal/cli/session_registry.go:354
↓ 3 callers
Function
readSkill
(t *testing.T, project string)
cmd/pad/bug3466_skill_overwrite_test.go:45
↓ 3 callers
Function
readStructuredEntryBody
()
cmd/pad/notes.go:272
↓ 3 callers
Function
readUserColumns
(t *testing.T, srv *Server, query, id string)
internal/server/bug3372_attribution_test.go:96
↓ 3 callers
Function
readVarUint
readVarUint decodes a lib0 variable-length unsigned integer at data[pos:], returning the value and the position after it. ok is false on truncation or
internal/store/yjs_content_bearing.go:56
↓ 3 callers
Function
readyThread
(rows = 3)
web/src/lib/stores/chatThread.svelte.test.ts:699
↓ 3 callers
Function
realPNGImage
realPNGImage builds a valid PNG of the given size with an alpha gradient, so re-encoding as PNG (not JPEG) is observable and alpha survival matters.
internal/server/handlers_share_attachments_derive_test.go:74
↓ 3 callers
Function
receive
(msg: Relay)
web/src/lib/services/accessStream.svelte.ts:136
↓ 3 callers
Function
receiveN
(t *testing.T, ch chan Event, n int)
internal/events/bug2744_seq_guard_test.go:37
↓ 3 callers
Method
recentDebounceCandidateQ
(q rowsQueryer, a models.Activity, cutoff, incomingAgent string)
internal/store/activities.go:415
↓ 3 callers
Function
reconcileTargetItems
(client *cli.Client, ws string, args []string)
cmd/pad/reconcile.go:143
↓ 3 callers
Method
reconfigureEmail
reconfigureEmail reads email settings from the platform_settings table and updates (or creates) the email sender. Called after admin settings change.
internal/server/server.go:1695
↓ 3 callers
Function
reconnectDelayMs
(attempt: number, retryAfterMs: number | null, rand: () => number = Math.random)
web/src/lib/services/sseReconnect.ts:28
↓ 3 callers
Method
recordDeathLocked
recordDeathLocked bumps the death streak and sets the next spawn time. A child that lived HealthyStretch resets the streak first. Holds s.mu.
internal/materialize/supervisor.go:989
↓ 3 callers
Function
recordInstallation
recordInstallation stores a skill install in the global registry (~/.pad/installations.json).
cmd/pad/cmd_agent.go:324
↓ 3 callers
Method
recordMCPPreAuthDenied
recordMCPPreAuthDenied counts a pre-auth /mcp refusal. The reason label is a closed set, so a caller-supplied code can never mint a series.
internal/server/middleware_ratelimit.go:1147
↓ 3 callers
Function
recordingServer
recordingServer answers every request 404 and records its escaped path and raw query.
internal/cli/bug3645_request_path_test.go:53
↓ 3 callers
Function
recoverCase
recoverCase inserts the case's op-log over a stale body and runs one recovery pass through the production path (index builder included).
internal/server/materialize_recovery_links_test.go:87
↓ 3 callers
Function
recurringCloseHTTP
(t *testing.T)
internal/server/handlers_items_schedule_active_test.go:13
↓ 3 callers
Function
redactSnapshot
(t *testing.T, s *Store, id string)
internal/store/redact_test.go:271
↓ 3 callers
Function
redactValidation
(reason string)
internal/store/redact_match.go:24
↓ 3 callers
Function
redisSubscriberCount
(b *RedisBus)
internal/watchevents/subscribe_refused_test.go:35
↓ 3 callers
Function
refWindow
refWindow is the oracle's answer: every occurrence in [q, q+w), settled, or for w == 0 the first one strictly after q (NextAfter's contract).
internal/schedule/oracle_test.go:74
↓ 3 callers
Function
refetch
(gone?: AccessHint)
web/src/lib/services/accessStream.svelte.ts:248
↓ 3 callers
Function
refreshHref
()
web/src/lib/components/editor/attachment-chip.ts:253
↓ 3 callers
Function
refusals
(table: GateTable, code: string, opts: GateOptions = {})
web/src/test/identityFenceGate.ts:589
↓ 3 callers
Function
refuseReferencesInFields
(fields map[string]any)
internal/appstore/items.go:293
↓ 3 callers
Function
refusedByMovedOut
(state: WorkspaceState, row: ItemIndexRow | Item)
web/src/lib/stores/localIndex.svelte.ts:623
↓ 3 callers
Method
regSeqInsertExpr
regSeqInsertExpr is the value an INSERT writes: the same as the UPDATE's on SQLite; on Postgres the column default is nextval, so an explicit call is
internal/store/push_devices.go:164
↓ 3 callers
Function
regSeqOf
(t *testing.T, s *Store, userID, token string)
internal/store/task4031_push_reg_seq_test.go:10
↓ 3 callers
Function
registerAttachmentParentRestoredListener
( fn: (event: AttachmentParentRestoredEvent) => void )
web/src/lib/attachments/events.ts:106
↓ 3 callers
Function
registerAttachmentRestoredListener
( fn: (event: AttachmentRestoredEvent) => void )
web/src/lib/attachments/events.ts:173
↓ 3 callers
Function
registerAttachmentSurfaceListener
( fn: (event: AttachmentSurfaceOpenEvent) => void )
web/src/lib/attachments/events.ts:482
↓ 3 callers
Function
registrationWellFormed
registrationWellFormed rejects files that parse as JSON but are not something this code wrote: `{}` would otherwise read as a dead legacy record (owne
internal/cli/session_registry.go:426
↓ 3 callers
Function
registryKey
registryKey binds a session id to the user who presented it; "" when either is missing, which records and finds nothing.
internal/mcp/client_identity.go:89
↓ 3 callers
Function
relationChipFor
(value: string, resolve: ResolveRow)
web/src/lib/collections/relationGroups.ts:77
↓ 3 callers
Function
relationDefaultList
relationDefaultList reads a `multi_relation` value as a list of strings, and is STRICT about the elements. Reports (nil, false) for anything that is
internal/store/relation_referents.go:1603
↓ 3 callers
Function
relationValuesOf
(type: string | undefined | null, value: unknown)
web/src/lib/items/relationFieldTypes.ts:79
↓ 3 callers
Function
release
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:439
↓ 3 callers
Function
releaseB
()
web/src/lib/stores/workspaceMembershipKnown.svelte.test.ts:145
↓ 3 callers
Function
remindCmd
`pad remind` (alias `pad item remind`) and friends — the CLI half of IDEA-2641 / GitHub #1010. The verbs mirror the lifecycle rather than inventing a
cmd/pad/cmd_reminder.go:26
↓ 3 callers
Function
remindEditCmd
()
cmd/pad/cmd_schedule.go:603
↓ 3 callers
Function
remove
(id: string)
web/src/mcp-app/boardModel.ts:70
↓ 3 callers
Function
removeGhost
()
web/src/lib/components/editor/block-drag-handle.ts:693
↓ 3 callers
Function
removePadEntryTOML
removePadEntryTOML deletes mcp_servers.pad while leaving other servers and top-level keys intact. Returns (true, nil) when an entry was removed, (fals
internal/mcp/install.go:455
↓ 3 callers
Function
removePending
(userId: string, n: number, opKey: string)
web/src/lib/chat/chatRecords.ts:78
↓ 3 callers
Function
rename
(value: string)
web/src/lib/components/collections/task2191EditDraftGuard.svelte.test.ts:77
↓ 3 callers
Function
render
(component: unknown, props: P)
web/src/lib/items/staleBodyRenders.svelte.test.ts:39
↓ 3 callers
Function
renderChatMarkdown
( body: string, refs: readonly ChatRef[], ctxWorkspace: string | undefined )
web/src/lib/chat/markdown.ts:88
↓ 3 callers
Function
renderCommitmentGate
(w io.Writer, g models.ScheduleGate, state string)
cmd/pad/cmd_schedule_link.go:368
↓ 3 callers
Function
renderDepsMarkdown
renderDepsMarkdown is the markdown counterpart of `pad item deps`. The terminal form is two coloured sections rather than a table, so markdown keeps t
cmd/pad/cmd_item.go:3931
↓ 3 callers
Function
renderItemCopyPreflight
renderItemCopyPreflight writes the human-readable dry run. EVERY bucket header and EVERY warning line is printed unconditionally, including the empty
cmd/pad/cmd_item.go:2611
↓ 3 callers
Function
renderNULTriggerMigration
renderNULTriggerMigration is the single definition of one trigger file's text: its header, then the triggers of every column assigned to it. It lives
internal/store/nulcolumns.go:1186
↓ 3 callers
Function
renderPreview
()
web/src/lib/components/editor/extensions/htmlBlock.ts:314
↓ 3 callers
Function
renderUnsubPage
renderUnsubPage writes the unsubscribe status page with a strict CSP. The CSP denies scripts, inline event handlers, iframes, and remote resources out
internal/server/handlers_unsubscribe.go:122
↓ 3 callers
Function
renderedNULTriggers
renderedNULTriggers returns the exact CREATE statement each trigger in the named trigger files should have, keyed by name. It parses the SAME rendere
internal/store/nulcolumns.go:1102
↓ 3 callers
Method
reopenDependencyQ
(q Queryer, sc *models.ItemSchedule)
internal/store/schedule_reopen.go:153
↓ 3 callers
Method
reopenImageQ
(q Queryer, sc *models.ItemSchedule, u *resolutionUndo, lock bool)
internal/store/schedule_reopen.go:246
↓ 3 callers
Function
reorderedList
( ordered: Item[], itemId: string, dir: ReorderDirection )
web/src/lib/collections/reorder.ts:30
↓ 3 callers
Method
reportReset
(reason string)
internal/events/observer.go:316
↓ 3 callers
Method
reportSnapshotAsOf
reportSnapshotAsOf reconstructs the status-distribution and WIP snapshot as they stood at time t, from the status-transition history (PLAN-1628 / TASK
internal/store/reports.go:457
↓ 3 callers
Method
requireAppWorkspace
requireAppWorkspace is step 3 (RequireAppWorkspaceAccess). {ws} must be the token's workspace, by ID: a slug, another workspace, or a deleted one all
internal/server/app_api.go:441
↓ 3 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:900
↓ 3 callers
Method
requireCommitmentWrite
requireCommitmentWrite answers a refused commitment write with the same bytes as the middleware token-scope gate and requireEditPermission.
internal/server/handlers_commitments.go:82
↓ 3 callers
Method
requireCreatedHere
(itemID string)
internal/store/fenced_items.go:199
↓ 3 callers
Function
requireRealPostgres
requireRealPostgres fails the test unless s.db is talking to PostgreSQL.
internal/store/runtime_pool_test.go:54
↓ 3 callers
Function
resetFake
()
web/src/test/mocks/indexedPageStores.svelte.ts:32
↓ 3 callers
Method
resetFloors
Discard the connection's floors, retaining delivery, retraction ownership, and time-based backoff for the same identity.
cmd/pad/cmd_watch_chat.go:334
↓ 3 callers
Function
resetMissing
()
web/src/lib/components/editor/attachment-image.ts:529
↓ 3 callers
Function
resetRelativeDataDirWarning
resetRelativeDataDirWarning lets each test see the once-per-process warning afresh, with the default (stderr) sink.
internal/config/bug4066_reset_test.go:5
↓ 3 callers
Function
resolve
()
web/src/lib/components/fields/FieldEditor.typedDebounce.svelte.test.ts:357
↓ 3 callers
Function
resolve
(id: string)
web/src/lib/utils/quickActionCategorical.test.ts:44
↓ 3 callers
Method
resolve
The occurrence wall is the seed-equivalent; target displacement is not subtracted from the deadline displacement.
internal/store/schedule_deadline_eval.go:50
↓ 3 callers
Method
resolve2
(t *testing.T, it *models.Item, sc *models.ItemSchedule, state string)
internal/store/commitment_gates_outcome_test.go:378
↓ 3 callers
Function
resolveActivityMeta
resolveActivityMeta is the names-only metadata of a resolution: the schedule's kind and the state chosen. No comment text, wall, instant or rule.
internal/server/handlers_schedules.go:716
↓ 3 callers
Method
resolveItemRef
resolveItemRef does a GET /api/v1/workspaces/{ws}/items/{ref} and returns the resolved id+slug. Used by the link dispatchers to translate user-friendl
internal/mcp/dispatch_http_links.go:140
↓ 3 callers
Method
resolveLimitQ
resolveLimitQ resolves the limit for a feature using the three-tier resolution: user overrides → DB-stored plan defaults → hardcoded fallback. It take
internal/store/limits.go:406
↓ 3 callers
Function
resolveMulti
(t *testing.T, s *Store, ws *models.Workspace, schema models.CollectionSchema, supplied any)
internal/store/relation_multi_test.go:27
↓ 3 callers
Method
resolveOutboxDrainSettings
resolveOutboxDrainSettings fills every unset knob with its default and stores the result, so the resolved values are identical no matter which entry p
internal/server/outbox_drain.go:110
↓ 3 callers
Method
resolveParentFilter
resolveParentFilter extracts a "parent" (or "plan") key from the field filters and converts it to a ParentLinkID filter (which uses item_links instead
internal/server/handlers_items.go:4322
↓ 3 callers
Method
resolvePlaybook
resolvePlaybook finds a playbook by either its invocation_slug, its item slug, or its issue ref. invocation_slug takes precedence — that's the user-fa
internal/server/handlers_playbooks.go:651
↓ 3 callers
Function
resolveRefTx
resolveRefTx resolves a live exact, aliased or move-log-proven ref inside the caller's transaction and wiki scope (BUG-4119). Broken refs persist with
internal/store/wiki_links.go:404
↓ 3 callers
Method
resolveReminderForWrite
resolveReminderForWrite resolves {reminderID} and enforces edit permission on the ITEM the reminder hangs off. PERMISSION IS THE ITEM'S, not the remi
internal/server/handlers_reminders.go:390
↓ 3 callers
Function
resolveRowWrite
( stored: ItemIndexRow | undefined, tombstone: Tombstone | undefined, incoming: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:109
↓ 3 callers
Function
resolveSQLiteDBPath
resolveSQLiteDBPath returns the SQLite database path using the SAME precedence the server uses (PAD_DB_PATH > PAD_DATA_DIR/pad.db > ~/.pad/pad.db), vi
cmd/pad/cmd_db.go:55
↓ 3 callers
Function
resolveShareWithPassword
resolveShareWithPassword issues an anonymous GET /api/v1/s/{token} from the given source IP with the password supplied via the X-Share-Password header
internal/server/handlers_share_links_bruteforce_test.go:16
↓ 3 callers
Function
resolver
(m: AttachmentMeta)
web/src/lib/markdown/attachmentEmbedDecision.test.ts:95
↓ 3 callers
Function
resourceCmdKey
resourceCmdKey identifies the pad command from the positional tokens of a resource-fetch arg vector. The resource handlers in resources.go are the onl
internal/mcp/resources_http.go:351
↓ 3 callers
Function
resourceHTTPError
resourceHTTPError renders a non-2xx in-process response as a Go error, trimming the body so an oversized error page can't blow up the message.
internal/mcp/resources_http.go:337
↓ 3 callers
Method
resourceID
(kind string)
internal/server/commitment_graph_access_test.go:16
← previous
next →
6,101–6,200 of 31,685, ranked by callers