MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctionsetCSRFCookie
setCSRFCookie writes a new CSRF token cookie. The cookie is NOT HttpOnly so that JavaScript can read it and send it back as a header.
internal/server/middleware_csrf.go:314
↓ 4 callersFunctionsetCollabTimeouts
BUG-3771 / BUG-3636: a collab peer that stops reading or answering is detected and closed within a bounded time. The server pings and reads with a dea
internal/collab/bug3771_ws_deadlines_test.go:23
↓ 4 callersMethodsetCreated
(it *models.Item, at time.Time)
internal/server/handlers_me_needs_test.go:115
↓ 4 callersFunctionsetCustomer
(t *testing.T, srv *Server, userID, customerID string)
internal/server/task3549_stripe_customer_cas_test.go:31
↓ 4 callersMethodsetEndpoint
setEndpoint points the provider at a different base URL. Intended for tests standing up an httptest server; production callers leave the default.
internal/decision/typesafe.go:179
↓ 4 callersFunctionsetPlanRaw
(t *testing.T, s *Store, id, plan, source, customer string)
internal/store/task3551_instance_mode_test.go:21
↓ 4 callersMethodsetStatus
---- finished children stay where they are.
internal/store/commitment_links_review_test.go:301
↓ 4 callersFunctionsetUmask022
(t *testing.T)
internal/store/sqlite_perms_unix_test.go:13
↓ 4 callersFunctionsettingsChangedMeta
settingsChangedMeta is the settings_changed audit metadata: the KEYS that changed, never their values.
internal/server/handlers_admin.go:193
↓ 4 callersFunctionsettle
()
web/src/lib/components/items/itemDetailPeekDismiss.svelte.test.ts:145
↓ 4 callersFunctionsettleContentRoute
settleContentRoute is the route decision, extracted from its I/O so the budget expiry is testable without a seam into the conn anchoring machinery — w
internal/server/handlers_items_content_route.go:228
↓ 4 callersFunctionsetupFakePostgresDump
(t *testing.T)
cmd/pad/cmd_db_backup_postgres_test.go:13
↓ 4 callersFunctionsetupItemOpenTest
(t *testing.T, handler http.Handler)
cmd/pad/item_open_test.go:15
↓ 4 callersFunctionsetupOwnedDeletedWorkspace
setupOwnedDeletedWorkspace registers Alice + Bob, has Alice create and then soft-delete a workspace, and returns their tokens plus the workspace. Shar
internal/server/handlers_workspaces_test.go:156
↓ 4 callersFunctionshortRoleDate
(value: string, zone: string, now = new Date(Date.now()), options: ShortDateOptions = {})
web/src/lib/calendar/presentation.ts:409
↓ 4 callersFunctionshowFixture
BUG-3448: `pad item show` printed a json field (a playbook's `arguments`) in Go's map syntax, `[map[description:… name:target …]]`, and labelled a pla
cmd/pad/bug3448_item_show_fields_test.go:16
↓ 4 callersFunctionshowMissing
()
web/src/lib/components/editor/attachment-image.ts:490
↓ 4 callersMethodsibling
sibling is a second workspace owned by the same user, on the same store.
internal/store/task3619_storage_limit_test.go:51
↓ 4 callersMethodsignIn
signIn runs a whole delegated sign-in and returns the access token and the grant's request id.
internal/server/task3399_delegated_flow_test.go:312
↓ 4 callersMethodsignInOriginAllowed
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:1237
↓ 4 callersMethodsignalAllLocked
signalAllLocked raises the gap flag for every live subscriber on this instance — the per-INSTANCE half of BUG-2730, for the conditions where the hole
internal/watchevents/redis_bus.go:1865
↓ 4 callersMethodsignalGap
signalGap raises this subscriber's gap flag without blocking.// INVARIANT FOR ANYONE ADDING A THIRD CAUSE: every cause that reaches this channel must
internal/events/bus.go:631
↓ 4 callersFunctionsingleLine
singleLine collapses internal whitespace and newlines for safe inclusion in a markdown table cell.
internal/urlimport/openapi.go:493
↓ 4 callersFunctionskipCapTest
(t *testing.T, why string)
internal/materialize/skip_test.go:13
↓ 4 callersFunctionsleepOrDone
sleepOrDone waits for d or ctx cancellation, whichever comes first. Returns false if ctx was cancelled — the caller should stop looping, not schedule
cmd/pad/cmd_watch.go:223
↓ 4 callersFunctionslot
(userId: string, n: number)
web/src/lib/chat/composerRegistry.ts:25
↓ 4 callersFunctionsnoozeActive
snoozeActive is refire while it is still ahead of now: a snooze whose re-fire instant is at or before now has ended.
internal/store/schedule_snooze.go:50
↓ 4 callersMethodsortOrder
(t *testing.T, id string)
internal/server/task3517_sort_order_test.go:43
↓ 4 callersFunctionspecFromICal
specFromICal reads the DTSTART, RRULE, RDATE and EXDATE lines of a row.
internal/schedule/conformance_test.go:101
↓ 4 callersFunctionsplitFTSPrefix
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:778
↓ 4 callersFunctionsse
()
web/src/lib/components/items/itemDetailIdentityLoad.svelte.test.ts:744
↓ 4 callersFunctionssrSafe
()
web/src/lib/stores/localSearch.svelte.ts:403
↓ 4 callersFunctionstaleBodyImportCount
repairedNULCount reads the count the server reports for a --repair-nul import. An ABSENT header is reported as unknown rather than as zero. A server
cmd/pad/cmd_workspace.go:1614
↓ 4 callersFunctionstaleShowServer
--- pad item show: the stale-body notice (contract item 2) ---
cmd/pad/item_update_outcome_test.go:222
↓ 4 callersMethodstampOccurrenceRolesTx
stampOccurrenceRolesTx records on a resolved row the role offsets its schedule has now, so a later series change does not move it (TASK-4714). A moved
internal/store/schedule_resolve.go:1191
↓ 4 callersMethodstampOf
(t *testing.T, scheduleID, at string)
internal/store/occurrence_role_history_test.go:39
↓ 4 callersFunctionstartCollab
(t *testing.T, f *startFixture)
internal/server/task4914_start_demote_test.go:151
↓ 4 callersFunctionstartValueSet
startValueSet is the one rule for "this carried a designation": a non-empty string. An empty start is no designation, so dropping it clears nothing.
internal/server/start_write.go:133
↓ 4 callersMethodstate
(t *testing.T)
internal/server/bug3124_watermark_stamp_test.go:59
↓ 4 callersFunctionstatelessCallerRequest
Exercise the actual audit middleware with the same identity context as auth. The audit queue stays in memory; these tests need no database writer.
internal/server/middleware_mcp_stateless_test.go:191
↓ 4 callersFunctionstatusChipIn
(container: ParentNode)
web/src/lib/components/collections/statusPickerTestKit.ts:15
↓ 4 callersMethodstepUpFactor
stepUpFactor selects the strongest factor established before the session. A sender needs no public base URL because the email carries a code rather th
internal/server/handlers_step_up.go:79
↓ 4 callersFunctionstoreItemCreateError
storeItemCreateError is a 500 itemCreateError that remembers its store error so write can map a busy database to 503 database_busy.
internal/server/handlers_items.go:965
↓ 4 callersFunctionstoredColor
(t *testing.T, s *Store, id string)
internal/store/bug3407_revalidate_test.go:62
↓ 4 callersMethodstoredFields
(ws, slug string)
internal/server/bug2367_migrate_doors_test.go:76
↓ 4 callersFunctionstoredFilename
(t *testing.T, s *Store, id string)
internal/store/attachment_bidi_backfill_test.go:43
↓ 4 callersFunctionstoredFireInstant
storedFireInstant recomputes a managed row's instant after a lead or target offset change from the stored outstanding occurrence, its zone and any ove
internal/store/schedules.go:1142
↓ 4 callersFunctionstoredItem
(t *testing.T, srv *Server, ws, slug string)
internal/server/handlers_items_append_test.go:40
↓ 4 callersMethodstoredLinkID
storedLink reads the one link between two items' schedules.
internal/store/schedule_link_carry_test.go:53
↓ 4 callersFunctionstoredNotInsertedMessage
(filename: string)
web/src/lib/components/editor/attachment-upload.ts:107
↓ 4 callersMethodstoredSettings
(id string)
internal/server/bug3976_settings_not_object_test.go:57
↓ 4 callersFunctionstoredTOTPSecret
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
↓ 4 callersFunctionstream
(content: string)
web/e2e/lib/pdf-fixtures.ts:27
↓ 4 callersFunctionstreamPrincipal
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 callersFunctionstreamWatchEvents
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 callersFunctionstripANSI
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 callersFunctionstructuredAppendRefusal
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 callersFunctionstubProps
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:365
↓ 4 callersFunctionstubProps
()
web/src/routes/[username]/[workspace]/[collection]/collectionChatUrlWrites.svelte.test.ts:325
↓ 4 callersFunctionstubReaderMountNS
stubReaderMountNS pins the reader's mount namespace for one test.
internal/cli/session_owner_pidns_linux_test.go:221
↓ 4 callersFunctionsuggestionTitles
(resp DashboardResponse)
internal/server/bug3453_ready_fallback_test.go:28
↓ 4 callersFunctionsyntheticLinkBundle
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 callersFunctiont4137OAuth
(t *testing.T, srv *Server, remote string, extra map[string]interface{})
internal/server/task4137_pkce_twofactor_test.go:56
↓ 4 callersFunctiont772Setup
(t *testing.T)
internal/server/task772_dashboard_visibility_test.go:51
↓ 4 callersFunctiontabSlugs
(r workspaceTabsResponse)
internal/server/handlers_workspace_tabs_test.go:52
↓ 4 callersMethodtabsCaller
tabsCaller returns the user and their visible set, or writes the refusal.
internal/server/handlers_workspace_tabs.go:116
↓ 4 callersMethodtargetCollection
--- 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 callersFunctiontask3394FixtureIn
task3394FixtureIn adds an install, with its bot and client, to a store.
internal/store/task3394_install_clients_test.go:43
↓ 4 callersFunctiontask3397Epoch
(t *testing.T, s *Store, id string)
internal/store/task3397_lifecycle_test.go:120
↓ 4 callersFunctiontask3462Origin
(t *testing.T, srv *Server, itemID string)
internal/server/task3462_builtin_origin_test.go:57
↓ 4 callersFunctiontask3549Server
(t *testing.T)
internal/server/task3549_stripe_customer_cas_test.go:19
↓ 4 callersFunctiontask3617Backends
()
internal/store/task3617_verifications_test.go:16
↓ 4 callersFunctiontask3617Row
(id, text, verdict string)
internal/store/task3617_verifications_test.go:29
↓ 4 callersFunctiontask3867EnrolTOTP
(t *testing.T, e *tokenAuthEnv)
internal/server/task3867_token_access_test.go:532
↓ 4 callersFunctiontask4509StoredSecret
(t *testing.T, e *tokenAuthEnv)
internal/server/task4509_totp_enrol_step_up_test.go:137
↓ 4 callersFunctiontask4678AssertItemIDs
task4678AssertItemIDs checks that every row of the given type in rows that names one of want's titles carries that item's id, and that each title was
internal/server/task4678_agenda_item_id_test.go:46
↓ 4 callersFunctiontask4693StaleSignIns
task4693StaleSignIns dates every session of the user past the window, so only a grant passes the key doors.
internal/server/handlers_tokens_stepup_test.go:69
↓ 4 callersFunctiontestSession
()
cmd/pad/cmd_auth_poll_test.go:54
↓ 4 callersFunctiontightenPerms
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 callersFunctiontimelinePage
timelinePage fetches one page, by cursor when one is supplied.
internal/server/handlers_timeline_cursor_test.go:51
↓ 4 callersFunctiontitled
`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 callersFunctiontoIdle
()
web/src/lib/attachments/viewerImageLoader.svelte.ts:163
↓ 4 callersMethodtoRouteMapper
toRouteMapper compiles spec into a RouteMapper closure.
internal/mcp/dispatch_http_routes.go:72
↓ 4 callersFunctiontoSkinny
* 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 callersMethodtoken
(t *testing.T, u *models.User)
internal/server/handlers_needs_not_mine_test.go:361
↓ 4 callersFunctiontotpEnabled
(t *testing.T, srv *Server, userID string)
internal/server/task2190_totp_disable_test.go:46
↓ 4 callersFunctiontouch4988Patch
TASK-4988: users.touch_edit_button over the API. It is the caller's own display preference: default off, written only through PATCH /auth/me, and emit
internal/server/task4988_touch_edit_test.go:19
↓ 4 callersMethodtouchGrouped
touchGrouped applies the optional group cap to new entries. Existing entries always refresh, including when the group is full. See touch for onChange'
internal/server/middleware_mcp_session.go:144
↓ 4 callersFunctiontransformOf
* The `transform` inline style on the viewer's image (empty before it mounts), * with a one-value `translate(x)` written out as `translate(x, 0px)`.
web/src/lib/components/common/Lightbox.svelte.test.ts:251
↓ 4 callersFunctiontraversing
()
web/src/lib/stores/chatSurface.svelte.ts:333
↓ 4 callersFunctiontrimSpace
(s: string)
web/src/lib/chat/presence.ts:20
↓ 4 callersMethoduniqueFieldConflictsQ
(q Queryer, collectionID, excludeItemID string, schema []models.FieldDef, fields map[string]any)
internal/store/unique_fields.go:54
↓ 4 callersMethoduniqueSlugQ
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:2059
↓ 4 callersFunctionuntrackedSpans
(block: string)
web/src/test/identityFenceSource.ts:407
↓ 4 callersFunctionunusedPort
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 callersFunctionunwrapItems
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 callersFunctionuploadSource
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 callersFunctionuploadedAttachmentID
uploadedAttachmentID pulls the new attachment's id out of a 201 upload response body.
internal/server/handlers_attachments_test.go:336
↓ 4 callersMethodupsertOccurrenceTx
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:1149
↓ 4 callersMethodupsertScheduleOverrideTx
(tx *sql.Tx, id, key, role string, at time.Time, wall *string)
internal/store/schedule_overrides.go:11
← previousnext →4,701–4,800 of 31,685, ranked by callers