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
__resetCoveredPageForTests
()
web/src/lib/stores/coveredPage.svelte.ts:64
↓ 3 callers
Method
acceptInvitationCore
acceptInvitationCore is the one accept path behind both invitation doors: POST /invitations/{code}/accept and POST /me/invitations/{id}/accept (TASK-3
internal/server/handlers_members.go:582
↓ 3 callers
Function
accessModeSelect
The member's collection-visibility select, once the access panel is open.
web/src/routes/[username]/[workspace]/settings/settingsIdentityFence.svelte.test.ts:442
↓ 3 callers
Function
ackLossServer
ackLossServer builds a *Server on the named backend with collab and an event bus wired. The Postgres leg skips unless PAD_TEST_POSTGRES_URL is set (ma
internal/server/handlers_items_ack_loss_test.go:50
↓ 3 callers
Function
ackTarget
--- agent roles --- ackTarget names an item for a `pad remind ack` hint: its issue ID, or its slug when the item has no number.
cmd/pad/cmd_project.go:1531
↓ 3 callers
Method
acquireParentChildrenLocksForUpdate
acquireParentChildrenLocksForUpdate is the in-tx helper UpdateItem uses to serialize itself against the open-children guard (IDEA-1494 R2 / R4). It ac
internal/store/items.go:5622
↓ 3 callers
Method
acquirePlanLimitLock
acquirePlanLimitLock takes the Postgres advisory transaction lock that serialises the limited inserts of one workspace-scoped feature (BUG-2808). It i
internal/store/limits.go:370
↓ 3 callers
Method
acquireWorkspaceDocumentRenameLock
acquireWorkspaceDocumentRenameLock serializes document TITLE RENAMES within a workspace on Postgres (BUG-2778). Its key is namespaced so it contends o
internal/store/documents.go:556
↓ 3 callers
Function
action
(id: string)
web/src/lib/attachments/actions.test.ts:54
↓ 3 callers
Function
actionItemExport
actionItemExport handles pad_item.action=export. The CLI's `pad item export <ref>` defaults to WRITING A FILE (<slug>.pad.md), which is useless to an
internal/mcp/catalog_item.go:1039
↓ 3 callers
Function
activityIDs
(as []models.Activity)
internal/store/activities_paging_test.go:27
↓ 3 callers
Method
activityMetaText
activityMetaText reads activities.metadata as text on both backends: it is TEXT on SQLite and JSONB on Postgres, where a COALESCE to the empty string
internal/store/catch_up.go:512
↓ 3 callers
Function
activityTimestamp
(at *time.Time)
internal/server/session_activity.go:36
↓ 3 callers
Function
actualScale
(g: Geometry)
web/src/lib/attachments/zoom.ts:228
↓ 3 callers
Method
addTicketField
(f map[string]any)
internal/server/handlers_apps_upgrade_test.go:316
↓ 3 callers
Method
addWorkspaceMemberTx
addWorkspaceMemberTx is the one membership insert, shared by AddWorkspaceMember and AcceptWorkspaceInvitation so the lock, the cap, the INSERT and the
internal/store/workspace_members.go:70
↓ 3 callers
Function
admitted
admitted reports whether a write door let a deliberately bad body through to decoding (400 invalid_body) rather than refusing it (403/404/409).
internal/server/handlers_commitment_editable_test.go:38
↓ 3 callers
Function
after
(next Next, dt time.Time, inc bool)
internal/schedule/internal/rrule/util.go:171
↓ 3 callers
Method
afterUntil
afterUntil says an occurrence of the rule falls past a Z UNTIL, compared on the resolved instant, inclusive. An RDATE is not bound by UNTIL. Elapsed r
internal/schedule/engine.go:97
↓ 3 callers
Function
ageAndFlush
BUG-3747: a compaction snapshot covers the cursors of ITS generation only. After a path deletes the op-log (a direct write, a restore, a dormant prune
internal/store/bug3747_compaction_generation_test.go:18
↓ 3 callers
Function
agendaEventBound
agendaEventBound rounds a query boundary up to the next stored second. Item creations and status transitions store whole seconds; rounding both bounds
internal/store/agenda_item_events.go:21
↓ 3 callers
Method
agendaExpired
(run *agendaRead)
internal/server/handlers_me_agenda.go:358
↓ 3 callers
Function
agendaRefs
(rows []BootstrapAgendaRow)
internal/server/bootstrap_agenda_test.go:77
↓ 3 callers
Function
agendaRowsFor
(m map[string]any, group, ref string)
internal/server/schedule_end_guard_test.go:186
↓ 3 callers
Function
agentMeta
(agent string)
internal/store/fenced_items.go:476
↓ 3 callers
Function
agentNameOf
(metadata: Record<string, unknown> | undefined | null)
web/src/lib/utils/agentActor.ts:68
↓ 3 callers
Function
all
(next Next)
internal/schedule/internal/rrule/util.go:136
↓ 3 callers
Function
allSee
()
internal/server/needs_scorers_test.go:39
↓ 3 callers
Method
allowedAudiences
()
internal/oauth/server.go:348
↓ 3 callers
Function
answer
(extra: Partial<AgendaResponse> = {})
web/src/lib/components/calendar/WeekSummary.svelte.test.ts:23
↓ 3 callers
Function
answer
(...tabs: Tab[])
web/src/lib/stores/tabs.svelte.test.ts:81
↓ 3 callers
Function
apiHeaders
(fixture: import('./fixtures').SuiteFixture)
web/e2e/task-3552-diagram-graph-render.spec.ts:22
↓ 3 callers
Function
appAPIFixtureOn
appAPIFixtureOn builds the fixture on Pad Cloud, or on a self-host with apps enabled (cloud=false).
internal/server/task3401_app_api_test.go:61
↓ 3 callers
Function
appActionSpecs
appActionSpecs translates the manifest's item actions (by companion KEY) into the store's specs (by companion SLUG).
internal/server/app_item_actions.go:37
↓ 3 callers
Method
appAdmitToken
appAdmitToken is the token half of admission, shared by the door and the re-admission before a response is sent: the token is introspected (active, no
internal/server/app_api.go:295
↓ 3 callers
Method
appAdmitWorkspace
appAdmitWorkspace is the workspace half of admission, shared by the door and the re-admission: the workspace is live, the bot is a member, and the rol
internal/server/app_api.go:474
↓ 3 callers
Function
appDoLazy
appDoLazy sends a request whose body is built only when the handler reads it, after the handler's own reads.
internal/server/task3401b_app_writes_test.go:510
↓ 3 callers
Function
appHookSubscribes
appHookSubscribes reports whether a stored subscription list names event, and, when collectionID is not empty, names it for that collection.
internal/store/app_delivery.go:88
↓ 3 callers
Method
appItemDTOs
appItemDTOs builds the item DTOs, etag and app metadata included.
internal/server/app_api_read.go:265
↓ 3 callers
Method
appRecheckCollection
appRecheckCollection replays a collection's authorization against the store as it stands: live, in the workspace, visible to the actor, inside the cei
internal/server/app_api_read.go:172
↓ 3 callers
Method
appRecheckItem
appRecheckItem replays an item's authorization: live, in the workspace and collection it was read from, inside the ceiling, visible to the actor.
internal/server/app_api_read.go:205
↓ 3 callers
Function
appRequestContext
appRequestContext sets every key the shared helpers read from a complete app context.
internal/server/app_api.go:516
↓ 3 callers
Method
appVisibleCollection
appVisibleCollection resolves a collection by EXACT slug in the token's workspace, inside the ceiling and the actor's visibility, or reports false aft
internal/server/app_api_read.go:142
↓ 3 callers
Function
appWebhookSpec
appWebhookSpec translates the manifest's events (by companion KEY) into the store's spec (by companion SLUG). nil when the manifest declares no events
internal/server/app_webhooks.go:27
↓ 3 callers
Method
appWebhookView
(installID string)
internal/server/app_webhooks.go:65
↓ 3 callers
Function
appendKeyFixture
TASK-3585: idempotency keys on the note/decision appends.
internal/server/task3585_append_key_test.go:12
↓ 3 callers
Function
appendServer
appendServer answers capabilities and scripts the statuses of the item PATCHes (appends) it receives. A success echoes the appended entry, as the serv
cmd/pad/task3585_append_retry_test.go:14
↓ 3 callers
Function
appendSync
(t *testing.T, s *store.Store, itemID string, frame []byte)
internal/store/bug3135_sync_frame_dedupe_test.go:44
↓ 3 callers
Method
appendWorkspaceAgenda
appendWorkspaceAgenda is the single schedule expansion and dated-item path.
internal/server/handlers_agenda.go:278
↓ 3 callers
Method
applyExternal
applyExternal is the restart loop shared by the markdown and patch forms.
internal/collab/applier.go:516
↓ 3 callers
Function
applyFieldsJSON
applyFieldsJSON merges a --fields-json object into dst (TASK-3611). It is how the local stdio MCP server writes a structured field value: --field key=
cmd/pad/fields_json.go:22
↓ 3 callers
Function
applyListAnchor
(scroller: HTMLElement, anchor: ListAnchor)
web/src/lib/collections/listScrollHandoff.ts:77
↓ 3 callers
Function
applyPatch
(editor: Editor, edits: PatchEdit[], ctx: PatchContext)
web/src/lib/collab/patchApply.ts:292
↓ 3 callers
Function
applyWithStore
(t *testing.T, itemID string, bracketed bool, frames int, failAppend bool)
internal/collab/bug3749_applier_ack_durable_test.go:48
↓ 3 callers
Method
appsAvailableChecked
appsAvailableChecked is appsAvailable with a failure to read the setting reported rather than folded into "off", for re-admission, where a fault must
internal/server/apps_available.go:30
↓ 3 callers
Method
appsPrivateOrigins
appsPrivateOrigins is the admin list, or nil on Cloud (no private destination is ever reachable there) or when unset or unreadable.
internal/server/handlers_apps_install.go:668
↓ 3 callers
Method
archiveCollection
(t *testing.T)
internal/server/bug3635_share_archived_target_test.go:23
↓ 3 callers
Function
arm
()
web/src/lib/items/linksRetry.ts:73
↓ 3 callers
Method
armManagedReminderTx
armManagedReminderTx re-arms the schedule's managed reminder at remindAt, or inserts it when the row is missing. The caller holds the schedule.
internal/store/schedule_resolve.go:922
↓ 3 callers
Function
armStateWellFormed
armStateWellFormed reports whether a parsed ArmState carries the stamps AND invariants writeArmStateFile always produces: a non-empty RFC3339 StartedA
internal/cli/session_arm_state.go:548
↓ 3 callers
Method
asBearer
(tok string)
internal/server/bug3331_search_scope_test.go:198
↓ 3 callers
Function
asCollectionUpdateConflictError
asCollectionUpdateConflictError reports whether err is (or wraps) a store.CollectionUpdateConflictError and returns it. Mirrors asUpdateConflictError
internal/server/handlers_collections.go:632
↓ 3 callers
Function
asNewUser
(page: Page)
web/e2e/lib/workspace-tabs.ts:19
↓ 3 callers
Function
asText
asText extracts the text payload from any content type that has one. mcp-go's Content interface is implemented by TextContent, etc.; we only care abou
internal/mcp/workspace_test.go:128
↓ 3 callers
Function
assertAnnotation
assertAnnotation checks all four hint pointers are explicitly set (nil would mean "no claim", which is exactly the pre-fix defect shape: the absence t
internal/mcp/catalog_annotations_test.go:177
↓ 3 callers
Function
assertChatJSONMark
Check the additive mark object and ensure stdout remains one JSON response.
cmd/pad/cmd_chat_test.go:347
↓ 3 callers
Function
assertEntriesMatchGo
assertEntriesMatchGo fails unless the index equals the Go extraction of the stored fields, and the stored fields hold at least want entries (so a writ
internal/store/item_entries_index_test.go:116
↓ 3 callers
Function
assertLinkedConcurrencyResults
(t *testing.T, errs []error)
internal/store/commitment_links_pg_test.go:439
↓ 3 callers
Function
assertLinkedSave
(t *testing.T, link, target string)
internal/cli/credentials_bug3648_test.go:377
↓ 3 callers
Function
assertMemberCollectionAccessUnchanged
(t *testing.T, f *restrictedOwnerVisibilityFixture, userID, wantMode string, wantIDs []string)
internal/server/handlers_member_collection_access_escalation_test.go:189
↓ 3 callers
Function
assertNoFrameWithEvent
assertNoFrameWithEvent fails if a frame of the given type arrives within the window. Frames of other types are read past, not treated as the absence.
internal/server/handlers_stream_gap_test.go:291
↓ 3 callers
Function
assertNoVariants
assertNoVariants fails if any spec produced a row.
internal/server/handlers_attachments_thumbnails_parent_test.go:72
↓ 3 callers
Function
assertPartial
assertPartial runs the preflight as u and checks relationships_partial.
internal/server/handlers_items_copy_preflight_test.go:1644
↓ 3 callers
Function
assertQueryVectorIntact
assertQueryVectorIntact fails if the request Go builds from target does not actually deliver invalid query text to a handler — i.e. if the premise of
internal/server/middleware_query_test.go:31
↓ 3 callers
Function
assertRefusalParity
assertRefusalParity is the matrix's single assertion: the two endpoints refused with the same status, the same error code, and — since every refusal o
internal/server/handlers_items_copy_parity_test.go:138
↓ 3 callers
Function
assertRowAffected
assertRowAffected returns notFound if the statement didn't touch any rows, the underlying RowsAffected error if the driver can't report, and nil other
internal/store/oauth_connections.go:870
↓ 3 callers
Function
assertShellRefusal
(t *testing.T, msg string, details map[string]any, shell bool)
internal/server/plan_limit_native_shell_test.go:60
↓ 3 callers
Function
assertSlotReleased
assertSlotReleased requires the stream's admission slot to be held first (otherwise the release check passes against a handler that never admitted the
internal/server/bug3637_sse_stalled_reader_test.go:191
↓ 3 callers
Function
assertStoredNumber
assertStoredNumber re-reads the item and asserts the field is stored as a JSON NUMBER with the expected value. Re-reading rather than trusting the mut
internal/server/handlers_items_field_coercion_test.go:694
↓ 3 callers
Function
assertVariants
assertVariants fails unless every spec produced a row. This is the control that keeps the skip tests honest: same fixture, same bytes, live parent.
internal/server/handlers_attachments_thumbnails_parent_test.go:87
↓ 3 callers
Function
assertWorkspaceNumbering
(t *testing.T, s *Store)
internal/store/bug3664_legacy_numbering_test.go:55
↓ 3 callers
Function
at
(secAgo: number)
web/src/lib/components/timeline/HistoryView.svelte.test.ts:27
↓ 3 callers
Function
atMount
atMount presents token to an MCP mount: /mcp (no resource stamped) or the ChatGPT catalog's (its resource stamped, as its route will).
internal/server/task3321_u2a_audience_test.go:162
↓ 3 callers
Function
attachmentAttachCmd
()
cmd/pad/cmd_attachment.go:143
↓ 3 callers
Function
attachmentServeType
attachmentServeType is the download's fail-closed Content-Type and Content-Disposition decision (BUG-2413; see the handler above), shared by the human
internal/server/handlers_attachments.go:991
↓ 3 callers
Function
attachmentViewCmd
()
cmd/pad/cmd_attachment.go:365
↓ 3 callers
Function
attachmentsIn
attachmentsIn returns every attachment row in a workspace (including soft-deleted ones, of which the copy path creates none).
internal/store/items_cross_workspace_copy_test.go:126
↓ 3 callers
Method
attemptFloor
The stream goroutine resolves identity and fetches the floor within one deadline. Failed attempts cannot block subsequent events during backoff.
cmd/pad/cmd_watch_chat.go:345
↓ 3 callers
Method
attributionQuery
attributionQuery looks up table.installCol for ids, joined to the install and its bot, attributionChunk ids per query.
internal/store/app_attribution.go:30
↓ 3 callers
Function
auditLabel
auditLabel applies the marker; see the body for the namespace-reservation rule that makes it non-forgeable.
internal/server/middleware_mcp_audit.go:467
↓ 3 callers
Function
auth
* TASK-2230: a board lane mounts a window of its cards (50 for a terminal * lane), and the full lane is what gets persisted. The drop that proves it
web/e2e/task-2230-lane-window.spec.ts:19
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/bug-3036-item-snapshot-order.spec.ts:27
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/pane-collection-migration-race.spec.ts:43
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/task-2244-mobile-touch-targets.spec.ts:162
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/pane-async-race.spec.ts:122
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/bug-3143-tag-saver-occ.spec.ts:23
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/selection-comment-peek.spec.ts:24
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/bug-3158-landscape-touch-drag.spec.ts:31
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/pane-content-link-anchors.spec.ts:57
↓ 3 callers
Function
authHeaders
(fixture: SuiteFixture)
web/e2e/bug-3115-refused-title-keeps-text.spec.ts:32
← previous
next →
4,701–4,800 of 28,840, ranked by callers