MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 4 callersFunctionjsonUnmarshal
(s string, v any)
internal/store/plan3535_tracks_work_test.go:205
↓ 4 callersFunctionkeep
(m: string)
web/src/lib/nav/shallowGuards.test.ts:41
↓ 4 callersFunctionkeyFor
(userId: string, itemId: string, slot: RefusedRawDraftSlot = 'pending')
web/src/lib/items/refusedRawDraft.ts:80
↓ 4 callersFunctionkeys
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 callersFunctionkeysOf
(m map[string]bool)
internal/store/commitment_links.go:454
↓ 4 callersMethodkilledFor
()
internal/materialize/supervisor.go:476
↓ 4 callersFunctionkindEnabled
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 callersFunctionlaCopyRequest
(t *testing.T, c *schedCopy, move bool)
internal/store/schedule_copy_r3_test.go:118
↓ 4 callersFunctionleaks
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 callersFunctionleaveElection
()
web/src/lib/services/accessStream.svelte.ts:156
↓ 4 callersFunctionlegacyMCPSessionRequest
(s *Server, method string, status int, userID, reqSessionID, respSessionID string)
internal/server/middleware_mcp_session_test.go:453
↓ 4 callersFunctionlegacyRoles
(kind, dtstart, dtend string)
internal/store/schedule_journal.go:26
↓ 4 callersFunctionlines
Split into lines that keep their terminating newline.
web/src/lib/items/draftPatch.ts:27
↓ 4 callersFunctionlinkClone
(st State)
internal/schedule/links_test.go:50
↓ 4 callersFunctionlinkNodeLess
(a, b Node)
internal/schedule/links.go:576
↓ 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 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:312
↓ 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 callersFunctionloadImage
(url: string)
web/src/lib/components/editor/attachment-image.ts:610
↓ 4 callersMethodloadRoleLaneQ
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 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:142
↓ 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 callersMethodlockStorageLimitTx
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 callersFunctionlockedCopyFromSQLiteTemplate
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 callersFunctionloginCmd
()
cmd/pad/cmd_auth.go:333
↓ 4 callersFunctionloginReturnHref
* 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 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:1165
↓ 4 callersFunctionmark
()
web/src/lib/components/calendar/StateMark.svelte.test.ts:7
↓ 4 callersFunctionmarkdownToWikiLinks
(markdown: string, items: Item[])
web/src/lib/utils/markdown.ts:981
↓ 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:1256
↓ 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:256
↓ 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 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 callersFunctionmergeFieldsPatch
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 callersMethodmessage
(data: string | Uint8Array)
web/src/lib/collab/wsProviderRemoteChange.svelte.test.ts:17
↓ 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:1180
↓ 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:483
↓ 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 callersFunctionmodernResult
(t *testing.T, resp *http.Response)
internal/server/mcp_modern_test.go:127
↓ 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 callersFunctionneedsDueOf
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 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:31
↓ 4 callersFunctionnewAttachmentACLFixture
(t *testing.T)
internal/mcp/resources_http_attachment_acl_test.go:39
↓ 4 callersFunctionnewB2367Fixture
(t *testing.T)
internal/server/bug2367_migrate_doors_test.go:90
↓ 4 callersFunctionnewBug3558AuthedFixture
(t *testing.T)
internal/server/bug3558_collab_snapshot_door_test.go:12
↓ 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 callersFunctionnewCappedMCPSessionTracker
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 callersFunctionnewChatArmCmd
()
cmd/pad/cmd_chat_direction.go:11
↓ 4 callersFunctionnewChatGPTScopeHarness
(t *testing.T)
cmd/pad/chatgpt_scope_test.go:31
↓ 4 callersFunctionnewCommentFixture
TASK-3119 U2b: the conventions questions asked about each comment alone.
internal/decision/per_comment_test.go:16
↓ 4 callersFunctionnewCommentFixture
(t *testing.T)
internal/appstore/comments_test.go:57
↓ 4 callersFunctionnewDerivingShareFixture
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 callersFunctionnewGapAnnouncer
(cooldown time.Duration)
internal/server/stream_gap_announcer.go:61
↓ 4 callersFunctionnewHistoryFixture
(t *testing.T)
internal/mcp/dispatch_http_history_test.go:59
↓ 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 callersFunctionnewNotMineRoute
(t *testing.T)
internal/server/handlers_needs_not_mine_test.go:328
↓ 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:1503
↓ 4 callersFunctionnewPushGateCache
()
internal/server/push_gates.go:47
↓ 4 callersFunctionnewScopeSet
(sc needs.Scope)
internal/server/needs_scorers.go:314
↓ 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:651
↓ 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:1074
↓ 4 callersFunctionnormalizeItemConventionMetadata
(metadata *ItemConventionMetadata)
internal/models/item.go:1264
↓ 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:1381
↓ 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 callersMethodnoteOwed
(itemId: string)
web/src/lib/collab/collabFlush.svelte.ts:128
← previousnext →4,401–4,500 of 31,685, ranked by callers