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
↓ 5 callers
Function
StructuredFieldIsAppendable
StructuredFieldIsAppendable reports whether an append to key would be ACCEPTED on an item carrying fieldsJSON — i.e. whether the Append* helpers would
internal/models/item.go:1115
↓ 5 callers
Function
Sweep
Sweep removes dir/prefix<pid>-* directories owned by this user whose owner has exited: the directory's owner.lock can be taken, or, for a directory wi
internal/testtmp/testtmp.go:69
↓ 5 callers
Method
SweepExpiredPendingInstalls
SweepExpiredPendingInstalls deletes every expired reservation and its blobs, returning how many records it removed.
internal/store/app_pending.go:238
↓ 5 callers
Function
Text
Text returns the fixed body for kind. It is content-free by rule: no item title, comment text, workspace name or actor name ever reaches a push provid
internal/notify/body.go:39
↓ 5 callers
Function
TokenAllowedWorkspaceSet
TokenAllowedWorkspaceSet returns the token's allow-list as a slug-set for filtering a multi-workspace result, or nil when no per-slug gate applies. It
internal/server/context.go:239
↓ 5 callers
Function
TracePGConnected
TracePGConnected records a test Postgres connection only when explicitly enabled. Call after a successful Ping, query, or migration, never sql.Open. h
internal/store/storetest/pgtrace.go:14
↓ 5 callers
Function
UndeclaredFieldKeys
UndeclaredFieldKeys returns the keys of fields the schema does not declare, sorted, excluding system-written metadata (BUG-2850). These keys are stor
internal/items/coerce.go:137
↓ 5 callers
Function
Unified
Unified renders a line-based unified diff of oldText → newText with the given lines of context (PLAN-3578: what a patch write hands back so the caller
internal/diff/unified.go:16
↓ 5 callers
Function
UniqueFieldConflictsMessage
UniqueFieldConflictsMessage is the one sentence every migrate door refuses with, so a move, a bulk move, a copy and its preview say the same thing.
internal/store/unique_fields.go:149
↓ 5 callers
Method
UnreadSummary
UnreadSummary returns only memberships with unread messages and their total (TASK-4038).
internal/store/conversations.go:707
↓ 5 callers
Method
Unsubscribe
Unsubscribe delegates to the inner bus and decrements the SSE connection gauge.
internal/metrics/instrumented_bus.go:89
↓ 5 callers
Method
UpdateFieldKeys
UpdateFieldKeys are the field keys an update from this entry writes, sorted.
internal/collections/builtin.go:66
↓ 5 callers
Method
Validate
Validate reports whether the question is answerable as constructed. It rejects criteria belonging to a DIFFERENT kind as well as missing ones: a Choi
internal/decision/decision.go:111
↓ 5 callers
Method
Validate
Validate checks the mode, zone and wall clock.
internal/schedule/links.go:53
↓ 5 callers
Function
ValidateAbandonedOptions
ValidateAbandonedOptions refuses a schema whose abandoned_options name a value that is not one of the same field's terminal_options (BUG-2347). An aba
internal/models/terminal.go:264
↓ 5 callers
Function
ValidateAwaitsHumanOptions
ValidateAwaitsHumanOptions refuses a schema whose awaits_human_options (TASK-4643) name a value that is not one of the same field's options, or one th
internal/models/terminal.go:290
↓ 5 callers
Function
ValidateURL
ValidateURL is the pre-flight SSRF guard: it rejects non-http(s) schemes, URLs with embedded credentials, missing hostnames, and IP-literal hosts in p
internal/urlimport/fetch.go:222
↓ 5 callers
Function
VerifyArmStateHeld
VerifyArmStateHeld reads this session's arm state back after an arm or disarm write and refuses when the file did not survive the read: its owner was
internal/cli/session_arm_state.go:518
↓ 5 callers
Method
VisibleCollectionIDsQ
VisibleCollectionIDsQ is VisibleCollectionIDs parameterized over its executor (see Queryer).
internal/store/workspace_members.go:604
↓ 5 callers
Function
WithContext
WithContext returns q as a Queryer whose every read runs under ctx, so the *Q readers can be bound to a deadline without a Context variant of each (BU
internal/store/store.go:1040
↓ 5 callers
Function
WithPreservedSlug
WithPreservedSlug keeps a supplied workspace slug VERBATIM instead of slugifying it (BUG-3769), still made unique. It is for a COPY of an existing wor
internal/store/limits.go:288
↓ 5 callers
Function
WithTokenExpiresAt
WithTokenExpiresAt makes CreateAPIToken expire the token at exactly t, instead of a whole number of days from now: an unclaimed account's token ends w
internal/store/limits.go:271
↓ 5 callers
Function
WriteContentPendingFlushError
WriteContentPendingFlushError renders the content_pending_flush refusal: the structured marker line for the MCP stdio classifier (the same contract as
internal/cli/client.go:3117
↓ 5 callers
Method
WriteHidden
WriteHidden writes the non-disclosing denial: an identical 404 for every failure mode, so absence and forbidden-ness are indistinguishable. This is th
internal/server/authz_cross_workspace.go:206
↓ 5 callers
Function
WritePatchRefusalError
WritePatchRefusalError writes the structured marker line for a patch refusal, so the stdio MCP transport reports its code and details instead of infer
internal/cli/client.go:1481
↓ 5 callers
Function
__checkChatSurfaceForTests
()
web/src/lib/stores/chatSurface.svelte.ts:550
↓ 5 callers
Function
__resetChatSurfaceForTests
()
web/src/lib/stores/chatSurface.svelte.ts:538
↓ 5 callers
Function
actionItemLink
actionItemLink dispatches pad_item.action=link to the appropriate CLI cmdPath based on link_type. Renames the schema's uniform `ref` and `target` to t
internal/mcp/catalog_item.go:660
↓ 5 callers
Function
activityCursorFromQuery
activityCursorFromQuery reads the keyset cursor the paginated activity feeds accept (BUG-2781): before=<created_at, RFC3339> and before_id=<id>, both
internal/server/activity_cursor.go:21
↓ 5 callers
Method
activityForRequest
logActivityWithMetaReturningID is like logActivityWithMeta but returns the activity ID. The ID is either newly created or the coalesced existing activ
internal/server/handlers_documents.go:434
↓ 5 callers
Method
activityKey
(userID, workerID string)
internal/server/session_activity.go:110
↓ 5 callers
Method
add
(n: number)
web/src/lib/stores/chatThread.property.svelte.test.ts:131
↓ 5 callers
Method
addr
()
internal/events/redis_subscribe_confirm_test.go:87
↓ 5 callers
Function
adminOutsideWorkspace
adminOutsideWorkspace builds the one configuration in which delivered_sessions can over-report, and the reasoning for why it is THIS configuration is
internal/server/handlers_push_visibility_test.go:68
↓ 5 callers
Function
advance
(i: number)
web/src/lib/collab/materializer/polyfills.ts:69
↓ 5 callers
Method
afterCommitmentRefusal
afterCommitmentRefusal runs only after the refused transaction has rolled back. Notice delivery never changes the refusal or logs private graph data.
internal/server/commitment_notices.go:21
↓ 5 callers
Function
agendaRoleInstant
(v string, loc *time.Location)
internal/store/agenda_roles.go:70
↓ 5 callers
Function
agendaRowsFor
(m map[string]any, group, ref string)
internal/server/schedule_end_guard_test.go:186
↓ 5 callers
Function
aliasRename
(t *testing.T, s *Store, c *models.Collection, prefix string)
internal/store/item_ref_aliases_test.go:21
↓ 5 callers
Function
answer
()
web/src/routes/[username]/[workspace]/settings/task2190MemberGuards.svelte.test.ts:149
↓ 5 callers
Function
answer
(tabs: Tab[])
web/src/lib/components/layout/TopBar.svelte.test.ts:80
↓ 5 callers
Function
answer
(status: number, body: unknown)
web/src/lib/api/schedule.test.ts:7
↓ 5 callers
Function
api
(request: APIRequestContext, fixture: SuiteFixture, method: 'get' | 'post' | 'delete', path: string, data?: un
web/e2e/bug-3159-roles-children-touch-drag.spec.ts:42
↓ 5 callers
Method
appRows
(t *testing.T)
internal/appstore/attachments_test.go:109
↓ 5 callers
Function
appUpload
TASK-3401 U6c: app attachments over the app API.
internal/server/task3401c_app_attachments_test.go:27
↓ 5 callers
Function
appendTestDecision
(t *testing.T, s *Store, itemID, decision, rationale string)
internal/store/item_entries_index_test.go:44
↓ 5 callers
Function
appendVarUint
(b []byte, v uint64)
internal/collab/awareness.go:80
↓ 5 callers
Method
apply
(v any)
internal/mcp/chatgpt_project.go:44
↓ 5 callers
Method
apply
apply writes the lifted columns onto the pointers a create/update input exposes. Called BEFORE --assign / --role resolution so those dedicated flags w
cmd/pad/cmd_item.go:121
↓ 5 callers
Function
applyDBRuntimeLimits
applyDBRuntimeLimits swaps the store's Postgres pool for the bounded runtime pool (TASK-4278). On SQLite it only says that the settings do not apply,
cmd/pad/cmd_server.go:1680
↓ 5 callers
Method
applyLinkedPlanTx
applyLinkedPlanTx writes every change in plan order (the moved date first), each with its journal row, and checks the budget between writes. The first
internal/store/commitment_cascade.go:660
↓ 5 callers
Function
appsTestServer
(t *testing.T, enabled bool)
internal/mcp/apps_test.go:36
↓ 5 callers
Function
appsWireResult
(t *testing.T, srv *server.MCPServer, method string, params any)
internal/mcp/apps_test.go:13
↓ 5 callers
Method
arm
(t *testing.T, title, at string)
internal/server/task4699_placement_test.go:58
↓ 5 callers
Function
asInvalidTitle
(t *testing.T, err error)
internal/store/items_title_validation_test.go:38
↓ 5 callers
Function
asOpenChildrenGuardError
asOpenChildrenGuardError unwraps a store-layer error that may carry an openChildrenGuardError sentinel. Returns the sanitized details and true when th
internal/server/handlers_items_open_children_guard.go:665
↓ 5 callers
Function
asShallow
(path: string)
web/src/lib/stores/chatSurface.svelte.test.ts:36
↓ 5 callers
Function
assertBusy
assertBusy checks the shared 503 shape and that nothing of the database reached the body.
internal/server/task4278_error_mapping_test.go:157
↓ 5 callers
Function
assertGotForceRefresh
assertGotForceRefresh drains conn until it either receives a force_refresh control frame (pass) or the conn closes without one (fail).
internal/server/handlers_items_collab_versions_test.go:661
↓ 5 callers
Function
assertOpLogEmpty
(t *testing.T, srv *Server, itemID string)
internal/server/handlers_items_collab_versions_test.go:652
↓ 5 callers
Function
assertPathVectorIntact
assertPathVectorIntact fails if the request Go builds from target does not actually carry invalid path text — i.e. if the premise of every assertion b
internal/server/middleware_request_text_test.go:33
↓ 5 callers
Function
assertUnclaimedRefused
assertUnclaimedRefused asserts a 403 account_unclaimed whose details.reason is account_unclaimed too.
internal/server/middleware_unclaimed_test.go:24
↓ 5 callers
Function
assertVerifyEmailPage
(t *testing.T, rr *httptest.ResponseRecorder, email string)
internal/server/handlers_oauth_verify_email_test.go:29
↓ 5 callers
Function
assertWorkspaceNotFound
assertWorkspaceNotFound checks the full workspace-refusal contract: the unchanged status/code/message AND the marker.
internal/server/bug3069_workspace_not_found_test.go:39
↓ 5 callers
Method
atClock
atClock sets the linked-change clock for the rest of the test.
internal/store/commitment_cascade_past_test.go:18
↓ 5 callers
Function
atomicWriteFile
atomicWriteFile writes data to a temp file in path's directory and renames it into place, so a concurrent reader sees either the old file or the compl
internal/cli/session_arm_state.go:291
↓ 5 callers
Function
attachmentDownloadUrl
( workspaceSlug: string, attachmentId: string, variant?: 'thumb-sm' | 'thumb-md' | 'original' )
web/src/lib/markdown/attachments.ts:98
↓ 5 callers
Function
authCodeFor
authCodeFor drives /oauth/authorize/decide for clientID and returns the authorization code from the callback, unexchanged.
internal/server/handlers_oauth_test.go:2590
↓ 5 callers
Function
backdateItem
(t *testing.T, s *Store, itemID string, hoursAgo float64)
internal/store/reports_test.go:283
↓ 5 callers
Function
backupSQLite
backupSQLite writes an online-safe, self-contained copy of the SQLite database at srcPath to outPath using `VACUUM INTO`. Unlike an io.Copy of the pad
cmd/pad/cmd_db.go:71
↓ 5 callers
Function
benchArgs
The read-path cost measurement S1 named as owed. The guard touches EVERY statement, reads included, so its per-parameter cost is paid on the read flo
internal/store/nulguard_bench_test.go:23
↓ 5 callers
Function
bodyOf
bodyOf is the page after <body>, so CSS and the <title> never satisfy an assertion about what the user reads.
internal/server/task1071_consent_identity_test.go:58
↓ 5 callers
Method
boundResponseWrites
boundResponseWrites is the middleware. Register it BEFORE CompressResponses: chi runs middleware in registration order, so its writer then sits beneat
internal/server/middleware_write_deadline.go:119
↓ 5 callers
Function
breakTable
BUG-3334: a store error on an access decision fails CLOSED. Faults are real: a renamed table makes the store query genuinely fail, except where an ear
internal/server/bug3334_fail_closed_test.go:23
↓ 5 callers
Function
bug2103WaitConns
bug2103WaitConns waits until item's room holds n replay-done conns, so a frame the test sends is read by a registered readLoop.
internal/collab/prune_evict_bug2103_test.go:34
↓ 5 callers
Function
bug3163StoredFields
(t *testing.T, srv *Server, itemID string)
internal/server/bug3163_reserved_write_doors_test.go:61
↓ 5 callers
Function
bug3446BlankWorkspace
BUG-3446: the `blank` template seeds Conventions with trigger [always] and scope [all], and Playbooks with trigger [manual] and scope [all]. Every tri
internal/server/bug3446_blank_library_options_test.go:34
↓ 5 callers
Function
bug3446Options
(t *testing.T, srv *Server, wsID, collSlug, key string)
internal/server/bug3446_blank_library_options_test.go:45
↓ 5 callers
Function
bug3591Counts
(t *testing.T, s *Store)
internal/store/bug3591_upgrades_test.go:51
↓ 5 callers
Function
bug3664Path
BUG-3664: the legacy per-collection item numbering was converted on startup only while idx_items_collection_number existed, and SQLite migration 056's
internal/store/bug3664_legacy_numbering_test.go:16
↓ 5 callers
Function
bug3770Inviter
bug3770Inviter adds a second, unrestricted owner who sends an invitation, then applies loss (nil: keeps the authority).
internal/server/bug3770_inviter_authority_test.go:38
↓ 5 callers
Function
bug3789Get
(t *testing.T, srv *Server, path, cookie string)
internal/server/bug3789_bounded_lists_test.go:26
↓ 5 callers
Function
bug3811Admins
BUG-3811: the instance always keeps at least one ACTIVE human admin. Three doors can take an admin out of that set (demote, disable, delete own accoun
internal/store/bug3811_last_admin_race_test.go:14
↓ 5 callers
Function
bug3820Resolve
(t *testing.T, s *Store, itemID string)
internal/store/bug3820_version_body_hash_test.go:51
↓ 5 callers
Function
bug4065Dispatch
(t *testing.T, door bug4065Door, v any)
internal/mcp/bug4065_non_numeric_inputs_test.go:195
↓ 5 callers
Function
bug4644Post
(srv *Server, path, contentType, body, bearer string)
internal/server/bug4644_oauth_form_cap_test.go:57
↓ 5 callers
Function
bug4954Workspace
(t *testing.T, s *Store, ownerID, name string)
internal/store/bug4954_activity_scrub_test.go:93
↓ 5 callers
Function
bump
What chatStore does after each applied unread fetch.
web/src/lib/stores/chatThread.svelte.test.ts:155
↓ 5 callers
Function
bundleAttachmentPath
bundleAttachmentPath builds the tar entry name for an attachment. CROSS-VERSION CONTRACT: import does not read this path from the manifest; it RECOMP
internal/server/handlers_export_bundle.go:330
↓ 5 callers
Function
calEntryTitles
(m map[string]any)
internal/server/handlers_calendar_test.go:61
↓ 5 callers
Method
calls
(t *testing.T)
internal/buildtools/bug4511_monitor_await_consent_test.go:121
↓ 5 callers
Method
canEditCollection
(collectionId: string)
web/src/lib/stores/workspaceScope.svelte.ts:32
↓ 5 callers
Method
canRenegotiateCommitment
canRenegotiateCommitment is the authority decision for renegotiations and their previews. The caller owns the item's visibility and write doors.
internal/server/handlers_commitments.go:20
↓ 5 callers
Method
cancel
Cancel the pending debounce without flushing. Leaves dedupe state intact.
web/src/lib/collab/collabFlush.svelte.ts:168
↓ 5 callers
Method
capAtOneMore
capAtOneMore sets the user's override for feature to current+1, so exactly one more row is admitted.
internal/server/handlers_plan_limit_race_test.go:56
↓ 5 callers
Function
capUpload
capUpload posts a multipart upload as the session's user.
internal/server/task3619_storage_cap_test.go:18
↓ 5 callers
Function
captureOfferWarnings
Tests capturing the default logger must not run in parallel.
internal/billing/offer_test.go:159
↓ 5 callers
Function
carriedFrom
carriedFrom snapshots a field map so it can be passed as the migrate function's `sourceFields` — i.e. "every one of these came off the source item". A
internal/store/relation_referents_test.go:386
↓ 5 callers
Function
changesOf
changesOf reads the accumulated "changes" text out of an activity's metadata. Local to the test: the store writes this key through mergeActivityMeta a
internal/store/activities_debounce_race_test.go:65
↓ 5 callers
Function
chatRefs
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_chat_enrich_test.go:23
← previous
next →
3,301–3,400 of 31,685, ranked by callers