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
↓ 4 callers
Function
storedItem
(t *testing.T, srv *Server, ws, slug string)
internal/server/handlers_items_append_test.go:40
↓ 4 callers
Method
storedLinkID
storedLink reads the one link between two items' schedules.
internal/store/schedule_link_carry_test.go:53
↓ 4 callers
Function
storedNotInsertedMessage
(filename: string)
web/src/lib/components/editor/attachment-upload.ts:107
↓ 4 callers
Method
storedSettings
(id string)
internal/server/bug3976_settings_not_object_test.go:57
↓ 4 callers
Function
stream
(content: string)
web/e2e/lib/pdf-fixtures.ts:27
↓ 4 callers
Function
streamPrincipal
streamPrincipal is the key a request is bounded under: its user id when one resolved, otherwise a workspace-derived key for the callers that have no u
internal/server/stream_admission.go:206
↓ 4 callers
Function
streamWatchEvents
streamWatchEvents reads SSE lines from an open connection, printing formatMonitorLine for each "notification" event, until the body is exhausted (conn
cmd/pad/cmd_watch.go:707
↓ 4 callers
Function
stripANSI
stray C0 controls + DEL (includes bare ESC) stripANSI removes escape and control sequences from s, leaving the visible text. TAB, LF, and CR are prese
internal/cli/format.go:174
↓ 4 callers
Function
structuredAppendRefusal
structuredAppendRefusal turns the Append* helpers' refusal — raised locally on the legacy path, or by the server as 409 stored_state_unreadable on the
cmd/pad/notes.go:228
↓ 4 callers
Function
stubProps
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:365
↓ 4 callers
Function
stubProps
()
web/src/routes/[username]/[workspace]/[collection]/collectionChatUrlWrites.svelte.test.ts:325
↓ 4 callers
Function
stubReaderMountNS
stubReaderMountNS pins the reader's mount namespace for one test.
internal/cli/session_owner_pidns_linux_test.go:221
↓ 4 callers
Function
suggestionTitles
(resp DashboardResponse)
internal/server/bug3453_ready_fallback_test.go:28
↓ 4 callers
Function
surfacedKeys
(ds []models.ItemDecision)
internal/decision/task3618_surfaced_test.go:12
↓ 4 callers
Function
syntheticLinkBundle
syntheticLinkBundle is a bundle of n items, each with a native schedule that has target, earliest and occupied_until roles, built from one real export
internal/store/schedule_link_hostile_test.go:13
↓ 4 callers
Function
t4137OAuth
(t *testing.T, srv *Server, remote string, extra map[string]interface{})
internal/server/task4137_pkce_twofactor_test.go:56
↓ 4 callers
Function
t772Setup
(t *testing.T)
internal/server/task772_dashboard_visibility_test.go:51
↓ 4 callers
Method
tabsCaller
tabsCaller returns the user and their visible set, or writes the refusal.
internal/server/handlers_workspace_tabs.go:104
↓ 4 callers
Method
targetCollection
--- doors 5-6: the same-workspace migrate doors ----------------------- targetCollection is a second collection in `tasks`'s workspace with the same s
internal/server/relation_referents_doors_test.go:380
↓ 4 callers
Function
task3394FixtureIn
task3394FixtureIn adds an install, with its bot and client, to a store.
internal/store/task3394_install_clients_test.go:43
↓ 4 callers
Function
task3397Epoch
(t *testing.T, s *Store, id string)
internal/store/task3397_lifecycle_test.go:120
↓ 4 callers
Function
task3397UpgradeFix
TASK-3397 (U8b2): the upgrade transaction's lock order.
internal/store/task3397_upgrade_test.go:13
↓ 4 callers
Function
task3462Origin
(t *testing.T, srv *Server, itemID string)
internal/server/task3462_builtin_origin_test.go:57
↓ 4 callers
Function
task3549Server
(t *testing.T)
internal/server/task3549_stripe_customer_cas_test.go:19
↓ 4 callers
Function
task3617Backends
()
internal/store/task3617_verifications_test.go:16
↓ 4 callers
Function
task3617Row
(id, text, verdict string)
internal/store/task3617_verifications_test.go:29
↓ 4 callers
Function
task3867EnrolTOTP
(t *testing.T, e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:529
↓ 4 callers
Function
testSession
()
cmd/pad/cmd_auth_poll_test.go:54
↓ 4 callers
Function
tightenPerms
tightenPerms sets path to 0600 if it exists. Best-effort: errors only emit a warning to stderr (the user's primary intent — install / no-op — already
internal/mcp/install.go:254
↓ 4 callers
Function
timelinePage
timelinePage fetches one page, by cursor when one is supplied.
internal/server/handlers_timeline_cursor_test.go:51
↓ 4 callers
Function
titled
`container` elements whose own `titleSel` element reads exactly `title`. * A card also shows its PARENT's title in a chip, so hasText would match th
web/e2e/permission-walk-move.spec.ts:188
↓ 4 callers
Function
toIdle
()
web/src/lib/attachments/viewerImageLoader.svelte.ts:163
↓ 4 callers
Function
toSkinny
* Strip a row down to the skinny shape. Defensive: discard `content` * if a caller passed a full `Item` rather than an `ItemIndexRow`. The * destruc
web/src/lib/stores/localIndex.svelte.ts:488
↓ 4 callers
Function
tokenRotateCmd
()
cmd/pad/cmd_token.go:166
↓ 4 callers
Function
totpEnabled
(t *testing.T, srv *Server, userID string)
internal/server/task2190_totp_disable_test.go:46
↓ 4 callers
Function
transformOf
The `transform` inline style on the viewer's image (empty before it mounts).
web/src/lib/components/common/Lightbox.svelte.test.ts:246
↓ 4 callers
Function
traversing
()
web/src/lib/stores/chatSurface.svelte.ts:333
↓ 4 callers
Function
triageQuestions
()
internal/decision/runner_test.go:24
↓ 4 callers
Function
trimSpace
(s: string)
web/src/lib/chat/presence.ts:20
↓ 4 callers
Method
uniqueFieldConflictsQ
(q Queryer, collectionID, excludeItemID string, schema []models.FieldDef, fields map[string]any)
internal/store/unique_fields.go:54
↓ 4 callers
Method
uniqueSlugExcluding
uniqueSlugExcluding generates a unique slug, excluding a specific document ID from the collision check. Used during title renames. It takes the execut
internal/store/store.go:1542
↓ 4 callers
Method
uniqueSlugQ
uniqueSlugQ is uniqueSlug parameterized over the query surface (rowQueryer) so the collision scan can run either unlocked against *sql.DB or inside an
internal/store/store.go:1996
↓ 4 callers
Function
untrackedSpans
(block: string)
web/src/test/identityFenceSource.ts:407
↓ 4 callers
Function
unusedPort
unusedPort returns a port nothing is listening on, so the health probe in StopServer resolves to "nothing there" rather than finding an unrelated serv
internal/cli/server_stop_honesty_test.go:225
↓ 4 callers
Function
unwrapItems
unwrapItems extracts the array from a `{items: [...]}` envelope — the post-BUG-985 shape ExecDispatcher and packageHTTPResponse use for top-level arra
internal/mcp/dispatch_http_links_test.go:459
↓ 4 callers
Function
update
(slug: string, patch: Record<string, unknown>, asAgent = false)
web/e2e/lib/readme-seed.ts:77
↓ 4 callers
Function
uploadSource
BUG-2819 wiring: each door that writes an attachment row records where the name came from, driven from the consuming side (the router), not by calling
internal/server/bug2819_filename_source_wiring_test.go:19
↓ 4 callers
Function
uploadedAttachmentID
uploadedAttachmentID pulls the new attachment's id out of a 201 upload response body.
internal/server/handlers_attachments_test.go:336
↓ 4 callers
Method
upsertOccurrenceTx
upsertOccurrenceTx writes the resolved occurrence's row, replacing a `moved` row an earlier move left for it. The identity is the UTC instant; an all-
internal/store/schedule_resolve.go:1122
↓ 4 callers
Method
upsertScheduleOverrideTx
(tx *sql.Tx, id, key, role string, at time.Time, wall *string)
internal/store/schedule_overrides.go:11
↓ 4 callers
Function
usable
* An item id that could alias another key is refused (BUG-3863): 'X:held' * would otherwise read and write X's held slot. Real ids are UUIDs.
web/src/lib/items/refusedRawDraft.ts:79
↓ 4 callers
Function
validLinkStamps
(stamps ...string)
internal/store/schedule_link_import.go:180
↓ 4 callers
Function
validQueryText
validQueryText reports whether every key and value a handler could read out of this raw query string is bindableText. WHAT IT CHECKS AGAINST. url.Par
internal/server/middleware_request_text.go:332
↓ 4 callers
Function
validateMigrated
validateMigrated runs the shape check the migrate doors run after resolving, which is the step this fix exists to keep from failing.
internal/store/relation_multi_defaults_test.go:423
↓ 4 callers
Function
validateScheduleFields
validateScheduleFields checks the store-owned fields. dtend is the canonical wall text or "" when absent; the caller has already compiled dtstart.
internal/store/schedules.go:216
↓ 4 callers
Method
variantOf
(t *testing.T, workspaceID string, parent *models.Attachment, kind string, size int64)
internal/store/items_cross_workspace_copy_test.go:86
↓ 4 callers
Function
variantUrl
* The URL for one variant. `original` is the CANONICAL, no-`?variant` download — * that is what "the original" IS on the server (it serves the origin
web/src/lib/attachments/viewerImageLoader.svelte.ts:139
↓ 4 callers
Function
versionCount
(t *testing.T, s *store.Store, itemID string)
internal/store/materialize_flush_test.go:43
↓ 4 callers
Method
versionCount
(t *testing.T)
internal/server/handlers_item_versions_bug3031_test.go:46
↓ 4 callers
Function
versionSources
(t *testing.T, srv *Server, itemID string)
internal/server/task3321_u1b_chatgpt_versions_test.go:31
↓ 4 callers
Function
versionUserID
versionUserID is the user_id stored on a version row: NULL rather than ” for a writer with no user (PLAN-2348 U2).
internal/store/items.go:7332
↓ 4 callers
Function
viewerClose
(page: Page)
web/e2e/lib/attachment-viewer.ts:148
↓ 4 callers
Method
visibility
(userID string)
internal/server/handlers_me_needs.go:247
↓ 4 callers
Method
visibleCollectionIDsQ
visibleCollectionIDsQ is visibleCollectionIDs read on a caller-supplied executor, without the fault seam (BUG-3659: the account export re-checks acces
internal/server/server.go:3583
↓ 4 callers
Function
visibleWorkspaceGroup
visibleWorkspaceGroup filters every saved member and orders by the admitted workspace slug and id. Hidden members never contribute response metadata.
internal/server/handlers_workspace_groups.go:160
↓ 4 callers
Function
visit
(n: Node, anc: Node[])
web/src/test/identityFenceAst.ts:433
↓ 4 callers
Method
waitForDrain
waitForDrain waits for every renewal goroutine to finish, up to timeout. Reports whether they all finished; false means at least one is still running
internal/server/session_presence_redis.go:861
↓ 4 callers
Method
waitForWaiters
waitForWaiters waits until n backends of this database wait on a lock.
internal/store/commitment_links_pg_test.go:86
↓ 4 callers
Method
waitParked
waitParked blocks until the proxy has parked a SUBSCRIBE, and fails the test if none arrives. A one-shot read of held is NOT a barrier: the client's w
internal/events/redis_subscribe_confirm_test.go:148
↓ 4 callers
Function
wallOf
(t time.Time, allDay bool)
internal/schedule/engine.go:31
↓ 4 callers
Function
wallStrings
(ws []schedule.Wall)
internal/store/schedules.go:401
↓ 4 callers
Function
wantRefused
(t *testing.T, err error, reason string)
internal/store/task3408_delivery_test.go:66
↓ 4 callers
Function
wantRemoved
(t *testing.T, pidFile string)
internal/buildtools/bug4068_pidfile_test.go:81
↓ 4 callers
Function
warnPlaybookBodyStale
warnPlaybookBodyStale prints one line to STDERR when a playbook body this command is about to print is one the server knows is BEHIND the item's live
cmd/pad/cmd_playbook.go:350
↓ 4 callers
Function
warnUndeclaredFields
warnUndeclaredFields prints one line to STDERR naming field keys the collection's schema does not declare (BUG-2850). Stderr, never stdout: `pad item
cmd/pad/cmd_item.go:4587
↓ 4 callers
Method
watch
watch names the client address of the connection whose failure counts.
internal/server/bug3637_sse_stalled_reader_test.go:59
↓ 4 callers
Function
wholeSecond
wholeSecond refuses an instant with a fraction of a second. The CLI formats instants to the second and the route keeps the fraction, so the same value
internal/mcp/catalog_item_schedule.go:362
↓ 4 callers
Function
wireOAuthForTest
wireOAuthForTest makes oauthAvailable true the way production does on an https self-host (PLAN-2310 DR-1, DR-4): https addressing, the MCP setting for
internal/server/mcp_capability_test.go:121
↓ 4 callers
Function
withCredentialsLock
withCredentialsLock runs fn with the path of credentials.json while holding credentials.json.lock: exclusive for a write, shared for a read. fn is tol
internal/cli/credentials.go:471
↓ 4 callers
Function
withDuplicateManifest
withDuplicateManifest appends a second attachments/manifest.json, which is the duplicate-manifest reject — one of the four *importStatusError sites th
internal/server/handlers_import_bundle_husk_test.go:93
↓ 4 callers
Function
withFastCLIAuthPolling
withFastCLIAuthPolling shrinks pollAndSaveCLIAuth's interval/timeout/error bound for the duration of the test, then restores them. Mirrors internal/cl
cmd/pad/cmd_auth_poll_test.go:25
↓ 4 callers
Function
work
(extra: Partial<AgendaWorkEntry> = {})
web/src/lib/calendar/presentation.test.ts:161
↓ 4 callers
Function
workRow
(extra: Partial<AgendaWorkEntry> = {})
web/src/routes/(console)/agenda/agenda.svelte.test.ts:55
↓ 4 callers
Function
write
(key: string, value: string)
web/src/lib/collections/viewPersistence.ts:58
↓ 4 callers
Method
write
(w http.ResponseWriter)
internal/server/handlers_apps_install.go:173
↓ 4 callers
Function
writeAccountDisabledIf
--- Account Deletion (GDPR Article 17 — Right to Erasure) --- writeAccountDisabledIf answers 403 account_disabled when err is the store's refusal to m
internal/server/handlers_account.go:26
↓ 4 callers
Function
writeAgendaParam
(w http.ResponseWriter, field, code, msg string)
internal/server/handlers_agenda.go:135
↓ 4 callers
Function
writeCalendarFeedNotFound
(w http.ResponseWriter)
internal/server/handlers_calendar_feeds.go:46
↓ 4 callers
Method
writeCommitmentGraphError
writeCommitmentGraphError handles only the closed graph error vocabulary. Unexpected failures go through the existing sanitized schedule fallback.
internal/server/commitment_errors.go:18
↓ 4 callers
Function
writeConfig
(t *testing.T, path string, data map[string]any)
internal/mcp/install_test.go:863
↓ 4 callers
Method
writeMCPUnauthorized
writeMCPUnauthorized emits the spec-shaped 401 every MCP client expects: WWW-Authenticate with realm + resource_metadata, plus a small JSON body so cu
internal/server/middleware_mcp_auth.go:613
↓ 4 callers
Function
writeMarkdownRow
writeMarkdownRow writes one pipe-delimited row. Cells are expected to be pre-escaped.
internal/cli/format_markdown.go:57
↓ 4 callers
Function
writeMarker
(t *testing.T, cfg *config.Config, pid, port int, deadline time.Time)
internal/cli/refresh_marker_test.go:58
↓ 4 callers
Method
writeNativeRolesTx
writeNativeRolesTx is every native roles writer's door. Derivation and all validation precede its single UPDATE (or the create INSERT), so the table's
internal/store/commitment.go:374
↓ 4 callers
Function
writePadTomlURL
writePadTomlURL links the current directory to serverURL.
cmd/pad/bug3646_pad_toml_token_test.go:45
↓ 4 callers
Method
writeResolveError
(w http.ResponseWriter, r *http.Request, err error)
internal/server/commitment_errors.go:113
↓ 4 callers
Function
writeSSEEvent
writeSSEEvent writes a single SSE event to the response writer. If eventID > 0, an "id:" field is included for Last-Event-ID support. THE "id:" FIELD
internal/server/handlers_events.go:1211
↓ 4 callers
Function
writeScheduleRequired
(w http.ResponseWriter, field string)
internal/server/handlers_schedules.go:144
↓ 4 callers
Function
writeTokenWorkspaceDenied
writeTokenWorkspaceDenied is writeTokenWorkspaceDeniedFor for the request's own token.
internal/server/pinned_token.go:165
↓ 4 callers
Function
yjsFrameIsEnvelopeNonContent
yjsFrameIsEnvelopeNonContent reports whether a persisted sync frame is a SyncStep1 or an empty update/SyncStep2 — facts (1) and (2) above — parsing th
internal/store/yjs_content_bearing.go:75
← previous
next →
4,301–4,400 of 28,840, ranked by callers