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
Method
setAt
(t *testing.T, table, id, at string)
internal/store/needs_read_test.go:125
↓ 3 callers
Function
setCreatedAt
(t *testing.T, s *Store, itemID, ts string)
internal/store/reports_tz_test.go:19
↓ 3 callers
Function
setDraft
(userId: string, n: number, text: string, replySeq: number | null = null)
web/src/lib/chat/chatRecords.ts:68
↓ 3 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/settings/settingsLoadIdentityOrder.svelte.test.ts:121
↓ 3 callers
Function
setEpoch
(n: number)
web/src/routes/[username]/[workspace]/settings/bug3260NameOnColdLoad.svelte.test.ts:106
↓ 3 callers
Method
setHardware
The person's explicit choice. Off removes it: the pointer default applies, now and after a reload.
web/src/lib/chat/inputMode.svelte.ts:62
↓ 3 callers
Method
setLegacyRolesTx
(tx *sql.Tx, id, kind, start, end string)
internal/store/schedule_journal.go:63
↓ 3 callers
Function
setListWindowHeaders
setListWindowHeaders takes rows read one past limit, trims the probe row and sets the paging headers the item lists set (BUG-3704).
internal/server/handlers_items.go:4817
↓ 3 callers
Method
setMaintenanceCadence
setMaintenanceCadence changes T and the idle threshold on a running bus. IT EXISTS SO THE WIRING CAN BE TESTED AT THE CADENCE, not only the halves at
internal/events/redis_heartbeat.go:298
↓ 3 callers
Function
setRequestTimeoutForTests
(ms?: number)
web/src/lib/api/client.ts:980
↓ 3 callers
Function
setSessionTimes
setSessionTimes backdates a session's expires_at (and optionally created_at) so renewal-threshold and absolute-cap paths can be exercised deterministi
internal/store/sessions_test.go:327
↓ 3 callers
Function
setShallow
(path: string | null, state: Record<string, unknown>)
web/src/lib/stores/chatSurface.svelte.test.ts:356
↓ 3 callers
Method
setStatus
(t *testing.T, status string)
internal/store/needs_snooze_test.go:63
↓ 3 callers
Function
setTestEncryptionKey
BUG-3805: the startup at-rest encryption passes read every plaintext secret, then write the ciphertext of the value they READ. A write landing between
internal/store/bug3805_secret_backfill_race_test.go:15
↓ 3 callers
Function
settings
(over: Record<string, unknown>, rd: Record<string, unknown> = {})
web/src/routes/(console)/settings/admin/mcpSettingsSection.svelte.test.ts:43
↓ 3 callers
Method
settings
(mut func(*models.NotificationSettings))
internal/server/task3939b_push_fixture_test.go:224
↓ 3 callers
Function
settle
()
plugin/tests/seen.test.ts:86
↓ 3 callers
Function
settle
()
plugin/tests/watch.test.ts:79
↓ 3 callers
Function
settle
()
web/src/routes/layoutMobileBars.svelte.test.ts:68
↓ 3 callers
Function
settle
()
web/src/routes/activityPageHeadRefresh.svelte.test.ts:64
↓ 3 callers
Function
settle
()
web/src/routes/loginPendingLink.svelte.test.ts:48
↓ 3 callers
Function
settle
()
web/src/routes/setup/setupForm.svelte.test.ts:47
↓ 3 callers
Function
settle
()
web/src/lib/components/shareDialogCreateDuringLoad.svelte.test.ts:84
↓ 3 callers
Function
settle
()
web/src/lib/components/timeline/timelineVersionCardUnreconstructable.svelte.test.ts:44
↓ 3 callers
Function
settle
()
web/src/lib/components/items/attachmentDeleteIdentityFence.svelte.test.ts:126
↓ 3 callers
Function
settle
()
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:265
↓ 3 callers
Function
settle
()
web/src/lib/components/items/ItemDetail.workspaceScope.svelte.test.ts:144
↓ 3 callers
Function
settle
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:120
↓ 3 callers
Function
settle
* Let the lazy HEAD probe AND the activation's own MIME resolution settle. * Activation is asynchronous as of TASK-2433 — it resolves the MIME befor
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:149
↓ 3 callers
Function
settle
(ms = 0)
web/src/lib/components/editor/readonlyBodyNoMutation.svelte.test.ts:62
↓ 3 callers
Function
settle
* Waits until no API request is in flight and none has started for `quietMs`. * NOT `waitForLoadState('networkidle')`: after the first load that stat
web/e2e/task-2228-pane-switch-requests.spec.ts:54
↓ 3 callers
Method
settle
Arm the idle debounce to run `flushNow(ctx, false)` — unless a flush is * already pending, which then carries the settle too. Called when the op-lo
web/src/lib/collab/collabFlush.svelte.ts:158
↓ 3 callers
Function
settleGo
Release the latch once its traversal has settled; true when that ran a continuation.
web/src/lib/stores/chatSurface.svelte.ts:296
↓ 3 callers
Function
settleScale
(page: Page, selector = VIEWER_IMAGE)
web/e2e/lib/attachment-viewer.ts:308
↓ 3 callers
Method
sha
()
cmd/pad/cmd_github.go:45
↓ 3 callers
Function
sha256Hex
(input: string)
web/src/lib/utils/sha256.ts:22
↓ 3 callers
Method
sharedCounter
sharedCounter reads the authoritative sequence value. The bool is false when it could not be read, which callers treat as "answer from local knowledge
internal/watchevents/redis_bus.go:1022
↓ 3 callers
Function
shellSplit
shellSplit tokenizes a command line in a POSIX-ish way: whitespace separates tokens, double-quotes group, single-quotes group (no expansion inside), b
internal/cmdhelp/example_validation.go:159
↓ 3 callers
Function
shortHash
(s string)
internal/cli/session_arm_state.go:168
↓ 3 callers
Function
showPlanLimitToast
(err: PadApiError, opts: { scope?: string; blocked?: string } = {})
web/src/lib/billing/planLimitToast.ts:15
↓ 3 callers
Method
shutdown
shutdown signals the worker to drain + exit. Idempotent.
internal/server/middleware_mcp_audit.go:190
↓ 3 callers
Function
signOutFailed
()
web/src/lib/stores/signOutGuard.svelte.ts:41
↓ 3 callers
Method
signalGap
signalGap raises this subscriber's gap flag without blocking. Safe to call with the bus lock held: the send can never block.// INVARIANT FOR ANYONE AD
internal/watchevents/watchevents.go:618
↓ 3 callers
Function
signalRecovered
(now: number = Date.now())
web/src/lib/services/connectivity.svelte.ts:48
↓ 3 callers
Method
simpleReminderCommitmentQ
simpleReminderCommitmentQ checks capabilities, not provenance. A native start-only commitment has the same compatibility operations as a converted one
internal/store/reminder_commitment.go:27
↓ 3 callers
Function
size
Number of items currently held for a workspace. Test/debug aid.
web/src/lib/stores/localIndex.svelte.ts:2594
↓ 3 callers
Method
skipAt
skipAt skips item i's outstanding occurrence as of nowT.
internal/store/commitment_cancel_test.go:363
↓ 3 callers
Function
skipJSONSpace
(b []byte, i int)
internal/cli/native_item.go:204
↓ 3 callers
Function
sleep
(ms: number)
web/src/lib/api/client.ts:334
↓ 3 callers
Function
sliceContainsString
(v any, want string)
internal/server/handlers_oauth_test.go:137
↓ 3 callers
Function
sliceEqual
sliceEqual reports whether a and b have the same elements in the same order. Local tiny helper avoids pulling reflect.DeepEqual into each assertion at
internal/server/handlers_mcp_test.go:1899
↓ 3 callers
Function
snap
(css: number, dpr: number)
web/src/lib/attachments/zoom.test.ts:542
↓ 3 callers
Method
snapshot
()
internal/server/events_publish_test.go:29
↓ 3 callers
Method
snapshotMilestoneEvidenceTx
snapshotMilestoneEvidenceTx records the active selection as it stands when an occurrence resolves done. A schedule with no selection pays one query.
internal/store/milestone.go:573
↓ 3 callers
Function
snapshotPathFor
snapshotPathFor is the one place the pre-migration snapshot filename is built: <dbPath>.pre-<sanitized BinaryVersion>-m<target key>, e.g. pad.db.pre-0
internal/store/migration_guard.go:418
↓ 3 callers
Function
sniffOpaqueCandidates
sniffOpaqueCandidates returns EVERY type whose magic matches, because more than one can, and which is right is not always decidable from the bytes. T
internal/attachments/mime_magic.go:91
↓ 3 callers
Function
sniffOpaqueMagic
This file closes the second half of the gap BUG-2961 opened: the upload allowlist names types that SniffMIME cannot produce, so the door refuses — or
internal/attachments/mime_magic.go:61
↓ 3 callers
Method
socketOpen
()
web/src/lib/collab/wsProvider.svelte.ts:1523
↓ 3 callers
Function
softTimeout
softTimeout is the deadline the child enforces on itself with goja's Interrupt: a tenth short of the hard one (at least 50 ms short), so a job the int
internal/materialize/supervisor.go:264
↓ 3 callers
Function
sortModeKey
(ws: string, coll: string)
web/src/lib/collections/viewPersistence.ts:35
↓ 3 callers
Function
sortReversedKey
(ws: string, coll: string)
web/src/lib/collections/viewPersistence.ts:108
↓ 3 callers
Function
sortedDedupedLockKeys
sortedDedupedLockKeys returns keys in ascending order with duplicates collapsed. Split out from the acquisition so the ordering contract is testable w
internal/store/items_cross_workspace_copy.go:1136
↓ 3 callers
Function
sortedKeys
(m map[string]string)
internal/store/nulscan.go:444
↓ 3 callers
Function
sortedKeys
(m map[string]any)
internal/server/mobile_contract_test.go:262
↓ 3 callers
Function
source
(name: string)
web/vite.config.ts:36
↓ 3 callers
Function
source
()
web/src/lib/utils/pageLocation.ts:11
↓ 3 callers
Method
spawn
spawn starts, caps and readies a worker. The cap is applied after Start returns and BEFORE the parent writes the first byte to the child's stdin (the
internal/materialize/supervisor.go:533
↓ 3 callers
Function
specTemplateCollection
specCollectionByFile finds a collection by slug within a template, failing the test if it's missing. Small local helper to keep the SDD tests self-con
internal/collections/templates_sdd_test.go:13
↓ 3 callers
Function
spendLines
spendLines reads every "decision evaluation" line the runner logged.
internal/decision/conventions_test.go:330
↓ 3 callers
Function
spin
Spin microtasks + Svelte flushes until `until` holds. Never a timer.
web/src/routes/[username]/[workspace]/dashboardIdentityFence.svelte.test.ts:174
↓ 3 callers
Function
splitCodeFences
splitCodeFences partitions markdown source into alternating fenced / non-fenced spans. The fence detector recognizes the CommonMark form: at least thr
internal/server/render/attachments.go:470
↓ 3 callers
Function
splitRef
splitRef parses "TASK-5" into ("TASK", 5). The trailing -<number> is required; everything before the last '-' is the prefix. Returns ok=false on shape
internal/store/wiki_links.go:1055
↓ 3 callers
Function
splitResourceArgs
splitResourceArgs separates a resource-fetch arg vector into flag key/values and bare positionals. The input space is closed (only the resources.go ha
internal/mcp/resources_http.go:379
↓ 3 callers
Function
splitWikiBody
(body: string)
web/src/lib/utils/markdown.ts:1183
↓ 3 callers
Method
sql
(q string, args ...any)
internal/server/handlers_items_copy_schedule_test.go:187
↓ 3 callers
Function
sqlPlaceholderList
sqlPlaceholderList returns "?, ?, ?" for n. s.q rebinds to $1…$n on Postgres.
internal/store/attachments_copy_plan.go:751
↓ 3 callers
Function
sqliteFileURI
Escape filesystem names rather than letting SQLite interpret '?' or '#' as connection options. Windows drive paths need a leading slash in file URIs.
cmd/pad/db_restore_sqlite.go:232
↓ 3 callers
Function
src
(p: string)
web/src/lib/stores/workspaceScopeReaders.guard.test.ts:25
↓ 3 callers
Function
sseAccessEpochAdvance
sseAccessEpochAdvance decides whether a recomputed snapshot announces an access change, and returns the epoch the next tick compares against. A DEGRA
internal/server/handlers_events.go:839
↓ 3 callers
Function
staleBundleItems
staleBundleItems names the items in a built bundle whose bodies the exporter marked as behind their live collaborative documents (BUG-3032). It reads
cmd/pad/cmd_db.go:1007
↓ 3 callers
Function
stalledTLSServer
stalledTLSServer accepts TCP connections and then says nothing. The TCP connect succeeds; the handshake never completes. THIS IS THE SHAPE THE DEFECT
internal/redisdial/redisdial_test.go:177
↓ 3 callers
Function
stampAged
BUG-2629 — RestoreItem / RestoreDocument must re-stamp the attachment references in the restored content, so an orphan-GC claim racing the restore is
internal/store/attachments_restore_stamp_test.go:29
↓ 3 callers
Function
stampCommentAttribution
stampCommentAttribution sets a new comment's author, created_by and source from the request, whatever the body said (BUG-3372). The body could name an
internal/server/handlers_documents.go:389
↓ 3 callers
Method
stampLastSeen
stampLastSeen records that the subscription just received something. Called for EVERY inbound frame, ahead of any decode: what is measured is whether
internal/watchevents/heartbeat.go:138
↓ 3 callers
Function
standupCmd
--- standup ---
cmd/pad/cmd_project.go:414
↓ 3 callers
Function
startAnnouncedStub
startAnnouncedStub starts a stub with STUB_ANNOUNCE=1 in its env and returns the port it reports once it is listening. The wait is on the process's ow
internal/buildtools/install_refresh_test.go:277
↓ 3 callers
Method
startApplierApply
startApplierApply opens the durable persistence bracket for requestID: it refines the bracket baseline to the applier conn's high-water + frozen-drop
internal/collab/applier.go:1033
↓ 3 callers
Function
startClock
(id: string, clock: ToastClock)
web/src/lib/stores/toast.svelte.ts:85
↓ 3 callers
Method
startDemoteFinalize
startDemoteFinalize lowers unprompted execution when text is authored by someone other than an owner. Flushes cannot establish the text author.
internal/server/start_demote.go:16
↓ 3 callers
Method
startEntry
startEntry holds the mutex across lookup, TTL refresh and optional write. Both run state and per-playbook offer claims share the bounded cache.
internal/server/session_presence_start.go:25
↓ 3 callers
Method
startKey
(userID, workerID, workspaceID string)
internal/server/session_presence_start.go:76
↓ 3 callers
Function
startUpload
* Kick off an upload for a single file. Inserts the placeholder * immediately, then races the network. The placeholder's position is * mapped throug
web/src/lib/components/editor/attachment-upload.ts:197
↓ 3 callers
Function
startWhenItem
TASK-4926: a start playbook's start_when names the condition its start holds under.
internal/server/task4926_start_when_test.go:16
↓ 3 callers
Function
stateDeclarations
(code: string)
web/src/test/identityFenceSource.ts:631
↓ 3 callers
Method
stateFor
stateFor builds the item's current state as qs sees it: with its links when qs is WithLinks, and without the comment trail when qs is NoTrail.
internal/decision/runner.go:489
↓ 3 callers
Function
statusOf
(fields string)
scripts/decision-eval/attention/main.go:318
↓ 3 callers
Function
statusRows
()
web/src/lib/components/collections/statusPickerTestKit.ts:22
↓ 3 callers
Method
stepUpSession
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_step_up.go:108
↓ 3 callers
Function
stillOpenReply
(options string, ack bool)
cmd/pad/schedule_end_test.go:14
↓ 3 callers
Method
stmt
(n: Node, s: State)
web/src/test/identityFenceAst.ts:1134
← previous
next →
6,301–6,400 of 31,685, ranked by callers