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
↓ 2 callers
Method
claimOutboxIDs
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 callers
Function
claimRetryingDeadlocks
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 callers
Function
claimWithRetry
(attempt func() (*AccountClaim, error))
internal/store/account_claim.go:266
↓ 2 callers
Method
claimableBatchSiblings
(batchID, leaseCutoff string)
internal/store/event_outbox.go:2254
↓ 2 callers
Function
clampGenerationSeed
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 callers
Method
clampNeedsMarker
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 callers
Function
clampState
(state: ZoomState, g: Geometry)
web/src/lib/attachments/zoom.ts:310
↓ 2 callers
Function
classify
( width: number | null | undefined, height: number | null | undefined )
web/src/lib/attachments/viewerLoading.ts:66
↓ 2 callers
Function
classifyApplyOutcome
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 callers
Function
classifyCapabilityTier
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 callers
Function
classifyDeleteAccountError
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 callers
Function
classifyMCPResult
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 callers
Function
classifyMCPToolOutcome
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 callers
Function
classifyTieGroups
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 callers
Function
claudePadPluginInstalled
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 callers
Method
cleanExpiredCLIAuthSessions
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 callers
Function
cleanSignupText
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 callers
Function
clearAskIfSettled
* 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 callers
Function
clearAttachmentMetadataCache
()
web/src/lib/components/editor/attachment-metadata.ts:321
↓ 2 callers
Function
clearDeleted
()
web/src/lib/components/editor/attachment-chip.ts:382
↓ 2 callers
Function
clearParentFilter
(filters: Record<string, string>)
web/src/lib/collections/unparentedFilter.ts:50
↓ 2 callers
Method
clearParentLinkTx
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 callers
Function
clearPersistentIdentityState
()
web/src/lib/stores/identityReload.svelte.ts:36
↓ 2 callers
Function
clearReconnect
()
web/src/lib/services/sse.svelte.ts:428
↓ 2 callers
Function
clearSessionCookie
(w http.ResponseWriter, secure bool)
internal/server/middleware_auth.go:1304
↓ 2 callers
Function
clearStoredCursor
(itemID: string)
web/src/lib/collab/wsProvider.svelte.ts:198
↓ 2 callers
Function
clearTimer
(id: unknown)
web/src/lib/api/importUpload.test.ts:47
↓ 2 callers
Function
clearUpgradeResume
()
web/src/lib/billing/upgradeResume.ts:53
↓ 2 callers
Function
cliAuthMethod
(r *http.Request)
internal/server/handlers_activate.go:52
↓ 2 callers
Function
cliConventionBody
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 callers
Function
cliUserCodeHash
(code string)
internal/store/cli_auth_sessions.go:427
↓ 2 callers
Function
clickConfirm
The destructive row — the only thing that issues a DELETE.
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:1050
↓ 2 callers
Function
clip
(s: string)
web/src/lib/workspaces/importSummary.ts:72
↓ 2 callers
Function
clipRunes
(s string, n int)
internal/decision/runner.go:332
↓ 2 callers
Method
clock
()
internal/server/handlers_storage.go:53
↓ 2 callers
Function
clockSecs
(time: string)
web/src/lib/commitment.ts:93
↓ 2 callers
Function
cloneStringMap
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 callers
Method
cloudOwnershipQ
(q Queryer)
internal/store/instance_mode.go:77
↓ 2 callers
Function
cloudTutorialsServer
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 callers
Function
cmdhelpOptions
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 callers
Function
code
(text: string)
web/src/lib/a11y/selectsHaveNames.test.ts:25
↓ 2 callers
Function
codeRanges
(markdown: string)
web/src/lib/utils/markdown.ts:1080
↓ 2 callers
Function
coerceBaseView
(value: unknown)
web/src/lib/components/share/shareView.ts:539
↓ 2 callers
Function
coercePlaybookValue
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 callers
Function
coerceSettings
(settings: unknown)
web/src/lib/components/share/shareView.ts:122
↓ 2 callers
Function
coerceValue
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 callers
Function
collBySlug
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 callers
Method
collabAdmission
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 callers
Function
collabEditors
()
web/src/lib/components/items/itemDetailTouchEdit.svelte.test.ts:239
↓ 2 callers
Function
collapseChanges
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 callers
Function
collapseText
(src: AstSource, n: Node)
web/src/test/identityFenceAst.ts:364
↓ 2 callers
Method
collectBootstrapSourceItems
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 callers
Function
collectFlags
(fs *pflag.FlagSet)
internal/cmdhelp/json.go:385
↓ 2 callers
Method
collectIDs
(q Queryer, query string, args ...any)
internal/store/app_ceiling.go:95
↓ 2 callers
Method
collectPendingRemindersBounded
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 callers
Function
collectRequestBodyReads
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 callers
Function
collection
()
web/src/lib/components/collections/task2237Nesting.svelte.test.ts:18
↓ 2 callers
Function
collection
(fields: unknown[])
web/src/lib/components/collections/FilterBar.relationFilter.svelte.test.ts:49
↓ 2 callers
Function
collection
(fields: unknown[])
web/src/lib/components/collections/ListView.relationGroup.svelte.test.ts:51
↓ 2 callers
Function
collection
(fields: unknown[] = FIELDS)
web/src/lib/components/collections/BoardView.regroupDuringCooldown.svelte.test.ts:33
↓ 2 callers
Function
collection
(fields: FieldDef[])
web/src/lib/components/collections/BoardView.laneDrafts.svelte.test.ts:29
↓ 2 callers
Method
collectionChildrenProgress
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 callers
Method
collectionIDForKindQ
collectionIDForKindQ is collectionIDForKind on q (TASK-3397, U8b).
internal/server/handlers_artifact_import.go:44
↓ 2 callers
Function
collectionSlugCandidates
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 callers
Function
collectionUrl
(fixture: SuiteFixture, query = '')
web/e2e/lib/attachment-viewer.ts:425
↓ 2 callers
Function
collectionsCmd
--- collections ---
cmd/pad/cmd_collection.go:41
↓ 2 callers
Function
column
(name: string)
web/src/mcp-app/Board.svelte.test.ts:69
↓ 2 callers
Function
columnIntroductionsOf
(t *testing.T, steps []chainStep)
internal/store/nultriggers_order_test.go:49
↓ 2 callers
Function
comment
* 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 callers
Function
comment
(body: string, id = 'c1')
web/src/lib/components/timeline/ItemTimeline.lifecycle.svelte.test.ts:125
↓ 2 callers
Function
commentWriteCensus
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 callers
Method
commentedActivities
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:73
↓ 2 callers
Method
comments
(t *testing.T)
internal/server/handlers_comments_atomic_test.go:83
↓ 2 callers
Method
commitResolve
(tx *sql.Tx, workspaceID, itemID string, res *ResolveResult)
internal/store/schedule_resolve.go:958
↓ 2 callers
Method
commitWorkspaceMemberTx
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 callers
Function
commitmentActual
(t *testing.T, in ResolveInput, at time.Time)
internal/store/commitment_journal_test.go:71
↓ 2 callers
Function
commitmentAgendaEntry
(view: ItemCommitmentView, ctx: { wsSlug: string; item: Item; collection: Collection | null; zone: string })
web/src/lib/commitment.ts:34
↓ 2 callers
Function
commitmentFlags
(p scheduleParams)
internal/mcp/dispatch_http_schedule.go:244
↓ 2 callers
Function
commitmentFlags
(f scheduleFlags)
cmd/pad/schedule_flags.go:62
↓ 2 callers
Function
commitmentGraphCode
commitmentGraphCode preserves graph refusals across both MCP transports.
internal/mcp/errors.go:1994
↓ 2 callers
Method
commitmentNoticeRecipientTx
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 callers
Method
commitmentOwnerQ
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 callers
Function
commitmentOwnerRemoves
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 callers
Function
commitmentSnapshot
(t *testing.T, raw string)
internal/store/commitment_journal_test.go:57
↓ 2 callers
Function
commitmentValidationDetails
(raw json.RawMessage)
internal/mcp/errors.go:2003
↓ 2 callers
Method
compactOne
(itemID string, cutoff time.Time)
internal/server/oplog_compaction.go:115
↓ 2 callers
Function
companionSchema
(ftx *store.FencedTx, collectionID string)
internal/appstore/items.go:242
↓ 2 callers
Function
compareWithReviewed
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 callers
Method
completeIdempotencyTx
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 callers
Method
completePendingLink
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 callers
Method
completePendingLinkFor
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 callers
Method
completeSync
Mark this connection's replay applied and the doc synced (BUG-3240).
web/src/lib/collab/wsProvider.svelte.ts:1057
↓ 2 callers
Function
completed
(item_ref = 'TASK-90', day = '2026-11-13')
web/src/routes/(console)/home.svelte.test.ts:43
↓ 2 callers
Method
completedExpr
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 callers
Method
completionAt
TASK-4103 C2b-ii r2 fixes. Each test is red at f3aa962ef.
internal/store/schedule_resolve_fix2_test.go:13
↓ 2 callers
Function
completionSpan
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 callers
Function
composePruneWithPrecheck
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 callers
Function
compressSkips
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 callers
Function
computeBodyReadMode
({ pref, coarse, canEdit, rawMode, unlocked }: BodyReadModeInput)
web/src/lib/components/items/touchEditMode.ts:38
↓ 2 callers
Function
concurrentRetitle
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
← previous
next →
7,501–7,600 of 31,685, ranked by callers