MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

↓ 4 callersMethodlinkNodeTx
linkNodeTx reads the outstanding occurrence's dates, nil when the schedule has none.
internal/store/commitment_cascade.go:94
↓ 4 callersMethodlinkOverrideRow
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 callersMethodlinkedRolesTx
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
↓ 4 callersFunctionlist
* 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:3647
↓ 4 callersFunctionlistCompletedWorkSince
listCompletedWorkSince fetches items that reached a *positive* terminal since cutoff. Terminal values are resolved per collection via models.Collectio
cmd/pad/cmd_project.go:297
↓ 4 callersFunctionliveAttachmentCount
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 callersFunctionliveServer
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 callersFunctionloadStoreLocked
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:140
↓ 4 callersFunctionlocalTime
(at: string, zone: string)
web/src/lib/calendar/presentation.ts:66
↓ 4 callersMethodlockPendingBytes
(tx *sql.Tx)
internal/store/app_pending.go:80
↓ 4 callersMethodlogWorkspaceAuditEvent
logWorkspaceAuditEvent logs a workspace-scoped audit event (e.g. member invited). Best-effort: errors are silently ignored.
internal/server/handlers_documents.go:504
↓ 4 callersFunctionmakeEditor
(element: HTMLElement, address = DEFAULT_ADDRESS)
web/src/lib/components/editor/attachmentImageMissing.svelte.test.ts:83
↓ 4 callersFunctionmakeEditor
(element: HTMLElement, address = () => ADDRESS)
web/src/lib/components/editor/attachmentChipPanel.svelte.test.ts:69
↓ 4 callersFunctionmanyUnits
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 callersFunctionmapRoleUpdate
mapRoleUpdate dispatches `pad role update <slug> [--name ...] [--slug ...] [--description ...] [--icon ...] [--tools ...] [--sort-order ...]`. PATCH
internal/mcp/dispatch_http_routes.go:1145
↓ 4 callersFunctionmark
()
web/src/lib/components/calendar/StateMark.svelte.test.ts:7
↓ 4 callersFunctionmarkRolledBack
markRolledBack marks err (nil stays nil) as a definitive rollback.
internal/store/busy_error.go:113
↓ 4 callersFunctionmarkdownToWikiLinks
(markdown: string, items: Item[])
web/src/lib/utils/markdown.ts:981
↓ 4 callersMethodmarker
(t *testing.T)
internal/server/effort_backfill_lifecycle_test.go:118
↓ 4 callersMethodmarkupAsyncArrows
Lines in the MARKUP containing an inline `async (` arrow. Instrument B.
web/src/test/identityFenceSource.ts:117
↓ 4 callersFunctionmarshalItemFields
(fieldsMap map[string]any)
internal/models/item.go:1245
↓ 4 callersMethodmcpBoundWrites
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 callersFunctionmcpLongLivedRequest
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:257
↓ 4 callersFunctionmcpOAuthAudience
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 callersMethodmember
(email, role string)
internal/server/handlers_commitments_http_test.go:61
↓ 4 callersFunctionmemoLoad
(m *needsMemo, read string, slot *memoSlot[T], fn func() (T, error))
internal/server/needs_scorers.go:115
↓ 4 callersFunctionmentionCount
(t *testing.T, s *Store, where string, args ...any)
internal/store/task3917_comment_mentions_test.go:49
↓ 4 callersFunctionmentionRows
mentionRows returns user_id -> created_at for a comment.
internal/store/task3917_comment_mentions_test.go:31
↓ 4 callersFunctionmergeBySeq
(window: readonly ChatMessage[], page: readonly ChatMessage[])
web/src/lib/chat/model.ts:14
↓ 4 callersFunctionmergeEqualSeqProjection
( existing: ItemIndexRow, incoming: ItemIndexRow, )
web/src/lib/stores/itemRowMerge.ts:64
↓ 4 callersFunctionmidSave
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 callersFunctionmigrateImportWorkspace
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:1072
↓ 4 callersFunctionmigratedRemedyIfMarked
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:476
↓ 4 callersMethodmilestoneGate
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 callersMethodmilestoneWriteDone
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 callersFunctionmkACLUser
(t *testing.T, st *store.Store, email string)
internal/mcp/resources_http_attachment_acl_test.go:134
↓ 4 callersFunctionmkAdminCookieReq
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 callersFunctionmonitorSessionIdentity
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 callersFunctionmountPage
()
web/src/routes/[username]/[workspace]/[collection]/collectionIdentityFence.svelte.test.ts:428
↓ 4 callersMethodmove
(target string, overrides map[string]any)
internal/server/bug2367_close_state_test.go:41
↓ 4 callersMethodmovedAway
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 callersFunctionmovedGateFixture
(t *testing.T, floating bool, until string)
internal/store/commitment_gates_move_test.go:13
↓ 4 callersMethodmovedToDestinations
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 callersFunctionmultiSelectStatus
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 callersFunctionmust
(what: string, resp: Awaited<ReturnType<APIRequestContext['post']>>)
web/e2e/lib/readme-seed.ts:42
↓ 4 callersFunctionmustHex
(t *testing.T, s string)
internal/collab/awareness_test.go:23
↓ 4 callersFunctionmustLegacyPlanLink
--- 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 callersFunctionmustWorkspaceID
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 callersMethodmyInvitations
(tok string)
internal/server/my_invitations_test.go:35
↓ 4 callersMethodneedsItemState
needsItemState is the item's state as the snoozing user would see it now: the newest other comment's second, the ids at that second, and the latest st
internal/store/needs_snooze.go:36
↓ 4 callersFunctionneedsPRMetadataRefresh
(item *models.Item, livePR *GitHubPR)
cmd/pad/reconcile.go:378
↓ 4 callersMethodnested
(fn: Node)
web/src/test/identityFenceAst.ts:1006
↓ 4 callersFunctionnewAdminPATFixture
(t *testing.T)
internal/server/bug3361_admin_pat_test.go:30
↓ 4 callersFunctionnewAttachmentACLFixture
(t *testing.T)
internal/mcp/resources_http_attachment_acl_test.go:39
↓ 4 callersFunctionnewBackfillRig
(t *testing.T)
internal/server/effort_backfill_lifecycle_test.go:28
↓ 4 callersFunctionnewBug3815Fixture
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 callersFunctionnewCRBFixture
(t *testing.T, slug string)
internal/store/convention_role_backfill_test.go:25
↓ 4 callersFunctionnewChatArmCmd
()
cmd/pad/cmd_chat_direction.go:11
↓ 4 callersFunctionnewCommentFixture
(t *testing.T)
internal/appstore/comments_test.go:57
↓ 4 callersFunctionnewGapAnnouncer
(cooldown time.Duration)
internal/server/stream_gap_announcer.go:61
↓ 4 callersFunctionnewHistoryFixture
(t *testing.T)
internal/mcp/dispatch_http_history_test.go:25
↓ 4 callersFunctionnewLinkWorld
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 callersFunctionnewMutationOptions
(opts []MutationOption)
internal/store/event_outbox.go:121
↓ 4 callersFunctionnewObservedEventBus
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:1443
↓ 4 callersFunctionnewPostgresConn
newPostgresConn opens a raw postgres connection (no migrations).
internal/store/store_test.go:337
↓ 4 callersFunctionnewPushGateCache
()
internal/server/push_gates.go:47
↓ 4 callersFunctionnewScopeSet
(sc needs.Scope)
internal/server/needs_scorers.go:415
↓ 4 callersFunctionnewSubscribeGateProxy
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 callersFunctionnewSubscriber
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:649
↓ 4 callersFunctionnewTask2188Fixture
(t *testing.T)
internal/server/task2188_field_usage_test.go:30
↓ 4 callersFunctionnewTokenLimitEnv
--- 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 callersFunctionnewer
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 callersMethodnext
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 callersFunctionnoBearerRequest
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 callersFunctionnonNilStrings
nonNilStrings guarantees `[]` rather than `null` on the wire, matching the preflight's promise for every list it returns.
internal/server/handlers_items_copy.go:1072
↓ 4 callersFunctionnormalizeItemConventionMetadata
(metadata *ItemConventionMetadata)
internal/models/item.go:1253
↓ 4 callersFunctionnormalizeWebhookEvents
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:1277
↓ 4 callersFunctionnotDefaultKeys
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 callersFunctionnoteServerTimezone
(v scheduleView)
cmd/pad/cmd_schedule.go:144
↓ 4 callersMethodnotificationAccess
notificationAccess is the SHARED gate: may n's recipient still be told about n's subject. Order is privacy first, so when several fail the recorded re
internal/server/push_gates.go:66
↓ 4 callersFunctionnotifyAttachmentDeleted
(uuid: string)
web/src/lib/attachments/events.ts:45
↓ 4 callersFunctionnotifyAttachmentSurfaceOpen
(event: AttachmentSurfaceOpenEvent)
web/src/lib/attachments/events.ts:457
↓ 4 callersFunctionnow
()
web/src/lib/utils/activityEpisodes.test.ts:7
↓ 4 callersMethodnow
()
internal/events/redis_heartbeat_test.go:29
↓ 4 callersFunctionnthPositional
nthPositional returns pos[n] or "" when absent.
internal/mcp/resources_http.go:353
↓ 4 callersFunctionnulRefusalReason
nulRefusalReason classifies the store's NUL refusal and returns the sentence a caller should be given. ONE classifier, SEVERAL envelopes — and the se
internal/server/server.go:3198
↓ 4 callersFunctionnulTriggersIn
nulTriggersIn reads the NUL triggers present in the named files' namespaces, name -> stored SQL. GLOB rather than LIKE: LIKE's `_` is a single-charac
internal/store/nulcolumns.go:967
↓ 4 callersFunctionnumericFiles
(t *testing.T, dir string)
internal/cli/session_registry_test.go:51
↓ 4 callersMethodoauthRequestToFositeRequest
oauthRequestToFositeRequest hydrates a stored row into a fresh fosite.Request, fetching the client by ID and unmarshalling the session bytes into the
internal/oauth/storage.go:567
↓ 4 callersMethodobserve
observe records a gap the bus just reported and says whether to announce it NOW. False means the announcement is latched and will come back through co
internal/server/stream_gap_announcer.go:79
↓ 4 callersFunctionoccupiedEnd
occupiedEnd applies an offset using the schedule's own civil arithmetic. Validate it even when a deadline takes precedence over the window label.
internal/store/commitment.go:329
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/bug-3447-launchpad-live.spec.ts:36
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/task-2234-command-palette-a11y.spec.ts:39
↓ 4 callersFunctionok
(resp: Awaited<ReturnType<APIRequestContext['get']>>, what: string)
web/e2e/task-2224-sse-request-budget.spec.ts:21
↓ 4 callersMethodonHint
A chat notice arrived: schedule a coalesced refetch and tell subscribers.
web/src/lib/stores/chat.svelte.ts:120
↓ 4 callersFunctionone
(items: CalendarResponse['items'])
web/src/lib/calendar/monthGrid.test.ts:124
↓ 4 callersMethodopenBootstrapEnabled
openBootstrapEnabled reports whether open-bootstrap is active for this server: bypass flag is set AND we're not in cloud mode. Cloud mode always wins
internal/server/bootstrap.go:199
↓ 4 callersFunctionopenEventSource
(workspaceSlug: string)
web/src/lib/services/sse.svelte.ts:493
↓ 4 callersFunctionoracleRule
oracleRule builds the vendored rule alone, as the engine hands it to the library (elapsed rules fast-forwarded to base). steps is the budget; 0 is unb
internal/schedule/oracle_test.go:22
↓ 4 callersMethodoutboxClaimBudget
()
internal/store/event_outbox.go:335
← previousnext →4,001–4,100 of 28,840, ranked by callers