MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions31,685 in github.com/PerpetualSoftware/pad

↓ 2 callersMethodclaimOutboxIDs
claimOutboxIDs is the ARBITER: one conditional UPDATE per candidate, each carrying its own claim-availability predicate. Split out from ClaimPendingO
internal/store/event_outbox.go:2062
↓ 2 callersFunctionclaimRetryingDeadlocks
claimWithRetry runs one claim attempt again when it lost its username to another account between choosing and writing it. The attempt's transaction ro
internal/store/account_claim.go:256
↓ 2 callersFunctionclaimWithRetry
(attempt func() (*AccountClaim, error))
internal/store/account_claim.go:266
↓ 2 callersMethodclaimableBatchSiblings
(batchID, leaseCutoff string)
internal/store/event_outbox.go:2254
↓ 2 callersFunctionclampGenerationSeed
clampGenerationSeed forces the seed into the shape publishScript's guards accept: a positive integer of at most 17 digits. THE CLOCK IS AN INPUT, AND
internal/events/redis_bus.go:236
↓ 2 callersMethodclampNeedsMarker
clampNeedsMarker brings a client's marker within the server's state, so it can only claim less was seen: the second, normalised by needsCommentSecond,
internal/store/needs_snooze.go:155
↓ 2 callersFunctionclampState
(state: ZoomState, g: Geometry)
web/src/lib/attachments/zoom.ts:310
↓ 2 callersFunctionclassify
( width: number | null | undefined, height: number | null | undefined )
web/src/lib/attachments/viewerLoading.ts:66
↓ 2 callersFunctionclassifyApplyOutcome
classifyApplyOutcome decides whether a failed apply DEMONSTRABLY left the content out of the collaborative document, or merely failed to confirm. It
internal/server/handlers_items_content_route.go:372
↓ 2 callersFunctionclassifyCapabilityTier
classifyCapabilityTier maps a fosite-style space-separated scope string into a coarse user-readable bucket. Currently three tiers: - read_only: on
internal/store/connected_apps.go:344
↓ 2 callersFunctionclassifyDeleteAccountError
classifyDeleteAccountError sorts a deletion attempt's error into the busy classes. An interruption (deadline, dead connection) that hit any step BEFOR
internal/store/users.go:1698
↓ 2 callersFunctionclassifyMCPResult
classifyMCPResult maps an HTTP status to (audit_status, error_kind). It classifies the TRANSPORT status only. A tool error comes back as 200 OK with
internal/server/middleware_mcp_audit.go:604
↓ 2 callersFunctionclassifyMCPToolOutcome
classifyMCPToolOutcome maps a failed tool call's structured error code onto (audit_status, error_kind). The refusal codes are the ones the dispatcher
internal/server/mcp_tool_outcome.go:86
↓ 2 callersFunctionclassifyTieGroups
classifyTieGroups walks one item's versions from its current content and counts its tie groups into rep. It returns false, leaving rep partial, when c
internal/store/version_tie_diagnostic.go:290
↓ 2 callersFunctionclaudePadPluginInstalled
claudePadPluginInstalled reports whether Claude Code has the pad plugin installed, from its installed_plugins.json (keys are "<plugin>@<marketplace>")
cmd/pad/cmd_workspace.go:1035
↓ 2 callersMethodcleanExpiredCLIAuthSessions
cleanExpiredCLIAuthSessions claims expired approved rows, revokes the session of every expired row still holding a token, and deletes the expired rows
internal/store/cli_auth_sessions.go:356
↓ 2 callersFunctioncleanSignupText
cleanSignupText trims s, drops control characters (NUL among them, so the column's trigger never turns a header into a 500), and caps it at max runes.
internal/server/handlers_agent_signup.go:228
↓ 2 callersFunctionclearAskIfSettled
* Clear the "this workspace still owes a replay" ask, if it may be cleared * (TASK-2909). * * ONE definition, two callers: the public `markCaughtUp
web/src/lib/stores/localIndex.svelte.ts:714
↓ 2 callersFunctionclearAttachmentMetadataCache
()
web/src/lib/components/editor/attachment-metadata.ts:321
↓ 2 callersFunctionclearDeleted
()
web/src/lib/components/editor/attachment-chip.ts:382
↓ 2 callersFunctionclearParentFilter
(filters: Record<string, string>)
web/src/lib/collections/unparentedFilter.ts:50
↓ 2 callersMethodclearParentLinkTx
clearParentLinkTx removes the item's parent link within the caller's transaction. Shared by the public ClearParentLink (own tx) and UpdateItemWithPare
internal/store/items.go:4947
↓ 2 callersFunctionclearPersistentIdentityState
()
web/src/lib/stores/identityReload.svelte.ts:36
↓ 2 callersFunctionclearReconnect
()
web/src/lib/services/sse.svelte.ts:428
↓ 2 callersFunctionclearSessionCookie
(w http.ResponseWriter, secure bool)
internal/server/middleware_auth.go:1304
↓ 2 callersFunctionclearStoredCursor
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:198
↓ 2 callersFunctionclearTimer
(id: unknown)
web/src/lib/api/importUpload.test.ts:47
↓ 2 callersFunctionclearUpgradeResume
()
web/src/lib/billing/upgradeResume.ts:53
↓ 2 callersFunctioncliAuthMethod
(r *http.Request)
internal/server/handlers_activate.go:52
↓ 2 callersFunctioncliConventionBody
cliConventionBody is what `pad library activate` and pad_library.activate post for a library convention.
internal/server/bug3446_blank_library_options_test.go:68
↓ 2 callersFunctioncliUserCodeHash
(code string)
internal/store/cli_auth_sessions.go:427
↓ 2 callersFunctionclickConfirm
The destructive row — the only thing that issues a DELETE.
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:1050
↓ 2 callersFunctionclip
(s: string)
web/src/lib/workspaces/importSummary.ts:72
↓ 2 callersFunctionclipRunes
(s string, n int)
internal/decision/runner.go:332
↓ 2 callersMethodclock
()
internal/server/handlers_storage.go:53
↓ 2 callersFunctionclockSecs
(time: string)
web/src/lib/commitment.ts:93
↓ 2 callersFunctioncloneStringMap
cloneStringMap returns a shallow copy of m. Used by mappers that need to normalize a single value before handing the map to a downstream helper, witho
internal/mcp/dispatch_http_routes.go:2295
↓ 2 callersMethodcloudOwnershipQ
(q Queryer)
internal/store/instance_mode.go:77
↓ 2 callersFunctioncloudTutorialsServer
cloudTutorialsServer is a cloud-mode server whose outbound client answers from the fakes and counts what it was asked for.
internal/server/task3452_tutorials_test.go:49
↓ 2 callersFunctioncmdhelpOptions
cmdhelpOptions builds the Options struct shared by JSON and markdown emitters. Centralized so both formats see the same dynamic resolver, version meta
cmd/pad/help_cmdhelp.go:129
↓ 2 callersFunctioncode
(text: string)
web/src/lib/a11y/selectsHaveNames.test.ts:25
↓ 2 callersFunctioncodeRanges
(markdown: string)
web/src/lib/utils/markdown.ts:1080
↓ 2 callersFunctioncoerceBaseView
(value: unknown)
web/src/lib/components/share/shareView.ts:539
↓ 2 callersFunctioncoercePlaybookValue
coercePlaybookValue converts a raw CLI token into the typed Go value the spec describes. ref/string pass through; number is parsed as float64; enum is
internal/server/handlers_playbooks.go:887
↓ 2 callersFunctioncoerceSettings
(settings: unknown)
web/src/lib/components/share/shareView.ts:122
↓ 2 callersFunctioncoerceValue
coerceValue converts one string value to its declared type, or returns it unchanged when it is not a string or will not parse.
internal/items/coerce.go:75
↓ 2 callersFunctioncollBySlug
PLAN-3535 PR 1: the tracks_work setting is stored, defaulted on create, kept across settings writes that do not mention it, settable on its own, and m
internal/store/plan3535_tracks_work_test.go:16
↓ 2 callersMethodcollabAdmission
collabAdmission returns the collab socket gate, built unbounded on first use so a Server that never calls SetCollabLimits still has a working gate. Th
internal/server/server.go:1588
↓ 2 callersFunctioncollabEditors
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:239
↓ 2 callersFunctioncollapseChanges
collapseChanges takes a "; "-delimited list of "field: old → new" entries and collapses runs of consecutive same-field entries into a single "field: f
internal/store/activities.go:604
↓ 2 callersFunctioncollapseText
(src: AstSource, n: Node)
web/src/test/identityFenceAst.ts:364
↓ 2 callersMethodcollectBootstrapSourceItems
collectAlwaysOnConventions returns the active, always-on conventions for a workspace, projected into the bootstrap-friendly shape. Sorted by priority
internal/server/handlers_bootstrap.go:816
↓ 2 callersFunctioncollectFlags
(fs *pflag.FlagSet)
internal/cmdhelp/json.go:385
↓ 2 callersMethodcollectIDs
(q Queryer, query string, args ...any)
internal/store/app_ceiling.go:95
↓ 2 callersMethodcollectPendingRemindersBounded
collectPendingRemindersBounded is the paging loop with its bounds injected, so a test can drive the case the production constants make impractical to
internal/server/handlers_reminders.go:502
↓ 2 callersFunctioncollectRequestBodyReads
collectRequestBodyReads type-checks the package in dir and returns every selector whose RESOLVED object is one of net/http.Request's body readers (BUG
internal/server/body_reader_census_test.go:95
↓ 2 callersFunctioncollection
()
web/src/lib/components/collections/task2237Nesting.svelte.test.ts:18
↓ 2 callersFunctioncollection
(fields: unknown[])
web/src/lib/components/collections/FilterBar.relationFilter.svelte.test.ts:49
↓ 2 callersFunctioncollection
(fields: unknown[])
web/src/lib/components/collections/ListView.relationGroup.svelte.test.ts:51
↓ 2 callersFunctioncollection
(fields: unknown[] = FIELDS)
web/src/lib/components/collections/BoardView.regroupDuringCooldown.svelte.test.ts:33
↓ 2 callersFunctioncollection
(fields: FieldDef[])
web/src/lib/components/collections/BoardView.laneDrafts.svelte.test.ts:29
↓ 2 callersMethodcollectionChildrenProgress
collectionChildrenProgress is the shared implementation for child-item completion progress across any collection. It enforces the same visibility/gues
internal/server/handlers_items.go:3950
↓ 2 callersMethodcollectionIDForKindQ
collectionIDForKindQ is collectionIDForKind on q (TASK-3397, U8b).
internal/server/handlers_artifact_import.go:44
↓ 2 callersFunctioncollectionSlugCandidates
collectionSlugCandidates returns the alternative slugs to try when `input` matched nothing, in priority order and never including `input` itself. ASC
internal/server/collection_resolve.go:96
↓ 2 callersFunctioncollectionUrl
(fixture: SuiteFixture, query = '')
web/e2e/lib/attachment-viewer.ts:425
↓ 2 callersFunctioncollectionsCmd
--- collections ---
cmd/pad/cmd_collection.go:41
↓ 2 callersFunctioncolumn
(name: string)
web/src/mcp-app/Board.svelte.test.ts:69
↓ 2 callersFunctioncolumnIntroductionsOf
(t *testing.T, steps []chainStep)
internal/store/nultriggers_order_test.go:49
↓ 2 callersFunctioncomment
* BUG-3437. "commented on update" used to show for any comment with an * activity_id, and every comment has one: a standalone comment links to its *
web/src/lib/components/timeline/timelineCommentOnUpdate.svelte.test.ts:14
↓ 2 callersFunctioncomment
(body: string, id = 'c1')
web/src/lib/components/timeline/ItemTimeline.lifecycle.svelte.test.ts:125
↓ 2 callersFunctioncommentWriteCensus
commentWriteCensus returns key -> count of comment-writing statements for the given Go source files (key = path:enclosing top-level declaration).
internal/store/task3917_comment_mentions_test.go:290
↓ 2 callersMethodcommentedActivities
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:73
↓ 2 callersMethodcomments
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:83
↓ 2 callersMethodcommitResolve
(tx *sql.Tx, workspaceID, itemID string, res *ResolveResult)
internal/store/schedule_resolve.go:958
↓ 2 callersMethodcommitWorkspaceMemberTx
commitWorkspaceMemberTx commits a transaction that ran addWorkspaceMemberTx. It is routed through the seam so a test can reproduce the one commit outc
internal/store/workspace_members.go:141
↓ 2 callersFunctioncommitmentActual
(t *testing.T, in ResolveInput, at time.Time)
internal/store/commitment_journal_test.go:71
↓ 2 callersFunctioncommitmentAgendaEntry
(view: ItemCommitmentView, ctx: { wsSlug: string; item: Item; collection: Collection | null; zone: string })
web/src/lib/commitment.ts:34
↓ 2 callersFunctioncommitmentFlags
(p scheduleParams)
internal/mcp/dispatch_http_schedule.go:244
↓ 2 callersFunctioncommitmentFlags
(f scheduleFlags)
cmd/pad/schedule_flags.go:62
↓ 2 callersFunctioncommitmentGraphCode
commitmentGraphCode preserves graph refusals across both MCP transports.
internal/mcp/errors.go:1994
↓ 2 callersMethodcommitmentNoticeRecipientTx
commitmentNoticeRecipientTx resolves the subject and its current recipient. Visibility is checked on the transaction, without any platform admin bypas
internal/store/commitment_notices.go:19
↓ 2 callersMethodcommitmentOwnerQ
commitmentOwnerQ reports whether the caller owns the workspace, by owner_id or by an owner membership, and returns that membership.
internal/server/commitment_access.go:19
↓ 2 callersFunctioncommitmentOwnerRemoves
commitmentOwnerRemoves is the one predicate for reaching past collection restrictions and onto deleted ends. It applies only to removal, and an app pr
internal/server/commitment_access.go:39
↓ 2 callersFunctioncommitmentSnapshot
(t *testing.T, raw string)
internal/store/commitment_journal_test.go:57
↓ 2 callersFunctioncommitmentValidationDetails
(raw json.RawMessage)
internal/mcp/errors.go:2003
↓ 2 callersMethodcompactOne
(itemID string, cutoff time.Time)
internal/server/oplog_compaction.go:115
↓ 2 callersFunctioncompanionSchema
(ftx *store.FencedTx, collectionID string)
internal/appstore/items.go:242
↓ 2 callersFunctioncompareWithReviewed
compareWithReviewed refuses when a fresh normalization differs from the reviewed preview, naming the artifact and each field with its reviewed and cur
internal/server/handlers_apps_provision.go:218
↓ 2 callersMethodcompleteIdempotencyTx
completeIdempotencyTx is the AfterWriteTx that records the patch's answer with its key, inside the write's transaction.
internal/server/handlers_items_patch.go:95
↓ 2 callersMethodcompletePendingLink
completePendingLink runs after a sign-in minted its session (cloud mode only). It spends the token, then links its provider only when the token is thi
internal/server/oauth_pending_link.go:112
↓ 2 callersMethodcompletePendingLinkFor
completePendingLinkFor runs completePendingLink for a password or 2FA sign-in. When bodyTok is non-zero it wins over the browser's cookie: if the requ
internal/server/oauth_pending_link.go:89
↓ 2 callersMethodcompleteSync
Mark this connection's replay applied and the doc synced (BUG-3240).
web/src/lib/collab/wsProvider.svelte.ts:1057
↓ 2 callersFunctioncompleted
(item_ref = 'TASK-90', day = '2026-11-13')
web/src/routes/(console)/home.svelte.test.ts:43
↓ 2 callersMethodcompletedExpr
completedExpr builds the `completed` expression over the workspace's collections (just scope, when set): the day of the item's latest move into a posi
internal/store/items.go:2615
↓ 2 callersMethodcompletionAt
TASK-4103 C2b-ii r2 fixes. Each test is red at f3aa962ef.
internal/store/schedule_resolve_fix2_test.go:13
↓ 2 callersFunctioncompletionSpan
completionSpan is the exact interval of an HOURLY or MINUTELY rule, and 0 for the others (which keep the schedule's time of day).
internal/store/schedule_completion.go:67
↓ 2 callersFunctioncomposePruneWithPrecheck
composePruneWithPrecheck rides the op-log prune inside the write's own transaction (BUG-2840 half B) by composing it onto the precheck hook UpdateItem
internal/server/handlers_items_content_route.go:406
↓ 2 callersFunctioncompressSkips
Response compression (TASK-2225, audit C18). The server ignored Accept-Encoding entirely: the items index (about 2.1 MB for a large workspace, 6.8x sm
internal/server/middleware_compress.go:23
↓ 2 callersFunctioncomputeBodyReadMode
({ pref, coarse, canEdit, rawMode, unlocked }: BodyReadModeInput)
web/src/lib/components/items/touchEditMode.ts:38
↓ 2 callersFunctionconcurrentRetitle
concurrentRetitle arms the seam to retitle the item once, from "another writer", in the window after the mutation's commit.
internal/store/bug2717_intx_snapshot_test.go:44
← previousnext →7,501–7,600 of 31,685, ranked by callers