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
respond
(status: number, date: string | null, body: unknown)
web/src/lib/api/serverClockWiring.test.ts:18
↓ 3 callers
Function
responseCapHelperBinary
(t *testing.T, mode string)
internal/mcp/response_cap_test.go:54
↓ 3 callers
Method
restoreBulk
(items ...*models.Item)
internal/server/handlers_restore_plan_limit_test.go:67
↓ 3 callers
Method
restoreCollection
(t *testing.T)
internal/server/bug3635_share_archived_target_test.go:30
↓ 3 callers
Function
resultOf
resultOf extracts a response's `result`, with serverInfo.version replaced by a placeholder. The rest of the bytes are passed through untouched.
cmd/pad/mcp_wire_golden_test.go:134
↓ 3 callers
Function
resultsFor
--- the retry matrix ---
internal/server/task3939b2a_push_test.go:217
↓ 3 callers
Method
resumeGap
()
internal/watchevents/observer.go:181
↓ 3 callers
Function
resyncProjectionScope
( ws: string, state: WorkspaceState, // The epoch the SERVER most recently told this caller, when the calle
web/src/lib/stores/localIndex.svelte.ts:957
↓ 3 callers
Function
retargetRelationsInSchemaJSON
retargetRelationsInSchemaJSON rewrites `collection` on every `relation` field in a raw schema document, preserving every other property including ones
internal/store/collections.go:1733
↓ 3 callers
Method
retirePendingLocked
retirePendingLocked removes an establishment record if it is still the current one. Callers must hold b.mu. The identity check matters: a record we a
internal/events/redis_bus.go:2009
↓ 3 callers
Method
retryOnDeadlockCtx
retryOnDeadlockCtx is retryOnDeadlock that stops retrying once ctx is done: the attempt's own error is returned, and the backoff sleep ends early (TAS
internal/store/deadlock_retry.go:51
↓ 3 callers
Method
revalidateIfSchemaMovedTx
BUG-3407: an item write is validated against its collection's schema in the handler, BEFORE the store takes the workspace seq lock. A schema change th
internal/store/items_revalidate.go:38
↓ 3 callers
Function
reviewsCollection
BUG-2347: a collection's own `abandoned_options` decides which terminal values close WITHOUT delivering. The live instance: plans declare terminal_opt
internal/server/handlers_changelog_abandoned_test.go:15
↓ 3 callers
Function
rewrite
Fulfil `route` with the real response, rewritten by `edit`.
web/e2e/bug-3050-stale-body-renders.spec.ts:43
↓ 3 callers
Function
rfcInt
rfcInt reads RFC 5545 3.3.10 integers. Check the whole grammar before conversion so a malformed suffix remains syntax even after huge digits. maxDigit
internal/schedule/rule.go:157
↓ 3 callers
Method
richLinks
richLinks writes the links and overrides every round-trip test starts from: a civil link and an elapsed one with a cancel policy, both with overrides.
internal/store/schedule_link_carry_test.go:64
↓ 3 callers
Function
rl3310Exhaust
rl3310Exhaust sends path until it draws a 429, failing the test if 200 requests never do.
internal/server/middleware_ratelimit_bug3310_test.go:30
↓ 3 callers
Function
roleConfigured
roleConfigured reports whether a schedule's roles include role.
internal/store/commitment_links.go:491
↓ 3 callers
Function
roleLaneLess
roleLaneLess defines the canonical lane ordering: (role_sort_order asc, created_at asc, item_number asc).
internal/store/role_park.go:98
↓ 3 callers
Function
roleLevel
roleLevel returns a numeric level for role comparison. Higher values indicate more permissions.
internal/server/middleware_auth.go:990
↓ 3 callers
Function
roleMarkers
(entries: AgendaEntry[], zone: string, forecasts: AgendaForecast[] = [], nextFrom?: string)
web/src/lib/calendar/presentation.ts:488
↓ 3 callers
Function
roleOffsetsOf
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/commitment_role_offsets_test.go:28
↓ 3 callers
Method
roles
roles is the snapshot, nil for an unstamped row (moved, or a row no writer has stamped). Outcome and origin are left empty: they stay the schedule's.
internal/store/occurrence_roles.go:43
↓ 3 callers
Function
rollupPresence
( conversationAgentKeys: readonly string[], sessions: readonly LiveSession[] | 'unavailable' )
web/src/lib/chat/presence.ts:62
↓ 3 callers
Function
rotateWithBearer
BUG-3978: a credential change rotates the caller's session, and the replacement keeps the replaced session's own sliding window. It used to be minted
internal/server/bug3978_rotation_ttl_test.go:20
↓ 3 callers
Function
row
(id: string, seq: number, collection = 'kept')
web/src/lib/stores/localIndexResyncSettled.svelte.test.ts:45
↓ 3 callers
Function
row
(page: Page, seq: number)
web/e2e/chat-thread-write.spec.ts:75
↓ 3 callers
Method
row
(t *testing.T, id string)
internal/store/convention_role_backfill_test.go:65
↓ 3 callers
Function
rtProbe
rtProbe creates the scratch table the bound tests write to.
internal/store/runtime_pool_test.go:81
↓ 3 callers
Function
rtServer
(s string)
internal/server/handlers_agenda_test.go:685
↓ 3 callers
Function
run
(key: K, work: (run: SingleFlightRun) => Promise<void>)
web/src/lib/stores/singleFlight.ts:124
↓ 3 callers
Function
runBrowserSetup
runBrowserSetup drives the browser-based first-admin bootstrap and the CLI authorization in a SINGLE browser handoff. Before printing anything it crea
cmd/pad/cmd_auth.go:158
↓ 3 callers
Function
runConfigureFlow
(cfg *config.Config, values configureValues)
cmd/pad/configure.go:108
↓ 3 callers
Method
runDisconnectCleanup
* Cleanup shared by `onClose` and the paths that bypass it via * `closeSocket()` (which removes the close listener before calling * `ws.close()`):
web/src/lib/collab/wsProvider.svelte.ts:772
↓ 3 callers
Function
runHandshake
runHandshake spins up srv against in-memory pipes, drives the MCP client's Initialize, and returns the result + a cleanup that tears the goroutine dow
internal/mcp/server_test.go:191
↓ 3 callers
Function
runHeadlessSetup
runHeadlessSetup drives the output layer for `pad auth setup --email …`. It delegates the actual work to doHeadlessBootstrap and then prints the resul
cmd/pad/cmd_auth.go:284
↓ 3 callers
Function
runHeals
Run the queued heals; the pathnames of those that reported a navigation. Sync unless one returned a promise.
web/src/lib/stores/chatSurface.svelte.ts:97
↓ 3 callers
Function
runItemHistory
(t *testing.T, format string, args ...string)
cmd/pad/bug4026_history_backlinks_json_test.go:66
↓ 3 callers
Function
runNote
(t *testing.T, args ...string)
cmd/pad/task3585_append_retry_test.go:49
↓ 3 callers
Function
runNoteAgainst
(t *testing.T, stub *appendStub, decide bool)
cmd/pad/notes_append_gate_test.go:84
↓ 3 callers
Method
runOpenChildrenGuard
runOpenChildrenGuard executes the guard logic inside the store-layer transaction. Returns: - (nil, nil) when the guard doesn't apply (no transition,
internal/server/handlers_items_open_children_guard.go:157
↓ 3 callers
Method
runPushDispatchTick
runPushDispatchTick is one pass. ctx is the shutdown signal.
internal/server/push_dispatch.go:494
↓ 3 callers
Function
runRecorded
runRecorded runs CaptureWrites under a recorder and returns its fatal message, or "" if the capture completed.
internal/store/storetest/writecapture_test.go:183
↓ 3 callers
Function
runSessionExpiryKeepers
()
web/src/lib/stores/sessionExpiryKeep.ts:26
↓ 3 callers
Function
safeLocalFilename
safeLocalFilename reduces a SERVER-SUPPLIED filename to something safe to join onto a local directory. The name in Content-Disposition originates wit
cmd/pad/cmd_attachment.go:537
↓ 3 callers
Function
sameSchedItems
(t *testing.T, what string, got []AgendaSchedule, want ...*models.Item)
internal/store/schedule_calendar_test.go:73
↓ 3 callers
Function
sameSet
(a, b []string)
internal/store/bug3686_list_search_test.go:29
↓ 3 callers
Function
sameWriter
(a: HistoryWho, b: HistoryWho)
web/src/lib/components/timeline/historyEvents.ts:142
↓ 3 callers
Function
sanitizeSessionLabel
sanitizeSessionLabel makes a client-supplied label safe to store and hand to a UI: printable characters only, collapsed whitespace, truncated to maxSe
internal/server/session_identity.go:116
↓ 3 callers
Function
sanitizeVersion
sanitizeVersion makes a build-version string safe as a filename suffix. Build versions can carry spaces/parens (e.g. "1.2.3 (abc1234)"); collapse anyt
internal/store/migration_guard.go:283
↓ 3 callers
Function
savePending
(userId: string, n: number, op_key: string, body: string, reply_seq: number | null = null)
web/src/lib/chat/chatRecords.ts:75
↓ 3 callers
Function
scan
scan marks the lines inside fenced code blocks (fence lines included) and lists the headings outside them, following CommonMark's rules for both: a fe
internal/acceptance/acceptance.go:56
↓ 3 callers
Function
scanAPIToken
scanAPIToken scans an API token from a row scanner.
internal/store/api_tokens.go:444
↓ 3 callers
Method
scanAttachmentsInto
scanAttachmentsInto runs a query returning attachmentColumns and hands each row to visit.
internal/store/attachments_copy_plan.go:733
↓ 3 callers
Method
scanCollectionRow
scanCollectionRow reads one collection row through q and hydrates the model. The WHERE predicate is the only per-caller difference — scope and deleted
internal/store/collections.go:259
↓ 3 callers
Function
scanComments
(rows *sql.Rows)
internal/store/comments.go:408
↓ 3 callers
Function
scanConversation
(row rowScanner)
internal/store/conversations.go:171
↓ 3 callers
Function
scanMCPAuditRows
scanMCPAuditRows is the shared row-decoder for every list method. Pulls out the nullable workspace_id + error_kind into *string, parses the timestamp,
internal/store/mcp_audit.go:303
↓ 3 callers
Method
sched
sched makes an item with a daily schedule in coll (the fixture's collection when nil), with the given status, and records its 1 October occurrence as
internal/store/schedule_calendar_test.go:39
↓ 3 callers
Method
scheduleReconnect
()
web/src/lib/collab/wsProvider.svelte.ts:1498
↓ 3 callers
Function
scheduleRefireAt
scheduleRefireAt is the re-fire instant of a snooze on the outstanding occurrence, whether or not it has passed: next_override_at less the lead. nil w
internal/store/schedule_snooze.go:27
↓ 3 callers
Method
scheduleReq
scheduleReq builds a schedule request the way the router would, for a handler called directly.
internal/server/handlers_items_copy_schedule_test.go:287
↓ 3 callers
Function
schemaFields
Schema fields for the done-field resolvers below, validated in ONE place. * * Stored JSON can be valid and still mistyped (`{"fields":null}`, a null
web/src/lib/types/index.ts:3499
↓ 3 callers
Method
scope
()
web/src/test/identityFenceAst.ts:1116
↓ 3 callers
Function
scopeTestArgs
(e mcpserver.ChatGPTTool)
cmd/pad/chatgpt_scope_test.go:129
↓ 3 callers
Function
scriptFns
scriptFns runs prog after the script's own numeric, pid_file_pid, pid_liveness and pid_file_removable, extracted with sed: the rest of the script neve
internal/buildtools/bug4068_pidfile_test.go:150
↓ 3 callers
Function
searchQueryAction
(t *testing.T)
internal/mcp/search_all_workspaces_test.go:15
↓ 3 callers
Function
searchRemoteCall
(t *testing.T, in map[string]any, lister WorkspaceLister)
internal/mcp/search_all_workspaces_test.go:41
↓ 3 callers
Method
searchSlugs
(tok, path string)
internal/server/bug3982_pinned_token_test.go:78
↓ 3 callers
Function
searchStdioCall
(t *testing.T, in map[string]any)
internal/mcp/search_all_workspaces_test.go:30
↓ 3 callers
Method
secondItem
BUG-4891: stdio expands an array ref into several positionals (cmdhelp marks ref repeatable), so the remote dispatcher takes one too: each ref in orde
internal/mcp/dispatch_http_needs_test.go:293
↓ 3 callers
Function
section
(label, extra)
plugin/hooks/register.js:546
↓ 3 callers
Function
seedAuditRow
MCP audit handler tests (PLAN-943 TASK-960). Two endpoints: - GET /api/v1/connected-apps/{id}/audit — owner-scoped per-connection. - GET /api/v1/ad
internal/server/handlers_mcp_audit_test.go:32
↓ 3 callers
Function
seedCollection
(t *testing.T, s *store.Store)
internal/store/storetest/writecapture_test.go:26
↓ 3 callers
Function
seedExisting
seedExisting sets an existing item's stored body directly; false on Postgres for a body that is not valid UTF-8 (refused, as seedItemBody).
internal/store/bug3839_invalid_utf8_version_test.go:309
↓ 3 callers
Function
seedFullWorkspace
seedFullWorkspace inserts one row into every workspace-scoped child table so a purge can be proven exhaustive. Raw inserts deliberately omit columns t
internal/store/workspace_purge_test.go:82
↓ 3 callers
Function
seedPLAN3114Tail
seedPLAN3114Tail reproduces the measured sequence: a tab connects (step1), sends the full state (U), flushes — the watermark lands on U — and then rec
internal/store/bug3124_content_bearing_test.go:86
↓ 3 callers
Function
seedPlaybookFromLibrary
seedPlaybookFromLibrary converts a LibraryPlaybook into a SeedPlaybook. InvocationSlug and Arguments are forwarded into the seeded item's Fields JSON
internal/collections/templates.go:351
↓ 3 callers
Function
seedReadActivities
BUG-2765. The timeline over-fetches per source and drops rows that cannot render, so a page can carry fewer entries than the rows it consumed — or non
internal/server/handlers_timeline_cursor_test.go:21
↓ 3 callers
Method
seedSent
seedSent writes n rows for u that were pushed ago ago.
internal/server/task3939b2a_push_test.go:30
↓ 3 callers
Function
seedVerifiedSpec
TASK-3617 r4 F1: verifications travel with the workspace. A verdict is user-written evidence that nothing can rebuild, so an export/import that droppe
internal/store/task3617_verifications_export_test.go:23
↓ 3 callers
Function
seedWorkspaceActivities
BUG-2781: the activity feeds page by a (created_at, id) keyset cursor.
internal/server/activity_cursor_test.go:14
↓ 3 callers
Function
seen
()
web/src/lib/stores/chatInbox.svelte.test.ts:745
↓ 3 callers
Method
sendChunk
sendChunk sends one chunk of whole units and settles it immediately. Per message: sent keeps the device; invalid_token deletes it (the only result tha
internal/server/push_dispatch.go:706
↓ 3 callers
Function
seqFromCursor
* Decode a cursor string to its numeric `seq` for tombstone stamping. Cursors * are decimal-encoded seq values; a non-numeric / empty cursor decodes
web/src/lib/stores/localIndexPersistence.ts:211
↓ 3 callers
Method
seqRepairList
()
internal/events/observer_test.go:71
↓ 3 callers
Function
seqs
()
web/src/lib/stores/chatThread.svelte.test.ts:161
↓ 3 callers
Method
serve
serve sends req as the browser would: on a self-host, to the configured origin's host (requireConfiguredHost refuses any other).
internal/server/task3399_delegated_flow_test.go:58
↓ 3 callers
Function
serveItemWithUnreadableNotes
serveItemWithUnreadableNotes stands up the fake server for the refusal tests: the GET returns the exact defect shape (the entries array stored as a JS
cmd/pad/item_reserved_field_test.go:74
↓ 3 callers
Method
session
(t *testing.T, u *models.User)
internal/server/task3615_catch_up_test.go:70
↓ 3 callers
Function
sessionActivityCmd
sessionActivityCmd is hook plumbing: no prompting, server startup or output. A missed activity update must never fail a Claude Code hook.
cmd/pad/cmd_session.go:838
↓ 3 callers
Function
sessionActivityRegistry
(t *testing.T)
cmd/pad/session_activity_detach_test.go:107
↓ 3 callers
Function
sessionCmd
sessionCmd groups the local session-registry verbs (register / list / prune — TASK-2533, TASK-2767) and the arm/disarm/status consent verbs (PLAN-2613
cmd/pad/cmd_session.go:24
↓ 3 callers
Method
sessionCookie
sessionCookie returns the session cookie under its current name, falling back to the unprefixed pad_session a pre-upgrade browser still holds. A prese
internal/server/request_credentials.go:39
↓ 3 callers
Function
sessionDisarmCmd
sessionDisarmCmd is `pad session disarm` (PLAN-2613 S3, TASK-2618): the withdrawal verb. It writes a session-scoped explicit-OFF marker (NOT a file re
cmd/pad/cmd_session.go:466
↓ 3 callers
Function
sessionExpiry
(t *testing.T, srv *Server, token string)
internal/server/task3975_cli_token_lifetime_test.go:25
↓ 3 callers
Method
sessionMCP
sessionMCP computes sessionMCPState from ONE read of the setting, so a concurrent toggle cannot produce a payload whose four fields disagree (a URL wi
internal/server/handlers_admin_mcp.go:117
↓ 3 callers
Function
sessionResetCmd
sessionResetCmd is `pad session reset` (BUG-2771): remove this session's arm-state file outright, so auto_arm decides again. Arm and disarm both WRITE
cmd/pad/cmd_session.go:534
↓ 3 callers
Function
sessionRowsFor
BUG-3232: an admin creating another user's account is not signing in as them, so the admin-created register path mints no session: no token in the bod
internal/server/handlers_auth_admin_register_test.go:16
↓ 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
← previous
next →
6,201–6,300 of 31,685, ranked by callers