Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ functions
Functions
28,840 in github.com/PerpetualSoftware/pad
⨍
Functions
28,840
◇
Types & classes
3,245
↓ 2 callers
Method
checkRedirect
checkRedirect re-validates every redirect hop against the SSRF guard and caps the redirect chain length. Without it, an allowed public endpoint could
internal/webhooks/dispatcher.go:325
↓ 2 callers
Function
checkRequestPath
checkRequestPath refuses an API path that would route somewhere other than the segments it was built from (BUG-3645). Every builder escapes its dynam
internal/cli/request_path.go:23
↓ 2 callers
Method
checkScan
checkScan refuses a query point so far from Start that walking the rule from Start would take more than MaxScan periods. Only the wall-clock path walk
internal/schedule/caps.go:114
↓ 2 callers
Method
checkTraitConflicts
checkTraitConflicts refuses a declaration that would make a workspace-level resolution ambiguous: two collections declaring the same artifact_kind, or
internal/server/handlers_collections.go:210
↓ 2 callers
Method
checkUniqueFields
(workspaceID, collectionID, excludeItemID string, schema models.CollectionSchema, fieldMap map[string]any)
internal/server/handlers_items.go:4301
↓ 2 callers
Method
checkUniqueFieldsQ
checkUniqueFieldsQ is checkUniqueFields on q. The lookup is store.ItemsWithFieldValueQ, ListItems' own Fields-filter predicate, so the pool path and t
internal/server/handlers_items.go:4309
↓ 2 callers
Method
checkUniqueTx
checkUniqueTx runs uc inside tx (BUG-3812). The caller holds the workspace seq lock (Postgres) or the database write lock (SQLite's BEGIN IMMEDIATE),
internal/store/unique_fields.go:182
↓ 2 callers
Method
checkUserLimitOn
checkUserLimitOn is CheckUserLimit against a caller-supplied executor, so a transaction can count on its own connection and after its own lock (BUG-24
internal/store/limits.go:195
↓ 2 callers
Function
childItems
()
web/src/lib/components/items/itemDetailProgressIsTheServers.svelte.test.ts:124
↓ 2 callers
Function
chip
()
web/src/lib/components/editor/attachmentChipPanel.svelte.test.ts:133
↓ 2 callers
Function
chunkKeys
chunkKeys splits keys into runs of at most n; n <= 0 is one run.
internal/decision/runner.go:1106
↓ 2 callers
Function
civilDay
(date: string)
web/src/lib/commitment.ts:91
↓ 2 callers
Method
claimAccountTx
claimAccountTx is the claim itself, inside the caller's transaction: lock the account, check it is claimable, reset every credential, strip access els
internal/store/account_claim.go:304
↓ 2 callers
Method
claimExhaustionLogLocked
claimExhaustionLogLocked reports whether b has just used up the budget and its exhaustion line has not been written yet, and marks it written. Once pe
internal/server/materialize_recovery.go:642
↓ 2 callers
Function
claimForms
claimForms are the forms a field value can be matched by in the import's uniqueness lookup (JSONFieldEquals): a string as text, and also as a boolean
internal/server/handlers_apps_install.go:790
↓ 2 callers
Function
claimIDRows
(s *Store, token string, ids []string, settle, lease, ts string)
internal/store/task3939_push_dispatch_test.go:45
↓ 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
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:1550
↓ 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:608
↓ 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:1007
↓ 2 callers
Function
cleanClientName
cleanClientName trims a client-declared string and drops control characters, so a log line or a stored name cannot be forged by it. The server's agent
internal/mcp/client_identity.go:171
↓ 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:319
↓ 2 callers
Function
clearDeleted
()
web/src/lib/components/editor/attachment-chip.ts:381
↓ 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:4887
↓ 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:1299
↓ 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
cliAuthBrowserURL
cliAuthBrowserURL builds the auth-approval URL we print to the user during `pad auth login`. We construct it on the CLI side rather than trusting the
cmd/pad/cmd_auth.go:411
↓ 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
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:51
↓ 2 callers
Function
clockSecs
(time: string)
web/src/lib/commitment.ts:92
↓ 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:2171
↓ 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:885
↓ 2 callers
Function
coerceSettings
(settings: unknown)
web/src/lib/components/share/shareView.ts:122
↓ 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:1537
↓ 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:764
↓ 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:456
↓ 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:3786
↓ 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:289
↓ 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:931
↓ 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:33
↓ 2 callers
Function
commitmentFlags
(p scheduleParams)
internal/mcp/dispatch_http_schedule.go:210
↓ 2 callers
Function
commitmentFlags
(f scheduleFlags)
cmd/pad/schedule_flags.go:59
↓ 2 callers
Function
commitmentGraphCode
commitmentGraphCode preserves graph refusals across both MCP transports.
internal/mcp/errors.go:1917
↓ 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:1926
↓ 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:216
↓ 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:94
↓ 2 callers
Method
completeSync
Mark this connection's replay applied and the doc synced (BUG-3240).
web/src/lib/collab/wsProvider.svelte.ts:1043
← previous
next →
6,801–6,900 of 28,840, ranked by callers