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
↓ 3 callers
Function
setAfterScanHook
setAfterScanHook installs fn for store s for the rest of the test.
internal/store/wiki_links_backfill_race_test.go:29
↓ 3 callers
Method
setCreated
(it *models.Item, at time.Time)
internal/server/handlers_me_needs_test.go:115
↓ 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:4654
↓ 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:958
↓ 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
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
()
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/setup/setupForm.svelte.test.ts:47
↓ 3 callers
Function
settle
()
web/src/lib/components/timeline/timelineVersionCardUnreconstructable.svelte.test.ts:44
↓ 3 callers
Function
settle
()
web/src/lib/components/items/itemDetailAddDate.svelte.test.ts:116
↓ 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:153
↓ 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:167
↓ 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
Method
signInOriginAllowed
signInOriginAllowed accepts this server's own origin (the request's own scheme and Host, or the configured base URL) and the configured CORS origins,
internal/server/handlers_auth.go:1213
↓ 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:611
↓ 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
simplicityOf
simplicityOf is (3 - effort)/3 of 100. Effort is the level the stored effort answer picked (argmax, so the value and the hint cannot disagree), when t
internal/server/needs_scorers.go:535
↓ 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
sleep
(ms: number)
web/src/lib/api/client.ts:323
↓ 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
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:1508
↓ 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
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:1135
↓ 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
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
splitFTSPrefix
splitFTSPrefix separates the final alphanumeric part from the whole-word head. An empty part disables prefix matching. Only letters and decimal digits
internal/store/search.go:577
↓ 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:996
↓ 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:367
↓ 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
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:899
↓ 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:399
↓ 3 callers
Method
start
(t *testing.T)
internal/server/effort_backfill_lifecycle_test.go:69
↓ 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
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
stateDeclarations
(code: string)
web/src/test/identityFenceSource.ts:631
↓ 3 callers
Function
statusOf
(fields string)
scripts/decision-eval/attention/main.go:316
↓ 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:60
↓ 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
↓ 3 callers
Function
stopAutoScroll
()
web/src/lib/components/editor/block-drag-handle.ts:726
↓ 3 callers
Function
stopObserver
()
web/src/lib/a11y/viewerBackdrop.ts:170
↓ 3 callers
Function
stopPolling
()
web/src/lib/services/sse.svelte.ts:185
↓ 3 callers
Method
stopPushDispatch
stopPushDispatch signals the loop to exit. Safe when it never started.
internal/server/push_dispatch.go:300
↓ 3 callers
Method
stopRedisSubscription
stopRedisSubscription cancels and cleans up the Redis subscription for a workspace. Must be called with b.mu held.
internal/events/redis_bus.go:2086
↓ 3 callers
Method
stopReminderTick
stopReminderTick signals the loop to exit. Safe when it never started.
internal/server/reminder_tick.go:122
↓ 3 callers
Method
stopTokenReaper
stopTokenReaper signals the loop to exit. Called from Server.Stop(). Safe to call when the loop never started.
internal/server/token_reaper.go:85
↓ 3 callers
Function
stopWatchdog
()
web/src/lib/services/sse.svelte.ts:257
↓ 3 callers
Function
storage
()
web/src/lib/billing/upgradeResume.ts:19
↓ 3 callers
Function
storedCustomer
(t *testing.T, srv *Server, userID string)
internal/server/task3549_stripe_customer_cas_test.go:41
↓ 3 callers
Function
storedFields
(t *testing.T, srv *Server, slug, itemSlug string)
internal/server/handlers_items_refuse_undeclared_test.go:39
↓ 3 callers
Function
storedFireInstant
storedFireInstant recomputes a managed row's instant after a lead change from the stored outstanding occurrence, its zone and any override, through fi
internal/store/schedules.go:1088
↓ 3 callers
Function
storedTOTPSecret
storedTOTPSecret reads a user's totp_secret column and decrypts it, whatever the user's 2FA state. The User struct no longer carries the secret (BUG-4
internal/store/totp_secret_helper_test.go:7
↓ 3 callers
Function
strToTimeInLoc
(str string, loc *time.Location)
internal/schedule/internal/rrule/str.go:26
← previous
next →
5,701–5,800 of 28,840, ranked by callers