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
go
(delta: number, then: (() => void) | null = null)
web/src/lib/stores/chatSurface.svelte.ts:338
↓ 5 callers
Function
graphRequired
(field string, value *string)
internal/server/handlers_commitment_links.go:94
↓ 5 callers
Function
groupDecode
(t *testing.T, rr *httptest.ResponseRecorder)
internal/server/handlers_workspace_groups_test.go:51
↓ 5 callers
Function
groupNoLeak
(t *testing.T, rr *httptest.ResponseRecorder, ws *models.Workspace)
internal/server/handlers_workspace_groups_test.go:84
↓ 5 callers
Function
gzipBytes
(t *testing.T, raw []byte)
internal/server/bug3354_import_bundle_bomb_test.go:228
↓ 5 callers
Method
handleControlMessage
handleControlMessage dispatches a TextMessage frame received from a peer: applier_apply_start / applier_ack (the designated-applier bracket, TASK-1257
internal/collab/room.go:940
↓ 5 callers
Method
handleCopyItemPreflight
handleCopyItemPreflight answers "what would this cross-workspace copy do?" without doing any of it. See the file header for the full contract.
internal/server/handlers_items_copy_preflight.go:628
↓ 5 callers
Function
hasDroppedField
hasDroppedField reports whether the copy's own response warned that key was dropped.
internal/server/handlers_items_copy_relation_test.go:271
↓ 5 callers
Function
hasSessionCookie
(rr *httptest.ResponseRecorder)
internal/server/bug3680_cross_site_signin_doors_test.go:48
↓ 5 callers
Function
hashRecoveryCodes
hashRecoveryCodes returns SHA-256 hex hashes of the given plaintext codes.
internal/server/handlers_2fa.go:571
↓ 5 callers
Function
head
(s string, lines int)
internal/cmdhelp/md_test.go:371
↓ 5 callers
Function
headers
(f: Fixture, agent?: string)
web/e2e/chat-thread-refs.spec.ts:26
↓ 5 callers
Function
hideMenu
()
web/src/lib/components/editor/block-drag-handle.ts:493
↓ 5 callers
Function
hydrate
( userId: string | null, ws: string, )
web/src/lib/stores/localIndexPersistence.ts:401
↓ 5 callers
Function
idPlaceholders
idPlaceholders returns "?,?,?" for n ids, and the ids as args.
internal/store/push_dispatch.go:87
↓ 5 callers
Function
image
* A member of the viewer's set. `mime_type` defaults to an ALLOWLISTED type, * because the gate fails closed: a record without one is not viewable, s
web/src/lib/components/common/Lightbox.svelte.test.ts:147
↓ 5 callers
Function
imageRect
(page: Page, selector = VIEWER_IMAGE)
web/e2e/lib/attachment-viewer.ts:267
↓ 5 callers
Function
importJSON
(t *testing.T, srv *Server, path string, export *models.WorkspaceExport, sessionToken string)
internal/server/handlers_workspace_mint_parity_test.go:40
↓ 5 callers
Function
importKeyed
(srv *Server, name, key string, body io.Reader, token string)
internal/server/handlers_import_bundle_bug3475_test.go:47
↓ 5 callers
Function
intPtr
(n int)
internal/cli/item_summary_test.go:11
↓ 5 callers
Function
invalidateAttachmentMetadata
(workspaceSlug: string, uuid: string)
web/src/lib/components/editor/attachment-metadata.ts:285
↓ 5 callers
Function
invitationEmailMatches
invitationEmailMatches lowercases ASCII letters only and compares the stored address byte-exactly. Both EqualFold and strings.ToLower equate distinct
internal/server/handlers_members.go:445
↓ 5 callers
Function
inviteByEmail
inviteByEmail invites addr through the HTTP door as the admin and returns the response body, the join code and the proof from the captured email.
internal/server/task3352_invitation_proof_test.go:24
↓ 5 callers
Function
invitedSignupServer
BUG-2715, the signup door. The membership write's error was discarded and the invitation was consumed on the very next line, so a failure burned the c
internal/server/workspace_owner_compensation_test.go:239
↓ 5 callers
Function
ipInCIDRs
(ip net.IP, cidrs []*net.IPNet)
internal/server/middleware_realip.go:153
↓ 5 callers
Function
isActivateRequest
(r *http.Request)
internal/server/handlers_activate.go:12
↓ 5 callers
Function
isAllDay
(entry: AgendaEntry)
web/src/lib/calendar/presentation.ts:90
↓ 5 callers
Function
isBlockedByModal
(owner?: Element | null, event?: Event | null)
web/src/lib/a11y/viewerBackdrop.ts:376
↓ 5 callers
Function
isCrossWorkspaceHref
(href: string)
web/src/lib/collections/paneTarget.ts:61
↓ 5 callers
Function
isReferenceCollection
isReferenceCollection reports whether the collection holds reference material rather than work (PLAN-3535), so its items stay out of progress, open-wo
internal/server/handlers_dashboard.go:350
↓ 5 callers
Function
isUUID
isUUID checks if a string looks like a UUID (8-4-4-4-12 hex).
internal/store/items.go:999
↓ 5 callers
Function
item
An item in the MIDDLE status and a named priority — see STATUSES above.
web/src/lib/components/collections/chipWritesStatus.svelte.test.ts:114
↓ 5 callers
Function
item
(id: string, value?: string)
web/src/lib/components/collections/BoardView.relationGroup.svelte.test.ts:96
↓ 5 callers
Function
itemFieldsAsMap
itemFieldsAsMap reads the parsed `fields` value off an item-shape structuredContent map. After BUG-991 path A's normalization the MCP boundary returns
internal/mcp/dispatch_http_advanced_test.go:591
↓ 5 callers
Function
itemListPage
(h http.Header)
internal/cli/client.go:375
↓ 5 callers
Function
itemOpenCmdWithOpener
(opener func(string) error)
cmd/pad/cmd_item.go:1216
↓ 5 callers
Method
itemPath
(itemID, rest string)
internal/server/task3414_item_actions_test.go:56
↓ 5 callers
Method
itemRefIDQ
itemRefIDQ retains the caller's executor, scope and liveness policy. The app door executes itemRefLookupSQL through its concrete *sql.Tx instead.
internal/store/item_refs.go:51
↓ 5 callers
Function
itemUpdatedSliceChanged
itemUpdatedSliceChanged reports whether anything outside the status and location slices differs between two in-transaction snapshots of one item. Bot
internal/store/event_outbox.go:1581
↓ 5 callers
Method
itemVisibleFor
itemVisibleFor returns the per-item visibility decision for the caller of r, for items of workspaceID: the policy every enrichment that NAMES another
internal/server/relation_hydration.go:110
↓ 5 callers
Method
items
Confirmed messages by seq, then pending bubbles in the order added.
web/src/lib/chat/model.ts:100
↓ 5 callers
Method
itemsPath
()
internal/server/middleware_verified_email_test.go:115
↓ 5 callers
Function
keyStepUpError
keyStepUpError words the step-up refusals create and rotate share with edit; any other error is returned as it came.
cmd/pad/cmd_token.go:399
↓ 5 callers
Function
landUnder
()
web/src/lib/stores/chatSurface.svelte.test.ts:672
↓ 5 callers
Method
lapseDueInPlanTx
lapseDueInPlanTx closes due lapsing occurrences before any planned date or link write. The component pin holds their schedules, never their item rows.
internal/store/commitment_cascade.go:726
↓ 5 callers
Function
latchMissing
* Latch the permanent placeholder for a row the server says is * gone. Same end state as the deletion broadcast, reached by a * different rout
web/src/lib/components/editor/attachment-image.ts:559
↓ 5 callers
Method
lexicalOf
The names a helper's body resolves locally: its own lexical chain, never the caller's.
web/src/test/identityFenceAst.ts:1089
↓ 5 callers
Function
lifecycleInstall
TASK-3397 (U8c): two-phase disable and rotate, re-enable, uninstall. lifecycleInstall is a U5a test install whose bot is bound (bot_user_id) and a mem
internal/server/task3397_lifecycle_test.go:19
↓ 5 callers
Function
liftColumnFields
liftColumnFields removes columnFieldKeys entries from `fields` and returns them as column writes. Mutates `fields`. Without this, `--field assigned_u
cmd/pad/cmd_item.go:82
↓ 5 callers
Method
limitsApply
limitsApply reports whether plan limits are enforced for this request: in cloud mode always, and in every mode for an unclaimed account (TASK-4930), w
internal/server/handlers_cloud.go:1731
↓ 5 callers
Method
link
(t *testing.T, src, tgt *models.Item, typ string)
internal/store/bug3434_relationship_reads_test.go:26
↓ 5 callers
Method
linkedRolesTx
linkedRolesTx names the roles of scheduleID that some link uses, on whichever end the schedule is. It is empty for a schedule with no link. It is one
internal/store/commitment_links.go:945
↓ 5 callers
Function
linkerBody
BUG-2798. A document rename rewrites `[[oldTitle]]` → `[[newTitle]]` in every linking document, and the cascade holds every rewritten body in memory b
internal/store/documents_rename_bounds_test.go:34
↓ 5 callers
Function
list
* Paginated list of attachments in a workspace, used by the * Settings → Storage page. Hides derived blobs (thumbnails) by * default — those are
web/src/lib/api/client.ts:3810
↓ 5 callers
Function
listCmd
()
cmd/pad/cmd_item.go:463
↓ 5 callers
Function
listPending
(userId: string, n: number)
web/src/lib/chat/chatRecords.ts:81
↓ 5 callers
Method
loadMilestoneRows
loadMilestoneRows is the one function that loads milestone_children and milestone_completion_evidence rows for a reader, and the one place a reader's
internal/store/milestone.go:340
↓ 5 callers
Function
lockCredentialsFile
lockCredentialsFile tries an advisory flock on lockPath without blocking (BUG-3649): exclusive (LOCK_EX) for a write, shared (LOCK_SH) for a read. A l
internal/cli/credentials_lock_unix.go:14
↓ 5 callers
Method
logWorkspaceAuditEvent
logWorkspaceAuditEvent logs a workspace-scoped audit event (e.g. member invited). Best-effort: errors are silently ignored.
internal/server/handlers_documents.go:504
↓ 5 callers
Function
makeEditor
(element: HTMLElement, address = DEFAULT_ADDRESS)
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:93
↓ 5 callers
Function
makeEditor
(element: HTMLElement, address = () => ADDRESS)
web/src/lib/components/editor/attachmentChipPanel.svelte.test.ts:78
↓ 5 callers
Function
manifestTestFS
(manifest string)
internal/collections/templates_manifest_test.go:9
↓ 5 callers
Function
maskAPIKey
maskAPIKey returns the display form of a sensitive setting value. Keys longer than 8 chars show their first and last 4 chars (abcd...wxyz); shorter no
internal/server/handlers_admin.go:101
↓ 5 callers
Method
materializeLinkIndex
materializeLinkIndex is the link index a recovery job converts internal links against: EVERY live item of the workspace, not the set any one viewer ca
internal/server/materialize_recovery.go:728
↓ 5 callers
Function
materializeWith
(ed: Editor, job: MaterializeJob)
web/src/lib/collab/materializer/entry.ts:83
↓ 5 callers
Method
mcpAvailableWith
mcpAvailableWith is mcpAvailable for a setting value already read, so a caller that also reports the setting reads it once and the two cannot disagree
internal/server/handlers_admin_mcp.go:65
↓ 5 callers
Method
member
(email, role string)
internal/server/workspace_access_notify_test.go:65
↓ 5 callers
Method
mergeIntoUnlinkedActivity
mergeIntoUnlinkedActivity applies a debounce merge to one activity row in a single statement whose predicate refuses the row on two grounds: a comment
internal/store/activities.go:495
↓ 5 callers
Function
migrateImportWorkspaceReporting
migrateImportWorkspaceReporting is migrateImportWorkspace that also prints each schedule the import refused, as it happens, and returns them (TASK-410
cmd/pad/cmd_db.go:1194
↓ 5 callers
Function
mintOAuthTokenForTest
mintOAuthTokenForTest drives the consent → token exchange and returns the access token. Lightly customizable via the form arg so callers can vary the
internal/server/handlers_mcp_test.go:1747
↓ 5 callers
Function
mkAdminBearerReq
BUG-1616 extended coverage — admin-via-bearer gate at the SSE and WebSocket-collab entry points that sit OUTSIDE RequireWorkspaceAccess. These endpoin
internal/server/handlers_admin_bearer_gate_test.go:37
↓ 5 callers
Function
mkUserRole
(t *testing.T, srv *Server, email, role string)
internal/server/bug3273_stream_soft_delete_test.go:171
↓ 5 callers
Function
modeOf
(t *testing.T, path string)
internal/config/perms_unix_test.go:45
↓ 5 callers
Function
modernBody
(t *testing.T, method, name string, params map[string]any)
internal/server/mcp_modern_test.go:78
↓ 5 callers
Function
mountWith
(body: unknown)
web/src/routes/(console)/needs/needsPage.svelte.test.ts:109
↓ 5 callers
Method
move
(i int, to string)
internal/store/commitment_links_pg_test.go:66
↓ 5 callers
Function
moveTestCollections
The DR-12 fix on the EXISTING intra-workspace move path (PLAN-2357). handleMoveItem merged field_overrides into result.Fields and then tested result.
internal/server/handlers_items_move_overrides_test.go:25
↓ 5 callers
Function
msg
(err)
plugin/hooks/register.js:332
↓ 5 callers
Function
msg
The shape the real server sends. A human's own message has agent_key "" and mine true.
web/src/lib/stores/chatThread.svelte.test.ts:71
↓ 5 callers
Method
mustBeRefusedAtCap
mustBeRefusedAtCap asserts the refusal a limited mint owes when its own check sees the cap reached: the 403 plan_limit_exceeded envelope, and a count
internal/server/handlers_plan_limit_race_test.go:150
↓ 5 callers
Function
mustCreatePATForTest
mustCreatePATForTest creates a real PAT against a fresh user + workspace. Returns the raw token string suitable for the Authorization: Bearer header.
internal/server/handlers_mcp_test.go:1837
↓ 5 callers
Function
mustSchedule
(t *testing.T, f *copyPreflightFixture)
internal/server/handlers_items_copy_schedule_test.go:276
↓ 5 callers
Function
mustZone
TASK-3524: report buckets in the viewer's zone.
internal/store/reports_tz_test.go:10
↓ 5 callers
Function
near
(got, want time.Duration)
internal/server/bug3978_rotation_ttl_test.go:62
↓ 5 callers
Function
needs
()
scripts/ci-result_test.py:16
↓ 5 callers
Function
needsValueByKey
(resp ItemCopyPreflight, key string)
internal/server/handlers_items_copy_preflight_test.go:255
↓ 5 callers
Function
needsValueRow
needsValueRow returns the needs_value row for key, or nil.
internal/server/handlers_items_copy_relation_test.go:1200
↓ 5 callers
Function
newBearerGateItemFixture
(t *testing.T)
internal/server/handlers_items_test.go:2559
↓ 5 callers
Function
newBlocksGraph
(edges []store.BlocksEdge, colls []models.Collection)
internal/server/needs_scorers.go:337
↓ 5 callers
Function
newBug3434World
(t *testing.T)
internal/store/bug3434_relationship_reads_test.go:20
↓ 5 callers
Function
newCalWorld
(t *testing.T)
internal/store/schedule_calendar_test.go:24
↓ 5 callers
Function
newCopyAttachmentFixture
(t *testing.T)
internal/server/handlers_items_copy_attachment_authz_test.go:56
↓ 5 callers
Function
newCopyFanoutObserver
(t *testing.T, f *copyPreflightFixture)
internal/server/handlers_items_copy_test.go:562
↓ 5 callers
Function
newCopyRelationFixture
(t *testing.T)
internal/server/handlers_items_copy_relation_test.go:55
↓ 5 callers
Function
newFieldValueFixture
(t *testing.T)
internal/store/field_value_dialect_test.go:43
↓ 5 callers
Function
newPostgresConn
newPostgresConn opens a raw postgres connection (no migrations).
internal/store/store_test.go:338
↓ 5 callers
Function
newSocialSquat
(t *testing.T)
internal/server/task3351_social_claim_test.go:227
↓ 5 callers
Function
newStreamAdmission
(maxTotal, maxUser int)
internal/server/stream_admission.go:49
↓ 5 callers
Function
newStubAuthServer
(t *testing.T, wantToken string)
cmd/pad/env_token_override_test.go:55
↓ 5 callers
Function
newSubscribeDelayProxy
(t *testing.T, backend string, delay time.Duration)
internal/events/redis_subscribe_confirm_test.go:50
← previous
next →
3,501–3,600 of 31,685, ranked by callers