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
↓ 4 callers
Function
jsonUnmarshal
(s string, v any)
internal/store/plan3535_tracks_work_test.go:205
↓ 4 callers
Function
keep
(m: string)
web/src/lib/nav/shallowGuards.test.ts:41
↓ 4 callers
Function
keyFor
(userId: string, itemId: string, slot: RefusedRawDraftSlot = 'pending')
web/src/lib/items/refusedRawDraft.ts:80
↓ 4 callers
Function
keys
keys is a tiny helper for deterministic-ish error messages — fmt.Sprintf("%v", map) order isn't stable across Go versions and hides the actual content
internal/server/handlers_export_bundle_test.go:317
↓ 4 callers
Function
keysOf
(m map[string]bool)
internal/store/commitment_links.go:454
↓ 4 callers
Method
killedFor
()
internal/materialize/supervisor.go:476
↓ 4 callers
Function
kindEnabled
kindEnabled applies the recipient's settings (G5) and the agent-activity switch (G6) to n. A kind the dispatcher has no text for is skipped, not sent.
internal/server/push_gates.go:176
↓ 4 callers
Function
laCopyRequest
(t *testing.T, c *schedCopy, move bool)
internal/store/schedule_copy_r3_test.go:118
↓ 4 callers
Function
leaks
leaks lists every UUID-shaped value, email-shaped string, and id/email key in v, by path. allowed names the comment handle keys.
cmd/pad/chatgpt_projection_test.go:148
↓ 4 callers
Function
leaveElection
()
web/src/lib/services/accessStream.svelte.ts:156
↓ 4 callers
Function
legacyMCPSessionRequest
(s *Server, method string, status int, userID, reqSessionID, respSessionID string)
internal/server/middleware_mcp_session_test.go:453
↓ 4 callers
Function
legacyRoles
(kind, dtstart, dtend string)
internal/store/schedule_journal.go:26
↓ 4 callers
Function
lines
Split into lines that keep their terminating newline.
web/src/lib/items/draftPatch.ts:27
↓ 4 callers
Function
linkClone
(st State)
internal/schedule/links_test.go:50
↓ 4 callers
Function
linkNodeLess
(a, b Node)
internal/schedule/links.go:576
↓ 4 callers
Method
linkNodeTx
linkNodeTx reads the outstanding occurrence's dates, nil when the schedule has none.
internal/store/commitment_cascade.go:94
↓ 4 callers
Method
linkOverrideRow
linkOverrideRow stores an override with fixed stamps, bypassing the writers so the test owns every column.
internal/store/schedule_link_carry_test.go:37
↓ 4 callers
Function
listCompletedWorkSince
listCompletedWorkSince fetches items that reached a *positive* terminal since cutoff. Terminal values are resolved per collection via models.Collectio
cmd/pad/cmd_project.go:312
↓ 4 callers
Function
liveAttachmentCount
liveAttachmentCount counts the workspace's live, non-derived attachment rows — the quota-counted surface a refused transform must not grow.
internal/server/handlers_attachments_transform_authz_test.go:132
↓ 4 callers
Function
liveServer
liveServer serves srv on a real listener with the given server-wide ReadTimeout (Listen's 15s, scaled down).
internal/server/handlers_import_bundle_bug3184_test.go:214
↓ 4 callers
Function
loadImage
(url: string)
web/src/lib/components/editor/attachment-image.ts:610
↓ 4 callers
Method
loadRoleLaneQ
loadRoleLaneQ returns the canonical full lane for (workspaceID, roleID): all live non-terminal items of the role in live collections, sorted with role
internal/store/role_park.go:657
↓ 4 callers
Function
loadStoreLocked
loadStoreLocked is LoadStore for a caller that holds the credentials lock. Holding the lock does not rule out a save in progress: a writer that waite
internal/cli/credentials.go:142
↓ 4 callers
Function
localTime
(at: string, zone: string)
web/src/lib/calendar/presentation.ts:66
↓ 4 callers
Method
lockPendingBytes
(tx *sql.Tx)
internal/store/app_pending.go:80
↓ 4 callers
Method
lockStorageLimitTx
lockStorageLimitTx is the first half of enforceStorageLimitTx: it reads the workspace's owner and takes the storage_bytes plan-limit lock on it. A cal
internal/store/attachments.go:2102
↓ 4 callers
Function
lockedCopyFromSQLiteTemplate
lockedCopyFromSQLiteTemplate builds the template (once) and copies it to dst, holding sqliteTemplateMu for read across both steps so removeSQLiteTempl
internal/store/store_test.go:76
↓ 4 callers
Function
loginCmd
()
cmd/pad/cmd_auth.go:333
↓ 4 callers
Function
loginReturnHref
* The /login URL for a session expiry, carrying the current location as the * `?redirect=` return-to target (BUG-1929 / IDEA-1927 §B2(c)); /login *
web/src/lib/api/client.ts:914
↓ 4 callers
Function
manyUnits
manyUnits gives bob 51 devices and two items with a row each: 102 messages, so two chunks of one unit each.
internal/server/task3939b_push_dispatch_test.go:189
↓ 4 callers
Function
mapRoleUpdate
mapRoleUpdate dispatches `pad role update <slug> [--name ...] [--slug ...] [--description ...] [--icon ...] [--tools ...] [--sort-order ...]`. PATCH
internal/mcp/dispatch_http_routes.go:1165
↓ 4 callers
Function
mark
()
web/src/lib/components/calendar/StateMark.svelte.test.ts:7
↓ 4 callers
Function
markdownToWikiLinks
(markdown: string, items: Item[])
web/src/lib/utils/markdown.ts:981
↓ 4 callers
Method
markupAsyncArrows
Lines in the MARKUP containing an inline `async (` arrow. Instrument B.
web/src/test/identityFenceSource.ts:117
↓ 4 callers
Function
marshalItemFields
(fieldsMap map[string]any)
internal/models/item.go:1256
↓ 4 callers
Method
mcpBoundWrites
mcpBoundWrites serves the MCP transport through the deadline-arming writer the event streams use (BUG-3808, the /mcp sibling of BUG-3637). mcp-go's GE
internal/server/handlers_mcp.go:253
↓ 4 callers
Function
mcpLongLivedRequest
mcpLongLivedRequest reports whether r opens one of the transport's long-lived streams: the legacy GET stream, or a subscriptions/listen POST. served r
internal/server/mcp_stream_keepalive.go:256
↓ 4 callers
Function
mcpOAuthAudience
mcpOAuthAudience is the audience the OAuth server is built for, or "" when none is built (PLAN-2310 DR-4). OAuth is constructed at startup whenever th
cmd/pad/cmd_server_mcp.go:37
↓ 4 callers
Method
member
(email, role string)
internal/server/handlers_commitments_http_test.go:61
↓ 4 callers
Function
mentionCount
(t *testing.T, s *Store, where string, args ...any)
internal/store/task3917_comment_mentions_test.go:49
↓ 4 callers
Function
mentionRows
mentionRows returns user_id -> created_at for a comment.
internal/store/task3917_comment_mentions_test.go:31
↓ 4 callers
Function
mergeBySeq
(window: readonly ChatMessage[], page: readonly ChatMessage[])
web/src/lib/chat/model.ts:14
↓ 4 callers
Function
mergeEqualSeqProjection
( existing: ItemIndexRow, incoming: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:64
↓ 4 callers
Function
mergeFieldsPatch
mergeFieldsPatch applies a shallow JSON-merge-patch (RFC 7396 semantics, one level deep) of `patch` onto the item's current fields JSON (IDEA-1480 TAS
internal/store/items.go:2390
↓ 4 callers
Method
message
(data: string | Uint8Array)
web/src/lib/collab/wsProviderRemoteChange.svelte.test.ts:17
↓ 4 callers
Function
midSave
midSave makes the read numbered truncateAt land just after another process's save truncated the file, and that save's write land just before the read
internal/cli/credentials_bug3828_test.go:91
↓ 4 callers
Function
migrateImportWorkspace
migrateImportWorkspace lands one exported workspace in the destination of `pad db migrate-to-pg`. Empty source: an operator-run copy is not a creation
cmd/pad/cmd_db.go:1180
↓ 4 callers
Function
migratedRemedyIfMarked
migratedRemedyIfMarked reports the stored remedy when this database has been migrated, and "" when it has not. IT IS CALLED BEFORE migrate() AND BEFO
internal/store/migrated.go:483
↓ 4 callers
Method
milestoneGate
milestoneGate runs the gates every milestone write shares and returns the item and its schedule, or nil after writing the refusal.
internal/server/handlers_milestone.go:28
↓ 4 callers
Method
milestoneWriteDone
milestoneWriteDone maps a store error from a milestone write, or records the activity (names only) and answers with the commitment view.
internal/server/handlers_milestone.go:54
↓ 4 callers
Function
mkACLUser
(t *testing.T, st *store.Store, email string)
internal/mcp/resources_http_attachment_acl_test.go:134
↓ 4 callers
Function
mkAdminCookieReq
mkAdminCookieReq is the same shape minus the Authorization header. Simulates the cookie-session path where isBearerAuth must return false and the admi
internal/server/handlers_admin_bearer_gate_test.go:47
↓ 4 callers
Function
modernResult
(t *testing.T, resp *http.Response)
internal/server/mcp_modern_test.go:127
↓ 4 callers
Function
monitorSessionIdentity
runWatchMonitor is `pad watch --stream --for-session`'s main loop. Implements DOC-2479's silent-start contract exactly: - no .pad.toml anywhere in the
cmd/pad/cmd_watch.go:469
↓ 4 callers
Function
mountPage
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:428
↓ 4 callers
Method
move
(target string, overrides map[string]any)
internal/server/bug2367_close_state_test.go:41
↓ 4 callers
Method
movedAway
The pin reads the seeds and the link component before it has the schedule locks. On Postgres a cross-workspace move can commit while the pin waits for
internal/store/commitment_links_revalidate_test.go:21
↓ 4 callers
Function
movedGateFixture
(t *testing.T, floating bool, until string)
internal/store/commitment_gates_move_test.go:13
↓ 4 callers
Method
movedToDestinations
movedToDestinations returns the destinations an archived item was moved to that THIS caller is independently authorized to read, newest first, or nil.
internal/server/item_moved_to.go:188
↓ 4 callers
Function
multiSelectStatus
BUG-3079 — an injected schema default takes the same type check a supplied value takes. The defect was that it did not: `ValidateFieldsDetailed` assi
internal/items/bug3079_default_typecheck_test.go:20
↓ 4 callers
Function
must
(what: string, resp: Awaited<ReturnType<APIRequestContext['post']>>)
web/e2e/lib/readme-seed.ts:42
↓ 4 callers
Function
mustHex
(t *testing.T, s string)
internal/collab/awareness_test.go:23
↓ 4 callers
Function
mustLegacyPlanLink
--- TASK-2369: the ACL filter must be visible, and must not leak ------- mustLegacyPlanLink writes an item_links row carrying the pre-rename "plan" li
internal/server/handlers_items_copy_preflight_test.go:1537
↓ 4 callers
Function
mustWorkspaceID
mustWorkspaceID resolves a workspace slug to its internal ID via the store. Tests use it because they don't have access to the request context that ge
internal/server/handlers_attachments_test.go:825
↓ 4 callers
Method
myInvitations
(tok string)
internal/server/my_invitations_test.go:35
↓ 4 callers
Function
needsDueOf
TASK-4711: once a snooze ends, the re-fired reminder is the newest claim, so Latest reads the re-fire instant (later than the occurrence's due instant
internal/store/task4711_needs_latest_test.go:15
↓ 4 callers
Function
needsPRMetadataRefresh
(item *models.Item, livePR *GitHubPR)
cmd/pad/reconcile.go:378
↓ 4 callers
Method
nested
(fn: Node)
web/src/test/identityFenceAst.ts:1006
↓ 4 callers
Function
newAdminPATFixture
(t *testing.T)
internal/server/bug3361_admin_pat_test.go:31
↓ 4 callers
Function
newAttachmentACLFixture
(t *testing.T)
internal/mcp/resources_http_attachment_acl_test.go:39
↓ 4 callers
Function
newB2367Fixture
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:90
↓ 4 callers
Function
newBug3558AuthedFixture
(t *testing.T)
internal/server/bug3558_collab_snapshot_door_test.go:12
↓ 4 callers
Function
newBug3815Fixture
Newest first: vb a patch whose context is nowhere in the body: fails vg a reverse patch against the current body, resolved past vb, with the
internal/server/bug3815_restore_unreconstructable_test.go:46
↓ 4 callers
Function
newCRBFixture
(t *testing.T, slug string)
internal/store/convention_role_backfill_test.go:25
↓ 4 callers
Function
newCappedMCPSessionTracker
newCappedMCPSessionTracker constructs a tracker with an optional per-group cap. maxPerGroup <= 0 disables the per-group cap; positive values initializ
internal/server/middleware_mcp_session.go:98
↓ 4 callers
Function
newChatArmCmd
()
cmd/pad/cmd_chat_direction.go:11
↓ 4 callers
Function
newChatGPTScopeHarness
(t *testing.T)
cmd/pad/chatgpt_scope_test.go:31
↓ 4 callers
Function
newCommentFixture
TASK-3119 U2b: the conventions questions asked about each comment alone.
internal/decision/per_comment_test.go:16
↓ 4 callers
Function
newCommentFixture
(t *testing.T)
internal/appstore/comments_test.go:57
↓ 4 callers
Function
newDerivingShareFixture
seedOriginalWithProcessor is newShareAssetFixture + the pure-Go image processor wired, so deriveThumbnails actually produces variants. Returns a fixtu
internal/server/handlers_share_attachments_derive_test.go:35
↓ 4 callers
Function
newGapAnnouncer
(cooldown time.Duration)
internal/server/stream_gap_announcer.go:61
↓ 4 callers
Function
newHistoryFixture
(t *testing.T)
internal/mcp/dispatch_http_history_test.go:59
↓ 4 callers
Function
newLinkWorld
linkWorld: workspace "ws" holding X = SECR-1 (secretTitle) in "secrets", a collection a restricted member or guest would not see, and PUB-2 in "public
internal/server/materialize_recovery_links_test.go:58
↓ 4 callers
Function
newMutationOptions
(opts []MutationOption)
internal/store/event_outbox.go:121
↓ 4 callers
Function
newNotMineRoute
(t *testing.T)
internal/server/handlers_needs_not_mine_test.go:328
↓ 4 callers
Function
newObservedEventBus
newObservedEventBus builds the event bus for this deployment shape with its operational observer already attached (BUG-2731). A nil client selects the
cmd/pad/cmd_server.go:1503
↓ 4 callers
Function
newPushGateCache
()
internal/server/push_gates.go:47
↓ 4 callers
Function
newScopeSet
(sc needs.Scope)
internal/server/needs_scorers.go:314
↓ 4 callers
Function
newSubscribeGateProxy
newSubscribeGateProxy is the delay proxy with the release under the TEST'S control: the first SUBSCRIBE per connection is parked until release() is ca
internal/events/redis_subscribe_confirm_test.go:118
↓ 4 callers
Function
newSubscriber
newSubscriber builds a subscriber with both of its channels, so no path can register one that has an event channel and no gap channel — a nil gaps cha
internal/events/bus.go:651
↓ 4 callers
Function
newTask2188Fixture
(t *testing.T)
internal/server/task2188_field_usage_test.go:30
↓ 4 callers
Function
newTokenLimitEnv
--- U2: api_tokens (both token doors) --- newTokenLimitEnv is setupTokenAuthEnv (a session-authenticated owner holding two PATs) in cloud mode on the
internal/server/handlers_plan_limit_race_test.go:210
↓ 4 callers
Function
newer
newer orders rows by created_at, then id, the same tiebreak the store's latest-row read uses. created_at is fixed-width, so string order is time order
internal/verification/verification.go:185
↓ 4 callers
Method
next
next is the next occurrence in library order, rule and RDATE merged, a repeat dropped, an EXDATE skipped. final is the key past which the caller stops
internal/schedule/engine.go:237
↓ 4 callers
Function
noBearerRequest
noBearerRequest returns a bare request with no Authorization header — isBearerAuth(r) reports false for it, matching a cookie-session-style caller. No
internal/server/handlers_watch_access_test.go:17
↓ 4 callers
Function
nonNilStrings
nonNilStrings guarantees `[]` rather than `null` on the wire, matching the preflight's promise for every list it returns.
internal/server/handlers_items_copy.go:1074
↓ 4 callers
Function
normalizeItemConventionMetadata
(metadata *ItemConventionMetadata)
internal/models/item.go:1264
↓ 4 callers
Function
normalizeWebhookEvents
normalizeWebhookEvents canonicalizes a webhook's event filter to the JSON-array string the store + dispatcher expect. Returns (value, true) when a no
internal/mcp/dispatch_http_routes.go:1381
↓ 4 callers
Function
notDefaultKeys
notDefaultKeys delegates to store.NotDefaultKeys. The rule moved into `store` because the cross-workspace COPY needs it from inside its transaction,
internal/server/relation_referents.go:359
↓ 4 callers
Method
noteOwed
(itemId: string)
web/src/lib/collab/collabFlush.svelte.ts:128
← previous
next →
4,401–4,500 of 31,685, ranked by callers