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
↓ 2 callers
Function
sanitiseStoredTextChanged
sanitiseStoredTextChanged is sanitiseStoredText plus the fact a caller needs when the value is an IDENTITY rather than free text: whether anything was
internal/server/middleware_request_text.go:945
↓ 2 callers
Function
sanitizeFTSQuery
sanitizeFTSQuery wraps each token in double quotes so FTS5 treats special characters (like hyphens) as literals rather than operators. The final token
internal/store/search.go:751
↓ 2 callers
Function
sanitizePGFTSQuery
sanitizePGFTSQuery returns a copy of q with hyphens replaced by spaces. Used as the second leg of the OR-combined PG FTS query: postgres' english pars
internal/store/search.go:830
↓ 2 callers
Method
saveLocked
saveLocked is Save for a caller that holds the credentials lock.
internal/cli/credentials.go:389
↓ 2 callers
Function
scaleOf
* The `scale(...)` factor currently on the image, or NaN if there is none. * * jsdom lays nothing out, so the geometry the zoom module reads is all
web/src/lib/components/common/Lightbox.svelte.test.ts:266
↓ 2 callers
Function
scanAgendaItemEvents
(rows *sql.Rows)
internal/store/agenda_item_events.go:89
↓ 2 callers
Function
scanAttachmentsUses
scanAttachmentsUses counts the uses of the internal/attachments package in af and reports every one outside the audited pure helpers. The local name c
internal/store/task4278_store_network_io_guard_test.go:115
↓ 2 callers
Function
scanBoundHolds
(t *testing.T, laterHistory bool)
internal/server/handlers_agenda_test.go:508
↓ 2 callers
Method
scanBucketCounts
scanBucketCounts runs a "SELECT <bucket>, COUNT(*) ... GROUP BY <bucket>" query and returns a label→count map.
internal/store/reports.go:892
↓ 2 callers
Function
scanDeadline
(row interface{ Scan(...any) error }, approximate bool)
internal/store/schedule_deadline_eval.go:133
↓ 2 callers
Function
scanItemSnapshot
scanItemSnapshot scans one itemSnapshotSelect row and hydrates it exactly as a single-item read does. sql.ErrNoRows is returned unwrapped.
internal/store/items.go:898
↓ 2 callers
Function
scanItemVersions
(rows *sql.Rows)
internal/store/items.go:7054
↓ 2 callers
Function
scanItemWorkspaceMove
scanner (api_tokens.go) is satisfied by both *sql.Row and *sql.Rows.
internal/store/item_workspace_moves.go:191
↓ 2 callers
Function
scanLink
(r interface{ Scan(...any) error })
internal/store/commitment_links.go:145
↓ 2 callers
Function
scanNeedsNotMine
(sc interface{ Scan(...any) error })
internal/store/needs_not_mine.go:155
↓ 2 callers
Method
scanNotification
(r rowScanner)
internal/store/push_dispatch.go:68
↓ 2 callers
Function
schedule
(view: EditorView)
web/src/lib/components/editor/attachment-upload.ts:372
↓ 2 callers
Function
schedule
()
web/src/lib/chat/viewport.ts:23
↓ 2 callers
Function
scheduleIDs
(s []*models.ItemSchedule)
internal/store/commitment_links_test.go:177
↓ 2 callers
Method
scheduleSnapshotQ
(q Queryer, id string)
internal/store/schedule_journal.go:103
↓ 2 callers
Function
scheduleSpreadSync
* Answer a server `sync_required` after a random delay instead of at once * — see syncSpread.ts for why and for the window. `needsSync` is set NOW,
web/src/lib/services/sse.svelte.ts:317
↓ 2 callers
Function
scheduleUpdateBody
(p scheduleParams, currentStart string)
internal/mcp/dispatch_http_schedule.go:252
↓ 2 callers
Function
schemaSpec
()
web/src/lib/collab/materializer/entry.ts:171
↓ 2 callers
Function
schemaSpecOf
(editor: Editor)
web/src/lib/collab/materializer/schemaSpec.ts:17
↓ 2 callers
Function
schemaTagRules
(schema: Schema)
web/src/lib/components/editor/extensions/htmlProse.ts:82
↓ 2 callers
Function
scopeStale
An outstanding stale ask that no resync started after it has answered.
web/src/lib/stores/localIndex.svelte.ts:953
↓ 2 callers
Function
scratchCollection
(fixture: SuiteFixture, request: APIRequestContext)
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:51
↓ 2 callers
Function
scratchCollection
(fixture: SuiteFixture, request: APIRequestContext)
web/e2e/bug-3158-landscape-touch-drag.spec.ts:35
↓ 2 callers
Function
screenDialAddr
screenDialAddr rejects a dial to a private/reserved IP. The dialer calls this with the resolved connection address (ip:port), so it validates the exac
internal/webhooks/dispatcher.go:379
↓ 2 callers
Function
scrubInTxErr
scrubInTxErr runs the scrub on its own transaction and RETURNS the error, unlike the shared scrubInTx helper which fails the test from whatever gorout
internal/store/event_outbox_bounds_test.go:439
↓ 2 callers
Method
scrubOutboxRowTxCtx
scrubOutboxRowTx rewrites one candidate row, retrying against concurrent writers. A REWRITE ONLY EVER SHRINKS A ROW, and the claim path depends on it
internal/store/event_outbox.go:1019
↓ 2 callers
Method
searchMatches
searchMatches builds one row per item before sorting and paging, without computing snippets. Materialization keeps SQLite ranks in their MATCH context
internal/store/search.go:465
↓ 2 callers
Method
searchStatusFilters
(params SearchParams)
internal/store/search.go:110
↓ 2 callers
Method
searchTotalAndFacets
searchTotalAndFacets computes the match total and all search facets (collections, statuses, and—for unscoped searches—workspace counts) in a single qu
internal/store/search.go:694
↓ 2 callers
Function
secureSQLiteFiles
secureSQLiteFiles ensures a filesystem SQLite database and its sidecar files (-wal, -shm, -journal) are not readable or writable by group or other use
internal/store/sqlite_perms.go:28
↓ 2 callers
Function
seed
(fixture: SuiteFixture, request: APIRequestContext, coll: string, title: string, status: string)
web/e2e/bug-3158-landscape-touch-drag.spec.ts:48
↓ 2 callers
Method
seed
(t *testing.T, id, key, js string)
internal/store/field_value_dialect_test.go:76
↓ 2 callers
Function
seedActiveAccessTokenForChain
seedActiveAccessTokenForChain inserts one active access-token row in the chain identified by requestID for subject userID. Lets the IsWorkspaceCovered
internal/server/handlers_claim_code_test.go:25
↓ 2 callers
Method
seedAppRows
seedAppRows inserts n live original rows attributed to the install, each of size bytes, as if uploaded earlier.
internal/appstore/attachments_test.go:275
↓ 2 callers
Function
seedBUG3755Database
(t *testing.T)
internal/store/bug3755_migration_054_fields_test.go:11
↓ 2 callers
Function
seedCollectionWithItems
(t *testing.T, srv *Server, ws, name string, n int)
internal/server/task2189_collection_restore_test.go:25
↓ 2 callers
Function
seedConventionFromLibrary
seedConventionFromLibrary converts a LibraryConvention into a SeedConvention. Its fields are LibraryConventionFields, the blob library ACTIVATION sto
internal/collections/templates.go:312
↓ 2 callers
Function
seedDiffVersion
seedDiffVersion replaces the item's history with one unhashed diff row.
internal/store/bug3839_invalid_utf8_version_test.go:325
↓ 2 callers
Function
seedFailureLeavesNoRestorableHusk
(t *testing.T, driver store.DriverType)
internal/server/handlers_cloud_autocreate_husk_test.go:156
↓ 2 callers
Function
seedField
seedField returns one of a seed's fields, and whether it has it.
internal/collections/templates_manifest.go:280
↓ 2 callers
Method
seedFromTemplate
seedFromTemplate is SeedCollectionsFromTemplate's body, for a template already resolved: a nil tmpl seeds the default collections and nothing else.
internal/store/collections.go:1279
↓ 2 callers
Function
seedItem
( fixture: SuiteFixture, request: APIRequestContext, title: string, )
web/e2e/item-action-bar-band.spec.ts:46
↓ 2 callers
Function
seedNoteCollection
Create a fresh, test-scoped collection with a plain `note` text field so a * per-item value can prove which item a stale continuation wrote to (mirr
web/e2e/pane-async-race.spec.ts:129
↓ 2 callers
Function
seedNoteItem
( fixture: SuiteFixture, request: APIRequestContext, collSlug: string, title: string, note: string, body
web/e2e/pane-async-race.spec.ts:145
↓ 2 callers
Function
seedOldGates
seedOldGates writes three gates in the old shape: a gated by b (a commitment), a gated by c (no commitment, already opened), d gated by b.
internal/store/commitment_gates_migration_test.go:55
↓ 2 callers
Function
seedOwnerWorkspace
32 hex chars, never issued seedOwnerWorkspace bootstraps the first admin (so RequireAuth is active and users exist) and returns the owner plus a fresh
internal/server/handlers_invitation_preview_test.go:28
↓ 2 callers
Function
seedTasks
(request: APIRequestContext, f: Fixture, ws = f.workspaceSlug)
web/e2e/chat-url-writes.spec.ts:36
↓ 2 callers
Method
seedToOneMore
seedToOneMore leaves room for exactly one more 15-byte upload, by file count or by bytes.
internal/appstore/attachments_test.go:388
↓ 2 callers
Function
seedUnrelatedReminderMigrationViolations
(t *testing.T, s *Store)
internal/store/reminder_migration_fk_test.go:12
↓ 2 callers
Function
seedUser
seedUser inserts a user directly with the given plan + created_at so tests can deterministically populate the customers_by_plan and new_signups_30d ag
internal/server/handlers_admin_billing_test.go:59
↓ 2 callers
Function
seedV1Database
( userId: string | null, ws: string, items: ItemIndexRow[] = [], meta?: { cursor: string; schemaVersion: n
web/src/test/idbHarness.ts:125
↓ 2 callers
Method
segmentLen
segmentLen is the byte length of the title segment a matched bracket will carry: the optional escaped `<collSlug>/` prefix plus the escaped title. Com
internal/links/links.go:714
↓ 2 callers
Function
selfRender
selfRender renders a value that chose how it prints, for the value path and the map-key path alike (one switch, so the two cannot drift): a URL reduce
internal/logging/scrub.go:219
↓ 2 callers
Method
sendCatchUp
* Send the whole document as one update (TASK-1319 / TASK-2199), so every * local edit is in it. On an open socket it settles what was owed; it is
web/src/lib/collab/wsProvider.svelte.ts:1533
↓ 2 callers
Method
sendProviderLinkedNotice
sendProviderLinkedNotice emails the account's owner that a provider was linked (TASK-4745 ruling). Best effort and asynchronous: a send failure is log
internal/server/oauth_pending_link.go:167
↓ 2 callers
Method
sendWith
sendWith is the internal send implementation.
internal/email/sender.go:152
↓ 2 callers
Method
sentinel
(it models.Item, status string)
internal/server/workspace_access_notify_test.go:444
↓ 2 callers
Function
seqCorruptions
()
internal/events/bug2744_seq_guard_test.go:60
↓ 2 callers
Function
serve
(runner *Runner, payload []byte)
internal/materialize/worker.go:167
↓ 2 callers
Method
serveCappedWithLimit
(req *http.Request, limit int64)
internal/mcp/response_cap.go:47
↓ 2 callers
Function
serveCmd
()
cmd/pad/cmd_server.go:51
↓ 2 callers
Function
serveSchemes
(h http.Handler, body string)
internal/mcp/chatgpt_security_test.go:28
↓ 2 callers
Function
served
()
web/src/lib/components/billing/BillingIntervalPicker.svelte.test.ts:6
↓ 2 callers
Function
servedOriginal
( naturalWidth: number | null | undefined, naturalHeight: number | null | undefined )
web/src/lib/attachments/viewerLoading.ts:145
↓ 2 callers
Function
serverBusyMessage
(retryAfterMs?: number)
web/src/lib/api/serverBusyToast.ts:38
↓ 2 callers
Function
serverStartCommand
serverStartCommand is the auto-started server's command. Its env is this process's, minus config.InternalNoDataDirWarningEnv: an MCP tool-call child c
internal/cli/server.go:86
↓ 2 callers
Function
serverTabs
* TASK-3279 (PLAN-3002 U5): every landing in a visible workspace outside the * open set opens it as an EPHEMERAL tab, and a write there keeps it. Eac
web/e2e/workspace-tabs.spec.ts:531
↓ 2 callers
Function
sess
( agent: string | undefined, state: LiveSession['state'], armed: boolean = state === 'online', id = Math.r
web/src/lib/chat/presence.test.ts:6
↓ 2 callers
Function
sessResp
(...ss: ReturnType<typeof sess>[])
web/src/lib/stores/chatInbox.svelte.test.ts:81
↓ 2 callers
Function
session
(chatEnabled?: boolean)
web/src/routes/layoutChatGating.svelte.test.ts:58
↓ 2 callers
Method
sessionHasStepUp
sessionHasStepUp reports whether this user's authenticated session has a live grant.
internal/server/handlers_step_up.go:18
↓ 2 callers
Method
sessionID
(token string)
internal/server/handlers_push_devices_test.go:60
↓ 2 callers
Function
sessionPid
($)
plugin/hooks/register.js:1073
↓ 2 callers
Function
sessionWorkerID
sessionWorkerID derives a stable lease worker id from the account and the MCP session id (TASK-3613): the same session always gets the same id, so a l
internal/mcp/client_identity.go:252
↓ 2 callers
Function
setAccessRevokedHandler
(handler: AccessRevokedHandler | null)
web/src/lib/api/client.ts:583
↓ 2 callers
Function
setActivationPending
* The pending contract, minimal (TASK-2434). * * Activation awaits a HEAD. On a cache hit that is one microtask and * nothing is visible;
web/src/lib/components/editor/attachment-image.ts:480
↓ 2 callers
Function
setAsideRowsIn
setAsideRowsIn reads set_aside_rows from a refusal's details (BUG-3244).
internal/mcp/errors.go:1750
↓ 2 callers
Function
setBoolSetting
setBoolSetting returns settingsJSON with key set to v and every other key unchanged.
internal/models/awaits_human.go:95
↓ 2 callers
Method
setBuiltinSeedExec
(ex interface { Exec(string, ...any) (sql.Result, error) }, itemID string, o models.BuiltinOrigin)
internal/store/builtin_origin.go:158
↓ 2 callers
Function
setConsentCSP
(w http.ResponseWriter, nonce string)
internal/server/handlers_oauth.go:1816
↓ 2 callers
Method
setCreated
(t *testing.T, it *models.Item, at string)
internal/store/items_field_range_test.go:47
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:57
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/library/libraryIdentityFence.svelte.test.ts:36
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/playbooks/[slug]/playbookIdentityFence.svelte.test.ts:106
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/settings/settingsIdentityFence.svelte.test.ts:160
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:312
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/[collection]/collectionChatUrlWrites.svelte.test.ts:275
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/roles/rolesWorkspaceSwitch.svelte.test.ts:35
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/roles/rolesIdentityFence.svelte.test.ts:50
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/tags/tagsLoadError.svelte.test.ts:59
↓ 2 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/tags/tagsIdentityFence.svelte.test.ts:59
↓ 2 callers
Method
setErr
(err error)
internal/server/task3585_push_key_test.go:37
↓ 2 callers
Function
setIdentityProvider
(provider: (() => string | null) | null)
web/src/lib/api/client.ts:546
↓ 2 callers
Function
setImportCollapsedHeader
(w http.ResponseWriter, report store.ImportReport)
internal/server/import_nul_repair.go:148
↓ 2 callers
Function
setLast
(next: Last | null)
web/src/lib/items/crashDraft.ts:77
← previous
next →
9,301–9,400 of 31,685, ranked by callers